decocms 4.584.5 → 4.584.7

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 (474) hide show
  1. package/dist/client/assets/{AlertCircle-mj0sz0gj.js → AlertCircle-LERpHwFl.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DSUaBnyJ.js → AreaChart-BxoeWPuz.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft--TSM2Ux3.js → ArrowLeft-1PzfHfg2.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-BVFSrvKf.js → ArrowRight-DEqBtwSl.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-D2bbOB2w.js → ArrowUp-ZrZG10pa.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-CTUEdBiB.js → BookOpen01-Du4Om727.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-DynFqoj3.js → CartesianChart-CESYSx7X.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-_BlSk5IS.js → CategoricalChart-Blqz99On.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-BsBF4S8u.js → CheckCircle-BtWoVwB1.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-CNlehUMA.js → ChevronDown-CTtpSqtu.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-BdBrg7yc.js → ChevronSelectorVertical-CRLIgJUm.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-BIaMfxq-.js → ChevronUp-q3wzYuvO.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-gHUc2u28.js → CreditCard01-DdoSZEKk.js} +1 -1
  14. package/dist/client/assets/{Eye-Xo5rS9iJ.js → Eye-Cm9q3fEb.js} +1 -1
  15. package/dist/client/assets/{File02-uZRQiPOp.js → File02-CvFMCRDa.js} +1 -1
  16. package/dist/client/assets/{Globe04-DhsnPBDD.js → Globe04-DiWiLDtF.js} +1 -1
  17. package/dist/client/assets/{Image01-C5Xqhwp5.js → Image01-C60XTiE0.js} +1 -1
  18. package/dist/client/assets/{Key01-h9Y3uaT_.js → Key01-D94vE5H1.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-CPMSR00X.js → LayoutLeft-eyBzoPS2.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-CxV1rDqL.js → LinkBroken01-BZ3y0SMI.js} +1 -1
  21. package/dist/client/assets/MessageCircle01-BI9UTEVS.js +1 -0
  22. package/dist/client/assets/{Minus-D55MDhYc.js → Minus-N5F461bR.js} +1 -1
  23. package/dist/client/assets/{Monitor01-CBUOgSaC.js → Monitor01-CK_FwrHo.js} +1 -1
  24. package/dist/client/assets/{Play-zsnTCnBK.js → Play-CZH3MEMf.js} +1 -1
  25. package/dist/client/assets/{Plus-DAYIm6ow.js → Plus-D0avz2-9.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-Ccilwreq.js → ReferenceLine-Baor9_ls.js} +1 -1
  27. package/dist/client/assets/{SearchMd-CTSUPag9.js → SearchMd-CjGee94g.js} +1 -1
  28. package/dist/client/assets/{ShoppingBag01-CF4EYiC_.js → ShoppingBag01-Dl6ehSJq.js} +1 -1
  29. package/dist/client/assets/{Sun-B-xu6eHR.js → Sun-pelXqxnJ.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-qTGCOGX6.js → SwitchHorizontal01-BqvEtH8f.js} +1 -1
  31. package/dist/client/assets/{Tool01-Bscrvuft.js → Tool01-DdxQ5Wxa.js} +1 -1
  32. package/dist/client/assets/{Tooltip-EHWPdrLL.js → Tooltip-DBDYl8II.js} +1 -1
  33. package/dist/client/assets/{Trash01-CevYpZEM.js → Trash01-Dt5QksjR.js} +1 -1
  34. package/dist/client/assets/{TrendUp01-DMf7H3tv.js → TrendUp01-CrdizHzO.js} +1 -1
  35. package/dist/client/assets/{Upload01-C_8HEOMT.js → Upload01-WRNWPmM8.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-4mEtfdkD.js → UserCheck01-DUGYNveK.js} +1 -1
  37. package/dist/client/assets/{UserSquare-oo1b4ulW.js → UserSquare-DhKeYx3_.js} +1 -1
  38. package/dist/client/assets/{Users01-av_p4B03.js → Users01-BxsO8RcV.js} +1 -1
  39. package/dist/client/assets/{XClose-WYCPZpkD.js → XClose-Cr9lMv3y.js} +1 -1
  40. package/dist/client/assets/{Zap-C-VVHO-P.js → Zap-XiBmD0Uf.js} +1 -1
  41. package/dist/client/assets/{access-gate-CBj6VxJ7.js → access-gate-DMvQJ5NH.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-CVC64Gmd.js → add-connection-dialog-CdlYXpjf.js} +1 -1
  43. package/dist/client/assets/agent-app-BviX7PfD.js +1 -0
  44. package/dist/client/assets/agent-assets-DIhiJA1i.js +1 -0
  45. package/dist/client/assets/{agent-automation-e9KFVJPg.js → agent-automation-DTXDhxCV.js} +1 -1
  46. package/dist/client/assets/agent-automations-D2Ku4EMX.js +1 -0
  47. package/dist/client/assets/agent-blog-DQ5PYBSC.js +2 -0
  48. package/dist/client/assets/agent-blog-post-EXZBFbAe.js +2 -0
  49. package/dist/client/assets/agent-calendar-DyqX1vCD.js +1 -0
  50. package/dist/client/assets/{agent-capabilities-DEMFK1PG.js → agent-capabilities-B531K1j4.js} +1 -1
  51. package/dist/client/assets/agent-connect-sources-C6BkVz2l.js +1 -0
  52. package/dist/client/assets/agent-deck-OVvox7Qs.js +1 -0
  53. package/dist/client/assets/agent-e2e-BPcap2Q_.js +1 -0
  54. package/dist/client/assets/agent-experiments-ezhbhr3h.js +1 -0
  55. package/dist/client/assets/agent-file-D3VWXqNY.js +1 -0
  56. package/dist/client/assets/agent-hosting-DlNqwCuw.js +1 -0
  57. package/dist/client/assets/agent-icon-CoK8596D.js +1 -0
  58. package/dist/client/assets/agent-library-C7EtfeEr.js +1 -0
  59. package/dist/client/assets/agent-library-file-B2FgcsHJ.js +1 -0
  60. package/dist/client/assets/agent-overview-DYQAGPfG.js +1 -0
  61. package/dist/client/assets/{agent-releases-D4ESN3iT.js → agent-releases-BX_f-tUO.js} +1 -1
  62. package/dist/client/assets/agent-settings-D0aJ2WEC.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-DBCTlamd.js → agent-site-editor-C2kZSlyi.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-BtLscisv.js +2 -0
  65. package/dist/client/assets/agent-site-editor-content-qbHKbK69.js +1 -0
  66. package/dist/client/assets/agent-site-editor-preview-jNuzW-j_.js +1 -0
  67. package/dist/client/assets/agent-view-IoGHNau6.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-BZTSZPH3.js → agent-view-guard-D_OOi9k-.js} +1 -1
  69. package/dist/client/assets/{ai-providers-Bd027SSh.js → ai-providers-N0kyktgZ.js} +1 -1
  70. package/dist/client/assets/{alert-fpttYoSQ.js → alert-D9u34EuS.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-BqryzJvo.js → analytics-sections-DdufhVqP.js} +1 -1
  72. package/dist/client/assets/api-keys-D0dVCkfj.js +1 -0
  73. package/dist/client/assets/{api-keys-DLlJejJF.js → api-keys-D2iSl3qQ.js} +1 -1
  74. package/dist/client/assets/app-editor-BUf7R47i.js +1 -0
  75. package/dist/client/assets/asset-utils-2loXzYTh.js +1 -0
  76. package/dist/client/assets/{auth-BOZ5swZI.js → auth-DF8kNBcM.js} +1 -1
  77. package/dist/client/assets/{auth-catchall-DXChUDcZ.js → auth-catchall-GloGR8rY.js} +1 -1
  78. package/dist/client/assets/{auth-entry-DMbaj7KI.js → auth-entry-Cn4ErOzl.js} +1 -1
  79. package/dist/client/assets/{auth-split-layout-DNd6b-pH.js → auth-split-layout-Dv6n6WUU.js} +1 -1
  80. package/dist/client/assets/{authenticate-and-persist-oauth-Cj46Ik0_.js → authenticate-and-persist-oauth-Bj5ykVgk.js} +1 -1
  81. package/dist/client/assets/{automation-list-row-Cpitkm-C.js → automation-list-row-DbAlWe8K.js} +1 -1
  82. package/dist/client/assets/{automation-runs-BxBjhLC7.js → automation-runs-CBMuf4ZB.js} +1 -1
  83. package/dist/client/assets/automations-CPzT36LA.js +1 -0
  84. package/dist/client/assets/{badge-CEYLDtOG.js → badge-BuRW7gbq.js} +1 -1
  85. package/dist/client/assets/{block-document-DJdZyw2U.js → block-document-CKqO6P9b.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-LI4fVaaR.js → blocks-preview-workspace-context-BXZAhTnG.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-Bx0tgd5u.js → blocks-tab-states-B1xVnp-k.js} +1 -1
  88. package/dist/client/assets/{blog-preview-url-6gNfi5Cv.js → blog-preview-url-BiKkREf8.js} +1 -1
  89. package/dist/client/assets/{blog-schema-BKDvfgHw.js → blog-schema-CAV9CGrP.js} +1 -1
  90. package/dist/client/assets/{blog-source-gate-BClmYTyo.js → blog-source-gate-ya88vBvU.js} +1 -1
  91. package/dist/client/assets/{blog-view-gate-eJ0uCj97.js → blog-view-gate-HwbK-xOk.js} +1 -1
  92. package/dist/client/assets/{buckets-DWNc5IQi.js → buckets-DLb8jm5H.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-CncoFUT6.js → build-improve-prompt-doc-DgL7K8YT.js} +1 -1
  94. package/dist/client/assets/{calendar-B0VrIuVV.js → calendar-D5SETI9f.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-D7_TKHDu.js → capability-load-error-B2sM2CpK.js} +1 -1
  96. package/dist/client/assets/category-editor-oYvPx2p2.js +1 -0
  97. package/dist/client/assets/{category-tree-T_JTuIiu.js → category-tree-C9T6n547.js} +1 -1
  98. package/dist/client/assets/{chart-Ef5OJL7Y.js → chart-BbXdQRqA.js} +1 -1
  99. package/dist/client/assets/{chat-context-BUMEnIPW.js → chat-context-cgQtGcxn.js} +1 -1
  100. package/dist/client/assets/{chat-draft-B7hvjq7e.js → chat-draft-BhR9lYJt.js} +1 -1
  101. package/dist/client/assets/{checkbox-BUvWR-iD.js → checkbox-BRBpFYe8.js} +1 -1
  102. package/dist/client/assets/choose-editor-BQuCaR6y.js +1 -0
  103. package/dist/client/assets/{cli-auth-success-CIy6cPVO.js → cli-auth-success-B1RUmLvl.js} +1 -1
  104. package/dist/client/assets/cms-settings-editor-t9adizi8.js +1 -0
  105. package/dist/client/assets/{cms-store-drafts-BNAdDXxB.js → cms-store-drafts-mx6LCGke.js} +1 -1
  106. package/dist/client/assets/{collapsible-DYCInqz3.js → collapsible-FSqiIEKF.js} +1 -1
  107. package/dist/client/assets/collection-detail-imb7nFuz.js +1 -0
  108. package/dist/client/assets/{collection-display-button-C3xi0T_X.js → collection-display-button-BBlLsx_Y.js} +1 -1
  109. package/dist/client/assets/{collection-search-CMlKHTQ0.js → collection-search-CRXrZcjK.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-DbIa5pBT.js → collection-table-wrapper-CHHFYHOQ.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-ZW6Qb_Ul.js → collection-tabs-GTBWPOeS.js} +1 -1
  112. package/dist/client/assets/{combobox-CMR7JQ5s.js → combobox-B0ehX19R.js} +1 -1
  113. package/dist/client/assets/{command-DAachgGl.js → command-B42gKY6M.js} +1 -1
  114. package/dist/client/assets/{companion-mcps-section-DFAviA9V.js → companion-mcps-section-DSn40AIW.js} +1 -1
  115. package/dist/client/assets/{config-CVrGKu1z.js → config-Cf7vj7Rh.js} +1 -1
  116. package/dist/client/assets/{connect-Dv780Ao_.js → connect-aiK89Vil.js} +3 -3
  117. package/dist/client/assets/{connect-key-BcTw1Dit.js → connect-key-BE8Ve88O.js} +1 -1
  118. package/dist/client/assets/{connect-layout-DVKIDoAk.js → connect-layout-CecU9htL.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-DmvQjMo_.js → connect-source-dialog-ClSByKPX.js} +1 -1
  120. package/dist/client/assets/{connection-CqG6Tj46.js → connection-CUNj386D.js} +1 -1
  121. package/dist/client/assets/{connection-card-CMRGPAUW.js → connection-card-CoPsfM-t.js} +1 -1
  122. package/dist/client/assets/connection-detail-ChnZ4wVO.js +1 -0
  123. package/dist/client/assets/{connection-form-helpers-BliOgdtt.js → connection-form-helpers-sEyGhYPt.js} +1 -1
  124. package/dist/client/assets/{connection-slug-BMyTAhb7.js → connection-slug-Dp27dyiZ.js} +1 -1
  125. package/dist/client/assets/connections-BAYvQyim.js +1 -0
  126. package/dist/client/assets/{content-tab-B1BKIfBg.js → content-tab-B_euqf89.js} +3 -3
  127. package/dist/client/assets/context-CprOX5Fk.js +1 -0
  128. package/dist/client/assets/{context-menu-dPQDOknl.js → context-menu-DumjepYq.js} +1 -1
  129. package/dist/client/assets/{context-shell-CU-clPo7.js → context-shell-DqsQoUXU.js} +4 -4
  130. package/dist/client/assets/{create-organization-dialog-BMVp8RKI.js → create-organization-dialog-D3lasgzU.js} +1 -1
  131. package/dist/client/assets/{daily-pulse-BIfjhIvm.js → daily-pulse-BigzX6_X.js} +1 -1
  132. package/dist/client/assets/{delete-copy-Dyr7i9lK.js → delete-copy-Kctb2mBn.js} +1 -1
  133. package/dist/client/assets/{device-hint-DBfDHhL1.js → device-hint-BUPNp7Gx.js} +1 -1
  134. package/dist/client/assets/discover-C3ARrhth.js +1 -0
  135. package/dist/client/assets/{domain-settings-l_JDVQfq.js → domain-settings-CNSII-3v.js} +1 -1
  136. package/dist/client/assets/{drawer-BtNmmbgW.js → drawer-JNxusvzc.js} +1 -1
  137. package/dist/client/assets/{editor-DJNkhCaU.js → editor-5IlECLt2.js} +1 -1
  138. package/dist/client/assets/{editor-classes-D6VscvFm.js → editor-classes-BQUsTFeI.js} +1 -1
  139. package/dist/client/assets/{empty-message-BFHsH7_h.js → empty-message-xWDO9UOL.js} +1 -1
  140. package/dist/client/assets/{empty-state-Y9RPHES1.js → empty-state-Dy-zGk3L.js} +1 -1
  141. package/dist/client/assets/{empty-state-FI4NppsL.js → empty-state-yZFAU14m.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-Bp3jeDLT.js → experiments-tab-choice-BNTM2Tep.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-jaNfclWY.js → extract-connection-data-DWNh_g9w.js} +1 -1
  144. package/dist/client/assets/{feature-gate-32y7GiUu.js → feature-gate-OQExXuGJ.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-nyy14OlO.js → feature-paywall-BFla-pHe.js} +1 -1
  146. package/dist/client/assets/file-explorer-BI_RiaE-.js +2 -0
  147. package/dist/client/assets/{file-preview-DOlPWZsT.js → file-preview-D3IaHRZs.js} +1 -1
  148. package/dist/client/assets/{file-share-button-fnsd2V0Q.js → file-share-button-0grSC9Ok.js} +2 -2
  149. package/dist/client/assets/{file-type-icon-Bw6tHUJI.js → file-type-icon-BDItiN_6.js} +1 -1
  150. package/dist/client/assets/{folder-icon-A6dxvF3y.js → folder-icon-BbdGhqVB.js} +1 -1
  151. package/dist/client/assets/{form-CE_i7Gc_.js → form-D440wdg0.js} +1 -1
  152. package/dist/client/assets/{frame-navigation-D0o7MHwc.js → frame-navigation-uxp1vpqb.js} +1 -1
  153. package/dist/client/assets/{gateway-client-CuVQGtSK.js → gateway-client-DJgic-Qj.js} +1 -1
  154. package/dist/client/assets/{general-CF4LBOhX.js → general-O2NogS0h.js} +1 -1
  155. package/dist/client/assets/{github-icon-BBtraw32.js → github-icon-DY-ZDpjv.js} +1 -1
  156. package/dist/client/assets/{held-block-view-BCDffeao.js → held-block-view-Ci67S_86.js} +1 -1
  157. package/dist/client/assets/home-LH0qEA7E.js +1 -0
  158. package/dist/client/assets/{home-overview-CvjbBnOC.js → home-overview-B3mRGhL1.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-BV7FtBoJ.js → hosted-reconcile-CEmYvj4T.js} +1 -1
  160. package/dist/client/assets/{icon-button-vJpGdaXv.js → icon-button-DemWGnFJ.js} +1 -1
  161. package/dist/client/assets/{index-CvQo8gKP.js → index-8WAjXpHp.js} +1 -1
  162. package/dist/client/assets/{index-BfWp2Wnw.js → index-B044ByKY.js} +5 -5
  163. package/dist/client/assets/{index-C-SbeINf.js → index-BGR769_k.js} +1 -1
  164. package/dist/client/assets/index-BIjy4D7G.js +4 -0
  165. package/dist/client/assets/{index-Bq8aKp2l.js → index-BWFWeVYS.js} +1 -1
  166. package/dist/client/assets/{index-DqFWx3BB.js → index-BZnXvIYx.js} +1 -1
  167. package/dist/client/assets/{index-BO5G51Y2.js → index-BtoOPxq3.js} +1 -1
  168. package/dist/client/assets/{index-BBKDsc5X.js → index-CJnIUpq6.js} +1 -1
  169. package/dist/client/assets/{index-FE1RDBz7.js → index-CTnVElJ7.js} +1 -1
  170. package/dist/client/assets/{index-DN6wMhlh.js → index-DFtBQG6f.js} +1 -1
  171. package/dist/client/assets/{index-BDN2Il8W.js → index-DZ02XBmW.js} +1 -1
  172. package/dist/client/assets/{index-CJvXv5nj.js → index-Dd7W9LAl.js} +1 -1
  173. package/dist/client/assets/{index-CcEK8GbM.js → index-DiHieAhX.js} +1 -1
  174. package/dist/client/assets/{index-C_tC1dxx.js → index-LR929nhM.js} +1 -1
  175. package/dist/client/assets/{index-BFZAeRbT.js → index-emJ-SpC_.js} +1 -1
  176. package/dist/client/assets/{index-DvdlZugw.js → index-kBmh1EWB.js} +1 -1
  177. package/dist/client/assets/index-qmdwa9p_.js +1 -0
  178. package/dist/client/assets/{index-redirect-Bl5G9WWk.js → index-redirect-DFNmAEUS.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-1nr0P0K0.js → infiniteQueryObserver-CkKuSwnM.js} +1 -1
  180. package/dist/client/assets/{infra-billing-ho67U0rR.js → infra-billing-v-PyLbec.js} +1 -1
  181. package/dist/client/assets/{input-BNlFS4tL.js → input-Bxos3E1r.js} +1 -1
  182. package/dist/client/assets/{input-BJ5cUSYm.js → input-CmfobyY5.js} +4 -4
  183. package/dist/client/assets/{integration-icon-C4zzzxaS.js → integration-icon-D8qlWjgY.js} +1 -1
  184. package/dist/client/assets/{item-actions-B-wWhBMR.js → item-actions-B-BkLlVy.js} +1 -1
  185. package/dist/client/assets/{jira-icon-geKtCB2v.js → jira-icon-CuWy2cPQ.js} +1 -1
  186. package/dist/client/assets/{label-CWaQ3ANC.js → label-CTNjOu1p.js} +1 -1
  187. package/dist/client/assets/{layout-D8a54-AV.js → layout-DRNr969-.js} +1 -1
  188. package/dist/client/assets/{legacy-admin-welcome-dialog-BnEG9TvC.js → legacy-admin-welcome-dialog-BdLr3pNE.js} +1 -1
  189. package/dist/client/assets/{legacy-agents-deep-D40bR2el.js → legacy-agents-deep-B9pNhw8H.js} +1 -1
  190. package/dist/client/assets/{legacy-main-redirect-Fa4p1NoA.js → legacy-main-redirect-VxHPv_GC.js} +1 -1
  191. package/dist/client/assets/library-DhJCQWEt.js +1 -0
  192. package/dist/client/assets/{library-tab-Bxyd3n6f.js → library-tab-DAKFtQAS.js} +1 -1
  193. package/dist/client/assets/{login-Cdi7iEkU.js → login-BywnxCyj.js} +1 -1
  194. package/dist/client/assets/{markdown-NetMLX1B.js → markdown-D9jcZKqO.js} +1 -1
  195. package/dist/client/assets/{mcp-app-renderer-OOnse3pT.js → mcp-app-renderer-B-8cpbuY.js} +1 -1
  196. package/dist/client/assets/{mcp-oauth-DOaDVyhA.js → mcp-oauth-CI1piP1i.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-C138KPCE.js → mcp-oauth-DcxKJjL0.js} +1 -1
  198. package/dist/client/assets/{members-r0zAY-Qq.js → members-BodivWaf.js} +1 -1
  199. package/dist/client/assets/{memory-aLB_WhbI.js → memory-B3iqunKn.js} +1 -1
  200. package/dist/client/assets/{mock-board-Dl0qBjh7.js → mock-board-DeVwaxGw.js} +3 -3
  201. package/dist/client/assets/{monaco-editor-BJmxWrxj.js → monaco-editor-C7Pj09eb.js} +1 -1
  202. package/dist/client/assets/{monitoring-Cd-32_wp.js → monitoring-BEBDZh-O.js} +1 -1
  203. package/dist/client/assets/{monitoring-stats-row-C4l9QgAZ.js → monitoring-stats-row-CevJ0W2J.js} +1 -1
  204. package/dist/client/assets/{multi-select-B_L-qOo_.js → multi-select-BrPmuUJB.js} +1 -1
  205. package/dist/client/assets/{mustache-DsBc8nE5.js → mustache-BzqyxB7g.js} +1 -1
  206. package/dist/client/assets/{named-rule-step-C6gSKxIZ.js → named-rule-step-Cst60jz3.js} +1 -1
  207. package/dist/client/assets/{named-rule-view-D6a00Kd0.js → named-rule-view-x7JG4_kw.js} +1 -1
  208. package/dist/client/assets/{new-project-dialog-B6Lwo0Gj.js → new-project-dialog-BXZNX64Z.js} +1 -1
  209. package/dist/client/assets/{new-project-store-DQsI7Up8.js → new-project-store-D_Og4-mf.js} +1 -1
  210. package/dist/client/assets/{oauth-callback-ZiXhFHTL.js → oauth-callback-CrPnZ5jk.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-ai-provider-G3iL8oeJ.js → oauth-callback-ai-provider-DQus4mxS.js} +1 -1
  212. package/dist/client/assets/{oauth-consent-BXyh0gna.js → oauth-consent-CQicRgof.js} +1 -1
  213. package/dist/client/assets/{onboarding-DAsPAll8.js → onboarding-BLI841xC.js} +1 -1
  214. package/dist/client/assets/openai-conversation-CsEmmVGs.js +3 -0
  215. package/dist/client/assets/{optimistic-project-sidebar-views-DFcCZ-o3.js → optimistic-project-sidebar-views-CFaDDb2l.js} +1 -1
  216. package/dist/client/assets/{order-monitor-day-C70gELqf.js → order-monitor-day-1IdfHt6a.js} +1 -1
  217. package/dist/client/assets/{organization-choice-DU0Iu2sl.js → organization-choice-n6RvuLql.js} +1 -1
  218. package/dist/client/assets/{orgs-BX0lk0zT.js → orgs-BZ0aeAEN.js} +1 -1
  219. package/dist/client/assets/{own-accounts-section-F5Hyapdn.js → own-accounts-section-DF2o9iTS.js} +1 -1
  220. package/dist/client/assets/{pair-B9IOPXjq.js → pair-C3H4DFS8.js} +6 -6
  221. package/dist/client/assets/{parse-sections--l6s_VwH.js → parse-sections-CONMKcn4.js} +4 -4
  222. package/dist/client/assets/plan-CurIUA4r.js +1 -0
  223. package/dist/client/assets/{plan-ladder-NC686t6f.js → plan-ladder-B5iRPBN6.js} +1 -1
  224. package/dist/client/assets/{plan-usage-card-WBfanqrN.js → plan-usage-card-DYD_YlVx.js} +1 -1
  225. package/dist/client/assets/{popover-oFcDtUvN.js → popover-BkhFtaxb.js} +1 -1
  226. package/dist/client/assets/post-calendar-D81wAfZ5.js +1 -0
  227. package/dist/client/assets/{post-editor-CcQmW5GV.js → post-editor-ynyEhGiV.js} +2 -2
  228. package/dist/client/assets/preview-content-DrjVirV6.js +1 -0
  229. package/dist/client/assets/{preview-dialog-Cded3kAU.js → preview-dialog-DjcGWS7E.js} +1 -1
  230. package/dist/client/assets/{preview-panel-rChZiu-N.js → preview-panel-CSkZBl4d.js} +1 -1
  231. package/dist/client/assets/{preview-tab-zxzhDMiQ.js → preview-tab-mGFlw_oF.js} +3 -3
  232. package/dist/client/assets/{product-picker-dialog-CX9KvtZh.js → product-picker-dialog-CFDF-X4h.js} +1 -1
  233. package/dist/client/assets/{profile-NWB9QWdA.js → profile-C9kP9Ndl.js} +1 -1
  234. package/dist/client/assets/project-app-view-Bgoqdt-m.js +1 -0
  235. package/dist/client/assets/{project-apps-D28U2fPi.js → project-apps-BRK2HTAW.js} +1 -1
  236. package/dist/client/assets/{project-icon-WyFXKdgN.js → project-icon-ycJeRtUY.js} +1 -1
  237. package/dist/client/assets/{project-index-COi5kduS.js → project-index-CTiqM4uG.js} +1 -1
  238. package/dist/client/assets/project-reports-IkD_LiW8.js +1 -0
  239. package/dist/client/assets/project-tasks-DAsLsvm5.js +1 -0
  240. package/dist/client/assets/projects-C7hOF9VU.js +1 -0
  241. package/dist/client/assets/{projects-empty-state-Dvqp2Zzy.js → projects-empty-state-sSPrRQ63.js} +1 -1
  242. package/dist/client/assets/{prompts-DhLlttmt.js → prompts-CS5QdOG-.js} +1 -1
  243. package/dist/client/assets/record-editor-Ccowc9mE.js +1 -0
  244. package/dist/client/assets/redirect-editor-lWYhYszZ.js +1 -0
  245. package/dist/client/assets/reports-CDTNLEHR.js +1 -0
  246. package/dist/client/assets/{reports-CREVrO7v.js → reports-Dit53cvs.js} +1 -1
  247. package/dist/client/assets/reports-onboarding-BxtEMz2c.js +1 -0
  248. package/dist/client/assets/{reports-tab-C197xYdE.js → reports-tab-CYBOOiKe.js} +2 -2
  249. package/dist/client/assets/repositories-BTdSIBC8.js +1 -0
  250. package/dist/client/assets/{repositories-CWMzkWDA.js → repositories-fdsYTlj_.js} +1 -1
  251. package/dist/client/assets/{repository-binding-BDu0tU0n.js → repository-binding-CS8khEsh.js} +1 -1
  252. package/dist/client/assets/{repository-picker-DKoD0HVQ.js → repository-picker-D9E_hkBL.js} +1 -1
  253. package/dist/client/assets/{require-capability-DXiZ0OON.js → require-capability-BouyAFmv.js} +1 -1
  254. package/dist/client/assets/{required-auth-layout-ZTLOobSH.js → required-auth-layout-BvHcocCT.js} +1 -1
  255. package/dist/client/assets/{reset-password-DiEnHrUJ.js → reset-password-ElmXf_OL.js} +1 -1
  256. package/dist/client/assets/resizable-BAb_Qbk7.js +1 -0
  257. package/dist/client/assets/{resolve-tab-icon-C99S9oDL.js → resolve-tab-icon-iMM8vyOS.js} +1 -1
  258. package/dist/client/assets/{review-settings-Brit3pLv.js → review-settings-HXhptTca.js} +1 -1
  259. package/dist/client/assets/{role-color-Ddqyp0w6.js → role-color-BXXcmodD.js} +1 -1
  260. package/dist/client/assets/roles-PBUgpFvf.js +1 -0
  261. package/dist/client/assets/route-BLavQpKZ.js +1 -0
  262. package/dist/client/assets/route-BfsrelsT.js +1 -0
  263. package/dist/client/assets/route-D6LPIVGu.js +1 -0
  264. package/dist/client/assets/{route-page-header-BeG7kyQP.js → route-page-header-DBxq_gQt.js} +1 -1
  265. package/dist/client/assets/{sandbox-git-api-Bwhb8cKq.js → sandbox-git-api-DGN8-m6o.js} +1 -1
  266. package/dist/client/assets/{sandbox-lifecycle-context-Dq2ETPAf.js → sandbox-lifecycle-context-Dsl7MNkK.js} +1 -1
  267. package/dist/client/assets/{save-status-BXxefOdA.js → save-status-ClChNGnX.js} +1 -1
  268. package/dist/client/assets/{schema-CI1Jg9rW.js → schema-C0HTL5Tu.js} +1 -1
  269. package/dist/client/assets/{schema-BJIhJXy6.js → schema-Cqzs-QeL.js} +1 -1
  270. package/dist/client/assets/{scroll-area-Dt-NcLdT.js → scroll-area-Bie9g__T.js} +1 -1
  271. package/dist/client/assets/{search-input-BjRiuWL9.js → search-input-BS--Nv9L.js} +1 -1
  272. package/dist/client/assets/{search-toggle-BOD5VZ7W.js → search-toggle-CgF8nJsm.js} +1 -1
  273. package/dist/client/assets/{secret-picker-CHt8ZrjG.js → secret-picker-BNwL5hiQ.js} +1 -1
  274. package/dist/client/assets/{secrets-DGZeS_5r.js → secrets-mEPeiO88.js} +1 -1
  275. package/dist/client/assets/{section-array-field-CYFq6Yfv.js → section-array-field-DvNS_bMu.js} +1 -1
  276. package/dist/client/assets/{sections-DBJ1YFK4.js → sections-eYfT1FTs.js} +1 -1
  277. package/dist/client/assets/sections-editor-CJzqzr9r.js +1 -0
  278. package/dist/client/assets/{select-BXZoshA8.js → select-OIt3OszY.js} +1 -1
  279. package/dist/client/assets/{select-model-Corsllp1.js → select-model-Bn37eZFm.js} +1 -1
  280. package/dist/client/assets/{seo-editor-CG0nowoP.js → seo-editor-DIBtbvVO.js} +1 -1
  281. package/dist/client/assets/{separator-Jij0j-j1.js → separator-CmNxBXQO.js} +1 -1
  282. package/dist/client/assets/{session-runtime-DFmRKpVg.js → session-runtime-C4M0661Q.js} +1 -1
  283. package/dist/client/assets/settings-tab-7gkiYnXk.js +1 -0
  284. package/dist/client/assets/{sheet-DT44IVE2.js → sheet-DjUF157Q.js} +1 -1
  285. package/dist/client/assets/shell-layout-Ck-LcWXa.js +1 -0
  286. package/dist/client/assets/{site-draft-actions-ChPsoqte.js → site-draft-actions-BNe0LgqH.js} +1 -1
  287. package/dist/client/assets/{site-draft-view-CIc7HrWU.js → site-draft-view-DUB-waYG.js} +1 -1
  288. package/dist/client/assets/site-editor-6nVJ09KZ.js +1 -0
  289. package/dist/client/assets/{site-editor-toast-D2nHZREM.js → site-editor-toast-B5ZcohXf.js} +1 -1
  290. package/dist/client/assets/skills-rkxB_As2.js +1 -0
  291. package/dist/client/assets/{slider-DCaB9Ine.js → slider-BYY7RXku.js} +1 -1
  292. package/dist/client/assets/{sortable.esm-CfU7eu9S.js → sortable.esm-BwalEKhk.js} +1 -1
  293. package/dist/client/assets/{sso-BEMT6JJw.js → sso-C9Pa62fe.js} +1 -1
  294. package/dist/client/assets/{suggestion-BO6GNdWk.js → suggestion-CI_CTWom.js} +1 -1
  295. package/dist/client/assets/{super-agent-icon-Cu5ZQ2qC.js → super-agent-icon-B9A1_wXh.js} +1 -1
  296. package/dist/client/assets/{switch-CfCCzQdg.js → switch-DacUnlWF.js} +1 -1
  297. package/dist/client/assets/{synced-repos-gHf8sPwV.js → synced-repos-BT9oPWey.js} +1 -1
  298. package/dist/client/assets/{tab-icon-glyph-hPo-Gg9t.js → tab-icon-glyph-ClKMuyIu.js} +1 -1
  299. package/dist/client/assets/{table-BG-lRGNn.js → table-Cm1piWr1.js} +1 -1
  300. package/dist/client/assets/{tabs-DQRKyhjY.js → tabs-DR_a3cy9.js} +1 -1
  301. package/dist/client/assets/{task-board-B-hxKp5U.js → task-board-D8qsFD59.js} +1 -1
  302. package/dist/client/assets/{task-key-DjK7Kw8s.js → task-key-CzsPirbU.js} +1 -1
  303. package/dist/client/assets/{task-route-BwC6Um2K.js → task-route-CMJtH4RR.js} +1 -1
  304. package/dist/client/assets/{task-status-BiZeTmx1.js → task-status-CCkEahz2.js} +1 -1
  305. package/dist/client/assets/taskboard-analytics-BQInccqX.js +1 -0
  306. package/dist/client/assets/{tasks-Dac_YLSj.js → tasks-BwilCZ5E.js} +1 -1
  307. package/dist/client/assets/tasks-Dn1EYgHL.js +1 -0
  308. package/dist/client/assets/{textarea-DAZ3avm9.js → textarea-1IXo7Val.js} +1 -1
  309. package/dist/client/assets/thread-analytics-hUhZXVvR.js +1 -0
  310. package/dist/client/assets/thread-button-D39uEd_8.js +1 -0
  311. package/dist/client/assets/{thread-intent-BtcwbxTJ.js → thread-intent-CSpTLxvv.js} +1 -1
  312. package/dist/client/assets/{thread-route-Ds6Wombz.js → thread-route-BVjT00pZ.js} +1 -1
  313. package/dist/client/assets/thread-route-DaP36Fb6.js +1 -0
  314. package/dist/client/assets/{thread-sheet-body-Kjk5YJ_A.js → thread-sheet-body-DMUg61oD.js} +1 -1
  315. package/dist/client/assets/{time-range-picker-y-R1DMgB.js → time-range-picker-DCFWQQ5w.js} +1 -1
  316. package/dist/client/assets/{toggle-group-BgBCZLaa.js → toggle-group-R442gvym.js} +1 -1
  317. package/dist/client/assets/{tool-set-selector-tZKV1bCv.js → tool-set-selector-BCIZdKwr.js} +1 -1
  318. package/dist/client/assets/{toolbar-icon-button-CaY1wsmY.js → toolbar-icon-button-B3baDmWg.js} +1 -1
  319. package/dist/client/assets/{tooltip-CqV-qcYU.js → tooltip-BCI4hJNA.js} +1 -1
  320. package/dist/client/assets/{tooltipContext-5-7GWaNH.js → tooltipContext-DxsRC16N.js} +1 -1
  321. package/dist/client/assets/{track-qijzY7O9.js → track-BZMkb_90.js} +1 -1
  322. package/dist/client/assets/{types-DRaoZ_4I.js → types-nc7fS2ca.js} +1 -1
  323. package/dist/client/assets/{url-slug-CTOX8lQF.js → url-slug-Bzl0GF3m.js} +1 -1
  324. package/dist/client/assets/{usage-stats-BXxRbW0f.js → usage-stats-J0rd59WB.js} +1 -1
  325. package/dist/client/assets/{use-ai-providers-DgsrHLV3.js → use-ai-providers-ChBGYw51.js} +1 -1
  326. package/dist/client/assets/{use-api-keys-1S0yfr-w.js → use-api-keys-BW-Dm0vS.js} +1 -1
  327. package/dist/client/assets/{use-apply-named-rule-DK9k5f8X.js → use-apply-named-rule-BB2iRP8e.js} +1 -1
  328. package/dist/client/assets/use-ask-in-chat-DPw-0Txc.js +1 -0
  329. package/dist/client/assets/{use-automations-lWDVj-CU.js → use-automations-DiaMfc0z.js} +1 -1
  330. package/dist/client/assets/{use-autosave-CQIToQsM.js → use-autosave-DE64FcWz.js} +1 -1
  331. package/dist/client/assets/use-blocks-v8-project-BohhL70d.js +1 -0
  332. package/dist/client/assets/use-blog-view-D71WlL19.js +1 -0
  333. package/dist/client/assets/{use-chat-layout-state-CS1wv5hl.js → use-chat-layout-state-VfNRqDmO.js} +1 -1
  334. package/dist/client/assets/{use-cms-publish-actions-BoXieLUR.js → use-cms-publish-actions-DKyf7Nxr.js} +1 -1
  335. package/dist/client/assets/{use-connect-companion-C2Xf2qzV.js → use-connect-companion-Bs6LyV4D.js} +1 -1
  336. package/dist/client/assets/{use-connection-Df8_gpBB.js → use-connection-Brow5sd7.js} +1 -1
  337. package/dist/client/assets/{use-content-sync-DzzCDnXY.js → use-content-sync-BgVUGY9M.js} +1 -1
  338. package/dist/client/assets/{use-copy-CCrC_M79.js → use-copy-DwFFv3pQ.js} +1 -1
  339. package/dist/client/assets/{use-current-view-B5rf1h54.js → use-current-view-CTapdPbK.js} +1 -1
  340. package/dist/client/assets/{use-date-fns-locale-Csnyj6_G.js → use-date-fns-locale-Dh0XY21H.js} +1 -1
  341. package/dist/client/assets/{use-debounced-autosave-BNJwBoKC.js → use-debounced-autosave-BEEO-91f.js} +1 -1
  342. package/dist/client/assets/{use-debounced-value-DFWDa0qH.js → use-debounced-value-CSJINZGW.js} +1 -1
  343. package/dist/client/assets/{use-deco-credits-CuB-vVK3.js → use-deco-credits-C1prb4M3.js} +1 -1
  344. package/dist/client/assets/{use-decopilot-events-B7ke0MhO.js → use-decopilot-events-CUcqrlrN.js} +1 -1
  345. package/dist/client/assets/{use-delete-block-ZPB3I9Ns.js → use-delete-block-FlSG7wJB.js} +1 -1
  346. package/dist/client/assets/{use-delete-connection-Zvzh2eht.js → use-delete-connection-BMlBXcGH.js} +1 -1
  347. package/dist/client/assets/{use-deployment-admin-B4GqO2uv.js → use-deployment-admin-CR1e7wMq.js} +1 -1
  348. package/dist/client/assets/{use-entitlements-CQZj5lkl.js → use-entitlements-6Hl7XUeQ.js} +1 -1
  349. package/dist/client/assets/{use-fast-preview-draft-url-DYyM21UT.js → use-fast-preview-draft-url-qyW2jTtk.js} +1 -1
  350. package/dist/client/assets/{use-file-configs-CyAC1Jn2.js → use-file-configs-Yqvq1uqv.js} +1 -1
  351. package/dist/client/assets/{use-id-selection-CE2G3E6f.js → use-id-selection-HM6EVJM1.js} +1 -1
  352. package/dist/client/assets/{use-in-settings-CRUM5hPE.js → use-in-settings-giDN7jOV.js} +1 -1
  353. package/dist/client/assets/{use-inbox-feed-uWC2MWJH.js → use-inbox-feed-DAlFh8sQ.js} +1 -1
  354. package/dist/client/assets/{use-infinite-scroll-Cz_t92ww.js → use-infinite-scroll-yX_ymd0P.js} +1 -1
  355. package/dist/client/assets/{use-join-requests-CS1fqgjk.js → use-join-requests-MAVQ9NWP.js} +1 -1
  356. package/dist/client/assets/{use-main-panel-tabs-DwCoiX2k.js → use-main-panel-tabs-vcVvvxJY.js} +1 -1
  357. package/dist/client/assets/{use-mcp-auth-status-CyjIfVIk.js → use-mcp-auth-status-CS69ZhB_.js} +1 -1
  358. package/dist/client/assets/{use-mcp-client-HASDr5yn.js → use-mcp-client-BVUIAr8_.js} +1 -1
  359. package/dist/client/assets/{use-mcp-prompts-CEtDj9VE.js → use-mcp-prompts-ChhyOrtn.js} +1 -1
  360. package/dist/client/assets/{use-mcp-tools-CLfN0BYV.js → use-mcp-tools-B8_dWoBg.js} +1 -1
  361. package/dist/client/assets/{use-mobile-UoyYEGbQ.js → use-mobile-Cphz6oNl.js} +1 -1
  362. package/dist/client/assets/{use-move-blocks-CFb10aGP.js → use-move-blocks-KJ-Ie5XB.js} +1 -1
  363. package/dist/client/assets/{use-navigate-to-agent-C4y9eC4A.js → use-navigate-to-agent-DGH6rBV1.js} +1 -1
  364. package/dist/client/assets/use-never-published-XuGsKAjg.js +1 -0
  365. package/dist/client/assets/{use-org-fs-BAgR3Jkh.js → use-org-fs-BaPrb2On.js} +1 -1
  366. package/dist/client/assets/{use-org-notice-DQ7N3XWA.js → use-org-notice-cmfRg5TO.js} +1 -1
  367. package/dist/client/assets/{use-org-repo-syncs-C556S9To.js → use-org-repo-syncs-DAkzT2X5.js} +1 -1
  368. package/dist/client/assets/{use-org-sso-DrDj5K7f.js → use-org-sso-DPnB7gu8.js} +1 -1
  369. package/dist/client/assets/{use-organization-settings-BliP9B1t.js → use-organization-settings-C1xF80A6.js} +1 -1
  370. package/dist/client/assets/{use-panel-navigate-db4k7dl4.js → use-panel-navigate-F68B_PSv.js} +1 -1
  371. package/dist/client/assets/{use-project-native-view-presence-DPg5UqE1.js → use-project-native-view-presence-CEAgriR2.js} +1 -1
  372. package/dist/client/assets/{use-project-scope-CFftAYVY.js → use-project-scope-DGVSYzGX.js} +1 -1
  373. package/dist/client/assets/{use-recent-apps-CS-hhWwQ.js → use-recent-apps-cPc2NJeH.js} +1 -1
  374. package/dist/client/assets/{use-reports-diagnostic-CYymDS51.js → use-reports-diagnostic-BL-qCSEZ.js} +1 -1
  375. package/dist/client/assets/{use-sandbox-events-rgvK0R-0.js → use-sandbox-events-CoJuc1qT.js} +1 -1
  376. package/dist/client/assets/{use-secrets-Y_pjIaUL.js → use-secrets-CIw5wSGf.js} +1 -1
  377. package/dist/client/assets/{use-section-preview-base-Bkq2jdsn.js → use-section-preview-base-DQamnk8d.js} +1 -1
  378. package/dist/client/assets/{use-sidebar-collapsed-BtrwP1AE.js → use-sidebar-collapsed-_2hylrFL.js} +1 -1
  379. package/dist/client/assets/{use-tags-CFlTqeDj.js → use-tags-M8rZH8UV.js} +1 -1
  380. package/dist/client/assets/{use-task-board-analytics-Bm2Eiqvn.js → use-task-board-analytics-GkJYhpVp.js} +1 -1
  381. package/dist/client/assets/{use-task-board-item-prs-BCP6vVwh.js → use-task-board-item-prs-B8LyEjwN.js} +1 -1
  382. package/dist/client/assets/{use-task-board-items-CQPrgy8Z.js → use-task-board-items-0gZ0PkOh.js} +1 -1
  383. package/dist/client/assets/{use-task-board-prompts-CywAfsLX.js → use-task-board-prompts-qWQIt1vn.js} +1 -1
  384. package/dist/client/assets/{use-task-metadata-BIpPNwtn.js → use-task-metadata-LnH6agOS.js} +1 -1
  385. package/dist/client/assets/{use-thread-outputs-BMHx59-u.js → use-thread-outputs-BakwC9lZ.js} +1 -1
  386. package/dist/client/assets/{use-view-draft-kind-DkapSxnZ.js → use-view-draft-kind-DceD82iW.js} +1 -1
  387. package/dist/client/assets/{use-voice-input-DyQL3diM.js → use-voice-input-DzDpRS7B.js} +1 -1
  388. package/dist/client/assets/useInfiniteQuery-BdHidzNH.js +1 -0
  389. package/dist/client/assets/{useQueries-Bay3GQsV.js → useQueries-Do5qUwdK.js} +1 -1
  390. package/dist/client/assets/useSuspenseInfiniteQuery-ByhMyjUR.js +1 -0
  391. package/dist/client/assets/{users-DTrW9ZIm.js → users-D6JfMMin.js} +1 -1
  392. package/dist/client/assets/{utils-D1ABa-c2.js → utils-CDA5cdNx.js} +1 -1
  393. package/dist/client/assets/variant-calendar-B--0Jte1.js +1 -0
  394. package/dist/client/assets/{variant-matcher-override-y-sjVy0V.js → variant-matcher-override-DKyUcq8Q.js} +1 -1
  395. package/dist/client/assets/{view-header-CJ8vxIod.js → view-header-T__B-aVz.js} +1 -1
  396. package/dist/client/assets/{virtual-mcp-m1o-7tiO.js → virtual-mcp-CF64TXLK.js} +1 -1
  397. package/dist/client/assets/{watch-sse-pool-gEMXX-QL.js → watch-sse-pool-BC911AXE.js} +1 -1
  398. package/dist/client/index.html +1 -1
  399. package/dist/server/server.js +129 -129
  400. package/package.json +1 -1
  401. package/dist/client/assets/Minimize01-BIynG3Ze.js +0 -1
  402. package/dist/client/assets/agent-app-Ba7JDwY6.js +0 -1
  403. package/dist/client/assets/agent-assets-DlGJDJr0.js +0 -1
  404. package/dist/client/assets/agent-automations-DHP9-Rvp.js +0 -1
  405. package/dist/client/assets/agent-blog-MchyO8b5.js +0 -2
  406. package/dist/client/assets/agent-blog-post-DUN7iPWt.js +0 -2
  407. package/dist/client/assets/agent-calendar-De-Im46e.js +0 -1
  408. package/dist/client/assets/agent-connect-sources-DkfqQk5b.js +0 -1
  409. package/dist/client/assets/agent-deck-Cx2e4txV.js +0 -1
  410. package/dist/client/assets/agent-e2e-cuAg7vvT.js +0 -1
  411. package/dist/client/assets/agent-experiments-CKleoVAf.js +0 -1
  412. package/dist/client/assets/agent-file-BrkmoibI.js +0 -1
  413. package/dist/client/assets/agent-hosting-D__8hPs9.js +0 -1
  414. package/dist/client/assets/agent-icon-Bq_Z7esB.js +0 -1
  415. package/dist/client/assets/agent-library-BfblIp1v.js +0 -1
  416. package/dist/client/assets/agent-library-file-C7p2ZAks.js +0 -1
  417. package/dist/client/assets/agent-overview-NZBYrRRV.js +0 -1
  418. package/dist/client/assets/agent-settings-iY554avh.js +0 -1
  419. package/dist/client/assets/agent-site-editor-code-CaQ191md.js +0 -2
  420. package/dist/client/assets/agent-site-editor-content-4-gXvHBG.js +0 -1
  421. package/dist/client/assets/agent-site-editor-preview-BE075svj.js +0 -1
  422. package/dist/client/assets/agent-view-D12VaGvy.js +0 -1
  423. package/dist/client/assets/api-keys-CQkJKCWp.js +0 -1
  424. package/dist/client/assets/app-editor-CPq25Dfa.js +0 -1
  425. package/dist/client/assets/asset-utils-C_CFQkKi.js +0 -1
  426. package/dist/client/assets/automations-DhtUKYcW.js +0 -1
  427. package/dist/client/assets/category-editor-Jfh1FEbD.js +0 -1
  428. package/dist/client/assets/choose-editor-C_rrZDqX.js +0 -1
  429. package/dist/client/assets/cms-settings-editor-agl-pdfk.js +0 -1
  430. package/dist/client/assets/collection-detail-BX7pAFmI.js +0 -1
  431. package/dist/client/assets/connection-detail-B2bDZqoS.js +0 -1
  432. package/dist/client/assets/connections-osURCVgm.js +0 -1
  433. package/dist/client/assets/context-SebnQ-fG.js +0 -1
  434. package/dist/client/assets/discover-4UiUWkTa.js +0 -1
  435. package/dist/client/assets/file-explorer-Berv-DjA.js +0 -2
  436. package/dist/client/assets/home-D5e51VDk.js +0 -1
  437. package/dist/client/assets/index-Cu5PtngA.js +0 -4
  438. package/dist/client/assets/index-DVC5Xh86.js +0 -1
  439. package/dist/client/assets/library-OBxcrPA6.js +0 -1
  440. package/dist/client/assets/openai-conversation-BAjqwRPV.js +0 -3
  441. package/dist/client/assets/plan-vHZHG0_E.js +0 -1
  442. package/dist/client/assets/post-calendar-DzBDM3b2.js +0 -1
  443. package/dist/client/assets/preview-content-MbQf8RGA.js +0 -1
  444. package/dist/client/assets/project-app-view-gJDZKZ8F.js +0 -1
  445. package/dist/client/assets/project-reports-DFICoZ3P.js +0 -1
  446. package/dist/client/assets/project-tasks-DHsoMFaC.js +0 -1
  447. package/dist/client/assets/projects-Cm9td8_E.js +0 -1
  448. package/dist/client/assets/record-editor-BaN-J3uT.js +0 -1
  449. package/dist/client/assets/redirect-editor-Dk4GjAcP.js +0 -1
  450. package/dist/client/assets/reports-BjhUDxT0.js +0 -1
  451. package/dist/client/assets/reports-onboarding-DlCteX2-.js +0 -1
  452. package/dist/client/assets/repositories-CpGjSRVu.js +0 -1
  453. package/dist/client/assets/resizable-BArMfXUk.js +0 -1
  454. package/dist/client/assets/roles-C9wYF2gv.js +0 -1
  455. package/dist/client/assets/route-Bhee4AVm.js +0 -1
  456. package/dist/client/assets/route-C0X_ekZH.js +0 -1
  457. package/dist/client/assets/route-cMh_8Xc3.js +0 -1
  458. package/dist/client/assets/sections-editor--Z8msN1o.js +0 -1
  459. package/dist/client/assets/settings-tab-PpyKi5jL.js +0 -1
  460. package/dist/client/assets/shell-layout-CQs-sSUy.js +0 -1
  461. package/dist/client/assets/site-editor-89VkH7GW.js +0 -1
  462. package/dist/client/assets/skills-CgUWJjrb.js +0 -1
  463. package/dist/client/assets/taskboard-analytics-C1hsIKyF.js +0 -1
  464. package/dist/client/assets/tasks-Cvrxb3RD.js +0 -1
  465. package/dist/client/assets/thread-analytics-DGVyUEMu.js +0 -1
  466. package/dist/client/assets/thread-button-Dy4pRky4.js +0 -1
  467. package/dist/client/assets/thread-route-BKnIUDl3.js +0 -1
  468. package/dist/client/assets/use-ask-in-chat-CC9ew9W1.js +0 -1
  469. package/dist/client/assets/use-blocks-v8-project-DwTQhXO1.js +0 -1
  470. package/dist/client/assets/use-blog-view-9w6CHFwT.js +0 -1
  471. package/dist/client/assets/use-never-published-D71BtZNY.js +0 -1
  472. package/dist/client/assets/useInfiniteQuery-D5Avp4ip.js +0 -1
  473. package/dist/client/assets/useSuspenseInfiniteQuery-BlIdZ7Pt.js +0 -1
  474. package/dist/client/assets/variant-calendar-CK1882s5.js +0 -1
@@ -1 +1 @@
1
- import{d3 as _}from"./index-BfWp2Wnw.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{d3 as _}from"./index-B044ByKY.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 +1 @@
1
- import{r as s,b_ as L,b$ as B,j as c,f_ as q,c4 as x,c2 as E,fZ as K,c5 as C,f$ as I,d$ as T,ci as w,cb as U,cm as V}from"./index-BfWp2Wnw.js";var _="Radio",[$,P]=w(_),[z,H]=$(_),k=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=E(d,b=>m(b)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(z,{scope:o,checked:e,disabled:a,children:[c.jsx(x.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:C(t.onClick,b=>{e||f?.(),h&&(u.current=b.isPropagationStopped(),u.current||b.stopPropagation())})}),h&&c.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=_;var g="RadioIndicator",G=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=H(g,o);return c.jsx(T,{present:n||r.checked,children:c.jsx(x.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});G.displayName=g;var W="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=E(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=W;function A(t){return t?"checked":"unchecked"}var X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[Y]=w(y,[I,P]),j=I(),N=P(),[Z,J]=Y(y),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,b]=B({prop:r,defaultProp:e??null,onChange:p,caller:y});return c.jsx(Z,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:b,children:c.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(x.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=y;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=J(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=E(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{X.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:C(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:C(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var Q="RadioGroupIndicator",F=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(G,{...e,...n,ref:d})});F.displayName=Q;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
1
+ import{r as s,b_ as L,b$ as B,j as c,f_ as q,c4 as x,c2 as E,fZ as K,c5 as C,f$ as I,d$ as T,ci as w,cb as U,cm as V}from"./index-B044ByKY.js";var _="Radio",[$,P]=w(_),[z,H]=$(_),k=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=E(d,b=>m(b)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(z,{scope:o,checked:e,disabled:a,children:[c.jsx(x.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:C(t.onClick,b=>{e||f?.(),h&&(u.current=b.isPropagationStopped(),u.current||b.stopPropagation())})}),h&&c.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=_;var g="RadioIndicator",G=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=H(g,o);return c.jsx(T,{present:n||r.checked,children:c.jsx(x.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});G.displayName=g;var W="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=E(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=W;function A(t){return t?"checked":"unchecked"}var X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[Y]=w(y,[I,P]),j=I(),N=P(),[Z,J]=Y(y),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,b]=B({prop:r,defaultProp:e??null,onChange:p,caller:y});return c.jsx(Z,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:b,children:c.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(x.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=y;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=J(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=E(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{X.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:C(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:C(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var Q="RadioGroupIndicator",F=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(G,{...e,...n,ref:d})});F.displayName=Q;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
@@ -1,4 +1,4 @@
1
- import{c as $,b as j,r as _,j as f,m as B,aW as at,t as se,b3 as Oe,a4 as ot,hh as lt,i as ct,K as ut,c8 as ht,h as De,o as pt}from"./index-BfWp2Wnw.js";import{u as dt,t as Be,f as ue,A as ft,v as gt,Y as P,Z as mt,_ as kt,H as xt,I as D,$ as ve,a0 as bt,e as wt,a1 as Se,a2 as yt,a3 as G,N as Fe,a4 as he,c as qe,a5 as pe,a6 as Tt,a7 as vt,s as St,a8 as Mt,a as Et,E as At}from"./usage-stats-BXxRbW0f.js";import{T as C,n as Rt,i as _t,E as $t}from"./editor-classes-D6VscvFm.js";import{a as Ct,e as Ue,s as It,S as Lt}from"./suggestion-BO6GNdWk.js";import{B as zt}from"./index-BDN2Il8W.js";import{aE as Pt,ai as jt,aj as Nt,al as Ht,K as Ot,aY as Dt,aJ as Bt}from"./agent-icon-Bq_Z7esB.js";import{i as Ft}from"./SwitchHorizontal01-qTGCOGX6.js";import{s as qt}from"./Trash01-CevYpZEM.js";import{k as Ut,a as Zt}from"./use-org-fs-BAgR3Jkh.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 Yt}from"./markdown-NetMLX1B.js";import{s as Jt,T as en}from"./index-DqFWx3BB.js";import{f as tn,a as nn,c as rn,C as sn,b as Ee}from"./command-DAachgGl.js";import{I as an}from"./icon-button-vJpGdaXv.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(),In={...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()},Ln={...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,aW as at,t as se,b3 as Oe,a4 as ot,hh as lt,i as ct,K as ut,c8 as ht,h as De,o as pt}from"./index-B044ByKY.js";import{u as dt,t as Be,f as ue,A as ft,v as gt,Y as P,Z as mt,_ as kt,H as xt,I as D,$ as ve,a0 as bt,e as wt,a1 as Se,a2 as yt,a3 as G,N as Fe,a4 as he,c as qe,a5 as pe,a6 as Tt,a7 as vt,s as St,a8 as Mt,a as Et,E as At}from"./usage-stats-J0rd59WB.js";import{T as C,n as Rt,i as _t,E as $t}from"./editor-classes-BQUsTFeI.js";import{a as Ct,e as Ue,s as It,S as Lt}from"./suggestion-CI_CTWom.js";import{B as zt}from"./index-DZ02XBmW.js";import{aF as Pt,aj as jt,ak as Nt,am as Ht,K as Ot,aZ as Dt,aK as Bt}from"./agent-icon-CoK8596D.js";import{i as Ft}from"./SwitchHorizontal01-BqvEtH8f.js";import{s as qt}from"./Trash01-Dt5QksjR.js";import{k as Ut,a as Zt}from"./use-org-fs-BaPrb2On.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 Yt}from"./markdown-D9jcZKqO.js";import{s as Jt,T as en}from"./index-BZnXvIYx.js";import{f as tn,a as nn,c as rn,C as sn,b as Ee}from"./command-B42gKY6M.js";import{I as an}from"./icon-button-DemWGnFJ.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(),In={...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()},Ln={...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(?!`)/,Ye=/^( {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(),Je=/(?!~)[\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,Je).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,Je).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(),Yn=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]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Jn=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:Ye,code:Pn,del:N,delLDelim:N,delRDelim:N,emStrongLDelim:Bn,emStrongRDelimAst:qn,emStrongRDelimUnd:Zn,escape:zn,link:Jn,nolink:rt,punctuation:Nn,reflink:nt,reflinkSearch:er,tag:Yn,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(Ye).replace("{2,}","*").getRegex(),text:S(ae.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},W={normal:xe,gfm:In,pedantic:Ln},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 Ie(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 Le(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 Y=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{A as H,t as U,a9 as R,C as Z,aa as X,f as S,ab as J,ac as Q,o as z}from"./usage-stats-BXxRbW0f.js";import{gy as M,hi as C,gx as P,hj as x,hk as L,hl as V,hm as K,hn as _,gA as A,eR as N,r as p,c8 as $}from"./index-BfWp2Wnw.js";import{C as k}from"./index-DqFWx3BB.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=R(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof Z){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&X(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const B=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});S.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[B({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=R(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});S.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,j=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function q(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){j.has(e)||t.style.removeProperty(q(e))}function mt(t,e,i){j.has(e)||t.style.setProperty(q(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=B({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),$.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),$.createPortal(d,u.current)});export{Tt as B};
1
+ import{A as H,t as U,a9 as R,C as Z,aa as X,f as S,ab as J,ac as Q,o as z}from"./usage-stats-J0rd59WB.js";import{gy as M,hi as C,gx as P,hj as x,hk as L,hl as V,hm as K,hn as _,gA as A,eR as N,r as p,c8 as $}from"./index-B044ByKY.js";import{C as k}from"./index-BZnXvIYx.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=R(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof Z){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&X(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const B=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});S.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[B({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=R(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});S.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,j=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function q(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){j.has(e)||t.style.removeProperty(q(e))}function mt(t,e,i){j.has(e)||t.style.setProperty(q(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=B({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),$.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),$.createPortal(d,u.current)});export{Tt as B};
@@ -1 +1 @@
1
- import{c as f,a4 as h,h0 as d,j as g,N as m,ae as p,a2 as j}from"./index-BfWp2Wnw.js";import{L as v}from"./legacy-main-redirect-Fa4p1NoA.js";import"./thread-route-Ds6Wombz.js";const x=j("/shell/$org/org-shell/");function L(){const e=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let t;e[0]!==i||e[1]!==a.slug||e[2]!==l||e[3]!==o?(t=d({org:a.slug,agentId:o,main:i,search:l}),e[0]=i,e[1]=a.slug,e[2]=l,e[3]=o,e[4]=t):t=e[4];const s=t;if(s?.kind==="canonical"){let r;return e[5]!==s?(r=g.jsx(v,{target:s}),e[5]=s,e[6]=r):r=e[6],r}}let n;e[7]!==o?(n=o?.trim()||null,e[7]=o,e[8]=n):n=e[8];const u=n;if(u){let t;e[9]!==a.slug||e[10]!==u?(t={org:a.slug,agentId:u},e[9]=a.slug,e[10]=u,e[11]=t):t=e[11];let s;e[12]!==l?(s={...l,virtualmcpid:void 0},e[12]=l,e[13]=s):s=e[13];let r;return e[14]!==t||e[15]!==s?(r=g.jsx(m,{to:p.projects,params:t,search:s,hash:!0,replace:!0}),e[14]=t,e[15]=s,e[16]=r):r=e[16],r}let c;return e[17]!==a.slug?(c=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),e[17]=a.slug,e[18]=c):c=e[18],c}function N(e){return{...e,virtualmcpid:void 0}}export{L as default};
1
+ import{c as f,a4 as h,h0 as d,j as g,N as m,ae as p,a2 as j}from"./index-B044ByKY.js";import{L as v}from"./legacy-main-redirect-VxHPv_GC.js";import"./thread-route-BVjT00pZ.js";const x=j("/shell/$org/org-shell/");function L(){const e=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let t;e[0]!==i||e[1]!==a.slug||e[2]!==l||e[3]!==o?(t=d({org:a.slug,agentId:o,main:i,search:l}),e[0]=i,e[1]=a.slug,e[2]=l,e[3]=o,e[4]=t):t=e[4];const s=t;if(s?.kind==="canonical"){let r;return e[5]!==s?(r=g.jsx(v,{target:s}),e[5]=s,e[6]=r):r=e[6],r}}let n;e[7]!==o?(n=o?.trim()||null,e[7]=o,e[8]=n):n=e[8];const u=n;if(u){let t;e[9]!==a.slug||e[10]!==u?(t={org:a.slug,agentId:u},e[9]=a.slug,e[10]=u,e[11]=t):t=e[11];let s;e[12]!==l?(s={...l,virtualmcpid:void 0},e[12]=l,e[13]=s):s=e[13];let r;return e[14]!==t||e[15]!==s?(r=g.jsx(m,{to:p.projects,params:t,search:s,hash:!0,replace:!0}),e[14]=t,e[15]=s,e[16]=r):r=e[16],r}let c;return e[17]!==a.slug?(c=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),e[17]=a.slug,e[18]=c):c=e[18],c}function N(e){return{...e,virtualmcpid:void 0}}export{L as default};
@@ -1,4 +1,4 @@
1
- import{c as ue,r as xe,d as ns,a4 as ht,b as Pe,j as t,B as je,t as dt,aW as Wt,ak as as,K as bt,i as Et,a5 as As,m as ot,gE as _s,o as cs,h as Ks,d_ as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Yt,R as Bs,dU as Js,hd as Gs,T as Qs,W as Ws,I as Xt}from"./index-BfWp2Wnw.js";import{S as Ys}from"./search-input-BjRiuWL9.js";import{E as Ht}from"./empty-state-Y9RPHES1.js";import{R as Xs}from"./require-capability-DXiZ0OON.js";import{f as js}from"./pair-B9IOPXjq.js";import{b as ts}from"./use-connection-Df8_gpBB.js";import{g as Ps}from"./connection-slug-BMyTAhb7.js";import{B as Lt}from"./badge-CEYLDtOG.js";import{P as ds,a as ms,b as us}from"./popover-oFcDtUvN.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-CqV-qcYU.js";import{z as fs,e as Ut,bv as el,av as Ns,K as tl}from"./agent-icon-Bq_Z7esB.js";import{i as sl}from"./Key01-h9Y3uaT_.js";import{i as ll}from"./Play-zsnTCnBK.js";import{MonacoCodeEditor as bs}from"./monaco-editor-BJmxWrxj.js";import{u as rl}from"./use-mcp-client-HASDr5yn.js";import{u as il}from"./repository-binding-BDu0tU0n.js";import{n as Ot}from"./LinkBroken01-CxV1rDqL.js";import{c as ol}from"./SwitchHorizontal01-qTGCOGX6.js";import{s as nl}from"./Plus-DAYIm6ow.js";import{s as al}from"./Trash01-CevYpZEM.js";import{M as zt}from"./multi-select-B_L-qOo_.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-BXZoshA8.js";import{e as ys,T as cl}from"./time-range-picker-y-R1DMgB.js";import{T as dl}from"./textarea-DAZ3avm9.js";import{C as Ds}from"./collection-tabs-ZW6Qb_Ul.js";import{S as ml}from"./switch-CfCCzQdg.js";import{L as ul}from"./label-CWaQ3ANC.js";import{I as It}from"./integration-icon-C4zzzxaS.js";import{A as fl,a as xl,b as pl}from"./alert-fpttYoSQ.js";import{K as gt}from"./monitoring-stats-row-C4l9QgAZ.js";import{b as Bt}from"./use-entitlements-CQZj5lkl.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-Kjk5YJ_A.js";import{u as wl}from"./useSuspenseInfiniteQuery-BlIdZ7Pt.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-DT44IVE2.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-BG-lRGNn.js";import{t as ss}from"./ChevronDown-CNlehUMA.js";import{n as ls}from"./ChevronUp-BIaMfxq-.js";import{u as Os}from"./use-id-selection-CE2G3E6f.js";import{u as Fs}from"./use-infinite-scroll-Cz_t92ww.js";import{u as Il}from"./useInfiniteQuery-D5Avp4ip.js";import{g as Tl}from"./task-status-BiZeTmx1.js";import{u as kl,d as Ml}from"./use-automations-lWDVj-CU.js";import{A as _l}from"./automation-runs-BxBjhLC7.js";import{i as Pl}from"./ArrowLeft--TSM2Ux3.js";import{E as Cs}from"./empty-state-FI4NppsL.js";import{O as $s}from"./watch-sse-pool-gEMXX-QL.js";import{t as Dl}from"./task-key-DjK7Kw8s.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-C70gELqf.js";import{F as $l}from"./feature-gate-32y7GiUu.js";import"./SearchMd-CTSUPag9.js";import"./access-gate-CBj6VxJ7.js";import"./capability-load-error-D7_TKHDu.js";import"./Tool01-Bscrvuft.js";import"./ArrowRight-BVFSrvKf.js";import"./collapsible-DYCInqz3.js";import"./use-copy-CCrC_M79.js";import"./usage-stats-BXxRbW0f.js";import"./utils-CVEq3hMx.js";import"./markdown-NetMLX1B.js";import"./chat-context-BUMEnIPW.js";import"./use-panel-navigate-db4k7dl4.js";import"./thread-route-Ds6Wombz.js";import"./use-project-scope-CFftAYVY.js";import"./use-view-draft-kind-DkapSxnZ.js";import"./use-blog-view-9w6CHFwT.js";import"./use-organization-settings-BliP9B1t.js";import"./schema-BJIhJXy6.js";import"./task-board-B-hxKp5U.js";import"./thread-intent-BtcwbxTJ.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-DFmRKpVg.js";import"./use-ai-providers-DgsrHLV3.js";import"./use-current-view-B5rf1h54.js";import"./use-in-settings-CRUM5hPE.js";import"./use-decopilot-events-B7ke0MhO.js";import"./use-mobile-UoyYEGbQ.js";import"./File02-uZRQiPOp.js";import"./gateway-client-CuVQGtSK.js";import"./form-CE_i7Gc_.js";import"./UserCheck01-4mEtfdkD.js";import"./use-task-board-items-CQPrgy8Z.js";import"./config-CVrGKu1z.js";import"./AlertCircle-mj0sz0gj.js";import"./CheckCircle-BsBF4S8u.js";import"./Eye-Xo5rS9iJ.js";import"./task-route-BwC6Um2K.js";import"./project-index-COi5kduS.js";import"./TrendUp01-DMf7H3tv.js";import"./shell-layout-CQs-sSUy.js";import"./Globe04-DhsnPBDD.js";import"./UserSquare-oo1b4ulW.js";import"./use-deployment-admin-B4GqO2uv.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-WYCPZpkD.js";import"./use-org-notice-DQ7N3XWA.js";import"./Monitor01-CBUOgSaC.js";import"./Zap-C-VVHO-P.js";import"./command-DAachgGl.js";import"./index-C_tC1dxx.js";import"./project-icon-WyFXKdgN.js";import"./use-navigate-to-agent-C4y9eC4A.js";import"./use-debounced-value-DFWDa0qH.js";import"./new-project-dialog-B6Lwo0Gj.js";import"./repository-picker-DKoD0HVQ.js";import"./github-icon-BBtraw32.js";import"./collection-search-CMlKHTQ0.js";import"./BookOpen01-CTUEdBiB.js";import"./ShoppingBag01-CF4EYiC_.js";import"./new-project-store-DQsI7Up8.js";import"./legacy-admin-welcome-dialog-BnEG9TvC.js";import"./drawer-BtNmmbgW.js";import"./required-auth-layout-ZTLOobSH.js";import"./use-org-sso-DrDj5K7f.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-OOnse3pT.js";import"./types-DRaoZ_4I.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-C5Xqhwp5.js";import"./use-mcp-prompts-CEtDj9VE.js";import"./use-thread-outputs-BMHx59-u.js";import"./file-type-icon-Bw6tHUJI.js";import"./index-CvQo8gKP.js";import"./ArrowUp-D2bbOB2w.js";import"./ChevronSelectorVertical-BdBrg7yc.js";import"./CreditCard01-gHUc2u28.js";import"./Minimize01-BIynG3Ze.js";import"./LayoutLeft-CPMSR00X.js";import"./Minus-D55MDhYc.js";import"./Sun-B-xu6eHR.js";import"./Upload01-C_8HEOMT.js";import"./Users01-av_p4B03.js";import"./editor-DJNkhCaU.js";import"./auth-BOZ5swZI.js";import"./checkbox-BUvWR-iD.js";import"./index-BdQq_4o_.js";import"./scroll-area-Dt-NcLdT.js";import"./calendar-B0VrIuVV.js";import"./chart-Ef5OJL7Y.js";import"./CategoricalChart-_BlSk5IS.js";import"./index-BBKDsc5X.js";import"./tooltipContext-5-7GWaNH.js";import"./CartesianChart-DynFqoj3.js";import"./AreaChart-DSUaBnyJ.js";import"./infiniteQueryObserver-1nr0P0K0.js";import"./useQueries-Bay3GQsV.js";import"./ReferenceLine-Ccilwreq.js";import"./feature-paywall-nyy14OlO.js";import"./plan-ladder-NC686t6f.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
1
+ import{c as ue,r as xe,d as ns,a4 as ht,b as Pe,j as t,B as je,t as dt,aW as Wt,ak as as,K as bt,i as Et,a5 as As,m as ot,gE as _s,o as cs,h as Ks,d_ as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Yt,R as Bs,dU as Js,hd as Gs,T as Qs,W as Ws,I as Xt}from"./index-B044ByKY.js";import{S as Ys}from"./search-input-BS--Nv9L.js";import{E as Ht}from"./empty-state-Dy-zGk3L.js";import{R as Xs}from"./require-capability-BouyAFmv.js";import{f as js}from"./pair-C3H4DFS8.js";import{b as ts}from"./use-connection-Brow5sd7.js";import{g as Ps}from"./connection-slug-Dp27dyiZ.js";import{B as Lt}from"./badge-BuRW7gbq.js";import{P as ds,a as ms,b as us}from"./popover-BkhFtaxb.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-BCI4hJNA.js";import{z as fs,e as Ut,bw as el,aw as Ns,K as tl}from"./agent-icon-CoK8596D.js";import{i as sl}from"./Key01-D94vE5H1.js";import{i as ll}from"./Play-CZH3MEMf.js";import{MonacoCodeEditor as bs}from"./monaco-editor-C7Pj09eb.js";import{u as rl}from"./use-mcp-client-BVUIAr8_.js";import{u as il}from"./repository-binding-CS8khEsh.js";import{n as Ot}from"./LinkBroken01-BZ3y0SMI.js";import{c as ol}from"./SwitchHorizontal01-BqvEtH8f.js";import{s as nl}from"./Plus-D0avz2-9.js";import{s as al}from"./Trash01-Dt5QksjR.js";import{M as zt}from"./multi-select-BrPmuUJB.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-OIt3OszY.js";import{e as ys,T as cl}from"./time-range-picker-DCFWQQ5w.js";import{T as dl}from"./textarea-1IXo7Val.js";import{C as Ds}from"./collection-tabs-GTBWPOeS.js";import{S as ml}from"./switch-DacUnlWF.js";import{L as ul}from"./label-CTNjOu1p.js";import{I as It}from"./integration-icon-D8qlWjgY.js";import{A as fl,a as xl,b as pl}from"./alert-D9u34EuS.js";import{K as gt}from"./monitoring-stats-row-CevJ0W2J.js";import{b as Bt}from"./use-entitlements-6Hl7XUeQ.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-DMUg61oD.js";import{u as wl}from"./useSuspenseInfiniteQuery-ByhMyjUR.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-DjUF157Q.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-Cm1piWr1.js";import{t as ss}from"./ChevronDown-CTtpSqtu.js";import{n as ls}from"./ChevronUp-q3wzYuvO.js";import{u as Os}from"./use-id-selection-HM6EVJM1.js";import{u as Fs}from"./use-infinite-scroll-yX_ymd0P.js";import{u as Il}from"./useInfiniteQuery-BdHidzNH.js";import{g as Tl}from"./task-status-CCkEahz2.js";import{u as kl,d as Ml}from"./use-automations-DiaMfc0z.js";import{A as _l}from"./automation-runs-CBMuf4ZB.js";import{i as Pl}from"./ArrowLeft-1PzfHfg2.js";import{E as Cs}from"./empty-state-yZFAU14m.js";import{O as $s}from"./watch-sse-pool-BC911AXE.js";import{t as Dl}from"./task-key-CzsPirbU.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-1IdfHt6a.js";import{F as $l}from"./feature-gate-OQExXuGJ.js";import"./SearchMd-CjGee94g.js";import"./access-gate-DMvQJ5NH.js";import"./capability-load-error-B2sM2CpK.js";import"./Tool01-DdxQ5Wxa.js";import"./ArrowRight-DEqBtwSl.js";import"./collapsible-FSqiIEKF.js";import"./use-copy-DwFFv3pQ.js";import"./usage-stats-J0rd59WB.js";import"./utils-CVEq3hMx.js";import"./markdown-D9jcZKqO.js";import"./chat-context-cgQtGcxn.js";import"./use-panel-navigate-F68B_PSv.js";import"./thread-route-BVjT00pZ.js";import"./use-project-scope-DGVSYzGX.js";import"./use-view-draft-kind-DceD82iW.js";import"./use-blog-view-D71WlL19.js";import"./use-organization-settings-C1xF80A6.js";import"./schema-Cqzs-QeL.js";import"./task-board-D8qsFD59.js";import"./thread-intent-CSpTLxvv.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-C4M0661Q.js";import"./use-ai-providers-ChBGYw51.js";import"./use-current-view-CTapdPbK.js";import"./use-in-settings-giDN7jOV.js";import"./use-decopilot-events-CUcqrlrN.js";import"./use-mobile-Cphz6oNl.js";import"./File02-CvFMCRDa.js";import"./gateway-client-DJgic-Qj.js";import"./form-D440wdg0.js";import"./UserCheck01-DUGYNveK.js";import"./use-task-board-items-0gZ0PkOh.js";import"./config-Cf7vj7Rh.js";import"./AlertCircle-LERpHwFl.js";import"./CheckCircle-BtWoVwB1.js";import"./Eye-Cm9q3fEb.js";import"./task-route-CMJtH4RR.js";import"./project-index-CTiqM4uG.js";import"./TrendUp01-CrdizHzO.js";import"./shell-layout-Ck-LcWXa.js";import"./Globe04-DiWiLDtF.js";import"./UserSquare-DhKeYx3_.js";import"./use-deployment-admin-CR1e7wMq.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-Cr9lMv3y.js";import"./use-org-notice-cmfRg5TO.js";import"./Monitor01-CK_FwrHo.js";import"./Zap-XiBmD0Uf.js";import"./command-B42gKY6M.js";import"./index-LR929nhM.js";import"./project-icon-ycJeRtUY.js";import"./use-navigate-to-agent-DGH6rBV1.js";import"./use-debounced-value-CSJINZGW.js";import"./new-project-dialog-BXZNX64Z.js";import"./repository-picker-D9E_hkBL.js";import"./github-icon-DY-ZDpjv.js";import"./collection-search-CRXrZcjK.js";import"./BookOpen01-Du4Om727.js";import"./ShoppingBag01-Dl6ehSJq.js";import"./new-project-store-D_Og4-mf.js";import"./legacy-admin-welcome-dialog-BdLr3pNE.js";import"./drawer-JNxusvzc.js";import"./required-auth-layout-BvHcocCT.js";import"./use-org-sso-DPnB7gu8.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-B-8cpbuY.js";import"./types-nc7fS2ca.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-C60XTiE0.js";import"./use-mcp-prompts-ChhyOrtn.js";import"./use-thread-outputs-BakwC9lZ.js";import"./file-type-icon-BDItiN_6.js";import"./index-8WAjXpHp.js";import"./ArrowUp-ZrZG10pa.js";import"./ChevronSelectorVertical-CRLIgJUm.js";import"./CreditCard01-DdoSZEKk.js";import"./MessageCircle01-BI9UTEVS.js";import"./LayoutLeft-eyBzoPS2.js";import"./Minus-N5F461bR.js";import"./Sun-pelXqxnJ.js";import"./Upload01-WRNWPmM8.js";import"./Users01-BxsO8RcV.js";import"./editor-5IlECLt2.js";import"./auth-DF8kNBcM.js";import"./checkbox-BRBpFYe8.js";import"./index-BdQq_4o_.js";import"./scroll-area-Bie9g__T.js";import"./calendar-D5SETI9f.js";import"./chart-BbXdQRqA.js";import"./CategoricalChart-Blqz99On.js";import"./index-CJnIUpq6.js";import"./tooltipContext-DxsRC16N.js";import"./CartesianChart-CESYSx7X.js";import"./AreaChart-BxoeWPuz.js";import"./infiniteQueryObserver-CkKuSwnM.js";import"./useQueries-Do5qUwdK.js";import"./ReferenceLine-Baor9_ls.js";import"./feature-paywall-BFla-pHe.js";import"./plan-ladder-B5iRPBN6.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
2
2
  `)}function Is(s){return s.trim()?s.split(`
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Kl(s){const e={},l={},i=[],m={};for(const n of s)if(n.key.trim())switch(n.operator){case"eq":n.value&&(e[n.key]=n.value);break;case"contains":n.value&&(l[n.key]=`%${n.value}%`);break;case"exists":i.push(n.key);break;case"in":n.value&&(m[n.key]=n.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(m).length>0?m:void 0}}function Ts(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=rs.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,rs.maxJsonRenderSize)+`
4
4
 
@@ -1 +1 @@
1
- import{r as n,c1 as V,dV as R,dW as Ee,dX as ke,dY as Se,aQ as xe,dZ as j}from"./index-BfWp2Wnw.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var P='[cmdk-group=""]',_='[cmdk-group-items=""]',Ve='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",qe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...O}=t,W=V(),ne=V(),H=V(),M=n.useRef(null),w=Te();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")Y(),T(),w(1,X);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(H);y?y.focus():(a=document.getElementById(W))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),N=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{T(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{Y(),T(),r.current.value||X(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{Y(),s?.getAttribute("id")===e&&X(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:W,inputId:H,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:qe;return e?m(e,r.current.search,o):0}function T(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;q().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${P}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function X(){let e=q().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function Y(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(P))==null?void 0:o.querySelector(Ve))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function q(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function G(e){let o=q()[e];o&&k.setState("value",o.getAttribute(F))}function J(e){var o;let s=D(),a=q(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(P),a;for(;s&&!a;)s=e>0?He(s,P):Ne(s,P),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):J(e)}let ie=()=>G(q().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):J(1)},ce=e=>{e.preventDefault(),e.metaKey?G(0):e.altKey?ue(-1):J(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),G(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:Ye},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:N},e))))}),Pe=n.forwardRef((t,l)=>{var r,f;let u=V(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:W,forceMount:ne,keywords:H,...M}=t;return n.createElement(R.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=V(),v=n.useRef(null),b=n.useRef(null),i=V(),p=L(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),We=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Je=Object.assign(be,{List:Be,Item:Pe,Input:Oe,Group:je,Separator:Le,Dialog:ze,Empty:Ue,Loading:We});function He(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Ne(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var Te=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Xe(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Xe(l),{ref:l.ref},r(l.props.children)):r(l)}var Ye={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Je as _};
1
+ import{r as n,c1 as V,dV as R,dW as Ee,dX as ke,dY as Se,aQ as xe,dZ as j}from"./index-B044ByKY.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var P='[cmdk-group=""]',_='[cmdk-group-items=""]',Ve='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",qe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...O}=t,W=V(),ne=V(),H=V(),M=n.useRef(null),w=Te();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")Y(),T(),w(1,X);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(H);y?y.focus():(a=document.getElementById(W))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),N=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{T(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{Y(),T(),r.current.value||X(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{Y(),s?.getAttribute("id")===e&&X(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:W,inputId:H,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:qe;return e?m(e,r.current.search,o):0}function T(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;q().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${P}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function X(){let e=q().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function Y(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(P))==null?void 0:o.querySelector(Ve))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function q(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function G(e){let o=q()[e];o&&k.setState("value",o.getAttribute(F))}function J(e){var o;let s=D(),a=q(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(P),a;for(;s&&!a;)s=e>0?He(s,P):Ne(s,P),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):J(e)}let ie=()=>G(q().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):J(1)},ce=e=>{e.preventDefault(),e.metaKey?G(0):e.altKey?ue(-1):J(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),G(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:Ye},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:N},e))))}),Pe=n.forwardRef((t,l)=>{var r,f;let u=V(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:W,forceMount:ne,keywords:H,...M}=t;return n.createElement(R.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=V(),v=n.useRef(null),b=n.useRef(null),i=V(),p=L(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),We=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Je=Object.assign(be,{List:Be,Item:Pe,Input:Oe,Group:je,Separator:Le,Dialog:ze,Empty:Ue,Loading:We});function He(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Ne(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var Te=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Xe(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Xe(l),{ref:l.ref},r(l.props.children)):r(l)}var Ye={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Je as _};