decocms 4.619.4 → 4.619.5

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 (434) hide show
  1. package/dist/client/assets/{AlertCircle-BlMH0XE7.js → AlertCircle-ChqjWH7E.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CFi6-0Iq.js → AreaChart-Bh0xUVvq.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-B0PZnf1E.js → ArrowLeft-libxJleO.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-mzMrxxYI.js → ArrowRight-BRk4Hran.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-D5DDc3Cp.js → ArrowUp-BrwXO1vC.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-DU-B3R7s.js → BookOpen01-BDifdMkT.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-fywgd4bq.js → CartesianChart-p_GxMYyG.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-wSsXuALZ.js → CategoricalChart-DgcXVLOE.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-DZ8MNpCP.js → CheckCircle-BS4u7GKL.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-XsLJSrfl.js → ChevronDown-DrncqTUe.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-CB0fn1Nq.js → ChevronSelectorVertical-DLti285g.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-BQktpZWC.js → ChevronUp-Cx0YNXAN.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-MY4ouqtl.js → CreditCard01-CvuDODOT.js} +1 -1
  14. package/dist/client/assets/{Eye-kjjhS0vP.js → Eye-CvCTiG93.js} +1 -1
  15. package/dist/client/assets/{File02-DaYek2y9.js → File02-C56z6MkD.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-B2fDIuT8.js → Fingerprint04-6YzZ_jju.js} +1 -1
  17. package/dist/client/assets/{Globe04-CeAQ1YNm.js → Globe04-BrRHVGNQ.js} +1 -1
  18. package/dist/client/assets/{Image01-BcIZ5mtf.js → Image01-CgFR6A2M.js} +1 -1
  19. package/dist/client/assets/{Key01-CaJGjh13.js → Key01-q8HY_RxB.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-DDtN-od-.js → LayoutLeft-CLd6bB7k.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-DfUhihLM.js → LinkBroken01-D_QfcXMB.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-BG1RhOiZ.js → MessageCircle01-KvJTlsBi.js} +1 -1
  23. package/dist/client/assets/{Minus-hZzPDO0w.js → Minus-DqjfoGpn.js} +1 -1
  24. package/dist/client/assets/{Monitor01-DMFbvudn.js → Monitor01-Bo9f-OEj.js} +1 -1
  25. package/dist/client/assets/{Play-BCFOaioW.js → Play-BAVhlZkP.js} +1 -1
  26. package/dist/client/assets/{Plus-DWySsEmB.js → Plus-xfIPbM98.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-CCZuWAGw.js → ReferenceLine-DUrIC0rZ.js} +1 -1
  28. package/dist/client/assets/{SearchMd-BD2qldmS.js → SearchMd-fabFdd5s.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-BbjW7cod.js → ShoppingBag01-CCFPuM9g.js} +1 -1
  30. package/dist/client/assets/{Sun-O9TdKcV_.js → Sun-MaW22nKk.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-CMdpIiQk.js → SwitchHorizontal01-COUdvBDy.js} +1 -1
  32. package/dist/client/assets/{Tool01-BCJ5kyrz.js → Tool01-BLv3y71t.js} +1 -1
  33. package/dist/client/assets/{Tooltip-B-bKlk4E.js → Tooltip-ShK1G1q2.js} +1 -1
  34. package/dist/client/assets/{Trash01-BxBhF2b8.js → Trash01-D5Busco0.js} +1 -1
  35. package/dist/client/assets/{Upload01-q-rKSvZf.js → Upload01-C-SD6gLx.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-k-4bTA2h.js → UserCheck01-C1rHQW2k.js} +1 -1
  37. package/dist/client/assets/{UserSquare-CafFh5_d.js → UserSquare-BbR7Ffob.js} +1 -1
  38. package/dist/client/assets/{Users01-DM58_gUL.js → Users01-FBsoQxPP.js} +1 -1
  39. package/dist/client/assets/{XClose-CmTuu4UN.js → XClose-B_RBcQBR.js} +1 -1
  40. package/dist/client/assets/{Zap-CBJ7My90.js → Zap-8DRTlEOL.js} +1 -1
  41. package/dist/client/assets/{access-gate-ZixeoVbg.js → access-gate-Dl_Nzl3t.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-CS6ZsWUV.js → add-connection-dialog-aXAW3JnT.js} +1 -1
  43. package/dist/client/assets/agent-app-D_nDbZ-9.js +1 -0
  44. package/dist/client/assets/{agent-assets-N3MVvFNQ.js → agent-assets-qiAzNaw5.js} +1 -1
  45. package/dist/client/assets/{agent-automation-YRM59WCJ.js → agent-automation-gyNFDeUJ.js} +1 -1
  46. package/dist/client/assets/{agent-automations-B6GbQ2NX.js → agent-automations-CsNZljnA.js} +1 -1
  47. package/dist/client/assets/{agent-blog-BZL3iqos.js → agent-blog-KkZXK42k.js} +2 -2
  48. package/dist/client/assets/{agent-blog-post-SleYRKhO.js → agent-blog-post-BxtIsbfY.js} +2 -2
  49. package/dist/client/assets/agent-business-case-DAuXfm5L.js +1 -0
  50. package/dist/client/assets/{agent-calendar-C2aYQk1W.js → agent-calendar-DerRdIMl.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-CyWfHGWp.js → agent-capabilities-8PgT3Fp9.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-B3DsSlYx.js → agent-connect-sources-C0kDwUKT.js} +1 -1
  53. package/dist/client/assets/agent-deck-eUHsriBq.js +1 -0
  54. package/dist/client/assets/{agent-e2e-CL5z3KLl.js → agent-e2e-pCYZqXOZ.js} +1 -1
  55. package/dist/client/assets/agent-experiments-BpnyFf0V.js +1 -0
  56. package/dist/client/assets/agent-file-Ch9zXBiS.js +1 -0
  57. package/dist/client/assets/{agent-hosting-o-mcw7Mt.js → agent-hosting-CTabTTFv.js} +1 -1
  58. package/dist/client/assets/{agent-icon-BYWtutu9.js → agent-icon-POwFjNIx.js} +1 -1
  59. package/dist/client/assets/agent-library-file-BVDYoLvJ.js +1 -0
  60. package/dist/client/assets/agent-library-i3UF-T9Z.js +1 -0
  61. package/dist/client/assets/agent-overview-59T4P2bp.js +1 -0
  62. package/dist/client/assets/{agent-releases-CkoKmdtg.js → agent-releases-HY2c97cK.js} +1 -1
  63. package/dist/client/assets/agent-settings-J_nrf8b_.js +1 -0
  64. package/dist/client/assets/{agent-site-editor-mx714_u8.js → agent-site-editor-BT71MVv-.js} +1 -1
  65. package/dist/client/assets/agent-site-editor-code-h18H1TlD.js +2 -0
  66. package/dist/client/assets/agent-site-editor-content-B8QHTDxs.js +1 -0
  67. package/dist/client/assets/agent-site-editor-preview-CjUXsNnG.js +1 -0
  68. package/dist/client/assets/agent-view-BwlFDbUa.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-Du9KtXiN.js → agent-view-guard-DyZLxU5M.js} +1 -1
  70. package/dist/client/assets/{ai-providers-C5eMJ9gb.js → ai-providers-8akJfAUq.js} +1 -1
  71. package/dist/client/assets/{alert-CxbB9CEj.js → alert-DH-_ARv-.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-DxDApvgE.js → analytics-sections-B-T3t-q1.js} +1 -1
  73. package/dist/client/assets/api-keys-Bd46Cq_I.js +1 -0
  74. package/dist/client/assets/{api-keys-Dz9mRGTx.js → api-keys-DsUWNtxn.js} +1 -1
  75. package/dist/client/assets/{app-editor-CjwcCH9G.js → app-editor-f8H4Sivy.js} +1 -1
  76. package/dist/client/assets/{asset-utils-DP9aQr9Q.js → asset-utils-DZKrqYDc.js} +1 -1
  77. package/dist/client/assets/{auth-C82OPjUx.js → auth-JFQg8ioC.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-BuOacwQW.js → auth-catchall-g-aQzyQ-.js} +1 -1
  79. package/dist/client/assets/{auth-entry-CvZftMoq.js → auth-entry-BgbUsnTl.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-DSQvTHWS.js → auth-split-layout-KLnefiWl.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-87e1Ix6y.js → authenticate-and-persist-oauth-BU8NlZrx.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-4ox_h99L.js → automation-list-row-B72fIuba.js} +1 -1
  83. package/dist/client/assets/{automation-runs-Dto_jEAs.js → automation-runs-6_BJs58h.js} +1 -1
  84. package/dist/client/assets/{automations-C9HofLSf.js → automations-CbzONBNT.js} +1 -1
  85. package/dist/client/assets/{badge-DcUertOZ.js → badge-mppOhsx3.js} +1 -1
  86. package/dist/client/assets/{block-document-fIbF5XH6.js → block-document-BKonIwXl.js} +1 -1
  87. package/dist/client/assets/{blocks-preview-workspace-context-ZEZYfsWp.js → blocks-preview-workspace-context-B5j3CJOh.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-8lUCpJRf.js → blocks-tab-states-cCwLT03y.js} +1 -1
  89. package/dist/client/assets/{blog-preview-url-N6iQgPQK.js → blog-preview-url-0WcO3GS9.js} +1 -1
  90. package/dist/client/assets/{blog-schema-0s-6sCQz.js → blog-schema-raQjuF8P.js} +1 -1
  91. package/dist/client/assets/{blog-source-gate-BIpZ68Ul.js → blog-source-gate-lLoxfqtf.js} +1 -1
  92. package/dist/client/assets/{blog-view-gate-D2LovAn5.js → blog-view-gate-BiSLgaWC.js} +1 -1
  93. package/dist/client/assets/{buckets-0rVmiN0b.js → buckets-1HOtjiBt.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-BBeWkVDi.js → build-improve-prompt-doc-DhcIyUwj.js} +1 -1
  95. package/dist/client/assets/{calendar-DNzaYWCQ.js → calendar-C2v2rx1y.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-CCChPOz4.js → capability-load-error-CM0aoq-L.js} +1 -1
  97. package/dist/client/assets/{category-editor-BWoJzJlg.js → category-editor-DLCnRR3L.js} +1 -1
  98. package/dist/client/assets/{category-tree-DGOo1BAt.js → category-tree-Dr1NGnf2.js} +1 -1
  99. package/dist/client/assets/{chart-DsKJdJFH.js → chart-CYSPmzvC.js} +1 -1
  100. package/dist/client/assets/{chat-context-DFEln8mI.js → chat-context-DmELouH7.js} +1 -1
  101. package/dist/client/assets/{chat-draft-DNEqrl5p.js → chat-draft-DmqEbKTr.js} +1 -1
  102. package/dist/client/assets/{checkbox-QUuOza1H.js → checkbox-hBxFVjXU.js} +1 -1
  103. package/dist/client/assets/{choose-editor-Dn-Q9YwJ.js → choose-editor-DDl49HQA.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-r3ux6WHO.js → cli-auth-success-f6C4rVO2.js} +1 -1
  105. package/dist/client/assets/{cms-settings-editor-CFS-nduu.js → cms-settings-editor-DW9bHHPX.js} +1 -1
  106. package/dist/client/assets/{cms-store-drafts-_66Q7KaS.js → cms-store-drafts-3Pzqjb1M.js} +1 -1
  107. package/dist/client/assets/{collapsible-CadTVXY4.js → collapsible-DXtfFhlw.js} +1 -1
  108. package/dist/client/assets/{collection-detail-Dx4tVGVC.js → collection-detail-CBuAnqsi.js} +1 -1
  109. package/dist/client/assets/{collection-display-button-6TpQQrIO.js → collection-display-button-Dblhh0g-.js} +1 -1
  110. package/dist/client/assets/{collection-search-DkVgkcUC.js → collection-search-CsMQtGxI.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-Ds5dhGJx.js → collection-table-wrapper-BZ9PpxcG.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-Cju2BOrS.js → collection-tabs-DpX5t3nl.js} +1 -1
  113. package/dist/client/assets/{combobox-2rKAfmHD.js → combobox-ha9qFXYI.js} +1 -1
  114. package/dist/client/assets/{command-C3tlrKUq.js → command-Ciz1JHkm.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-DtquKPaV.js → companion-mcps-section-DoJ1ALmM.js} +1 -1
  116. package/dist/client/assets/{config-LEYSFIMn.js → config-BvgPav17.js} +1 -1
  117. package/dist/client/assets/{connect-BKnKKYKQ.js → connect-A6ZiSBnP.js} +1 -1
  118. package/dist/client/assets/{connect-key-FoOHl5BZ.js → connect-key-CAYs6I-L.js} +1 -1
  119. package/dist/client/assets/{connect-layout-CsTR3j4_.js → connect-layout-AwrvfIUD.js} +1 -1
  120. package/dist/client/assets/{connect-source-dialog-KHsP3PRH.js → connect-source-dialog-Cn9lw5x0.js} +1 -1
  121. package/dist/client/assets/{connection-C8I8wKeO.js → connection-DyMfTANF.js} +1 -1
  122. package/dist/client/assets/{connection-card-CTJwLo8p.js → connection-card-Dt92S85Y.js} +1 -1
  123. package/dist/client/assets/{connection-detail-CgH5yXt-.js → connection-detail-DFEjYgMe.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-BjSA2uCL.js → connection-form-helpers-y2n-DExg.js} +1 -1
  125. package/dist/client/assets/{connection-slug-BNBBglpK.js → connection-slug-ClS--MnP.js} +1 -1
  126. package/dist/client/assets/{connections-X4DjYIvQ.js → connections-cj1xxBbZ.js} +1 -1
  127. package/dist/client/assets/{content-changes-BFwm7dNe.js → content-changes-B_DC-anJ.js} +1 -1
  128. package/dist/client/assets/{content-tab-BPEA6p-v.js → content-tab-DA3C5H1u.js} +3 -3
  129. package/dist/client/assets/{context-DUaIKdw9.js → context-DilQYCL-.js} +1 -1
  130. package/dist/client/assets/{context-menu-DkaKc9e5.js → context-menu-X27-pS6O.js} +1 -1
  131. package/dist/client/assets/{context-shell-fpMmjICJ.js → context-shell-BEfZ6BqB.js} +3 -3
  132. package/dist/client/assets/{create-organization-dialog-BVTSqOJU.js → create-organization-dialog-CFrrSiyA.js} +1 -1
  133. package/dist/client/assets/{daily-pulse-BkxIzWUm.js → daily-pulse-WI3jy1tz.js} +1 -1
  134. package/dist/client/assets/{delete-copy-DdlDdNyl.js → delete-copy-BJv73-Ft.js} +1 -1
  135. package/dist/client/assets/{device-hint-B3WnBHYf.js → device-hint-BWyf1FYT.js} +1 -1
  136. package/dist/client/assets/{discover-Ciw-8-nj.js → discover-DenLgB1N.js} +1 -1
  137. package/dist/client/assets/{domain-settings-D4e35lZa.js → domain-settings-B1cNDSfr.js} +1 -1
  138. package/dist/client/assets/{drawer-CROtV2u4.js → drawer-BDbenm6L.js} +1 -1
  139. package/dist/client/assets/{editor-ipOJFDhA.js → editor-ByNhS1TQ.js} +1 -1
  140. package/dist/client/assets/{editor-classes-DYlqLnQ7.js → editor-classes-BTlqa_af.js} +1 -1
  141. package/dist/client/assets/{empty-state-I_cTbW85.js → empty-state-Br5iA0PL.js} +1 -1
  142. package/dist/client/assets/{empty-state-DM4xv3sa.js → empty-state-C3prkdI-.js} +1 -1
  143. package/dist/client/assets/{experiments-tab-choice-C9Djubgs.js → experiments-tab-choice-JhJIaoua.js} +1 -1
  144. package/dist/client/assets/{extract-connection-data-DjYTV7t7.js → extract-connection-data-pUAzh98b.js} +1 -1
  145. package/dist/client/assets/{feature-gate-DMrFeUy1.js → feature-gate-B7uQp1Wq.js} +1 -1
  146. package/dist/client/assets/{feature-paywall-DL1BXqDM.js → feature-paywall-Cuxz-yLH.js} +1 -1
  147. package/dist/client/assets/{file-explorer-QEFcL5Sf.js → file-explorer-BfOtHRK-.js} +1 -1
  148. package/dist/client/assets/{file-preview-f1ZCefMe.js → file-preview-pbs1YLBz.js} +1 -1
  149. package/dist/client/assets/{file-share-button-C-f43toh.js → file-share-button-rLTESz0w.js} +1 -1
  150. package/dist/client/assets/{file-type-icon-CdjLDWdN.js → file-type-icon-DBhVFkcQ.js} +1 -1
  151. package/dist/client/assets/{folder-icon-DjWOZO3O.js → folder-icon-MqDqOvQj.js} +1 -1
  152. package/dist/client/assets/{form-DlZ0KMAb.js → form-CXf17HmA.js} +1 -1
  153. package/dist/client/assets/{frame-navigation-DMXKoo4B.js → frame-navigation-BxIR5BNm.js} +1 -1
  154. package/dist/client/assets/{gateway-client-B4qzR3sF.js → gateway-client-BePk_av3.js} +1 -1
  155. package/dist/client/assets/{general-CgIfCf24.js → general-CsmwPv8Q.js} +1 -1
  156. package/dist/client/assets/{github-icon-Bq9Ot22_.js → github-icon-DIDixxLk.js} +1 -1
  157. package/dist/client/assets/{held-block-view-QD0AvQ2Q.js → held-block-view-GbE3ruE3.js} +1 -1
  158. package/dist/client/assets/{home-CfP1B6zJ.js → home-DJcG2fXt.js} +1 -1
  159. package/dist/client/assets/{home-overview-B7AwMB08.js → home-overview-DLiFoePV.js} +1 -1
  160. package/dist/client/assets/{hosted-reconcile-rjhKNGnc.js → hosted-reconcile-yuv1cDCb.js} +1 -1
  161. package/dist/client/assets/{icon-button-BH8Qviy5.js → icon-button-DbNvfQBp.js} +1 -1
  162. package/dist/client/assets/{index-MkoN5oFR.js → index-B6WtsvUt.js} +1 -1
  163. package/dist/client/assets/{index-DDkGmjwq.js → index-BBvpDsG5.js} +1 -1
  164. package/dist/client/assets/{index-5erPNBmj.js → index-BCX49XAx.js} +1 -1
  165. package/dist/client/assets/{index-g3eDw_KE.js → index-BRUloeMu.js} +1 -1
  166. package/dist/client/assets/{index-rjS4IUT9.js → index-BUpSNhfs.js} +1 -1
  167. package/dist/client/assets/{index-D23-6Dnm.js → index-BbC1S_4U.js} +1 -1
  168. package/dist/client/assets/{index-DMpANy5-.js → index-BdaeGs2y.js} +1 -1
  169. package/dist/client/assets/{index-CJKec1wg.js → index-BpPRg9nw.js} +1 -1
  170. package/dist/client/assets/{index-kCm_MC3x.js → index-CTaSigLH.js} +1 -1
  171. package/dist/client/assets/{index-BL01DXCf.js → index-CftUWKSR.js} +1 -1
  172. package/dist/client/assets/{index-CLFrG0Qs.js → index-D4hmWtVS.js} +1 -1
  173. package/dist/client/assets/{index-DrJBZ2ZV.js → index-D9esfo9_.js} +1 -1
  174. package/dist/client/assets/{index-CDQbtG2e.js → index-DEQvBvbs.js} +1 -1
  175. package/dist/client/assets/{index-Co7YBLf6.js → index-DRjUDdC5.js} +1 -1
  176. package/dist/client/assets/{index-DGzw_xp5.js → index-DSeH85lC.js} +1 -1
  177. package/dist/client/assets/{index-ztdGKvBm.js → index-DmMMRYj8.js} +47 -47
  178. package/dist/client/assets/{index-BcACgHiu.js → index-FKyOaCif.js} +1 -1
  179. package/dist/client/assets/{index-redirect-BxpEByen.js → index-redirect-CJIRsNhh.js} +1 -1
  180. package/dist/client/assets/{infiniteQueryObserver-C3KEOANj.js → infiniteQueryObserver-Cu2d4hqm.js} +1 -1
  181. package/dist/client/assets/{infra-billing-BFFvEbBo.js → infra-billing-DiPrpNBB.js} +1 -1
  182. package/dist/client/assets/{input-aLblPHPG.js → input-Cnr_4F97.js} +1 -1
  183. package/dist/client/assets/{input-B2QsYffT.js → input-Dbw7Fd2Y.js} +3 -3
  184. package/dist/client/assets/{integration-icon-Bo-3z9o3.js → integration-icon-BRzNeX56.js} +1 -1
  185. package/dist/client/assets/{item-actions-BDi0HvuM.js → item-actions-2zTJNgYK.js} +1 -1
  186. package/dist/client/assets/{jira-icon-CucNVYe0.js → jira-icon-CvpiGC68.js} +1 -1
  187. package/dist/client/assets/{label-8UxgpYiA.js → label-C3f-p2GO.js} +1 -1
  188. package/dist/client/assets/{layout-CiYqNQ7K.js → layout-Cc84j1jm.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-plmLACwz.js → legacy-admin-welcome-dialog-CBmPazsM.js} +1 -1
  190. package/dist/client/assets/{legacy-agents-deep-DyZsDG6s.js → legacy-agents-deep-CqtT1quJ.js} +1 -1
  191. package/dist/client/assets/{legacy-main-redirect-CRUswcYw.js → legacy-main-redirect-CCR_Kwsz.js} +1 -1
  192. package/dist/client/assets/library-Ckp5NJeK.js +1 -0
  193. package/dist/client/assets/{library-tab-DdqgBq7X.js → library-tab-Dk57BRNw.js} +1 -1
  194. package/dist/client/assets/{login-CSH2sxCM.js → login-D4Z6gjze.js} +1 -1
  195. package/dist/client/assets/{markdown-CJR_ooUO.js → markdown-Cny0I0ZM.js} +1 -1
  196. package/dist/client/assets/{mcp-app-renderer-DU6s3Olv.js → mcp-app-renderer-Xp8aIExP.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-BBSVAQ62.js → mcp-oauth-28V73W1w.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-Alln4VX8.js → mcp-oauth-Ce9lewPT.js} +1 -1
  199. package/dist/client/assets/{members-NK4Xc07V.js → members-ClTY4xXw.js} +1 -1
  200. package/dist/client/assets/{memory-DMWEEOEF.js → memory-b3O_1-V_.js} +1 -1
  201. package/dist/client/assets/{mock-board-NMto_IE_.js → mock-board-WF9HmqEO.js} +3 -3
  202. package/dist/client/assets/{monaco-editor-CLzWWWtl.js → monaco-editor-09zfrzgi.js} +1 -1
  203. package/dist/client/assets/{monitoring-tu8T670c.js → monitoring-BH0R1IoD.js} +1 -1
  204. package/dist/client/assets/{monitoring-stats-row-B4nREvBy.js → monitoring-stats-row-B7dH7aTO.js} +1 -1
  205. package/dist/client/assets/{multi-select-DT2CaFLR.js → multi-select-DjE5uJfk.js} +1 -1
  206. package/dist/client/assets/{mustache-CNuJ7AZ0.js → mustache-CAv4Wo6j.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-BUKBZ8bi.js → named-rule-step-fEyBTSr7.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-B2F_JWdt.js → named-rule-view-BtVwQRW0.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-BW6Lh52P.js → new-project-dialog-C2fYVAcy.js} +1 -1
  210. package/dist/client/assets/{new-project-store-DID5OVrt.js → new-project-store-ojiemp_1.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-CaqSxMor.js → oauth-callback-SbkDBXLb.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-ai-provider-U0bkWwKJ.js → oauth-callback-ai-provider-gP6nqh3M.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-BSgGE3Bs.js → oauth-consent-eA6vODlv.js} +1 -1
  214. package/dist/client/assets/{onboarding-DhuU_4Fu.js → onboarding-_1r4ZeP2.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-XKCKDcRG.js → openai-conversation-B_QTTz48.js} +1 -1
  216. package/dist/client/assets/{optimistic-project-sidebar-views-aXJkp7Aa.js → optimistic-project-sidebar-views-CUp17jsk.js} +1 -1
  217. package/dist/client/assets/{order-monitor-day-BS6DbEul.js → order-monitor-day-WI4T6JVp.js} +1 -1
  218. package/dist/client/assets/{organization-choice-BA2J1Sub.js → organization-choice-BT2Rf92e.js} +1 -1
  219. package/dist/client/assets/{orgs-BM_ILPKb.js → orgs-WIJ6MIBI.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-C2hUsPB2.js → own-accounts-section-7utRZGGB.js} +1 -1
  221. package/dist/client/assets/{pair-DmyTA2cC.js → pair-BTGgcS15.js} +1 -1
  222. package/dist/client/assets/{parse-sections-Bun2U10n.js → parse-sections-C59DO3q9.js} +2 -2
  223. package/dist/client/assets/plan-ZkQxDDb0.js +1 -0
  224. package/dist/client/assets/{plan-ladder-C3ogU-RT.js → plan-ladder-DQcImxho.js} +1 -1
  225. package/dist/client/assets/plan-page-BNM6yWoR.js +6 -0
  226. package/dist/client/assets/{plan-usage-card-Cu6N697K.js → plan-usage-card-d9jjSRr5.js} +1 -1
  227. package/dist/client/assets/{popover-C4oz5B-L.js → popover-LZpi0uxx.js} +1 -1
  228. package/dist/client/assets/{post-calendar-C9jkdGJh.js → post-calendar-B2XxygHy.js} +1 -1
  229. package/dist/client/assets/{post-editor-cvzIrkiW.js → post-editor-4JPDI3S-.js} +1 -1
  230. package/dist/client/assets/{preview-content-f1yPbBN0.js → preview-content-DGxbg8JA.js} +1 -1
  231. package/dist/client/assets/{preview-dialog-BPjf_vPa.js → preview-dialog-CKIw_sT3.js} +1 -1
  232. package/dist/client/assets/{preview-panel-a1ouBSIL.js → preview-panel-BQa36YRe.js} +1 -1
  233. package/dist/client/assets/{preview-tab-g0gk5kBr.js → preview-tab-cyrlNlH8.js} +3 -3
  234. package/dist/client/assets/{primitives-BbUqWJzg.js → primitives-BITik6wR.js} +1 -1
  235. package/dist/client/assets/{product-picker-dialog-Bux2F3Cd.js → product-picker-dialog-Cg32JEQH.js} +1 -1
  236. package/dist/client/assets/{profile-Dc_5h7y4.js → profile-Dch68YkB.js} +1 -1
  237. package/dist/client/assets/{project-app-view-9F75U5zq.js → project-app-view-BIQlLpwb.js} +1 -1
  238. package/dist/client/assets/{project-apps-BcKyvp4E.js → project-apps-D42y2IN7.js} +1 -1
  239. package/dist/client/assets/{project-icon-fQqckccl.js → project-icon-CGh1cNL8.js} +1 -1
  240. package/dist/client/assets/{project-index-C2IrSomv.js → project-index-q7fIaoJ4.js} +1 -1
  241. package/dist/client/assets/project-reports-twvZzSW8.js +1 -0
  242. package/dist/client/assets/project-tasks-BEG01N1v.js +1 -0
  243. package/dist/client/assets/{projects-BMIqPW4r.js → projects-OnG5zDqA.js} +1 -1
  244. package/dist/client/assets/{projects-empty-state-DXP1mqYF.js → projects-empty-state-B0JTgic4.js} +1 -1
  245. package/dist/client/assets/{prompts-DpRerlb-.js → prompts-A1FnMmhq.js} +1 -1
  246. package/dist/client/assets/record-editor-CC9nSDgS.js +1 -0
  247. package/dist/client/assets/{redirect-editor-C-75DqJ8.js → redirect-editor-Cywl5BYQ.js} +1 -1
  248. package/dist/client/assets/reports-HmWKAvsp.js +1 -0
  249. package/dist/client/assets/{reports-DrD55ws1.js → reports-NWEc-Lua.js} +1 -1
  250. package/dist/client/assets/{reports-onboarding-wE7JwoZi.js → reports-onboarding-CULUNr0X.js} +1 -1
  251. package/dist/client/assets/{reports-tab-Bm-CyJCU.js → reports-tab-B-XRHHzJ.js} +2 -2
  252. package/dist/client/assets/repositories-D3yOV9xb.js +1 -0
  253. package/dist/client/assets/{repositories-DQbDt3rW.js → repositories-urVVsxDV.js} +1 -1
  254. package/dist/client/assets/{repository-binding-D_Xc1yRH.js → repository-binding-CnqOEzD9.js} +1 -1
  255. package/dist/client/assets/{repository-picker-CSaozawA.js → repository-picker-uXEId6yP.js} +1 -1
  256. package/dist/client/assets/{require-capability-BvMWopKN.js → require-capability-BYTFUqs7.js} +1 -1
  257. package/dist/client/assets/{required-auth-layout-Cwtu4iIe.js → required-auth-layout-XZ2_RXTi.js} +1 -1
  258. package/dist/client/assets/{reset-password-CCjgtMBz.js → reset-password-QmOkx6zB.js} +1 -1
  259. package/dist/client/assets/{resizable-DNBx7bMi.js → resizable-BRdUguHL.js} +1 -1
  260. package/dist/client/assets/{resolve-tab-icon-XkjIOifK.js → resolve-tab-icon-DU_-ybQf.js} +1 -1
  261. package/dist/client/assets/{review-settings-DnBaXa8b.js → review-settings-DpDxRF-0.js} +1 -1
  262. package/dist/client/assets/{role-color-CCLGEajG.js → role-color-DCdH_wWu.js} +1 -1
  263. package/dist/client/assets/{roles-DDL7RCB4.js → roles-CpK8Wvjo.js} +1 -1
  264. package/dist/client/assets/route-BRDm5oAQ.js +1 -0
  265. package/dist/client/assets/{route-Bz0dgJ2I.js → route-CR4DNNtl.js} +1 -1
  266. package/dist/client/assets/{route-cP2t4t1J.js → route-CXpF1swO.js} +1 -1
  267. package/dist/client/assets/{route-page-header-CApA0aIo.js → route-page-header-DW5bo48I.js} +1 -1
  268. package/dist/client/assets/{sandbox-git-api-BsG4EzUP.js → sandbox-git-api-DasV_5nY.js} +1 -1
  269. package/dist/client/assets/{sandbox-lifecycle-context-DbNrw8-a.js → sandbox-lifecycle-context-vPm6SLvw.js} +1 -1
  270. package/dist/client/assets/{save-status-DhQhbNh0.js → save-status-B4_TQBlx.js} +1 -1
  271. package/dist/client/assets/{schema-D_OZwHJO.js → schema-CsDjeoCD.js} +1 -1
  272. package/dist/client/assets/{schema-Bb-DbvPZ.js → schema-VYa9v4uK.js} +1 -1
  273. package/dist/client/assets/{scroll-area-Dm3EbBj1.js → scroll-area-CK2HWET4.js} +1 -1
  274. package/dist/client/assets/{search-input-BQ8Dp8aD.js → search-input-D8Ti2Kj4.js} +1 -1
  275. package/dist/client/assets/{search-toggle-1gezrIbC.js → search-toggle-KKskvzsk.js} +1 -1
  276. package/dist/client/assets/{secret-picker-Bjl5COEs.js → secret-picker-Brdmk5Cm.js} +1 -1
  277. package/dist/client/assets/{secrets-k-1ebMsD.js → secrets-DMf03CW8.js} +1 -1
  278. package/dist/client/assets/{section-array-field-uECXIzc8.js → section-array-field-CrZ8pD2Q.js} +1 -1
  279. package/dist/client/assets/{sections-BA7rlacS.js → sections-Hc_ea1la.js} +1 -1
  280. package/dist/client/assets/{sections-editor-DFekY7v1.js → sections-editor-DbQFGAcZ.js} +1 -1
  281. package/dist/client/assets/{select-CxXZwsSr.js → select-4fwa0N-w.js} +1 -1
  282. package/dist/client/assets/{select-model-ocp0molk.js → select-model-Ck_OMznE.js} +1 -1
  283. package/dist/client/assets/{seo-editor-XFI4kpN6.js → seo-editor-BR6eGZKq.js} +1 -1
  284. package/dist/client/assets/{separator-BQ6pXQbe.js → separator-D24Pkrni.js} +1 -1
  285. package/dist/client/assets/{session-runtime-DBl1Hlcw.js → session-runtime-Bxzg28T1.js} +1 -1
  286. package/dist/client/assets/settings-tab-D1P_bB3N.js +1 -0
  287. package/dist/client/assets/{sheet-C-umRrOH.js → sheet-Pxdj2d0O.js} +1 -1
  288. package/dist/client/assets/{shell-layout-UF80oiAz.js → shell-layout-QosKplaT.js} +1 -1
  289. package/dist/client/assets/{site-draft-actions-FVwQt-Zd.js → site-draft-actions-Bxva0RSH.js} +1 -1
  290. package/dist/client/assets/{site-draft-view-BVBNZFVO.js → site-draft-view-M1Il2kqL.js} +1 -1
  291. package/dist/client/assets/site-editor-DYrDnKz_.js +1 -0
  292. package/dist/client/assets/{site-editor-toast-Dq7SmLyr.js → site-editor-toast-CrbeZn6P.js} +1 -1
  293. package/dist/client/assets/{skills-Cpr_vZ7G.js → skills-CUWgKy0E.js} +1 -1
  294. package/dist/client/assets/{slider-Cqj9bgcu.js → slider-KVowhu1X.js} +1 -1
  295. package/dist/client/assets/{sortable.esm-CKl9Rez4.js → sortable.esm-7FlxfWzb.js} +1 -1
  296. package/dist/client/assets/{sso-SC-6fSYF.js → sso-D5twWf58.js} +1 -1
  297. package/dist/client/assets/{suggestion-aR93AXr2.js → suggestion-BWmLdQzE.js} +1 -1
  298. package/dist/client/assets/{super-agent-icon-JEja25un.js → super-agent-icon-DwVmJcOh.js} +1 -1
  299. package/dist/client/assets/{switch-B81oLbqr.js → switch-DmUfhYv8.js} +1 -1
  300. package/dist/client/assets/{synced-repos-DXCIbAbx.js → synced-repos-w3dN8PI3.js} +1 -1
  301. package/dist/client/assets/{tab-icon-glyph-CYp2YuI5.js → tab-icon-glyph-DNNpPJD_.js} +1 -1
  302. package/dist/client/assets/{table-C3AdbrSy.js → table-ChRYMP7V.js} +1 -1
  303. package/dist/client/assets/{tabs-nQ7_UOyl.js → tabs-D1pIsKf-.js} +1 -1
  304. package/dist/client/assets/{task-board-i6qU2BVR.js → task-board-CPddzIYx.js} +1 -1
  305. package/dist/client/assets/{task-key-Bt60Ndov.js → task-key-DGmmZLdt.js} +1 -1
  306. package/dist/client/assets/{task-route-C3cK6F8S.js → task-route-Liu6_wqZ.js} +1 -1
  307. package/dist/client/assets/{task-status-DYgcNbkh.js → task-status-cOvo4PcH.js} +1 -1
  308. package/dist/client/assets/{taskboard-analytics-BQ6MoPkZ.js → taskboard-analytics-BHl40x8X.js} +1 -1
  309. package/dist/client/assets/tasks-C30GnPFP.js +1 -0
  310. package/dist/client/assets/{tasks-BHVyL8aT.js → tasks-CvkxtEEX.js} +1 -1
  311. package/dist/client/assets/{textarea-viSdm6BE.js → textarea-DC3xQ4kD.js} +1 -1
  312. package/dist/client/assets/{thread-analytics-Cpl3jv6S.js → thread-analytics-BsHxxDsM.js} +1 -1
  313. package/dist/client/assets/{thread-button-CP83i3PG.js → thread-button-D8oOd41X.js} +1 -1
  314. package/dist/client/assets/{thread-intent-DyZ5A9F9.js → thread-intent-BZwSTfDM.js} +1 -1
  315. package/dist/client/assets/{thread-route-CfpvvkkL.js → thread-route-CribnvTi.js} +1 -1
  316. package/dist/client/assets/{thread-route-BbVh3366.js → thread-route-MzzeID9Y.js} +1 -1
  317. package/dist/client/assets/{thread-sheet-body-CC8y_ZHb.js → thread-sheet-body-BQzD5AWr.js} +1 -1
  318. package/dist/client/assets/{time-range-picker-BJPUtKv4.js → time-range-picker-DNIa2d1D.js} +1 -1
  319. package/dist/client/assets/{toggle-group-yQeAFu4u.js → toggle-group-DqIO3xhJ.js} +1 -1
  320. package/dist/client/assets/{tool-set-selector-CRKf3QUk.js → tool-set-selector-CedFcxd_.js} +1 -1
  321. package/dist/client/assets/{toolbar-icon-button-Cz-oOJ1w.js → toolbar-icon-button-eUQSTQah.js} +1 -1
  322. package/dist/client/assets/{tooltip-Bm0P1gm_.js → tooltip-DYmV7IKp.js} +1 -1
  323. package/dist/client/assets/{tooltipContext-CSDtg0Lk.js → tooltipContext-DExPDlKY.js} +1 -1
  324. package/dist/client/assets/{track-DLNDfCEf.js → track-BwWO50h9.js} +1 -1
  325. package/dist/client/assets/{types-5-cDe_8u.js → types-BBakUXnY.js} +1 -1
  326. package/dist/client/assets/{url-slug-CII_0B7H.js → url-slug-DknilYmx.js} +1 -1
  327. package/dist/client/assets/{usage-stats-B0_Yl-r0.js → usage-stats-t4V02j9N.js} +1 -1
  328. package/dist/client/assets/{use-ai-providers-Ct2xvYDX.js → use-ai-providers-VQuGkvuK.js} +1 -1
  329. package/dist/client/assets/{use-api-keys-BXqgEl25.js → use-api-keys-BCPR68HV.js} +1 -1
  330. package/dist/client/assets/{use-apply-named-rule-BXltW_Uu.js → use-apply-named-rule-FQGd_Vnf.js} +1 -1
  331. package/dist/client/assets/use-ask-in-chat-BPbojgrJ.js +1 -0
  332. package/dist/client/assets/{use-automations-BF2lxi1L.js → use-automations-ByO0cXfT.js} +1 -1
  333. package/dist/client/assets/{use-autosave-3MAlhbEw.js → use-autosave-C83hehEW.js} +1 -1
  334. package/dist/client/assets/use-blocks-v8-project-CV41gxs6.js +1 -0
  335. package/dist/client/assets/use-blog-view-C4BF45dq.js +1 -0
  336. package/dist/client/assets/{use-chat-layout-state-Im_c7sw4.js → use-chat-layout-state-B55AouCR.js} +1 -1
  337. package/dist/client/assets/{use-cms-publish-actions-BWS3AiLQ.js → use-cms-publish-actions-EoujoXA7.js} +1 -1
  338. package/dist/client/assets/{use-connect-companion-6TAp--e4.js → use-connect-companion-B8K_-DvZ.js} +1 -1
  339. package/dist/client/assets/{use-connection-CcG4QE1K.js → use-connection-CUy-xLIl.js} +1 -1
  340. package/dist/client/assets/{use-content-sync-GJv8DmEo.js → use-content-sync-BwBZP4y2.js} +1 -1
  341. package/dist/client/assets/{use-copy-DT4_uVrH.js → use-copy-DvMjk4g7.js} +1 -1
  342. package/dist/client/assets/{use-current-view-DBmQQ8uy.js → use-current-view-HnFTmU9v.js} +1 -1
  343. package/dist/client/assets/{use-date-fns-locale-CloMwBOl.js → use-date-fns-locale-ceip-git.js} +1 -1
  344. package/dist/client/assets/{use-debounced-autosave-CCeLz8XW.js → use-debounced-autosave-BoNppgIU.js} +1 -1
  345. package/dist/client/assets/{use-debounced-value-DO5dvp6c.js → use-debounced-value-KPsBBvnW.js} +1 -1
  346. package/dist/client/assets/{use-deco-credits-yGgE3j79.js → use-deco-credits-CSPSqfW2.js} +1 -1
  347. package/dist/client/assets/{use-decopilot-events-43RPCkUH.js → use-decopilot-events-Dp80DKWc.js} +1 -1
  348. package/dist/client/assets/{use-delete-block-BDYGRW7T.js → use-delete-block-fqyzRlTE.js} +1 -1
  349. package/dist/client/assets/{use-delete-connection-D6MGPJka.js → use-delete-connection-Dvk3Wy7z.js} +1 -1
  350. package/dist/client/assets/{use-deployment-admin-Cr4LWHG9.js → use-deployment-admin-By6tjKPo.js} +1 -1
  351. package/dist/client/assets/{use-entitlements-Gn1rhCN5.js → use-entitlements-CRiiW0Ty.js} +1 -1
  352. package/dist/client/assets/{use-fast-preview-draft-url-CpggWNTk.js → use-fast-preview-draft-url-Bh44rhn-.js} +1 -1
  353. package/dist/client/assets/{use-file-configs-3gwPBXwK.js → use-file-configs-C_DEjZAQ.js} +1 -1
  354. package/dist/client/assets/{use-id-selection-DNp_iXDg.js → use-id-selection-Belb2rfS.js} +1 -1
  355. package/dist/client/assets/{use-in-settings-CFQ9B3W2.js → use-in-settings-Ds8usasB.js} +1 -1
  356. package/dist/client/assets/{use-inbox-feed-CbqA9xw0.js → use-inbox-feed-CfBhUhGf.js} +1 -1
  357. package/dist/client/assets/{use-infinite-scroll-DdrDrAAo.js → use-infinite-scroll-pAJ-NZfq.js} +1 -1
  358. package/dist/client/assets/{use-join-requests-CNlmT1He.js → use-join-requests-JT4I46ul.js} +1 -1
  359. package/dist/client/assets/{use-main-panel-tabs-BmILT_Hf.js → use-main-panel-tabs-CU0aoHts.js} +1 -1
  360. package/dist/client/assets/{use-mcp-auth-status-6sC2vB74.js → use-mcp-auth-status-DCSDGaY_.js} +1 -1
  361. package/dist/client/assets/{use-mcp-client-2MG3LveS.js → use-mcp-client-B5JTQMVF.js} +1 -1
  362. package/dist/client/assets/{use-mcp-prompts-qJSiAdA5.js → use-mcp-prompts-D3RJs61Z.js} +1 -1
  363. package/dist/client/assets/{use-mcp-tools-DOqvKogJ.js → use-mcp-tools-7XyHGVuM.js} +1 -1
  364. package/dist/client/assets/{use-mobile-C_hdQY5I.js → use-mobile-Cxqkr89j.js} +1 -1
  365. package/dist/client/assets/{use-move-blocks-Bu_TrzH9.js → use-move-blocks-CjALA5E-.js} +1 -1
  366. package/dist/client/assets/{use-navigate-to-agent-Cw8_3uU5.js → use-navigate-to-agent-Cy044LGE.js} +1 -1
  367. package/dist/client/assets/{use-never-published-BJeGnEQC.js → use-never-published-DKVrO9Fz.js} +1 -1
  368. package/dist/client/assets/{use-org-fs-D9dHgOYs.js → use-org-fs-D9kszJK9.js} +1 -1
  369. package/dist/client/assets/{use-org-notice-Bg0zOPPj.js → use-org-notice-BSoYdwdc.js} +1 -1
  370. package/dist/client/assets/{use-org-repo-syncs-DXtQY1Ns.js → use-org-repo-syncs-BhplYhch.js} +1 -1
  371. package/dist/client/assets/{use-org-sso-_fzcS8V-.js → use-org-sso-DDfxRFLL.js} +1 -1
  372. package/dist/client/assets/{use-organization-settings-C2vcrj4S.js → use-organization-settings-D8_Njnyg.js} +1 -1
  373. package/dist/client/assets/{use-panel-navigate-0z93k6Ut.js → use-panel-navigate-D9ieVXpG.js} +1 -1
  374. package/dist/client/assets/{use-project-native-view-presence-C7OB-luC.js → use-project-native-view-presence-CaK_AzvE.js} +1 -1
  375. package/dist/client/assets/{use-project-scope-BwqdbGG4.js → use-project-scope-BLihvveC.js} +1 -1
  376. package/dist/client/assets/{use-recent-apps-DlYlQGYK.js → use-recent-apps-Cf_IB5VO.js} +1 -1
  377. package/dist/client/assets/{use-reports-diagnostic-CHQxra4V.js → use-reports-diagnostic-CxRB3R7t.js} +1 -1
  378. package/dist/client/assets/{use-sandbox-events-E6fWuIsO.js → use-sandbox-events-B9CrJt6X.js} +1 -1
  379. package/dist/client/assets/{use-secrets-BUuPyfGX.js → use-secrets-DQrNAHyc.js} +1 -1
  380. package/dist/client/assets/{use-section-preview-base-CWHJYT12.js → use-section-preview-base-BmbnGqvi.js} +1 -1
  381. package/dist/client/assets/{use-sidebar-collapsed-Cy-mIzeN.js → use-sidebar-collapsed-DKziyQyh.js} +1 -1
  382. package/dist/client/assets/{use-tags-FRfDz-by.js → use-tags-DFNPI-_9.js} +1 -1
  383. package/dist/client/assets/{use-task-board-analytics-ByUFAA_6.js → use-task-board-analytics-Dw2MVAWU.js} +1 -1
  384. package/dist/client/assets/{use-task-board-item-prs-B5FCM085.js → use-task-board-item-prs-BdeOpro_.js} +1 -1
  385. package/dist/client/assets/{use-task-board-items-D2aUd0HA.js → use-task-board-items-CAFOUh-y.js} +1 -1
  386. package/dist/client/assets/{use-task-board-prompts-BVOJS_Xo.js → use-task-board-prompts-DoescETa.js} +1 -1
  387. package/dist/client/assets/{use-task-metadata-DZBgcb3y.js → use-task-metadata-AfaoAPwY.js} +1 -1
  388. package/dist/client/assets/{use-thread-outputs-BK5BfLdO.js → use-thread-outputs-DYJmVZ0o.js} +1 -1
  389. package/dist/client/assets/{use-view-draft-kind-BopwZu5H.js → use-view-draft-kind-DWEZysa7.js} +1 -1
  390. package/dist/client/assets/{use-voice-input-BMrsODyI.js → use-voice-input-K-QnknSk.js} +1 -1
  391. package/dist/client/assets/useInfiniteQuery-WJMtMZUx.js +1 -0
  392. package/dist/client/assets/{useQueries-GZbpaWZ_.js → useQueries-CVZsMPDg.js} +1 -1
  393. package/dist/client/assets/useSuspenseInfiniteQuery-BRE1On0y.js +1 -0
  394. package/dist/client/assets/{users-C3Vmpzra.js → users-Copcx2P0.js} +1 -1
  395. package/dist/client/assets/{utils-COdvgYqW.js → utils-gb2MtXZ_.js} +1 -1
  396. package/dist/client/assets/{variant-calendar-C0eDQjQb.js → variant-calendar-DHgF2J_f.js} +1 -1
  397. package/dist/client/assets/{variant-matcher-override-BAo9iF1F.js → variant-matcher-override-BEQD0bbw.js} +1 -1
  398. package/dist/client/assets/{view-header-CGFYM1jX.js → view-header-5RylsBm-.js} +1 -1
  399. package/dist/client/assets/{virtual-mcp-CAb2l-zV.js → virtual-mcp-hWRelxCQ.js} +1 -1
  400. package/dist/client/assets/{watch-sse-pool-DdfLfQcH.js → watch-sse-pool-DGAi3LqT.js} +1 -1
  401. package/dist/client/index.html +1 -1
  402. package/dist/server/server.js +1 -1
  403. package/package.json +1 -1
  404. package/dist/client/assets/agent-app-BjFocMRF.js +0 -1
  405. package/dist/client/assets/agent-business-case-D7hulp28.js +0 -1
  406. package/dist/client/assets/agent-deck-Bo3utH19.js +0 -1
  407. package/dist/client/assets/agent-experiments-DmxiioQQ.js +0 -1
  408. package/dist/client/assets/agent-file-DP9sslio.js +0 -1
  409. package/dist/client/assets/agent-library-BXulc_Yl.js +0 -1
  410. package/dist/client/assets/agent-library-file-VKoA-2Ab.js +0 -1
  411. package/dist/client/assets/agent-overview-C34bZy3e.js +0 -1
  412. package/dist/client/assets/agent-settings-C7Xi7GQ8.js +0 -1
  413. package/dist/client/assets/agent-site-editor-code-BARMlQvm.js +0 -2
  414. package/dist/client/assets/agent-site-editor-content-DzffF50u.js +0 -1
  415. package/dist/client/assets/agent-site-editor-preview-Cb3Jb0dL.js +0 -1
  416. package/dist/client/assets/agent-view-D1SswljO.js +0 -1
  417. package/dist/client/assets/api-keys-CyfopOCZ.js +0 -1
  418. package/dist/client/assets/library-DKz4y7U8.js +0 -1
  419. package/dist/client/assets/plan-BjkLd82J.js +0 -1
  420. package/dist/client/assets/plan-page-CqrnghH1.js +0 -6
  421. package/dist/client/assets/project-reports-B_rUnWW1.js +0 -1
  422. package/dist/client/assets/project-tasks-em-dO97Z.js +0 -1
  423. package/dist/client/assets/record-editor-EDBIJjSW.js +0 -1
  424. package/dist/client/assets/reports-Bll5rys5.js +0 -1
  425. package/dist/client/assets/repositories-V5ZADqdz.js +0 -1
  426. package/dist/client/assets/route-BByW4wWq.js +0 -1
  427. package/dist/client/assets/settings-tab-DiVoBlPy.js +0 -1
  428. package/dist/client/assets/site-editor-C1tqJ8tH.js +0 -1
  429. package/dist/client/assets/tasks-DCmQbZqA.js +0 -1
  430. package/dist/client/assets/use-ask-in-chat-DiwquGLH.js +0 -1
  431. package/dist/client/assets/use-blocks-v8-project-BPvEDyS9.js +0 -1
  432. package/dist/client/assets/use-blog-view-DMfZjkz0.js +0 -1
  433. package/dist/client/assets/useInfiniteQuery-Ypmdjx1e.js +0 -1
  434. package/dist/client/assets/useSuspenseInfiniteQuery-Pk4rU2Ft.js +0 -1
@@ -1 +1 @@
1
- import{c as v,a6 as z,K as Y,i as U,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aW as Z,w as J,v as ee,D as te}from"./index-ztdGKvBm.js";import{n as se}from"./ArrowUp-D5DDc3Cp.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-DFEln8mI.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-B2QsYffT.js";import{u as je,a as ve,S as be,M as A}from"./pair-DmyTA2cC.js";import{A as ye,f as W}from"./agent-icon-BYWtutu9.js";import{j as Ne}from"./content-changes-BFwm7dNe.js";import{a as Ce}from"./agent-capabilities-CyWfHGWp.js";import{a as we}from"./repository-binding-D_Xc1yRH.js";import{c as Se,i as ke}from"./thread-intent-DyZ5A9F9.js";import{a as Te}from"./use-panel-navigate-0z93k6Ut.js";import{N as $e}from"./index-CJKec1wg.js";import{i as Ee}from"./ArrowRight-mzMrxxYI.js";import{c as De}from"./use-entitlements-Gn1rhCN5.js";import{u as Pe}from"./use-deco-credits-yGgE3j79.js";import{F as _e}from"./feature-paywall-DL1BXqDM.js";import{i as Ie}from"./AlertCircle-BlMH0XE7.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=Y.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=U(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function Q(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(Q(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(Q(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(W,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),i=l.jsx(W,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function We(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function Qe(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function Ye(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ue(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);Qe({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(Ye,{Main:Ue,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:We,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
1
+ import{c as v,a6 as z,K as Y,i as U,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aW as Z,w as J,v as ee,D as te}from"./index-DmMMRYj8.js";import{n as se}from"./ArrowUp-BrwXO1vC.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-DmELouH7.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-Dbw7Fd2Y.js";import{u as je,a as ve,S as be,M as A}from"./pair-BTGgcS15.js";import{A as ye,f as W}from"./agent-icon-POwFjNIx.js";import{j as Ne}from"./content-changes-B_DC-anJ.js";import{a as Ce}from"./agent-capabilities-8PgT3Fp9.js";import{a as we}from"./repository-binding-CnqOEzD9.js";import{c as Se,i as ke}from"./thread-intent-BZwSTfDM.js";import{a as Te}from"./use-panel-navigate-D9ieVXpG.js";import{N as $e}from"./index-BpPRg9nw.js";import{i as Ee}from"./ArrowRight-BRk4Hran.js";import{c as De}from"./use-entitlements-CRiiW0Ty.js";import{u as Pe}from"./use-deco-credits-CSPSqfW2.js";import{F as _e}from"./feature-paywall-Cuxz-yLH.js";import{i as Ie}from"./AlertCircle-ChqjWH7E.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=Y.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=U(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function Q(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(Q(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(Q(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(W,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),i=l.jsx(W,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function We(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function Qe(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function Ye(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ue(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);Qe({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(Ye,{Main:Ue,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:We,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
@@ -1,4 +1,4 @@
1
- import{c as $,b as j,r as _,j as f,m as B,a_ as at,t as se,b8 as Oe,a6 as ot,ho as lt,i as ct,K as ut,cd as ht,h as De,o as pt}from"./index-ztdGKvBm.js";import{u as dt,v as Be,f as ue,B as ft,w as gt,_ as P,$ as mt,a0 as kt,J as xt,K as D,a1 as ve,a2 as bt,e as wt,a3 as Se,a4 as yt,a5 as G,N as Fe,a6 as he,c as qe,a7 as pe,a8 as Tt,a9 as vt,s as St,aa as Mt,a as Et,E as At}from"./usage-stats-B0_Yl-r0.js";import{T as C,n as Rt,i as _t,E as $t}from"./editor-classes-DYlqLnQ7.js";import{a as Ct,e as Ue,s as Lt,S as It}from"./suggestion-aR93AXr2.js";import{B as zt}from"./index-DrJBZ2ZV.js";import{aF as Pt,aj as jt,ak as Nt,am as Ht,L as Ot,aZ as Dt,aK as Bt}from"./agent-icon-BYWtutu9.js";import{i as Ft}from"./SwitchHorizontal01-CMdpIiQk.js";import{s as qt}from"./Trash01-BxBhF2b8.js";import{k as Ut,a as Zt}from"./use-org-fs-D9dHgOYs.js";import{E as Me,i as Ze,b as Gt,c as Kt,d as Ge,A as Wt,e as Qt,f as Xt,g as Vt,j as Jt}from"./markdown-CJR_ooUO.js";import{s as Yt,T as en}from"./index-BL01DXCf.js";import{f as tn,a as nn,c as rn,C as sn,b as Ee}from"./command-C3tlrKUq.js";import{I as an}from"./icon-button-BH8Qviy5.js";function on(t){const e=$.c(30),{editor:n}=t,s=j(),[r,a]=_.useState(!1),[i,l]=_.useState(""),[o,h]=_.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const u=c;let p;e[2]!==n||e[3]!==r?(p=()=>{if(r){a(!1);return}const T=n.getAttributes("link").href;l(typeof T=="string"?T:""),h(!1),a(!0)},e[2]=n,e[3]=r,e[4]=p):p=e[4];const d=p;let g;e[5]!==n?(g=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),a(!1)},e[5]=n,e[6]=g):g=e[6];const x=g;let w;e[7]!==i||e[8]!==n||e[9]!==x?(w=()=>{const T=Rt(i);if(T===""){x();return}if(!_t(T)){h(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:T}).run(),a(!1)},e[7]=i,e[8]=n,e[9]=x,e[10]=w):w=e[10];const b=w;let y;e[11]!==s?(y=s("markdownEditor.link"),e[11]=s,e[12]=y):y=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsx(Pt,{size:14}),e[13]=v):v=e[13];let M;e[14]!==u||e[15]!==y||e[16]!==d?(M=f.jsx(C,{active:u,label:y,onClick:d,children:v}),e[14]=u,e[15]=y,e[16]=d,e[17]=M):M=e[17];let m;e[18]!==u||e[19]!==b||e[20]!==i||e[21]!==n||e[22]!==o||e[23]!==r||e[24]!==x||e[25]!==s?(m=r&&f.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md bg-popover p-1 shadow-soft",onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||a(!1)},children:[f.jsx("input",{autoFocus:!0,type:"text","aria-label":s("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:s("markdownEditor.linkPlaceholder"),value:i,onChange:T=>{l(T.target.value),h(!1)},onKeyDown:T=>{T.key==="Enter"?(T.preventDefault(),b()):T.key==="Escape"&&(T.preventDefault(),a(!1),n.chain().focus().run())},className:B("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")}),f.jsx(C,{active:!1,label:s("markdownEditor.linkApply"),onClick:b,children:f.jsx(at,{size:14})}),u&&f.jsx(C,{active:!1,label:s("markdownEditor.linkRemove"),onClick:x,children:f.jsx(qt,{size:14})})]}),e[18]=u,e[19]=b,e[20]=i,e[21]=n,e[22]=o,e[23]=r,e[24]=x,e[25]=s,e[26]=m):m=e[26];let k;return e[27]!==M||e[28]!==m?(k=f.jsxs("div",{className:"relative",children:[M,m]}),e[27]=M,e[28]=m,e[29]=k):k=e[29],k}const ne=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=f.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},Ae=t=>{const e=$.c(2),{children:n}=t;let s;return e[0]!==n?(s=f.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=s):s=e[1],s},Ke=[1,2,3],ln=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function cn(t){const e=$.c(20),{editor:n}=t,s=j(),[r,a]=_.useState(null);let i;e[0]!==n?(i={editor:n,selector:un},e[0]=n,e[1]=i):i=e[1];const l=dt(i);let o;e[2]!==s?(o=s("markdownEditor.heading1"),e[2]=s,e[3]=o):o=e[3];let h;e[4]!==s?(h=s("markdownEditor.heading2"),e[4]=s,e[5]=h):h=e[5];let c;e[6]!==s?(c=s("markdownEditor.heading3"),e[6]=s,e[7]=c):c=e[7];let u;e[8]!==o||e[9]!==h||e[10]!==c?(u={1:o,2:h,3:c},e[8]=o,e[9]=h,e[10]=c,e[11]=u):u=e[11];const p=u;let d;e[12]!==n||e[13]!==p||e[14]!==r||e[15]!==l||e[16]!==s?(d=r&&f.jsxs(zt,{editor:n,shouldShow:ln,appendTo:r,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":s("markdownEditor.toolbarAriaLabel"),children:[f.jsx(C,{active:l.bold,label:s("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:f.jsx(jt,{size:14})}),f.jsx(C,{active:l.italic,label:s("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:f.jsx(Nt,{size:14})}),f.jsx(C,{active:l.strike,label:s("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:f.jsx(Ht,{size:14})}),f.jsx(C,{active:l.code,label:s("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:f.jsx(Ot,{size:14})}),f.jsx(ne,{}),Ke.map((x,w)=>f.jsx(C,{active:l.headings[w]??!1,label:p[x],onClick:()=>n.chain().focus().toggleHeading({level:x}).run(),children:f.jsx(Ae,{children:`H${x}`})},x)),f.jsx(ne,{}),f.jsx(C,{active:l.bulletList,label:s("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:f.jsx(Ft,{size:14})}),f.jsx(C,{active:l.orderedList,label:s("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:f.jsx(Ae,{children:"1."})}),f.jsx(C,{active:l.blockquote,label:s("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:f.jsx(Dt,{size:14})}),f.jsx(ne,{}),f.jsx(on,{editor:n})]}),e[12]=n,e[13]=p,e[14]=r,e[15]=l,e[16]=s,e[17]=d):d=e[17];let g;return e[18]!==d?(g=f.jsx("div",{ref:a,className:"relative z-20",children:d}),e[18]=d,e[19]=g):g=e[19],g}function un(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:Ke.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const hn=10,pn=25,dn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function fn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??dn[t.type]??""}function gn(){const t=$.c(4),e=j(),{upload:n}=Ut(Me),s=Zt(Me);let r;return t[0]!==s||t[1]!==e||t[2]!==n?(r={uploadFile:async i=>{const l=Ze(i),o=l?hn:pn;if(i.size>o*1024*1024)return se.error(e("markdownEditor.fileTooLarge",{name:i.name,max:String(o)})),null;const h=l?Gt:Kt,c=`${crypto.randomUUID()}${fn(i)}`;try{return await n.mutateAsync({dir:h,files:[new File([i],c,{type:i.type})]}),s(`${h}/${c}`)}catch{return se.error(e("markdownEditor.uploadFailed",{name:i.name})),null}}},t[0]=s,t[1]=e,t[2]=n,t[3]=r):r=t[3],r}const X=new Be("uploadSlots"),mn=ue.create({name:"uploadSlots",addProseMirrorPlugins(){return[new ft({key:X,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(X);if(!t.docChanged&&!n)return e;const s=new Map;for(const[r,a]of e)s.set(r,t.mapping.map(a));if(n){const[r,a]=n;a===null?s.delete(r):s.set(r,a)}return s}}})]}});function ie(t,e,n){return t.setMeta(X,[e,n])}function kn(t,e){return X.getState(t)?.get(e)}function xn(t,e,n,s,r){const{schema:a}=t.state,i=a.nodes[n];if(!i)return;const l=i.create(s),o=t.state.selection.to===e,h=t.state.doc.resolve(e),c=h.parent.textBetween(Math.max(0,h.parentOffset-1),h.parentOffset,void 0,""),u=()=>a.text(" "),p=l.isInline?[...c&&!/\s/.test(c)?[u()]:[],l,u()]:l,d=t.state.tr.replaceWith(e,e,p);let g=e,x=e;d.mapping.maps.at(-1)?.forEach((M,m,k,T)=>{g=k,x=T});let w;d.doc.nodesBetween(g,x,(M,m)=>{M===l&&(w=m+M.nodeSize)});let b=w??x;w!==void 0&&l.isInline&&(b+=1);const y=a.nodes.paragraph;w!==void 0&&l.isBlock&&y&&(d.doc.resolve(w).nodeAfter?.isTextblock||d.insert(w,y.create()),b=w+1);const v=gt.near(d.doc.resolve(b));o&&d.setSelection(v),r&&ie(d,r,v.to),t.dispatch(d)}function bn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function wn(t=!0){const e=j(),{uploadFile:n}=gn(),s=_.useRef(n);s.current=n;const[r,a]=_.useState(0),i=_.useRef(0),l=u=>{i.current+=u,a(i.current)},o=(u,p,d)=>{if(!t||p.length===0)return!1;l(p.length);const g=Symbol("upload");return u.dispatch(ie(u.state.tr,g,d)),(async()=>{for(const x of p)try{const w=await s.current(x);if(!w||u.isDestroyed)continue;const b=Ze(x);xn(u,kn(u.state,g)??u.state.selection.to,b?"image":"attachment",b?{src:w,alt:x.name}:{href:w,name:x.name},g)}catch{se.error(e("markdownEditor.uploadFailed",{name:x.name}))}finally{l(-1)}u.isDestroyed||u.dispatch(ie(u.state.tr,g,null))})(),!0};return{pending:r,uploading:()=>i.current>0,uploadInto:o,handlePaste:(u,p)=>{const d=bn(p.clipboardData);return d.length===0?!1:(p.stopPropagation(),o(u,d,u.state.selection.to))},handleDrop:(u,p,d,g)=>{if(g)return!1;const x=Array.from(p.dataTransfer?.files??[]);if(x.length===0)return!1;const w=u.posAtCoords({left:p.clientX,top:p.clientY})?.pos;return w===void 0?!1:(p.stopPropagation(),o(u,x,w))}}}function de(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var O=de();function We(t){O=t}var N={exec:()=>null};function S(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(R.caret,"$1"),n=n.replace(r,i),s},getRegex:()=>new RegExp(n,e)};return s}var yn=(()=>{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)}}>`)},Tn=/^(?:[ \t]*(?:\n|$))+/,vn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Sn=/^ {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+|$)/,Mn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fe=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Qe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Xe=S(Qe).replace(/bull/g,fe).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(),En=S(Qe).replace(/bull/g,fe).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(),ge=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,An=/^[^\n]+/,me=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Rn=S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",me).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_n=S(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,fe).getRegex(),ee="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",ke=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$n=S("^ {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",ke).replace("tag",ee).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ve=S(ge).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",ee).getRegex(),Cn=S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ve).getRegex(),xe={blockquote:Cn,code:vn,def:Rn,fences:Sn,heading:Mn,hr:K,html:$n,lheading:Xe,list:_n,newline:Tn,paragraph:Ve,table:N,text:An},Re=S("^ *([^\\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",ee).getRegex(),Ln={...xe,lheading:En,table:Re,paragraph:S(ge).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Re).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",ee).getRegex()},In={...xe,html:S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ke).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:N,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(ge).replace("hr",K).replace("heading",` *#{1,6} *[^
1
+ import{c as $,b as j,r as _,j as f,m as B,a_ as at,t as se,b8 as Oe,a6 as ot,ho as lt,i as ct,K as ut,cd as ht,h as De,o as pt}from"./index-DmMMRYj8.js";import{u as dt,v as Be,f as ue,B as ft,w as gt,_ as P,$ as mt,a0 as kt,J as xt,K as D,a1 as ve,a2 as bt,e as wt,a3 as Se,a4 as yt,a5 as G,N as Fe,a6 as he,c as qe,a7 as pe,a8 as Tt,a9 as vt,s as St,aa as Mt,a as Et,E as At}from"./usage-stats-t4V02j9N.js";import{T as C,n as Rt,i as _t,E as $t}from"./editor-classes-BTlqa_af.js";import{a as Ct,e as Ue,s as Lt,S as It}from"./suggestion-BWmLdQzE.js";import{B as zt}from"./index-D9esfo9_.js";import{aF as Pt,aj as jt,ak as Nt,am as Ht,L as Ot,aZ as Dt,aK as Bt}from"./agent-icon-POwFjNIx.js";import{i as Ft}from"./SwitchHorizontal01-COUdvBDy.js";import{s as qt}from"./Trash01-D5Busco0.js";import{k as Ut,a as Zt}from"./use-org-fs-D9kszJK9.js";import{E as Me,i as Ze,b as Gt,c as Kt,d as Ge,A as Wt,e as Qt,f as Xt,g as Vt,j as Jt}from"./markdown-Cny0I0ZM.js";import{s as Yt,T as en}from"./index-CftUWKSR.js";import{f as tn,a as nn,c as rn,C as sn,b as Ee}from"./command-Ciz1JHkm.js";import{I as an}from"./icon-button-DbNvfQBp.js";function on(t){const e=$.c(30),{editor:n}=t,s=j(),[r,a]=_.useState(!1),[i,l]=_.useState(""),[o,h]=_.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const u=c;let p;e[2]!==n||e[3]!==r?(p=()=>{if(r){a(!1);return}const T=n.getAttributes("link").href;l(typeof T=="string"?T:""),h(!1),a(!0)},e[2]=n,e[3]=r,e[4]=p):p=e[4];const d=p;let g;e[5]!==n?(g=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),a(!1)},e[5]=n,e[6]=g):g=e[6];const x=g;let w;e[7]!==i||e[8]!==n||e[9]!==x?(w=()=>{const T=Rt(i);if(T===""){x();return}if(!_t(T)){h(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:T}).run(),a(!1)},e[7]=i,e[8]=n,e[9]=x,e[10]=w):w=e[10];const b=w;let y;e[11]!==s?(y=s("markdownEditor.link"),e[11]=s,e[12]=y):y=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsx(Pt,{size:14}),e[13]=v):v=e[13];let M;e[14]!==u||e[15]!==y||e[16]!==d?(M=f.jsx(C,{active:u,label:y,onClick:d,children:v}),e[14]=u,e[15]=y,e[16]=d,e[17]=M):M=e[17];let m;e[18]!==u||e[19]!==b||e[20]!==i||e[21]!==n||e[22]!==o||e[23]!==r||e[24]!==x||e[25]!==s?(m=r&&f.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md bg-popover p-1 shadow-soft",onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||a(!1)},children:[f.jsx("input",{autoFocus:!0,type:"text","aria-label":s("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:s("markdownEditor.linkPlaceholder"),value:i,onChange:T=>{l(T.target.value),h(!1)},onKeyDown:T=>{T.key==="Enter"?(T.preventDefault(),b()):T.key==="Escape"&&(T.preventDefault(),a(!1),n.chain().focus().run())},className:B("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")}),f.jsx(C,{active:!1,label:s("markdownEditor.linkApply"),onClick:b,children:f.jsx(at,{size:14})}),u&&f.jsx(C,{active:!1,label:s("markdownEditor.linkRemove"),onClick:x,children:f.jsx(qt,{size:14})})]}),e[18]=u,e[19]=b,e[20]=i,e[21]=n,e[22]=o,e[23]=r,e[24]=x,e[25]=s,e[26]=m):m=e[26];let k;return e[27]!==M||e[28]!==m?(k=f.jsxs("div",{className:"relative",children:[M,m]}),e[27]=M,e[28]=m,e[29]=k):k=e[29],k}const ne=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=f.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},Ae=t=>{const e=$.c(2),{children:n}=t;let s;return e[0]!==n?(s=f.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=s):s=e[1],s},Ke=[1,2,3],ln=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function cn(t){const e=$.c(20),{editor:n}=t,s=j(),[r,a]=_.useState(null);let i;e[0]!==n?(i={editor:n,selector:un},e[0]=n,e[1]=i):i=e[1];const l=dt(i);let o;e[2]!==s?(o=s("markdownEditor.heading1"),e[2]=s,e[3]=o):o=e[3];let h;e[4]!==s?(h=s("markdownEditor.heading2"),e[4]=s,e[5]=h):h=e[5];let c;e[6]!==s?(c=s("markdownEditor.heading3"),e[6]=s,e[7]=c):c=e[7];let u;e[8]!==o||e[9]!==h||e[10]!==c?(u={1:o,2:h,3:c},e[8]=o,e[9]=h,e[10]=c,e[11]=u):u=e[11];const p=u;let d;e[12]!==n||e[13]!==p||e[14]!==r||e[15]!==l||e[16]!==s?(d=r&&f.jsxs(zt,{editor:n,shouldShow:ln,appendTo:r,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":s("markdownEditor.toolbarAriaLabel"),children:[f.jsx(C,{active:l.bold,label:s("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:f.jsx(jt,{size:14})}),f.jsx(C,{active:l.italic,label:s("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:f.jsx(Nt,{size:14})}),f.jsx(C,{active:l.strike,label:s("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:f.jsx(Ht,{size:14})}),f.jsx(C,{active:l.code,label:s("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:f.jsx(Ot,{size:14})}),f.jsx(ne,{}),Ke.map((x,w)=>f.jsx(C,{active:l.headings[w]??!1,label:p[x],onClick:()=>n.chain().focus().toggleHeading({level:x}).run(),children:f.jsx(Ae,{children:`H${x}`})},x)),f.jsx(ne,{}),f.jsx(C,{active:l.bulletList,label:s("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:f.jsx(Ft,{size:14})}),f.jsx(C,{active:l.orderedList,label:s("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:f.jsx(Ae,{children:"1."})}),f.jsx(C,{active:l.blockquote,label:s("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:f.jsx(Dt,{size:14})}),f.jsx(ne,{}),f.jsx(on,{editor:n})]}),e[12]=n,e[13]=p,e[14]=r,e[15]=l,e[16]=s,e[17]=d):d=e[17];let g;return e[18]!==d?(g=f.jsx("div",{ref:a,className:"relative z-20",children:d}),e[18]=d,e[19]=g):g=e[19],g}function un(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:Ke.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const hn=10,pn=25,dn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function fn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??dn[t.type]??""}function gn(){const t=$.c(4),e=j(),{upload:n}=Ut(Me),s=Zt(Me);let r;return t[0]!==s||t[1]!==e||t[2]!==n?(r={uploadFile:async i=>{const l=Ze(i),o=l?hn:pn;if(i.size>o*1024*1024)return se.error(e("markdownEditor.fileTooLarge",{name:i.name,max:String(o)})),null;const h=l?Gt:Kt,c=`${crypto.randomUUID()}${fn(i)}`;try{return await n.mutateAsync({dir:h,files:[new File([i],c,{type:i.type})]}),s(`${h}/${c}`)}catch{return se.error(e("markdownEditor.uploadFailed",{name:i.name})),null}}},t[0]=s,t[1]=e,t[2]=n,t[3]=r):r=t[3],r}const X=new Be("uploadSlots"),mn=ue.create({name:"uploadSlots",addProseMirrorPlugins(){return[new ft({key:X,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(X);if(!t.docChanged&&!n)return e;const s=new Map;for(const[r,a]of e)s.set(r,t.mapping.map(a));if(n){const[r,a]=n;a===null?s.delete(r):s.set(r,a)}return s}}})]}});function ie(t,e,n){return t.setMeta(X,[e,n])}function kn(t,e){return X.getState(t)?.get(e)}function xn(t,e,n,s,r){const{schema:a}=t.state,i=a.nodes[n];if(!i)return;const l=i.create(s),o=t.state.selection.to===e,h=t.state.doc.resolve(e),c=h.parent.textBetween(Math.max(0,h.parentOffset-1),h.parentOffset,void 0,""),u=()=>a.text(" "),p=l.isInline?[...c&&!/\s/.test(c)?[u()]:[],l,u()]:l,d=t.state.tr.replaceWith(e,e,p);let g=e,x=e;d.mapping.maps.at(-1)?.forEach((M,m,k,T)=>{g=k,x=T});let w;d.doc.nodesBetween(g,x,(M,m)=>{M===l&&(w=m+M.nodeSize)});let b=w??x;w!==void 0&&l.isInline&&(b+=1);const y=a.nodes.paragraph;w!==void 0&&l.isBlock&&y&&(d.doc.resolve(w).nodeAfter?.isTextblock||d.insert(w,y.create()),b=w+1);const v=gt.near(d.doc.resolve(b));o&&d.setSelection(v),r&&ie(d,r,v.to),t.dispatch(d)}function bn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function wn(t=!0){const e=j(),{uploadFile:n}=gn(),s=_.useRef(n);s.current=n;const[r,a]=_.useState(0),i=_.useRef(0),l=u=>{i.current+=u,a(i.current)},o=(u,p,d)=>{if(!t||p.length===0)return!1;l(p.length);const g=Symbol("upload");return u.dispatch(ie(u.state.tr,g,d)),(async()=>{for(const x of p)try{const w=await s.current(x);if(!w||u.isDestroyed)continue;const b=Ze(x);xn(u,kn(u.state,g)??u.state.selection.to,b?"image":"attachment",b?{src:w,alt:x.name}:{href:w,name:x.name},g)}catch{se.error(e("markdownEditor.uploadFailed",{name:x.name}))}finally{l(-1)}u.isDestroyed||u.dispatch(ie(u.state.tr,g,null))})(),!0};return{pending:r,uploading:()=>i.current>0,uploadInto:o,handlePaste:(u,p)=>{const d=bn(p.clipboardData);return d.length===0?!1:(p.stopPropagation(),o(u,d,u.state.selection.to))},handleDrop:(u,p,d,g)=>{if(g)return!1;const x=Array.from(p.dataTransfer?.files??[]);if(x.length===0)return!1;const w=u.posAtCoords({left:p.clientX,top:p.clientY})?.pos;return w===void 0?!1:(p.stopPropagation(),o(u,x,w))}}}function de(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var O=de();function We(t){O=t}var N={exec:()=>null};function S(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(R.caret,"$1"),n=n.replace(r,i),s},getRegex:()=>new RegExp(n,e)};return s}var yn=(()=>{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)}}>`)},Tn=/^(?:[ \t]*(?:\n|$))+/,vn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Sn=/^ {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+|$)/,Mn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fe=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Qe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Xe=S(Qe).replace(/bull/g,fe).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(),En=S(Qe).replace(/bull/g,fe).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(),ge=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,An=/^[^\n]+/,me=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Rn=S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",me).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_n=S(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,fe).getRegex(),ee="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",ke=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$n=S("^ {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",ke).replace("tag",ee).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ve=S(ge).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",ee).getRegex(),Cn=S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ve).getRegex(),xe={blockquote:Cn,code:vn,def:Rn,fences:Sn,heading:Mn,hr:K,html:$n,lheading:Xe,list:_n,newline:Tn,paragraph:Ve,table:N,text:An},Re=S("^ *([^\\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",ee).getRegex(),Ln={...xe,lheading:En,table:Re,paragraph:S(ge).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Re).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",ee).getRegex()},In={...xe,html:S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ke).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:N,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(ge).replace("hr",K).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",Xe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Pn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Je=/^( {2,}|\\)\n(?!\s*$)/,jn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,F=/[\p{P}\p{S}]/u,te=/[\s\p{P}\p{S}]/u,be=/[^\s\p{P}\p{S}]/u,Nn=S(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,te).getRegex(),Ye=/(?!~)[\p{P}\p{S}]/u,Hn=/(?!~)[\s\p{P}\p{S}]/u,On=/(?:[^\s\p{P}\p{S}]|~)/u,Dn=S(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",yn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),et=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Bn=S(et,"u").replace(/punct/g,F).getRegex(),Fn=S(et,"u").replace(/punct/g,Ye).getRegex(),tt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",qn=S(tt,"gu").replace(/notPunctSpace/g,be).replace(/punctSpace/g,te).replace(/punct/g,F).getRegex(),Un=S(tt,"gu").replace(/notPunctSpace/g,On).replace(/punctSpace/g,Hn).replace(/punct/g,Ye).getRegex(),Zn=S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,be).replace(/punctSpace/g,te).replace(/punct/g,F).getRegex(),Gn=S(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,F).getRegex(),Kn="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Wn=S(Kn,"gu").replace(/notPunctSpace/g,be).replace(/punctSpace/g,te).replace(/punct/g,F).getRegex(),Qn=S(/\\(punct)/,"gu").replace(/punct/g,F).getRegex(),Xn=S(/^<(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(),Vn=S(ke).replace("(?:-->|$)","-->").getRegex(),Jn=S("^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",Vn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),V=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Yn=S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",V).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nt=S(/^!?\[(label)\]\[(ref)\]/).replace("label",V).replace("ref",me).getRegex(),rt=S(/^!?\[(ref)\](?:\[\])?/).replace("ref",me).getRegex(),er=S("reflink|nolink(?!\\()","g").replace("reflink",nt).replace("nolink",rt).getRegex(),_e=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,we={_backpedal:N,anyPunctuation:Qn,autolink:Xn,blockSkip:Dn,br:Je,code:Pn,del:N,delLDelim:N,delRDelim:N,emStrongLDelim:Bn,emStrongRDelimAst:qn,emStrongRDelimUnd:Zn,escape:zn,link:Yn,nolink:rt,punctuation:Nn,reflink:nt,reflinkSearch:er,tag:Jn,text:jn,url:N},tr={...we,link:S(/^!?\[(label)\]\((.*?)\)/).replace("label",V).getRegex(),reflink:S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V).getRegex()},ae={...we,emStrongRDelimAst:Un,emStrongLDelim:Fn,delLDelim:Gn,delRDelim:Wn,url:S(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",_e).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:S(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",_e).getRegex()},nr={...ae,br:S(Je).replace("{2,}","*").getRegex(),text:S(ae.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},W={normal:xe,gfm:Ln,pedantic:In},q={normal:we,gfm:ae,breaks:nr,pedantic:tr},rr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},$e=t=>rr[t];function z(t,e){if(e){if(R.escapeTest.test(t))return t.replace(R.escapeReplace,$e)}else if(R.escapeTestNoEncode.test(t))return t.replace(R.escapeReplaceNoEncode,$e);return t}function Ce(t){try{t=encodeURI(t).replace(R.percentDecode,"%")}catch{return null}return t}function Le(t,e){let n=t.replace(R.findPipe,(a,i,l)=>{let o=!1,h=i;for(;--h>=0&&l[h]==="\\";)o=!o;return o?"|":" |"}),s=n.split(R.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(R.slashPipe,"|");return s}function U(t,e,n){let s=t.length;if(s===0)return"";let r=0;for(;r<s&&t.charAt(s-r-1)===e;)r++;return t.slice(0,s-r)}function sr(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])n++;else if(t[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function ir(t,e=0){let n=e,s="";for(let r of t)if(r===" "){let a=4-n%4;s+=" ".repeat(a),n+=a}else s+=r,n++;return s}function Ie(t,e,n,s,r){let a=e.href,i=e.title||null,l=t[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,o}function ar(t,e,n){let s=t.match(n.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(`
3
3
  `).map(a=>{let i=a.match(n.other.beginningSpace);if(i===null)return a;let[l]=i;return l.length>=r.length?a.slice(r.length):a}).join(`
4
4
  `)}var J=class{options;rules;lexer;constructor(t){this.options=t||O}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:U(n,`
@@ -1 +1 @@
1
- import{d8 as _}from"./index-ztdGKvBm.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
1
+ import{d8 as _}from"./index-DmMMRYj8.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};