@inkeep/open-knowledge 0.47.0-beta.23 → 0.47.0-beta.24
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/{acp-harness-probe-YqRQ76NC.mjs → acp-harness-probe-BPks3re6.mjs} +2 -2
- package/dist/cli.mjs +6 -6
- package/dist/constants-Bl3T2s5_.mjs +2 -0
- package/dist/index.mjs +1 -1
- package/dist/{init-3DxCRcv-.mjs → init-BlIyUl5L.mjs} +3 -3
- package/dist/init-zA2hg8qJ.mjs +1 -0
- package/dist/{launch-json-removal-DO9mBEMa.mjs → launch-json-removal-Do5NOg5V.mjs} +2 -2
- package/dist/loader-D1HAG2hm.mjs +1 -0
- package/dist/{loader-CqMLB27X.mjs → loader-D8rLVR12.mjs} +2 -2
- package/dist/{preview-CIiqIWzm.mjs → preview-C5KSgDYk.mjs} +2 -2
- package/dist/preview-DCwK6Hwd.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-eMJa8Av4.js → ActivityModeContent-DuB-iCkm.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-r4ZADFR_.js → AgentDiffPane-B75Uq4pi.js} +1 -1
- package/dist/public/assets/{AgentThreadClientBinder-qe1MEACR.js → AgentThreadClientBinder-DWbG4rs8.js} +1 -1
- package/dist/public/assets/{AppMenubar-CD82DZmT.js → AppMenubar-_6okky_d.js} +1 -1
- package/dist/public/assets/{BugReportHistory-B_qUtT_t.js → BugReportHistory-C_4-NQ-j.js} +1 -1
- package/dist/public/assets/{BugReportHistoryDialog-CZdY9Wqt.js → BugReportHistoryDialog-DgM3N4RP.js} +1 -1
- package/dist/public/assets/{ChangedOutsideBadge-BhytPKwo.js → ChangedOutsideBadge-DpdgoiRI.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-DfuEjOgx.js → CodeMirrorPropInput-NYH7mMLe.js} +3 -3
- package/dist/public/assets/{ConfigSharingInfoTooltip-D_b3sMDA.js → ConfigSharingInfoTooltip-BhNgrS2h.js} +1 -1
- package/dist/public/assets/{ConsentDialogBody-TldLlXQA.js → ConsentDialogBody-CAqiYyjs.js} +1 -1
- package/dist/public/assets/{CopyButton-D6N3opvE.js → CopyButton-DfXJBl0I.js} +1 -1
- package/dist/public/assets/{DiffView-by44lBMn.js → DiffView-Bc5gwnAV.js} +1 -1
- package/dist/public/assets/DocumentContext-CVei5hwk.js +38 -0
- package/dist/public/assets/EditorModeToggle-BnrXtDGP.js +1 -0
- package/dist/public/assets/{EnableSyncConfirmDialog-DaRwi97i.js → EnableSyncConfirmDialog-B91n0qh5.js} +1 -1
- package/dist/public/assets/FeedbackForm-DQmBPzt_.js +1 -0
- package/dist/public/assets/{GraphPanel-DNd_Soou.js → GraphPanel-CCCwgc9t.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-r6XGcGP8.js → ImportSkillDialog-B5ni7CCI.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-DP0mvlD-.js → LintConfigEditor-DG_zgeXb.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-C35Phj1Z.js → ManagedArtifactProperties-DJymAMN1.js} +2 -2
- package/dist/public/assets/ManagedArtifactProperties-QFkCtGJR.js +1 -0
- package/dist/public/assets/{McpConsentDialogBody-DNje2HrA.js → McpConsentDialogBody-0WUuivuI.js} +1 -1
- package/dist/public/assets/{Mermaid-DeqR50Io.js → Mermaid-DT9lZOmy.js} +2 -2
- package/dist/public/assets/{MermaidDocEditor-V8wUIrH9.js → MermaidDocEditor-12ZzEU48.js} +1 -1
- package/dist/public/assets/{RegisteredAgentIcon-MOyQ-5gc.js → RegisteredAgentIcon-CSZXCqwG.js} +1 -1
- package/dist/public/assets/{ReportBugDialogBody-RgJU4owp.js → ReportBugDialogBody-Bz6zj2ya.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-DMB202DW.js → SchemaConfigEditor-DGxUvYyB.js} +1 -1
- package/dist/public/assets/SessionsHost-BH50_eFP.js +2 -0
- package/dist/public/assets/{SettingsDialogBody-C6D_dIPg.js → SettingsDialogBody-CyGsQNAO.js} +4 -4
- package/dist/public/assets/{ShareBranchSwitchDialog-CaHo1QOg.js → ShareBranchSwitchDialog-LWhsqKpx.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-DtypcM-G.js → ShareReceiveDialog-DkiMKpYB.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-BEVKAVyo.js → ShareReceiveMissDialog-C9V4r0vs.js} +1 -1
- package/dist/public/assets/{SkillEditBanner-CdIPoRZZ.js → SkillEditBanner-BKknMb0n.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-Dv7Qj-yN.js → SkillOriginInline-BTfGYiOL.js} +1 -1
- package/dist/public/assets/SkillToolbarControls-nCRioYT2.js +1 -0
- package/dist/public/assets/{SourceEditor-pvbfMbXX.js → SourceEditor-D2J2t0c8.js} +1 -1
- package/dist/public/assets/{TerminalPanel-7KKsR7RM.js → TerminalPanel-DpTpMxPr.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-BHpRan9i.js → TerminalWindowApp-DotNnKMi.js} +1 -1
- package/dist/public/assets/{TextDocEditor-DIySejtJ.js → TextDocEditor-C3XHScUY.js} +1 -1
- package/dist/public/assets/{ThreadView-BYloKbR4.js → ThreadView-BCuQvbQ_.js} +1 -1
- package/dist/public/assets/{TimelineDiffPane-CElwxbvF.js → TimelineDiffPane-DBlFCBvs.js} +1 -1
- package/dist/public/assets/{abnfDiagram-VRR7QNED-BnbsMtSZ.js → abnfDiagram-VRR7QNED-Df7YgB-u.js} +1 -1
- package/dist/public/assets/{agent-diff-store-Cf_Scq3g.js → agent-diff-store-B5tmyxfC.js} +1 -1
- package/dist/public/assets/{agent-visibility-ZpjqX-Ne.js → agent-visibility-pSgQW56D.js} +1 -1
- package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-Dosr6E3U.js → architectureDiagram-ZJ3FMSHR-Cid8pwpH.js} +1 -1
- package/dist/public/assets/arrow-up-right-Gp4MuO-g.js +1 -0
- package/dist/public/assets/{auth-state-cache-CaC4Oksn.js → auth-state-cache-mfYXD_PQ.js} +4 -4
- package/dist/public/assets/{blockDiagram-677ZJIJ3-DlZp8ItG.js → blockDiagram-677ZJIJ3-CbwD0mr1.js} +1 -1
- package/dist/public/assets/{braces-BG3bQFuB.js → braces-PuTG97X6.js} +1 -1
- package/dist/public/assets/{c4Diagram-LMCZKHZV-ET_5c2OJ.js → c4Diagram-LMCZKHZV-CZHW-U3Z.js} +1 -1
- package/dist/public/assets/{calendar-DQGpktO3.js → calendar-Dze0sDp0.js} +1 -1
- package/dist/public/assets/{case-sensitive-DjnVZ1Bg.js → case-sensitive-DyF7sIpA.js} +1 -1
- package/dist/public/assets/channel-BBYqtvcN.js +1 -0
- package/dist/public/assets/check-DLRoQSSY.js +1 -0
- package/dist/public/assets/{checkbox-IqSEcunZ.js → checkbox-DqQC4GOw.js} +1 -1
- package/dist/public/assets/{chevron-down-BeptYHqQ.js → chevron-down-CRb8csep.js} +1 -1
- package/dist/public/assets/chevron-left-BRFq0qcJ.js +1 -0
- package/dist/public/assets/chevron-right-BjiB8LDf.js +1 -0
- package/dist/public/assets/{chevron-up-rNlu7Zrz.js → chevron-up-BZk9M0QL.js} +1 -1
- package/dist/public/assets/{chunk-32BRIVSS-DNo-6ebx.js → chunk-32BRIVSS-DT6F-uh7.js} +1 -1
- package/dist/public/assets/{chunk-52WLFC77-C6b3SFZy.js → chunk-52WLFC77-z8Dc0FTi.js} +1 -1
- package/dist/public/assets/{chunk-BO2N2NFS-B4sTS3Wn.js → chunk-BO2N2NFS-CC8ch_fx.js} +4 -4
- package/dist/public/assets/{chunk-C7G6YPKG-DUEN2-Z_.js → chunk-C7G6YPKG-CfSnkt3g.js} +1 -1
- package/dist/public/assets/{chunk-EX3LRPZG-yoDTr-PU.js → chunk-EX3LRPZG-Bk_23Lji.js} +1 -1
- package/dist/public/assets/{chunk-FWX5IMBZ-BiIbzhiq.js → chunk-FWX5IMBZ-Bcld6_cI.js} +2 -2
- package/dist/public/assets/{chunk-HOUHSVGY-Badw-z6W.js → chunk-HOUHSVGY-CFg4tiNL.js} +1 -1
- package/dist/public/assets/{chunk-ICXQ74PX-D2JPv1Gr.js → chunk-ICXQ74PX-D2_LgSCG.js} +1 -1
- package/dist/public/assets/{chunk-MOJQB5TN-DcXz8tHG.js → chunk-MOJQB5TN-ChUfYEEn.js} +1 -1
- package/dist/public/assets/{chunk-OGEWGWER-Cb9fL0HE.js → chunk-OGEWGWER-CivbNyHY.js} +1 -1
- package/dist/public/assets/{chunk-PUDLZKDR-BaaHT_On.js → chunk-PUDLZKDR-B7d6ISYj.js} +1 -1
- package/dist/public/assets/{chunk-Q4XR5HBZ-BwhG6EW6.js → chunk-Q4XR5HBZ-91W5kPi9.js} +1 -1
- package/dist/public/assets/{chunk-V7JOEXUC-BkqBW0FT.js → chunk-V7JOEXUC-Bw7Trikr.js} +1 -1
- package/dist/public/assets/{chunk-VAUOI2AC-CgZT0oz9.js → chunk-VAUOI2AC-B4WVYMGW.js} +1 -1
- package/dist/public/assets/{chunk-VR4S4FIN-uOOHuLS4.js → chunk-VR4S4FIN-td2s33cT.js} +1 -1
- package/dist/public/assets/{chunk-WYO6CB5R-vMJfXjXv.js → chunk-WYO6CB5R-BL3R8kzV.js} +1 -1
- package/dist/public/assets/{chunk-ZGVPDNZ5-Dg2m5m88.js → chunk-ZGVPDNZ5-DdQ8WlYq.js} +1 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-CusZeKDE.js +1 -0
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-3Dd_UHkU.js +1 -0
- package/dist/public/assets/{client-version-BeqRGVBh.js → client-version-BDizBXog.js} +1 -1
- package/dist/public/assets/{cm-theme-hkm-VXmY.js → cm-theme-CUwlOcHl.js} +1 -1
- package/dist/public/assets/{comment-chips-D23V_sWM.js → comment-chips-B6PdhPjL.js} +1 -1
- package/dist/public/assets/{config-context-B7cObhlW.js → config-context-BwIW8FCz.js} +1 -1
- package/dist/public/assets/{config-provider-CNXTSTPo.js → config-provider-DtD0bu1I.js} +1 -1
- package/dist/public/assets/{cynefinDiagram-TSTJHNR4-BN7bqTzy.js → cynefinDiagram-TSTJHNR4-BRxY_0dy.js} +1 -1
- package/dist/public/assets/{dagre-VKFMJZFB-DlQyYi34.js → dagre-VKFMJZFB-BTPOxYfv.js} +1 -1
- package/dist/public/assets/{diagram-FQU43EPY-DaKZOj7t.js → diagram-FQU43EPY-C6lvEDUr.js} +1 -1
- package/dist/public/assets/{diagram-G47NLZAW-DjL0bkk2.js → diagram-G47NLZAW-BHMtTNZp.js} +1 -1
- package/dist/public/assets/{diagram-NH7WQ7WH-BFVKsCaX.js → diagram-NH7WQ7WH-CaxSgclq.js} +1 -1
- package/dist/public/assets/{diagram-OA4YK3LP-CXLUBG3X.js → diagram-OA4YK3LP-C_1H_cmz.js} +1 -1
- package/dist/public/assets/{diagram-WEI45ONY-4JXEHpGs.js → diagram-WEI45ONY-hy5nz4b2.js} +1 -1
- package/dist/public/assets/{dialog-CCQHftjy.js → dialog-DwFomKjP.js} +1 -1
- package/dist/public/assets/{dist-BkKhGRrp2.js → dist-AhKSYQhE2.js} +1 -1
- package/dist/public/assets/{dist-D-N_uAqc.js → dist-BHX9GuTC.js} +1 -1
- package/dist/public/assets/{dist-B3siOv8e.js → dist-BX-8uxZE.js} +1 -1
- package/dist/public/assets/{dist-EhhPm2QX.js → dist-C7PQBily.js} +1 -1
- package/dist/public/assets/{dist-6M032-rx.js → dist-CFDOSoEm.js} +1 -1
- package/dist/public/assets/{dist-DOpBKTtD.js → dist-CJtNQVui.js} +1 -1
- package/dist/public/assets/{dist-Cq2eW_l0.js → dist-CdZbZpjt.js} +1 -1
- package/dist/public/assets/{dist-C11p0Ish.js → dist-Cz7Q9WAs.js} +1 -1
- package/dist/public/assets/{dist-8iqUcAwa2.js → dist-DYnLkWYw2.js} +3 -3
- package/dist/public/assets/{dist-p_jJ7IYj.js → dist-DdN4_oB-.js} +1 -1
- package/dist/public/assets/{dist-DmIoZuDL.js → dist-DgD72kci.js} +1 -1
- package/dist/public/assets/{dist-DYeLFwEq.js → dist-HbUc9U1a.js} +1 -1
- package/dist/public/assets/{dist-DTdK5ajW.js → dist-aEzrjz-4.js} +1 -1
- package/dist/public/assets/{dist-lPnSB2_D.js → dist-zYQJXuRH.js} +1 -1
- package/dist/public/assets/{doc-paths-Brm31tog.js → doc-paths-zGDWSnP4.js} +1 -1
- package/dist/public/assets/{documents-events-DG_D787e.js → documents-events-DrpYhlm4.js} +1 -1
- package/dist/public/assets/{download-DlaLrCD-.js → download-QOlmqXQ8.js} +1 -1
- package/dist/public/assets/{dropdown-menu-AlVJ7dJz.js → dropdown-menu-DRytYgB4.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-CCIWWBDH-BYS8OeyH.js → ebnfDiagram-CCIWWBDH-CSOwp-KN.js} +1 -1
- package/dist/public/assets/{erDiagram-Q63AITRT-DJnXYkWL.js → erDiagram-Q63AITRT-CulC3etm.js} +1 -1
- package/dist/public/assets/{eye-BIA1oECU.js → eye-CArKS_Md.js} +1 -1
- package/dist/public/assets/{field-7smx8aeY.js → field-iFofWrdC.js} +1 -1
- package/dist/public/assets/file-tree-adapter-VrQojY1R.js +1 -0
- package/dist/public/assets/{file-tree-utils-D-gnyeyb.js → file-tree-utils-DwQGrZOA.js} +1 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-BKkbdW0r.js +1 -0
- package/dist/public/assets/{folder-DcWlgZbb.js → folder-DxrU2PLH.js} +1 -1
- package/dist/public/assets/{folder-config-api-DIR7rDTa.js → folder-config-api-hHnKg-gr.js} +1 -1
- package/dist/public/assets/{folder-open-Ceue91os.js → folder-open-ee990ToL.js} +1 -1
- package/dist/public/assets/{follow-file-DcOTm2RV.js → follow-file-nrgaErEm.js} +1 -1
- package/dist/public/assets/{form-D-Z78Sh8.js → form-CGbOgaUs.js} +1 -1
- package/dist/public/assets/{ganttDiagram-NO4QXBWP-DItaKOAF.js → ganttDiagram-NO4QXBWP-iVPMtR6h.js} +1 -1
- package/dist/public/assets/{git-branch-le6ClqcQ.js → git-branch-B0WeYwW-.js} +1 -1
- package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-DHQDAgYw.js → gitGraphDiagram-IHSO6WYX-DdI0uf23.js} +1 -1
- package/dist/public/assets/globals-9XRqGE59.css +1 -0
- package/dist/public/assets/{globals-DeqcMGTI.js → globals-C8FRwDSr.js} +1 -1
- package/dist/public/assets/{hash-BXtq910s.js → hash-CDGtqqEo.js} +1 -1
- package/dist/public/assets/{highlighted-body-OFNGDK62-B67nCp45.js → highlighted-body-OFNGDK62-nVG7xLpg.js} +1 -1
- package/dist/public/assets/index-CD_SIoDr.js +2092 -0
- package/dist/public/assets/{info-BO0f2XRt.js → info-BnJuC0vW.js} +1 -1
- package/dist/public/assets/{infoDiagram-FWYZ7A6U-DEoYqFCv.js → infoDiagram-FWYZ7A6U-CCLCXbok.js} +1 -1
- package/dist/public/assets/{input-group-DySyX67I.js → input-group-BgDCDWUR.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-nCaxlJmo.js → ishikawaDiagram-FXEZZL3T-DYNfj8DM.js} +1 -1
- package/dist/public/assets/{journeyDiagram-5HDEW3XC-SSk-SIOT.js → journeyDiagram-5HDEW3XC-D3IdBiiM.js} +1 -1
- package/dist/public/assets/{kanban-definition-HUTT4EX6-DRKBtZF0.js → kanban-definition-HUTT4EX6-CF_ZN-jM.js} +1 -1
- package/dist/public/assets/{line-D6Xvw2WQ.js → line-BA7emVey.js} +1 -1
- package/dist/public/assets/{lint-config-client-DsXWTTJY.js → lint-config-client-iegX1n8T.js} +1 -1
- package/dist/public/assets/loader-circle-B0OUuKph.js +1 -0
- package/dist/public/assets/{local-menu-action-bus-C838bfRF.js → local-menu-action-bus-iy6v2osW.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-cGTqvDGI.js → markdownlint-rule-browser-DLGYhzDM.js} +1 -1
- package/dist/public/assets/mermaid-GHXKKRXX-uJrCvmwj.js +1 -0
- package/dist/public/assets/{mermaid.core-PVP9iSLZ.js → mermaid.core-gcfl0bT0.js} +3 -3
- package/dist/public/assets/{mindmap-definition-LN4V7U3C-DZarlxka.js → mindmap-definition-LN4V7U3C-9ySd_DkR.js} +1 -1
- package/dist/public/assets/minus-CKcpBpdR.js +1 -0
- package/dist/public/assets/{miss-dialog-store-BGDBpPYJ.js → miss-dialog-store-B3cHkf8G.js} +1 -1
- package/dist/public/assets/navigation-targets-BCEN_wqJ.js +1 -0
- package/dist/public/assets/{open-managed-artifact-tab-DvBGQQ5v.js → open-managed-artifact-tab-CkjRYJU3.js} +1 -1
- package/dist/public/assets/{panel-right-open-DuqyjMS8.js → panel-right-open-Cc56I_GE.js} +1 -1
- package/dist/public/assets/{paperclip-BDIpg8Sx.js → paperclip-D7KMFbO9.js} +1 -1
- package/dist/public/assets/{pegDiagram-2B236MQR-xOZS-dXD.js → pegDiagram-2B236MQR-cNCSiNUP.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-BbcYKqrN.js → pending-receive-nav-store-JTR13dvE.js} +1 -1
- package/dist/public/assets/{pieDiagram-ENE6RG2P-DCp62t84.js → pieDiagram-ENE6RG2P-C2bxi6W1.js} +1 -1
- package/dist/public/assets/{project-paths-CMGR87VL.js → project-paths--7l9Mqe-.js} +1 -1
- package/dist/public/assets/prop-types-CO1vfdpW.js +1 -0
- package/dist/public/assets/{propagation-api-CQo94KQr.js → propagation-api-DSg7UKuw.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-BDn0FSq4.js → quadrantDiagram-ABIIQ3AL-C8AftH1G.js} +1 -1
- package/dist/public/assets/{railroadDiagram-RFXS5EU6-C8pvuwMD.js → railroadDiagram-RFXS5EU6-CZh61tJk.js} +1 -1
- package/dist/public/assets/{receive-store-CrJ66EaF.js → receive-store-Zkulsnri.js} +1 -1
- package/dist/public/assets/{refresh-cw-s-1Jcbef.js → refresh-cw-DGLnzhho.js} +1 -1
- package/dist/public/assets/{requirementDiagram-TGXJPOKE-D_WWP7vX.js → requirementDiagram-TGXJPOKE-CQLu3M38.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-HTMAVEWB-B5F6SKgf.js → sankeyDiagram-HTMAVEWB-Bjus_sTX.js} +1 -1
- package/dist/public/assets/{select-BUOcREjn.js → select-BU4xT6VN.js} +1 -1
- package/dist/public/assets/{selection-context-DTwo8ecm.js → selection-context-Bf6D1pDY.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-Q2j2kfBA.js → sequenceDiagram-DBY2YBRQ-BR7Ay_cV.js} +1 -1
- package/dist/public/assets/skill-actions-BWrNxH2j.js +2 -0
- package/dist/public/assets/{skill-scope-Q1zIQcaf.js → skill-scope-CE5P-qa2.js} +1 -1
- package/dist/public/assets/{skills-api-DMJMDCm9.js → skills-api-DiFi6C13.js} +1 -1
- package/dist/public/assets/sortable.esm-BT6d9PDz.js +5 -0
- package/dist/public/assets/{square-pen-CJ1htiTi.js → square-pen-CEIus1aL.js} +1 -1
- package/dist/public/assets/{src-BfQvygCL.js → src-DMEDY0IW.js} +1 -1
- package/dist/public/assets/{stateDiagram-2N3HPSRC-rRceSq2o.js → stateDiagram-2N3HPSRC-DJmlM8IW.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-DJeEhrn3.js +1 -0
- package/dist/public/assets/{swimlanes-5IMT3BWC-BCV0gUXz.js → swimlanes-5IMT3BWC-D8ijXWBf.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-D5vkX5fS.js +8 -0
- package/dist/public/assets/{tag-pill-input-BJhyzUl0.js → tag-pill-input-3_tUFZqt.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-CXoUJsrm.js → target-navigation-intent-BgP4rk-A.js} +1 -1
- package/dist/public/assets/{telemetry-impl-D8fmQ-sL.js → telemetry-impl-DcuJVd--.js} +1 -1
- package/dist/public/assets/{telemetry-startup-DC_TV8BC.js → telemetry-startup-C-aCSZUK.js} +1 -1
- package/dist/public/assets/terminal-launch-events-AQ_xnG-R.js +1 -0
- package/dist/public/assets/{terminal-telemetry-6LxP9TAC.js → terminal-telemetry-BMEqHABV.js} +1 -1
- package/dist/public/assets/{text-viewer-languages-Bnw74F7h.js → text-viewer-languages-DEjz8Rlz.js} +2 -2
- package/dist/public/assets/{timeline-definition-FHXFAJF6-gfnw-IEO.js → timeline-definition-FHXFAJF6-DwBMj07Z.js} +1 -1
- package/dist/public/assets/{trash-2-B8G0hzas.js → trash-2-Ccq_llrY.js} +1 -1
- package/dist/public/assets/{triangle-alert-aDFrGIbV.js → triangle-alert-V8YoC6ss.js} +1 -1
- package/dist/public/assets/typing-burst-detector-CwUVFjur.js +8 -0
- package/dist/public/assets/{undo-2-DKF_XXr6.js → undo-2-bYFSgQwb.js} +1 -1
- package/dist/public/assets/{uninstall-C5NMESG5.js → uninstall-DpiS8BLi.js} +1 -1
- package/dist/public/assets/{use-activity-panel-BMIeYlRC.js → use-activity-panel-CYdaDNds.js} +1 -1
- package/dist/public/assets/use-collab-url-BwWR4HI-.js +1 -0
- package/dist/public/assets/{use-live-xterm-theme-B_-LdG2B.js → use-live-xterm-theme-KbfqWxbp.js} +1 -1
- package/dist/public/assets/{use-open-skill-DY7TTfKE.js → use-open-skill-D_ce5Ayi.js} +1 -1
- package/dist/public/assets/{use-settings-route-CU2Rp9Kx.js → use-settings-route-BOYDhit3.js} +1 -1
- package/dist/public/assets/{use-skill-directory-Cy50CLq2.js → use-skill-directory-Bkm0zmlI.js} +1 -1
- package/dist/public/assets/{use-skill-origin-CcipDhTq.js → use-skill-origin-DR4xcMJo.js} +1 -1
- package/dist/public/assets/{use-skills-07203H6O.js → use-skills-1DslFHtO.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-BBEYB_Kw.js → use-terminal-enabled-LUvzR9JZ.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-DynYCyDT.js → use-timeline-entry-diff-7HhWQJ1w.js} +1 -1
- package/dist/public/assets/{use-workspace-Dwf_RQAR.js → use-workspace-BlkDxHAu.js} +1 -1
- package/dist/public/assets/{vennDiagram-L72KCM5P-CbI7Ws0x.js → vennDiagram-L72KCM5P-DZxwOiUn.js} +1 -1
- package/dist/public/assets/{wardleyDiagram-EHGQE667-CDUlKkhj.js → wardleyDiagram-EHGQE667-D44Ff-nh.js} +1 -1
- package/dist/public/assets/{wrench-tsJ759Zo.js → wrench-D8b4qpCM.js} +1 -1
- package/dist/public/assets/x-B3zGPHCO.js +1 -0
- package/dist/public/assets/{xychartDiagram-FW5EYKEG-BnHJ2vZS.js → xychartDiagram-FW5EYKEG-B_4MyxsA.js} +1 -1
- package/dist/public/index.html +113 -113
- package/dist/public/uninstall.html +15 -15
- package/dist/{repair-launch-json-B7lTEm8g.mjs → repair-launch-json-BQN42H8u.mjs} +2 -2
- package/dist/{repair-mcp-configs-D40IMSsi.mjs → repair-mcp-configs-pNk_zTmC.mjs} +2 -2
- package/dist/{src-C5BS3yyY.mjs → src-CNQEPas3.mjs} +2 -2
- package/dist/{start-BjAsPFDu.mjs → start-C01QC4xV.mjs} +2 -2
- package/dist/start-CjlorZHM.mjs +1 -0
- package/package.json +4 -4
- package/dist/constants-CKAiJSzo.mjs +0 -2
- package/dist/init-Cp4mynB_.mjs +0 -1
- package/dist/loader-Cw-kPsC-.mjs +0 -1
- package/dist/preview-sXpBdWrB.mjs +0 -1
- package/dist/public/assets/DocumentContext-B-GZJDKB.js +0 -38
- package/dist/public/assets/EditorModeToggle-AMKA13Js.js +0 -1
- package/dist/public/assets/FeedbackForm-CEI7D-Bc.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-CHUp4ecd.js +0 -1
- package/dist/public/assets/SessionsHost-BaMZq0qm.js +0 -2
- package/dist/public/assets/SkillToolbarControls-CqRru1Un.js +0 -1
- package/dist/public/assets/arrow-up-right-CxtRAecj.js +0 -1
- package/dist/public/assets/channel-DjvQf__j.js +0 -1
- package/dist/public/assets/check-BIbL8Vva.js +0 -1
- package/dist/public/assets/chevron-left-B-obKYha.js +0 -1
- package/dist/public/assets/chevron-right-CABnKLlm.js +0 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-CJ4TXwAt.js +0 -1
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-CQLf9yeG.js +0 -1
- package/dist/public/assets/file-tree-adapter-BPB3Amf5.js +0 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-BuF1ujIX.js +0 -1
- package/dist/public/assets/globals-BMBVXTkN.css +0 -1
- package/dist/public/assets/index-B3IJzpjG.js +0 -2092
- package/dist/public/assets/loader-circle-DJ1nzSAL.js +0 -1
- package/dist/public/assets/mermaid-GHXKKRXX-Dejo0Qfr.js +0 -1
- package/dist/public/assets/minus-C4B0dZfA.js +0 -1
- package/dist/public/assets/navigation-targets-CgKIg62o.js +0 -1
- package/dist/public/assets/prop-types-BlpcaMv6.js +0 -1
- package/dist/public/assets/skill-actions-Dzann-5H.js +0 -2
- package/dist/public/assets/sortable.esm-lATz1Hrd.js +0 -5
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-D6QBedzc.js +0 -1
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-DTjtbbG7.js +0 -8
- package/dist/public/assets/terminal-launch-events-D_QtqRUl.js +0 -1
- package/dist/public/assets/typing-burst-detector-BXQ21SLH.js +0 -8
- package/dist/public/assets/use-collab-url-DFxPwofD.js +0 -1
- package/dist/public/assets/x-DIcZlcqo.js +0 -1
- package/dist/start-lwe_MarI.mjs +0 -1
- /package/dist/public/assets/{agent-presence-DuXF7V6Q.js → agent-presence-C8KjkxgZ.js} +0 -0
- /package/dist/public/assets/{createLucideIcon-DihYAFEK.js → createLucideIcon-BbgVV4EV.js} +0 -0
- /package/dist/public/assets/{katex-7IwCHL6E.js → katex-7OG0ksww.js} +0 -0
- /package/dist/public/assets/{label-G0lbYOgL.js → label-BT2yjpKR.js} +0 -0
- /package/dist/public/assets/{lib-oSGqv0ZH.js → lib-CtlgmvnR.js} +0 -0
- /package/dist/public/assets/{markdownit-BD8ZfAkg.js → markdownit-DoX6x6DK.js} +0 -0
- /package/dist/public/assets/{radio-group-CvYE9US5.js → radio-group-CmCnommQ.js} +0 -0
- /package/dist/public/assets/{separator-CXVli0aI.js → separator-C4EdGs_S.js} +0 -0
- /package/dist/public/assets/{switch-BuVbhbtp.js → switch-0kSGDL9E.js} +0 -0
- /package/dist/public/assets/{tabs-BKX_R3ed.js → tabs-CjOEhhKP.js} +0 -0
- /package/dist/public/assets/{toggle-group-Cnezoq-B.js → toggle-group-DAYvcc1F.js} +0 -0
- /package/dist/public/assets/{trace-api-DzbWkWNJ.js → trace-api-DH580DYm.js} +0 -0
- /package/dist/public/assets/{w3c-keyname-a_sRwNLm.js → w3c-keyname-hgmz1BF7.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,At as t,Bt as n,Dt as r,Ft as i,It as a,J as o,Lt as s,Mt as c,O as l,P as u,Pt as d,Q as f,Rt as p,St as m,Tt as h,Vt as g,Wt as _,X as v,Y as y,at as b,dt as x,jt as S,kt as ee,pt as C,yt as te,zt as w}from"./dist-lPnSB2_D.js";var T=class{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=u(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(O(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e==`abort`&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function E(e){let t=Object.keys(e).join(``),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,``)),`[${n?`\\w`:``}${t.replace(/[^\w\s]/g,`\\$&`)}]`}function ne(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=E(t)+E(n)+`*$`;return[RegExp(`^`+r),new RegExp(r)]}function re(e){let t=e.map(e=>typeof e==`string`?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:ne(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function ie(e,t){return n=>{for(let t=u(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}var ae=class{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}};function D(e){return e.selection.main.from}function O(e,t){let{source:n}=e,r=t&&n[0]!=`^`,i=n[n.length-1]!=`$`;return!r&&!i?e:RegExp(`${r?`^`:``}(?:${n})${i?`$`:``}`,e.flags??(e.ignoreCase?`i`:``))}var k=m.define();function oe(e,t,n,i){let{main:a}=e.selection,o=n-a.from,s=i-a.from;return{...e.changeByRange(c=>{if(c!=a&&n!=i&&e.sliceDoc(c.from+o,c.from+s)!=e.sliceDoc(n,i))return{range:c};let l=e.toText(t);return{changes:{from:c.from+o,to:i==a.from?c.to:c.from+s,insert:l},range:r.cursor(c.from+o+l.length)}}),scrollIntoView:!0,userEvent:`input.complete`}}var se=new WeakMap;function ce(e){if(!Array.isArray(e))return e;let t=se.get(e);return t||se.set(e,t=re(e)),t}var A=i.define(),j=i.define(),le=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let r=w(e,t),i=n(r);this.chars.push(r);let a=e.slice(t,t+i),o=a.toUpperCase();this.folded.push(w(o==a?a.toLowerCase():o,0)),t+=i}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:r,any:i,precise:a,byWord:o}=this;if(t.length==1){let i=w(e,0),a=n(i),o=a==e.length?0:-100;if(i!=t[0])if(i==r[0])o+=-200;else return null;return this.ret(o,[0,a])}let s=e.indexOf(this.pattern);if(s==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let c=t.length,l=0;if(s<0){for(let a=0,o=Math.min(e.length,200);a<o&&l<c;){let o=w(e,a);(o==t[l]||o==r[l])&&(i[l++]=a),a+=n(o)}if(l<c)return null}let u=0,d=0,f=!1,p=0,m=-1,h=-1,g=/[a-z]/.test(e),v=!0;for(let i=0,l=Math.min(e.length,200),y=0;i<l&&d<c;){let l=w(e,i);s<0&&(u<c&&l==t[u]&&(a[u++]=i),p<c&&(l==t[p]||l==r[p]?(p==0&&(m=i),h=i+1,p++):p=0));let b,x=l<255?l>=48&&l<=57||l>=97&&l<=122?2:+(l>=65&&l<=90):(b=_(l))==b.toLowerCase()?b==b.toUpperCase()?0:2:1;(!i||x==1&&g||y==0&&x!=0)&&(t[d]==l||r[d]==l&&(f=!0)?o[d++]=i:o.length&&(v=!1)),y=x,i+=n(l)}return d==c&&o[0]==0&&v?this.result(-100+(f?-200:0),o,e):p==c&&m==0?this.ret(-200-e.length+(h==e.length?0:-100),[0,h]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):p==c?this.ret(-900-e.length,[m,h]):d==c?this.result(-100+(f?-200:0)+-700+(v?0:-1100),o,e):t.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,r){let i=[],a=0;for(let e of t){let t=e+(this.astral?n(w(r,e)):1);a&&i[a-1]==e?i[a-1]=t:(i[a++]=e,i[a++]=t)}return this.ret(e-r.length,i)}},ue=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}},M=ee.define({combine(e){return g(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>``,optionClass:()=>``,aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:fe,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>de(e(n),t(n)),optionClass:(e,t)=>n=>de(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function de(e,t){return e?t?e+` `+t:e:t}function fe(e,t,n,r,i,a){let o=e.textDirection==y.RTL,s=o,c=!1,l=`top`,u,d,f=t.left-i.left,p=i.right-t.right,m=r.right-r.left,h=r.bottom-r.top;if(s&&f<Math.min(m,p)?s=!1:!s&&p<Math.min(m,f)&&(s=!0),m<=(s?f:p))u=Math.max(i.top,Math.min(n.top,i.bottom-h))-t.top,d=Math.min(400,s?f:p);else{c=!0,d=Math.min(400,(o?t.right:i.right-t.left)-30);let e=i.bottom-t.bottom;e>=h||e>t.top?u=n.bottom-t.top:(l=`bottom`,u=t.bottom-n.top)}let g=(t.bottom-t.top)/a.offsetHeight,_=(t.right-t.left)/a.offsetWidth;return{style:`${l}: ${u/g}px; max-width: ${d/_}px`,class:`cm-completionInfo-`+(c?o?`left-narrow`:`right-narrow`:s?`left`:`right`)}}var N=i.define();function pe(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement(`div`);return t.classList.add(`cm-completionIcon`),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>`cm-completionIcon-`+e)),t.setAttribute(`aria-hidden`,`true`),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement(`span`);i.className=`cm-completionLabel`;let a=e.displayLabel||e.label,o=0;for(let e=0;e<r.length;){let t=r[e++],n=r[e++];t>o&&i.appendChild(document.createTextNode(a.slice(o,t)));let s=i.appendChild(document.createElement(`span`));s.appendChild(document.createTextNode(a.slice(t,n))),s.className=`cm-completionMatchedText`,o=n}return o<a.length&&i.appendChild(document.createTextNode(a.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement(`span`);return t.className=`cm-completionDetail`,t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}function P(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.ceil((e-t)/n);return{from:e-r*n,to:e-(r-1)*n}}var me=class{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass=``;let r=e.state.field(t),{options:i,selected:a}=r.open,o=e.state.facet(M);this.optionContent=pe(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=P(i.length,a,o.maxRenderedOptions),this.dom=document.createElement(`div`),this.dom.className=`cm-tooltip-autocomplete`,this.updateTooltipClass(e.state),this.dom.addEventListener(`mousedown`,n=>{let{options:r}=e.state.field(t).open;for(let t=n.target,i;t&&t!=this.dom;t=t.parentNode)if(t.nodeName==`LI`&&(i=/-(\d+)$/.exec(t.id))&&+i[1]<r.length){this.applyCompletion(e,r[+i[1]]),n.preventDefault();return}if(n.target==this.list){let t=this.list.classList.contains(`cm-completionListIncompleteTop`)&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains(`cm-completionListIncompleteBottom`)&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;t!=null&&(e.dispatch({effects:N.of(t)}),n.preventDefault())}}),this.dom.addEventListener(`focusout`,t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(M).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:j.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener(`scroll`,()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){let t=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),t!=n){let{options:r,selected:i,disabled:a}=t.open;(!n.open||n.open.options!=r)&&(this.range=P(r.length,i,e.state.facet(M).maxRenderedOptions),this.showOptions(r,t.id)),this.updateSel(),a!=n.open?.disabled&&this.dom.classList.toggle(`cm-tooltip-autocomplete-disabled`,!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(` `))e&&this.dom.classList.remove(e);for(let e of t.split(` `))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=P(t.options.length,t.selected,this.view.state.facet(M).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:i}=r;if(!i)return;let a=typeof i==`string`?document.createTextNode(i):i(r);if(!a)return;`then`in a?a.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>C(this.view.state,e,`completion info`)):(this.addInfoPane(a,r),n.setAttribute(`aria-describedby`,this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement(`div`);if(n.className=`cm-tooltip cm-completionInfo`,n.id=`cm-completionInfo-`+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!=`LI`||!n.id?r--:r==e?n.hasAttribute(`aria-selected`)||(n.setAttribute(`aria-selected`,`true`),t=n):n.hasAttribute(`aria-selected`)&&(n.removeAttribute(`aria-selected`),n.removeAttribute(`aria-describedby`));return t&&ge(this.list,t),t}measureInfo(){let e=this.dom.querySelector(`[aria-selected]`);if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(M).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className=`cm-tooltip cm-completionInfo `+(e.class||``)):this.info.style.cssText=`top: -1e6px`)}createListBox(e,t,n){let r=document.createElement(`ul`);r.id=t,r.setAttribute(`role`,`listbox`),r.setAttribute(`aria-expanded`,`true`),r.setAttribute(`aria-label`,this.view.state.phrase(`Completions`)),r.addEventListener(`mousedown`,e=>{e.target==r&&e.preventDefault()});let i=null;for(let a=n.from;a<n.to;a++){let{completion:o,match:s}=e[a],{section:c}=o;if(c){let e=typeof c==`string`?c:c.name;if(e!=i&&(a>n.from||n.from==0))if(i=e,typeof c!=`string`&&c.header)r.appendChild(c.header(c));else{let t=r.appendChild(document.createElement(`completion-section`));t.textContent=e}}let l=r.appendChild(document.createElement(`li`));l.id=t+`-`+a,l.setAttribute(`role`,`option`);let u=this.optionClass(o);u&&(l.className=u);for(let e of this.optionContent){let t=e(o,this.view.state,this.view,s);t&&l.appendChild(t)}}return n.from&&r.classList.add(`cm-completionListIncompleteTop`),n.to<e.length&&r.classList.add(`cm-completionListIncompleteBottom`),r}destroyInfo(){this.info&&=(this.infoDestroy&&this.infoDestroy(),this.info.remove(),null)}destroy(){this.destroyInfo()}};function he(e,t){return n=>new me(n,e,t)}function ge(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function F(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+ +!!e.type}function _e(e,t){let n=[],r=null,i=null,a=e=>{n.push(e);let{section:t}=e.completion;if(t){r||=[];let e=typeof t==`string`?t:t.name;r.some(t=>t.name==e)||r.push(typeof t==`string`?{name:e}:t)}},o=t.facet(M);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(r.result.filter===!1)for(let t of r.result.options)a(new ae(t,r.source,e?e(t):[],1e9-n.length));else{let n=t.sliceDoc(r.from,r.to),s,c=o.filterStrict?new ue(n):new le(n);for(let t of r.result.options)if(s=c.match(t.label)){let n=t.displayLabel?e?e(t,s.matched):[]:s.matched,o=s.score+(t.boost||0);if(a(new ae(t,r.source,n,o)),typeof t.section==`object`&&t.section.rank===`dynamic`){let{name:e}=t.section;i||=Object.create(null),i[e]=Math.max(o,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0,a=(e,t)=>(e.rank===`dynamic`&&t.rank===`dynamic`?i[t.name]-i[e.name]:0)||(typeof e.rank==`number`?e.rank:1e9)-(typeof t.rank==`number`?t.rank:1e9)||(e.name<t.name?-1:1);for(let n of r.sort(a))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e[typeof n==`string`?n:n.name])}}let s=[],c=null,l=o.compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||l(e.completion,t.completion))){let t=e.completion;!c||c.label!=t.label||c.detail!=t.detail||c.type!=null&&t.type!=null&&c.type!=t.type||c.apply!=t.apply||c.boost!=t.boost?s.push(e):F(e.completion)>F(c)&&(s[s.length-1]=e),c=e.completion}return s}var ve=class e{constructor(e,t,n,r,i,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,I(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a,o){if(i&&!o&&t.some(e=>e.isPending))return i.setDisabled();let s=_e(t,n);if(!s.length)return i&&t.some(e=>e.isPending)?i.setDisabled():null;let c=n.facet(M).selectOnOpen?0:-1;if(i&&i.selected!=c&&i.selected!=-1){let e=i.options[i.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){c=t;break}}return new e(s,I(r,c),{pos:t.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:Ee,above:a.aboveCursor},i?i.timestamp:Date.now(),c,!1)}map(t){return new e(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new e(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},ye=class e{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new e(Ce,`cm-ac-`+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(M),i=(r.override||n.languageDataAt(`autocomplete`,D(n)).map(ce)).map(e=>(this.active.find(t=>t.source==e)||new R(e,+!!this.active.some(e=>e.state!=0))).update(t,r));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let a=this.open,o=t.effects.some(e=>e.is(z));a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!be(i,this.active)||o?a=ve.build(i,n,this.id,a,r,o):a&&a.disabled&&!i.some(e=>e.isPending)&&(a=null),!a&&i.every(e=>!e.isPending)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new R(e.source,0):e));for(let e of t.effects)e.is(N)&&(a&&=a.setSelected(e.value,this.id));return i==this.active&&a==this.open?this:new e(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?xe:Se}};function be(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;let i=n==e.length,a=r==t.length;if(i||a)return i==a;if(e[n++].result!=t[r++].result)return!1}}var xe={"aria-autocomplete":`list`},Se={};function I(e,t){let n={"aria-autocomplete":`list`,"aria-haspopup":`listbox`,"aria-controls":e};return t>-1&&(n[`aria-activedescendant`]=e+`-`+t),n}var Ce=[];function L(e,t){if(e.isUserEvent(`input.complete`)){let n=e.annotation(k);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent(`input.type`);return n&&t.activateOnTyping?5:n?1:e.isUserEvent(`delete.backward`)?2:e.selection?8:e.docChanged?16:0}var R=class e{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(t,n){let r=L(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new e(i.source,0)),r&4&&i.state==0&&(i=new e(this.source,1)),i=i.updateFor(t,r);for(let n of t.effects)if(n.is(A))i=new e(i.source,1,n.value);else if(n.is(j))i=new e(i.source,0);else if(n.is(z))for(let e of n.value)e.source==i.source&&(i=e);return i}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(D(e.state))}},we=class e extends R{constructor(e,t,n,r,i,a){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){if(!(n&3))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let i=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),o=D(t.state);if(o>a||!r||n&2&&(D(t.startState)==this.from||o<this.limit))return new R(this.source,n&4?1:0);let s=t.changes.mapPos(this.limit);return Te(r.validFor,t.state,i,a)?new e(this.source,this.explicit,s,r,i,a):r.update&&(r=r.update(r,i,a,new T(t.state,o,!1)))?new e(this.source,this.explicit,s,r,r.from,r.to??D(t.state)):new R(this.source,1,this.explicit)}map(t){if(t.empty)return this;let n=this.result.map?this.result.map(this.result,t):this.result;return n?new e(this.source,this.explicit,t.mapPos(this.limit),n,t.mapPos(this.from),t.mapPos(this.to,1)):new R(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};function Te(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e==`function`?e(i,n,r,t):O(e,!0).test(i)}var z=i.define({map(e,t){return e.map(e=>e.map(t))}}),B=a.define({create(){return ye.start()},update(e,t){return e.update(t)},provide:e=>[te.from(e,e=>e.tooltip),v.contentAttributes.from(e,e=>e.attrs)]});function V(e,t){let n=t.completion.apply||t.completion.label,r=e.state.field(B).active.find(e=>e.source==t.source);return r instanceof we?(typeof n==`string`?e.dispatch({...oe(e.state,n,r.from,r.to),annotations:k.of(t.completion)}):n(e,t.completion,r.from,r.to),!0):!1}var Ee=he(B,V);function H(e,t=`option`){return n=>{let r=n.state.field(B,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(M).interactionDelay)return!1;let i=1,a;t==`page`&&(a=b(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector(`li`).offsetHeight)-1));let{length:o}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:o-1;return s<0?s=t==`page`?0:o-1:s>=o&&(s=t==`page`?o-1:0),n.dispatch({effects:N.of(s)}),!0}}var De=e=>{let t=e.state.field(B,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(M).interactionDelay?!1:V(e,t.open.options[t.open.selected])},U=e=>e.state.field(B,!1)?(e.dispatch({effects:A.of(!0)}),!0):!1,Oe=e=>{let t=e.state.field(B,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(e.dispatch({effects:j.of(null)}),!0)},ke=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},Ae=50,je=1e3,Me=f.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(B).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(B),n=e.state.facet(M);if(!e.selectionSet&&!e.docChanged&&e.startState.field(B)==t)return;let r=e.transactions.some(e=>{let t=L(e,n);return t&8||(e.selection||e.docChanged)&&!(t&3)});for(let t=0;t<this.running.length;t++){let n=this.running[t];if(r||n.context.abortOnDocChange&&e.docChanged||n.updates.length+e.transactions.length>Ae&&Date.now()-n.time>je){for(let e of n.context.abortListeners)try{e()}catch(e){C(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(A)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let t of e.transactions)t.isUserEvent(`input.type`)?this.composing=2:this.composing==2&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(B);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(M).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=new T(t,D(t),e.explicit,this.view),r=new ke(e,n);this.running.push(r),Promise.resolve(e.source(n)).then(e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:j.of(null)}),C(this.view.state,e)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(M).updateSyncTime))}accept(){this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(M),n=this.view.state.field(B);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(i.done===void 0)continue;if(this.running.splice(r--,1),i.done){let n=D(i.updates.length?i.updates[0].startState:this.view.state),r=Math.min(n,i.done.from+ +!i.active.explicit),a=new we(i.active.source,i.active.explicit,r,i.done,i.done.from,i.done.to??n);for(let e of i.updates)a=a.update(e,t);if(a.hasResult()){e.push(a);continue}}let a=n.active.find(e=>e.source==i.active.source);if(a&&a.isPending)if(i.done==null){let n=new R(i.active.source,0);for(let e of i.updates)n=n.update(e,t);n.isPending||e.push(n)}else this.startQuery(a)}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:z.of(e)})}},{eventHandlers:{blur(e){let t=this.view.state.field(B,!1);if(t&&t.tooltip&&this.view.state.facet(M).closeOnBlur){let n=t.open&&b(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:j.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:A.of(!1)}),20),this.composing=0}}}),Ne=typeof navigator==`object`&&/Win/.test(navigator.platform),Pe=S.highest(v.domEventHandlers({keydown(e,t){let n=t.state.field(B,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(Ne&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&V(t,r),!1}})),W=v.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:`monospace`,whiteSpace:`nowrap`,overflow:`hidden auto`,maxWidth_fallback:`700px`,maxWidth:`min(700px, 95vw)`,minWidth:`250px`,maxHeight:`10em`,height:`100%`,listStyle:`none`,margin:0,padding:0,"& > li, & > completion-section":{padding:`1px 3px`,lineHeight:1.2},"& > li":{overflowX:`hidden`,textOverflow:`ellipsis`,cursor:`pointer`},"& > completion-section":{display:`list-item`,borderBottom:`1px solid silver`,paddingLeft:`0.5em`,opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#17c`,color:`white`},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#777`},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#347`,color:`white`},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#444`},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:`"···"`,opacity:.5,display:`block`,textAlign:`center`,cursor:`pointer`},".cm-tooltip.cm-completionInfo":{position:`absolute`,padding:`3px 9px`,width:`max-content`,maxWidth:`400px`,boxSizing:`border-box`,whiteSpace:`pre-line`},".cm-completionInfo.cm-completionInfo-left":{right:`100%`},".cm-completionInfo.cm-completionInfo-right":{left:`100%`},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`30px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`30px`},"&light .cm-snippetField":{backgroundColor:`#00000022`},"&dark .cm-snippetField":{backgroundColor:`#ffffff22`},".cm-snippetFieldPosition":{verticalAlign:`text-top`,width:0,height:`1.15em`,display:`inline-block`,margin:`0 -0.7px -.7em`,borderLeft:`1.4px dotted #888`},".cm-completionMatchedText":{textDecoration:`underline`},".cm-completionDetail":{marginLeft:`0.5em`,fontStyle:`italic`},".cm-completionIcon":{fontSize:`90%`,width:`.8em`,display:`inline-block`,textAlign:`center`,paddingRight:`.6em`,opacity:`0.6`,boxSizing:`content-box`},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:`'ƒ'`}},".cm-completionIcon-class":{"&:after":{content:`'○'`}},".cm-completionIcon-interface":{"&:after":{content:`'◌'`}},".cm-completionIcon-variable":{"&:after":{content:`'𝑥'`}},".cm-completionIcon-constant":{"&:after":{content:`'𝐶'`}},".cm-completionIcon-type":{"&:after":{content:`'𝑡'`}},".cm-completionIcon-enum":{"&:after":{content:`'∪'`}},".cm-completionIcon-property":{"&:after":{content:`'□'`}},".cm-completionIcon-keyword":{"&:after":{content:`'🔑︎'`}},".cm-completionIcon-namespace":{"&:after":{content:`'▢'`}},".cm-completionIcon-text":{"&:after":{content:`'abc'`,fontSize:`50%`,verticalAlign:`middle`}}}),Fe=class{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}},Ie=class e{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(n){let r=n.mapPos(this.from,-1,t.TrackDel),i=n.mapPos(this.to,1,t.TrackDel);return r==null||i==null?null:new e(this.field,r,i)}},Le=class e{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=a,o=/^\t*/.exec(i)[0].length;for(let t=0;t<o;t++)n+=e.facet(l);r.push(t+n.length-o),i=n+i.slice(o)}n.push(i),t+=i.length+1}return{text:n,ranges:this.fieldPositions.map(e=>new Ie(e.field,r[e.line]+e.from,r[e.line]+e.to))}}static parse(t){let n=[],r=[],i=[],a;for(let e of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(e);){let t=a[1]?+a[1]:null,o=a[2]||a[3]||``,s=-1;t===0&&(t=1e9);let c=o.replace(/\\[{}]/g,e=>e[1]);for(let e=0;e<n.length;e++)(t==null?c&&n[e].name==c:n[e].seq==t)&&(s=e);if(s<0){let e=0;for(;e<n.length&&(t==null||n[e].seq!=null&&n[e].seq<t);)e++;n.splice(e,0,{seq:t,name:c}),s=e;for(let e of i)e.field>=s&&e.field++}for(let e of i)if(e.line==r.length&&e.from>a.index){let t=a[2]?3+(a[1]||``).length:2;e.from-=t,e.to-=t}i.push(new Fe(s,r.length,a.index,a.index+c.length)),e=e.slice(0,a.index)+o+e.slice(a.index+a[0].length)}e=e.replace(/\\([{}])/g,(e,t,n)=>{for(let e of i)e.line==r.length&&e.from>n&&(e.from--,e.to--);return t}),r.push(e)}return new e(r,i)}},Re=o.widget({widget:new class extends e{toDOM(){let e=document.createElement(`span`);return e.className=`cm-snippetFieldPosition`,e}ignoreEvent(){return!1}}}),ze=o.mark({class:`cm-snippetField`}),G=class e{constructor(e,t){this.ranges=e,this.active=t,this.deco=o.set(e.map(e=>(e.from==e.to?Re:ze).range(e.from,e.to)),!0)}map(t){let n=[];for(let e of this.ranges){let r=e.map(t);if(!r)return null;n.push(r)}return new e(n,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}},K=i.define({map(e,t){return e&&e.map(t)}}),Be=i.define(),q=a.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(K))return n.value;if(n.is(Be)&&e)return new G(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>v.decorations.from(e,e=>e?e.deco:o.none)});function J(e,t){return r.create(e.filter(e=>e.field==t).map(e=>r.range(e.from,e.to)))}function Ve(e){let t=Le.parse(e);return(e,n,r,a)=>{let{text:o,ranges:c}=t.instantiate(e.state,r),{main:l}=e.state.selection,u={changes:{from:r,to:a==l.from?l.to:a,insert:s.of(o)},scrollIntoView:!0,annotations:n?[k.of(n),p.userEvent.of(`input.complete`)]:void 0};if(c.length&&(u.selection=J(c,0)),c.some(e=>e.field>0)){let t=new G(c,0),n=u.effects=[K.of(t)];e.state.field(q,!1)===void 0&&n.push(i.appendConfig.of([q,Ge,qe,W]))}e.dispatch(e.state.update(u))}}function He(e){return({state:t,dispatch:n})=>{let r=t.field(q,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:J(r.ranges,i),effects:K.of(a?null:new G(r.ranges,i)),scrollIntoView:!0})),!0}}var Ue=[{key:`Tab`,run:He(1),shift:He(-1)},{key:`Escape`,run:({state:e,dispatch:t})=>e.field(q,!1)?(t(e.update({effects:K.of(null)})),!0):!1}],We=ee.define({combine(e){return e.length?e[0]:Ue}}),Ge=S.highest(x.compute([We],e=>e.facet(We)));function Ke(e,t){return{...t,apply:Ve(e)}}var qe=v.domEventHandlers({mousedown(e,t){let n=t.state.field(q,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:J(n.ranges,i.field),effects:K.of(n.ranges.some(e=>e.field>i.field)?new G(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Y={brackets:[`(`,`[`,`{`,`'`,`"`],before:`)]}:;>`,stringPrefixes:[]},X=i.define({map(e,n){return n.mapPos(e,-1,t.TrackAfter)??void 0}}),Z=new class extends d{};Z.startSide=1,Z.endSide=-1;var Je=a.define({create(){return c.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(X)&&(e=e.update({add:[Z.range(n.value,n.value+1)]}));return e}});function Ye(){return[et,Je]}var Xe=`()[]{}<>«»»«[]{}`;function Ze(e){for(let t=0;t<16;t+=2)if(Xe.charCodeAt(t)==e)return Xe.charAt(t+1);return _(e<128?e:e+1)}function Qe(e,t){return e.languageDataAt(`closeBrackets`,t)[0]||Y}var $e=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),et=v.inputHandler.of((e,t,r,i)=>{if(($e?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let a=e.state.selection.main;if(i.length>2||i.length==2&&n(w(i,0))==1||t!=a.from||r!=a.to)return!1;let o=nt(e.state,i);return o?(e.dispatch(o),!0):!1}),tt=[{key:`Backspace`,run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Qe(e,e.selection.main.head).brackets||Y.brackets,i=null,a=e.changeByRange(t=>{if(t.empty){let i=rt(e.doc,t.head);for(let a of n)if(a==i&&$(e.doc,t.head)==Ze(w(a,0)))return{changes:{from:t.head-a.length,to:t.head+a.length},range:r.cursor(t.head-a.length)}}return{range:i=t}});return i||t(e.update(a,{scrollIntoView:!0,userEvent:`delete.backward`})),!i}}];function nt(e,t){let n=Qe(e,e.selection.main.head),r=n.brackets||Y.brackets;for(let i of r){let a=Ze(w(i,0));if(t==i)return a==i?ot(e,i,r.indexOf(i+i+i)>-1,n):it(e,i,a,n.before||Y.before);if(t==a&&Q(e,e.selection.main.from))return at(e,i,a)}return null}function Q(e,t){let n=!1;return e.field(Je).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function $(e,t){let r=e.sliceString(t,t+2);return r.slice(0,n(w(r,0)))}function rt(e,t){let r=e.sliceString(t-2,t);return n(w(r,0))==r.length?r:r.slice(1)}function it(e,t,n,i){let a=null,o=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:X.of(o.to+t.length),range:r.range(o.anchor+t.length,o.head+t.length)};let s=$(e.doc,o.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:t+n,from:o.head},effects:X.of(o.head+t.length),range:r.cursor(o.head+t.length)}:{range:a=o}});return a?null:e.update(o,{scrollIntoView:!0,userEvent:`input.type`})}function at(e,t,n){let i=null,a=e.changeByRange(t=>t.empty&&$(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:r.cursor(t.head+n.length)}:i={range:t});return i?null:e.update(a,{scrollIntoView:!0,userEvent:`input.type`})}function ot(e,t,n,i){let a=i.stringPrefixes||Y.stringPrefixes,o=null,s=e.changeByRange(i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:X.of(i.to+t.length),range:r.range(i.anchor+t.length,i.head+t.length)};let s=i.head,c=$(e.doc,s),l;if(c==t){if(st(e,s))return{changes:{insert:t+t,from:s},effects:X.of(s+t.length),range:r.cursor(s+t.length)};if(Q(e,s)){let i=n&&e.sliceDoc(s,s+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:s,to:s+i.length,insert:i},range:r.cursor(s+i.length)}}}else if(n&&e.sliceDoc(s-2*t.length,s)==t+t&&(l=lt(e,s-2*t.length,a))>-1&&st(e,l))return{changes:{insert:t+t+t+t,from:s},effects:X.of(s+t.length),range:r.cursor(s+t.length)};else if(e.charCategorizer(s)(c)!=h.Word&<(e,s,a)>-1&&!ct(e,s,t,a))return{changes:{insert:t+t,from:s},effects:X.of(s+t.length),range:r.cursor(s+t.length)};return{range:o=i}});return o?null:e.update(s,{scrollIntoView:!0,userEvent:`input.type`})}function st(e,t){let n=u(e).resolveInner(t+1);return n.parent&&n.from==t}function ct(e,t,n,r){let i=u(e).resolveInner(t,-1),a=r.reduce((e,t)=>Math.max(e,t.length),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let c=i.to==t&&i.parent;if(!c)break;i=c}return!1}function lt(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=h.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=h.Word)return n}return-1}function ut(e={}){return[Pe,B,M.of(e),Me,ft,W]}var dt=[{key:`Ctrl-Space`,run:U},{mac:"Alt-`",run:U},{mac:`Alt-i`,run:U},{key:`Escape`,run:Oe},{key:`ArrowDown`,run:H(!0)},{key:`ArrowUp`,run:H(!1)},{key:`PageDown`,run:H(!0,`page`)},{key:`PageUp`,run:H(!1,`page`)},{key:`Enter`,run:De}],ft=S.highest(x.computeN([M],e=>e.facet(M).defaultKeymap?[dt]:[]));export{re as a,Ke as c,tt as i,ut as n,dt as o,Ye as r,ie as s,T as t};
|
|
1
|
+
import{$ as e,At as t,Bt as n,Dt as r,Ft as i,It as a,J as o,Lt as s,Mt as c,O as l,P as u,Pt as d,Q as f,Rt as p,St as m,Tt as h,Vt as g,Wt as _,X as v,Y as y,at as b,dt as x,jt as S,kt as ee,pt as C,yt as te,zt as w}from"./dist-zYQJXuRH.js";var T=class{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=u(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(O(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e==`abort`&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function E(e){let t=Object.keys(e).join(``),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,``)),`[${n?`\\w`:``}${t.replace(/[^\w\s]/g,`\\$&`)}]`}function ne(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=E(t)+E(n)+`*$`;return[RegExp(`^`+r),new RegExp(r)]}function re(e){let t=e.map(e=>typeof e==`string`?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:ne(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function ie(e,t){return n=>{for(let t=u(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}var ae=class{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}};function D(e){return e.selection.main.from}function O(e,t){let{source:n}=e,r=t&&n[0]!=`^`,i=n[n.length-1]!=`$`;return!r&&!i?e:RegExp(`${r?`^`:``}(?:${n})${i?`$`:``}`,e.flags??(e.ignoreCase?`i`:``))}var k=m.define();function oe(e,t,n,i){let{main:a}=e.selection,o=n-a.from,s=i-a.from;return{...e.changeByRange(c=>{if(c!=a&&n!=i&&e.sliceDoc(c.from+o,c.from+s)!=e.sliceDoc(n,i))return{range:c};let l=e.toText(t);return{changes:{from:c.from+o,to:i==a.from?c.to:c.from+s,insert:l},range:r.cursor(c.from+o+l.length)}}),scrollIntoView:!0,userEvent:`input.complete`}}var se=new WeakMap;function ce(e){if(!Array.isArray(e))return e;let t=se.get(e);return t||se.set(e,t=re(e)),t}var A=i.define(),j=i.define(),le=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let r=w(e,t),i=n(r);this.chars.push(r);let a=e.slice(t,t+i),o=a.toUpperCase();this.folded.push(w(o==a?a.toLowerCase():o,0)),t+=i}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:r,any:i,precise:a,byWord:o}=this;if(t.length==1){let i=w(e,0),a=n(i),o=a==e.length?0:-100;if(i!=t[0])if(i==r[0])o+=-200;else return null;return this.ret(o,[0,a])}let s=e.indexOf(this.pattern);if(s==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let c=t.length,l=0;if(s<0){for(let a=0,o=Math.min(e.length,200);a<o&&l<c;){let o=w(e,a);(o==t[l]||o==r[l])&&(i[l++]=a),a+=n(o)}if(l<c)return null}let u=0,d=0,f=!1,p=0,m=-1,h=-1,g=/[a-z]/.test(e),v=!0;for(let i=0,l=Math.min(e.length,200),y=0;i<l&&d<c;){let l=w(e,i);s<0&&(u<c&&l==t[u]&&(a[u++]=i),p<c&&(l==t[p]||l==r[p]?(p==0&&(m=i),h=i+1,p++):p=0));let b,x=l<255?l>=48&&l<=57||l>=97&&l<=122?2:+(l>=65&&l<=90):(b=_(l))==b.toLowerCase()?b==b.toUpperCase()?0:2:1;(!i||x==1&&g||y==0&&x!=0)&&(t[d]==l||r[d]==l&&(f=!0)?o[d++]=i:o.length&&(v=!1)),y=x,i+=n(l)}return d==c&&o[0]==0&&v?this.result(-100+(f?-200:0),o,e):p==c&&m==0?this.ret(-200-e.length+(h==e.length?0:-100),[0,h]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):p==c?this.ret(-900-e.length,[m,h]):d==c?this.result(-100+(f?-200:0)+-700+(v?0:-1100),o,e):t.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,r){let i=[],a=0;for(let e of t){let t=e+(this.astral?n(w(r,e)):1);a&&i[a-1]==e?i[a-1]=t:(i[a++]=e,i[a++]=t)}return this.ret(e-r.length,i)}},ue=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}},M=ee.define({combine(e){return g(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>``,optionClass:()=>``,aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:fe,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>de(e(n),t(n)),optionClass:(e,t)=>n=>de(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function de(e,t){return e?t?e+` `+t:e:t}function fe(e,t,n,r,i,a){let o=e.textDirection==y.RTL,s=o,c=!1,l=`top`,u,d,f=t.left-i.left,p=i.right-t.right,m=r.right-r.left,h=r.bottom-r.top;if(s&&f<Math.min(m,p)?s=!1:!s&&p<Math.min(m,f)&&(s=!0),m<=(s?f:p))u=Math.max(i.top,Math.min(n.top,i.bottom-h))-t.top,d=Math.min(400,s?f:p);else{c=!0,d=Math.min(400,(o?t.right:i.right-t.left)-30);let e=i.bottom-t.bottom;e>=h||e>t.top?u=n.bottom-t.top:(l=`bottom`,u=t.bottom-n.top)}let g=(t.bottom-t.top)/a.offsetHeight,_=(t.right-t.left)/a.offsetWidth;return{style:`${l}: ${u/g}px; max-width: ${d/_}px`,class:`cm-completionInfo-`+(c?o?`left-narrow`:`right-narrow`:s?`left`:`right`)}}var N=i.define();function pe(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement(`div`);return t.classList.add(`cm-completionIcon`),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>`cm-completionIcon-`+e)),t.setAttribute(`aria-hidden`,`true`),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement(`span`);i.className=`cm-completionLabel`;let a=e.displayLabel||e.label,o=0;for(let e=0;e<r.length;){let t=r[e++],n=r[e++];t>o&&i.appendChild(document.createTextNode(a.slice(o,t)));let s=i.appendChild(document.createElement(`span`));s.appendChild(document.createTextNode(a.slice(t,n))),s.className=`cm-completionMatchedText`,o=n}return o<a.length&&i.appendChild(document.createTextNode(a.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement(`span`);return t.className=`cm-completionDetail`,t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}function P(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.ceil((e-t)/n);return{from:e-r*n,to:e-(r-1)*n}}var me=class{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass=``;let r=e.state.field(t),{options:i,selected:a}=r.open,o=e.state.facet(M);this.optionContent=pe(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=P(i.length,a,o.maxRenderedOptions),this.dom=document.createElement(`div`),this.dom.className=`cm-tooltip-autocomplete`,this.updateTooltipClass(e.state),this.dom.addEventListener(`mousedown`,n=>{let{options:r}=e.state.field(t).open;for(let t=n.target,i;t&&t!=this.dom;t=t.parentNode)if(t.nodeName==`LI`&&(i=/-(\d+)$/.exec(t.id))&&+i[1]<r.length){this.applyCompletion(e,r[+i[1]]),n.preventDefault();return}if(n.target==this.list){let t=this.list.classList.contains(`cm-completionListIncompleteTop`)&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains(`cm-completionListIncompleteBottom`)&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;t!=null&&(e.dispatch({effects:N.of(t)}),n.preventDefault())}}),this.dom.addEventListener(`focusout`,t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(M).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:j.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener(`scroll`,()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){let t=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),t!=n){let{options:r,selected:i,disabled:a}=t.open;(!n.open||n.open.options!=r)&&(this.range=P(r.length,i,e.state.facet(M).maxRenderedOptions),this.showOptions(r,t.id)),this.updateSel(),a!=n.open?.disabled&&this.dom.classList.toggle(`cm-tooltip-autocomplete-disabled`,!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(` `))e&&this.dom.classList.remove(e);for(let e of t.split(` `))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=P(t.options.length,t.selected,this.view.state.facet(M).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:i}=r;if(!i)return;let a=typeof i==`string`?document.createTextNode(i):i(r);if(!a)return;`then`in a?a.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>C(this.view.state,e,`completion info`)):(this.addInfoPane(a,r),n.setAttribute(`aria-describedby`,this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement(`div`);if(n.className=`cm-tooltip cm-completionInfo`,n.id=`cm-completionInfo-`+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!=`LI`||!n.id?r--:r==e?n.hasAttribute(`aria-selected`)||(n.setAttribute(`aria-selected`,`true`),t=n):n.hasAttribute(`aria-selected`)&&(n.removeAttribute(`aria-selected`),n.removeAttribute(`aria-describedby`));return t&&ge(this.list,t),t}measureInfo(){let e=this.dom.querySelector(`[aria-selected]`);if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(M).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className=`cm-tooltip cm-completionInfo `+(e.class||``)):this.info.style.cssText=`top: -1e6px`)}createListBox(e,t,n){let r=document.createElement(`ul`);r.id=t,r.setAttribute(`role`,`listbox`),r.setAttribute(`aria-expanded`,`true`),r.setAttribute(`aria-label`,this.view.state.phrase(`Completions`)),r.addEventListener(`mousedown`,e=>{e.target==r&&e.preventDefault()});let i=null;for(let a=n.from;a<n.to;a++){let{completion:o,match:s}=e[a],{section:c}=o;if(c){let e=typeof c==`string`?c:c.name;if(e!=i&&(a>n.from||n.from==0))if(i=e,typeof c!=`string`&&c.header)r.appendChild(c.header(c));else{let t=r.appendChild(document.createElement(`completion-section`));t.textContent=e}}let l=r.appendChild(document.createElement(`li`));l.id=t+`-`+a,l.setAttribute(`role`,`option`);let u=this.optionClass(o);u&&(l.className=u);for(let e of this.optionContent){let t=e(o,this.view.state,this.view,s);t&&l.appendChild(t)}}return n.from&&r.classList.add(`cm-completionListIncompleteTop`),n.to<e.length&&r.classList.add(`cm-completionListIncompleteBottom`),r}destroyInfo(){this.info&&=(this.infoDestroy&&this.infoDestroy(),this.info.remove(),null)}destroy(){this.destroyInfo()}};function he(e,t){return n=>new me(n,e,t)}function ge(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function F(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+ +!!e.type}function _e(e,t){let n=[],r=null,i=null,a=e=>{n.push(e);let{section:t}=e.completion;if(t){r||=[];let e=typeof t==`string`?t:t.name;r.some(t=>t.name==e)||r.push(typeof t==`string`?{name:e}:t)}},o=t.facet(M);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(r.result.filter===!1)for(let t of r.result.options)a(new ae(t,r.source,e?e(t):[],1e9-n.length));else{let n=t.sliceDoc(r.from,r.to),s,c=o.filterStrict?new ue(n):new le(n);for(let t of r.result.options)if(s=c.match(t.label)){let n=t.displayLabel?e?e(t,s.matched):[]:s.matched,o=s.score+(t.boost||0);if(a(new ae(t,r.source,n,o)),typeof t.section==`object`&&t.section.rank===`dynamic`){let{name:e}=t.section;i||=Object.create(null),i[e]=Math.max(o,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0,a=(e,t)=>(e.rank===`dynamic`&&t.rank===`dynamic`?i[t.name]-i[e.name]:0)||(typeof e.rank==`number`?e.rank:1e9)-(typeof t.rank==`number`?t.rank:1e9)||(e.name<t.name?-1:1);for(let n of r.sort(a))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e[typeof n==`string`?n:n.name])}}let s=[],c=null,l=o.compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||l(e.completion,t.completion))){let t=e.completion;!c||c.label!=t.label||c.detail!=t.detail||c.type!=null&&t.type!=null&&c.type!=t.type||c.apply!=t.apply||c.boost!=t.boost?s.push(e):F(e.completion)>F(c)&&(s[s.length-1]=e),c=e.completion}return s}var ve=class e{constructor(e,t,n,r,i,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,I(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a,o){if(i&&!o&&t.some(e=>e.isPending))return i.setDisabled();let s=_e(t,n);if(!s.length)return i&&t.some(e=>e.isPending)?i.setDisabled():null;let c=n.facet(M).selectOnOpen?0:-1;if(i&&i.selected!=c&&i.selected!=-1){let e=i.options[i.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){c=t;break}}return new e(s,I(r,c),{pos:t.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:Ee,above:a.aboveCursor},i?i.timestamp:Date.now(),c,!1)}map(t){return new e(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new e(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},ye=class e{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new e(Ce,`cm-ac-`+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(M),i=(r.override||n.languageDataAt(`autocomplete`,D(n)).map(ce)).map(e=>(this.active.find(t=>t.source==e)||new R(e,+!!this.active.some(e=>e.state!=0))).update(t,r));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let a=this.open,o=t.effects.some(e=>e.is(z));a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!be(i,this.active)||o?a=ve.build(i,n,this.id,a,r,o):a&&a.disabled&&!i.some(e=>e.isPending)&&(a=null),!a&&i.every(e=>!e.isPending)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new R(e.source,0):e));for(let e of t.effects)e.is(N)&&(a&&=a.setSelected(e.value,this.id));return i==this.active&&a==this.open?this:new e(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?xe:Se}};function be(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;let i=n==e.length,a=r==t.length;if(i||a)return i==a;if(e[n++].result!=t[r++].result)return!1}}var xe={"aria-autocomplete":`list`},Se={};function I(e,t){let n={"aria-autocomplete":`list`,"aria-haspopup":`listbox`,"aria-controls":e};return t>-1&&(n[`aria-activedescendant`]=e+`-`+t),n}var Ce=[];function L(e,t){if(e.isUserEvent(`input.complete`)){let n=e.annotation(k);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent(`input.type`);return n&&t.activateOnTyping?5:n?1:e.isUserEvent(`delete.backward`)?2:e.selection?8:e.docChanged?16:0}var R=class e{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(t,n){let r=L(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new e(i.source,0)),r&4&&i.state==0&&(i=new e(this.source,1)),i=i.updateFor(t,r);for(let n of t.effects)if(n.is(A))i=new e(i.source,1,n.value);else if(n.is(j))i=new e(i.source,0);else if(n.is(z))for(let e of n.value)e.source==i.source&&(i=e);return i}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(D(e.state))}},we=class e extends R{constructor(e,t,n,r,i,a){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){if(!(n&3))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let i=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),o=D(t.state);if(o>a||!r||n&2&&(D(t.startState)==this.from||o<this.limit))return new R(this.source,n&4?1:0);let s=t.changes.mapPos(this.limit);return Te(r.validFor,t.state,i,a)?new e(this.source,this.explicit,s,r,i,a):r.update&&(r=r.update(r,i,a,new T(t.state,o,!1)))?new e(this.source,this.explicit,s,r,r.from,r.to??D(t.state)):new R(this.source,1,this.explicit)}map(t){if(t.empty)return this;let n=this.result.map?this.result.map(this.result,t):this.result;return n?new e(this.source,this.explicit,t.mapPos(this.limit),n,t.mapPos(this.from),t.mapPos(this.to,1)):new R(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};function Te(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e==`function`?e(i,n,r,t):O(e,!0).test(i)}var z=i.define({map(e,t){return e.map(e=>e.map(t))}}),B=a.define({create(){return ye.start()},update(e,t){return e.update(t)},provide:e=>[te.from(e,e=>e.tooltip),v.contentAttributes.from(e,e=>e.attrs)]});function V(e,t){let n=t.completion.apply||t.completion.label,r=e.state.field(B).active.find(e=>e.source==t.source);return r instanceof we?(typeof n==`string`?e.dispatch({...oe(e.state,n,r.from,r.to),annotations:k.of(t.completion)}):n(e,t.completion,r.from,r.to),!0):!1}var Ee=he(B,V);function H(e,t=`option`){return n=>{let r=n.state.field(B,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(M).interactionDelay)return!1;let i=1,a;t==`page`&&(a=b(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector(`li`).offsetHeight)-1));let{length:o}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:o-1;return s<0?s=t==`page`?0:o-1:s>=o&&(s=t==`page`?o-1:0),n.dispatch({effects:N.of(s)}),!0}}var De=e=>{let t=e.state.field(B,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(M).interactionDelay?!1:V(e,t.open.options[t.open.selected])},U=e=>e.state.field(B,!1)?(e.dispatch({effects:A.of(!0)}),!0):!1,Oe=e=>{let t=e.state.field(B,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(e.dispatch({effects:j.of(null)}),!0)},ke=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},Ae=50,je=1e3,Me=f.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(B).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(B),n=e.state.facet(M);if(!e.selectionSet&&!e.docChanged&&e.startState.field(B)==t)return;let r=e.transactions.some(e=>{let t=L(e,n);return t&8||(e.selection||e.docChanged)&&!(t&3)});for(let t=0;t<this.running.length;t++){let n=this.running[t];if(r||n.context.abortOnDocChange&&e.docChanged||n.updates.length+e.transactions.length>Ae&&Date.now()-n.time>je){for(let e of n.context.abortListeners)try{e()}catch(e){C(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(A)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let t of e.transactions)t.isUserEvent(`input.type`)?this.composing=2:this.composing==2&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(B);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(M).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=new T(t,D(t),e.explicit,this.view),r=new ke(e,n);this.running.push(r),Promise.resolve(e.source(n)).then(e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:j.of(null)}),C(this.view.state,e)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(M).updateSyncTime))}accept(){this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(M),n=this.view.state.field(B);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(i.done===void 0)continue;if(this.running.splice(r--,1),i.done){let n=D(i.updates.length?i.updates[0].startState:this.view.state),r=Math.min(n,i.done.from+ +!i.active.explicit),a=new we(i.active.source,i.active.explicit,r,i.done,i.done.from,i.done.to??n);for(let e of i.updates)a=a.update(e,t);if(a.hasResult()){e.push(a);continue}}let a=n.active.find(e=>e.source==i.active.source);if(a&&a.isPending)if(i.done==null){let n=new R(i.active.source,0);for(let e of i.updates)n=n.update(e,t);n.isPending||e.push(n)}else this.startQuery(a)}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:z.of(e)})}},{eventHandlers:{blur(e){let t=this.view.state.field(B,!1);if(t&&t.tooltip&&this.view.state.facet(M).closeOnBlur){let n=t.open&&b(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:j.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:A.of(!1)}),20),this.composing=0}}}),Ne=typeof navigator==`object`&&/Win/.test(navigator.platform),Pe=S.highest(v.domEventHandlers({keydown(e,t){let n=t.state.field(B,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(Ne&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&V(t,r),!1}})),W=v.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:`monospace`,whiteSpace:`nowrap`,overflow:`hidden auto`,maxWidth_fallback:`700px`,maxWidth:`min(700px, 95vw)`,minWidth:`250px`,maxHeight:`10em`,height:`100%`,listStyle:`none`,margin:0,padding:0,"& > li, & > completion-section":{padding:`1px 3px`,lineHeight:1.2},"& > li":{overflowX:`hidden`,textOverflow:`ellipsis`,cursor:`pointer`},"& > completion-section":{display:`list-item`,borderBottom:`1px solid silver`,paddingLeft:`0.5em`,opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#17c`,color:`white`},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#777`},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#347`,color:`white`},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#444`},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:`"···"`,opacity:.5,display:`block`,textAlign:`center`,cursor:`pointer`},".cm-tooltip.cm-completionInfo":{position:`absolute`,padding:`3px 9px`,width:`max-content`,maxWidth:`400px`,boxSizing:`border-box`,whiteSpace:`pre-line`},".cm-completionInfo.cm-completionInfo-left":{right:`100%`},".cm-completionInfo.cm-completionInfo-right":{left:`100%`},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`30px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`30px`},"&light .cm-snippetField":{backgroundColor:`#00000022`},"&dark .cm-snippetField":{backgroundColor:`#ffffff22`},".cm-snippetFieldPosition":{verticalAlign:`text-top`,width:0,height:`1.15em`,display:`inline-block`,margin:`0 -0.7px -.7em`,borderLeft:`1.4px dotted #888`},".cm-completionMatchedText":{textDecoration:`underline`},".cm-completionDetail":{marginLeft:`0.5em`,fontStyle:`italic`},".cm-completionIcon":{fontSize:`90%`,width:`.8em`,display:`inline-block`,textAlign:`center`,paddingRight:`.6em`,opacity:`0.6`,boxSizing:`content-box`},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:`'ƒ'`}},".cm-completionIcon-class":{"&:after":{content:`'○'`}},".cm-completionIcon-interface":{"&:after":{content:`'◌'`}},".cm-completionIcon-variable":{"&:after":{content:`'𝑥'`}},".cm-completionIcon-constant":{"&:after":{content:`'𝐶'`}},".cm-completionIcon-type":{"&:after":{content:`'𝑡'`}},".cm-completionIcon-enum":{"&:after":{content:`'∪'`}},".cm-completionIcon-property":{"&:after":{content:`'□'`}},".cm-completionIcon-keyword":{"&:after":{content:`'🔑︎'`}},".cm-completionIcon-namespace":{"&:after":{content:`'▢'`}},".cm-completionIcon-text":{"&:after":{content:`'abc'`,fontSize:`50%`,verticalAlign:`middle`}}}),Fe=class{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}},Ie=class e{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(n){let r=n.mapPos(this.from,-1,t.TrackDel),i=n.mapPos(this.to,1,t.TrackDel);return r==null||i==null?null:new e(this.field,r,i)}},Le=class e{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=a,o=/^\t*/.exec(i)[0].length;for(let t=0;t<o;t++)n+=e.facet(l);r.push(t+n.length-o),i=n+i.slice(o)}n.push(i),t+=i.length+1}return{text:n,ranges:this.fieldPositions.map(e=>new Ie(e.field,r[e.line]+e.from,r[e.line]+e.to))}}static parse(t){let n=[],r=[],i=[],a;for(let e of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(e);){let t=a[1]?+a[1]:null,o=a[2]||a[3]||``,s=-1;t===0&&(t=1e9);let c=o.replace(/\\[{}]/g,e=>e[1]);for(let e=0;e<n.length;e++)(t==null?c&&n[e].name==c:n[e].seq==t)&&(s=e);if(s<0){let e=0;for(;e<n.length&&(t==null||n[e].seq!=null&&n[e].seq<t);)e++;n.splice(e,0,{seq:t,name:c}),s=e;for(let e of i)e.field>=s&&e.field++}for(let e of i)if(e.line==r.length&&e.from>a.index){let t=a[2]?3+(a[1]||``).length:2;e.from-=t,e.to-=t}i.push(new Fe(s,r.length,a.index,a.index+c.length)),e=e.slice(0,a.index)+o+e.slice(a.index+a[0].length)}e=e.replace(/\\([{}])/g,(e,t,n)=>{for(let e of i)e.line==r.length&&e.from>n&&(e.from--,e.to--);return t}),r.push(e)}return new e(r,i)}},Re=o.widget({widget:new class extends e{toDOM(){let e=document.createElement(`span`);return e.className=`cm-snippetFieldPosition`,e}ignoreEvent(){return!1}}}),ze=o.mark({class:`cm-snippetField`}),G=class e{constructor(e,t){this.ranges=e,this.active=t,this.deco=o.set(e.map(e=>(e.from==e.to?Re:ze).range(e.from,e.to)),!0)}map(t){let n=[];for(let e of this.ranges){let r=e.map(t);if(!r)return null;n.push(r)}return new e(n,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}},K=i.define({map(e,t){return e&&e.map(t)}}),Be=i.define(),q=a.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(K))return n.value;if(n.is(Be)&&e)return new G(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>v.decorations.from(e,e=>e?e.deco:o.none)});function J(e,t){return r.create(e.filter(e=>e.field==t).map(e=>r.range(e.from,e.to)))}function Ve(e){let t=Le.parse(e);return(e,n,r,a)=>{let{text:o,ranges:c}=t.instantiate(e.state,r),{main:l}=e.state.selection,u={changes:{from:r,to:a==l.from?l.to:a,insert:s.of(o)},scrollIntoView:!0,annotations:n?[k.of(n),p.userEvent.of(`input.complete`)]:void 0};if(c.length&&(u.selection=J(c,0)),c.some(e=>e.field>0)){let t=new G(c,0),n=u.effects=[K.of(t)];e.state.field(q,!1)===void 0&&n.push(i.appendConfig.of([q,Ge,qe,W]))}e.dispatch(e.state.update(u))}}function He(e){return({state:t,dispatch:n})=>{let r=t.field(q,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:J(r.ranges,i),effects:K.of(a?null:new G(r.ranges,i)),scrollIntoView:!0})),!0}}var Ue=[{key:`Tab`,run:He(1),shift:He(-1)},{key:`Escape`,run:({state:e,dispatch:t})=>e.field(q,!1)?(t(e.update({effects:K.of(null)})),!0):!1}],We=ee.define({combine(e){return e.length?e[0]:Ue}}),Ge=S.highest(x.compute([We],e=>e.facet(We)));function Ke(e,t){return{...t,apply:Ve(e)}}var qe=v.domEventHandlers({mousedown(e,t){let n=t.state.field(q,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:J(n.ranges,i.field),effects:K.of(n.ranges.some(e=>e.field>i.field)?new G(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Y={brackets:[`(`,`[`,`{`,`'`,`"`],before:`)]}:;>`,stringPrefixes:[]},X=i.define({map(e,n){return n.mapPos(e,-1,t.TrackAfter)??void 0}}),Z=new class extends d{};Z.startSide=1,Z.endSide=-1;var Je=a.define({create(){return c.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(X)&&(e=e.update({add:[Z.range(n.value,n.value+1)]}));return e}});function Ye(){return[et,Je]}var Xe=`()[]{}<>«»»«[]{}`;function Ze(e){for(let t=0;t<16;t+=2)if(Xe.charCodeAt(t)==e)return Xe.charAt(t+1);return _(e<128?e:e+1)}function Qe(e,t){return e.languageDataAt(`closeBrackets`,t)[0]||Y}var $e=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),et=v.inputHandler.of((e,t,r,i)=>{if(($e?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let a=e.state.selection.main;if(i.length>2||i.length==2&&n(w(i,0))==1||t!=a.from||r!=a.to)return!1;let o=nt(e.state,i);return o?(e.dispatch(o),!0):!1}),tt=[{key:`Backspace`,run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Qe(e,e.selection.main.head).brackets||Y.brackets,i=null,a=e.changeByRange(t=>{if(t.empty){let i=rt(e.doc,t.head);for(let a of n)if(a==i&&$(e.doc,t.head)==Ze(w(a,0)))return{changes:{from:t.head-a.length,to:t.head+a.length},range:r.cursor(t.head-a.length)}}return{range:i=t}});return i||t(e.update(a,{scrollIntoView:!0,userEvent:`delete.backward`})),!i}}];function nt(e,t){let n=Qe(e,e.selection.main.head),r=n.brackets||Y.brackets;for(let i of r){let a=Ze(w(i,0));if(t==i)return a==i?ot(e,i,r.indexOf(i+i+i)>-1,n):it(e,i,a,n.before||Y.before);if(t==a&&Q(e,e.selection.main.from))return at(e,i,a)}return null}function Q(e,t){let n=!1;return e.field(Je).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function $(e,t){let r=e.sliceString(t,t+2);return r.slice(0,n(w(r,0)))}function rt(e,t){let r=e.sliceString(t-2,t);return n(w(r,0))==r.length?r:r.slice(1)}function it(e,t,n,i){let a=null,o=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:X.of(o.to+t.length),range:r.range(o.anchor+t.length,o.head+t.length)};let s=$(e.doc,o.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:t+n,from:o.head},effects:X.of(o.head+t.length),range:r.cursor(o.head+t.length)}:{range:a=o}});return a?null:e.update(o,{scrollIntoView:!0,userEvent:`input.type`})}function at(e,t,n){let i=null,a=e.changeByRange(t=>t.empty&&$(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:r.cursor(t.head+n.length)}:i={range:t});return i?null:e.update(a,{scrollIntoView:!0,userEvent:`input.type`})}function ot(e,t,n,i){let a=i.stringPrefixes||Y.stringPrefixes,o=null,s=e.changeByRange(i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:X.of(i.to+t.length),range:r.range(i.anchor+t.length,i.head+t.length)};let s=i.head,c=$(e.doc,s),l;if(c==t){if(st(e,s))return{changes:{insert:t+t,from:s},effects:X.of(s+t.length),range:r.cursor(s+t.length)};if(Q(e,s)){let i=n&&e.sliceDoc(s,s+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:s,to:s+i.length,insert:i},range:r.cursor(s+i.length)}}}else if(n&&e.sliceDoc(s-2*t.length,s)==t+t&&(l=lt(e,s-2*t.length,a))>-1&&st(e,l))return{changes:{insert:t+t+t+t,from:s},effects:X.of(s+t.length),range:r.cursor(s+t.length)};else if(e.charCategorizer(s)(c)!=h.Word&<(e,s,a)>-1&&!ct(e,s,t,a))return{changes:{insert:t+t,from:s},effects:X.of(s+t.length),range:r.cursor(s+t.length)};return{range:o=i}});return o?null:e.update(s,{scrollIntoView:!0,userEvent:`input.type`})}function st(e,t){let n=u(e).resolveInner(t+1);return n.parent&&n.from==t}function ct(e,t,n,r){let i=u(e).resolveInner(t,-1),a=r.reduce((e,t)=>Math.max(e,t.length),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let c=i.to==t&&i.parent;if(!c)break;i=c}return!1}function lt(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=h.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=h.Word)return n}return-1}function ut(e={}){return[Pe,B,M.of(e),Me,ft,W]}var dt=[{key:`Ctrl-Space`,run:U},{mac:"Alt-`",run:U},{mac:`Alt-i`,run:U},{key:`Escape`,run:Oe},{key:`ArrowDown`,run:H(!0)},{key:`ArrowUp`,run:H(!1)},{key:`PageDown`,run:H(!0,`page`)},{key:`PageUp`,run:H(!1,`page`)},{key:`Enter`,run:De}],ft=S.highest(x.computeN([M],e=>e.facet(M).defaultKeymap?[dt]:[]));export{re as a,Ke as c,tt as i,ut as n,dt as o,Ye as r,ie as s,T as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e,N as t,Ot as n,_ as r,ct as i,dt as a,f as o,ft as s,ht as c,l,lt as u,nt as d,rt as f,st as p,tt as m,y as h}from"./dist-
|
|
1
|
+
import{E as e,N as t,Ot as n,_ as r,ct as i,dt as a,f as o,ft as s,ht as c,l,lt as u,nt as d,rt as f,st as p,tt as m,y as h}from"./dist-zYQJXuRH.js";import{i as g,n as _,r as v}from"./cm-theme-CUwlOcHl.js";import{i as y,n as b,o as x,r as S}from"./dist-DgD72kci.js";import{i as C,n as w,o as T}from"./dist-BX-8uxZE.js";var E=[s(),i(),u(),v(),r(),d(),f(),n.allowMultipleSelections.of(!0),e(),t(o,{fallback:!0}),l(),S(),b(),c(),m(),p(),C(),a.of([...y,..._,...T,...g,...h,...x,...w])];u(),v(),d(),t(o,{fallback:!0}),a.of([..._,...g]);export{E as t};
|