decocms 4.584.9 → 4.584.11

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 (431) hide show
  1. package/dist/client/assets/{AlertCircle-Di8a-UWV.js → AlertCircle-8ukcBvl4.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CCqrcx1b.js → AreaChart-B6hqu-pW.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-B2F854r0.js → ArrowLeft-D0b8Szk5.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-Dj2pC8B7.js → ArrowRight-uaCgEM_Q.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-Nhgapjwm.js → ArrowUp-K5jCRsZA.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-CHggQBWj.js → BookOpen01-5XPZR6TG.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-BFVggI3G.js → CartesianChart-C4hmdW3d.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-BYLFXXdR.js → CategoricalChart-BPZdBlVt.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-UAsyLWI7.js → CheckCircle-u2h4KcPu.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-COkNoLwk.js → ChevronDown-kKxnMd3L.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-Buxlf1yx.js → ChevronSelectorVertical-DKxNhUwA.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-C-YGqatN.js → ChevronUp-DQNUTs5_.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-CRi7On3u.js → CreditCard01-DbaKJfT8.js} +1 -1
  14. package/dist/client/assets/{Eye-C6rTinUa.js → Eye-_E24hwz9.js} +1 -1
  15. package/dist/client/assets/{File02-CNdUOOeH.js → File02-DAf1emIR.js} +1 -1
  16. package/dist/client/assets/{Globe04-AW14Waq3.js → Globe04-jdIYuCcn.js} +1 -1
  17. package/dist/client/assets/{Image01-xPHq6tUP.js → Image01-Cl7yRuHs.js} +1 -1
  18. package/dist/client/assets/{Key01-BMD-TEa8.js → Key01-DeYX7L_Z.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-5PR-LA5J.js → LayoutLeft-BQdYjjc6.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-Chn3Zw95.js → LinkBroken01-DBUc-42w.js} +1 -1
  21. package/dist/client/assets/{MessageCircle01-CeeL61Zn.js → MessageCircle01-D1JzchO_.js} +1 -1
  22. package/dist/client/assets/{Minus-CxmZj9NQ.js → Minus-DBYcv290.js} +1 -1
  23. package/dist/client/assets/{Monitor01-BNRBENLp.js → Monitor01-C_gVCCps.js} +1 -1
  24. package/dist/client/assets/{Play-DEfGDCy-.js → Play-DWEq3LWP.js} +1 -1
  25. package/dist/client/assets/{Plus-C2jbSKfe.js → Plus-n5KTXyCz.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-D9-8u9ny.js → ReferenceLine-DEVTnbj2.js} +1 -1
  27. package/dist/client/assets/{SearchMd-DIZIcq-T.js → SearchMd-B9v3gV_V.js} +1 -1
  28. package/dist/client/assets/{ShoppingBag01-CVfO_hCG.js → ShoppingBag01-C0IQtOHj.js} +1 -1
  29. package/dist/client/assets/{Sun-CPfe1reh.js → Sun-CYLgqf2D.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-CFbhgx88.js → SwitchHorizontal01-B_WFRgSk.js} +1 -1
  31. package/dist/client/assets/{Tool01-BIyGNKrn.js → Tool01-C3qOO4-2.js} +1 -1
  32. package/dist/client/assets/{Tooltip-MqN6JJnW.js → Tooltip-DvgWJ47t.js} +1 -1
  33. package/dist/client/assets/{Trash01-D20QdwlW.js → Trash01-uKrzOq5g.js} +1 -1
  34. package/dist/client/assets/{TrendUp01-yJId_zlL.js → TrendUp01-DpUK5xLp.js} +1 -1
  35. package/dist/client/assets/{Upload01-C9Bt1TSM.js → Upload01-B5by2C-2.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-BNqLXBfG.js → UserCheck01-CI1951yc.js} +1 -1
  37. package/dist/client/assets/{UserSquare-BJ8rQzrf.js → UserSquare-BzGvxH2o.js} +1 -1
  38. package/dist/client/assets/{Users01-BF_7Ge84.js → Users01-hxkP_BcE.js} +1 -1
  39. package/dist/client/assets/{XClose-BeMmbmRj.js → XClose-DGEX5GIv.js} +1 -1
  40. package/dist/client/assets/{Zap-DnTlLwWn.js → Zap-VLndYrUw.js} +1 -1
  41. package/dist/client/assets/{access-gate-ys146buF.js → access-gate-DlMcB91s.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-BzuPzzcP.js → add-connection-dialog-CkoGrQvX.js} +1 -1
  43. package/dist/client/assets/agent-app-B7ftls3Z.js +1 -0
  44. package/dist/client/assets/{agent-assets-CriTGOWU.js → agent-assets-CghbeNXC.js} +1 -1
  45. package/dist/client/assets/{agent-automation-CikOpkf1.js → agent-automation-CBl5iYvS.js} +1 -1
  46. package/dist/client/assets/{agent-automations-Bgf1jQrh.js → agent-automations-BP9k8H9Z.js} +1 -1
  47. package/dist/client/assets/{agent-blog-F5KTJKh9.js → agent-blog-BMtDmL4D.js} +2 -2
  48. package/dist/client/assets/{agent-blog-post-OFgpigIS.js → agent-blog-post-CmrK5edA.js} +2 -2
  49. package/dist/client/assets/{agent-calendar-Dj_CPqBD.js → agent-calendar--WuDzh4S.js} +1 -1
  50. package/dist/client/assets/{agent-capabilities-nLnawz8n.js → agent-capabilities-DgKJkoYc.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-GVrze9Tn.js → agent-connect-sources-D0prFCyu.js} +1 -1
  52. package/dist/client/assets/agent-deck-CcvUJpH9.js +1 -0
  53. package/dist/client/assets/{agent-e2e-t_AgarMy.js → agent-e2e-BGCsWMH4.js} +1 -1
  54. package/dist/client/assets/agent-experiments-DAhsmbhH.js +1 -0
  55. package/dist/client/assets/agent-file-B823n-5A.js +1 -0
  56. package/dist/client/assets/{agent-hosting-DYqOSc12.js → agent-hosting-BMlo6ztg.js} +1 -1
  57. package/dist/client/assets/{agent-icon-Djmp3uF_.js → agent-icon-Cz4yRQtC.js} +1 -1
  58. package/dist/client/assets/agent-library-CB8qIzKG.js +1 -0
  59. package/dist/client/assets/agent-library-file-BEOBDbky.js +1 -0
  60. package/dist/client/assets/agent-overview-OCPL70AX.js +1 -0
  61. package/dist/client/assets/{agent-releases-CG7DBQNk.js → agent-releases-CRCs393n.js} +1 -1
  62. package/dist/client/assets/agent-settings-ChpWIcjh.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-bsAYI9Qx.js → agent-site-editor-Bu-Qng8e.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-Bcw39VAL.js +2 -0
  65. package/dist/client/assets/agent-site-editor-content-Bi-VEbvX.js +1 -0
  66. package/dist/client/assets/agent-site-editor-preview-UtWuCm95.js +1 -0
  67. package/dist/client/assets/{agent-view-guard-BjTeUL0l.js → agent-view-guard-AEHdl6py.js} +1 -1
  68. package/dist/client/assets/agent-view-wKu6zeUB.js +1 -0
  69. package/dist/client/assets/{ai-providers--9DxGzKr.js → ai-providers-CEHdDjZY.js} +1 -1
  70. package/dist/client/assets/{alert-DodlNZ2z.js → alert-Cqlm2lSd.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-BavM7p0J.js → analytics-sections-CeBlGvo4.js} +1 -1
  72. package/dist/client/assets/api-keys-CmxKXTZ8.js +1 -0
  73. package/dist/client/assets/{api-keys-C9Ltg2HT.js → api-keys-Cx90Lm6v.js} +1 -1
  74. package/dist/client/assets/{app-editor-oJJTX1pK.js → app-editor-sWxVU-d1.js} +1 -1
  75. package/dist/client/assets/{asset-utils-B8xngYBo.js → asset-utils-F3cCrDoF.js} +1 -1
  76. package/dist/client/assets/{auth-dN38N6ZJ.js → auth-B-QpuT1-.js} +1 -1
  77. package/dist/client/assets/{auth-catchall-BIoLm5Ab.js → auth-catchall-HAx7I2Dd.js} +1 -1
  78. package/dist/client/assets/{auth-entry-C1XoF05E.js → auth-entry-D7bh5pIo.js} +1 -1
  79. package/dist/client/assets/{auth-split-layout-C01yLUAN.js → auth-split-layout-DviWnr7K.js} +1 -1
  80. package/dist/client/assets/{authenticate-and-persist-oauth-BLc3TfFn.js → authenticate-and-persist-oauth-CiMJ5t7l.js} +1 -1
  81. package/dist/client/assets/{automation-list-row-PbVUdzfB.js → automation-list-row-DDKWZ6lq.js} +1 -1
  82. package/dist/client/assets/{automation-runs-Ci5bOvQY.js → automation-runs-B94owQKr.js} +1 -1
  83. package/dist/client/assets/{automations-932xVZmd.js → automations-Dw_bnzMp.js} +1 -1
  84. package/dist/client/assets/{badge-ooD-f3Xm.js → badge-DUPpSRXM.js} +1 -1
  85. package/dist/client/assets/{block-document-B3emD8Py.js → block-document-3zaS6DAL.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-CPWJ7AAs.js → blocks-preview-workspace-context-BeQfZDpi.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-BzneOCDW.js → blocks-tab-states-BTZOSl8o.js} +1 -1
  88. package/dist/client/assets/{blog-preview-url-BVoP3Psp.js → blog-preview-url-DKHGrBOi.js} +1 -1
  89. package/dist/client/assets/{blog-schema-Pk7BbGun.js → blog-schema-BUyE1j8J.js} +1 -1
  90. package/dist/client/assets/{blog-source-gate-BpC4RIWC.js → blog-source-gate-DHZ1-Rjz.js} +1 -1
  91. package/dist/client/assets/{blog-view-gate-CGKzU05m.js → blog-view-gate-BePH2wng.js} +1 -1
  92. package/dist/client/assets/{buckets-Cvkckzfy.js → buckets-Bkf0sWtN.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-DRdwqMyb.js → build-improve-prompt-doc-_CM2PBtN.js} +1 -1
  94. package/dist/client/assets/{calendar-Dfc1FCTZ.js → calendar-4vmCSMCw.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-D-MJtSCR.js → capability-load-error-BUnR6hyi.js} +1 -1
  96. package/dist/client/assets/{category-editor-DqvQQTB6.js → category-editor-B8-7yEHX.js} +1 -1
  97. package/dist/client/assets/{category-tree-D011La9Z.js → category-tree-mnbJJkLU.js} +1 -1
  98. package/dist/client/assets/{chart-uUI_EY97.js → chart-Bv5K7YpV.js} +1 -1
  99. package/dist/client/assets/{chat-context-Bb_Yeasx.js → chat-context-CYn-8MTb.js} +1 -1
  100. package/dist/client/assets/{chat-draft-C5b4ZZNT.js → chat-draft-D1hoDOE0.js} +1 -1
  101. package/dist/client/assets/{checkbox-B0iej-k4.js → checkbox-CWfz72Eg.js} +1 -1
  102. package/dist/client/assets/{choose-editor-BHGbYr9M.js → choose-editor-B7q3YFz-.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-BjK_2k36.js → cli-auth-success-BrZiEms8.js} +1 -1
  104. package/dist/client/assets/{cms-settings-editor-DczcBgsg.js → cms-settings-editor-Yt7OZ5fA.js} +1 -1
  105. package/dist/client/assets/{cms-store-drafts-D65g6QDr.js → cms-store-drafts-CY0_DNz9.js} +1 -1
  106. package/dist/client/assets/{collapsible-bv19Lgop.js → collapsible-BpmZcmV-.js} +1 -1
  107. package/dist/client/assets/{collection-detail-CrdyPuxx.js → collection-detail-DuNPhZH6.js} +1 -1
  108. package/dist/client/assets/{collection-display-button-bohOcAnJ.js → collection-display-button-BE5cj63q.js} +1 -1
  109. package/dist/client/assets/{collection-search-CT3oHQLL.js → collection-search-BpPD1cYG.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-COcHlvPf.js → collection-table-wrapper-2bTQbSCd.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-BbqMtY-J.js → collection-tabs--r5IslTr.js} +1 -1
  112. package/dist/client/assets/{combobox-C7dFW3mg.js → combobox-D0z8qltB.js} +1 -1
  113. package/dist/client/assets/{command-BUJZW101.js → command-B1uSCDOs.js} +1 -1
  114. package/dist/client/assets/{companion-mcps-section-OQv-05I3.js → companion-mcps-section-Cw4vcMP2.js} +1 -1
  115. package/dist/client/assets/{config-BW2WE8-w.js → config-BzgM9JXs.js} +1 -1
  116. package/dist/client/assets/{connect-BM_qQLsb.js → connect-BV05NolQ.js} +1 -1
  117. package/dist/client/assets/{connect-key-DaxTwfXl.js → connect-key-DcVDnMal.js} +1 -1
  118. package/dist/client/assets/{connect-layout-Dqk87DYY.js → connect-layout-CBMngQi6.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-Bo2D6V9J.js → connect-source-dialog-5QgQ5bbI.js} +1 -1
  120. package/dist/client/assets/{connection-CrDLMjxz.js → connection-IPXgFFkC.js} +1 -1
  121. package/dist/client/assets/{connection-card-B_Rm3jws.js → connection-card-1xH7fsgG.js} +1 -1
  122. package/dist/client/assets/{connection-detail-Dya4wQXw.js → connection-detail-BVoggBqn.js} +1 -1
  123. package/dist/client/assets/{connection-form-helpers-BnupWMcv.js → connection-form-helpers-3MHQU6Sq.js} +1 -1
  124. package/dist/client/assets/{connection-slug-Dsjc_7jc.js → connection-slug-CceJbleR.js} +1 -1
  125. package/dist/client/assets/{connections-CqzzCCFh.js → connections-Da3kc22q.js} +1 -1
  126. package/dist/client/assets/{content-tab-xOW2jmWD.js → content-tab-BGkRbQco.js} +3 -3
  127. package/dist/client/assets/{context-B52xcJP8.js → context-DXGbe4A7.js} +1 -1
  128. package/dist/client/assets/{context-menu-C3vl1voD.js → context-menu-LfR7ib0U.js} +1 -1
  129. package/dist/client/assets/{context-shell-CLN1cZ8-.js → context-shell-mG6S_SeS.js} +3 -3
  130. package/dist/client/assets/{create-organization-dialog-C8w69dn8.js → create-organization-dialog-Buynh2If.js} +1 -1
  131. package/dist/client/assets/{daily-pulse-BkhyNjIU.js → daily-pulse-ByBUq2mJ.js} +1 -1
  132. package/dist/client/assets/{delete-copy-D7GWyg_y.js → delete-copy-u7v8dBp-.js} +1 -1
  133. package/dist/client/assets/{device-hint-BWoKmEkk.js → device-hint-CMXety2v.js} +1 -1
  134. package/dist/client/assets/{discover-ClyGoNdo.js → discover-h9og78Pc.js} +1 -1
  135. package/dist/client/assets/{domain-settings-Bff7hkhZ.js → domain-settings-D-1cMb0P.js} +1 -1
  136. package/dist/client/assets/{drawer-9dr-ukqt.js → drawer-yBtPHk5P.js} +1 -1
  137. package/dist/client/assets/{editor-OtYf9TpJ.js → editor-CAoNl87t.js} +1 -1
  138. package/dist/client/assets/{editor-classes-B015z8BR.js → editor-classes-CMJUQ0q2.js} +1 -1
  139. package/dist/client/assets/{empty-message-DLDkQwTf.js → empty-message-Cc9hR1qr.js} +1 -1
  140. package/dist/client/assets/{empty-state-DgS_yB9S.js → empty-state-DR046JV4.js} +1 -1
  141. package/dist/client/assets/{empty-state-DGvmXTTx.js → empty-state-DTiQvFTm.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-C_eMr2Jc.js → experiments-tab-choice-BFJMX4A0.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-D5LnDq3n.js → extract-connection-data-CNr6phrB.js} +1 -1
  144. package/dist/client/assets/{feature-gate-BwfJl_-J.js → feature-gate-Ce8P1I_1.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-CEAWGxEK.js → feature-paywall-BHeChQEf.js} +1 -1
  146. package/dist/client/assets/{file-explorer-CsgK4soc.js → file-explorer-C3qnOlL5.js} +1 -1
  147. package/dist/client/assets/{file-preview-Dy_zYo8i.js → file-preview-Dc0CULiD.js} +1 -1
  148. package/dist/client/assets/{file-share-button-DwseFge1.js → file-share-button-CLXLIxu_.js} +1 -1
  149. package/dist/client/assets/{file-type-icon-BBC7AgSm.js → file-type-icon-B2pfAj_l.js} +1 -1
  150. package/dist/client/assets/{folder-icon-Cu3Aqv3z.js → folder-icon-D2FL6E99.js} +1 -1
  151. package/dist/client/assets/{form-C_3nPlqc.js → form-kDDI268e.js} +1 -1
  152. package/dist/client/assets/{frame-navigation-DyI9DOPc.js → frame-navigation-DHCzYM6E.js} +1 -1
  153. package/dist/client/assets/{gateway-client-GUKS8Neg.js → gateway-client-Cjf9YZgG.js} +1 -1
  154. package/dist/client/assets/{general-Cdeh5VuD.js → general-CqhH_qnq.js} +1 -1
  155. package/dist/client/assets/{github-icon-F-zWm9rJ.js → github-icon-DtM4VHDi.js} +1 -1
  156. package/dist/client/assets/{held-block-view-myNdCF-d.js → held-block-view--k2oql8p.js} +1 -1
  157. package/dist/client/assets/{home-CUGwCNOx.js → home-c0Tkyf1M.js} +1 -1
  158. package/dist/client/assets/{home-overview-D0M6VmNP.js → home-overview-DL2TwzH8.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-DbZes2_O.js → hosted-reconcile-DA19JQ88.js} +1 -1
  160. package/dist/client/assets/{icon-button-CO-b_Z7N.js → icon-button-_8DeXkO0.js} +1 -1
  161. package/dist/client/assets/{index-B4Z8qm4O.js → index-A1s-ls4_.js} +1 -1
  162. package/dist/client/assets/{index-CaoQI4w-.js → index-B1Vzlz4U.js} +1 -1
  163. package/dist/client/assets/{index-Aa6DiPpP.js → index-BH57s8xx.js} +1 -1
  164. package/dist/client/assets/{index-DdUaZwED.js → index-BRuWUMBj.js} +1 -1
  165. package/dist/client/assets/{index-BWOFXtLm.js → index-Bwq9ud4q.js} +1 -1
  166. package/dist/client/assets/{index-CEeYBwYa.js → index-C5opdymg.js} +1 -1
  167. package/dist/client/assets/{index-DeCbUCeI.js → index-C_RcX5na.js} +1 -1
  168. package/dist/client/assets/{index-kCYHIAlq.js → index-Ccvx4l8u.js} +1 -1
  169. package/dist/client/assets/{index-CUj2rPmp.js → index-CeduNoaB.js} +1 -1
  170. package/dist/client/assets/{index-Mge-nIe_.js → index-Cu4y6EEK.js} +1 -1
  171. package/dist/client/assets/{index-BbyUQV-V.js → index-D0JbJFfP.js} +3 -3
  172. package/dist/client/assets/{index-Bu3usBwV.js → index-D2_PsRqT.js} +1 -1
  173. package/dist/client/assets/{index-CVv3Fivj.js → index-DkZhaGHi.js} +1 -1
  174. package/dist/client/assets/{index-C98zqBJi.js → index-DuXh-o9C.js} +1 -1
  175. package/dist/client/assets/{index-CZNM0ywV.js → index-Uvh2dd2d.js} +1 -1
  176. package/dist/client/assets/{index-D8oZjzwY.js → index-eanoJh42.js} +1 -1
  177. package/dist/client/assets/{index-DbrfsNuM.js → index-hq5vMD7l.js} +1 -1
  178. package/dist/client/assets/{index-redirect-CbcSCuPI.js → index-redirect-CugWLrBL.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-DqRBsy9_.js → infiniteQueryObserver-DtEzALgC.js} +1 -1
  180. package/dist/client/assets/{infra-billing-CWfj-Pw9.js → infra-billing-CowfabqN.js} +1 -1
  181. package/dist/client/assets/{input-BG3wFK5M.js → input-CEK73Sex.js} +1 -1
  182. package/dist/client/assets/{input-BK3kIY9G.js → input-DF1Y7U-T.js} +3 -3
  183. package/dist/client/assets/{integration-icon-CqVW6T00.js → integration-icon-BkEHXL5H.js} +1 -1
  184. package/dist/client/assets/item-actions-Dt2DwB56.js +1 -0
  185. package/dist/client/assets/{jira-icon-BveDG26q.js → jira-icon-Cvf0iXMn.js} +1 -1
  186. package/dist/client/assets/{label-BlFTNuxs.js → label-Cz2ESzy4.js} +1 -1
  187. package/dist/client/assets/{layout-CJs8yxSP.js → layout-BK-aj1WP.js} +1 -1
  188. package/dist/client/assets/{legacy-admin-welcome-dialog-BeUx4hhs.js → legacy-admin-welcome-dialog-D7LEWnzk.js} +1 -1
  189. package/dist/client/assets/{legacy-agents-deep-D-0KzS7C.js → legacy-agents-deep-BkohdIkY.js} +1 -1
  190. package/dist/client/assets/{legacy-main-redirect-BnbcsFdv.js → legacy-main-redirect-CQXqcwTr.js} +1 -1
  191. package/dist/client/assets/library-5KTojEmZ.js +1 -0
  192. package/dist/client/assets/{library-tab-BsPi8uGe.js → library-tab-B7ct9qoc.js} +1 -1
  193. package/dist/client/assets/{login-CvKqHfzS.js → login-YWOyIcWn.js} +1 -1
  194. package/dist/client/assets/{markdown-BLD58IcZ.js → markdown-tL6sdqzq.js} +1 -1
  195. package/dist/client/assets/{mcp-app-renderer-C3N-ooKA.js → mcp-app-renderer-BhIn7g4y.js} +1 -1
  196. package/dist/client/assets/{mcp-oauth-BetyI4Sc.js → mcp-oauth-CJYJCIJk.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-BBRt-CKi.js → mcp-oauth-wEywaeew.js} +1 -1
  198. package/dist/client/assets/{members-G2uEV1Et.js → members-COS0v4hA.js} +1 -1
  199. package/dist/client/assets/{memory-BBzt-gTj.js → memory-BT9HM98O.js} +1 -1
  200. package/dist/client/assets/{mock-board-DzuhmO_q.js → mock-board-DJcG8Pad.js} +3 -3
  201. package/dist/client/assets/{monaco-editor-BTeatlwM.js → monaco-editor-Durke4zw.js} +1 -1
  202. package/dist/client/assets/{monitoring-C9ty4kJN.js → monitoring-DTUmrug3.js} +1 -1
  203. package/dist/client/assets/{monitoring-stats-row-Ca0svB-0.js → monitoring-stats-row-7dJGk5QN.js} +1 -1
  204. package/dist/client/assets/{multi-select-xFJ9DMUE.js → multi-select-3B0TZSKv.js} +1 -1
  205. package/dist/client/assets/{mustache-BB27WkZo.js → mustache-B8dPn6lp.js} +1 -1
  206. package/dist/client/assets/{named-rule-step-DHcxNdON.js → named-rule-step-lmAbDDuM.js} +1 -1
  207. package/dist/client/assets/{named-rule-view-Blk7EotW.js → named-rule-view-latij48D.js} +1 -1
  208. package/dist/client/assets/{new-project-dialog-CwWe9JTm.js → new-project-dialog-DpI3oirN.js} +1 -1
  209. package/dist/client/assets/{new-project-store-DI-rcaGT.js → new-project-store-CU2miSo6.js} +1 -1
  210. package/dist/client/assets/{oauth-callback-ai-provider-DNhExCAX.js → oauth-callback-ai-provider-Dy0T05tF.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-JurbFJad.js → oauth-callback-qJyQoaTr.js} +1 -1
  212. package/dist/client/assets/{oauth-consent-Dv-Pk8HZ.js → oauth-consent-CsrgkVd2.js} +1 -1
  213. package/dist/client/assets/{onboarding-NnDc0_K6.js → onboarding-BG67tfWh.js} +1 -1
  214. package/dist/client/assets/{openai-conversation-C3QjsSfG.js → openai-conversation-qkOZuSP9.js} +1 -1
  215. package/dist/client/assets/{optimistic-project-sidebar-views-B7gNYHcx.js → optimistic-project-sidebar-views-DP6_xZnw.js} +1 -1
  216. package/dist/client/assets/{order-monitor-day-DfBlxxW3.js → order-monitor-day-DCDAwCcy.js} +1 -1
  217. package/dist/client/assets/{organization-choice-CIf8awfg.js → organization-choice-Di2R8L3I.js} +1 -1
  218. package/dist/client/assets/{orgs-D2UEp59O.js → orgs-Bl6bbwzN.js} +1 -1
  219. package/dist/client/assets/{own-accounts-section-9LGriAR-.js → own-accounts-section-DdFjVQqe.js} +1 -1
  220. package/dist/client/assets/{pair-Dg8_WzRx.js → pair-DyZ1K8WQ.js} +1 -1
  221. package/dist/client/assets/{parse-sections-DFcHy6a1.js → parse-sections-D4rEtefR.js} +2 -2
  222. package/dist/client/assets/{plan-DpsDK1nS.js → plan-RJj-iCo4.js} +1 -1
  223. package/dist/client/assets/{plan-ladder-i51kvc_6.js → plan-ladder-C4IQnf9g.js} +1 -1
  224. package/dist/client/assets/{plan-usage-card-Mo9p5apk.js → plan-usage-card-CrMWJU-G.js} +1 -1
  225. package/dist/client/assets/{popover-B2fZ96W0.js → popover-CHMhtCUs.js} +1 -1
  226. package/dist/client/assets/{post-calendar-BxpnvMqZ.js → post-calendar-CN1diBak.js} +1 -1
  227. package/dist/client/assets/{post-editor-DA_1qcnl.js → post-editor-BcwPJV8K.js} +1 -1
  228. package/dist/client/assets/{preview-content-D5RMjaD6.js → preview-content-BOQns-lB.js} +1 -1
  229. package/dist/client/assets/{preview-dialog-C0sVKUR7.js → preview-dialog-C7cBTnki.js} +1 -1
  230. package/dist/client/assets/{preview-panel-CInuQgv3.js → preview-panel-Dj9mGout.js} +1 -1
  231. package/dist/client/assets/{preview-tab-D51UeUtA.js → preview-tab-DmV1MCqv.js} +3 -3
  232. package/dist/client/assets/{product-picker-dialog-DSDf6Bwa.js → product-picker-dialog-Byy9UJeP.js} +1 -1
  233. package/dist/client/assets/{profile-BclswKhx.js → profile-WjwNygHC.js} +1 -1
  234. package/dist/client/assets/{project-app-view-ke3ZuGxF.js → project-app-view-nn15XQnF.js} +1 -1
  235. package/dist/client/assets/{project-apps-fbR4xDRx.js → project-apps-8wVrHF3C.js} +1 -1
  236. package/dist/client/assets/{project-icon-BbR0XGm1.js → project-icon-EAm2TPOd.js} +1 -1
  237. package/dist/client/assets/{project-index-lWz60EWQ.js → project-index-n6zIw3HS.js} +1 -1
  238. package/dist/client/assets/project-reports-BJG8cv_j.js +1 -0
  239. package/dist/client/assets/project-tasks-s96uaQBm.js +1 -0
  240. package/dist/client/assets/{projects-BM5L61A_.js → projects-0A5PF_Ra.js} +1 -1
  241. package/dist/client/assets/{projects-empty-state-Vmw2nbR-.js → projects-empty-state-C-UOiCuP.js} +1 -1
  242. package/dist/client/assets/{prompts-DEXjOdXC.js → prompts-CILhcEu9.js} +1 -1
  243. package/dist/client/assets/record-editor-BUTAoLlf.js +1 -0
  244. package/dist/client/assets/{redirect-editor-_jG1X_eI.js → redirect-editor-lI_kGmrc.js} +1 -1
  245. package/dist/client/assets/reports-Ci-ze_9x.js +1 -0
  246. package/dist/client/assets/{reports-_8k_JS7q.js → reports-DR1rn8J7.js} +1 -1
  247. package/dist/client/assets/{reports-onboarding-8vGx8eDL.js → reports-onboarding-B66tPRvi.js} +1 -1
  248. package/dist/client/assets/{reports-tab-Caka1Haa.js → reports-tab-DKruN66x.js} +2 -2
  249. package/dist/client/assets/{repositories-B9q1-DTL.js → repositories-Bbw0CrFR.js} +1 -1
  250. package/dist/client/assets/repositories-BqfuO_cv.js +1 -0
  251. package/dist/client/assets/{repository-binding-CYxPGVF9.js → repository-binding-BkeJ2CtJ.js} +1 -1
  252. package/dist/client/assets/{repository-picker-BwLPliw3.js → repository-picker-BjO-oJEQ.js} +1 -1
  253. package/dist/client/assets/{require-capability-BdZtDVPs.js → require-capability-BgMHtUR9.js} +1 -1
  254. package/dist/client/assets/{required-auth-layout-CEv7xMbD.js → required-auth-layout-DtC4GqSJ.js} +1 -1
  255. package/dist/client/assets/{reset-password-DcjIR0v2.js → reset-password-DY5b2Erk.js} +1 -1
  256. package/dist/client/assets/{resizable-CDz_Gn5D.js → resizable-Cd2hDMdu.js} +1 -1
  257. package/dist/client/assets/{resolve-tab-icon-DSU20OFN.js → resolve-tab-icon-EXlDKnuK.js} +1 -1
  258. package/dist/client/assets/{review-settings-4ZKA9iW7.js → review-settings-CqBIGzNT.js} +1 -1
  259. package/dist/client/assets/{role-color-CAtp2x5d.js → role-color-DFMPljwV.js} +1 -1
  260. package/dist/client/assets/{roles-B7qeAHn4.js → roles-Dw2sI3jk.js} +1 -1
  261. package/dist/client/assets/route-BCIzQ5q9.js +1 -0
  262. package/dist/client/assets/route-BJPaaD6u.js +1 -0
  263. package/dist/client/assets/{route-CjIHbnSM.js → route-CZALPmji.js} +1 -1
  264. package/dist/client/assets/{route-page-header-BtRFuS1p.js → route-page-header-BPaA0qrQ.js} +1 -1
  265. package/dist/client/assets/{sandbox-git-api-a72xh_lB.js → sandbox-git-api-DY2JBwrb.js} +1 -1
  266. package/dist/client/assets/{sandbox-lifecycle-context-BgQ_JLd0.js → sandbox-lifecycle-context-DwvoKy-z.js} +1 -1
  267. package/dist/client/assets/save-status-DXZEEhy7.js +1 -0
  268. package/dist/client/assets/{schema-BoCycph4.js → schema-CZDH3n7J.js} +1 -1
  269. package/dist/client/assets/{schema-DvznvyNF.js → schema-ClQSeEkW.js} +1 -1
  270. package/dist/client/assets/{scroll-area-BJzMdjhR.js → scroll-area-D27AfOYB.js} +1 -1
  271. package/dist/client/assets/{search-input-Dx1nMhkR.js → search-input-jt6Xgx4B.js} +1 -1
  272. package/dist/client/assets/{search-toggle-CUowc2bs.js → search-toggle-D3HRB5Df.js} +1 -1
  273. package/dist/client/assets/{secret-picker-CzcUm0AA.js → secret-picker-XaaAcM5r.js} +1 -1
  274. package/dist/client/assets/{secrets-T6PONWpM.js → secrets-BvHbzBRf.js} +1 -1
  275. package/dist/client/assets/{section-array-field-Dau5fGuc.js → section-array-field-whxy-DeQ.js} +1 -1
  276. package/dist/client/assets/{sections-B_pt0duw.js → sections-Cthuvf0M.js} +1 -1
  277. package/dist/client/assets/{sections-editor-B1dRi1DP.js → sections-editor-CCOVQk8_.js} +1 -1
  278. package/dist/client/assets/{select-CaROtCr6.js → select-CHNsjY6K.js} +1 -1
  279. package/dist/client/assets/{select-model-B_uQ8JoM.js → select-model-CxmLGQ73.js} +1 -1
  280. package/dist/client/assets/{seo-editor-CgBBfTmC.js → seo-editor-gj6rND5b.js} +1 -1
  281. package/dist/client/assets/{separator-DzpcrIme.js → separator-BDf2J6cr.js} +1 -1
  282. package/dist/client/assets/{session-runtime-B3M5aN-q.js → session-runtime-Af7XCW1y.js} +1 -1
  283. package/dist/client/assets/settings-tab-DjqNp38m.js +1 -0
  284. package/dist/client/assets/{sheet-um4noh5c.js → sheet-DQnddENA.js} +1 -1
  285. package/dist/client/assets/{shell-layout-49bNXIez.js → shell-layout-8n97Gfv2.js} +1 -1
  286. package/dist/client/assets/{site-draft-actions-DK9guIkf.js → site-draft-actions-f9v6MtCM.js} +1 -1
  287. package/dist/client/assets/{site-draft-view-WvygLXbI.js → site-draft-view-DDIBbub5.js} +1 -1
  288. package/dist/client/assets/site-editor-DZ3A-aYm.js +1 -0
  289. package/dist/client/assets/{site-editor-toast-CkErPR2A.js → site-editor-toast-B7n4gXl4.js} +1 -1
  290. package/dist/client/assets/{skills-DOI-sQ-e.js → skills-DFVK-W9z.js} +1 -1
  291. package/dist/client/assets/{slider-BSl20SQg.js → slider-C2mk6liJ.js} +1 -1
  292. package/dist/client/assets/{sortable.esm-CqIiSw1u.js → sortable.esm-D-Grx_BB.js} +1 -1
  293. package/dist/client/assets/{sso-BjUVysiz.js → sso-CXnYKuTn.js} +1 -1
  294. package/dist/client/assets/{suggestion-Ddmtk3Nb.js → suggestion-hAQ8JrrP.js} +1 -1
  295. package/dist/client/assets/{super-agent-icon-DoovhGsp.js → super-agent-icon-DLAa0E4b.js} +1 -1
  296. package/dist/client/assets/{switch-BH2QiW4s.js → switch-DLa18g9P.js} +1 -1
  297. package/dist/client/assets/{synced-repos-CWR0L5YE.js → synced-repos-CW0qt6Jp.js} +1 -1
  298. package/dist/client/assets/{tab-icon-glyph-DOr4PjkR.js → tab-icon-glyph-sPxJu63d.js} +1 -1
  299. package/dist/client/assets/{table-C92UEJKy.js → table-DwE6kXVm.js} +1 -1
  300. package/dist/client/assets/{tabs-NIuu6bj4.js → tabs-Bpa2glNp.js} +1 -1
  301. package/dist/client/assets/{task-board-_DSzqPWi.js → task-board-V6fHxbUs.js} +1 -1
  302. package/dist/client/assets/{task-key-CaAm1Jwf.js → task-key-kJFx4e2o.js} +1 -1
  303. package/dist/client/assets/{task-route-DLJKfX0K.js → task-route-DFPlSt_R.js} +1 -1
  304. package/dist/client/assets/{task-status-DA1DjG6p.js → task-status-bSdxlxRQ.js} +1 -1
  305. package/dist/client/assets/{taskboard-analytics-Dh8Uts6G.js → taskboard-analytics-ylcJh5LS.js} +1 -1
  306. package/dist/client/assets/{tasks-BbQQWzuJ.js → tasks-D70ou02W.js} +1 -1
  307. package/dist/client/assets/tasks-DcUnjS-o.js +1 -0
  308. package/dist/client/assets/{textarea-Co6WXg3Y.js → textarea-DKKpu4j7.js} +1 -1
  309. package/dist/client/assets/{thread-analytics-DXYu0MbV.js → thread-analytics-BIEg-EM0.js} +1 -1
  310. package/dist/client/assets/{thread-button-8Paou_ey.js → thread-button-C2TH27Tw.js} +1 -1
  311. package/dist/client/assets/{thread-intent-BNjS3eKm.js → thread-intent-dNVrC8sL.js} +1 -1
  312. package/dist/client/assets/{thread-route-B-bmrR_e.js → thread-route-DRUKUdDI.js} +1 -1
  313. package/dist/client/assets/{thread-route-B-vrKdst.js → thread-route-yhTv7wYw.js} +1 -1
  314. package/dist/client/assets/{thread-sheet-body-BruhHKIO.js → thread-sheet-body-2n-7Buvv.js} +1 -1
  315. package/dist/client/assets/{time-range-picker-DLzufi0f.js → time-range-picker-BL4eezN1.js} +1 -1
  316. package/dist/client/assets/{toggle-group-D14vFqFg.js → toggle-group-D9Y0fm-3.js} +1 -1
  317. package/dist/client/assets/{tool-set-selector-EC4Q3po8.js → tool-set-selector-Drp4qxhz.js} +1 -1
  318. package/dist/client/assets/{toolbar-icon-button-CKwtmkGZ.js → toolbar-icon-button-BSNdxRRG.js} +1 -1
  319. package/dist/client/assets/{tooltip-CINPZAUE.js → tooltip-bcUJYhL_.js} +1 -1
  320. package/dist/client/assets/{tooltipContext-B7kIVm-_.js → tooltipContext-DEGZ2uVc.js} +1 -1
  321. package/dist/client/assets/{track-B0303apM.js → track-BBPO8uHZ.js} +1 -1
  322. package/dist/client/assets/{types-KLF33bAU.js → types-BfjfZI1L.js} +1 -1
  323. package/dist/client/assets/{url-slug-BhLnqovl.js → url-slug-DlaJQcf1.js} +1 -1
  324. package/dist/client/assets/{usage-stats-DTw2_3QF.js → usage-stats-D_d2D8Wj.js} +1 -1
  325. package/dist/client/assets/{use-ai-providers-BxpYBICM.js → use-ai-providers-CA-khqag.js} +1 -1
  326. package/dist/client/assets/{use-api-keys-DEL0nRO1.js → use-api-keys-DmoX8fkX.js} +1 -1
  327. package/dist/client/assets/{use-apply-named-rule-CRVOk9Kn.js → use-apply-named-rule-Df7T3xoC.js} +1 -1
  328. package/dist/client/assets/use-ask-in-chat-KRmd65S3.js +1 -0
  329. package/dist/client/assets/{use-automations-Da6nezmh.js → use-automations-CkV07sTy.js} +1 -1
  330. package/dist/client/assets/{use-autosave-BHk7ZJHa.js → use-autosave-BI9FF_Nw.js} +1 -1
  331. package/dist/client/assets/use-blocks-v8-project-DM7tjD-Y.js +1 -0
  332. package/dist/client/assets/use-blog-view-DuP6av7s.js +1 -0
  333. package/dist/client/assets/{use-chat-layout-state-BmTxsTjG.js → use-chat-layout-state-SUAjqrxB.js} +1 -1
  334. package/dist/client/assets/{use-cms-publish-actions-wU3dtco2.js → use-cms-publish-actions-Dbj-FgCO.js} +1 -1
  335. package/dist/client/assets/{use-connect-companion-N3ywRKD4.js → use-connect-companion-BewE2n-r.js} +1 -1
  336. package/dist/client/assets/{use-connection-Q1OVyR-K.js → use-connection-BlwEJ6QU.js} +1 -1
  337. package/dist/client/assets/{use-content-sync-D1DcK5RP.js → use-content-sync-fyaHiMZi.js} +1 -1
  338. package/dist/client/assets/{use-copy-CHLJB-eJ.js → use-copy-CLDbNfFh.js} +1 -1
  339. package/dist/client/assets/{use-current-view-DWPEJKMo.js → use-current-view-BOFMyET9.js} +1 -1
  340. package/dist/client/assets/{use-date-fns-locale-Ch-Feesx.js → use-date-fns-locale-Bd2tfTTF.js} +1 -1
  341. package/dist/client/assets/{use-debounced-autosave-C330kFl7.js → use-debounced-autosave-w4z8emZZ.js} +1 -1
  342. package/dist/client/assets/{use-debounced-value-CDV_Hdj_.js → use-debounced-value-CKJPodTI.js} +1 -1
  343. package/dist/client/assets/{use-deco-credits-BH9MKLeU.js → use-deco-credits-B3QsHbOs.js} +1 -1
  344. package/dist/client/assets/{use-decopilot-events-Bzy3gyOh.js → use-decopilot-events-g19xYjLG.js} +1 -1
  345. package/dist/client/assets/{use-delete-block-Ds8KKf4b.js → use-delete-block-BM2EDDox.js} +1 -1
  346. package/dist/client/assets/{use-delete-connection-CUYN49rH.js → use-delete-connection-ChSMTPNG.js} +1 -1
  347. package/dist/client/assets/{use-deployment-admin-44Nr2y3l.js → use-deployment-admin-D5oW79CT.js} +1 -1
  348. package/dist/client/assets/{use-entitlements-D_bekXoy.js → use-entitlements-hCyBXtuJ.js} +1 -1
  349. package/dist/client/assets/{use-fast-preview-draft-url-BJcuelFd.js → use-fast-preview-draft-url-EPskZgiI.js} +1 -1
  350. package/dist/client/assets/{use-file-configs-Dv6Dn9-s.js → use-file-configs-BHoa1WZE.js} +1 -1
  351. package/dist/client/assets/{use-id-selection-B5eFUC_T.js → use-id-selection-pnESFlAH.js} +1 -1
  352. package/dist/client/assets/{use-in-settings-DsvAK9xJ.js → use-in-settings-1MICTjP9.js} +1 -1
  353. package/dist/client/assets/{use-inbox-feed-DUOXuaWM.js → use-inbox-feed-IJbAYVJ5.js} +1 -1
  354. package/dist/client/assets/{use-infinite-scroll-K5fXsA2s.js → use-infinite-scroll-47R6Hyro.js} +1 -1
  355. package/dist/client/assets/{use-join-requests-ne0-a4Uk.js → use-join-requests-BPAsPyx8.js} +1 -1
  356. package/dist/client/assets/{use-main-panel-tabs-ZUH2Q11R.js → use-main-panel-tabs-Zy_d8HK3.js} +1 -1
  357. package/dist/client/assets/{use-mcp-auth-status-BydVHpTh.js → use-mcp-auth-status-BDCbIbFE.js} +1 -1
  358. package/dist/client/assets/{use-mcp-client-KtY-iAqe.js → use-mcp-client-Cnv47oK4.js} +1 -1
  359. package/dist/client/assets/{use-mcp-prompts-hYH8zGss.js → use-mcp-prompts-BEiCSVNE.js} +1 -1
  360. package/dist/client/assets/{use-mcp-tools-Bkf2GErZ.js → use-mcp-tools-8aCXB58i.js} +1 -1
  361. package/dist/client/assets/{use-mobile-BFnx6XU5.js → use-mobile-DXgcDHnH.js} +1 -1
  362. package/dist/client/assets/{use-move-blocks-CTFo8anC.js → use-move-blocks-BzKtUTnP.js} +1 -1
  363. package/dist/client/assets/{use-navigate-to-agent-DzfMLwHb.js → use-navigate-to-agent-Jn9AHv5I.js} +1 -1
  364. package/dist/client/assets/{use-never-published-DvQ5FOx0.js → use-never-published-CS1sCoUt.js} +1 -1
  365. package/dist/client/assets/{use-org-fs-BQXLoGp0.js → use-org-fs-0zArVAMr.js} +1 -1
  366. package/dist/client/assets/{use-org-notice-DiGO_5sP.js → use-org-notice-DuKnnmVo.js} +1 -1
  367. package/dist/client/assets/{use-org-repo-syncs-DXQDNA2H.js → use-org-repo-syncs-DteS2PPH.js} +1 -1
  368. package/dist/client/assets/{use-org-sso-BqAhMDLF.js → use-org-sso-D1j0oTnH.js} +1 -1
  369. package/dist/client/assets/{use-organization-settings-C_xGXqYD.js → use-organization-settings-PllK3r0i.js} +1 -1
  370. package/dist/client/assets/{use-panel-navigate-m_WUKcO1.js → use-panel-navigate-CAZIXqmL.js} +1 -1
  371. package/dist/client/assets/{use-project-native-view-presence-DoNrSMI0.js → use-project-native-view-presence-BE1ptslQ.js} +1 -1
  372. package/dist/client/assets/{use-project-scope-tAmzLFmo.js → use-project-scope-DA6OZsHG.js} +1 -1
  373. package/dist/client/assets/{use-recent-apps-D4SaJyU5.js → use-recent-apps-DeTsw193.js} +1 -1
  374. package/dist/client/assets/{use-reports-diagnostic-CQf2IKUc.js → use-reports-diagnostic-CDJkhX3Z.js} +1 -1
  375. package/dist/client/assets/{use-sandbox-events-Choa45Ad.js → use-sandbox-events-BZR9Xvyj.js} +1 -1
  376. package/dist/client/assets/{use-secrets-B89UQslL.js → use-secrets-C9vyBfSH.js} +1 -1
  377. package/dist/client/assets/{use-section-preview-base-oNURhBRp.js → use-section-preview-base-DcN4R2fZ.js} +1 -1
  378. package/dist/client/assets/{use-sidebar-collapsed-DonGXxtx.js → use-sidebar-collapsed-BoDydqEu.js} +1 -1
  379. package/dist/client/assets/{use-tags-DlbCsNcX.js → use-tags-ta1jGy7k.js} +1 -1
  380. package/dist/client/assets/{use-task-board-analytics-CrP9Mh4i.js → use-task-board-analytics-BrO0ETlJ.js} +1 -1
  381. package/dist/client/assets/{use-task-board-item-prs-DyqixuOS.js → use-task-board-item-prs-CHUrrNd1.js} +1 -1
  382. package/dist/client/assets/{use-task-board-items-FrK4WjzX.js → use-task-board-items-uhqh6PNR.js} +1 -1
  383. package/dist/client/assets/{use-task-board-prompts-JQ5bYVQJ.js → use-task-board-prompts-D43tghaN.js} +1 -1
  384. package/dist/client/assets/{use-task-metadata-D2mdWA_p.js → use-task-metadata-BFdyyZRC.js} +1 -1
  385. package/dist/client/assets/{use-thread-outputs-BYENDfew.js → use-thread-outputs-D_-5CcDB.js} +1 -1
  386. package/dist/client/assets/{use-view-draft-kind-eAKU4tzG.js → use-view-draft-kind-2ZPvA4uU.js} +1 -1
  387. package/dist/client/assets/{use-voice-input-CFZw5CCV.js → use-voice-input-BVDR_h76.js} +1 -1
  388. package/dist/client/assets/useInfiniteQuery-fnTqEMy9.js +1 -0
  389. package/dist/client/assets/{useQueries-DFX8Ra2q.js → useQueries-CmlQ5ude.js} +1 -1
  390. package/dist/client/assets/useSuspenseInfiniteQuery-CnPwOZuW.js +1 -0
  391. package/dist/client/assets/{users-CpjXg9O4.js → users-Dh7gdfol.js} +1 -1
  392. package/dist/client/assets/{utils-C_wnF1Qr.js → utils-T-xgwvu9.js} +1 -1
  393. package/dist/client/assets/{variant-calendar-CNAmWyjo.js → variant-calendar-CDO68J7G.js} +1 -1
  394. package/dist/client/assets/{variant-matcher-override-Dq-o59Sr.js → variant-matcher-override-MqCM8vjD.js} +1 -1
  395. package/dist/client/assets/{view-header-DFmoKFz1.js → view-header-Bee_uEOf.js} +1 -1
  396. package/dist/client/assets/{virtual-mcp-BL-2RDhS.js → virtual-mcp-BiyQxJGK.js} +1 -1
  397. package/dist/client/assets/{watch-sse-pool-TBuzagYQ.js → watch-sse-pool-C4P_vqWF.js} +1 -1
  398. package/dist/client/index.html +1 -1
  399. package/dist/server/server.js +1 -1
  400. package/package.json +1 -1
  401. package/dist/client/assets/agent-app-BplGduEL.js +0 -1
  402. package/dist/client/assets/agent-deck-DcBq-EFc.js +0 -1
  403. package/dist/client/assets/agent-experiments-Db41C8mK.js +0 -1
  404. package/dist/client/assets/agent-file-CCf39Rtq.js +0 -1
  405. package/dist/client/assets/agent-library-DPkauleQ.js +0 -1
  406. package/dist/client/assets/agent-library-file-DBFbWEdb.js +0 -1
  407. package/dist/client/assets/agent-overview-w61B53CG.js +0 -1
  408. package/dist/client/assets/agent-settings-DhAam1Kq.js +0 -1
  409. package/dist/client/assets/agent-site-editor-code-B7ydMNRc.js +0 -2
  410. package/dist/client/assets/agent-site-editor-content-DGHE_na5.js +0 -1
  411. package/dist/client/assets/agent-site-editor-preview-B2KHkUGc.js +0 -1
  412. package/dist/client/assets/agent-view-2ZyI-5m_.js +0 -1
  413. package/dist/client/assets/api-keys-QeNKM9--.js +0 -1
  414. package/dist/client/assets/item-actions-BR73Lbpo.js +0 -1
  415. package/dist/client/assets/library-D1GvJnHB.js +0 -1
  416. package/dist/client/assets/project-reports-B9Ihgtjs.js +0 -1
  417. package/dist/client/assets/project-tasks-BlyYNsZd.js +0 -1
  418. package/dist/client/assets/record-editor-5moRR35h.js +0 -1
  419. package/dist/client/assets/reports-BRR7RsFA.js +0 -1
  420. package/dist/client/assets/repositories-DJEaM14h.js +0 -1
  421. package/dist/client/assets/route-D1xX0HWw.js +0 -1
  422. package/dist/client/assets/route-DxBgurmK.js +0 -1
  423. package/dist/client/assets/save-status-BXi_cq_U.js +0 -1
  424. package/dist/client/assets/settings-tab-dHZPtR7N.js +0 -1
  425. package/dist/client/assets/site-editor-CD68AWh1.js +0 -1
  426. package/dist/client/assets/tasks-CpE_irof.js +0 -1
  427. package/dist/client/assets/use-ask-in-chat-DbbisiOd.js +0 -1
  428. package/dist/client/assets/use-blocks-v8-project-CTDs5jlx.js +0 -1
  429. package/dist/client/assets/use-blog-view-B5vAwn2e.js +0 -1
  430. package/dist/client/assets/useInfiniteQuery-L4kwu3zj.js +0 -1
  431. package/dist/client/assets/useSuspenseInfiniteQuery-B00pnfIH.js +0 -1
@@ -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-DTw2_3QF.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-BbyUQV-V.js";import{C as k}from"./index-BWOFXtLm.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-D_d2D8Wj.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-D0JbJFfP.js";import{C as k}from"./index-Bwq9ud4q.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,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-BbyUQV-V.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-DTw2_3QF.js";import{T as C,n as Rt,i as _t,E as $t}from"./editor-classes-B015z8BR.js";import{a as Ct,e as Ue,s as It,S as Lt}from"./suggestion-Ddmtk3Nb.js";import{B as zt}from"./index-CUj2rPmp.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-Djmp3uF_.js";import{i as Ft}from"./SwitchHorizontal01-CFbhgx88.js";import{s as qt}from"./Trash01-D20QdwlW.js";import{k as Ut,a as Zt}from"./use-org-fs-BQXLoGp0.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-BLD58IcZ.js";import{s as Jt,T as en}from"./index-BWOFXtLm.js";import{f as tn,a as nn,c as rn,C as sn,b as Ee}from"./command-BUJZW101.js";import{I as an}from"./icon-button-CO-b_Z7N.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-D0JbJFfP.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-D_d2D8Wj.js";import{T as C,n as Rt,i as _t,E as $t}from"./editor-classes-CMJUQ0q2.js";import{a as Ct,e as Ue,s as It,S as Lt}from"./suggestion-hAQ8JrrP.js";import{B as zt}from"./index-CeduNoaB.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-Cz4yRQtC.js";import{i as Ft}from"./SwitchHorizontal01-B_WFRgSk.js";import{s as qt}from"./Trash01-uKrzOq5g.js";import{k as Ut,a as Zt}from"./use-org-fs-0zArVAMr.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-tL6sdqzq.js";import{s as Jt,T as en}from"./index-Bwq9ud4q.js";import{f as tn,a as nn,c as rn,C as sn,b as Ee}from"./command-B1uSCDOs.js";import{I as an}from"./icon-button-_8DeXkO0.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,`