decocms 4.294.3 → 4.295.0
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.
- package/dist/client/assets/{AlertCircle-DLj-rBLn.js → AlertCircle-AuVMh5dI.js} +1 -1
- package/dist/client/assets/{AreaChart-9FGrcqfj.js → AreaChart-32Qtz-eE.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Bz-VyTFg.js → ArrowLeft-qguukyWS.js} +1 -1
- package/dist/client/assets/{ArrowUp-C9wijSHC.js → ArrowUp-D8KdFxp3.js} +1 -1
- package/dist/client/assets/{Check-CTKt7DPp.js → Check-De5xbMZ_.js} +1 -1
- package/dist/client/assets/{CheckCircle-DOOBCpT9.js → CheckCircle-EPKsKkCI.js} +1 -1
- package/dist/client/assets/{ChevronDown-DCBuHd0m.js → ChevronDown-D6sMb7w8.js} +1 -1
- package/dist/client/assets/{ChevronRight-CO9K42kJ.js → ChevronRight-eCyOlX7q.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Iu37Jtvz.js → ChevronSelectorVertical-DXXBw1x3.js} +1 -1
- package/dist/client/assets/{ChevronUp-D6fZUTvM.js → ChevronUp-CU8wkfB6.js} +1 -1
- package/dist/client/assets/{Copy01-C-9zesbF.js → Copy01-CprinEfn.js} +1 -1
- package/dist/client/assets/{CreditCard01-CKM-Jz3x.js → CreditCard01-D1pg-ChJ.js} +1 -1
- package/dist/client/assets/{DotsVertical-CSkWlHZt.js → DotsVertical-K-45hvkg.js} +1 -1
- package/dist/client/assets/{Download01-DYsmBrAR.js → Download01-BKILAf-9.js} +1 -1
- package/dist/client/assets/{Eye-Bf1344cz.js → Eye-BIEDLA51.js} +1 -1
- package/dist/client/assets/{FilterLines-D4VZo9JH.js → FilterLines-BRzgKNAI.js} +1 -1
- package/dist/client/assets/{Globe01-Mlkbzavy.js → Globe01-CpKIMjw2.js} +1 -1
- package/dist/client/assets/{Globe04-CcZwBZDM.js → Globe04-HRnTxSxk.js} +1 -1
- package/dist/client/assets/{HardDrive-rv6yXW9l.js → HardDrive-CPFqpUNk.js} +1 -1
- package/dist/client/assets/{Key01-C71Bncy8.js → Key01-CGwhy3oU.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Bd5qXJx-.js → LinkExternal01-PqQ-7e5z.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-xUxyOLI6.js → LockUnlocked01-CrE32oee.js} +1 -1
- package/dist/client/assets/{LogOut01-CFPuWi87.js → LogOut01-DeUaCLqa.js} +1 -1
- package/dist/client/assets/{Monitor01-Db3wK3MU.js → Monitor01-2y5hMZ1w.js} +1 -1
- package/dist/client/assets/{Palette-Wf7ieWzf.js → Palette-0eaeXKN1.js} +1 -1
- package/dist/client/assets/{Play-CTzOPD4i.js → Play-CwsbwXLV.js} +1 -1
- package/dist/client/assets/{Plus-C20besyI.js → Plus-BVETRe-R.js} +1 -1
- package/dist/client/assets/{SearchLg-BoAF9n4o.js → SearchLg-C3NeQGSM.js} +1 -1
- package/dist/client/assets/{SearchMd-DbgBw9S_.js → SearchMd-BmF-Y8C_.js} +1 -1
- package/dist/client/assets/{Settings02-DVdySYD4.js → Settings02-BGe12x-0.js} +1 -1
- package/dist/client/assets/{Share07-TLJEQyW1.js → Share07-CIcrbYTY.js} +1 -1
- package/dist/client/assets/{Shield01-CVEumGx3.js → Shield01-BdVpW4u3.js} +1 -1
- package/dist/client/assets/{Stars01-BLlf5jfX.js → Stars01-DtpzfCLb.js} +1 -1
- package/dist/client/assets/{Stars02-DSl09LS3.js → Stars02-Dkvt8wI3.js} +1 -1
- package/dist/client/assets/{Sun-D8Cz2KrR.js → Sun--6iEcFDH.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DxrMcxk-.js → SwitchHorizontal01-4ZxiW7Cz.js} +1 -1
- package/dist/client/assets/{Tool01-C-r-Zf-I.js → Tool01-Us4du1HU.js} +1 -1
- package/dist/client/assets/{Tool02-CQfhYBA-.js → Tool02-D26qiRWa.js} +1 -1
- package/dist/client/assets/{Trash01-BaF7-rQA.js → Trash01-C7w4wgyv.js} +1 -1
- package/dist/client/assets/{TrendUp01-DrIbuukS.js → TrendUp01-qULdDtxY.js} +1 -1
- package/dist/client/assets/{Upload01-Eo8Y8gwt.js → Upload01-BwQI0tkZ.js} +1 -1
- package/dist/client/assets/{User01-BmKTu46m.js → User01-DXZUb8k_.js} +1 -1
- package/dist/client/assets/{UserSquare-D5oHibl1.js → UserSquare-BVlsJI1B.js} +1 -1
- package/dist/client/assets/{Users01-DdYj89q4.js → Users01-DHYvjTlW.js} +1 -1
- package/dist/client/assets/{Users03-BvmFpFso.js → Users03-Ba7Zs6Ag.js} +1 -1
- package/dist/client/assets/{XCircle-BLGxEUt7.js → XCircle-Cx-N-IGe.js} +1 -1
- package/dist/client/assets/{XClose-KYQfxNAH.js → XClose-CG2kLlHe.js} +1 -1
- package/dist/client/assets/{YAxis-BzTUlY5S.js → YAxis-Bz3HO6wz.js} +1 -1
- package/dist/client/assets/{Zap-DSuzhrFd.js → Zap-CLl4PoNB.js} +1 -1
- package/dist/client/assets/{ZapSquare-B03SIXBG.js → ZapSquare-DN3LNwBv.js} +1 -1
- package/dist/client/assets/{access-gate-DXpndi2J.js → access-gate-tvnhE7IN.js} +1 -1
- package/dist/client/assets/{agent-icon-LbhnjHwi.js → agent-icon-BxrQJCRL.js} +1 -1
- package/dist/client/assets/agents-list-CUlruSt3.js +1 -0
- package/dist/client/assets/{ai-providers-C9TvV_lY.js → ai-providers-B7gambd9.js} +1 -1
- package/dist/client/assets/{alert-Brn68O_I.js → alert-BA7rXuZe.js} +1 -1
- package/dist/client/assets/{alert-dialog-CDXDBEVz.js → alert-dialog-BL9CUnhQ.js} +1 -1
- package/dist/client/assets/{api-keys-C0YiI_0_.js → api-keys-DMYVCfM5.js} +1 -1
- package/dist/client/assets/{app-editor-ByjOzHF0.js → app-editor-CcPNrxRK.js} +1 -1
- package/dist/client/assets/{auth-CMC5pcXA.js → auth-BBrRxGil.js} +1 -1
- package/dist/client/assets/{auth-catchall-C1obS0DM.js → auth-catchall-Dz-qm03v.js} +1 -1
- package/dist/client/assets/{auth-entry-L4MYHhmA.js → auth-entry-DZuT_vzL.js} +1 -1
- package/dist/client/assets/{auth-split-layout-p8RpZGj-.js → auth-split-layout-CpEasvie.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B1awg6G_.js → authenticate-and-persist-oauth-CRn8vZ5a.js} +1 -1
- package/dist/client/assets/{automation-list-row-DSW4dqyo.js → automation-list-row-BkOEm1ne.js} +1 -1
- package/dist/client/assets/{automation-runs-DwCd_zFP.js → automation-runs-CZzDwgHo.js} +1 -1
- package/dist/client/assets/{automations-C4N4GC8F.js → automations-BUAOHwWe.js} +1 -1
- package/dist/client/assets/{avatar-DKKheiwZ.js → avatar-B8TVDNq4.js} +1 -1
- package/dist/client/assets/{badge-BCfyeFAT.js → badge-XOWpXFsB.js} +1 -1
- package/dist/client/assets/{block-document-D9NoKYRN.js → block-document-BUTPAgn8.js} +1 -1
- package/dist/client/assets/{breadcrumb-DwyVLr-T.js → breadcrumb-BFwQxBQP.js} +1 -1
- package/dist/client/assets/{buckets-NENIH_rY.js → buckets-Bm5VdjWG.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-CWOO5lMW.js → bulk-category-panel-aYkHZTyU.js} +1 -1
- package/dist/client/assets/{capability-load-error-Bu5AJKz_.js → capability-load-error-CiczIgA9.js} +1 -1
- package/dist/client/assets/{cards-AP5XpAV6.js → cards-BZwhu1wh.js} +1 -1
- package/dist/client/assets/{category-editor-CAPnyo_p.js → category-editor-BiRvoBFc.js} +1 -1
- package/dist/client/assets/{chart-D1jgldPO.js → chart-BWotToPV.js} +1 -1
- package/dist/client/assets/{chat-context-DQqAI1Uh.js → chat-context-QcgP5Hid.js} +1 -1
- package/dist/client/assets/{checkbox-BdDEdRtX.js → checkbox-B9NW4zF5.js} +1 -1
- package/dist/client/assets/{choose-editor-d1jVshXq.js → choose-editor-k-RXEoUp.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DZNcV7RU.js → cli-auth-success-B5d7GL_P.js} +1 -1
- package/dist/client/assets/{collection-detail-DCdfqXH6.js → collection-detail-DwWj_PUl.js} +1 -1
- package/dist/client/assets/{collection-display-button-BkVeJ-Ht.js → collection-display-button-BPhWjKi-.js} +1 -1
- package/dist/client/assets/{collection-search-swq3mYpH.js → collection-search-CKF4vh-a.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BFeQBjk_.js → collection-table-wrapper-Bqh6CfyS.js} +1 -1
- package/dist/client/assets/{collection-tabs-B31Xr--3.js → collection-tabs-Bl35q2wY.js} +1 -1
- package/dist/client/assets/{command-CtzJnf3P.js → command-DIiqDY8s.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-B6IdGbvD.js → commerce-onboarding-C902xetT.js} +1 -1
- package/dist/client/assets/{config-CbfHHHdK.js → config-D_UdMhgt.js} +1 -1
- package/dist/client/assets/{connect-28y6QTSQ.js → connect-CwT7z02m.js} +1 -1
- package/dist/client/assets/{connection-BuSysa2G.js → connection-D6JctQZ6.js} +1 -1
- package/dist/client/assets/{connection-card-BllYSe_U.js → connection-card-D0KOfMfB.js} +1 -1
- package/dist/client/assets/{connection-detail-_XYLLvoB.js → connection-detail-CUmE_Big.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C6PcVFY-.js → connection-form-helpers-DCsDAtJ5.js} +1 -1
- package/dist/client/assets/{connections-Cu1bTJAX.js → connections-CLY70siF.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CvmARxhG.js → decopilot-sse-pool-TjgW7ckc.js} +1 -1
- package/dist/client/assets/{dialog-D4htx8Dz.js → dialog-Bwbh5XkT.js} +1 -1
- package/dist/client/assets/{domain-settings-DEIyOLUp.js → domain-settings-nviyrCM7.js} +1 -1
- package/dist/client/assets/{drawer-CuMUVmYp.js → drawer-gZY69Evm.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BE_ym3Aq.js → dropdown-menu-BBOt5jRY.js} +1 -1
- package/dist/client/assets/{empty-state-DANnu2Dm.js → empty-state-ZMMx_ggR.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BIGQQYkp.js → extract-connection-data-MtRIVNnL.js} +1 -1
- package/dist/client/assets/{file-explorer-DyEzRtBa.js → file-explorer-By2eB_Ur.js} +1 -1
- package/dist/client/assets/{file-type-icon-BenR9kqm.js → file-type-icon-BZq9FOyv.js} +1 -1
- package/dist/client/assets/{form-DxT0qd-2.js → form-Ci6fEfbw.js} +1 -1
- package/dist/client/assets/{general-BgW26EXn.js → general-C4Q4Tkky.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DuwsdpzE.js → github-repo-picker-C9sTEKuY.js} +1 -1
- package/dist/client/assets/{hooks-rNJx2Yiz.js → hooks-BKhOAw1A.js} +1 -1
- package/dist/client/assets/{index-CdvEA4gL.js → index--WXQrPpq.js} +1 -1
- package/dist/client/assets/{index-BXn0NwIo.js → index-BZL6xWss.js} +1 -1
- package/dist/client/assets/{index-ke_XwP2X.js → index-C5KZk-u7.js} +1 -1
- package/dist/client/assets/{index-DeW3li9q.js → index-CnAJ5chy.js} +1 -1
- package/dist/client/assets/{index-eyTxS6Bz.js → index-Csqzx8_V.js} +6 -6
- package/dist/client/assets/{index-Dstu6oca.js → index-D38NIFCR.js} +1 -1
- package/dist/client/assets/{index-BNizG_r4.js → index-Q_1byZfT.js} +1 -1
- package/dist/client/assets/{index-BWXyDl1J.js → index-hm31ugsP.js} +3 -3
- package/dist/client/assets/{index-ChcGUNSF.js → index-jyxlFwyy.js} +1 -1
- package/dist/client/assets/{index-redirect-BJVKALX7.js → index-redirect-B-ynrwSi.js} +1 -1
- package/dist/client/assets/{infra-billing-CcvA504_.js → infra-billing-CaKIYyvJ.js} +1 -1
- package/dist/client/assets/{input-BmuxVBRq.js → input-g7He7HnU.js} +1 -1
- package/dist/client/assets/{integration-icon-BIrESC5L.js → integration-icon-1PiPsdgu.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-DIItbiti.js → invite-member-dialog-CPU1Cja2.js} +1 -1
- package/dist/client/assets/{label-CpzYUQhx.js → label-wbLj9z7D.js} +1 -1
- package/dist/client/assets/{layout-DUzsu4c4.js → layout-DuotoeXM.js} +1 -1
- package/dist/client/assets/{login-RKrGsWpi.js → login-CT_9yG2h.js} +1 -1
- package/dist/client/assets/{mcp-oauth-fsNn1czb.js → mcp-oauth-6VKK9YCj.js} +1 -1
- package/dist/client/assets/{members-BrDpNquF.js → members-SGggZaGX.js} +1 -1
- package/dist/client/assets/{monaco-editor-CMqzV6OC.js → monaco-editor-BQZURj6U.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B-2cTzBQ.js → monitoring-stats-row-Cp8fFm_E.js} +1 -1
- package/dist/client/assets/{multi-select-BQDrB1yk.js → multi-select-sghdJAwh.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-JZoeFXxW.js → oauth-callback-ai-provider-CZtBSe-e.js} +1 -1
- package/dist/client/assets/{oauth-callback-Ba4XCWyw.js → oauth-callback-mYgEnKxB.js} +1 -1
- package/dist/client/assets/{onboarding-Bk8dPUg3.js → onboarding-DoDvT2c2.js} +1 -1
- package/dist/client/assets/{org-layout-Di5sK1cd.js → org-layout-YOrQJWsx.js} +1 -1
- package/dist/client/assets/{organization-choice-CHzFbea4.js → organization-choice-vhXN-oKW.js} +1 -1
- package/dist/client/assets/{orgs-CKI_JjMZ.js → orgs-BVLQBLF0.js} +1 -1
- package/dist/client/assets/{page-seo-form-DC6yxtgW.js → page-seo-form-BLK9eD-y.js} +1 -1
- package/dist/client/assets/{popover-3-nXGxsG.js → popover-BOChxGM-.js} +1 -1
- package/dist/client/assets/{post-calendar-_RxbEjvs.js → post-calendar-DiRm177w.js} +1 -1
- package/dist/client/assets/{post-editor-htgRFHsC.js → post-editor-Cn3KDqzu.js} +1 -1
- package/dist/client/assets/{primitives-By-oabkM.js → primitives-BzOkwFQR.js} +1 -1
- package/dist/client/assets/{profile-itQSWHS0.js → profile-CpSt2XRC.js} +1 -1
- package/dist/client/assets/{project-app-view-BtD2dHc2.js → project-app-view-DGNzI-4j.js} +1 -1
- package/dist/client/assets/{prompts-B4jycXmo.js → prompts-C5dDeipG.js} +1 -1
- package/dist/client/assets/record-editor-DFt8Y1fi.js +1 -0
- package/dist/client/assets/{redirect-editor-CyQNXT5k.js → redirect-editor-BnemkfuU.js} +1 -1
- package/dist/client/assets/registry-B0F5KeDV.js +2 -0
- package/dist/client/assets/{registry-layout-BjtKfm0C.js → registry-layout-BLZVzCAN.js} +1 -1
- package/dist/client/assets/{reports-D2AnuGQl.js → reports-Cc-Yt9-4.js} +1 -1
- package/dist/client/assets/{require-capability-DYqEh_0t.js → require-capability-vw_BGTby.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DPe5oune.js → required-auth-layout-DOQ5Yy6_.js} +1 -1
- package/dist/client/assets/{reset-password-BcbVGV-U.js → reset-password-C8O3fWvq.js} +1 -1
- package/dist/client/assets/{review-settings-DET5Awcp.js → review-settings-D1ap0gua.js} +1 -1
- package/dist/client/assets/{roles-Cm1qg0ow.js → roles-BIPJ_l4f.js} +1 -1
- package/dist/client/assets/{scroll-area-BsxuvxbS.js → scroll-area-CBXFYBFg.js} +1 -1
- package/dist/client/assets/{search-input-i6XUS8wH.js → search-input-DIjZdQF_.js} +1 -1
- package/dist/client/assets/{secrets-DmB_3wh4.js → secrets-Z9iNmDBV.js} +1 -1
- package/dist/client/assets/{sections-editor-CQaXh0aN.js → sections-editor-b7lkQ0RY.js} +1 -1
- package/dist/client/assets/{select-OkaoLf52.js → select-CenhiY0i.js} +1 -1
- package/dist/client/assets/{select-model-DQ1JGbZ1.js → select-model-dMVafewK.js} +1 -1
- package/dist/client/assets/{self-tool-result-_Gq4fS8Q.js → self-tool-result-Cj0S2miF.js} +1 -1
- package/dist/client/assets/{seo-editor-D3_wyic8.js → seo-editor-rcklFjZy.js} +1 -1
- package/dist/client/assets/{settings-layout-ClrVUhfB.js → settings-layout-8ki3RYOg.js} +1 -1
- package/dist/client/assets/{shell-controls-DkHGCWDm.js → shell-controls-OeEy88V1.js} +1 -1
- package/dist/client/assets/{shell-layout-H_tjyvHd.js → shell-layout-DM_yg8NE.js} +1 -1
- package/dist/client/assets/{spinner-BNsOVOLB.js → spinner-BqZHGuGn.js} +1 -1
- package/dist/client/assets/{sso-CVRSygMq.js → sso-B10fI_fV.js} +1 -1
- package/dist/client/assets/{store-EFK86dJx.js → store-f5wCwn1L.js} +1 -1
- package/dist/client/assets/store-registry-Bw63JaJ6.js +2 -0
- package/dist/client/assets/{super-agent-icon-uUxotzmO.js → super-agent-icon-D0imePiM.js} +1 -1
- package/dist/client/assets/{switch-jAw5NRFm.js → switch-BYKDkfxp.js} +1 -1
- package/dist/client/assets/{synced-repos-DHWcDJ5i.js → synced-repos-BoGPB1MQ.js} +1 -1
- package/dist/client/assets/{table-DSRHVWxU.js → table-Bbb6DGd2.js} +1 -1
- package/dist/client/assets/{tabs-CkF_fW0Q.js → tabs-BYw-M7nu.js} +1 -1
- package/dist/client/assets/{task-board-DmX2VpFs.js → task-board-BZOysUuk.js} +1 -1
- package/dist/client/assets/{tasks-C6LaWTXG.js → tasks-DcKWdx_X.js} +1 -1
- package/dist/client/assets/{textarea-DzCWtryj.js → textarea-CmBeOMvY.js} +1 -1
- package/dist/client/assets/{toggle-group-hvwloSYQ.js → toggle-group-BQGtS4X4.js} +1 -1
- package/dist/client/assets/{toolbar-D9gkmlH9.js → toolbar-vRaL8WnF.js} +1 -1
- package/dist/client/assets/{track-CwWn2JFQ.js → track-Ce1UGjEO.js} +1 -1
- package/dist/client/assets/{types-D8IG_8eU.js → types-CvTzc_Qh.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DZwpIJ4W.js → use-ai-providers-BvSmTglu.js} +1 -1
- package/dist/client/assets/{use-api-keys-D39Ow3Yy.js → use-api-keys-C47D1Nbh.js} +1 -1
- package/dist/client/assets/{use-automations-D--Rxx-_.js → use-automations-DzhoYYdI.js} +1 -1
- package/dist/client/assets/{use-autosave-BDzRVdw8.js → use-autosave-4nUOlTfl.js} +1 -1
- package/dist/client/assets/{use-connection-tOCjDBfx.js → use-connection-DKzIht9f.js} +1 -1
- package/dist/client/assets/{use-copy-ICpw0Yw-.js → use-copy-ZowOp1LZ.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DKiTnBa-.js → use-create-virtual-mcp-DUns7W-9.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C706dtM7.js → use-debounced-autosave-L8JjKxdU.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DBMZQqKo.js → use-debounced-value-BNdqCz-8.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DFaxDB0Z.js → use-decopilot-events-Bdt4fjgZ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DY1dO96h.js → use-delete-connection-DFzNmzm2.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CwPi-zHy.js → use-deployment-admin-Bv0YpbSk.js} +1 -1
- package/dist/client/assets/{use-destination-route-C8wZaTLq.js → use-destination-route-BpT878sj.js} +1 -1
- package/dist/client/assets/{use-file-configs-rXyGhpyn.js → use-file-configs-CIlcx97w.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BUgjJwY5.js → use-infinite-scroll-BpnF4fSC.js} +1 -1
- package/dist/client/assets/{use-join-requests-CbCMIasb.js → use-join-requests-Dqyr7T9a.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CyITsP1y.js → use-mcp-auth-status-iQxqyXeQ.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DHZ5WVmn.js → use-mcp-client-CX-OBmZf.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C69l20dV.js → use-mcp-tools-Dmty5VQY.js} +1 -1
- package/dist/client/assets/{use-members-CAd4YLUd.js → use-members-Ce4XWWMv.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BWgdcI3Z.js → use-navigate-to-agent-BWv7kruU.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DPBNI0km.js → use-org-auth-client-DRVc-InE.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Df_iQEGc.js → use-org-repo-syncs-DPTbdSkw.js} +1 -1
- package/dist/client/assets/{use-org-sso-Y-cX0M9u.js → use-org-sso-C66hqVjQ.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Cazh8-rd.js → use-organization-roles-B-uGTjt3.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CGbImq1L.js → use-organization-settings-C1HlNm4K.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CzBWJmh4.js → use-panel-navigate-FYASNw8E.js} +1 -1
- package/dist/client/assets/{use-registry-connections--wEDOuCo.js → use-registry-connections-DtF-hSyP.js} +1 -1
- package/dist/client/assets/{use-secrets-BUOK8Q3X.js → use-secrets-CSyh1qfb.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CQ_HgNgO.js → use-section-preview-base-BzdiZy8o.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BcDDyChz.js → use-status-sounds-DV_bQ2MC.js} +1 -1
- package/dist/client/assets/{use-tags-DQhkcWVg.js → use-tags-DfKtJhjC.js} +1 -1
- package/dist/client/assets/{use-view-mode-DyvonuSr.js → use-view-mode-C2M92OlF.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-zkag_-cI.js → use-virtual-mcp-CbZuO3e_.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B2jR9hyr.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DsL0Dkz6.js +1 -0
- package/dist/client/assets/{users-DBLID0_X.js → users-CsqBvp9s.js} +1 -1
- package/dist/client/assets/{variant-calendar-pfbXNZPy.js → variant-calendar-BmqfEHag.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-ChPfg34r.js → view-mode-toggle-D8HpUEqb.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +3 -3
- package/dist/server/server.js +3 -3
- package/package.json +1 -1
- package/dist/client/assets/agents-list-BWtnoYa9.js +0 -1
- package/dist/client/assets/record-editor-DmWjrMIo.js +0 -1
- package/dist/client/assets/registry-BokCitrd.js +0 -2
- package/dist/client/assets/store-registry-CAgXmIVJ.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CHJpyz-t.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-uqFTRGN7.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as G,c as W,b as de,ax as EL,j as m,B as ar,an as Ty,ak as yL,aw as TL,cH as WC,cI as SL,aH as xL,bc as xt,cJ as kL,n as Ee,cw as r0,cK as qo,J as AL,d as Xl,a5 as vL,f as NL,bC as CL,q as _L,a8 as li,a9 as ui,ab as ci,bu as wL,br as i0,by as IL,bx as RL,cL as OL,bv as DL,cM as LL,bt as ML,H as Un,p as PL,ac as YC,e as FL,K as Rn,t as Dg,o as Zl,E as KC,bb as XC,b0 as BL,cN as a0,s as UL,bf as ZC,bd as QC,bg as JC,bh as e_,cO as $L,cP as HL,bB as Sy,k as jL,b7 as zL}from"./index-BWXyDl1J.js";import{aR as qL,aS as GL,aF as VL,aT as WL,aU as YL,o as KL,s as Go,z as XL,aV as ZL,l as Lg,am as QL,i as xy,ay as JL,g as eM,aW as tM,aP as t_,aX as nM,aY as n_,A as r_,aZ as In,aG as rM,h as iM,r as aM,a_ as sM}from"./agent-icon-LbhnjHwi.js";import{i as Mg}from"./ChevronRight-CO9K42kJ.js";import{u as oM}from"./useInfiniteQuery-CHJpyz-t.js";import{a as i_,u as lM}from"./use-connection-tOCjDBfx.js";import{c as uM,u as s0}from"./use-mcp-client-DHZ5WVmn.js";import{u as cM}from"./use-virtual-mcp-zkag_-cI.js";import{c as dM,e as pM,a as a_,d as Ea,b as fM,T as ya}from"./table-DSRHVWxU.js";import{E as ky}from"./empty-state-DANnu2Dm.js";import{u as s_}from"./use-infinite-scroll-BUgjJwY5.js";import{a as hM}from"./use-members-CAd4YLUd.js";import{i as o0}from"./AlertCircle-DLj-rBLn.js";import{i as mM}from"./CheckCircle-DOOBCpT9.js";import{a as gM}from"./DotsVertical-CSkWlHZt.js";import{i as o_,b as ao,a as bM}from"./XCircle-BLGxEUt7.js";import{e as EM}from"./use-automations-D--Rxx-_.js";import{u as yM}from"./useSuspenseInfiniteQuery-uqFTRGN7.js";import{A as TM}from"./avatar-DKKheiwZ.js";import{t as l_}from"./ChevronDown-DCBuHd0m.js";import{n as SM}from"./ChevronUp-D6fZUTvM.js";import{t as xM,a as u_,n as c_}from"./Tool02-CQfhYBA-.js";import{t as Ql}from"./Stars01-BLlf5jfX.js";import{i as Ps}from"./Check-CTKt7DPp.js";import{a as Jl}from"./Copy01-C-9zesbF.js";import{b as Or,t as l0,c as Ay}from"./format-time-BnbuEtat.js";import{u as d_}from"./use-copy-ICpw0Yw-.js";import{b as p_,a as kM,c as AM,d as vM,e as f_,g as NM,f as CM}from"./dialog-D4htx8Dz.js";import{n as h_}from"./Download01-DYsmBrAR.js";import{c as eu}from"./use-panel-navigate-CzBWJmh4.js";import{d as _M,u as wM,r as IM,e as RM}from"./hooks-rNJx2Yiz.js";import{k as ua,D as OM,b as Fs,a as DM,E as LM}from"./chat-context-DQqAI1Uh.js";import{c as MM}from"./monaco-editor-CMqzV6OC.js";import{g as m_,M as PM}from"./types-D8IG_8eU.js";import{s as FM}from"./Eye-Bf1344cz.js";import{s as BM}from"./XClose-KYQfxNAH.js";import{c as UM,b as $M,a as so}from"./Tool01-C-r-Zf-I.js";import{i as HM}from"./Share07-TLJEQyW1.js";import{i as za}from"./Monitor01-Db3wK3MU.js";import{i as jM}from"./SearchMd-DbgBw9S_.js";import{u as zM,a as qM}from"./shell-layout-H_tjyvHd.js";import{n as g_}from"./LinkExternal01-Bd5qXJx-.js";import{I as Ei}from"./integration-icon-BIrESC5L.js";import{a as u0}from"./Users03-BvmFpFso.js";import{a as On}from"./Palette-Wf7ieWzf.js";import{c as b_}from"./use-navigate-to-agent-BWgdcI3Z.js";import{a as GM}from"./Stars02-DSl09LS3.js";import{d as VM,i as E_,a as y_,S as WM}from"./constants-dLUUoWH7.js";import{g as YM}from"./chart-D1jgldPO.js";import{F as KM,d as XM,a as ZM,e as QM,b as JM,c as e3}from"./form-DxT0qd-2.js";import{I as t3}from"./input-BmuxVBRq.js";import{S as n3}from"./spinner-BNsOVOLB.js";import{i as r3}from"./Globe01-Mlkbzavy.js";import{F as i3}from"./file-type-icon-BenR9kqm.js";const a3={openrouter:t=>{const e=t?.openrouter;return typeof e=="object"&&e!==null&&"usage"in e&&typeof e.usage=="object"&&e.usage!==null&&"cost"in e.usage&&typeof e.usage.cost=="number"?e.usage.cost:null}};function T_(t){if(!t?.providerMetadata)return 0;for(const e of Object.values(a3)){const n=e(t.providerMetadata);if(n!==null)return n}return 0}function S_(){return{inputTokens:0,outputTokens:0,reasoningTokens:0,totalTokens:0,cost:0,cacheReadTokens:0,cacheWriteTokens:0}}function x_(t,e){if(!e)return t;const n=e.inputTokenDetails?.cacheReadTokens??e.cachedInputTokens??0,r=e.inputTokenDetails?.cacheWriteTokens??0;return{inputTokens:t.inputTokens+(e.inputTokens??0),outputTokens:t.outputTokens+(e.outputTokens??0),reasoningTokens:t.reasoningTokens+(e.reasoningTokens??0),totalTokens:t.totalTokens+(e.totalTokens??0),cost:t.cost+T_(e),cacheReadTokens:t.cacheReadTokens+n,cacheWriteTokens:t.cacheWriteTokens+r}}function c0(t){const e=Math.max(t.inputTokens,t.cacheReadTokens+t.cacheWriteTokens);return e>0?t.cacheReadTokens/e:0}function fce(t){return t.reduce((e,n)=>x_(e,n.metadata?.usage),S_())}const s3={damping:.7,stiffness:.05,mass:1.25},o3=70,l3=1e3/60,u3=350;let tu=!1;globalThis.document?.addEventListener("mousedown",()=>{tu=!0});globalThis.document?.addEventListener("mouseup",()=>{tu=!1});globalThis.document?.addEventListener("click",()=>{tu=!1});const c3=(t={})=>{const[e,n]=G.useState(!1),[r,i]=G.useState(t.initial!==!1),[a,s]=G.useState(!1),o=G.useRef(null);o.current=t;const l=G.useCallback(()=>{if(!tu)return!1;const T=window.getSelection();if(!T||!T.rangeCount)return!1;const S=T.getRangeAt(0);return S.commonAncestorContainer.contains(g.current)||g.current?.contains(S.commonAncestorContainer)},[]),u=G.useCallback(T=>{d.isAtBottom=T,i(T)},[]),c=G.useCallback(T=>{d.escapedFromLock=T,n(T)},[]),d=G.useMemo(()=>{let T;return{escapedFromLock:e,isAtBottom:r,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return g.current?.scrollTop??0},set scrollTop(S){if(g.current){const{scrollBehavior:k}=getComputedStyle(g.current);k!=="auto"&&(g.current.style.scrollBehavior="auto"),g.current.scrollTop=S,d.ignoreScrollToTop=g.current.scrollTop,k!=="auto"&&(g.current.style.scrollBehavior=k)}},get targetScrollTop(){return!g.current||!y.current?0:g.current.scrollHeight-1-g.current.clientHeight},get calculatedTargetScrollTop(){if(!g.current||!y.current)return 0;const{targetScrollTop:S}=this;if(!t.targetScrollTop)return S;if(T?.targetScrollTop===S)return T.calculatedScrollTop;const k=Math.max(Math.min(t.targetScrollTop(S,{scrollElement:g.current,contentElement:y.current}),S),0);return T={targetScrollTop:S,calculatedScrollTop:k},requestAnimationFrame(()=>{T=void 0}),k},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=o3}}},[]),p=G.useCallback((T={})=>{typeof T=="string"&&(T={animation:T}),T.preserveScrollPosition||u(!0);const S=Date.now()+(Number(T.wait)||0),k=qu(o.current,T.animation),{ignoreEscapes:v=!1}=T;let x,A=d.calculatedTargetScrollTop;T.duration instanceof Promise?T.duration.finally(()=>{x=Date.now()}):x=S+(T.duration??0);const N=async()=>{const _=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;const{scrollTop:C}=d,D=performance.now(),P=(D-(d.lastTick??D))/l3;if(d.animation||(d.animation={behavior:k,promise:_,ignoreEscapes:v}),d.animation.behavior===k&&(d.lastTick=D),l()||S>Date.now())return N();if(C<Math.min(A,d.calculatedTargetScrollTop)){if(d.animation?.behavior===k){if(k==="instant")return d.scrollTop=d.calculatedTargetScrollTop,N();d.velocity=(k.damping*d.velocity+k.stiffness*d.scrollDifference)/k.mass,d.accumulated+=d.velocity*P,d.scrollTop+=d.accumulated,d.scrollTop!==C&&(d.accumulated=0)}return N()}return x>Date.now()?(A=d.calculatedTargetScrollTop,N()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?p({animation:qu(o.current,o.current.resize),ignoreEscapes:v,duration:Math.max(0,x-Date.now())||void 0}):d.isAtBottom)});return _.then(C=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),C))};return T.wait!==!0&&(d.animation=void 0),d.animation?.behavior===k?d.animation.promise:N()},[u,l,d]),f=G.useCallback(()=>{c(!0),u(!1)},[c,u]),h=G.useCallback(({target:T})=>{if(T!==g.current)return;const{scrollTop:S,ignoreScrollToTop:k}=d;let{lastScrollTop:v=S}=d;d.lastScrollTop=S,d.ignoreScrollToTop=void 0,k&&k>S&&(v=k),s(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||S===k)return;if(l()){c(!0),u(!1);return}const x=S>v,A=S<v;if(d.animation?.ignoreEscapes){d.scrollTop=v;return}A&&(c(!0),u(!1)),x&&c(!1),!d.escapedFromLock&&d.isNearBottom&&u(!0)},1)},[c,u,l,d]),b=G.useCallback(({target:T,deltaY:S})=>{let k=T;for(;!["scroll","auto"].includes(getComputedStyle(k).overflow);){if(!k.parentElement)return;k=k.parentElement}k===g.current&&S<0&&g.current.scrollHeight>g.current.clientHeight&&!d.animation?.ignoreEscapes&&(c(!0),u(!1))},[c,u,d]),g=vy(T=>{g.current?.removeEventListener("scroll",h),g.current?.removeEventListener("wheel",b),T?.addEventListener("scroll",h,{passive:!0}),T?.addEventListener("wheel",b,{passive:!0})},[]),y=vy(T=>{if(d.resizeObserver?.disconnect(),d.resizeObserver=void 0,!T)return;let S;d.resizeObserver=new ResizeObserver(([k])=>{const{height:v}=k.contentRect,x=v-(S??v);if(d.resizeDifference=x,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),s(d.isNearBottom),x>=0){const A=qu(o.current,S?o.current.resize:o.current.initial);p({animation:A,wait:!0,preserveScrollPosition:!0,duration:A==="instant"?void 0:u3})}else d.isNearBottom&&(c(!1),u(!0));S=v,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===x&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(T)},[]);return{contentRef:y,scrollRef:g,scrollToBottom:p,stopScroll:f,isAtBottom:r||a,isNearBottom:a,escapedFromLock:e,state:d}};function vy(t,e){const n=G.useCallback(r=>(n.current=r,t(r)),e);return n}const zu=new Map;function qu(...t){const e={...s3};let n=!1;for(const i of t){if(i==="instant"){n=!0;continue}typeof i=="object"&&(n=!1,e.damping=i.damping??e.damping,e.stiffness=i.stiffness??e.stiffness,e.mass=i.mass??e.mass)}const r=JSON.stringify(e);return zu.has(r)||zu.set(r,Object.freeze(e)),n?"instant":zu.get(r)}function d3(t){let e=2166136261;for(let n=0;n<t.length;n++)e=Math.imul(e^t.charCodeAt(n),16777619);return`a${(e>>>0).toString(36).padStart(6,"0").slice(-6)}`}function d0(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function p0(t,e){if(!e)return t;const n=`${d3(e)}_`;return t.startsWith(n)?t.slice(n.length):t}function p3(t,e){return p0(t,e).replace(/[_-]/g," ").toLowerCase()}function f3(t,e){const n={};for(const r of t?.arguments??[])n[r.name]=r.required?Ty().min(1,e):Ty();return yL(n)}function h3(t,e){const n={};for(const r of t.arguments??[])n[r.name]=e?.[r.name]??"";return n}function m3(t){const e=W.c(74),{prompt:n,setPrompt:r,onSubmit:i,defaultValues:a}=t,s=G.useId(),o=de();let l,u;if(e[0]!==n||e[1]!==o){const I=f3(n,o("chat.dialogPromptArguments.required"));u=TL,l=EL(I),e[0]=n,e[1]=o,e[2]=l,e[3]=u}else l=e[2],u=e[3];let c;e[4]!==a||e[5]!==n?(c=n?h3(n,a):{},e[4]=a,e[5]=n,e[6]=c):c=e[6];let d;e[7]!==l||e[8]!==c?(d={resolver:l,defaultValues:c,mode:"onChange"},e[7]=l,e[8]=c,e[9]=d):d=e[9];const p=u(d);let f;e[10]!==n?.arguments?(f=n?.arguments??[],e[10]=n?.arguments,e[11]=f):f=e[11];const h=f;let b;e[12]!==p||e[13]!==i||e[14]!==r?(b=async I=>{await i(I),r(null),p.reset()},e[12]=p,e[13]=i,e[14]=r,e[15]=b):b=e[15];const g=b;let y;e[16]!==p||e[17]!==r?(y=I=>{I||(p.reset(),r(null))},e[16]=p,e[17]=r,e[18]=y):y=e[18];const T=y;if(!n)return null;let S;e[19]!==n._meta||e[20]!==n.name||e[21]!==n.title?(S=n.title||p3(n.name,d0(n._meta)),e[19]=n._meta,e[20]=n.name,e[21]=n.title,e[22]=S):S=e[22];let k;e[23]!==S?(k=m.jsx(p_,{children:m.jsx("span",{className:"capitalize",children:S})}),e[23]=S,e[24]=k):k=e[24];let v;e[25]!==n.description?(v=n.description&&m.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[25]=n.description,e[26]=v):v=e[26];let x;e[27]!==v||e[28]!==k?(x=m.jsxs(kM,{children:[k,v]}),e[27]=v,e[28]=k,e[29]=x):x=e[29];let A;e[30]!==p||e[31]!==g?(A=I=>{I.stopPropagation(),p.handleSubmit(g)(I)},e[30]=p,e[31]=g,e[32]=A):A=e[32];let N;if(e[33]!==h||e[34]!==p.control||e[35]!==p.formState.isSubmitting||e[36]!==o){let I;e[38]!==p.control||e[39]!==p.formState.isSubmitting||e[40]!==o?(I=X=>m.jsx(XM,{control:p.control,name:X.name,render:re=>{const{field:R}=re;return m.jsxs(ZM,{children:[m.jsxs(QM,{className:"text-xs",children:[X.name,X.required?null:m.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ",o("chat.dialogPromptArguments.optional")]})]}),m.jsx(JM,{children:m.jsx(t3,{...R,value:R.value??"",required:X.required,placeholder:X.description??"",className:"h-9",disabled:p.formState.isSubmitting})}),m.jsx(e3,{})]})}},X.name),e[38]=p.control,e[39]=p.formState.isSubmitting,e[40]=o,e[41]=I):I=e[41],N=h.map(I),e[33]=h,e[34]=p.control,e[35]=p.formState.isSubmitting,e[36]=o,e[37]=N}else N=e[37];let _;e[42]!==T?(_=()=>T(!1),e[42]=T,e[43]=_):_=e[43];const C=p.formState.isSubmitting;let D;e[44]!==o?(D=o("chat.dialogPromptArguments.cancel"),e[44]=o,e[45]=D):D=e[45];let P;e[46]!==p.formState.isSubmitting||e[47]!==_||e[48]!==D?(P=m.jsx(ar,{type:"button",variant:"ghost",onClick:_,disabled:C,children:D}),e[46]=p.formState.isSubmitting,e[47]=_,e[48]=D,e[49]=P):P=e[49];let j;e[50]!==p.formState.isSubmitting||e[51]!==o?(j=p.formState.isSubmitting?m.jsxs("span",{className:"flex items-center gap-2",children:[m.jsx(n3,{size:"xs"}),o("chat.dialogPromptArguments.loading")]}):o("chat.dialogPromptArguments.usePrompt"),e[50]=p.formState.isSubmitting,e[51]=o,e[52]=j):j=e[52];let F;e[53]!==p.formState.isSubmitting||e[54]!==s||e[55]!==j?(F=m.jsx(ar,{type:"submit",form:s,disabled:p.formState.isSubmitting,children:j}),e[53]=p.formState.isSubmitting,e[54]=s,e[55]=j,e[56]=F):F=e[56];let M;e[57]!==P||e[58]!==F?(M=m.jsxs(AM,{children:[P,F]}),e[57]=P,e[58]=F,e[59]=M):M=e[59];let U;e[60]!==s||e[61]!==A||e[62]!==N||e[63]!==M?(U=m.jsxs("form",{id:s,className:"space-y-4 py-4",autoComplete:"off",onSubmit:A,children:[N,M]}),e[60]=s,e[61]=A,e[62]=N,e[63]=M,e[64]=U):U=e[64];let H;e[65]!==p||e[66]!==U?(H=m.jsx(KM,{...p,children:U}),e[65]=p,e[66]=U,e[67]=H):H=e[67];let B;e[68]!==x||e[69]!==H?(B=m.jsxs(vM,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[x,H]}),e[68]=x,e[69]=H,e[70]=B):B=e[70];let ee;return e[71]!==T||e[72]!==B?(ee=m.jsx(f_,{open:!0,onOpenChange:T,children:B}),e[71]=T,e[72]=B,e[73]=ee):ee=e[73],ee}function Pg(t){return t?t.replace(/[_-]/g," ").toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):""}function yn(t,e){return t==="output-error"||t==="output-denied"?"error":t==="approval-requested"?"approval":t==="input-streaming"||t==="input-available"||t==="output-available"&&e===!0?"loading":"idle"}function ca(t){if(t==null||typeof t!="object")return;const e=t;if(e.structuredContent&&typeof e.structuredContent=="object")return e.structuredContent;if(Array.isArray(e.content)){const n=e.content[0];if(n?.type==="text"&&typeof n.text=="string")try{return JSON.parse(n.text)}catch{return}return}return t}var Ny=Object.defineProperty,g3=(t,e)=>{let n={};for(var r in t)Ny(n,r,{get:t[r],enumerable:!0});return Ny(n,Symbol.toStringTag,{value:"Module"}),n};function ht(t){this.content=t}ht.prototype={constructor:ht,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),a=r.content.slice();return i==-1?a.push(n||t,e):(a[i+1]=e,n&&(a[i]=n)),new ht(a)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new ht(n)},addToStart:function(t,e){return new ht([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new ht(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),a=r.find(t);return i.splice(a==-1?i.length:a,0,e,n),new ht(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=ht.from(t),t.size?new ht(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=ht.from(t),t.size?new ht(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=ht.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};ht.from=function(t){if(t instanceof ht)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new ht(e)};function k_(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),a=e.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let s=i.text,o=a.text,l=0;for(;s[l]==o[l];l++)n++;return l&&l<s.length&&l<o.length&&N_(s.charCodeAt(l-1))&&v_(s.charCodeAt(l))&&n--,n}if(i.content.size||a.content.size){let s=k_(i.content,a.content,n+1);if(s!=null)return s}n+=i.nodeSize}}function A_(t,e,n,r){for(let i=t.childCount,a=e.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let s=t.child(--i),o=e.child(--a),l=s.nodeSize;if(s==o){n-=l,r-=l;continue}if(!s.sameMarkup(o))return{a:n,b:r};if(s.isText&&s.text!=o.text){let u=s.text,c=o.text,d=u.length,p=c.length;for(;d>0&&p>0&&u[d-1]==c[p-1];)d--,p--,n--,r--;return d&&p&&d<u.length&&N_(u.charCodeAt(d-1))&&v_(u.charCodeAt(d))&&(n++,r++),{a:n,b:r}}if(s.content.size||o.content.size){let u=A_(s.content,o.content,n-1,r-1);if(u)return u}n-=l,r-=l}}function v_(t){return t>=56320&&t<57344}function N_(t){return t>=55296&&t<56320}class V{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,a){for(let s=0,o=0;o<n;s++){let l=this.content[s],u=o+l.nodeSize;if(u>e&&r(l,i+o,a||null,s)!==!1&&l.content.size){let c=o+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),r,i+c)}o=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let a="",s=!0;return this.nodesBetween(e,n,(o,l)=>{let u=o.isText?o.text.slice(Math.max(e,l)-l,n-l):o.isLeaf?i?typeof i=="function"?i(o):i:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&u||o.isTextblock)&&r&&(s?s=!1:a+=r),a+=u},0),a}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<e.content.length;a++)i.push(e.content[a]);return new V(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let a=0,s=0;s<n;a++){let o=this.content[a],l=s+o.nodeSize;l>e&&((s<e||l>n)&&(o.isText?o=o.cut(Math.max(0,e-s),Math.min(o.text.length,n-s)):o=o.cut(Math.max(0,e-s-1),Math.min(o.content.size,n-s-1))),r.push(o),i+=o.nodeSize),s=l}return new V(r,i)}cutByIndex(e,n){return e==n?V.empty:e==0&&n==this.content.length?this:new V(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new V(i,a)}addToStart(e){return new V([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new V(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return k_(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return A_(this,e,n,r)}findIndex(e){if(e==0)return oo(0,e);if(e==this.size)return oo(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),a=r+i.nodeSize;if(a>=e)return a==e?oo(n+1,a):oo(n,r);r=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return V.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return V.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return V.empty;let n,r=0;for(let i=0;i<e.length;i++){let a=e[i];r+=a.nodeSize,i&&a.isText&&e[i-1].sameMarkup(a)?(n||(n=e.slice(0,i)),n[n.length-1]=a.withText(n[n.length-1].text+a.text)):n&&n.push(a)}return new V(n||e,r)}static from(e){if(!e)return V.empty;if(e instanceof V)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new V([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}V.empty=new V([],0);const Gu={index:0,offset:0};function oo(t,e){return Gu.index=t,Gu.offset=e,Gu}function Vo(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Vo(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Vo(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let Be=class Fg{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(this.eq(a))return e;if(this.type.excludes(a.type))n||(n=e.slice(0,i));else{if(a.type.excludes(this.type))return e;!r&&a.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(a)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Vo(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Fg.none;if(e instanceof Fg)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};Be.none=[];class ms extends Error{}class te{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=__(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new te(r,this.openStart,this.openEnd)}removeBetween(e,n){return new te(C_(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return te.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new te(V.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let a=e.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)r++;for(let a=e.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new te(e,r,i)}}te.empty=new te(V.empty,0,0);function C_(t,e,n){let{index:r,offset:i}=t.findIndex(e),a=t.maybeChild(r),{index:s,offset:o}=t.findIndex(n);if(i==e||a.isText){if(o!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,a.copy(C_(a.content,e-i-1,n-i-1)))}function __(t,e,n,r,i,a){let{index:s,offset:o}=t.findIndex(e),l=t.maybeChild(s);if(o==e||l.isText)return a&&r<=0&&i<=0&&!a.canReplace(s,s,n)?null:t.cut(0,e).append(n).append(t.cut(e));let u=__(l.content,e-o-1,n,s==0?r-1:0,s==t.childCount-1?i-1:0,l);return u&&t.replaceChild(s,l.copy(u))}function b3(t,e,n){if(n.openStart>t.depth)throw new ms("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ms("Inconsistent open depths");return w_(t,e,n,0)}function w_(t,e,n,r){let i=t.index(r),a=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let s=w_(t,e,n,r+1);return a.copy(a.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,o=s.content;return ei(s,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}else{let{start:s,end:o}=E3(n,t);return ei(a,R_(t,s,o,e,r))}else return ei(a,Wo(t,e,r))}function I_(t,e){if(!e.type.compatibleContent(t.type))throw new ms("Cannot join "+e.type.name+" onto "+t.type.name)}function Bg(t,e,n){let r=t.node(n);return I_(r,e.node(n)),r}function Jr(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function qa(t,e,n,r){let i=(e||t).node(n),a=0,s=e?e.index(n):i.childCount;t&&(a=t.index(n),t.depth>n?a++:t.textOffset&&(Jr(t.nodeAfter,r),a++));for(let o=a;o<s;o++)Jr(i.child(o),r);e&&e.depth==n&&e.textOffset&&Jr(e.nodeBefore,r)}function ei(t,e){if(!t.type.validContent(e))throw new ms("Invalid content for node "+t.type.name);return t.copy(e)}function R_(t,e,n,r,i){let a=t.depth>i&&Bg(t,e,i+1),s=r.depth>i&&Bg(n,r,i+1),o=[];return qa(null,t,i,o),a&&s&&e.index(i)==n.index(i)?(I_(a,s),Jr(ei(a,R_(t,e,n,r,i+1)),o)):(a&&Jr(ei(a,Wo(t,e,i+1)),o),qa(e,n,i,o),s&&Jr(ei(s,Wo(n,r,i+1)),o)),qa(r,null,i,o),new V(o)}function Wo(t,e,n){let r=[];if(qa(null,t,n,r),t.depth>n){let i=Bg(t,e,n+1);Jr(ei(i,Wo(t,e,n+1)),r)}return qa(e,null,n,r),new V(r)}function E3(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let a=n-1;a>=0;a--)i=e.node(a).copy(V.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class gs{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let a=0;a<e;a++)i+=r.child(a).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Be.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let o=r;r=i,i=o}let a=r.marks;for(var s=0;s<a.length;s++)a[s].type.spec.inclusive===!1&&(!i||!a[s].isInSet(i.marks))&&(a=a[s--].removeFromSet(a));return a}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var a=0;a<r.length;a++)r[a].type.spec.inclusive===!1&&(!i||!r[a].isInSet(i.marks))&&(r=r[a--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Yo(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,a=n;for(let s=e;;){let{index:o,offset:l}=s.content.findIndex(a),u=a-l;if(r.push(s,o,i+l),!u||(s=s.child(o),s.isText))break;a=u-1,i+=l+1}return new gs(n,r,a)}static resolveCached(e,n){let r=Cy.get(e);if(r)for(let a=0;a<r.elts.length;a++){let s=r.elts[a];if(s.pos==n)return s}else Cy.set(e,r=new y3);let i=r.elts[r.i]=gs.resolve(e,n);return r.i=(r.i+1)%T3,i}}class y3{constructor(){this.elts=[],this.i=0}}const T3=12,Cy=new WeakMap;class Yo{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const S3=Object.create(null);let ti=class Ug{constructor(e,n,r,i=Be.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||V.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Vo(this.attrs,n||e.defaultAttrs||S3)&&Be.sameSet(this.marks,r||Be.none)}copy(e=null){return e==this.content?this:new Ug(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ug(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return te.empty;let i=this.resolve(e),a=this.resolve(n),s=r?0:i.sharedDepth(n),o=i.start(s),u=i.node(s).content.cut(i.pos-o,a.pos-o);return new te(u,i.depth-s,a.depth-s)}replace(e,n,r){return b3(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return gs.resolveCached(this,e)}resolveNoCache(e){return gs.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,a=>(r.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),O_(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=V.empty,i=0,a=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,a),o=s&&s.matchFragment(this.content,n);if(!o||!o.validEnd)return!1;for(let l=i;l<a;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let a=this.contentMatchAt(e).matchType(r),s=a&&a.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Be.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!Be.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=V.fromJSON(e,n.content),a=e.nodeType(n.type).create(n.attrs,i,r);return a.type.checkAttrs(a.attrs),a}};ti.prototype.text=void 0;class Ko extends ti{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):O_(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ko(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ko(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function O_(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class di{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new x3(e,n);if(r.next==null)return di.empty;let i=D_(r);r.next&&r.err("Unexpected trailing text");let a=w3(_3(i));return I3(a,r),a}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let a=n;i&&a<r;a++)i=i.matchType(e.child(a).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function a(s,o){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return V.from(o.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let p=a(d,o.concat(c));if(p)return p}}return null}return a(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),a=i.match;if(a.matchType(e)){let s=[];for(let o=i;o.type;o=o.via)s.push(o.type);return s.reverse()}for(let s=0;s<a.next.length;s++){let{type:o,next:l}=a.next[s];!o.isLeaf&&!o.hasRequiredAttrs()&&!(o.name in n)&&(!i.type||l.validEnd)&&(r.push({match:o.contentMatch,type:o,via:i}),n[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let a=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)a+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return a}).join(`
|
|
1
|
+
import{r as G,c as W,b as de,ax as EL,j as m,B as ar,an as Ty,ak as yL,aw as TL,cH as WC,cI as SL,aH as xL,bc as xt,cJ as kL,n as Ee,cw as r0,cK as qo,J as AL,d as Xl,a5 as vL,f as NL,bC as CL,q as _L,a8 as li,a9 as ui,ab as ci,bu as wL,br as i0,by as IL,bx as RL,cL as OL,bv as DL,cM as LL,bt as ML,H as Un,p as PL,ac as YC,e as FL,K as Rn,t as Dg,o as Zl,E as KC,bb as XC,b0 as BL,cN as a0,s as UL,bf as ZC,bd as QC,bg as JC,bh as e_,cO as $L,cP as HL,bB as Sy,k as jL,b7 as zL}from"./index-hm31ugsP.js";import{aR as qL,aS as GL,aF as VL,aT as WL,aU as YL,o as KL,s as Go,z as XL,aV as ZL,l as Lg,am as QL,i as xy,ay as JL,g as eM,aW as tM,aP as t_,aX as nM,aY as n_,A as r_,aZ as In,aG as rM,h as iM,r as aM,a_ as sM}from"./agent-icon-BxrQJCRL.js";import{i as Mg}from"./ChevronRight-eCyOlX7q.js";import{u as oM}from"./useInfiniteQuery-B2jR9hyr.js";import{a as i_,u as lM}from"./use-connection-DKzIht9f.js";import{c as uM,u as s0}from"./use-mcp-client-CX-OBmZf.js";import{u as cM}from"./use-virtual-mcp-CbZuO3e_.js";import{c as dM,e as pM,a as a_,d as Ea,b as fM,T as ya}from"./table-Bbb6DGd2.js";import{E as ky}from"./empty-state-ZMMx_ggR.js";import{u as s_}from"./use-infinite-scroll-BpnF4fSC.js";import{a as hM}from"./use-members-Ce4XWWMv.js";import{i as o0}from"./AlertCircle-AuVMh5dI.js";import{i as mM}from"./CheckCircle-EPKsKkCI.js";import{a as gM}from"./DotsVertical-K-45hvkg.js";import{i as o_,b as ao,a as bM}from"./XCircle-Cx-N-IGe.js";import{e as EM}from"./use-automations-DzhoYYdI.js";import{u as yM}from"./useSuspenseInfiniteQuery-DsL0Dkz6.js";import{A as TM}from"./avatar-B8TVDNq4.js";import{t as l_}from"./ChevronDown-D6sMb7w8.js";import{n as SM}from"./ChevronUp-CU8wkfB6.js";import{t as xM,a as u_,n as c_}from"./Tool02-D26qiRWa.js";import{t as Ql}from"./Stars01-DtpzfCLb.js";import{i as Ps}from"./Check-De5xbMZ_.js";import{a as Jl}from"./Copy01-CprinEfn.js";import{b as Or,t as l0,c as Ay}from"./format-time-BnbuEtat.js";import{u as d_}from"./use-copy-ZowOp1LZ.js";import{b as p_,a as kM,c as AM,d as vM,e as f_,g as NM,f as CM}from"./dialog-Bwbh5XkT.js";import{n as h_}from"./Download01-BKILAf-9.js";import{c as eu}from"./use-panel-navigate-FYASNw8E.js";import{d as _M,u as wM,r as IM,e as RM}from"./hooks-BKhOAw1A.js";import{k as ua,D as OM,b as Fs,a as DM,E as LM}from"./chat-context-QcgP5Hid.js";import{c as MM}from"./monaco-editor-BQZURj6U.js";import{g as m_,M as PM}from"./types-CvTzc_Qh.js";import{s as FM}from"./Eye-BIEDLA51.js";import{s as BM}from"./XClose-CG2kLlHe.js";import{c as UM,b as $M,a as so}from"./Tool01-Us4du1HU.js";import{i as HM}from"./Share07-CIcrbYTY.js";import{i as za}from"./Monitor01-2y5hMZ1w.js";import{i as jM}from"./SearchMd-BmF-Y8C_.js";import{u as zM,a as qM}from"./shell-layout-DM_yg8NE.js";import{n as g_}from"./LinkExternal01-PqQ-7e5z.js";import{I as Ei}from"./integration-icon-1PiPsdgu.js";import{a as u0}from"./Users03-Ba7Zs6Ag.js";import{a as On}from"./Palette-0eaeXKN1.js";import{c as b_}from"./use-navigate-to-agent-BWv7kruU.js";import{a as GM}from"./Stars02-Dkvt8wI3.js";import{d as VM,i as E_,a as y_,S as WM}from"./constants-dLUUoWH7.js";import{g as YM}from"./chart-BWotToPV.js";import{F as KM,d as XM,a as ZM,e as QM,b as JM,c as e3}from"./form-Ci6fEfbw.js";import{I as t3}from"./input-g7He7HnU.js";import{S as n3}from"./spinner-BqZHGuGn.js";import{i as r3}from"./Globe01-CpKIMjw2.js";import{F as i3}from"./file-type-icon-BZq9FOyv.js";const a3={openrouter:t=>{const e=t?.openrouter;return typeof e=="object"&&e!==null&&"usage"in e&&typeof e.usage=="object"&&e.usage!==null&&"cost"in e.usage&&typeof e.usage.cost=="number"?e.usage.cost:null}};function T_(t){if(!t?.providerMetadata)return 0;for(const e of Object.values(a3)){const n=e(t.providerMetadata);if(n!==null)return n}return 0}function S_(){return{inputTokens:0,outputTokens:0,reasoningTokens:0,totalTokens:0,cost:0,cacheReadTokens:0,cacheWriteTokens:0}}function x_(t,e){if(!e)return t;const n=e.inputTokenDetails?.cacheReadTokens??e.cachedInputTokens??0,r=e.inputTokenDetails?.cacheWriteTokens??0;return{inputTokens:t.inputTokens+(e.inputTokens??0),outputTokens:t.outputTokens+(e.outputTokens??0),reasoningTokens:t.reasoningTokens+(e.reasoningTokens??0),totalTokens:t.totalTokens+(e.totalTokens??0),cost:t.cost+T_(e),cacheReadTokens:t.cacheReadTokens+n,cacheWriteTokens:t.cacheWriteTokens+r}}function c0(t){const e=Math.max(t.inputTokens,t.cacheReadTokens+t.cacheWriteTokens);return e>0?t.cacheReadTokens/e:0}function fce(t){return t.reduce((e,n)=>x_(e,n.metadata?.usage),S_())}const s3={damping:.7,stiffness:.05,mass:1.25},o3=70,l3=1e3/60,u3=350;let tu=!1;globalThis.document?.addEventListener("mousedown",()=>{tu=!0});globalThis.document?.addEventListener("mouseup",()=>{tu=!1});globalThis.document?.addEventListener("click",()=>{tu=!1});const c3=(t={})=>{const[e,n]=G.useState(!1),[r,i]=G.useState(t.initial!==!1),[a,s]=G.useState(!1),o=G.useRef(null);o.current=t;const l=G.useCallback(()=>{if(!tu)return!1;const T=window.getSelection();if(!T||!T.rangeCount)return!1;const S=T.getRangeAt(0);return S.commonAncestorContainer.contains(g.current)||g.current?.contains(S.commonAncestorContainer)},[]),u=G.useCallback(T=>{d.isAtBottom=T,i(T)},[]),c=G.useCallback(T=>{d.escapedFromLock=T,n(T)},[]),d=G.useMemo(()=>{let T;return{escapedFromLock:e,isAtBottom:r,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return g.current?.scrollTop??0},set scrollTop(S){if(g.current){const{scrollBehavior:k}=getComputedStyle(g.current);k!=="auto"&&(g.current.style.scrollBehavior="auto"),g.current.scrollTop=S,d.ignoreScrollToTop=g.current.scrollTop,k!=="auto"&&(g.current.style.scrollBehavior=k)}},get targetScrollTop(){return!g.current||!y.current?0:g.current.scrollHeight-1-g.current.clientHeight},get calculatedTargetScrollTop(){if(!g.current||!y.current)return 0;const{targetScrollTop:S}=this;if(!t.targetScrollTop)return S;if(T?.targetScrollTop===S)return T.calculatedScrollTop;const k=Math.max(Math.min(t.targetScrollTop(S,{scrollElement:g.current,contentElement:y.current}),S),0);return T={targetScrollTop:S,calculatedScrollTop:k},requestAnimationFrame(()=>{T=void 0}),k},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=o3}}},[]),p=G.useCallback((T={})=>{typeof T=="string"&&(T={animation:T}),T.preserveScrollPosition||u(!0);const S=Date.now()+(Number(T.wait)||0),k=qu(o.current,T.animation),{ignoreEscapes:v=!1}=T;let x,A=d.calculatedTargetScrollTop;T.duration instanceof Promise?T.duration.finally(()=>{x=Date.now()}):x=S+(T.duration??0);const N=async()=>{const _=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;const{scrollTop:C}=d,D=performance.now(),P=(D-(d.lastTick??D))/l3;if(d.animation||(d.animation={behavior:k,promise:_,ignoreEscapes:v}),d.animation.behavior===k&&(d.lastTick=D),l()||S>Date.now())return N();if(C<Math.min(A,d.calculatedTargetScrollTop)){if(d.animation?.behavior===k){if(k==="instant")return d.scrollTop=d.calculatedTargetScrollTop,N();d.velocity=(k.damping*d.velocity+k.stiffness*d.scrollDifference)/k.mass,d.accumulated+=d.velocity*P,d.scrollTop+=d.accumulated,d.scrollTop!==C&&(d.accumulated=0)}return N()}return x>Date.now()?(A=d.calculatedTargetScrollTop,N()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?p({animation:qu(o.current,o.current.resize),ignoreEscapes:v,duration:Math.max(0,x-Date.now())||void 0}):d.isAtBottom)});return _.then(C=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),C))};return T.wait!==!0&&(d.animation=void 0),d.animation?.behavior===k?d.animation.promise:N()},[u,l,d]),f=G.useCallback(()=>{c(!0),u(!1)},[c,u]),h=G.useCallback(({target:T})=>{if(T!==g.current)return;const{scrollTop:S,ignoreScrollToTop:k}=d;let{lastScrollTop:v=S}=d;d.lastScrollTop=S,d.ignoreScrollToTop=void 0,k&&k>S&&(v=k),s(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||S===k)return;if(l()){c(!0),u(!1);return}const x=S>v,A=S<v;if(d.animation?.ignoreEscapes){d.scrollTop=v;return}A&&(c(!0),u(!1)),x&&c(!1),!d.escapedFromLock&&d.isNearBottom&&u(!0)},1)},[c,u,l,d]),b=G.useCallback(({target:T,deltaY:S})=>{let k=T;for(;!["scroll","auto"].includes(getComputedStyle(k).overflow);){if(!k.parentElement)return;k=k.parentElement}k===g.current&&S<0&&g.current.scrollHeight>g.current.clientHeight&&!d.animation?.ignoreEscapes&&(c(!0),u(!1))},[c,u,d]),g=vy(T=>{g.current?.removeEventListener("scroll",h),g.current?.removeEventListener("wheel",b),T?.addEventListener("scroll",h,{passive:!0}),T?.addEventListener("wheel",b,{passive:!0})},[]),y=vy(T=>{if(d.resizeObserver?.disconnect(),d.resizeObserver=void 0,!T)return;let S;d.resizeObserver=new ResizeObserver(([k])=>{const{height:v}=k.contentRect,x=v-(S??v);if(d.resizeDifference=x,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),s(d.isNearBottom),x>=0){const A=qu(o.current,S?o.current.resize:o.current.initial);p({animation:A,wait:!0,preserveScrollPosition:!0,duration:A==="instant"?void 0:u3})}else d.isNearBottom&&(c(!1),u(!0));S=v,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===x&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(T)},[]);return{contentRef:y,scrollRef:g,scrollToBottom:p,stopScroll:f,isAtBottom:r||a,isNearBottom:a,escapedFromLock:e,state:d}};function vy(t,e){const n=G.useCallback(r=>(n.current=r,t(r)),e);return n}const zu=new Map;function qu(...t){const e={...s3};let n=!1;for(const i of t){if(i==="instant"){n=!0;continue}typeof i=="object"&&(n=!1,e.damping=i.damping??e.damping,e.stiffness=i.stiffness??e.stiffness,e.mass=i.mass??e.mass)}const r=JSON.stringify(e);return zu.has(r)||zu.set(r,Object.freeze(e)),n?"instant":zu.get(r)}function d3(t){let e=2166136261;for(let n=0;n<t.length;n++)e=Math.imul(e^t.charCodeAt(n),16777619);return`a${(e>>>0).toString(36).padStart(6,"0").slice(-6)}`}function d0(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function p0(t,e){if(!e)return t;const n=`${d3(e)}_`;return t.startsWith(n)?t.slice(n.length):t}function p3(t,e){return p0(t,e).replace(/[_-]/g," ").toLowerCase()}function f3(t,e){const n={};for(const r of t?.arguments??[])n[r.name]=r.required?Ty().min(1,e):Ty();return yL(n)}function h3(t,e){const n={};for(const r of t.arguments??[])n[r.name]=e?.[r.name]??"";return n}function m3(t){const e=W.c(74),{prompt:n,setPrompt:r,onSubmit:i,defaultValues:a}=t,s=G.useId(),o=de();let l,u;if(e[0]!==n||e[1]!==o){const I=f3(n,o("chat.dialogPromptArguments.required"));u=TL,l=EL(I),e[0]=n,e[1]=o,e[2]=l,e[3]=u}else l=e[2],u=e[3];let c;e[4]!==a||e[5]!==n?(c=n?h3(n,a):{},e[4]=a,e[5]=n,e[6]=c):c=e[6];let d;e[7]!==l||e[8]!==c?(d={resolver:l,defaultValues:c,mode:"onChange"},e[7]=l,e[8]=c,e[9]=d):d=e[9];const p=u(d);let f;e[10]!==n?.arguments?(f=n?.arguments??[],e[10]=n?.arguments,e[11]=f):f=e[11];const h=f;let b;e[12]!==p||e[13]!==i||e[14]!==r?(b=async I=>{await i(I),r(null),p.reset()},e[12]=p,e[13]=i,e[14]=r,e[15]=b):b=e[15];const g=b;let y;e[16]!==p||e[17]!==r?(y=I=>{I||(p.reset(),r(null))},e[16]=p,e[17]=r,e[18]=y):y=e[18];const T=y;if(!n)return null;let S;e[19]!==n._meta||e[20]!==n.name||e[21]!==n.title?(S=n.title||p3(n.name,d0(n._meta)),e[19]=n._meta,e[20]=n.name,e[21]=n.title,e[22]=S):S=e[22];let k;e[23]!==S?(k=m.jsx(p_,{children:m.jsx("span",{className:"capitalize",children:S})}),e[23]=S,e[24]=k):k=e[24];let v;e[25]!==n.description?(v=n.description&&m.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[25]=n.description,e[26]=v):v=e[26];let x;e[27]!==v||e[28]!==k?(x=m.jsxs(kM,{children:[k,v]}),e[27]=v,e[28]=k,e[29]=x):x=e[29];let A;e[30]!==p||e[31]!==g?(A=I=>{I.stopPropagation(),p.handleSubmit(g)(I)},e[30]=p,e[31]=g,e[32]=A):A=e[32];let N;if(e[33]!==h||e[34]!==p.control||e[35]!==p.formState.isSubmitting||e[36]!==o){let I;e[38]!==p.control||e[39]!==p.formState.isSubmitting||e[40]!==o?(I=X=>m.jsx(XM,{control:p.control,name:X.name,render:re=>{const{field:R}=re;return m.jsxs(ZM,{children:[m.jsxs(QM,{className:"text-xs",children:[X.name,X.required?null:m.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ",o("chat.dialogPromptArguments.optional")]})]}),m.jsx(JM,{children:m.jsx(t3,{...R,value:R.value??"",required:X.required,placeholder:X.description??"",className:"h-9",disabled:p.formState.isSubmitting})}),m.jsx(e3,{})]})}},X.name),e[38]=p.control,e[39]=p.formState.isSubmitting,e[40]=o,e[41]=I):I=e[41],N=h.map(I),e[33]=h,e[34]=p.control,e[35]=p.formState.isSubmitting,e[36]=o,e[37]=N}else N=e[37];let _;e[42]!==T?(_=()=>T(!1),e[42]=T,e[43]=_):_=e[43];const C=p.formState.isSubmitting;let D;e[44]!==o?(D=o("chat.dialogPromptArguments.cancel"),e[44]=o,e[45]=D):D=e[45];let P;e[46]!==p.formState.isSubmitting||e[47]!==_||e[48]!==D?(P=m.jsx(ar,{type:"button",variant:"ghost",onClick:_,disabled:C,children:D}),e[46]=p.formState.isSubmitting,e[47]=_,e[48]=D,e[49]=P):P=e[49];let j;e[50]!==p.formState.isSubmitting||e[51]!==o?(j=p.formState.isSubmitting?m.jsxs("span",{className:"flex items-center gap-2",children:[m.jsx(n3,{size:"xs"}),o("chat.dialogPromptArguments.loading")]}):o("chat.dialogPromptArguments.usePrompt"),e[50]=p.formState.isSubmitting,e[51]=o,e[52]=j):j=e[52];let F;e[53]!==p.formState.isSubmitting||e[54]!==s||e[55]!==j?(F=m.jsx(ar,{type:"submit",form:s,disabled:p.formState.isSubmitting,children:j}),e[53]=p.formState.isSubmitting,e[54]=s,e[55]=j,e[56]=F):F=e[56];let M;e[57]!==P||e[58]!==F?(M=m.jsxs(AM,{children:[P,F]}),e[57]=P,e[58]=F,e[59]=M):M=e[59];let U;e[60]!==s||e[61]!==A||e[62]!==N||e[63]!==M?(U=m.jsxs("form",{id:s,className:"space-y-4 py-4",autoComplete:"off",onSubmit:A,children:[N,M]}),e[60]=s,e[61]=A,e[62]=N,e[63]=M,e[64]=U):U=e[64];let H;e[65]!==p||e[66]!==U?(H=m.jsx(KM,{...p,children:U}),e[65]=p,e[66]=U,e[67]=H):H=e[67];let B;e[68]!==x||e[69]!==H?(B=m.jsxs(vM,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[x,H]}),e[68]=x,e[69]=H,e[70]=B):B=e[70];let ee;return e[71]!==T||e[72]!==B?(ee=m.jsx(f_,{open:!0,onOpenChange:T,children:B}),e[71]=T,e[72]=B,e[73]=ee):ee=e[73],ee}function Pg(t){return t?t.replace(/[_-]/g," ").toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):""}function yn(t,e){return t==="output-error"||t==="output-denied"?"error":t==="approval-requested"?"approval":t==="input-streaming"||t==="input-available"||t==="output-available"&&e===!0?"loading":"idle"}function ca(t){if(t==null||typeof t!="object")return;const e=t;if(e.structuredContent&&typeof e.structuredContent=="object")return e.structuredContent;if(Array.isArray(e.content)){const n=e.content[0];if(n?.type==="text"&&typeof n.text=="string")try{return JSON.parse(n.text)}catch{return}return}return t}var Ny=Object.defineProperty,g3=(t,e)=>{let n={};for(var r in t)Ny(n,r,{get:t[r],enumerable:!0});return Ny(n,Symbol.toStringTag,{value:"Module"}),n};function ht(t){this.content=t}ht.prototype={constructor:ht,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),a=r.content.slice();return i==-1?a.push(n||t,e):(a[i+1]=e,n&&(a[i]=n)),new ht(a)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new ht(n)},addToStart:function(t,e){return new ht([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new ht(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),a=r.find(t);return i.splice(a==-1?i.length:a,0,e,n),new ht(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=ht.from(t),t.size?new ht(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=ht.from(t),t.size?new ht(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=ht.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};ht.from=function(t){if(t instanceof ht)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new ht(e)};function k_(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),a=e.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let s=i.text,o=a.text,l=0;for(;s[l]==o[l];l++)n++;return l&&l<s.length&&l<o.length&&N_(s.charCodeAt(l-1))&&v_(s.charCodeAt(l))&&n--,n}if(i.content.size||a.content.size){let s=k_(i.content,a.content,n+1);if(s!=null)return s}n+=i.nodeSize}}function A_(t,e,n,r){for(let i=t.childCount,a=e.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let s=t.child(--i),o=e.child(--a),l=s.nodeSize;if(s==o){n-=l,r-=l;continue}if(!s.sameMarkup(o))return{a:n,b:r};if(s.isText&&s.text!=o.text){let u=s.text,c=o.text,d=u.length,p=c.length;for(;d>0&&p>0&&u[d-1]==c[p-1];)d--,p--,n--,r--;return d&&p&&d<u.length&&N_(u.charCodeAt(d-1))&&v_(u.charCodeAt(d))&&(n++,r++),{a:n,b:r}}if(s.content.size||o.content.size){let u=A_(s.content,o.content,n-1,r-1);if(u)return u}n-=l,r-=l}}function v_(t){return t>=56320&&t<57344}function N_(t){return t>=55296&&t<56320}class V{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,a){for(let s=0,o=0;o<n;s++){let l=this.content[s],u=o+l.nodeSize;if(u>e&&r(l,i+o,a||null,s)!==!1&&l.content.size){let c=o+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),r,i+c)}o=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let a="",s=!0;return this.nodesBetween(e,n,(o,l)=>{let u=o.isText?o.text.slice(Math.max(e,l)-l,n-l):o.isLeaf?i?typeof i=="function"?i(o):i:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&u||o.isTextblock)&&r&&(s?s=!1:a+=r),a+=u},0),a}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<e.content.length;a++)i.push(e.content[a]);return new V(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let a=0,s=0;s<n;a++){let o=this.content[a],l=s+o.nodeSize;l>e&&((s<e||l>n)&&(o.isText?o=o.cut(Math.max(0,e-s),Math.min(o.text.length,n-s)):o=o.cut(Math.max(0,e-s-1),Math.min(o.content.size,n-s-1))),r.push(o),i+=o.nodeSize),s=l}return new V(r,i)}cutByIndex(e,n){return e==n?V.empty:e==0&&n==this.content.length?this:new V(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new V(i,a)}addToStart(e){return new V([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new V(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return k_(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return A_(this,e,n,r)}findIndex(e){if(e==0)return oo(0,e);if(e==this.size)return oo(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),a=r+i.nodeSize;if(a>=e)return a==e?oo(n+1,a):oo(n,r);r=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return V.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return V.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return V.empty;let n,r=0;for(let i=0;i<e.length;i++){let a=e[i];r+=a.nodeSize,i&&a.isText&&e[i-1].sameMarkup(a)?(n||(n=e.slice(0,i)),n[n.length-1]=a.withText(n[n.length-1].text+a.text)):n&&n.push(a)}return new V(n||e,r)}static from(e){if(!e)return V.empty;if(e instanceof V)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new V([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}V.empty=new V([],0);const Gu={index:0,offset:0};function oo(t,e){return Gu.index=t,Gu.offset=e,Gu}function Vo(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Vo(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Vo(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let Be=class Fg{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(this.eq(a))return e;if(this.type.excludes(a.type))n||(n=e.slice(0,i));else{if(a.type.excludes(this.type))return e;!r&&a.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(a)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Vo(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Fg.none;if(e instanceof Fg)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};Be.none=[];class ms extends Error{}class te{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=__(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new te(r,this.openStart,this.openEnd)}removeBetween(e,n){return new te(C_(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return te.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new te(V.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let a=e.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)r++;for(let a=e.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new te(e,r,i)}}te.empty=new te(V.empty,0,0);function C_(t,e,n){let{index:r,offset:i}=t.findIndex(e),a=t.maybeChild(r),{index:s,offset:o}=t.findIndex(n);if(i==e||a.isText){if(o!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,a.copy(C_(a.content,e-i-1,n-i-1)))}function __(t,e,n,r,i,a){let{index:s,offset:o}=t.findIndex(e),l=t.maybeChild(s);if(o==e||l.isText)return a&&r<=0&&i<=0&&!a.canReplace(s,s,n)?null:t.cut(0,e).append(n).append(t.cut(e));let u=__(l.content,e-o-1,n,s==0?r-1:0,s==t.childCount-1?i-1:0,l);return u&&t.replaceChild(s,l.copy(u))}function b3(t,e,n){if(n.openStart>t.depth)throw new ms("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ms("Inconsistent open depths");return w_(t,e,n,0)}function w_(t,e,n,r){let i=t.index(r),a=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let s=w_(t,e,n,r+1);return a.copy(a.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,o=s.content;return ei(s,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}else{let{start:s,end:o}=E3(n,t);return ei(a,R_(t,s,o,e,r))}else return ei(a,Wo(t,e,r))}function I_(t,e){if(!e.type.compatibleContent(t.type))throw new ms("Cannot join "+e.type.name+" onto "+t.type.name)}function Bg(t,e,n){let r=t.node(n);return I_(r,e.node(n)),r}function Jr(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function qa(t,e,n,r){let i=(e||t).node(n),a=0,s=e?e.index(n):i.childCount;t&&(a=t.index(n),t.depth>n?a++:t.textOffset&&(Jr(t.nodeAfter,r),a++));for(let o=a;o<s;o++)Jr(i.child(o),r);e&&e.depth==n&&e.textOffset&&Jr(e.nodeBefore,r)}function ei(t,e){if(!t.type.validContent(e))throw new ms("Invalid content for node "+t.type.name);return t.copy(e)}function R_(t,e,n,r,i){let a=t.depth>i&&Bg(t,e,i+1),s=r.depth>i&&Bg(n,r,i+1),o=[];return qa(null,t,i,o),a&&s&&e.index(i)==n.index(i)?(I_(a,s),Jr(ei(a,R_(t,e,n,r,i+1)),o)):(a&&Jr(ei(a,Wo(t,e,i+1)),o),qa(e,n,i,o),s&&Jr(ei(s,Wo(n,r,i+1)),o)),qa(r,null,i,o),new V(o)}function Wo(t,e,n){let r=[];if(qa(null,t,n,r),t.depth>n){let i=Bg(t,e,n+1);Jr(ei(i,Wo(t,e,n+1)),r)}return qa(e,null,n,r),new V(r)}function E3(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let a=n-1;a>=0;a--)i=e.node(a).copy(V.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class gs{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let a=0;a<e;a++)i+=r.child(a).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Be.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let o=r;r=i,i=o}let a=r.marks;for(var s=0;s<a.length;s++)a[s].type.spec.inclusive===!1&&(!i||!a[s].isInSet(i.marks))&&(a=a[s--].removeFromSet(a));return a}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var a=0;a<r.length;a++)r[a].type.spec.inclusive===!1&&(!i||!r[a].isInSet(i.marks))&&(r=r[a--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Yo(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,a=n;for(let s=e;;){let{index:o,offset:l}=s.content.findIndex(a),u=a-l;if(r.push(s,o,i+l),!u||(s=s.child(o),s.isText))break;a=u-1,i+=l+1}return new gs(n,r,a)}static resolveCached(e,n){let r=Cy.get(e);if(r)for(let a=0;a<r.elts.length;a++){let s=r.elts[a];if(s.pos==n)return s}else Cy.set(e,r=new y3);let i=r.elts[r.i]=gs.resolve(e,n);return r.i=(r.i+1)%T3,i}}class y3{constructor(){this.elts=[],this.i=0}}const T3=12,Cy=new WeakMap;class Yo{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const S3=Object.create(null);let ti=class Ug{constructor(e,n,r,i=Be.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||V.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Vo(this.attrs,n||e.defaultAttrs||S3)&&Be.sameSet(this.marks,r||Be.none)}copy(e=null){return e==this.content?this:new Ug(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ug(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return te.empty;let i=this.resolve(e),a=this.resolve(n),s=r?0:i.sharedDepth(n),o=i.start(s),u=i.node(s).content.cut(i.pos-o,a.pos-o);return new te(u,i.depth-s,a.depth-s)}replace(e,n,r){return b3(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return gs.resolveCached(this,e)}resolveNoCache(e){return gs.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,a=>(r.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),O_(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=V.empty,i=0,a=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,a),o=s&&s.matchFragment(this.content,n);if(!o||!o.validEnd)return!1;for(let l=i;l<a;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let a=this.contentMatchAt(e).matchType(r),s=a&&a.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Be.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!Be.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=V.fromJSON(e,n.content),a=e.nodeType(n.type).create(n.attrs,i,r);return a.type.checkAttrs(a.attrs),a}};ti.prototype.text=void 0;class Ko extends ti{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):O_(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ko(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ko(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function O_(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class di{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new x3(e,n);if(r.next==null)return di.empty;let i=D_(r);r.next&&r.err("Unexpected trailing text");let a=w3(_3(i));return I3(a,r),a}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let a=n;i&&a<r;a++)i=i.matchType(e.child(a).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function a(s,o){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return V.from(o.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let p=a(d,o.concat(c));if(p)return p}}return null}return a(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),a=i.match;if(a.matchType(e)){let s=[];for(let o=i;o.type;o=o.via)s.push(o.type);return s.reverse()}for(let s=0;s<a.next.length;s++){let{type:o,next:l}=a.next[s];!o.isLeaf&&!o.hasRequiredAttrs()&&!(o.name in n)&&(!i.type||l.validEnd)&&(r.push({match:o.contentMatch,type:o,via:i}),n[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let a=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)a+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return a}).join(`
|
|
2
2
|
`)}}di.empty=new di(!0);class x3{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function D_(t){let e=[];do e.push(k3(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function k3(t){let e=[];do e.push(A3(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function A3(t){let e=C3(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=v3(t,e);else break;return e}function _y(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function v3(t,e){let n=_y(t),r=n;return t.eat(",")&&(t.next!="}"?r=_y(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function N3(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let a in n){let s=n[a];s.isInGroup(e)&&i.push(s)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function C3(t){if(t.eat("(")){let e=D_(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=N3(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function _3(t){let e=[[]];return i(a(t,0),n()),e;function n(){return e.push([])-1}function r(s,o,l){let u={term:l,to:o};return e[s].push(u),u}function i(s,o){s.forEach(l=>l.to=o)}function a(s,o){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(a(u,o)),[]);if(s.type=="seq")for(let l=0;;l++){let u=a(s.exprs[l],o);if(l==s.exprs.length-1)return u;i(u,o=n())}else if(s.type=="star"){let l=n();return r(o,l),i(a(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return i(a(s.expr,o),l),i(a(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(o)].concat(a(s.expr,o));if(s.type=="range"){let l=o;for(let u=0;u<s.min;u++){let c=n();i(a(s.expr,l),c),l=c}if(s.max==-1)i(a(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=n();r(l,c),i(a(s.expr,l),c),l=c}return[r(l)]}else{if(s.type=="name")return[r(o,void 0,s.value)];throw new Error("Unknown expr type")}}}}function L_(t,e){return e-t}function wy(t,e){let n=[];return r(e),n.sort(L_);function r(i){let a=t[i];if(a.length==1&&!a[0].term)return r(a[0].to);n.push(i);for(let s=0;s<a.length;s++){let{term:o,to:l}=a[s];!o&&n.indexOf(l)==-1&&r(l)}}}function w3(t){let e=Object.create(null);return n(wy(t,0));function n(r){let i=[];r.forEach(s=>{t[s].forEach(({term:o,to:l})=>{if(!o)return;let u;for(let c=0;c<i.length;c++)i[c][0]==o&&(u=i[c][1]);wy(t,l).forEach(c=>{u||i.push([o,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let a=e[r.join(",")]=new di(r.indexOf(t.length-1)>-1);for(let s=0;s<i.length;s++){let o=i[s][1].sort(L_);a.next.push({type:i[s][0],next:e[o.join(",")]||n(o)})}return a}}function I3(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],a=!i.validEnd,s=[];for(let o=0;o<i.next.length;o++){let{type:l,next:u}=i.next[o];s.push(l.name),a&&!(l.isText||l.hasRequiredAttrs())&&(a=!1),r.indexOf(u)==-1&&r.push(u)}a&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function M_(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function P_(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let a=t[r];if(a.hasDefault)i=a.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function F_(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let i in t)t[i].validate&&t[i].validate(e[i])}function B_(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new O3(t,r,e[r]);return n}let Iy=class U_{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=B_(e,r.attrs),this.defaultAttrs=M_(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==di.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:P_(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ti(this,this.computeAttrs(e),V.from(n),Be.setFrom(r))}createChecked(e=null,n,r){return n=V.from(n),this.checkContent(n),new ti(this,this.computeAttrs(e),n,Be.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=V.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let i=this.contentMatch.matchFragment(n),a=i&&i.fillBefore(V.empty,!0);return a?new ti(this,e,n.append(a),Be.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){F_(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:Be.none:e}static compile(e,n){let r=Object.create(null);e.forEach((a,s)=>r[a]=new U_(a,n,s));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let a in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function R3(t,e,n){let r=n.split("|");return i=>{let a=i===null?"null":typeof i;if(r.indexOf(a)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${a}`)}}class O3{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?R3(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class nu{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=B_(e,i.attrs),this.excluded=null;let a=M_(this.attrs);this.instance=a?new Be(this,a):null}create(e=null){return!e&&this.instance?this.instance:new Be(this,P_(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((a,s)=>r[a]=new nu(a,i++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){F_(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}let $_=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=ht.from(e.nodes),n.marks=ht.from(e.marks||{}),this.nodes=Iy.compile(this.spec.nodes,this),this.marks=nu.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let a=this.nodes[i],s=a.spec.content||"",o=a.spec.marks;if(a.contentMatch=r[s]||(r[s]=di.parse(s,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet=o=="_"?null:o?Ry(this,o.split(" ")):o==""||!a.inlineContent?[]:null}for(let i in this.marks){let a=this.marks[i],s=a.spec.excludes;a.excluded=s==null?[a]:s==""?[]:Ry(this,s.split(" "))}this.nodeFromJSON=i=>ti.fromJSON(this,i),this.markFromJSON=i=>Be.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Iy){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new Ko(r,r.defaultAttrs,e,Be.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function Ry(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t.marks[i],s=a;if(a)n.push(a);else for(let o in t.marks){let l=t.marks[o];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function D3(t){return t.tag!=null}function L3(t){return t.style!=null}class Mn{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(D3(i))this.tags.push(i);else if(L3(i)){let a=/[^=]*/.exec(i.style)[0];r.indexOf(a)<0&&r.push(a),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let a=e.nodes[i.node];return a.contentMatch.matchType(a)})}parse(e,n={}){let r=new Dy(this,n,!1);return r.addAll(e,Be.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new Dy(this,n,!0);return r.addAll(e,Be.none,n.from,n.to),te.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let a=this.tags[i];if(F3(e,a.tag)&&(a.namespace===void 0||e.namespaceURI==a.namespace)&&(!a.context||n.matchesContext(a.context))){if(a.getAttrs){let s=a.getAttrs(e);if(s===!1)continue;a.attrs=s||void 0}return a}}}matchStyle(e,n,r,i){for(let a=i?this.styles.indexOf(i)+1:0;a<this.styles.length;a++){let s=this.styles[a],o=s.style;if(!(o.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||o.length>e.length&&(o.charCodeAt(e.length)!=61||o.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function r(i){let a=i.priority==null?50:i.priority,s=0;for(;s<n.length;s++){let o=n[s];if((o.priority==null?50:o.priority)<a)break}n.splice(s,0,i)}for(let i in e.marks){let a=e.marks[i].spec.parseDOM;a&&a.forEach(s=>{r(s=Ly(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in e.nodes){let a=e.nodes[i].spec.parseDOM;a&&a.forEach(s=>{r(s=Ly(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Mn(e,Mn.schemaRules(e)))}}const H_={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},M3={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},j_={ol:!0,ul:!0},bs=1,$g=2,Ga=4;function Oy(t,e,n){return e!=null?(e?bs:0)|(e==="full"?$g:0):t&&t.whitespace=="pre"?bs|$g:n&~Ga}class lo{constructor(e,n,r,i,a,s){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=Be.none,this.match=a||(s&Ga?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(V.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&bs)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let a=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-i[0].length))}}let n=V.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(V.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!H_.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Dy{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,a,s=Oy(null,n.preserveWhitespace,0)|(r?Ga:0);i?a=new lo(i.type,i.attrs,Be.none,!0,n.topMatch||i.type.contentMatch,s):r?a=new lo(null,null,Be.none,!0,null,s):a=new lo(e.schema.topNodeType,null,Be.none,!0,null,s),this.nodes=[a],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,a=i.options&$g?"full":this.localPreserveWS||(i.options&bs)>0,{schema:s}=this.parser;if(a==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(a)if(a==="full")r=r.replace(/\r\n?/g,`
|
|
3
3
|
`);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let o=r.split(/\r?\n|\r/);for(let l=0;l<o.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),n,!0),o[l]&&this.insertNode(s.text(o[l]),n,!/\S/.test(o[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let o=i.content[i.content.length-1],l=e.previousSibling;(!o||l&&l.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,a=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),o;j_.hasOwnProperty(s)&&this.parser.normalizeLists&&P3(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));e:if(l?l.ignore:M3.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,c=this.needsBlock;if(H_.hasOwnProperty(s))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),u=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),u&&this.sync(a),this.needsBlock=c}else{let u=this.readStyles(e,n);u&&this.addElementByRule(e,l,u,l.consuming===!1?o:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
4
4
|
`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let a=this.parser.matchedStyles[i],s=r.getPropertyValue(a);if(s)for(let o=void 0;;){let l=this.parser.matchStyle(a,s,this,o);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(u=>!l.clearMark(u)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)o=l;else break}}return n}addElementByRule(e,n,r,i){let a,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let l=this.enter(s,n.attrs||null,r,n.preserveWhitespace);l&&(a=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let o=this.top;if(s&&s.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}a&&this.sync(o)&&this.open--}addAll(e,n,r,i){let a=r||0;for(let s=r?e.childNodes[r]:e.firstChild,o=i==null?null:e.childNodes[i];s!=o;s=s.nextSibling,++a)this.findAtPoint(e,a),this.addDOM(s,n);this.findAtPoint(e,a)}findPlace(e,n,r){let i,a;for(let s=this.open,o=0;s>=0;s--){let l=this.nodes[s],u=l.findWrapping(e);if(u&&(!i||i.length>u.length+o)&&(i=u,a=l,!u.length))break;if(l.solid){if(r)break;o+=2}}if(!i)return null;this.sync(a);for(let s=0;s<i.length;s++)n=this.enterInner(i[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let a=this.textblockFromContext();a&&(n=this.enterInner(a,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let a=this.top;a.match&&(a.match=a.match.matchType(e.type));let s=Be.none;for(let o of i.concat(e.marks))(a.type?a.type.allowsMarkType(o.type):My(o.type,e.type))&&(s=o.addToSet(s));return a.content.push(e.mark(s)),!0}return!1}enter(e,n,r,i){let a=this.findPlace(e.create(n),r,!1);return a&&(a=this.enterInner(e,n,r,!0,i)),a}enterInner(e,n,r,i=!1,a){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let o=Oy(e,a,s.options);s.options&Ga&&s.content.length==0&&(o|=Ga);let l=Be.none;return r=r.filter(u=>(s.type?s.type.allowsMarkType(u.type):My(u.type,e))?(l=u.addToSet(l),!1):!0),this.nodes.push(new lo(e,n,l,i,null,o)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=bs)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),a=-(r?r.depth+1:0)+(i?0:1),s=(o,l)=>{for(;o>=0;o--){let u=n[o];if(u==""){if(o==n.length-1||o==0)continue;for(;l>=a;l--)if(s(o-1,l))return!0;return!1}else{let c=l>0||l==0&&i?this.nodes[l].type:r&&l>=a?r.node(l-a).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function P3(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&j_.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function F3(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Ly(t){let e={};for(let n in t)e[n]=t[n];return e}function My(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let a=[],s=o=>{a.push(o);for(let l=0;l<o.edgeCount;l++){let{type:u,next:c}=o.edge(l);if(u==e||a.indexOf(c)<0&&s(c))return!0}};if(s(i.contentMatch))return!0}}class or{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=uo(n).createDocumentFragment());let i=r,a=[];return e.forEach(s=>{if(a.length||s.marks.length){let o=0,l=0;for(;o<a.length&&l<s.marks.length;){let u=s.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(a[o][0])||u.type.spec.spanning===!1)break;o++,l++}for(;o<a.length;)i=a.pop()[1];for(;l<s.marks.length;){let u=s.marks[l++],c=this.serializeMark(u,s.isInline,n);c&&(a.push([u,i]),i.appendChild(c.dom),i=c.contentDOM||c.dom)}}i.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){if(e.isText)return uo(n).createTextNode(e.text);let{dom:r,contentDOM:i}=Oo(uo(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let a=this.serializeMark(e.marks[i],e.isInline,n);a&&((a.contentDOM||a.dom).appendChild(r),r=a.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&Oo(uo(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return typeof n=="string"?{dom:e.createTextNode(n)}:Oo(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new or(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Py(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Py(e.marks)}}function Py(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function uo(t){return t.document||window.document}const Fy=new WeakMap;function B3(t){let e=Fy.get(t);return e===void 0&&Fy.set(t,e=U3(t)),e}function U3(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(t),e}function Oo(t,e,n,r){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let i=e[0],a;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(a=B3(r))&&a.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let o,l=n?t.createElementNS(n,i):t.createElement(i),u=e[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let p=d.indexOf(" ");p>0?l.setAttributeNS(d.slice(0,p),d.slice(p+1),u[d]):d=="style"&&l.style?l.style.cssText=u[d]:l.setAttribute(d,u[d])}}for(let d=c;d<e.length;d++){let p=e[d];if(p===0){if(d<e.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else if(typeof p=="string")l.appendChild(t.createTextNode(p));else{let{dom:f,contentDOM:h}=Oo(t,p,n,r);if(l.appendChild(f),h){if(o)throw new RangeError("Multiple content holes");o=h}}}return{dom:l,contentDOM:o}}const z_=65535,q_=Math.pow(2,16);function $3(t,e){return t+e*q_}function By(t){return t&z_}function H3(t){return(t-(t&z_))/q_}const G_=1,V_=2,Do=4,W_=8;class Hg{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&W_)>0}get deletedBefore(){return(this.delInfo&(G_|Do))>0}get deletedAfter(){return(this.delInfo&(V_|Do))>0}get deletedAcross(){return(this.delInfo&Do)>0}}class Zt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Zt.empty)return Zt.empty}recover(e){let n=0,r=By(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+H3(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,a=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?i:0);if(l>e)break;let u=this.ranges[o+a],c=this.ranges[o+s],d=l+u;if(e<=d){let p=u?e==l?-1:e==d?1:n:n,f=l+i+(p<0?0:c);if(r)return f;let h=e==(n<0?l:d)?null:$3(o/3,e-l),b=e==l?V_:e==d?G_:Do;return(n<0?e!=l:e!=d)&&(b|=W_),new Hg(f,b,h)}i+=c-u}return r?e+i:new Hg(e+i,0,null)}touches(e,n){let r=0,i=By(n),a=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?r:0);if(l>e)break;let u=this.ranges[o+a],c=l+u;if(e<=c&&o==i*3)return!0;r+=this.ranges[o+s]-u}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,a=0;i<this.ranges.length;i+=3){let s=this.ranges[i],o=s-(this.inverted?a:0),l=s+(this.inverted?0:a),u=this.ranges[i+n],c=this.ranges[i+r];e(o,o+u,l,l+c),a+=c-u}}invert(){return new Zt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Zt.empty:new Zt(e<0?[0,-e,0]:[0,0,e])}}Zt.empty=new Zt([]);class Es{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new Es(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new Es;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let a=this.from;a<this.to;a++){let s=this._maps[a],o=s.mapResult(e,n);if(o.recover!=null){let l=this.getMirror(a);if(l!=null&&l>a&&l<this.to){a=l,e=this._maps[l].recover(o.recover);continue}}i|=o.delInfo,e=o.pos}return r?e:new Hg(e,i,null)}}const Vu=Object.create(null);class vt{getMap(){return Zt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Vu[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Vu)throw new RangeError("Duplicate use of step JSON ID "+e);return Vu[e]=n,n.prototype.jsonID=e,n}}class nt{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new nt(e,null)}static fail(e){return new nt(null,e)}static fromReplace(e,n,r,i){try{return nt.ok(e.replace(n,r,i))}catch(a){if(a instanceof ms)return nt.fail(a.message);throw a}}}function f0(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let a=t.child(i);a.content.size&&(a=a.copy(f0(a.content,e,a))),a.isInline&&(a=e(a,n,i)),r.push(a)}return V.fromArray(r)}class kr extends vt{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),a=new te(f0(n.content,(s,o)=>!s.isAtom||!o.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return nt.fromReplace(e,this.from,this.to,a)}invert(){return new hn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new kr(n.pos,r.pos,this.mark)}merge(e){return e instanceof kr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new kr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new kr(n.from,n.to,e.markFromJSON(n.mark))}}vt.jsonID("addMark",kr);class hn extends vt{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new te(f0(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return nt.fromReplace(e,this.from,this.to,r)}invert(){return new kr(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new hn(n.pos,r.pos,this.mark)}merge(e){return e instanceof hn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new hn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new hn(n.from,n.to,e.markFromJSON(n.mark))}}vt.jsonID("removeMark",hn);class Ar extends vt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return nt.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return nt.fromReplace(e,this.pos,this.pos+1,new te(V.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new Ar(this.pos,n.marks[i]);return new Ar(this.pos,this.mark)}}return new pi(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Ar(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Ar(n.pos,e.markFromJSON(n.mark))}}vt.jsonID("addNodeMark",Ar);class pi extends vt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return nt.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return nt.fromReplace(e,this.pos,this.pos+1,new te(V.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Ar(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new pi(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new pi(n.pos,e.markFromJSON(n.mark))}}vt.jsonID("removeNodeMark",pi);class Je extends vt{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&jg(e,this.from,this.to)?nt.fail("Structure replace would overwrite content"):nt.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Zt([this.from,this.to-this.from,this.slice.size])}invert(e){return new Je(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),r=this.from==this.to&&Je.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new Je(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Je)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?te.empty:new te(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Je(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?te.empty:new te(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Je(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Je(n.from,n.to,te.fromJSON(e,n.slice),!!n.structure)}}Je.MAP_BIAS=1;vt.jsonID("replace",Je);class dt extends vt{constructor(e,n,r,i,a,s,o=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=a,this.insert=s,this.structure=o}apply(e){if(this.structure&&(jg(e,this.from,this.gapFrom)||jg(e,this.gapTo,this.to)))return nt.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return nt.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?nt.fromReplace(e,this.from,this.to,r):nt.fail("Content does not fit in gap")}getMap(){return new Zt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new dt(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new dt(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new dt(n.from,n.to,n.gapFrom,n.gapTo,te.fromJSON(e,n.slice),n.insert,!!n.structure)}}vt.jsonID("replaceAround",dt);function jg(t,e,n){let r=t.resolve(e),i=n-e,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let s=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}function j3(t,e,n,r){let i=[],a=[],s,o;t.doc.nodesBetween(e,n,(l,u,c)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let p=Math.max(u,e),f=Math.min(u+l.nodeSize,n),h=r.addToSet(d);for(let b=0;b<d.length;b++)d[b].isInSet(h)||(s&&s.to==p&&s.mark.eq(d[b])?s.to=f:i.push(s=new hn(p,f,d[b])));o&&o.to==p?o.to=f:a.push(o=new kr(p,f,r))}}),i.forEach(l=>t.step(l)),a.forEach(l=>t.step(l))}function z3(t,e,n,r){let i=[],a=0;t.doc.nodesBetween(e,n,(s,o)=>{if(!s.isInline)return;a++;let l=null;if(r instanceof nu){let u=s.marks,c;for(;c=r.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let u=Math.min(o+s.nodeSize,n);for(let c=0;c<l.length;c++){let d=l[c],p;for(let f=0;f<i.length;f++){let h=i[f];h.step==a-1&&d.eq(i[f].style)&&(p=h)}p?(p.to=u,p.step=a):i.push({style:d,from:Math.max(o,e),to:u,step:a})}}}),i.forEach(s=>t.step(new hn(s.from,s.to,s.style)))}function h0(t,e,n,r=n.contentMatch,i=!0){let a=t.doc.nodeAt(e),s=[],o=e+1;for(let l=0;l<a.childCount;l++){let u=a.child(l),c=o+u.nodeSize,d=r.matchType(u.type);if(!d)s.push(new Je(o,c,te.empty));else{r=d;for(let p=0;p<u.marks.length;p++)n.allowsMarkType(u.marks[p].type)||t.step(new hn(o,c,u.marks[p]));if(i&&u.isText&&n.whitespace!="pre"){let p,f=/\r?\n|\r/g,h;for(;p=f.exec(u.text);)h||(h=new te(V.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),s.push(new Je(o+p.index,o+p.index+p[0].length,h))}}o=c}if(!r.validEnd){let l=r.fillBefore(V.empty,!0);t.replace(o,o,new te(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function q3(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function da(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,a=0;;--r){let s=t.$from.node(r),o=t.$from.index(r)+i,l=t.$to.indexAfter(r)-a;if(r<t.depth&&s.canReplace(o,l,n))return r;if(r==0||s.type.spec.isolating||!q3(s,o,l))break;o&&(i=1),l<s.childCount&&(a=1)}return null}function G3(t,e,n){let{$from:r,$to:i,depth:a}=e,s=r.before(a+1),o=i.after(a+1),l=s,u=o,c=V.empty,d=0;for(let h=a,b=!1;h>n;h--)b||r.index(h)>0?(b=!0,c=V.from(r.node(h).copy(c)),d++):l--;let p=V.empty,f=0;for(let h=a,b=!1;h>n;h--)b||i.after(h+1)<i.end(h)?(b=!0,p=V.from(i.node(h).copy(p)),f++):u++;t.step(new dt(l,u,s,o,new te(c.append(p),d,f),c.size-d,!0))}function m0(t,e,n=null,r=t){let i=V3(t,e),a=i&&W3(r,e);return a?i.map(Uy).concat({type:e,attrs:n}).concat(a.map(Uy)):null}function Uy(t){return{type:t,attrs:null}}function V3(t,e){let{parent:n,startIndex:r,endIndex:i}=t,a=n.contentMatchAt(r).findWrapping(e);if(!a)return null;let s=a.length?a[0]:e;return n.canReplaceWith(r,i,s)?a:null}function W3(t,e){let{parent:n,startIndex:r,endIndex:i}=t,a=n.child(r),s=e.contentMatch.findWrapping(a.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let u=r;l&&u<i;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:s}function Y3(t,e,n){let r=V.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let o=n[s].type.contentMatch.matchFragment(r);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=V.from(n[s].type.create(n[s].attrs,r))}let i=e.start,a=e.end;t.step(new dt(i,a,i,a,new te(r,0,0),n.length,!0))}function K3(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=t.steps.length;t.doc.nodesBetween(e,n,(s,o)=>{let l=typeof i=="function"?i(s):i;if(s.isTextblock&&!s.hasMarkup(r,l)&&X3(t.doc,t.mapping.slice(a).map(o),r)){let u=null;if(r.schema.linebreakReplacement){let f=r.whitespace=="pre",h=!!r.contentMatch.matchType(r.schema.linebreakReplacement);f&&!h?u=!1:!f&&h&&(u=!0)}u===!1&&K_(t,s,o,a),h0(t,t.mapping.slice(a).map(o,1),r,void 0,u===null);let c=t.mapping.slice(a),d=c.map(o,1),p=c.map(o+s.nodeSize,1);return t.step(new dt(d,p,d+1,p-1,new te(V.from(r.create(l,null,s.marks)),0,0),1,!0)),u===!0&&Y_(t,s,o,a),!1}})}function Y_(t,e,n,r){e.forEach((i,a)=>{if(i.isText){let s,o=/\r?\n|\r/g;for(;s=o.exec(i.text);){let l=t.mapping.slice(r).map(n+1+a+s.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function K_(t,e,n,r){e.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+a);t.replaceWith(s,s+1,e.type.schema.text(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,j as o,b as $,H as D,d as M,r as q,P as d,B as H,q as R}from"./index-
|
|
1
|
+
import{c as B,j as o,b as $,H as D,d as M,r as q,P as d,B as H,q as R}from"./index-hm31ugsP.js";import{s as V}from"./Plus-BVETRe-R.js";import{i as S}from"./Zap-CLl4PoNB.js";import{S as F}from"./search-input-DIjZdQF_.js";import{E as T}from"./empty-state-ZMMx_ggR.js";import{c as G}from"./use-automations-DzhoYYdI.js";import{c as J}from"./use-navigate-to-agent-BWv7kruU.js";import{A as K}from"./automation-list-row-BkOEm1ne.js";import{h as O}from"./constants-dLUUoWH7.js";import{u as Q}from"./use-virtual-mcp-CbZuO3e_.js";import{R as U}from"./require-capability-vw_BGTby.js";import"./SearchMd-BmF-Y8C_.js";import"./use-mcp-client-CX-OBmZf.js";import"./auth-BBrRxGil.js";import"./use-destination-route-BpT878sj.js";import"./hooks-BKhOAw1A.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-TjgW7ckc.js";import"./task-board-BZOysUuk.js";import"./session-runtime-wVXsCwcJ.js";import"./alert-dialog-BL9CUnhQ.js";import"./dropdown-menu-BBOt5jRY.js";import"./Check-De5xbMZ_.js";import"./ChevronRight-eCyOlX7q.js";import"./DotsVertical-K-45hvkg.js";import"./Stars02-Dkvt8wI3.js";import"./Trash01-C7w4wgyv.js";import"./agent-icon-BxrQJCRL.js";import"./AlertCircle-AuVMh5dI.js";import"./UserSquare-BVlsJI1B.js";import"./Tool01-Us4du1HU.js";import"./ArrowUp-D8KdFxp3.js";import"./ArrowLeft-qguukyWS.js";import"./Tool02-D26qiRWa.js";import"./XCircle-Cx-N-IGe.js";import"./TrendUp01-qULdDtxY.js";import"./ZapSquare-DN3LNwBv.js";import"./Users03-Ba7Zs6Ag.js";import"./CheckCircle-EPKsKkCI.js";import"./ChevronDown-D6sMb7w8.js";import"./ChevronSelectorVertical-DXXBw1x3.js";import"./ChevronUp-CU8wkfB6.js";import"./Copy01-CprinEfn.js";import"./CreditCard01-D1pg-ChJ.js";import"./Download01-BKILAf-9.js";import"./Settings02-BGe12x-0.js";import"./Eye-BIEDLA51.js";import"./FilterLines-BRzgKNAI.js";import"./Share07-CIcrbYTY.js";import"./Globe01-CpKIMjw2.js";import"./Globe04-HRnTxSxk.js";import"./SwitchHorizontal01-4ZxiW7Cz.js";import"./HardDrive-CPFqpUNk.js";import"./Key01-CGwhy3oU.js";import"./LinkExternal01-PqQ-7e5z.js";import"./LockUnlocked01-CrE32oee.js";import"./LogOut01-DeUaCLqa.js";import"./Monitor01-2y5hMZ1w.js";import"./Sun--6iEcFDH.js";import"./Palette-0eaeXKN1.js";import"./Play-CwsbwXLV.js";import"./SearchLg-C3NeQGSM.js";import"./Shield01-BdVpW4u3.js";import"./Stars01-DtpzfCLb.js";import"./Upload01-BwQI0tkZ.js";import"./User01-DXZUb8k_.js";import"./Users01-DHYvjTlW.js";import"./XClose-CG2kLlHe.js";import"./access-gate-tvnhE7IN.js";import"./capability-load-error-CiczIgA9.js";function W(){const t=B.c(20),e=$(),{org:l}=D(),{data:C}=G(void 0),g=C===void 0?[]:C,k=Q(),P=J(),f=M(),[x,E]=q.useState(""),h=x.toLowerCase(),A=new Map(k.map(X)),b=g.filter(i=>{if(!h||i.name.toLowerCase().includes(h))return!0;if(i.virtual_mcp_id){const p=A.get(i.virtual_mcp_id);if(p&&p.title.toLowerCase().includes(h))return!0}return!1}),z=(i,p)=>{const N=p&&A.has(p)?p:O(l.id);R("automations_list_row_clicked",{automation_id:i,agent_id:N,source:"settings_automations"}),P(N,{panel:`automation:${i}`})};let c;t[0]!==f||t[1]!==l.slug?(c=()=>{R("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/agents",params:{org:l.slug}})},t[0]=f,t[1]=l.slug,t[2]=c):c=t[2];const L=c,j=d,v=d,w=d;let s;t[3]!==e?(s=e("settings.automations.pageTitle"),t[3]=e,t[4]=s):s=t[4];let r;t[5]!==s?(r=o.jsx(d.Title,{children:s}),t[5]=s,t[6]=r):r=t[6];const _=g.length>0&&o.jsx(F,{value:x,onChange:E,placeholder:e("settings.automations.searchPlaceholder"),className:"w-full md:w-[375px]"});let m;t[7]!==r||t[8]!==_?(m=o.jsxs("div",{className:"flex flex-col gap-6",children:[r,_]}),t[7]=r,t[8]=_,t[9]=m):m=t[9];const y=g.length===0?o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(T,{image:o.jsx(S,{size:48,className:"text-muted-foreground"}),title:e("settings.automations.emptyTitle"),description:e("settings.automations.emptyDescription"),actions:o.jsxs(H,{size:"sm",onClick:L,children:[o.jsx(V,{size:14}),e("settings.automations.browseAgentsButton")]})})}):b.length===0?o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(T,{image:o.jsx(S,{size:48,className:"text-muted-foreground"}),title:e("settings.automations.noResultsTitle"),description:e("settings.automations.noResultsDescription",{search:x})})}):o.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:b.map(i=>o.jsx(K,{automation:i,showAgent:!0,onClick:()=>z(i.id,i.virtual_mcp_id)},i.id))});let n;t[10]!==w.Body||t[11]!==m||t[12]!==y?(n=o.jsxs(w.Body,{children:[m,y]}),t[10]=w.Body,t[11]=m,t[12]=y,t[13]=n):n=t[13];let a;t[14]!==v.Content||t[15]!==n?(a=o.jsx(v.Content,{children:n}),t[14]=v.Content,t[15]=n,t[16]=a):a=t[16];let u;return t[17]!==j||t[18]!==a?(u=o.jsx(j,{children:a}),t[17]=j,t[18]=a,t[19]=u):u=t[19],u}function X(t){return[t.id,t]}function fo(){const t=B.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(U,{capability:"automations:manage",area:"automations",children:o.jsx(W,{})}),t[0]=e):e=t[0],e}export{fo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as i,n as m,bJ as R,e1 as V,e2 as I,e3 as $}from"./index-
|
|
1
|
+
import{c as k,j as i,n as m,bJ as R,e1 as V,e2 as I,e3 as $}from"./index-hm31ugsP.js";import{s as O}from"./User01-DXZUb8k_.js";function U(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx($,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function E(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(V,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function M(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(I,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}const C=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],L="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function T(r){let e=0;for(let t=0;t<r.length;t++)e=r.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%C.length;return C[s]}const S=R("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),_=R("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),D=r=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[r]||e.base};function J(r){const e=k.c(34);let s,t,o,a,n,d,g,l;e[0]!==r?({url:l,fallback:t,shape:a,size:n,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g;let x;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],x=c;break e}x=t}const f=x;let y;e:{if(j){y=L;break e}if(typeof t=="string"){let c;e[11]!==t?(c=T(t),e[11]=t,e[12]=c):c=e[12],y=c;break e}y=C[0]}const z=y;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const F=q;let w;e[18]!==s||e[19]!==b||e[20]!==h?(w=m(S({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==z||e[23]!==f||e[24]!==F||e[25]!==p||e[26]!==u||e[27]!==h||e[28]!==l?(v=p&&F?i.jsx("div",{className:m("flex items-center justify-center w-full h-full",z),children:i.jsx(O,{size:D(h)})}):i.jsxs(i.Fragment,{children:[l&&i.jsx(E,{src:l,loading:"lazy",alt:"Avatar",className:m(_({objectFit:u}))}),i.jsx(M,{className:m(z,"rounded-none"),delayMs:l?600:0,children:f})]}),e[22]=z,e[23]=f,e[24]=F,e[25]=p,e[26]=u,e[27]=h,e[28]=l,e[29]=v):v=e[29];let A;return e[30]!==o||e[31]!==v||e[32]!==w?(A=i.jsx(U,{className:w,...o,children:v}),e[30]=o,e[31]=v,e[32]=w,e[33]=A):A=e[33],A}function W(r){const e=k.c(18);let s,t,o,a,n,d,g,l;e[0]!==r?({shape:a,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g,x=h??"base";let f;return e[9]!==s||e[10]!==t||e[11]!==j||e[12]!==u||e[13]!==o||e[14]!==b||e[15]!==x||e[16]!==l?(f=i.jsx(J,{shape:b,url:l,fallback:t,size:x,objectFit:u,className:s,muted:j,...o}),e[9]=s,e[10]=t,e[11]=j,e[12]=u,e[13]=o,e[14]=b,e[15]=x,e[16]=l,e[17]=f):f=e[17],f}W.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:m(S({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{W as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,n as l,j as g,ce as v,bJ as b}from"./index-
|
|
1
|
+
import{c as u,n as l,j as g,ce as v,bJ as b}from"./index-hm31ugsP.js";const f=b("inline-flex items-center justify-center rounded-full border text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",warning:"border-transparent bg-warning text-warning-foreground [a&]:hover:bg-warning/90 focus-visible:ring-warning/20 dark:focus-visible:ring-warning/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"},size:{default:"px-2 py-0.5",icon:"size-5"}},defaultVariants:{variant:"default",size:"default"}});function h(c){const e=u.c(14);let r,s,i,n,t;e[0]!==c?({className:r,variant:t,size:i,asChild:n,...s}=c,e[0]=c,e[1]=r,e[2]=s,e[3]=i,e[4]=n,e[5]=t):(r=e[1],s=e[2],i=e[3],n=e[4],t=e[5]);const d=(n===void 0?!1:n)?v:"span";let a;e[6]!==r||e[7]!==i||e[8]!==t?(a=l(f({variant:t,size:i}),r),e[6]=r,e[7]=i,e[8]=t,e[9]=a):a=e[9];let o;return e[10]!==d||e[11]!==s||e[12]!==a?(o=g.jsx(d,{"data-slot":"badge",className:a,...s}),e[10]=d,e[11]=s,e[12]=a,e[13]=o):o=e[13],o}export{h as B};
|