visual-living-plan 0.1.0 → 2.32.1
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/DESIGN.md +213 -0
- package/README.md +155 -28
- package/dist/AuthScreen.d.ts +9 -0
- package/dist/AuthScreen.js +7 -0
- package/dist/DesktopModeSwitch.d.ts +13 -0
- package/dist/DesktopModeSwitch.js +14 -0
- package/dist/OAuthMark.d.ts +6 -0
- package/dist/OAuthMark.js +8 -0
- package/dist/accountInitials.d.ts +5 -0
- package/dist/accountInitials.js +20 -0
- package/dist/accountLinking.d.ts +26 -0
- package/dist/accountLinking.js +46 -0
- package/dist/agentEvents.d.ts +31 -0
- package/dist/agentEvents.js +260 -0
- package/dist/agentPresence.d.ts +42 -0
- package/dist/agentPresence.js +69 -0
- package/dist/agentSkills.d.ts +35 -0
- package/dist/agentSkills.js +89 -0
- package/dist/agentStream.d.ts +35 -0
- package/dist/agentStream.js +133 -0
- package/dist/appearanceDom.d.ts +13 -0
- package/dist/appearanceDom.js +24 -0
- package/dist/appearanceSettings.d.ts +29 -0
- package/dist/appearanceSettings.js +293 -0
- package/dist/assets.d.ts +14 -0
- package/dist/assets.js +72 -0
- package/dist/authSearch.d.ts +11 -0
- package/dist/authSearch.js +30 -0
- package/dist/changelog.d.ts +11 -0
- package/dist/changelog.js +63 -0
- package/dist/changelogParse.d.ts +53 -0
- package/dist/changelogParse.js +226 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +1684 -0
- package/dist/cliLauncher.d.ts +40 -0
- package/dist/cliLauncher.js +170 -0
- package/dist/cliToken.d.ts +11 -0
- package/dist/cliToken.js +15 -0
- package/dist/client/.vite/manifest.json +1780 -0
- package/dist/client/assets/BarChart-DtV3dIq4.js +1 -0
- package/dist/client/assets/BlockEditor-BklSUBjk.js +168 -0
- package/dist/client/assets/BlockEditor-K5h6xc4_.css +1 -0
- package/dist/client/assets/CodeBlock-BbI08MlQ.js +1 -0
- package/dist/client/assets/CodeBlock-BxRMnldw.js +175 -0
- package/dist/client/assets/LineChart-CQYMEbD6.js +1 -0
- package/dist/client/assets/Mermaid-Ciu9eIoG.js +1 -0
- package/dist/client/assets/Mermaid-jPWLXX7e.js +1 -0
- package/dist/client/assets/Popover-DbE4vUPG.js +1 -0
- package/dist/client/assets/ReactFlowExecutionCanvas-BhVs-adc.js +7 -0
- package/dist/client/assets/ReactFlowExecutionCanvas-DLioOiRN.css +1 -0
- package/dist/client/assets/StatusIcon-C_-Lm9b4.js +1 -0
- package/dist/client/assets/Workflow-C92OpLyf.js +1 -0
- package/dist/client/assets/agentPresence-D8asHrTp.js +1 -0
- package/dist/client/assets/andromeeda-DW8vo71h.js +1 -0
- package/dist/client/assets/andromeeda-vGVdxbeo.js +1 -0
- package/dist/client/assets/arrow-up-CEVVOXD5.js +1 -0
- package/dist/client/assets/arrow-up-down-BSjnQK2I.js +1 -0
- package/dist/client/assets/aurora-x-CDeNXAV0.js +1 -0
- package/dist/client/assets/aurora-x-rMvKqtYI.js +1 -0
- package/dist/client/assets/ayu-dark-CwczpL8O.js +1 -0
- package/dist/client/assets/ayu-dark-DluEY0Gj.js +1 -0
- package/dist/client/assets/ayu-light-C3h-C4tm.js +1 -0
- package/dist/client/assets/ayu-light-DSh22xiD.js +1 -0
- package/dist/client/assets/ayu-mirage-Bqwy1Gya.js +1 -0
- package/dist/client/assets/ayu-mirage-JE6hAyHG.js +1 -0
- package/dist/client/assets/browserStore-BDGKYoJj.js +435 -0
- package/dist/client/assets/button-BI07wqbi.css +1 -0
- package/dist/client/assets/button-DJWAGApe.js +1 -0
- package/dist/client/assets/catppuccin-frappe-C9Q5zVZY.js +1 -0
- package/dist/client/assets/catppuccin-frappe-pyXErRRU.js +1 -0
- package/dist/client/assets/catppuccin-latte-BILSUICr.js +1 -0
- package/dist/client/assets/catppuccin-latte-CtsyrtPq.js +1 -0
- package/dist/client/assets/catppuccin-macchiato-Ck60ZZQE.js +1 -0
- package/dist/client/assets/catppuccin-macchiato-R8nAf1vR.js +1 -0
- package/dist/client/assets/catppuccin-mocha-C_2G67cS.js +1 -0
- package/dist/client/assets/catppuccin-mocha-DjuaAJKi.js +1 -0
- package/dist/client/assets/ccount-nzzEXTrh.js +1 -0
- package/dist/client/assets/chartRows-CNjjLsAH.js +2 -0
- package/dist/client/assets/circle-x-BLGxA3gi.js +1 -0
- package/dist/client/assets/client-BsE_buVT.js +9 -0
- package/dist/client/assets/constants-CmGPilXJ.js +1 -0
- package/dist/client/assets/dark-plus-CHgc6GYj.js +1 -0
- package/dist/client/assets/dark-plus-Cs2F2srj.js +1 -0
- package/dist/client/assets/default-5FplaXL4.js +7 -0
- package/dist/client/assets/diffsTheme-PJJTu2Rq.js +1 -0
- package/dist/client/assets/dracula-BHWKrbxM.js +1 -0
- package/dist/client/assets/dracula-Cf1PG3MT.js +1 -0
- package/dist/client/assets/dracula-soft-5eyTD99u.js +1 -0
- package/dist/client/assets/dracula-soft-DXuNm1Kq.js +1 -0
- package/dist/client/assets/editSource-DQfw4nRm.js +1 -0
- package/dist/client/assets/editSource-U5AoD-Wo.js +14 -0
- package/dist/client/assets/engine-CLTPZlti.js +1 -0
- package/dist/client/assets/engine-DUyaiAMV.js +2 -0
- package/dist/client/assets/everforest-dark-CjdfwUBe.js +1 -0
- package/dist/client/assets/everforest-dark-sB-x3p7T.js +1 -0
- package/dist/client/assets/everforest-light-CfVwwCBP.js +1 -0
- package/dist/client/assets/everforest-light-Df2xbC6M.js +1 -0
- package/dist/client/assets/forgetDocuments-CIUBitCs.js +1 -0
- package/dist/client/assets/formatCSSVariablePrefix-KRh9vnZf.js +1 -0
- package/dist/client/assets/github-dark-BL6HSl_n.js +1 -0
- package/dist/client/assets/github-dark-C-LZuMrd.js +1 -0
- package/dist/client/assets/github-dark-default-DXG-b-1a.js +1 -0
- package/dist/client/assets/github-dark-default-zacuWV-M.js +1 -0
- package/dist/client/assets/github-dark-dimmed-Bx1FflLF.js +1 -0
- package/dist/client/assets/github-dark-dimmed-Mc0P9idi.js +1 -0
- package/dist/client/assets/github-dark-high-contrast-B_tTalzw.js +1 -0
- package/dist/client/assets/github-dark-high-contrast-IMKX2AVF.js +1 -0
- package/dist/client/assets/github-light-EUqPIrTm.js +1 -0
- package/dist/client/assets/github-light-default-BXViO-2h.js +1 -0
- package/dist/client/assets/github-light-default-DVlCqP3X.js +1 -0
- package/dist/client/assets/github-light-high-contrast-B68TUdTA.js +1 -0
- package/dist/client/assets/github-light-high-contrast-Dj6zTyWR.js +1 -0
- package/dist/client/assets/github-light-mYhEBkPo.js +1 -0
- package/dist/client/assets/gruvbox-dark-hard-C820rvS2.js +1 -0
- package/dist/client/assets/gruvbox-dark-hard-QTgQQZn-.js +1 -0
- package/dist/client/assets/gruvbox-dark-medium-9d5YdCTx.js +1 -0
- package/dist/client/assets/gruvbox-dark-medium-BPjhmG05.js +1 -0
- package/dist/client/assets/gruvbox-dark-soft-MrdJrrXF.js +1 -0
- package/dist/client/assets/gruvbox-dark-soft-XCkqeBhR.js +1 -0
- package/dist/client/assets/gruvbox-light-hard--5-nXqNp.js +1 -0
- package/dist/client/assets/gruvbox-light-hard-BC_s9l72.js +1 -0
- package/dist/client/assets/gruvbox-light-medium-BAWPOn9u.js +1 -0
- package/dist/client/assets/gruvbox-light-medium-COA1PZW2.js +1 -0
- package/dist/client/assets/gruvbox-light-soft-BSMLrYjP.js +1 -0
- package/dist/client/assets/gruvbox-light-soft-CIJpzjAO.js +1 -0
- package/dist/client/assets/hastToHtml-Dj8rXue9.js +11 -0
- package/dist/client/assets/highlight-cB-PkhyE.js +1 -0
- package/dist/client/assets/highlights-LLBF1DTm.js +1 -0
- package/dist/client/assets/horizon-Ba2cwkSy.js +1 -0
- package/dist/client/assets/horizon-CE9ld1lL.js +1 -0
- package/dist/client/assets/horizon-bright-DSNQnXHK.js +1 -0
- package/dist/client/assets/horizon-bright-DaEDgBmR.js +1 -0
- package/dist/client/assets/houston-B6x0XVpU.js +1 -0
- package/dist/client/assets/houston-CsvMBhTu.js +1 -0
- package/dist/client/assets/jsx-runtime-DKj5X9O4.js +1 -0
- package/dist/client/assets/kanagawa-dragon-Bozd7klA.js +1 -0
- package/dist/client/assets/kanagawa-dragon-DhTFvBMT.js +1 -0
- package/dist/client/assets/kanagawa-lotus--m8sdOxn.js +1 -0
- package/dist/client/assets/kanagawa-lotus-BmuOG9ZW.js +1 -0
- package/dist/client/assets/kanagawa-wave-BML5mF2J.js +1 -0
- package/dist/client/assets/kanagawa-wave-D-tTv4k2.js +1 -0
- package/dist/client/assets/laserwave-C_8bwKvT.js +1 -0
- package/dist/client/assets/laserwave-HSLx0L75.js +1 -0
- package/dist/client/assets/lib-COgu-QLX.js +33 -0
- package/dist/client/assets/lib-CdRiGVUZ.js +1 -0
- package/dist/client/assets/light-plus-CUjWrTSi.js +1 -0
- package/dist/client/assets/light-plus-DVQuIRkW.js +1 -0
- package/dist/client/assets/loader-CjL04K29.js +1 -0
- package/dist/client/assets/main-BGMX_GnZ.js +2 -0
- package/dist/client/assets/main-BTko4EvJ.css +1 -0
- package/dist/client/assets/material-theme-Bm3Qr25_.js +1 -0
- package/dist/client/assets/material-theme-CnthUGfg.js +1 -0
- package/dist/client/assets/material-theme-darker-2IIEA8gg.js +1 -0
- package/dist/client/assets/material-theme-darker-DUi03Qre.js +1 -0
- package/dist/client/assets/material-theme-lighter-D2-qr5Vw.js +1 -0
- package/dist/client/assets/material-theme-lighter-uhdI0v04.js +1 -0
- package/dist/client/assets/material-theme-ocean-CHQ94UKr.js +1 -0
- package/dist/client/assets/material-theme-ocean-CWR-LogA.js +1 -0
- package/dist/client/assets/material-theme-palenight-B5W6OYN7.js +1 -0
- package/dist/client/assets/material-theme-palenight-Cnv8m1ra.js +1 -0
- package/dist/client/assets/mdxEntries-BNTMP8ct.css +1 -0
- package/dist/client/assets/mdxEntries-L-V7bB6i.js +1 -0
- package/dist/client/assets/mermaid-Bjhs-krb.js +1 -0
- package/dist/client/assets/mermaid-Di4j-zgD.js +146 -0
- package/dist/client/assets/min-dark-BSWPekZh.js +1 -0
- package/dist/client/assets/min-dark-EXoM-6Xo.js +1 -0
- package/dist/client/assets/min-light-DDpmG2fV.js +1 -0
- package/dist/client/assets/min-light-DVOTDhnA.js +1 -0
- package/dist/client/assets/monokai-BscAjiQZ.js +1 -0
- package/dist/client/assets/monokai-DkggTbGy.js +1 -0
- package/dist/client/assets/mountChrome-BVWpsDCy.js +122 -0
- package/dist/client/assets/mountChrome-DhTDH3YM.css +1 -0
- package/dist/client/assets/night-owl-Bdcs0PMi.js +1 -0
- package/dist/client/assets/night-owl-DhmEMT88.js +1 -0
- package/dist/client/assets/night-owl-light-RoU30LE0.js +1 -0
- package/dist/client/assets/night-owl-light-eJ-hLW7d.js +1 -0
- package/dist/client/assets/noShiki-DB8hQ_W3.js +1 -0
- package/dist/client/assets/noShiki-GTG3tT8x.js +1 -0
- package/dist/client/assets/nord-Cb4Vim4T.js +1 -0
- package/dist/client/assets/nord-u7hMircQ.js +1 -0
- package/dist/client/assets/offlineSync-Cv3FVIlJ.js +1 -0
- package/dist/client/assets/one-dark-pro-08PdtLzi.js +1 -0
- package/dist/client/assets/one-dark-pro-C6YyR8OD.js +1 -0
- package/dist/client/assets/one-light-D7Lr4KcI.js +1 -0
- package/dist/client/assets/one-light-DgvUEtgI.js +1 -0
- package/dist/client/assets/opfs-worker-DuTOCgWR.js +5919 -0
- package/dist/client/assets/pierre-dark-B2jZWvHG.js +1 -0
- package/dist/client/assets/pierre-dark-CpLgRqie.js +1 -0
- package/dist/client/assets/pierre-dark-protanopia-deuteranopia-B35FxJx-.js +1 -0
- package/dist/client/assets/pierre-dark-protanopia-deuteranopia-CebgQdRf.js +1 -0
- package/dist/client/assets/pierre-dark-soft-DdE7dyP3.js +1 -0
- package/dist/client/assets/pierre-dark-soft-kZQmAZld.js +1 -0
- package/dist/client/assets/pierre-dark-tritanopia-CXimiT7X.js +1 -0
- package/dist/client/assets/pierre-dark-tritanopia-CpjhbsIL.js +1 -0
- package/dist/client/assets/pierre-dark-vibrant-CpQYzh95.js +1 -0
- package/dist/client/assets/pierre-dark-vibrant-DzBsxHvQ.js +1 -0
- package/dist/client/assets/pierre-light-CoaEpmwp.js +1 -0
- package/dist/client/assets/pierre-light-Vf__O3ev.js +1 -0
- package/dist/client/assets/pierre-light-protanopia-deuteranopia-0fSaH845.js +1 -0
- package/dist/client/assets/pierre-light-protanopia-deuteranopia-BUtWcCQC.js +1 -0
- package/dist/client/assets/pierre-light-soft-C3QCXKvN.js +1 -0
- package/dist/client/assets/pierre-light-soft-lWLdNTOI.js +1 -0
- package/dist/client/assets/pierre-light-tritanopia-CEbqgOJL.js +1 -0
- package/dist/client/assets/pierre-light-tritanopia-CKLy6XvA.js +1 -0
- package/dist/client/assets/pierre-light-vibrant-D80Fkn33.js +1 -0
- package/dist/client/assets/pierre-light-vibrant-DDuTEIhH.js +1 -0
- package/dist/client/assets/planEditButton-CbWGczbi.js +45 -0
- package/dist/client/assets/planEvents-cuzv9ELr.js +1 -0
- package/dist/client/assets/planMdx-Db1ze_nN.js +110 -0
- package/dist/client/assets/plastic-B8mE6BxX.js +1 -0
- package/dist/client/assets/plastic-DQwYfKfQ.js +1 -0
- package/dist/client/assets/poimandres-DRFjx7u4.js +1 -0
- package/dist/client/assets/poimandres-DUFjrgxT.js +1 -0
- package/dist/client/assets/preload-helper-Dx0-lKy1.js +1 -0
- package/dist/client/assets/queryClient-Bs5tSUJh.js +1 -0
- package/dist/client/assets/react-dom-DpzJPrWF.js +1 -0
- package/dist/client/assets/rebaseDraft-B2--cj1c.js +19 -0
- package/dist/client/assets/red-BJvdDEUx.js +1 -0
- package/dist/client/assets/red-CYlAq2b0.js +1 -0
- package/dist/client/assets/register-hZEIk3A9.css +1 -0
- package/dist/client/assets/register-htm5s8o9.js +1 -0
- package/dist/client/assets/rolldown-runtime-Dd_uD5pT.js +1 -0
- package/dist/client/assets/rose-pine-BSqRqUae.js +1 -0
- package/dist/client/assets/rose-pine-aMsaMD1D.js +1 -0
- package/dist/client/assets/rose-pine-dawn-8PwUyIlP.js +1 -0
- package/dist/client/assets/rose-pine-dawn-U6TBE82u.js +1 -0
- package/dist/client/assets/rose-pine-moon-CAU7u1h4.js +1 -0
- package/dist/client/assets/rose-pine-moon-DO-qXg-I.js +1 -0
- package/dist/client/assets/routeEdges-B2z8v0di.js +24 -0
- package/dist/client/assets/selector-CDsXW7SO.css +1 -0
- package/dist/client/assets/selector-tlBGWtQl.js +1 -0
- package/dist/client/assets/settingsChrome-NGUDtEIp.js +1 -0
- package/dist/client/assets/shiki-BOXJeUHI.js +2 -0
- package/dist/client/assets/slack-dark-CMu0smFa.js +1 -0
- package/dist/client/assets/slack-dark-DnToyrRv.js +1 -0
- package/dist/client/assets/slack-ochin-B2OO5cIa.js +1 -0
- package/dist/client/assets/slack-ochin-BBne7cjw.js +1 -0
- package/dist/client/assets/snazzy-light-4G7pJPwS.js +1 -0
- package/dist/client/assets/snazzy-light-CV8HUEmk.js +1 -0
- package/dist/client/assets/solarized-dark-CmYmhSgI.js +1 -0
- package/dist/client/assets/solarized-dark-b97czJOk.js +1 -0
- package/dist/client/assets/solarized-light-CjLLwxRp.js +1 -0
- package/dist/client/assets/solarized-light-DFPxpIYQ.js +1 -0
- package/dist/client/assets/stampPlanParts-DVXYCykw.js +15 -0
- package/dist/client/assets/stampPlanParts-ctZzxWdw.css +1 -0
- package/dist/client/assets/stream-tokenizer-C3n8hi1h.js +4 -0
- package/dist/client/assets/synthwave-84-nFMaYfgc.js +1 -0
- package/dist/client/assets/synthwave-84-wQeDKbzQ.js +1 -0
- package/dist/client/assets/textChildren-ZDSs1dod.js +1 -0
- package/dist/client/assets/themes-CdTJhjZf.js +2 -0
- package/dist/client/assets/tokyo-night-D4ZgDiA7.js +1 -0
- package/dist/client/assets/tokyo-night-oM2G3aXe.js +1 -0
- package/dist/client/assets/triangle-alert-C9Sgr3jF.js +1 -0
- package/dist/client/assets/unwrapDefault-ByDmBtHB.js +1 -0
- package/dist/client/assets/utils-C9Glzetk.js +2 -0
- package/dist/client/assets/versionView-zkSROPw7.js +1 -0
- package/dist/client/assets/vesper-DdrHHSXu.js +1 -0
- package/dist/client/assets/vesper-sUHevyKv.js +1 -0
- package/dist/client/assets/vitesse-black-CfklMpOb.js +1 -0
- package/dist/client/assets/vitesse-black-fwtXNY1n.js +1 -0
- package/dist/client/assets/vitesse-dark-BZCL-v6S.js +1 -0
- package/dist/client/assets/vitesse-dark-CJkzwmKT.js +1 -0
- package/dist/client/assets/vitesse-light-BxMp8E1Y.js +1 -0
- package/dist/client/assets/vitesse-light-VbXTXTou.js +1 -0
- package/dist/client/assets/wa-sqlite-Ba70bhIr.wasm +0 -0
- package/dist/client/assets/warmPlans-CYFrLwcX.js +1 -0
- package/dist/client/assets/with-selector-HIcjK0_d.js +1 -0
- package/dist/client/assets/workflowSource-LMsRuqF_.js +3 -0
- package/dist/client/favicon.png +0 -0
- package/dist/client/icons/apple-touch-icon-180x180.png +0 -0
- package/dist/client/icons/favicon.ico +0 -0
- package/dist/client/icons/maskable-icon-192x192.png +0 -0
- package/dist/client/icons/maskable-icon-512x512.png +0 -0
- package/dist/client/icons/pwa-16x16.png +0 -0
- package/dist/client/icons/pwa-192x192.png +0 -0
- package/dist/client/icons/pwa-32x32.png +0 -0
- package/dist/client/icons/pwa-512x512.png +0 -0
- package/dist/client/icons/pwa-64x64.png +0 -0
- package/dist/clientLog.d.ts +5 -0
- package/dist/clientLog.js +64 -0
- package/dist/cloudClient.d.ts +38 -0
- package/dist/cloudClient.js +185 -0
- package/dist/cloudCommand.d.ts +23 -0
- package/dist/cloudCommand.js +159 -0
- package/dist/cloudFrontmatter.d.ts +4 -0
- package/dist/cloudFrontmatter.js +30 -0
- package/dist/cloudStore.d.ts +28 -0
- package/dist/cloudStore.js +70 -0
- package/dist/cloudWatch.d.ts +12 -0
- package/dist/cloudWatch.js +103 -0
- package/dist/commentReply.d.ts +25 -0
- package/dist/commentReply.js +17 -0
- package/dist/configHome.d.ts +34 -0
- package/dist/configHome.js +136 -0
- package/dist/dashboard.d.ts +67 -0
- package/dist/dashboard.js +86 -0
- package/dist/dashboardClientScript.d.ts +2 -0
- package/dist/dashboardClientScript.js +1006 -0
- package/dist/dashboardDocument.d.ts +13 -0
- package/dist/dashboardDocument.js +40 -0
- package/dist/dashboardFormat.d.ts +98 -0
- package/dist/dashboardFormat.js +199 -0
- package/dist/dashboardLoading.d.ts +19 -0
- package/dist/dashboardLoading.js +94 -0
- package/dist/dashboardOverview.d.ts +28 -0
- package/dist/dashboardOverview.js +333 -0
- package/dist/dashboardPage.d.ts +2 -0
- package/dist/dashboardPage.js +11 -0
- package/dist/dashboardParts.d.ts +4 -0
- package/dist/dashboardParts.js +367 -0
- package/dist/dashboardSearchView.d.ts +38 -0
- package/dist/dashboardSearchView.js +255 -0
- package/dist/desktopApp.d.ts +23 -0
- package/dist/desktopApp.js +110 -0
- package/dist/desktopBridge.d.ts +21 -0
- package/dist/desktopBridge.js +78 -0
- package/dist/desktopCommand.d.ts +61 -0
- package/dist/desktopCommand.js +172 -0
- package/dist/desktopConfig.d.ts +54 -0
- package/dist/desktopConfig.js +164 -0
- package/dist/desktopNotices.d.ts +105 -0
- package/dist/desktopNotices.js +427 -0
- package/dist/diff.d.ts +2 -0
- package/dist/diff.js +46 -0
- package/dist/diffsTheme.d.ts +51 -0
- package/dist/diffsTheme.js +86 -0
- package/dist/diffsThemeCatalog.d.ts +3 -0
- package/dist/diffsThemeCatalog.js +78 -0
- package/dist/elkRuntime.node.d.ts +7 -0
- package/dist/elkRuntime.node.js +63 -0
- package/dist/execution.d.ts +78 -0
- package/dist/execution.js +139 -0
- package/dist/expectedWorkflow.d.ts +11 -0
- package/dist/expectedWorkflow.js +99 -0
- package/dist/favicon.d.ts +4 -0
- package/dist/favicon.js +40 -0
- package/dist/favicon.png +0 -0
- package/dist/faviconBase64.d.ts +1 -0
- package/dist/faviconBase64.js +1 -0
- package/dist/fileVersion.d.ts +8 -0
- package/dist/fileVersion.js +20 -0
- package/dist/formatBytes.d.ts +2 -0
- package/dist/formatBytes.js +13 -0
- package/dist/gitStatus.d.ts +12 -0
- package/dist/gitStatus.js +88 -0
- package/dist/hostToolbar.d.ts +38 -0
- package/dist/hostToolbar.js +249 -0
- package/dist/http.d.ts +8 -0
- package/dist/http.js +38 -0
- package/dist/httpServer.d.ts +13 -0
- package/dist/httpServer.js +40 -0
- package/dist/icons/apple-touch-icon-180x180.png +0 -0
- package/dist/icons/favicon.ico +0 -0
- package/dist/icons/maskable-icon-192x192.png +0 -0
- package/dist/icons/maskable-icon-512x512.png +0 -0
- package/dist/icons/pwa-16x16.png +0 -0
- package/dist/icons/pwa-192x192.png +0 -0
- package/dist/icons/pwa-32x32.png +0 -0
- package/dist/icons/pwa-512x512.png +0 -0
- package/dist/icons/pwa-64x64.png +0 -0
- package/dist/lanAccess.d.ts +31 -0
- package/dist/lanAccess.js +110 -0
- package/dist/lanAddress.d.ts +24 -0
- package/dist/lanAddress.js +174 -0
- package/dist/lanCommand.d.ts +25 -0
- package/dist/lanCommand.js +159 -0
- package/dist/lanConfig.d.ts +40 -0
- package/dist/lanConfig.js +130 -0
- package/dist/lanFirewall.d.ts +17 -0
- package/dist/lanFirewall.js +221 -0
- package/dist/layoutGraph.d.ts +13 -0
- package/dist/layoutGraph.js +55 -0
- package/dist/localName.d.ts +9 -0
- package/dist/localName.js +28 -0
- package/dist/lockBanner.d.ts +2 -0
- package/dist/lockBanner.js +2 -0
- package/dist/mdnsPacket.d.ts +44 -0
- package/dist/mdnsPacket.js +384 -0
- package/dist/mdnsPublish.d.ts +12 -0
- package/dist/mdnsPublish.js +290 -0
- package/dist/offlineSync.d.ts +249 -0
- package/dist/offlineSync.js +477 -0
- package/dist/openUrl.d.ts +40 -0
- package/dist/openUrl.js +147 -0
- package/dist/openedPages.d.ts +14 -0
- package/dist/openedPages.js +48 -0
- package/dist/pageEditPull.d.ts +9 -0
- package/dist/pageEditPull.js +29 -0
- package/dist/pageRoutes.d.ts +3 -0
- package/dist/pageRoutes.js +34 -0
- package/dist/parse.d.ts +7 -0
- package/dist/parse.js +100 -0
- package/dist/pid.d.ts +2 -0
- package/dist/pid.js +13 -0
- package/dist/planArchive.d.ts +4 -0
- package/dist/planArchive.js +28 -0
- package/dist/planEntries.d.ts +12 -0
- package/dist/planEntries.js +117 -0
- package/dist/planHost.d.ts +31 -0
- package/dist/planHost.js +286 -0
- package/dist/planId.d.ts +2 -0
- package/dist/planId.js +6 -0
- package/dist/planMdx/blockEdit.d.ts +41 -0
- package/dist/planMdx/blockEdit.js +60 -0
- package/dist/planMdx/cellPart.d.ts +14 -0
- package/dist/planMdx/cellPart.js +26 -0
- package/dist/planMdx/compilePlanMdx.d.ts +3 -0
- package/dist/planMdx/compilePlanMdx.js +22 -0
- package/dist/planMdx/editSource.d.ts +39 -0
- package/dist/planMdx/editSource.js +327 -0
- package/dist/planMdx/frontmatter.d.ts +5 -0
- package/dist/planMdx/frontmatter.js +15 -0
- package/dist/planMdx/markdown.d.ts +6 -0
- package/dist/planMdx/markdown.js +470 -0
- package/dist/planMdx/outline.d.ts +8 -0
- package/dist/planMdx/outline.js +548 -0
- package/dist/planMdx/payload.d.ts +4 -0
- package/dist/planMdx/payload.js +18 -0
- package/dist/planMdx/rebaseDraft.d.ts +54 -0
- package/dist/planMdx/rebaseDraft.js +675 -0
- package/dist/planMdx/recmaPlanComponents.d.ts +18 -0
- package/dist/planMdx/recmaPlanComponents.js +52 -0
- package/dist/planMdx/remarkBlockRanges.d.ts +104 -0
- package/dist/planMdx/remarkBlockRanges.js +275 -0
- package/dist/planMdx/remarkCodeMeta.d.ts +16 -0
- package/dist/planMdx/remarkCodeMeta.js +25 -0
- package/dist/planMdx/remarkGfmTable.d.ts +5 -0
- package/dist/planMdx/remarkGfmTable.js +15 -0
- package/dist/planMdx/remarkGfmTaskList.d.ts +5 -0
- package/dist/planMdx/remarkGfmTaskList.js +15 -0
- package/dist/planMdx/remarkMermaid.d.ts +16 -0
- package/dist/planMdx/remarkMermaid.js +56 -0
- package/dist/planMdx/source.d.ts +11 -0
- package/dist/planMdx/source.js +131 -0
- package/dist/planMdx/titleEdit.d.ts +35 -0
- package/dist/planMdx/titleEdit.js +112 -0
- package/dist/planPage.css +2125 -0
- package/dist/planProgress.d.ts +17 -0
- package/dist/planProgress.js +78 -0
- package/dist/planReady.d.ts +8 -0
- package/dist/planReady.js +20 -0
- package/dist/planRefNavigation.d.ts +4 -0
- package/dist/planRefNavigation.js +8 -0
- package/dist/planRoutes.d.ts +12 -0
- package/dist/planRoutes.js +141 -0
- package/dist/planSearch.d.ts +166 -0
- package/dist/planSearch.js +462 -0
- package/dist/planSession.d.ts +130 -0
- package/dist/planSession.js +1182 -0
- package/dist/planSnapshots.d.ts +34 -0
- package/dist/planSnapshots.js +113 -0
- package/dist/planStatus.d.ts +26 -0
- package/dist/planStatus.js +46 -0
- package/dist/planStepHeading.d.ts +16 -0
- package/dist/planStepHeading.js +34 -0
- package/dist/planTarget.d.ts +16 -0
- package/dist/planTarget.js +92 -0
- package/dist/planToc.d.ts +24 -0
- package/dist/planToc.js +258 -0
- package/dist/planVersionMenu.d.ts +12 -0
- package/dist/planVersionMenu.js +23 -0
- package/dist/processRecord.d.ts +108 -0
- package/dist/processRecord.js +68 -0
- package/dist/processesPanel.d.ts +7 -0
- package/dist/processesPanel.js +636 -0
- package/dist/pwaIconFile.d.ts +2 -0
- package/dist/pwaIconFile.js +42 -0
- package/dist/pwaIcons.d.ts +28 -0
- package/dist/pwaIcons.js +46 -0
- package/dist/registerServiceWorker.d.ts +25 -0
- package/dist/registerServiceWorker.js +26 -0
- package/dist/registryClient.d.ts +94 -0
- package/dist/registryClient.js +490 -0
- package/dist/registryConstants.d.ts +9 -0
- package/dist/registryConstants.js +9 -0
- package/dist/registryLock.d.ts +19 -0
- package/dist/registryLock.js +48 -0
- package/dist/registryPage.d.ts +2 -0
- package/dist/registryPage.js +284 -0
- package/dist/registryService.d.ts +21 -0
- package/dist/registryService.js +562 -0
- package/dist/registryStore.d.ts +63 -0
- package/dist/registryStore.js +398 -0
- package/dist/releaseNotes.d.ts +35 -0
- package/dist/releaseNotes.js +62 -0
- package/dist/render.d.ts +50 -0
- package/dist/render.js +1506 -0
- package/dist/requestGuard.d.ts +21 -0
- package/dist/requestGuard.js +42 -0
- package/dist/reviewRound.d.ts +12 -0
- package/dist/reviewRound.js +19 -0
- package/dist/runFollow.d.ts +28 -0
- package/dist/runFollow.js +33 -0
- package/dist/searchMatch.d.ts +35 -0
- package/dist/searchMatch.js +270 -0
- package/dist/server.d.ts +24 -0
- package/dist/server.js +114 -0
- package/dist/serviceLog.d.ts +56 -0
- package/dist/serviceLog.js +481 -0
- package/dist/shellCache.d.ts +69 -0
- package/dist/shellCache.js +289 -0
- package/dist/shellWorker.js +322 -0
- package/dist/shellWorkerResponse.d.ts +4 -0
- package/dist/shellWorkerResponse.js +15 -0
- package/dist/startServer.d.ts +2 -0
- package/dist/startServer.js +2 -0
- package/dist/store/meta.d.ts +53 -0
- package/dist/store/meta.js +140 -0
- package/dist/store/migrate.d.ts +3 -0
- package/dist/store/migrate.js +408 -0
- package/dist/store/rows.d.ts +4 -0
- package/dist/store/rows.js +100 -0
- package/dist/store/schema.d.ts +5 -0
- package/dist/store/schema.js +5 -0
- package/dist/store/sqlite.d.ts +19 -0
- package/dist/store/sqlite.js +57 -0
- package/dist/store/tables.d.ts +1892 -0
- package/dist/store/tables.js +136 -0
- package/dist/theme.d.ts +174 -0
- package/dist/theme.js +444 -0
- package/dist/themeBootstrap.d.ts +2 -0
- package/dist/themeBootstrap.js +11 -0
- package/dist/tui/DashboardApp.d.ts +19 -0
- package/dist/tui/DashboardApp.js +237 -0
- package/dist/tui/PaletteProvider.d.ts +12 -0
- package/dist/tui/PaletteProvider.js +36 -0
- package/dist/tui/PlanActions.d.ts +7 -0
- package/dist/tui/PlanActions.js +9 -0
- package/dist/tui/PlanCard.d.ts +13 -0
- package/dist/tui/PlanCard.js +31 -0
- package/dist/tui/PlanRow.d.ts +13 -0
- package/dist/tui/PlanRow.js +31 -0
- package/dist/tui/PlanTable.d.ts +13 -0
- package/dist/tui/PlanTable.js +24 -0
- package/dist/tui/ProcessCard.d.ts +9 -0
- package/dist/tui/ProcessCard.js +24 -0
- package/dist/tui/ProcessList.d.ts +9 -0
- package/dist/tui/ProcessList.js +12 -0
- package/dist/tui/SegmentButton.d.ts +7 -0
- package/dist/tui/SegmentButton.js +18 -0
- package/dist/tui/StatCard.d.ts +6 -0
- package/dist/tui/StatCard.js +17 -0
- package/dist/tui/dashboardView.d.ts +45 -0
- package/dist/tui/dashboardView.js +192 -0
- package/dist/tui/openExternal.d.ts +2 -0
- package/dist/tui/openExternal.js +5 -0
- package/dist/tui/palette.d.ts +27 -0
- package/dist/tui/palette.js +66 -0
- package/dist/tui/planColumns.d.ts +38 -0
- package/dist/tui/planColumns.js +14 -0
- package/dist/tui/readDashboard.d.ts +3 -0
- package/dist/tui/readDashboard.js +15 -0
- package/dist/tui/readProcesses.d.ts +3 -0
- package/dist/tui/readProcesses.js +23 -0
- package/dist/tui/registryView.d.ts +11 -0
- package/dist/tui/registryView.js +56 -0
- package/dist/tui/runTui.d.ts +21 -0
- package/dist/tui/runTui.js +86 -0
- package/dist/tui/systemTheme.d.ts +28 -0
- package/dist/tui/systemTheme.js +141 -0
- package/dist/types.d.ts +191 -0
- package/dist/types.js +0 -0
- package/dist/webManifest.d.ts +39 -0
- package/dist/webManifest.js +48 -0
- package/dist/workflow.d.ts +8 -0
- package/dist/workflow.js +42 -0
- package/dist/workflowLayoutShared.d.ts +25 -0
- package/dist/workflowLayoutShared.js +33 -0
- package/dist/workflowSource.d.ts +31 -0
- package/dist/workflowSource.js +90 -0
- package/docs/changelogs/changelog-2026-10-27.md +203 -0
- package/docs/changelogs/changelog-2026-10-28.md +181 -0
- package/docs/changelogs/changelog-2026-10-29.md +349 -0
- package/docs/changelogs/changelog-2026-10-30.md +303 -0
- package/docs/changelogs/changelog-2026-10-31.md +129 -0
- package/docs/changelogs/changelog-2026-11-01.md +155 -0
- package/docs/changelogs/changelog-2026-11-02.md +195 -0
- package/docs/changelogs/changelog-2026-11-03.md +209 -0
- package/docs/changelogs/changelog-2026-11-04.md +243 -0
- package/docs/changelogs/changelog-2026-11-05.md +172 -0
- package/docs/changelogs/changelog-2026-11-06.md +123 -0
- package/docs/changelogs/changelog-2026-11-07.md +138 -0
- package/docs/changelogs/changelog-2026-11-08.md +47 -0
- package/docs/changelogs/changelog-2026-11-10.md +219 -0
- package/docs/changelogs/changelog-2026-11-11.md +205 -0
- package/docs/changelogs/changelog-2026-11-12.md +44 -0
- package/docs/changelogs/changelog-2026-11-13.md +48 -0
- package/docs/changelogs/changelog-2026-11-14.md +116 -0
- package/docs/changelogs/changelog-2026-11-15.md +31 -0
- package/docs/changelogs/changelog-2026-11-16.md +41 -0
- package/docs/changelogs/changelog-2026-11-17.md +25 -0
- package/docs/changelogs/changelog-2026-11-18.md +71 -0
- package/docs/changelogs/changelog-2026-11-19.md +19 -0
- package/examples/cloud-showcase.plan.md +181 -0
- package/examples/component-showcase.plan.md +378 -0
- package/examples/component-tour.plan.md +168 -0
- package/examples/data-table.plan.md +917 -0
- package/examples/execution-graph.json +15 -5
- package/examples/form-controls.plan.md +51 -0
- package/examples/live-plan.config.json +5 -0
- package/examples/rate-limit.plan.md +110 -78
- package/examples/submission-delivery-runbook.md +122 -0
- package/examples/submission-delivery.plan.md +107 -0
- package/examples/tables.plan.md +61 -0
- package/package.json +86 -15
- package/skills/live-plan/SKILL.md +381 -0
- package/skills/live-plan/primitives.md +738 -0
- package/skills/living-plan/SKILL.md +0 -71
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/BlockEditor-BklSUBjk.js","assets/rolldown-runtime-Dd_uD5pT.js","assets/jsx-runtime-DKj5X9O4.js","assets/react-dom-DpzJPrWF.js","assets/CodeBlock-BxRMnldw.js","assets/preload-helper-Dx0-lKy1.js","assets/hastToHtml-Dj8rXue9.js","assets/unwrapDefault-ByDmBtHB.js","assets/lib-CdRiGVUZ.js","assets/ccount-nzzEXTrh.js","assets/constants-CmGPilXJ.js","assets/formatCSSVariablePrefix-KRh9vnZf.js","assets/diffsTheme-PJJTu2Rq.js","assets/planEditButton-CbWGczbi.js","assets/StatusIcon-C_-Lm9b4.js","assets/with-selector-HIcjK0_d.js","assets/circle-x-BLGxA3gi.js","assets/mdxEntries-L-V7bB6i.js","assets/button-DJWAGApe.js","assets/button-BI07wqbi.css","assets/triangle-alert-C9Sgr3jF.js","assets/mdxEntries-BNTMP8ct.css","assets/lib-COgu-QLX.js","assets/workflowSource-LMsRuqF_.js","assets/arrow-up-down-BSjnQK2I.js","assets/arrow-up-CEVVOXD5.js","assets/Popover-DbE4vUPG.js","assets/editSource-U5AoD-Wo.js","assets/utils-C9Glzetk.js","assets/default-5FplaXL4.js","assets/Mermaid-jPWLXX7e.js","assets/mermaid-Di4j-zgD.js","assets/textChildren-ZDSs1dod.js","assets/BlockEditor-K5h6xc4_.css","assets/rebaseDraft-B2--cj1c.js","assets/CodeBlock-BbI08MlQ.js","assets/register-htm5s8o9.js","assets/stampPlanParts-DVXYCykw.js","assets/stampPlanParts-ctZzxWdw.css","assets/register-hZEIk3A9.css","assets/editSource-DQfw4nRm.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{n as t,t as n}from"./jsx-runtime-DKj5X9O4.js";import{n as r,r as i}from"./queryClient-Bs5tSUJh.js";import{t as a}from"./client-BsE_buVT.js";import{t as o}from"./preload-helper-Dx0-lKy1.js";import{a as s,r as c,t as l}from"./engine-DUyaiAMV.js";import{t as u}from"./versionView-zkSROPw7.js";import{n as d}from"./planEvents-cuzv9ELr.js";import{B as f,C as p,H as m,S as h,V as g,a as _,b as v,c as y,i as b,l as x,m as S,n as C,p as ee,r as w,s as T,t as te,v as E,x as D,y as ne,z as O}from"./planEditButton-CbWGczbi.js";import{a as k,i as re,o as ie,r as ae,s as A,t as oe}from"./stampPlanParts-DVXYCykw.js";import{M as j,f as se,i as ce,k as le,r as ue,y as de}from"./mdxEntries-L-V7bB6i.js";import{br as fe,t as pe}from"./button-DJWAGApe.js";var me=Object.getPrototypeOf(he).constructor;async function he(e,t){return new me(String(e))(t)}var M=e(t(),1),N=e(n(),1),ge=a();function _e(e,t){if(t){let n=e.find(e=>e.id===t);if(n&&n.seq>0)return n.seq}let n=0;for(let t of e)t.seq>n&&(n=t.seq);return n>0?n:1}function ve(e){return`v${e}`}function ye(e){return`Version · ${ve(e)}`}var be=Symbol.for(`yaml.alias`),xe=Symbol.for(`yaml.document`),P=Symbol.for(`yaml.map`),Se=Symbol.for(`yaml.pair`),F=Symbol.for(`yaml.scalar`),Ce=Symbol.for(`yaml.seq`),I=Symbol.for(`yaml.node.type`),L=e=>!!e&&typeof e==`object`&&e[I]===be,R=e=>!!e&&typeof e==`object`&&e[I]===xe,we=e=>!!e&&typeof e==`object`&&e[I]===P,z=e=>!!e&&typeof e==`object`&&e[I]===Se,B=e=>!!e&&typeof e==`object`&&e[I]===F,Te=e=>!!e&&typeof e==`object`&&e[I]===Ce;function V(e){if(e&&typeof e==`object`)switch(e[I]){case P:case Ce:return!0}return!1}function H(e){if(e&&typeof e==`object`)switch(e[I]){case be:case P:case F:case Ce:return!0}return!1}var U=e=>(B(e)||V(e))&&!!e.anchor,W=Symbol(`break visit`),Ee=Symbol(`skip children`),De=Symbol(`remove node`);function Oe(e,t){let n=Ae(t);R(e)?ke(null,e.contents,n,Object.freeze([e]))===De&&(e.contents=null):ke(null,e,n,Object.freeze([]))}Oe.BREAK=W,Oe.SKIP=Ee,Oe.REMOVE=De;function ke(e,t,n,r){let i=je(e,t,n,r);if(H(i)||z(i))return Me(e,r,i),ke(e,i,n,r);if(typeof i!=`symbol`){if(V(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=ke(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===W)return W;else i===De&&(t.items.splice(e,1),--e)}}else if(z(t)){r=Object.freeze(r.concat(t));let e=ke(`key`,t.key,n,r);if(e===W)return W;e===De&&(t.key=null);let i=ke(`value`,t.value,n,r);if(i===W)return W;i===De&&(t.value=null)}}return i}function Ae(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function je(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(we(t))return n.Map?.(e,t,r);if(Te(t))return n.Seq?.(e,t,r);if(z(t))return n.Pair?.(e,t,r);if(B(t))return n.Scalar?.(e,t,r);if(L(t))return n.Alias?.(e,t,r)}function Me(e,t,n){let r=t[t.length-1];if(V(r))r.items[e]=n;else if(z(r))e===`key`?r.key=n:r.value=n;else if(R(r))r.contents=n;else{let e=L(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var Ne={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},Pe=e=>e.replace(/[!,[\]{}]/g,e=>Ne[e]),Fe=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Pe(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&H(e.contents)){let t={};Oe(e.contents,(e,n)=>{H(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)(i!==`!!`||a!==`tag:yaml.org,2002:`)&&(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
|
|
3
|
+
`)}};Fe.defaultYaml={explicit:!1,version:`1.2`},Fe.defaultTags={"!!":`tag:yaml.org,2002:`};function Ie(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function Le(e){let t=new Set;return Oe(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function G(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function Re(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=Le(e);let a=G(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(B(t.node)||V(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function K(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=K(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=K(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=K(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=K(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function q(e,t,n){if(Array.isArray(e))return e.map((e,t)=>q(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!U(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var ze=class{constructor(e){Object.defineProperty(this,I,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!R(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=q(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?K(i,{"":o},``,o):o}},Be=class extends ze{constructor(e){super(be),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],Oe(e,{Node:(e,t)=>{(L(t)||U(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,a=e.get(r);if(a||=(q(r,null,t),e.get(r)),a?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Ve(n,r,e)),a.count*a.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`)}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(Ie(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function Ve(e,t,n){if(L(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(V(t)){let r=0;for(let i of t.items){let t=Ve(e,i,n);t>r&&(r=t)}return r}if(z(t)){let r=Ve(e,t.key,n),i=Ve(e,t.value,n);return Math.max(r,i)}return 1}var He=e=>!e||typeof e!=`function`&&typeof e!=`object`,J=class extends ze{constructor(e){super(F),this.value=e}toJSON(e,t){return t?.keep?this.value:q(this.value,e,t)}toString(){return String(this.value)}};J.BLOCK_FOLDED=`BLOCK_FOLDED`,J.BLOCK_LITERAL=`BLOCK_LITERAL`,J.PLAIN=`PLAIN`,J.QUOTE_DOUBLE=`QUOTE_DOUBLE`,J.QUOTE_SINGLE=`QUOTE_SINGLE`;var Ue=`tag:yaml.org,2002:`;function We(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function Ge(e,t,n){if(R(e)&&(e=e.contents),H(e))return e;if(z(e)){let t=n.schema[P].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new Be(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=Ue+t.slice(2));let l=We(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new J(e);return c&&(c.node=t),t}l=e instanceof Map?o[P]:Symbol.iterator in Object(e)?o[Ce]:o[P]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new J(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function Ke(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Ge(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var qe=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Je=class extends ze{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>H(t)||z(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(qe(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(V(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,Ke(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(V(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&B(i)?i.value:i:V(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!z(t))return!1;let n=t.value;return n==null||e&&B(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return V(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(V(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,Ke(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Ye=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function Y(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Xe=(e,t,n)=>e.endsWith(`
|
|
4
|
+
`)?Y(n,t):n.includes(`
|
|
5
|
+
`)?`
|
|
6
|
+
`+Y(n,t):(e.endsWith(` `)?``:` `)+n,Ze=`flow`,Qe=`block`,$e=`quoted`;function et(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=tt(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
|
|
7
|
+
`)n===`block`&&(h=tt(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
|
|
8
|
+
`&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
|
|
9
|
+
`&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function tt(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
|
|
10
|
+
`);r=t,i=t+1,a=e[i]}return r}var nt=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),rt=e=>/^(%|---|\.\.\.)/m.test(e);function it(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
|
|
11
|
+
`){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function at(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(rt(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
|
|
12
|
+
|
|
13
|
+
`;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
|
|
14
|
+
`,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:et(o,a,$e,nt(t,!1))}function ot(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
15
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return at(e,t);let n=t.indent||(rt(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:et(r,n,Ze,nt(t,!1))}function st(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=at;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?ot:i&&!t?at:n?ot:at}return r(e,t)}var ct;try{ct=RegExp(`(^|(?<!
|
|
16
|
+
))
|
|
17
|
+
+(?!
|
|
18
|
+
|$)`,`g`)}catch{ct=/\n+(?!\n|$)/g}function lt({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return st(n,r);let l=r.indent||(r.forceBlockIndent||rt(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===J.BLOCK_FOLDED?!1:t===J.BLOCK_LITERAL||!it(n,c,l.length);if(!n)return u?`|
|
|
19
|
+
`:`>
|
|
20
|
+
`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
|
|
21
|
+
`&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
|
|
22
|
+
`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
|
|
23
|
+
`&&(p=p.slice(0,-1)),p.replace(ct,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
|
|
24
|
+
`)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
|
|
25
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=nt(r,!0);o!==`folded`&&t!==J.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=et(`${v}${e}${p}`,l,Qe,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function ut(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
|
|
26
|
+
`)||u&&/[[\]{},]/.test(a))return st(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
|
|
27
|
+
`)?st(a,t):lt(e,t,n,r);if(!s&&!u&&i!==J.PLAIN&&a.includes(`
|
|
28
|
+
`))return lt(e,t,n,r);if(rt(a)){if(c===``)return t.forceBlockIndent=!0,lt(e,t,n,r);if(s&&c===l)return st(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return st(a,t)}return s?d:et(d,c,Ze,nt(t,!1))}function dt(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==J.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=J.QUOTE_DOUBLE);let c=e=>{switch(e){case J.BLOCK_FOLDED:case J.BLOCK_LITERAL:return i||a?st(o.value,t):lt(o,t,n,r);case J.QUOTE_DOUBLE:return at(o.value,t);case J.QUOTE_SINGLE:return ot(o.value,t);case J.PLAIN:return ut(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function ft(e,t){let n=Object.assign({blockQuote:!0,commentString:Ye,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function pt(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(B(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function mt(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(B(e)||V(e))&&e.anchor;a&&Ie(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function ht(e,t,n,r){if(z(e))return e.toString(t,n,r);if(L(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=H(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=pt(t.doc.schema.tags,a);let o=mt(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):B(a)?dt(a,t,n,r):a.toString(t,n,r);return o?B(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function gt({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=H(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(V(e)||!H(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||V(e)||(B(e)?e.type===J.BLOCK_FOLDED||e.type===J.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=ht(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Xe(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Xe(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Xe(g,n.indent,l(f))));let _,v,y;H(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&B(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&Te(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=ht(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
|
|
29
|
+
`:``,v){let e=l(v);S+=`\n${Y(e,n.indent)}`}x===``&&!n.inFlow?S===`
|
|
30
|
+
`&&y&&(S=`
|
|
31
|
+
|
|
32
|
+
`):S+=`\n${n.indent}`}else if(!p&&V(t)){let e=x[0],r=x.indexOf(`
|
|
33
|
+
`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else(x===``||x[0]===`
|
|
34
|
+
`)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=Xe(g,n.indent,l(y)):h&&i&&i(),g}function _t(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var vt=`<<`,yt={identify:e=>e===vt||typeof e==`symbol`&&e.description===vt,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new J(Symbol(vt)),{addToJSMap:xt}),stringify:()=>vt},bt=(e,t)=>(yt.identify(t)||B(t)&&(!t.type||t.type===J.PLAIN)&&yt.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===yt.tag&&e.default);function xt(e,t,n){let r=Ct(e,n);if(Te(r))for(let n of r.items)St(e,t,n);else if(Array.isArray(r))for(let n of r)St(e,t,n);else St(e,t,r)}function St(e,t,n){let r=Ct(e,n);if(!we(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Ct(e,t){return e&&L(t)?t.resolve(e.doc,e):t}function wt(e,t,{key:n,value:r}){if(H(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(bt(e,n))xt(e,t,r);else{let i=q(n,``,e);if(t instanceof Map)t.set(i,q(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Tt(n,i,e),o=q(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Tt(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(H(e)&&n?.doc){let t=ft(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),_t(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function Et(e,t,n){return new X(Ge(e,void 0,n),Ge(t,void 0,n))}var X=class e{constructor(e,t=null){Object.defineProperty(this,I,{value:Se}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return H(n)&&(n=n.clone(t)),H(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return wt(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?gt(this,e,t,n):JSON.stringify(this)}};function Dt(e,t,n){return(t.inFlow??e.flow?kt:Ot)(e,t,n)}function Ot({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(H(i))!d&&i.spaceBefore&&f.push(``),At(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(z(i)){let e=H(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),At(n,f,e.commentBefore,d))}d=!1;let s=ht(i,u,()=>o=null,()=>d=!0);o&&(s+=Xe(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
|
|
35
|
+
`}}return e?(p+=`
|
|
36
|
+
`+Y(l(e),c),s&&s()):d&&o&&o(),p}function kt({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(H(i))i.spaceBefore&&d.push(``),At(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(z(i)){let e=H(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),At(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=H(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=ht(i,c,()=>a=null);l||=d.length>u||o.includes(`
|
|
37
|
+
`),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=Xe(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
|
|
38
|
+
`;return`${e}\n${i}${p}`}return`${f}${o}${d.join(` `)}${o}${p}`}function At({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=Y(t(r),e);n.push(i.trimStart())}}function jt(e,t){let n=B(t)?t.value:t;for(let r of e)if(z(r)&&(r.key===t||r.key===n||B(r.key)&&r.key.value===n))return r}var Z=class extends Je{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(P,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(Et(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=z(e)?e:!e||typeof e!=`object`||!(`key`in e)?new X(e,e?.value):new X(e.key,e.value);let r=jt(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);B(r.value)&&He(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=jt(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=jt(this.items,e)?.value;return(!t&&B(n)?n.value:n)??void 0}has(e){return!!jt(this.items,e)}set(e,t){this.add(new X(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)wt(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!z(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Dt(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},Mt={collection:`map`,default:!0,nodeClass:Z,tag:`tag:yaml.org,2002:map`,resolve(e,t){return we(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>Z.from(e,t,n)},Nt=class extends Je{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(Ce,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Pt(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=Pt(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&B(r)?r.value:r}has(e){let t=Pt(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=Pt(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];B(r)&&He(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(q(e,String(r++),t));return n}toString(e,t,n){return e?Dt(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(Ge(a,void 0,n))}}return i}};function Pt(e){let t=B(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var Ft={collection:`seq`,default:!0,nodeClass:Nt,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return Te(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>Nt.from(e,t,n)},It={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),dt(e,t,n,r)}},Lt={identify:e=>e==null,createNode:()=>new J(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new J(null),stringify:({source:e},t)=>typeof e==`string`&&Lt.test.test(e)?e:t.options.nullStr},Rt={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new J(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&Rt.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function Q({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var zt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Q},Bt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Q(e)}},Vt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new J(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:Q},Ht=e=>typeof e==`bigint`||Number.isInteger(e),Ut=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Wt(e,t,n){let{value:r}=e;return Ht(r)&&r>=0?n+r.toString(t):Q(e)}var Gt={identify:e=>Ht(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>Ut(e,2,8,n),stringify:e=>Wt(e,8,`0o`)},Kt={identify:Ht,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Ut(e,0,10,n),stringify:Q},qt={identify:e=>Ht(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Ut(e,2,16,n),stringify:e=>Wt(e,16,`0x`)},Jt=[Mt,Ft,It,Lt,Rt,Gt,Kt,qt,zt,Bt,Vt];function Yt(e){return typeof e==`bigint`||Number.isInteger(e)}var Xt=({value:e})=>JSON.stringify(e),Zt=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:Xt},{identify:e=>e==null,createNode:()=>new J(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:Xt},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:Xt},{identify:Yt,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Yt(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Xt}],Qt=[Mt,Ft].concat(Zt,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),$t={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=J.BLOCK_LITERAL,t!==J.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===J.BLOCK_LITERAL?`
|
|
39
|
+
`:` `)}return dt({comment:e,type:t,value:s},r,i,a)}};function en(e,t){if(Te(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!z(r)){if(we(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new X(new J(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=z(r)?r:new X(r)}}else t(`Expected a sequence for this tag`);return e}function tn(e,t,n){let{replacer:r}=n,i=new Nt(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(Et(o,s,n))}return i}var nn={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:en,createNode:tn},rn=class e extends Nt{constructor(){super(),this.add=Z.prototype.add.bind(this),this.delete=Z.prototype.delete.bind(this),this.get=Z.prototype.get.bind(this),this.has=Z.prototype.has.bind(this),this.set=Z.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(z(e)?(r=q(e.key,``,t),i=q(e.value,r,t)):r=q(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=tn(e,t,n),i=new this;return i.items=r.items,i}};rn.tag=`tag:yaml.org,2002:omap`;var an={collection:`seq`,identify:e=>e instanceof Map,nodeClass:rn,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=en(e,t),r=[];for(let{key:e}of n.items)B(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new rn,n)},createNode:(e,t,n)=>rn.from(e,t,n)};function on({value:e,source:t},n){return t&&(e?sn:cn).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var sn={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new J(!0),stringify:on},cn={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new J(!1),stringify:on},ln={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Q},un={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Q(e)}},dn={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new J(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:Q},fn=e=>typeof e==`bigint`||Number.isInteger(e);function pn(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function mn(e,t,n){let{value:r}=e;if(fn(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return Q(e)}var hn={identify:fn,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>pn(e,2,2,n),stringify:e=>mn(e,2,`0b`)},gn={identify:fn,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>pn(e,1,8,n),stringify:e=>mn(e,8,`0`)},_n={identify:fn,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>pn(e,0,10,n),stringify:Q},vn={identify:fn,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>pn(e,2,16,n),stringify:e=>mn(e,16,`0x`)},yn=class e extends Z{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=z(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new X(e.key,null):new X(e,null),jt(this.items,t.key)||this.items.push(t)}get(e,t){let n=jt(this.items,e);return!t&&z(n)?B(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=jt(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new X(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(Et(e,null,n));return i}};yn.tag=`tag:yaml.org,2002:set`;var bn={collection:`map`,identify:e=>e instanceof Set,nodeClass:yn,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>yn.from(e,t,n),resolve(e,t){if(we(e)){if(e.hasAllNullValues(!0))return Object.assign(new yn,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function xn(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function Sn(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Q(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var Cn={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>xn(e,n),stringify:Sn},wn={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>xn(e,!1),stringify:Sn},Tn={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(Tn.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=xn(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},En=[Mt,Ft,It,Lt,sn,cn,hn,gn,_n,vn,ln,un,dn,$t,yt,an,nn,bn,Cn,wn,Tn],Dn=new Map([[`core`,Jt],[`failsafe`,[Mt,Ft,It]],[`json`,Qt],[`yaml11`,En],[`yaml-1.1`,En]]),On={binary:$t,bool:Rt,float:Vt,floatExp:Bt,floatNaN:zt,floatTime:wn,int:Kt,intHex:qt,intOct:Gt,intTime:Cn,map:Mt,merge:yt,null:Lt,omap:an,pairs:nn,seq:Ft,set:bn,timestamp:Tn},kn={"tag:yaml.org,2002:binary":$t,"tag:yaml.org,2002:merge":yt,"tag:yaml.org,2002:omap":an,"tag:yaml.org,2002:pairs":nn,"tag:yaml.org,2002:set":bn,"tag:yaml.org,2002:timestamp":Tn};function An(e,t,n){let r=Dn.get(t);if(r&&!e)return n&&!r.includes(yt)?r.concat(yt):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from(Dn.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(yt)),i.reduce((e,t)=>{let n=typeof t==`string`?On[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(On).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var jn=(e,t)=>e.key<t.key?-1:+(e.key>t.key),Mn=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?An(e,`compat`):e?An(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?kn:{},this.tags=An(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,P,{value:Mt}),Object.defineProperty(this,F,{value:It}),Object.defineProperty(this,Ce,{value:Ft}),this.sortMapEntries=typeof a==`function`?a:a===!0?jn:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function Nn(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=ft(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(Y(t,``))}let o=!1,s=null;if(e.contents){if(H(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(Y(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=ht(e.contents,i,()=>s=null,t);s&&(c+=Xe(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(ht(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=a(e.comment);t.includes(`
|
|
40
|
+
`)?(n.push(`...`),n.push(Y(t,``))):n.push(`... ${t}`)}else n.push(`...`)}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(Y(a(t),``)))}return n.join(`
|
|
41
|
+
`)+`
|
|
42
|
+
`}var Pn=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,I,{value:xe});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Fe({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[I]:{value:xe}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=H(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){Fn(this.contents)&&this.contents.add(e)}addIn(e,t){Fn(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=Le(this);e.anchor=!t||n.has(t)?G(t||`a`,n):t}return new Be(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=Re(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=Ge(e,l,p);return o&&V(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new X(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return Fn(this.contents)?this.contents.delete(e):!1}deleteIn(e){return qe(e)?this.contents!=null&&(this.contents=null,!0):Fn(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return V(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return qe(e)?!t&&B(this.contents)?this.contents.value:this.contents:V(this.contents)?this.contents.getIn(e,t):void 0}has(e){return V(this.contents)?this.contents.has(e):!1}hasIn(e){return qe(e)?this.contents!==void 0:V(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Ke(this.schema,[e],t):Fn(this.contents)&&this.contents.set(e,t)}setIn(e,t){qe(e)?this.contents=t:this.contents==null?this.contents=Ke(this.schema,Array.from(e),t):Fn(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new Fe({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new Fe({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Mn(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=q(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?K(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return Nn(this,e)}};function Fn(e){if(V(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var In=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},Ln=class extends In{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},Rn=class extends In{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},zn=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
|
|
43
|
+
`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function Bn(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function Vn(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
|
|
44
|
+
`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(Vn(t.key)||Vn(t.value))return!0}return!1;default:return!0}}function Hn(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&Vn(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function Un(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||B(e)&&B(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var Wn=`All mapping items must start at the same column`;function Gn({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??Z)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=Bn(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,Wn)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
|
|
45
|
+
`+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||Vn(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,Wn);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&Hn(r.indent,u,i),n.atKey=!1,Un(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=Bn(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&Hn(r.indent,f,i),s=c.range[2];let l=new X(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
|
|
46
|
+
`+_.comment:g.comment=_.comment);let e=new X(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}function Kn({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??Nt)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=Bn(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found){if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&Hn(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function qn(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var Jn=`Block collections are not allowed within flow collections`,Yn=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function Xn({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?Z:Nt))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=Bn(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=`
|
|
47
|
+
`+h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&Vn(f)&&i(f,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)h.comma&&i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(h.comma||i(h.start,`MISSING_CHAR`,`Missing , between ${s} items`),h.comment){let e=``;loop:for(let t of d)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];z(t)&&(t=t.value??t.key),t.comment?t.comment+=`
|
|
48
|
+
`+e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],Yn(m)&&i(r.range,`BLOCK_IN_FLOW`,Jn)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);Yn(f)&&i(g.range,`BLOCK_IN_FLOW`,Jn),n.atKey=!1;let _=Bn(p??[],{flow:s,indicator:`map-value-ind`,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}h.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else m&&(`source`in m&&m.source?.[0]===`:`?i(m,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?Yn(m)&&i(v.range,`BLOCK_IN_FLOW`,Jn):_.comment&&(g.comment?g.comment+=`
|
|
49
|
+
`+_.comment:g.comment=_.comment);let y=new X(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;Un(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new Z(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o?`}`:`]`,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=qn(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=`
|
|
50
|
+
`+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function Zn(e,t,n,r,i,a){let o=n.type===`block-map`?Gn(e,t,n,r,a):n.type===`block-seq`?Kn(e,t,n,r,a):Xn(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function Qn(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===Z.tagName&&s===`map`||o===Nt.tagName&&s===`seq`)return Zn(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),Zn(e,t,n,i,o)}let l=Zn(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=H(u)?u:new J(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function $n(e,t,n){let r=t.offset,i=er(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?J.BLOCK_FOLDED:J.BLOCK_LITERAL,o=t.source?tr(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
|
|
51
|
+
`.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+`
|
|
52
|
+
`;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===J.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
|
|
53
|
+
`):t.length>c||r[0]===` `?(f===` `?f=`
|
|
54
|
+
`:!p&&f===`
|
|
55
|
+
`&&(f=`
|
|
56
|
+
|
|
57
|
+
`),d+=f+t.slice(c)+r,f=`
|
|
58
|
+
`,p=!0):r===``?f===`
|
|
59
|
+
`?d+=`
|
|
60
|
+
`:f=`
|
|
61
|
+
`:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e<o.length;++e)d+=`
|
|
62
|
+
`+o[e][0].slice(c);d[d.length-1]!==`
|
|
63
|
+
`&&(d+=`
|
|
64
|
+
`);break;default:d+=`
|
|
65
|
+
`}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function er({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function tr(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function nr(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=J.PLAIN,c=rr(a,l);break;case`single-quoted-scalar`:s=J.QUOTE_SINGLE,c=ir(a,l);break;case`double-quoted-scalar`:s=J.QUOTE_DOUBLE,c=or(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=qn(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function rr(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),ar(e)}function ir(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),ar(e.slice(1,-1)).replace(/''/g,`'`)}function ar(e){let t=/(.*?)\r?\n/sy,n=t.exec(e);if(!n)return e;let r,i;try{r=RegExp(`(?<![ ])[ ]+$`),i=RegExp(`^[ ]+|(?<![ ])[ ]+$`,`g`)}catch{r=/[ \t]+$/,i=/^[ \t]+|[ \t]+$/g}let a=n[1].replace(r,``),o=` `,s=t.lastIndex;for(;n=t.exec(e);){let e=n[1].replace(i,``);e===``?o===`
|
|
66
|
+
`?a+=o:o=`
|
|
67
|
+
`:(a+=o+e,o=` `),s=t.lastIndex}let c=/[ \t]*(.*)/sy;return c.lastIndex=s,n=c.exec(e),a+o+(n?.[1]??``)}function or(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(i!==`\r`||e[r+1]!==`
|
|
68
|
+
`){if(i===`
|
|
69
|
+
`){let{fold:t,offset:i}=sr(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=cr[i];if(a)n+=a;else if(i===`
|
|
70
|
+
`)for(i=e[r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
|
|
71
|
+
`)for(i=e[++r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a=i===`x`?2:i===`u`?4:8;n+=lr(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===` `){let t=r,a=e[r+1];for(;a===` `||a===` `;)a=e[++r+1];a!==`
|
|
72
|
+
`&&(a!==`\r`||e[r+2]!==`
|
|
73
|
+
`)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function sr(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===`
|
|
74
|
+
`||r===`\r`)&&(r!==`\r`||e[t+2]===`
|
|
75
|
+
`);)r===`
|
|
76
|
+
`&&(n+=`
|
|
77
|
+
`),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}var cr={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
|
|
78
|
+
`,r:`\r`,t:` `,v:`\v`,N:`
`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function lr(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}function ur(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?$n(e,t,r):nr(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[F]:c?dr(e.schema,i,c,n,r):t.type===`scalar`?fr(e,i,t,r):e.schema[F];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=B(a)?a:new J(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new J(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function dr(e,t,n,r,i){if(n===`!`)return e[F];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(t.default&&t.test)a.push(t);else return t}for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[F])}function fr({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[F];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[F];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}function pr(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var mr={composeNode:hr,composeEmptyNode:gr};function hr(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=_r(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=ur(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=Qn(mr,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=gr(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!B(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function gr(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=ur(e,{type:`scalar`,offset:pr(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function _r({options:e},{offset:t,source:n,end:r},i){let a=new Be(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=qn(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function vr(e,t,{offset:n,start:r,value:i,end:a},o){let s=new Pn(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=Bn(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?hr(c,i,l,o):gr(c,l.end,r,null,l,o);let u=s.contents.range[2],d=qn(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function yr(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function br(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
|
|
79
|
+
|
|
80
|
+
`:`
|
|
81
|
+
`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var xr=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=yr(e);r?this.warnings.push(new Rn(i,t,n)):this.errors.push(new Ln(i,t,n))},this.directives=new Fe({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=br(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(V(i)&&!i.flow&&i.items.length>0){let e=i.items[0];z(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:br(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=yr(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=vr(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Ln(yr(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new Ln(yr(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=qn(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Ln(yr(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new Pn(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}},Sr=Symbol(`break visit`),Cr=Symbol(`skip children`),wr=Symbol(`remove item`);function Tr(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),Er(Object.freeze([]),e,t)}Tr.BREAK=Sr,Tr.SKIP=Cr,Tr.REMOVE=wr,Tr.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},Tr.parentCollection=(e,t)=>{let n=Tr.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function Er(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=Er(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===Sr)return Sr;else r===wr&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}function Dr(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
|
|
82
|
+
`:case`\r
|
|
83
|
+
`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}function $(e){switch(e){case void 0:case` `:case`
|
|
84
|
+
`:case`\r`:case` `:return!0;default:return!1}}var Or=new Set(`0123456789ABCDEFabcdef`),kr=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),Ar=new Set(`,[]{}`),jr=new Set(` ,[]{}
|
|
85
|
+
\r `),Mr=e=>!e||jr.has(e),Nr=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===`
|
|
86
|
+
`||t===`\r`&&this.buffer[e+1]===`
|
|
87
|
+
`}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
|
|
88
|
+
`||!t&&!this.atEnd)return e+n+1}return t===`
|
|
89
|
+
`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&$(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|
90
|
+
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===``&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===` `){t=n-1;break}n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===` `)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield``,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&$(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!$(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&$(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(Mr),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&$(r[3]))&&(n!==this.indentNext-1||this.flowLevel!==1||r[0]!==`]`&&r[0]!==`}`))return this.flowLevel=0,yield``,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(Mr),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||$(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(`
|
|
91
|
+
`,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
|
|
92
|
+
`,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>$(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case`
|
|
93
|
+
`:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
|
|
94
|
+
`)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.indentNext=this.blockScalarIndent===-1?t:this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
|
|
95
|
+
`,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===` `){for(;n===` `||n===` `||n===`\r`||n===`
|
|
96
|
+
`;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===`
|
|
97
|
+
`&&n>=this.pos&&n+1+t>i)e=n;else break}while(1);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if($(r)||e&&Ar.has(r))break;t=n}else if($(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
|
|
98
|
+
`?(n+=1,r=`
|
|
99
|
+
`,i=this.buffer[n+1]):t=n),i===`#`||e&&Ar.has(i))break;if(r===`
|
|
100
|
+
`){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&Ar.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(Mr),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if($(n)||t&&Ar.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!$(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(kr.has(t))t=this.buffer[++e];else if(t===`%`&&Or.has(this.buffer[e+1])&&Or.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
|
|
101
|
+
`?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
|
|
102
|
+
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},Pr=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function Fr(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Ir(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function Lr(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function Rr(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function zr(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function Br(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function Vr(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!Fr(t.start,`explicit-key-ind`)&&!Fr(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,Lr(t.value)?t.value.end?Br(t.value.end,t.sep):t.value.end=t.sep:Br(t.start,t.sep),delete t.sep)}var Hr=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new Nr,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Dr(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source})}else{if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&Vr(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&Ir(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:Ir(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=zr(Rr(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
|
|
103
|
+
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
104
|
+
`,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Br(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey){if(!t.sep){if(Fr(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=zr(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Fr(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Lr(t.key)&&!Fr(t.sep,`newline`)){let e=zr(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Fr(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!Fr(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Br(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||Fr(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=zr(Rr(t));Vr(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
|
|
105
|
+
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
106
|
+
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=zr(Rr(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=zr(Rr(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function Ur(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Pr||null,prettyErrors:t}}function Wr(e,t={}){let{lineCounter:n,prettyErrors:r}=Ur(t),i=new Hr(n?.addNewLine),a=new xr(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new Ln(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(zn(e,n)),o.warnings.forEach(zn(e,n))),o}function Gr(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Wr(e,n);if(!i)return null;if(i.warnings.forEach(e=>_t(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function Kr(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function qr(e){let t=e.replace(/^\uFEFF/,``).replace(/\r\n/g,`
|
|
107
|
+
`);if(!t.startsWith(`---
|
|
108
|
+
`))return{meta:{},body:t};let n=t.indexOf(`
|
|
109
|
+
---
|
|
110
|
+
`,4);return n===-1?{meta:{},body:t}:{meta:Kr(Gr(t.slice(4,n))),body:t.slice(n+5)}}var Jr={watch:`Watch`,comment:`Comments`,review:`Review`,execute:`Running`,execution:`Running`};function Yr(e,t,n){let r={},i=e;try{let t=qr(e);r=t.meta,i=t.body}catch{}let a=typeof r.agent==`string`?r.agent.trim():``,o=[`Living plan`,n?Jr[n]:typeof r.mode==`string`?Jr[r.mode]:void 0,a].filter(Boolean).join(` · `),s;try{s=m(i)}catch{return{eyebrow:o,facts:[]}}let c=[],l=s.entries.flatMap(e=>e.type===`phase`?[e]:[]);if(l.length>0){let e=l.filter(e=>e.status===`done`).length,t=l.findIndex(e=>e.status===`active`),n=t>=0?l[t]:void 0;n&&c.push({key:`current`,before:`Phase`,strong:`${t+1}`,text:`of ${l.length} · ${n.title}`,title:`Phase ${t+1} of ${l.length}: ${n.title}`}),c.push(e===l.length?{key:`done`,strong:`All`,text:`${l.length} phases done`}:{key:`done`,strong:`${e}/${l.length}`,text:`phases done`});let r=l.filter(e=>e.status===`blocked`||e.status===`failed`).length;r>0&&c.push({key:`blocked`,strong:`${r}`,text:r===1?`phase blocked`:`phases blocked`})}if(s.interactionIds.length>0){let e=s.interactionIds.filter(e=>!t.has(e)).length;c.push(e===0?{key:`open`,strong:`All`,text:`questions answered`}:{key:`open`,strong:`${e}`,text:e===1?`open question`:`open questions`})}return{eyebrow:o,facts:c}}function Xr(e){return/<DataTable\b/.test(e)}function Zr({children:e,"data-plan-block":t}){return(0,N.jsx)(`div`,{className:`rich-table`,"data-plan-block":t,children:(0,N.jsx)(`table`,{children:e})})}function Qr(e){if(e.type!==`checkbox`)return(0,N.jsx)(`input`,{...e});let t=!!e.checked;return(0,N.jsx)(`span`,{role:`checkbox`,"aria-checked":t,"aria-readonly":`true`,className:`plan-checkbox-control plan-task-checkbox`,"data-checked":t?``:void 0,"data-unchecked":t?void 0:``,children:t?(0,N.jsx)(`span`,{className:`plan-checkbox-indicator`,children:(0,N.jsx)(fe,{size:14,strokeWidth:2.5,"aria-hidden":`true`})}):null})}function $r(e){let t=e.querySelector(`[data-plan-rendered]`);if(!t)return[];let n=new Set;for(let e of t.children)e instanceof HTMLElement&&n.add(e);for(let e of t.querySelectorAll(`[data-entry]`))n.add(e);return[...n]}function ei(e){if(!e||typeof window>`u`)return null;let t=e.querySelector(`[data-plan-rendered]`);if(!t)return null;for(let e of t.children){let t=e.getBoundingClientRect();if(t.bottom>0&&t.height>0)return{element:e,top:t.top,scrollY:window.scrollY}}return null}function ti(e){if(e){if(e.element.isConnected){let t=e.element.getBoundingClientRect().top-e.top;Math.abs(t)>=1&&window.scrollBy(0,t)}else Math.abs(window.scrollY-e.scrollY)>=1&&window.scrollTo(0,e.scrollY)}}function ni(e){let t=new Map;return $r(e).forEach((e,n)=>{let r=e.dataset.planPart||`${e.tagName}:${n}`;t.has(r)||t.set(r,{element:e,text:ri(e)})}),t}function ri(e){let t=[],n=e=>{if(e instanceof HTMLElement){if(e.matches(`.code-host, .mermaid-diagram`)){t.push(e.dataset.source??``);return}e.dataset.status&&t.push(`[${e.dataset.status}]`)}e.nodeType===Node.TEXT_NODE&&t.push(e.textContent??``);for(let t of e.childNodes)n(t)};return n(e),t.join(``)}function ii(e,t,n){let r=[];for(let[e,{element:i,text:a}]of n){let n=t.get(e);(!n||n.text!==a)&&r.push(i)}let i=r.filter(e=>!r.some(t=>t!==e&&e.contains(t)));if(i.length===0||i.length>Math.max(4,n.size/2))return[];for(let e of i)e.classList.remove(`plan-changed`),e.offsetWidth,e.classList.add(`plan-changed`),e.addEventListener(`animationend`,()=>e.classList.remove(`plan-changed`),{once:!0});return i}var ai=`living-plan:draft:`;function oi(e){return`${ai}${e}`}function si(e){try{let t=window.localStorage.getItem(oi(e));if(!t)return null;let n=JSON.parse(t);if(typeof n.base!=`string`)return null;let r=typeof n.savedAt==`number`?n.savedAt:0;if(typeof n.source==`string`){let e=typeof n.edits==`number`?n.edits:1;if(n.rebase===void 0)return{base:n.base,source:n.source,edits:e,savedAt:r};let t=ci(n.rebase);if(t)return{base:n.base,source:n.source,edits:e,savedAt:r,rebase:t};let i=n.rebase;return i&&typeof i.base==`string`&&typeof i.mine==`string`?{base:i.base,source:i.mine,edits:e,savedAt:r}:{base:n.base,source:n.source,edits:e,savedAt:r}}return typeof n.markdown==`string`?{base:n.base,markdown:n.markdown,savedAt:r}:null}catch{return null}}function ci(e){if(!e||typeof e!=`object`)return;let t=e;if(typeof t.base!=`string`||typeof t.mine!=`string`||!Array.isArray(t.conflicts))return;let n={};for(let[e,r]of Object.entries(t.keep&&typeof t.keep==`object`?t.keep:{}))(r===`mine`||r===`theirs`)&&(n[e]=r);let r=[];for(let e of t.conflicts){let t=e??{};if(typeof t.key!=`string`||typeof t.label!=`string`||typeof t.mine!=`string`||typeof t.theirs!=`string`)return;r.push({key:t.key,label:t.label,...typeof t.within==`string`?{within:t.within}:{},mine:t.mine,theirs:t.theirs,minePreview:typeof t.minePreview==`string`?t.minePreview:``})}return r.length>0?{base:t.base,mine:t.mine,keep:n,conflicts:r}:void 0}function li(e){return!(`source`in e)}function ui(e,t){try{return window.localStorage.setItem(oi(e),JSON.stringify(t)),!0}catch{return!1}}function di(e){try{window.localStorage.removeItem(oi(e))}catch{}}function fi(e,t){return t instanceof Element&&t.closest(`[data-plan-apply-bar], [data-plan-block-tools]`)?!0:t instanceof Node&&e.contains(t)}function pi(e){return(e.textContent??``).replace(/ /g,` `).replace(/\s*[\r\n]+\s*/g,` `)}function mi(e,t){let n=Array.from(e.childNodes),r=n.map(e=>e instanceof Text?e.data:null),i=pi(e),a=e.closest(`a`),o=a?.getAttribute(`draggable`)??null;a?.setAttribute(`draggable`,`false`),e.contentEditable=`plaintext-only`,e.contentEditable!==`plaintext-only`&&(e.contentEditable=`true`),e.dataset.planTitleEditing=``,e.setAttribute(`role`,`textbox`),e.setAttribute(`aria-label`,`Title`),e.spellcheck=!0;let s=!1,c=t=>{e.replaceChildren(...n);let i=n.filter(e=>e instanceof Text);n.forEach((e,t)=>{let n=r[t];e instanceof Text&&n!=null&&e.data!==n&&(e.data=n)}),t!==void 0&&i.length===1&&n.length===1&&(i[0].data=t)},l=t=>{e.removeAttribute(`contenteditable`),delete e.dataset.planTitleEditing,e.removeAttribute(`role`),e.removeAttribute(`aria-label`),e.removeAttribute(`spellcheck`),a&&(o===null?a.removeAttribute(`draggable`):a.setAttribute(`draggable`,o)),c(t),document.removeEventListener(`pointerdown`,d,!0),window.removeEventListener(`click`,f,!0),e.removeEventListener(`keydown`,p),e.removeEventListener(`beforeinput`,m),e.removeEventListener(`paste`,h),e.removeEventListener(`focusout`,g)},u=n=>{if(s)return;s=!0;let r=pi(e).trim(),a=document.activeElement===e,o=n&&r!==``&&r!==i.trim();l(o?r:void 0),a&&e.blur(),o?Promise.resolve(t.done(r)).then(e=>{e||c()},()=>c()):t.cancel()},d=t=>{!y(t)&&!fi(e,t.target)&&u(!0)},f=t=>{t.target instanceof Node&&e.contains(t.target)?t.preventDefault():fi(e,t.target)||T(t)&&u(!0)},p=t=>{t.isComposing||(t.key===`Enter`?(t.preventDefault(),t.stopPropagation(),u(!0)):t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),u(pi(e)!==i)))},m=e=>{(e.inputType===`insertParagraph`||e.inputType===`insertLineBreak`)&&e.preventDefault()},h=e=>{let t=e.clipboardData?.getData(`text/plain`);t!==void 0&&(e.preventDefault(),document.execCommand(`insertText`,!1,t.replace(/\s*[\r\n]+\s*/g,` `)))},g=t=>{t.relatedTarget===null||fi(e,t.relatedTarget)||u(!0)};if(document.addEventListener(`pointerdown`,d,!0),window.addEventListener(`click`,f,!0),e.addEventListener(`keydown`,p),e.addEventListener(`beforeinput`,m),e.addEventListener(`paste`,h),e.addEventListener(`focusout`,g),e.focus({preventScroll:!0}),!x(e,t.caret??2**53-1)){let t=window.getSelection();t?.selectAllChildren(e),t?.collapseToEnd()}return{finish:()=>u(!0),stop:()=>{s||(s=!0,l())}}}var hi=/[\w.:-]/;function gi(e,t){let n=0;for(let r=t;r<e.length;r+=1){let t=e[r];if(t===`"`||t===`'`||t==="`"){let n=e.indexOf(t,r+1);if(n<0)return e.length;r=n}else if(t===`{`)n+=1;else if(t===`}`&&(--n,n===0))return r+1}return e.length}function _i(e,t,n){if(e[t]!==`<`)return null;let r=t+1;for(;r<e.length&&hi.test(e[r]);)r+=1;for(;r<e.length;){for(;r<e.length&&/\s/.test(e[r]);)r+=1;let t=e[r];if(t===void 0||t===`>`||t===`/`)return null;if(t===`{`){r=gi(e,r);continue}let i=r;for(;r<e.length&&!/[\s=/>{]/.test(e[r]);)r+=1;let a=e.slice(i,r);if(r===i)return null;for(;r<e.length&&/\s/.test(e[r]);)r+=1;if(e[r]!==`=`)continue;for(r+=1;r<e.length&&/\s/.test(e[r]);)r+=1;let o=e[r];if(o===`"`||o===`'`){let t=e.indexOf(o,r+1);if(t<0)return null;if(a===n)return{start:r+1,end:t,quote:o};r=t+1}else if(o===`{`)r=gi(e,r);else return null}return null}function vi(e,t,n,r){let i=E(e),a=_i(e,i+t.start,n);if(!a||a.end>i+t.end)return null;let o=e.slice(a.start,a.end),s=r.trim();if(!s)return null;let c=o===s?0:o.lastIndexOf(s);return c<0?null:{start:a.start-i+c,end:a.start-i+c+s.length,quote:a.quote}}function yi(e,t){return e.replace(/ /g,` `).replace(/\s*[\r\n]+\s*/g,` `).trim().replace(/&(?=#?\w+;)/g,`&`).replace(t===`"`?/"/g:/'/g,t===`"`?`"`:`'`)}function bi(e,t,n){let r=yi(n,t.quote);if(!r)return e;let i=E(e);return`${e.slice(0,i+t.start)}${r}${e.slice(i+t.end)}`}function xi(){return document.querySelector(`[data-plan-rendered]`)}function Si(e){return e instanceof HTMLElement?e.dataset.planBlock??e.dataset.planEditBlock:void 0}var Ci=`[data-plan-block], [data-plan-block-editor][data-plan-edit-block]`;function wi(e){let t=xi(),n=e.parentElement?.closest(`[data-plan-block]`)??null;return n&&t?.contains(n)?n:null}function Ti(e){let t=xi();return t?Array.from((e??t).querySelectorAll(Ci)).filter(t=>wi(t)===e&&!t.parentElement?.closest(`[data-plan-block-editor]`)):[]}function Ei(e){return e instanceof HTMLElement&&!!Si(e)&&!e.parentElement?.closest(`[data-edit-locked="true"]`)}function Di(e){let t=e;for(;t&&!Ei(t);)t=wi(t);return t}function Oi(e,t){for(let[n,r]of e.entries()){let i=r.getBoundingClientRect(),a=e[n+1]?.getBoundingClientRect().top??i.bottom;if(t>=i.top&&t<a)return r}return null}function ki(e,t){let n=xi();if(!n||!(e instanceof Element)||!n.contains(e))return null;let r=e.closest(`[data-plan-block-editor]`);if(r)return r.hasAttribute(`data-plan-edit-block`)&&Ei(r)?r:null;let i=C(e);return Di(Oi(Ti(i),t)??i)}var Ai=6;function ji(e){let t=Ti(null),n=e.querySelector(`[data-plan-block]`)!==null,r=[null];if(!n)for(let n of t)n!==e&&!b(n)&&Ti(n).length>0&&r.push(n);let i=[];for(let n of r){let r=(n?Ti(n):t).filter(t=>t!==e);if(r.length===0)continue;let a=r.map(e=>e.getBoundingClientRect()),o=Math.min(...a.map(e=>e.left)),s=Math.max(...a.map(e=>e.right))-o;a.forEach((e,t)=>{let c=t===0?e.top-Ai:(a[t-1].bottom+e.top)/2;i.push({target:r[t],place:`before`,container:n,index:t,y:c,left:o,width:s})}),i.push({target:r[r.length-1],place:`after`,container:n,index:r.length,y:a[a.length-1].bottom+Ai,left:o,width:s})}return i}function Mi(e,t){let n=wi(e);return t.container===n&&t.index===Ti(n).indexOf(e)}var Ni=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="9" cy="12" r="1"/><circle cx="9" cy="5" r="1"/><circle cx="9" cy="19" r="1"/><circle cx="15" cy="12" r="1"/><circle cx="15" cy="5" r="1"/><circle cx="15" cy="19" r="1"/></svg>`,Pi=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m5 12 7-7 7 7"/><path d="M12 19V5"/></svg>`,Fi=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 6h18"/><path d="M8 6V4h8v2"/><path d="m19 6-1 14H6L5 6"/><path d="M10 11v6"/><path d="M14 11v6"/></svg>`,Ii=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14"/><path d="M5 12h14"/></svg>`,Li=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14"/><path d="m19 12-7 7-7-7"/></svg>`,Ri=16,zi=2,Bi=300,Vi=5,Hi=56,Ui=14,Wi=4e3;function Gi(e,t,n){let r=document.createElement(`button`);return r.type=`button`,r.setAttribute(`role`,`menuitem`),e===`delete`?r.dataset.planBlockMoveDelete=``:e===`add`?r.dataset.planBlockMoveAdd=``:r.dataset.planBlockMoveStep=e,r.innerHTML=`${n}<span>${t}</span>`,r}var Ki=`Delete`,qi=`Delete this block?`;function Ji(e){let t=document.createElement(`button`);t.type=`button`,t.className=`plan-block-move`,t.dataset.planBlockMove=``,t.tabIndex=-1,t.setAttribute(`aria-label`,`Move this block`),t.title=`Drag to move · click for Add below, Move up, Move down, and Delete`,t.setAttribute(`aria-haspopup`,`menu`),t.setAttribute(`aria-expanded`,`false`),t.setAttribute(`aria-keyshortcuts`,`Alt+ArrowUp Alt+ArrowDown`),t.innerHTML=Ni;let n=document.createElement(`div`);n.className=`plan-block-move-menu`,n.dataset.planBlockMoveMenu=``,n.setAttribute(`role`,`menu`),n.setAttribute(`aria-label`,`Block actions`),n.hidden=!0;let r=Gi(`add`,`Add below`,Ii),i=Gi(`up`,`Move up`,Pi),a=Gi(`down`,`Move down`,Li),o=Gi(`delete`,Ki,Fi),s=o.querySelector(`span`);n.append(r,i,a,o);let c=document.createElement(`div`);c.className=`plan-block-move-line`,c.dataset.planBlockMoveLine=``,c.setAttribute(`aria-hidden`,`true`),c.hidden=!0,document.body.append(t,n,c);let l=null,u=!1,d=0,f=0,p=0,m=!1,g=null,_=null,v=null,x=null,S=[],ee=e=>e instanceof Node&&(t.contains(e)||n.contains(e)),w=()=>e.state().editable&&document.body.dataset.planMode!==`comment`&&_===null,T=e=>{let t=Si(e);return t?{range:t,source:g}:null},te=e=>{let t=e?Number(/^(\d+)-/.exec(e.range)?.[1]):NaN;if(!e||!Number.isFinite(t))return null;let n=e.source!==null&&g!==null?h(e.source,g,t):t;return n===null?null:Array.from(xi()?.querySelectorAll(Ci)??[]).find(e=>Number(/^(\d+)-/.exec(Si(e)??``)?.[1])===n&&!e.parentElement?.closest(`[data-plan-block-editor]`))??null},E=()=>new Promise(t=>{if(!e.state().editing){t(!0);return}let n=()=>{window.clearTimeout(r),t(!0)},r=window.setTimeout(()=>{S=S.filter(e=>e!==n),t(!1)},Wi);S.push(n)}),D=()=>{if(e.state().editing||S.length===0)return;let t=S;S=[];for(let e of t)e()},ne=()=>{delete o.dataset.confirm,s.textContent=Ki},O=()=>{u=!1,n.hidden=!0,t.setAttribute(`aria-expanded`,`false`),ne()},k=()=>{window.clearTimeout(p),O(),l=null,t.removeAttribute(`data-visible`)},re=()=>{let e=Number.parseFloat(t.style.top)||0,r=Number.parseFloat(t.style.left)||0,i=n.offsetWidth||160;n.style.top=`${e+(t.offsetHeight||24)+4}px`,n.style.left=`${Math.max(window.scrollX+8,Math.min(r,window.scrollX+window.innerWidth-i-8))}px`},ie=()=>{if(!l)return!1;if(l.isConnected)return!0;let e=te(x);return!e||!Ei(e)?!1:(l=e,x=T(e),!0)},ae=()=>{if(!l||!ie())return k();let e=l.getBoundingClientRect();if(!v&&(e.bottom<0||e.top>window.innerHeight))return k();let n=t.offsetWidth||Ri,r=t.offsetHeight||24,i=getComputedStyle(l),a=(Number.parseFloat(i.paddingTop)||0)+(Number.parseFloat(i.borderTopWidth)||0),o=Number.parseFloat(i.lineHeight),s=Number.isFinite(o)?Math.max(0,(o-r)/2):0,c=document.querySelector(`header.titlebar`)?.getBoundingClientRect().bottom??0,d=e.left>=n+4,f=d?e.left-n-zi:Math.max(4,e.left),p=d?e.top+a+s:e.top+a-r-2,m=Math.min(Math.max(p,c+8),e.bottom-r);t.style.top=`${m+window.scrollY}px`,t.style.left=`${f+window.scrollX}px`,u&&re()},A=e=>{window.clearTimeout(p),e!==l&&O(),l=e,x=T(e),t.setAttribute(`data-visible`,``),ae()},oe=e=>{if(!l)return;let s=Ti(wi(l)),c=s.indexOf(l);i.disabled=c<=0,a.disabled=c<0||c>=s.length-1,o.disabled=b(l)||l.querySelector(`[data-edit-locked="true"]`)!==null,o.title=o.disabled?`A locked block stays in the plan`:``,ne(),u=!0,n.hidden=!1,t.setAttribute(`aria-expanded`,`true`),re(),e&&[r,i,a].find(e=>!e.disabled)?.focus({preventScroll:!0})},j=(e,n)=>{if(v||u)return;if(ee(e)){window.clearTimeout(p);return}let r=w()?ki(e,n):null;r?(window.clearTimeout(p),(r!==l||!t.hasAttribute(`data-visible`))&&A(r)):l&&!u&&(window.clearTimeout(p),p=window.setTimeout(k,Bi))},se=e=>{if(y(e))return;let{target:t,clientY:n}=e;cancelAnimationFrame(d),d=requestAnimationFrame(()=>j(t,n))},ce=e=>{y(e)&&!ee(e.target)&&j(e.target,e.clientY)},le=e=>{if(ee(e.target)||!(e.target instanceof Element))return;let t=w()?Di(C(e.target)):null;t&&A(t)},ue=()=>{l&&ae()},de=()=>{let e=_;return _=null,e&&window.clearTimeout(e.timer),e},fe=async(t,n,r,i)=>{if(!await E())return;let a=te(t),o=te(n),s=a?.dataset.planBlock,c=o?.dataset.planBlock;if(!a||!o||!s||!c||!w()||a.querySelector(`[data-plan-block]`)&&wi(o))return;k(),_={source:null,range:null,...i,timer:window.setTimeout(de,Wi)};let l=null;try{l=await e.move(s,c,r)}catch{l=null}!l||!_?de():(_.source=l.source,_.range=l.range,g===l.source&&me(l.source))},pe=async(t,n,r)=>{if(!t)return;let i=t.isConnected?T(t):x;if(e.state().editing&&(e.finishEditing(),!await E()))return;let a=te(i);if(!a)return;let o=Ti(wi(a)),s=o[o.indexOf(a)+n];s&&fe(T(a),T(s),n<0?`before`:`after`,r)};function me(e){let n=g;if(g=e,x&&x.source===null&&(x={range:x.range,source:n}),he(),n!==e&&v&&!v.block.isConnected){let e=te(v.from);e&&(v.block=e,v.moved&&e.setAttribute(`data-plan-moving`,``))}if(D(),!_?.source||_.source!==e)return;let r=de();if(!r?.range||!w())return;let i=xi()?.querySelector(`[data-plan-block="${r.range}"]`);i&&Ei(i)&&(A(i),r.menu?oe(r.focus):r.focus&&t.focus({preventScroll:!0}))}function he(){l&&!l.isConnected&&(ie()?(ae(),u&&oe(!1)):k())}let M=()=>{!w()&&!_?k():he(),D()},N=()=>{if(!v)return;let e=null,t=1/0;for(let n of ji(v.block)){let r=Math.abs(n.y-v.y);r<t&&(t=r,e=n)}v.slot=e,c.hidden=e===null,e&&(c.dataset.level=e.container?`phase`:`top`,c.style.top=`${e.y+window.scrollY-1.5}px`,c.style.left=`${e.left+window.scrollX}px`,c.style.width=`${e.width}px`)},ge=()=>{if(!v?.moved)return;let e=document.querySelector(`header.titlebar`)?.getBoundingClientRect().bottom??0,t=v.y<e+Hi?-14:v.y>window.innerHeight-Hi?Ui:0;t!==0&&(window.scrollBy(0,t),N()),f=requestAnimationFrame(ge)},_e=e=>{let n=v;n&&(v=null,cancelAnimationFrame(f),c.hidden=!0,n.block.removeAttribute(`data-plan-moving`),delete document.body.dataset.planBlockMoving,t.hasPointerCapture(n.pointerId)&&t.releasePointerCapture(n.pointerId),n.moved&&(m=!0,window.setTimeout(()=>{m=!1},0),e||!n.slot||Mi(n.block,n.slot)?n.block.isConnected&&A(n.block):fe(n.block.isConnected?T(n.block):n.from,T(n.slot.target),n.slot.place,{menu:!1,focus:!1})))},ve=n=>{if(!l||n.button!==0||!w())return;n.preventDefault();let r=l.isConnected?T(l):x;e.state().editing&&e.finishEditing(),t.setPointerCapture(n.pointerId),v={block:l,from:r,pointerId:n.pointerId,startY:n.clientY,y:n.clientY,moved:!1,slot:null}},ye=e=>{if(v&&v.pointerId===e.pointerId){if(v.y=e.clientY,!v.moved){if(Math.abs(e.clientY-v.startY)<Vi)return;v.moved=!0,O(),v.block.setAttribute(`data-plan-moving`,``),document.body.dataset.planBlockMoving=``,f=requestAnimationFrame(ge)}N()}},be=e=>{v?.pointerId===e.pointerId&&_e(!1)},xe=e=>{v?.pointerId===e.pointerId&&_e(!0)},P=e=>{!m&&l&&(u?O():w()&&oe(e.detail===0))},Se=async()=>{if(!l||o.disabled)return;if(o.dataset.confirm===void 0){o.dataset.confirm=``,s.textContent=qi;return}let t=l.isConnected?T(l):x;if(k(),e.state().editing&&(e.finishEditing(),!await E()))return;let n=te(t)?.dataset.planBlock;n&&w()&&await e.remove(n)},F=()=>void Se(),Ce=async()=>{if(!l)return;let t=l.isConnected?T(l):x;if(k(),e.state().editing&&(e.finishEditing(),!await E()))return;let n=te(t),r=n?.dataset.planBlock;n&&r&&w()&&e.add(r,n)},I=()=>void Ce(),L=()=>void pe(l,-1,{menu:!0,focus:document.activeElement===i}),R=()=>void pe(l,1,{menu:!0,focus:document.activeElement===a}),we=e=>{if(e.key===`Escape`){if(v)_e(!0);else if(u){let e=n.contains(document.activeElement);O(),e&&t.focus({preventScroll:!0})}return}if(e.key!==`ArrowUp`&&e.key!==`ArrowDown`||!e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;let r=e.target,i=ee(r);if(!i&&r instanceof HTMLElement&&(r.closest(`input, textarea, select`)||r.isContentEditable)||!w())return;let a=i?l:Di(C(document.activeElement));a&&(e.preventDefault(),i||A(a),pe(a,e.key===`ArrowUp`?-1:1,{menu:u,focus:!0}))},z=e=>{u&&!ee(e.target)&&O()};return t.addEventListener(`pointerdown`,ve),t.addEventListener(`pointermove`,ye),t.addEventListener(`pointerup`,be),t.addEventListener(`pointercancel`,xe),t.addEventListener(`lostpointercapture`,xe),t.addEventListener(`click`,P),r.addEventListener(`click`,I),i.addEventListener(`click`,L),a.addEventListener(`click`,R),o.addEventListener(`click`,F),document.addEventListener(`pointermove`,se,{passive:!0}),window.addEventListener(`pointerup`,ce,{capture:!0,passive:!0}),document.addEventListener(`pointerdown`,z,{passive:!0}),document.addEventListener(`focusin`,le),document.addEventListener(`keydown`,we),window.addEventListener(`scroll`,ue,{passive:!0}),window.addEventListener(`resize`,ue),{stop:()=>{cancelAnimationFrame(d),cancelAnimationFrame(f),window.clearTimeout(p),de(),v&&_e(!0),t.removeEventListener(`pointerdown`,ve),t.removeEventListener(`pointermove`,ye),t.removeEventListener(`pointerup`,be),t.removeEventListener(`pointercancel`,xe),t.removeEventListener(`lostpointercapture`,xe),t.removeEventListener(`click`,P),r.removeEventListener(`click`,I),i.removeEventListener(`click`,L),a.removeEventListener(`click`,R),o.removeEventListener(`click`,F),document.removeEventListener(`pointermove`,se),window.removeEventListener(`pointerup`,ce,{capture:!0}),document.removeEventListener(`pointerdown`,z),document.removeEventListener(`focusin`,le),document.removeEventListener(`keydown`,we),window.removeEventListener(`scroll`,ue),window.removeEventListener(`resize`,ue),t.remove(),n.remove(),c.remove()},rendered:me,refresh:M}}var Yi=new Map;function Xi(e){return`${window.__LIVE_PLAN_BASE__??``}${e}`}function Zi(){let e=document.getElementById(`living-plan-mdx`),t={source:``,title:``,responses:{},locked:!1,snapshots:[],headSnapshotId:null};if(!e?.textContent)return t;try{let t=JSON.parse(e.textContent);return{source:typeof t.source==`string`?t.source:``,title:typeof t.title==`string`?t.title:``,responses:t.responses??{},locked:!!t.locked,snapshots:Array.isArray(t.snapshots)?t.snapshots:[],headSnapshotId:typeof t.headSnapshotId==`string`?t.headSnapshotId:null}}catch{return t}}function Qi(){try{let e=JSON.parse(document.getElementById(`living-plan-mdx`)?.textContent??`null`);return typeof e?.revision==`number`?e.revision:null}catch{return null}}function $i(e){let t=e?.revision;return typeof t==`number`?t:null}function ea(e){let t=Yi.get(e);if(t)return t;let n=S(e).then(async e=>(await he(String(e),{...N})).default);return Yi.set(e,n),n.catch(()=>{Yi.get(e)===n&&Yi.delete(e)}),n}async function ta(e){let t=await r(`interaction`,Xi(`/api/interactions/${encodeURIComponent(e.id)}`),e);if(!t.ok&&!t.queued)throw Error(t.text||`Could not send`)}function na(e){return[e,`block`].filter(Boolean).join(` `)}var ra=(0,M.createContext)(null),ia=(0,M.createContext)(null);function aa({id:e,blockRange:t,children:n,editing:r}){let i=(0,M.useContext)(ia),a=(0,N.jsx)(`h1`,{id:e,"data-plan-block":t,children:n});return(0,N.jsxs)(N.Fragment,{children:[i?.eyebrow?(0,N.jsx)(`p`,{className:`plan-head-eyebrow`,"data-plan-head":``,children:i.eyebrow}):null,r?(0,N.jsx)(Aa,{replaced:null,fallback:a,blockRange:t}):a,i&&i.facts.length>0?(0,N.jsx)(`ul`,{className:`plan-head-facts`,"data-plan-head":``,"aria-label":`Plan progress`,children:i.facts.map(e=>(0,N.jsxs)(`li`,{className:`plan-head-fact`,title:e.title,children:[e.before?`${e.before} `:null,(0,N.jsx)(`b`,{children:e.strong}),` `,e.text]},e.key))}):null]})}function oa(){let[e,t]=(0,M.useState)(()=>typeof navigator>`u`||navigator.onLine);return(0,M.useEffect)(()=>{let e=()=>t(navigator.onLine);return window.addEventListener(`online`,e),window.addEventListener(`offline`,e),()=>{window.removeEventListener(`online`,e),window.removeEventListener(`offline`,e)}},[]),e}function sa(){let[e,t]=(0,M.useState)(()=>document.body.dataset.planMode);return(0,M.useEffect)(()=>{let e=new MutationObserver(()=>t(document.body.dataset.planMode));return e.observe(document.body,{attributes:!0,attributeFilter:[`data-plan-mode`]}),()=>e.disconnect()},[]),e}function ca({level:e,children:t,"data-plan-block":n,"data-plan-text":r,"data-plan-editing":i}){let a=(0,M.useContext)(ra),o,s=a?a.current.n===0:!1;if(a&&(o=a.current.ids[a.current.n],a.current.n+=1),e===1&&s&&!r)return(0,N.jsx)(aa,{id:o,blockRange:n,editing:i,children:t});let c=e===1?(0,N.jsx)(`h1`,{id:o,"data-plan-block":n,"data-plan-text":r,children:t}):e===2?(0,N.jsx)(`h2`,{id:o,"data-plan-block":n,"data-plan-text":r,children:t}):(0,N.jsx)(`h3`,{id:o,"data-plan-block":n,"data-plan-text":r,children:t});return i?(0,N.jsx)(Aa,{replaced:null,fallback:c,blockRange:n}):c}function la(e){return(0,N.jsx)(ca,{level:1,...e})}function ua(e){return(0,N.jsx)(ca,{level:2,...e})}function da(e){return(0,N.jsx)(ca,{level:3,...e})}var fa=()=>o(()=>import(`./BlockEditor-BklSUBjk.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])),pa=(0,M.lazy)(()=>fa().then(e=>({default:e.BlockEditor})));function ma(){let e=document.querySelector(`[data-plan-rendered]`);return(e?Array.from(e.children).filter(e=>e instanceof HTMLElement&&e.hasAttribute(`data-plan-block`)):[]).at(-1)??null}function ha(e,t){return e.trimEnd()===t.trimEnd()}var ga=(0,M.createContext)(null);function _a(e){if(e.target.kind===`title`)return null;if(e.target.kind===`edit`){let t=v(e.target.range);return t?{kind:`edit`,range:t,inline:e.target.inline}:null}if(e.target.kind===`cell`){let t=D(e.target.range);return t?{kind:`cell`,range:t}:null}if(e.target.after===null)return{kind:`add`,after:null};let t=v(e.target.after);return t?{kind:`add`,after:t,inline:e.target.inline}:null}async function va(e,t){let n;try{n=await fetch(Xi(`/api/plan-mdx/source`),{method:`PUT`,headers:{"content-type":`application/json`},credentials:`same-origin`,body:JSON.stringify({base:e,source:t})})}catch{return{ok:!1,message:`Could not reach the plan. The draft is still on this device; publish again when you are back online.`}}if(n.ok)return{ok:!0,payload:await n.json()};let r=await n.text().catch(()=>``),i=r;try{let e=JSON.parse(r);i=String(e.error??e.message??r)}catch{}return{ok:!1,message:i||`Could not save the plan (${n.status})`,status:n.status}}var ya=()=>o(()=>import(`./rebaseDraft-B2--cj1c.js`),__vite__mapDeps([34,22,1,9,23,27]));async function ba(e,t,n){let r=e.rebase??{base:e.base,mine:e.source};try{let{rebaseDraft:i}=await ya(),a=i({base:r.base,mine:r.mine,theirs:t,keep:n});if(await ee(a.source))return null;let o={base:t,source:a.source,edits:e.edits,savedAt:e.savedAt};return a.conflicts.length===0?o:{...o,rebase:{base:r.base,mine:r.mine,keep:n,conflicts:a.conflicts}}}catch{return null}}function xa(e){return e.mine?e.theirs?`Yours: ${e.minePreview}`:`The agent removed it. Yours: ${e.minePreview}`:`You removed it. The agent changed it.`}var Sa=(0,M.lazy)(()=>o(()=>import(`./CodeBlock-BbI08MlQ.js`).then(e=>({default:e.CodeBlock})),__vite__mapDeps([35,4,1,2,5,6,7,8,9,10,11,12])));function Ca({children:e}){let t=M.Children.toArray(e).find(e=>(0,M.isValidElement)(e)),n=t&&(0,M.isValidElement)(t)?t.props.className??``:``,r=t&&(0,M.isValidElement)(t)?le(t.props[`data-meta`]):void 0,i=t&&(0,M.isValidElement)(t)?t.props[`data-plan-block`]:void 0,a=/language-([\w+-]+)/.exec(n)?.[1]??``,o=a===`diff`||a===`patch`,s=wa(t&&(0,M.isValidElement)(t)?t.props.children:e).replace(/\n$/,``);return(0,N.jsx)(`div`,{className:`code-host`,"data-react-code":``,"data-source":s,"data-plan-block":i,children:(0,N.jsx)(M.Suspense,{fallback:(0,N.jsx)(`pre`,{className:`code-block`,"data-react-code":``,"data-lang":a&&!o?a:void 0,"data-diff":o?`true`:void 0,children:(0,N.jsx)(`code`,{children:s})}),children:(0,N.jsx)(Sa,{code:s,language:o?``:a,diff:o,startingLineNumber:o?void 0:r})})})}function wa(e){return typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(wa).join(``):(0,M.isValidElement)(e)?wa(e.props.children):``}function Ta({Content:e,components:t,source:n}){let r=(0,M.useContext)(ga),i=Na(e({components:t}));return!r||r.open.source!==n?(0,N.jsx)(N.Fragment,{children:i}):(0,N.jsx)(N.Fragment,{children:ja(i,r.open)})}function Ea(e){let t=e.props;return typeof t[`data-plan-text`]==`string`?t[`data-plan-text`]:Da(e)}function Da(e){let t=e.props;if(typeof t[`data-plan-block`]==`string`)return t[`data-plan-block`];if(e.type!==Ca)return;let n=M.Children.toArray(t.children).find(e=>(0,M.isValidElement)(e)),r=n&&(0,M.isValidElement)(n)?n.props[`data-plan-block`]:void 0;return typeof r==`string`?r:void 0}var Oa=new Set([la,ua,da]);function ka(e){return Array.isArray(e)?e.reduce((e,t)=>e+ka(t),0):(0,M.isValidElement)(e)?+!!Oa.has(e.type)+ka(e.props.children):0}function Aa({replaced:e,fallback:t,blockRange:n}){let r=(0,M.useContext)(ga),i=(0,M.useContext)(ra),[a,o]=(0,M.useState)(null),s=r?_a(r.open):null,c=r&&s&&s.kind!==`add`&&a!==r.open.id?t??e??null:null;if(i&&e&&c!==e&&(i.current.n+=ka(e)),!r||!s)return t??e;let l=r.open.id,u=c!==null;return(0,N.jsxs)(N.Fragment,{children:[c,(0,N.jsx)(M.Suspense,{fallback:u?null:(0,N.jsx)(`div`,{className:`plan-block-editor-hold`,"data-plan-block-editor":`loading`,"aria-hidden":`true`,style:{marginTop:r.open.margins?.top,marginBottom:r.open.margins?.bottom,minHeight:r.open.height}}),children:(0,N.jsx)(pa,{source:r.open.source,target:s,commit:r.commit,onCancel:r.cancel,caret:r.open.caret,margins:r.open.margins,height:r.open.height,closing:r.open.committed!==void 0,registerDone:r.register,staged:u,onShown:()=>o(l),onDirty:r.dirty,blockRange:s.kind===`edit`?n??(e?Da(e):void 0):void 0},l)})]})}function ja(e,t){let n=(e,t)=>(0,N.jsx)(Aa,{replaced:e},t);return t.target.kind===`add`&&t.target.after===null?[...Array.isArray(e)?e:[e],n(null,`plan-block-new`)]:Ma(e,t,n)??e}function Ma(e,t,n){let r=Array.isArray(e)?e:[e];for(let[i,a]of r.entries()){if(Array.isArray(a)){let o=Ma(a,t,n);if(o===null)continue;let s=[...r];return s[i]=o,Array.isArray(e)?s:s[0]}if(!(0,M.isValidElement)(a))continue;if(t.target.kind===`cell`&&a.props[`data-plan-cell-range`]===t.target.range){let t=a.props,n=[...r];return n[i]=(0,M.cloneElement)(a,{children:(0,N.jsx)(Aa,{replaced:null,fallback:t.children},`plan-cell-edit`)}),Array.isArray(e)?n:n[0]}let o=Ea(a);if(o!==void 0&&t.target.kind===`edit`&&o===t.target.range){let t=[...r];return t[i]=Oa.has(a.type)?(0,M.cloneElement)(a,{"data-plan-editing":!0}):n(a,a.key??`plan-block-edit-${i}`),Array.isArray(e)?t:t[0]}if(o!==void 0&&t.target.kind===`add`&&o===t.target.after){let t=[...r];return a.key===null?t[i]=(0,N.jsxs)(M.Fragment,{children:[a,n(null,`plan-block-new`)]},`plan-block-add-${i}`):t.splice(i+1,0,n(null,`plan-block-new`)),Array.isArray(e)?t:t.length===1?t[0]:t}let s=a.props.children;if(typeof s!=`object`||!s)continue;let c=Ma(s,t,n);if(c===null)continue;let l=[...r];return l[i]=(0,M.cloneElement)(a,{children:c}),Array.isArray(e)?l:l[0]}return null}function Na(e){let t=(0,M.isValidElement)(e)&&e.type===Symbol.for(`react.fragment`)?e.props.children:e,n=new Map;return M.Children.map(t,e=>{if(!(0,M.isValidElement)(e))return e;let t=e,r=typeof t.type==`string`?t.type:t.type.name||`block`,i=typeof t.props.id==`string`?t.props.id:``,a=i?`${r}:${i}`:r,o=(n.get(a)??0)+1;return n.set(a,o),(0,M.cloneElement)(t,{key:o===1&&i?a:`${a}#${o}`})})}var Pa=(0,M.createContext)({responses:{},locked:!1});function Fa(e){e.stopPropagation()}function Ia(e){ta(e)}function La(e){let{responses:t,locked:n}=(0,M.useContext)(Pa),r=t[e.id];return(0,N.jsx)(`div`,{onClick:Fa,onSubmit:Fa,"data-edit-locked":j(e.locked,!1),"data-plan-block":e[`data-plan-block`],children:(0,N.jsx)(se,{...e,className:na(e.className),locked:n,selectedId:r?.kind===`choice`?r.optionId:void 0,selectedLabel:r?.kind===`choice`?r.label:void 0,onSelect:Ia})})}function Ra(e){let{responses:t,locked:n}=(0,M.useContext)(Pa),r=t[e.id];return(0,N.jsx)(`div`,{onClick:Fa,onSubmit:Fa,"data-edit-locked":j(e.locked,!0),"data-plan-block":e[`data-plan-block`],children:(0,N.jsx)(ce,{...e,className:na(e.className),locked:n,values:r?.kind===`form`?r.values:void 0,onSubmit:Ia})})}function za(e){let{responses:t,locked:n}=(0,M.useContext)(Pa),r=t[e.id];return(0,N.jsx)(`div`,{onClick:Fa,onSubmit:Fa,"data-edit-locked":j(e.locked,!0),"data-plan-block":e[`data-plan-block`],children:(0,N.jsx)(ue,{...e,className:na(e.className),locked:n,answers:r?.kind===`questions`?r.answers:void 0,onSubmit:Ia})})}function Ba(e){let{responses:t,locked:n}=(0,M.useContext)(Pa),r=t[e.id];return(0,N.jsx)(`div`,{onClick:Fa,onSubmit:Fa,"data-edit-locked":j(e.locked,!1),"data-plan-block":e[`data-plan-block`],children:(0,N.jsx)(de,{...e,className:na(e.className),locked:n,approved:r?.kind===`approve`?r.approved:void 0,note:r?.kind===`approve`?r.note:void 0,onDecide:Ia})})}var Va={choice:La,form:Ra,questions:za,approve:Ba};function Ha(e){return(0,N.jsx)(k,{...e,className:na(e.className)})}function Ua(e){return(0,N.jsx)(A,{...e,className:na(e.className)})}function Wa(e){return(0,N.jsx)(ie,{...e,className:na(e.className)})}function Ga(){return`living-plan:last-rendered:${c().id}`}function Ka(){try{return window.localStorage.getItem(Ga())}catch{return null}}function qa(e){if(u()===null)try{window.localStorage.setItem(Ga(),e)}catch{}}var Ja=5;async function*Ya(e){let t=new Set([e.source]),n=e=>!e||t.has(e)?!1:(t.add(e),!0),r=Ka();n(r)&&(yield r);for(let t of[...e.snapshots].sort((e,t)=>t.seq-e.seq))n(t.body)&&(yield t.body);let i=c();if(i.host!==`cloud`)return;let a=((await fetch(`/api/plans/${encodeURIComponent(i.id)}/versions`,{cache:`no-store`,credentials:`include`}).then(e=>e.ok?e.json():null).catch(()=>null))?.versions??[]).map(e=>e.seq).sort((e,t)=>t-e).slice(0,Ja);for(let e of a){let t=await fetch(`/plans/${encodeURIComponent(i.id)}/versions/${e}/document`,{cache:`no-store`,credentials:`include`}).then(e=>e.ok?e.text():null).catch(()=>null);n(t)&&(yield t)}}async function Xa(){let e=await fetch(Xi(`/api/plan-mdx`),{cache:`no-store`});if(!e.ok)throw Error(`Request failed`);return await e.json()}async function Za(e){let t=await s();if(t?.available){await t.syncPlan();return}let n=await i().fetchQuery({queryKey:[`plan-mdx`,Xi(``)],queryFn:Xa,staleTime:0}).catch(()=>null);n&&typeof n.source==`string`&&e(n)}function Qa(){let[e,t]=(0,M.useState)(Zi),n=(0,M.useRef)(Qi()),r=e=>{let t=$i(e);t!==null&&(n.current=t)},[i,a]=(0,M.useState)(null),m=(0,M.useRef)(null),h=(0,M.useRef)(null),[y,b]=(0,M.useState)(null),x=c().id,S=u()===null&&(c().host===`local`||document.body.dataset.planOwner===`true`),[C,T]=(0,M.useState)(()=>{let e=S?si(x):null;return e&&!li(e)?e:null}),[E,D]=(0,M.useState)(null),k=(0,M.useRef)(0),ie=(0,M.useRef)(null),A=C?.source??E?.committed??E?.source??e.source,[j,se]=(0,M.useState)(A),ce=j!==A,le=(0,M.useRef)(null);le.current=i;let ue=O(A),de=e.responses,fe=e.locked,me=(0,M.useMemo)(()=>({responses:de,locked:fe}),[de,fe]),he=(0,M.useMemo)(()=>{try{return f(j).flatMap(e=>e.headingId?[e.headingId]:[])}catch{return[]}},[j]),ge=(0,M.useRef)({n:0,ids:[]});ge.current.n=0,ge.current.ids=he;let be=sa(),xe=(0,M.useMemo)(()=>Yr(j,new Set(Object.keys(de)),be),[j,de,be]);(0,M.useLayoutEffect)(()=>{if(u()!==null)return;let e=()=>{},i=c(),a=e=>{let r=e.plan(i.id);r?.source&&!r.sourceOmitted&&(n.current!==null&&r.revision<n.current||t(e=>{let t=r.responses;return e.source===r.source&&e.title===r.title&&e.locked===r.locked&&JSON.stringify(e.responses)===JSON.stringify(t)?e:{...e,source:r.source,title:r.title,responses:t,locked:r.locked}}))},o=l();o&&a(o),s().then(t=>{if(!t?.available)return;let n=()=>a(t);n(),e=t.subscribe(n),t.syncPlan()});let f=e=>t(t=>({...t,...e})),p=d(`plan`,e=>{try{let t=JSON.parse(e.data);r(t),f({...typeof t.source==`string`?{source:t.source}:{},...Array.isArray(t.snapshots)?{snapshots:t.snapshots}:{},...t.headSnapshotId===void 0?{}:{headSnapshotId:t.headSnapshotId},...t.responses?{responses:t.responses}:{},...t.locked===void 0?{}:{locked:!!t.locked}})}catch{}}),m=e=>{if(!e||typeof e!=`object`)return;let n=!!e.active;t(e=>e.locked===n?e:{...e,locked:n})},h=d(`execution`,e=>{try{m(JSON.parse(e.data))}catch{}}),g=d(`hello`,e=>{try{m(JSON.parse(e.data)?.execution)}catch{}}),_=d(`reload`,()=>{Za(e=>{r(e),t(e)})}),v=e=>d(e,t=>{s().then(n=>{if(n?.available)try{n.noteLive(e,JSON.parse(t.data))}catch{}})}),y=v(`plan`),b=v(`mode`),x=v(`execution`),S=v(`comment`),C=v(`hello`);return()=>{e(),p(),h(),g(),_(),y(),b(),x(),S(),C()}},[]),(0,M.useEffect)(()=>{let t=!1,n=document.getElementById(`plan-mdx-root`);n?.querySelector(`[data-plan-rendered]`)||n?.classList.add(`plan-mdx-pending`);let r=A,i=r===e.source,s=async(e,n)=>{let r=O(n),[i]=await Promise.all([Xr(r)?o(()=>import(`./register-htm5s8o9.js`),__vite__mapDeps([36,1,2,15,24,37,3,5,14,16,17,18,19,20,21,32,38,25,39])):null,re(r)]);if(t)return!1;let s={...ae,pre:Ca,table:Zr,input:Qr,phase:Ha,callout:Ua,...Va,checklist:Wa},c=document.getElementById(`plan-mdx-root`);return m.current=ei(c),h.current=c&&le.current?ni(c):null,a((0,N.jsx)(Ta,{Content:e,source:n,components:{...ae,...s,h1:la,h2:ua,h3:da,...i?.dataTableComponents??{}}})),se(n),!0};return re(ue),ea(ue).then(async e=>{t||await s(e,r)&&(b(null),i&&qa(r))},async n=>{if(t)return;let r=n instanceof Error?n.message:`Could not render the plan`;if(b(r),!le.current)for await(let n of Ya(e)){if(t||le.current)return;try{let e=await ea(O(n));if(t||await s(e,n))return}catch{}}}),()=>{t=!0}},[ue]),(0,M.useLayoutEffect)(()=>{let e=document.getElementById(`plan-mdx-root`);e&&oe(e)}),(0,M.useLayoutEffect)(()=>{let e=document.getElementById(`plan-mdx-root`);e&&i&&(ti(m.current),m.current=null,h.current&&ii(e,h.current,ni(e)),h.current=null)},[i]);let P=(0,M.useRef)(null);(0,M.useEffect)(()=>{let e=document.getElementById(`plan-mdx-root`);e&&(oe(e),e.classList.remove(`plan-mdx-pending`),P.current!==i&&(P.current=i,window.dispatchEvent(new CustomEvent(`living-plan-document`,{detail:{root:e}}))))}),(0,M.useEffect)(()=>{let t=_e(e.snapshots,e.headSnapshotId),n=ye(t),r=ve(t);document.querySelectorAll(`[data-file-version]`).forEach(e=>{e.setAttribute(`aria-label`,n),e.setAttribute(`title`,n);let t=e.querySelector(`[data-file-version-value]`);t&&(t.textContent=r)})},[e.snapshots,e.headSnapshotId]);let Se=C!==null&&!ha(C.base,e.source),[F,Ce]=(0,M.useState)(null),I=Se&&F!==null&&F.theirs===e.source&&F.mine===(C?.rebase?.mine??C?.source),L=Se&&!I,R=C?.rebase?.conflicts??[],[we,z]=(0,M.useState)(!1),[B,Te]=(0,M.useState)(!1),V=S&&i!==null&&!L&&R.length===0,H=(0,M.useRef)({editable:V,editing:!1});H.current={editable:V,editing:E!==null};let U=(0,M.useRef)(A);U.current=A;let W=(0,M.useRef)(j);W.current=j;let Ee=(0,M.useRef)(C);Ee.current=C;let De=(0,M.useRef)(null),Oe=(0,M.useRef)(null),ke=()=>{Oe.current?.(),Me.current?.finish()},Ae=(0,M.useRef)([]),je=()=>new Promise(e=>{if(!H.current.editing){e(!0);return}let t=()=>{window.clearTimeout(n),e(!0)},n=window.setTimeout(()=>{Ae.current=Ae.current.filter(e=>e!==t),e(!1)},4e3);Ae.current.push(t)}),Me=(0,M.useRef)(null),[Ne,Pe]=(0,M.useState)(!1),[Fe,Ie]=(0,M.useState)(null),[Le,G]=(0,M.useState)(null),[Re,K]=(0,M.useState)(!1),[q,ze]=(0,M.useState)(!0),Be=oa();(0,M.useEffect)(()=>{S&&(document.body.dataset.planEditable=V?`true`:`false`)},[S,V]),(0,M.useEffect)(()=>{if(!S)return;let e=(e,t)=>{k.current+=1,D({id:k.current,target:e,caret:t?.caret,margins:t?.margins,height:t?.height,source:U.current})},t=()=>void fa().catch(()=>void 0);document.addEventListener(`pointerover`,t,{once:!0,passive:!0});let n=typeof window.requestIdleCallback==`function`?window.requestIdleCallback(t,{timeout:2e3}):window.setTimeout(t,1e3),r=te({state:()=>H.current,edit:(t,n)=>e({kind:`edit`,range:t,inline:n?.inline},n),add:(t,n)=>e({kind:`add`,after:t,inline:n?.inline},n),cell:(t,n)=>e({kind:`cell`,range:t},{caret:n}),finish:ke,title:(t,n,r,i)=>{let a=v(n),o=a?vi(U.current,a,r,pi(t)):null;if(!o){e({kind:`edit`,range:n});return}let s=U.current;e({kind:`title`},{caret:i});let c=k.current,l=()=>D(e=>e?.id===c?null:e),u=mi(t,{caret:i?.offset,cancel:l,done:async e=>{let t=bi(s,o,e);return ha(t,s)||await ee(t)?(l(),!1):(Ue(t,Ee.current?.base??s,Ee.current),D(e=>e?.id===c?{...e,committed:t}:e),!0)}});Me.current={id:c,...u}}});ie.current=r;let i=Ji({state:()=>H.current,move:(e,t,n)=>Ye.current(e,t,n),finishEditing:ke,remove:e=>Je.current(e),add:(t,n)=>e({kind:`add`,after:t,inline:!0},{inline:!0,..._(n)})});return De.current=i,()=>{document.removeEventListener(`pointerover`,t),typeof window.cancelIdleCallback==`function`?window.cancelIdleCallback(n):window.clearTimeout(n),ie.current=null,De.current=null,r.stop(),i.stop()}},[S]),(0,M.useEffect)(()=>{De.current?.refresh(),ie.current?.refresh()},[V,E]),(0,M.useLayoutEffect)(()=>{i&&De.current?.rendered(j)},[i,j]);let Ve=(0,M.useRef)(!1);(0,M.useEffect)(()=>{if(E){Ve.current=!0;return}if(!Ve.current)return;Ve.current=!1;let e=requestAnimationFrame(()=>ie.current?.closed());return()=>cancelAnimationFrame(e)},[E]),(0,M.useEffect)(()=>{if(!S)return;let e=si(x);e&&li(e)&&o(async()=>{let{planSourceFromEditor:e}=await import(`./editSource-DQfw4nRm.js`);return{planSourceFromEditor:e}},__vite__mapDeps([40,27,22,1,9,23])).then(({planSourceFromEditor:t})=>{try{let n=t({source:e.base,edited:e.markdown});if(ha(n,e.base)){di(x);return}let r={base:e.base,source:n,edits:1,savedAt:e.savedAt};ui(x,r),T(r)}catch{}})},[S,x]);let He=(e,t)=>{let n=w(e);if(!n)return null;k.current+=1;let r=n.kind===`edit`?{kind:`edit`,range:n.range,inline:!0}:{kind:`add`,after:n.range,inline:!0};return{id:k.current,target:r,caret:n.caret,margins:n.margins,height:n.height,source:t}},J=(0,M.useRef)(null);(0,M.useLayoutEffect)(()=>{if(E?.committed!==void 0&&ha(j,E.committed)){D(E.then?He(E.then,j):null);return}let e=J.current;if(E||!e)return;J.current=null;let t=He(e,j);t&&D(t)},[E,j]),(0,M.useEffect)(()=>{if(!S||!C||E||!L)return;let t=!1,n=e.source,r=C.rebase?.mine??C.source;return ba(C,n,C.rebase?.keep??{}).then(e=>{t||(e?(G(null),K(!1),!e.rebase&&ha(e.source,n)?(di(x),T(null)):(ze(ui(x,e)),T(e),z(!0))):Ce({mine:r,theirs:n}))}),()=>{t=!0}},[S,C,E,L,e.source,x]);function Ue(e,t,n){let r=ha(e,t)?null:{base:t,source:e,edits:(n?.edits??0)+1,savedAt:Date.now()};r?ze(ui(x,r)):di(x),T(r),G(null),K(!1),z(!1)}let We=(0,M.useMemo)(()=>E?{open:E,cancel:e=>{e&&(J.current=e),D(e=>e?.id===E.id?null:e)},commit:async(e,t)=>(Ue(e,C?.base??E.source,C),D(n=>n?.id===E.id?{...n,committed:e,then:t}:n),null),register:e=>{Oe.current=e,e&&ie.current?.refresh()},dirty:e=>Ie(t=>e?E.id:t===E.id?null:t)}:null,[E,C,x]),Ge=Fe!==null&&E?.id===Fe&&E.committed===void 0,Ke=(C?.edits??0)+ +!!Ge;(0,M.useEffect)(()=>{if(E)return;let e=Ae.current;Ae.current=[];for(let t of e)t()},[E]);let qe=E?.target.kind===`title`?E.id:null;(0,M.useEffect)(()=>{let e=Me.current;e&&e.id!==qe&&(e.stop(),Me.current=null)},[qe]),(0,M.useEffect)(()=>()=>Me.current?.stop(),[]);let Je=(0,M.useRef)(async()=>!1);Je.current=async e=>{let t=v(e),n=U.current;if(!t||n!==W.current)return!1;let r=p(n,t,``);return ha(r,n)?!1:await ee(r)?(window.showPlanToast?.(`Deleting that block would leave the plan unable to render, so it stayed.`,`error`),!1):U.current===n&&(Ue(r,Ee.current?.base??n,Ee.current),!0)};let Ye=(0,M.useRef)(async()=>null);Ye.current=async(e,t,n)=>{let r=v(e),i=v(t),a=U.current;if(!r||!i||a!==W.current)return null;let o=ne(a,r,i,n);if(!o||ha(o.source,a))return null;try{await ea(O(o.source))}catch{return window.showPlanToast?.(`That move would leave the plan unable to render, so the block stayed where it was.`,`error`),null}return U.current===a?(Ue(o.source,Ee.current?.base??a,Ee.current),{range:`${o.range.start}-${o.range.end}`,source:o.source}):null};async function Y(){if(!(!C&&!Ge||Ne||C?.rebase)){Pe(!0),G(null);try{if(H.current.editing&&(ke(),!await je())){G(`Finish the block that is open, or cancel it, then apply.`);return}let e=Ee.current;if(!e||e.rebase)return;let n=await va(e.base,e.source);if(!n.ok){G(n.message),n.status===409&&Za(e=>{r(e),t(t=>({...t,...e}))});return}let i=n.payload??{};r(i),di(x),t(t=>({...t,source:typeof i.source==`string`?i.source:e.source,...Array.isArray(i.snapshots)?{snapshots:i.snapshots}:{},...i.headSnapshotId===void 0?{}:{headSnapshotId:i.headSnapshotId}})),T(null),z(!1)}finally{Pe(!1)}}}function Xe(){Re?(J.current=null,D(null),Ie(null),di(x),T(null),K(!1),G(null),z(!1)):K(!0)}async function Ze(e,t){if(!(!C?.rebase||B||L)){Te(!0),G(null),K(!1);try{let n=await ba(C,C.base,{...C.rebase.keep,[e.key]:t});if(!n){G(`That choice leaves the plan unable to render. Keep the other version, or discard.`);return}if(!n.rebase&&ha(n.source,C.base)){di(x),T(null),z(!1);return}ze(ui(x,n)),T(n),z(!n.rebase)}finally{Te(!1)}}}return(0,M.useEffect)(()=>{let e=document.getElementById(`plan-toc-list`);if(e)try{e.innerHTML=g(f(j)),window.dispatchEvent(new Event(`living-plan-toc`))}catch{}},[j]),(0,N.jsx)(Pa.Provider,{value:me,children:(0,N.jsx)(ra.Provider,{value:ge,children:(0,N.jsxs)(ia.Provider,{value:xe,children:[y&&i&&ce?(0,N.jsxs)(`p`,{className:`lock-banner`,role:`status`,"data-plan-stale":``,children:[`The latest update to this plan could not be shown. This is the last version that rendered. `,y]}):y?(0,N.jsx)(`p`,{className:`host-error`,role:`alert`,"data-plan-error":``,children:y}):null,i?(0,N.jsx)(ga.Provider,{value:We,children:(0,N.jsx)(`article`,{className:`plan-document plan-ui`,"data-plan-rendered":``,"data-plan-draft":C?``:void 0,children:i})}):y?null:(0,N.jsx)(`p`,{"data-plan-rendering":``,children:`Rendering plan…`}),V?(0,N.jsxs)(`button`,{type:`button`,className:`plan-add-block`,"data-plan-add-block":``,"data-editing":E?``:void 0,"aria-hidden":E?!0:void 0,tabIndex:E?-1:void 0,disabled:E!==null,onClick:()=>{let e=ma(),t=e?.dataset.planBlock;k.current+=1,D(e&&t?{id:k.current,target:{kind:`add`,after:t,inline:!0},..._(e),source:A}:{id:k.current,target:{kind:`add`,after:null},source:A})},children:[(0,N.jsx)(`span`,{"aria-hidden":`true`,children:`+`}),` Add a block`]}):null,(C||Ge)&&S?(0,N.jsxs)(`div`,{className:`plan-apply-bar`,role:`region`,"aria-label":`Changes not applied`,"data-plan-apply-bar":``,"data-plan-conflicts":R.length>0?String(R.length):void 0,children:[(0,N.jsxs)(`div`,{className:`plan-apply-text`,children:[(0,N.jsx)(`span`,{className:`plan-apply-title`,role:`status`,children:R.length===1?`1 of your changes overlaps the agent's`:R.length>1?`${R.length} of your changes overlap the agent's`:Ke===1?`1 change not applied`:`${Ke} changes not applied`}),(0,N.jsx)(`span`,{className:`plan-apply-note`,"data-plan-apply-note":``,children:Le||(R.length>0?R.length===1?`The agent changed that block too. The page shows the agent's version until you choose.`:`The agent changed those blocks too. The page shows the agent's versions until you choose.`:I?`The plan changed after these edits started, so applying will be refused. Discard to edit the new version.`:L?`The agent updated the plan. Bringing your changes onto it…`:q?we?`The agent updated the plan. Your changes are kept on top of it.`:C?Be?`Kept on this device. Apply to save a new version of the plan.`:`Kept on this device. Apply them when you are back online.`:`Kept when you leave the block. Apply to save a new version of the plan.`:`This browser did not keep the changes. Apply them before you close the page.`)})]}),(0,N.jsxs)(`div`,{className:`plan-apply-actions`,children:[(0,N.jsx)(pe,{variant:`ghost`,onClick:Xe,disabled:Ne||B,"data-plan-discard":``,children:Re?`Discard changes?`:`Discard`}),(0,N.jsx)(pe,{variant:`primary`,onClick:()=>void Y(),disabled:Ne||!Be||L||R.length>0,title:R.length>0?`Keep one version of each overlapping block first`:Be?`Save these changes as a new version of the plan`:`Applying needs a connection. The changes stay on this device.`,"data-plan-apply":``,children:Ne?`Applying…`:`Apply changes`})]}),R.length>0?(0,N.jsx)(`ul`,{className:`plan-apply-conflicts`,"aria-label":`Changes that overlap the agent's`,"data-plan-conflict-list":``,children:R.map(e=>(0,N.jsxs)(`li`,{className:`plan-apply-conflict`,"data-plan-conflict":e.key,children:[(0,N.jsxs)(`div`,{className:`plan-apply-conflict-text`,children:[(0,N.jsxs)(`span`,{className:`plan-apply-conflict-label`,children:[e.label,e.within?(0,N.jsxs)(`span`,{className:`plan-apply-conflict-within`,children:[` in `,e.within]}):null]}),(0,N.jsx)(`span`,{className:`plan-apply-conflict-detail`,children:xa(e)})]}),(0,N.jsxs)(`div`,{className:`plan-apply-conflict-actions`,children:[(0,N.jsx)(pe,{variant:`secondary`,onClick:()=>void Ze(e,`mine`),disabled:B||L,"aria-label":`Keep mine: ${e.label}`,"data-plan-keep-mine":``,children:`Keep mine`}),(0,N.jsx)(pe,{variant:`secondary`,onClick:()=>void Ze(e,`theirs`),disabled:B||L,"aria-label":`Keep the agent's: ${e.label}`,"data-plan-keep-theirs":``,children:`Keep the agent's`})]})]},e.key))}):null]}):null]})})})}if(typeof document<`u`){let e=document.getElementById(`plan-mdx-root`);e&&(0,ge.createRoot)(e).render((0,N.jsx)(Qa,{}))}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={name:`Plastic`,appearance:`dark`,style:{background:`#21252Bff`,text:`#F5F7FAff`,"editor.background":`#21252Bff`,"editor.foreground":`#A9B2C3ff`,"editor.active_line.background":`#A9B2C31A`,"search.match_background":`#1085FF44`,players:[{cursor:`#1085FFff`,background:`#1085FFff`,selection:`#1085FF3d`},{cursor:`#E06C75ff`,background:`#E06C75ff`,selection:`#E06C753d`},{cursor:`#D19A66ff`,background:`#D19A66ff`,selection:`#D19A663d`},{cursor:`#B57EDCff`,background:`#B57EDCff`,selection:`#B57EDC3d`},{cursor:`#56B6C2ff`,background:`#56B6C2ff`,selection:`#56B6C23d`},{cursor:`#E5C07Bff`,background:`#E5C07Bff`,selection:`#E5C07B3d`},{cursor:`#98C379ff`,background:`#98C379ff`,selection:`#98C3793d`},{cursor:`#61AFEFff`,background:`#61AFEFff`,selection:`#61AFEF3d`}],error:`#D74E42ff`,warning:`#E9D16Cff`,info:`#1085FFff`,hint:`#5F6672ff`,deleted:`#E06C75`,modified:`#D19A66`,"terminal.ansi.black":`#5F6672ff`,"terminal.ansi.red":`#E06C75ff`,"terminal.ansi.green":`#98C379ff`,"terminal.ansi.yellow":`#E5C07Bff`,"terminal.ansi.blue":`#61AFEFff`,"terminal.ansi.magenta":`#B57EDCff`,"terminal.ansi.cyan":`#56B6C2ff`,"terminal.ansi.white":`#A9B2C3ff`,"terminal.ansi.bright_black":`#5F6672ff`,"terminal.ansi.bright_red":`#E06C75ff`,"terminal.ansi.bright_green":`#98C379ff`,"terminal.ansi.bright_yellow":`#E5C07Bff`,"terminal.ansi.bright_blue":`#61AFEFff`,"terminal.ansi.bright_magenta":`#B57EDCff`,"terminal.ansi.bright_cyan":`#56B6C2ff`,"terminal.ansi.bright_white":`#A9B2C3ff`,syntax:{attribute:{color:`#D19A66ff`},boolean:{color:`#56B6C2ff`},comment:{color:`#5F6672ff`},"comment.doc":{color:`#5F6672ff`},constant:{color:`#56B6C2ff`},constructor:{color:`#61AFEFff`},embedded:{color:`#A9B2C3ff`},emphasis:{color:`#E06C75ff`},"emphasis.strong":{color:`#D19A66ff`,font_weight:700},enum:{color:`#E5C07Bff`},function:{color:`#B57EDCff`},hint:{color:`#5F6672ff`},keyword:{color:`#E06C75ff`},label:{color:`#E5C07Bff`},link_text:{color:`#61AFEFff`,font_style:`normal`},link_uri:{color:`#56B6C2ff`},namespace:{color:`#61AFEFff`},number:{color:`#56B6C2ff`},operator:{color:`#A9B2C3ff`},predictive:{color:`#5F6672ff`,font_style:`italic`},preproc:{color:`#E06C75ff`},primary:{color:`#A9B2C3ff`},property:{color:`#C6CCD7ff`},punctuation:{color:`#A9B2C3ff`},"punctuation.bracket":{color:`#A9B2C3ff`},"punctuation.delimiter":{color:`#A9B2C3ff`},"punctuation.list_marker":{color:`#E06C75ff`},"punctuation.markup":{color:`#E06C75ff`},"punctuation.special":{color:`#E06C75ff`},selector:{color:`#E5C07Bff`},"selector.pseudo":{color:`#61AFEFff`},string:{color:`#98C379ff`},"string.escape":{color:`#56B6C2ff`},"string.regex":{color:`#56B6C2ff`},"string.special":{color:`#D19A66ff`},"string.special.symbol":{color:`#D19A66ff`},tag:{color:`#E5C07Bff`},"text.literal":{color:`#98C379ff`},title:{color:`#E5C07Bff`,font_weight:400},type:{color:`#E5C07Bff`},variable:{color:`#C6CCD7ff`},"variable.special":{color:`#E06C75ff`},variant:{color:`#61AFEFff`},"diff.minus":{color:`#E06C75`},"diff.plus":{color:`#98C379`}}}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.freeze(JSON.parse(`{"colors":{"activityBar.activeBorder":"#1085FF","activityBar.background":"#21252B","activityBar.border":"#0D1117","activityBar.foreground":"#C6CCD7","activityBar.inactiveForeground":"#5F6672","activityBarBadge.background":"#E06C75","activityBarBadge.foreground":"#ffffff","breadcrumb.focusForeground":"#C6CCD7","breadcrumb.foreground":"#5F6672","button.background":"#E06C75","button.foreground":"#ffffff","button.hoverBackground":"#E48189","button.secondaryBackground":"#0D1117","button.secondaryForeground":"#ffffff","checkbox.background":"#61AFEF","checkbox.foreground":"#ffffff","contrastBorder":"#0D1117","debugToolBar.background":"#181A1F","diffEditor.border":"#0D1117","diffEditor.diagonalFill":"#0D1117","diffEditor.insertedLineBackground":"#CBF6AC0D","diffEditor.insertedTextBackground":"#CBF6AC1A","diffEditor.removedLineBackground":"#FF9FA80D","diffEditor.removedTextBackground":"#FF9FA81A","dropdown.background":"#181A1F","dropdown.border":"#0D1117","editor.background":"#21252B","editor.findMatchBackground":"#00000000","editor.findMatchBorder":"#1085FF","editor.findMatchHighlightBackground":"#00000000","editor.findMatchHighlightBorder":"#C6CCD7","editor.foreground":"#A9B2C3","editor.lineHighlightBackground":"#A9B2C31A","editor.lineHighlightBorder":"#00000000","editor.linkedEditingBackground":"#0D1117","editor.rangeHighlightBorder":"#C6CCD7","editor.selectionBackground":"#A9B2C333","editor.selectionHighlightBackground":"#A9B2C31A","editor.selectionHighlightBorder":"#C6CCD7","editor.wordHighlightBackground":"#00000000","editor.wordHighlightBorder":"#1085FF","editor.wordHighlightStrongBackground":"#00000000","editor.wordHighlightStrongBorder":"#1085FF","editorBracketHighlight.foreground1":"#A9B2C3","editorBracketHighlight.foreground2":"#61AFEF","editorBracketHighlight.foreground3":"#E5C07B","editorBracketHighlight.foreground4":"#E06C75","editorBracketHighlight.foreground5":"#98C379","editorBracketHighlight.foreground6":"#B57EDC","editorBracketHighlight.unexpectedBracket.foreground":"#D74E42","editorBracketMatch.background":"#00000000","editorBracketMatch.border":"#1085FF","editorCursor.foreground":"#A9B2C3","editorError.foreground":"#D74E42","editorGroup.border":"#0D1117","editorGroup.emptyBackground":"#181A1F","editorGroupHeader.tabsBackground":"#181A1F","editorGutter.addedBackground":"#98C379","editorGutter.deletedBackground":"#E06C75","editorGutter.modifiedBackground":"#D19A66","editorHoverWidget.background":"#181A1F","editorHoverWidget.border":"#1085FF","editorIndentGuide.activeBackground":"#A9B2C333","editorIndentGuide.background":"#0D1117","editorInfo.foreground":"#1085FF","editorInlayHint.background":"#00000000","editorInlayHint.foreground":"#5F6672","editorLightBulb.foreground":"#E9D16C","editorLightBulbAutoFix.foreground":"#1085FF","editorLineNumber.activeForeground":"#C6CCD7","editorLineNumber.foreground":"#5F6672","editorOverviewRuler.addedForeground":"#98C379","editorOverviewRuler.border":"#0D1117","editorOverviewRuler.deletedForeground":"#E06C75","editorOverviewRuler.errorForeground":"#D74E42","editorOverviewRuler.findMatchForeground":"#1085FF","editorOverviewRuler.infoForeground":"#1085FF","editorOverviewRuler.modifiedForeground":"#D19A66","editorOverviewRuler.warningForeground":"#E9D16C","editorRuler.foreground":"#0D1117","editorStickyScroll.background":"#181A1F","editorStickyScrollHover.background":"#21252B","editorSuggestWidget.background":"#181A1F","editorSuggestWidget.border":"#1085FF","editorSuggestWidget.selectedBackground":"#A9B2C31A","editorWarning.foreground":"#E9D16C","editorWhitespace.foreground":"#A9B2C31A","editorWidget.background":"#181A1F","errorForeground":"#D74E42","focusBorder":"#1085FF","gitDecoration.deletedResourceForeground":"#E06C75","gitDecoration.ignoredResourceForeground":"#5F6672","gitDecoration.modifiedResourceForeground":"#D19A66","gitDecoration.untrackedResourceForeground":"#98C379","input.background":"#0D1117","inputOption.activeBorder":"#1085FF","inputValidation.errorBackground":"#D74E42","inputValidation.errorBorder":"#D74E42","inputValidation.infoBackground":"#1085FF","inputValidation.infoBorder":"#1085FF","inputValidation.infoForeground":"#0D1117","inputValidation.warningBackground":"#E9D16C","inputValidation.warningBorder":"#E9D16C","inputValidation.warningForeground":"#0D1117","list.activeSelectionBackground":"#A9B2C333","list.activeSelectionForeground":"#ffffff","list.errorForeground":"#D74E42","list.focusBackground":"#A9B2C333","list.hoverBackground":"#A9B2C31A","list.inactiveFocusOutline":"#5F6672","list.inactiveSelectionBackground":"#A9B2C333","list.inactiveSelectionForeground":"#C6CCD7","list.warningForeground":"#E9D16C","minimap.findMatchHighlight":"#1085FF","minimap.selectionHighlight":"#C6CCD7","minimapGutter.addedBackground":"#98C379","minimapGutter.deletedBackground":"#E06C75","minimapGutter.modifiedBackground":"#D19A66","notificationCenter.border":"#0D1117","notificationCenterHeader.background":"#181A1F","notificationToast.border":"#0D1117","notifications.background":"#181A1F","notifications.border":"#0D1117","panel.background":"#181A1F","panel.border":"#0D1117","panelTitle.inactiveForeground":"#5F6672","peekView.border":"#1085FF","peekViewEditor.background":"#181A1F","peekViewEditor.matchHighlightBackground":"#A9B2C333","peekViewResult.background":"#181A1F","peekViewResult.matchHighlightBackground":"#A9B2C333","peekViewResult.selectionBackground":"#A9B2C31A","peekViewResult.selectionForeground":"#C6CCD7","peekViewTitle.background":"#181A1F","sash.hoverBorder":"#A9B2C333","scrollbar.shadow":"#00000000","scrollbarSlider.activeBackground":"#A9B2C333","scrollbarSlider.background":"#A9B2C31A","scrollbarSlider.hoverBackground":"#A9B2C333","sideBar.background":"#181A1F","sideBar.border":"#0D1117","sideBar.foreground":"#C6CCD7","sideBarSectionHeader.background":"#21252B","statusBar.background":"#21252B","statusBar.border":"#0D1117","statusBar.debuggingBackground":"#21252B","statusBar.debuggingBorder":"#56B6C2","statusBar.debuggingForeground":"#A9B2C3","statusBar.focusBorder":"#A9B2C3","statusBar.foreground":"#A9B2C3","statusBar.noFolderBackground":"#181A1F","statusBarItem.activeBackground":"#0D1117","statusBarItem.errorBackground":"#21252B","statusBarItem.errorForeground":"#D74E42","statusBarItem.focusBorder":"#A9B2C3","statusBarItem.hoverBackground":"#181A1F","statusBarItem.hoverForeground":"#A9B2C3","statusBarItem.remoteBackground":"#21252B","statusBarItem.remoteForeground":"#B57EDC","statusBarItem.warningBackground":"#21252B","statusBarItem.warningForeground":"#E9D16C","tab.activeBackground":"#21252B","tab.activeBorderTop":"#1085FF","tab.activeForeground":"#C6CCD7","tab.border":"#0D1117","tab.inactiveBackground":"#181A1F","tab.inactiveForeground":"#5F6672","tab.lastPinnedBorder":"#A9B2C333","terminal.ansiBlack":"#5F6672","terminal.ansiBlue":"#61AFEF","terminal.ansiBrightBlack":"#5F6672","terminal.ansiBrightBlue":"#61AFEF","terminal.ansiBrightCyan":"#56B6C2","terminal.ansiBrightGreen":"#98C379","terminal.ansiBrightMagenta":"#B57EDC","terminal.ansiBrightRed":"#E06C75","terminal.ansiBrightWhite":"#A9B2C3","terminal.ansiBrightYellow":"#E5C07B","terminal.ansiCyan":"#56B6C2","terminal.ansiGreen":"#98C379","terminal.ansiMagenta":"#B57EDC","terminal.ansiRed":"#E06C75","terminal.ansiWhite":"#A9B2C3","terminal.ansiYellow":"#E5C07B","terminal.foreground":"#A9B2C3","titleBar.activeBackground":"#21252B","titleBar.activeForeground":"#C6CCD7","titleBar.border":"#0D1117","titleBar.inactiveBackground":"#21252B","titleBar.inactiveForeground":"#5F6672","toolbar.hoverBackground":"#A9B2C333","widget.shadow":"#00000000"},"displayName":"Plastic","name":"plastic","semanticHighlighting":true,"semanticTokenColors":{},"tokenColors":[{"scope":["comment","punctuation.definition.comment","source.diff"],"settings":{"foreground":"#5F6672"}},{"scope":["entity.name.function","support.function","meta.diff.range","punctuation.definition.range.diff"],"settings":{"foreground":"#B57EDC"}},{"scope":["keyword","punctuation.definition.keyword","variable.language","markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted","punctuation.definition.from-file.diff"],"settings":{"foreground":"#E06C75"}},{"scope":["constant","support.constant"],"settings":{"foreground":"#56B6C2"}},{"scope":["storage","support.class","entity.name.namespace","meta.diff.header"],"settings":{"foreground":"#61AFEF"}},{"scope":["markup.inline.raw.string","string","markup.inserted","punctuation.definition.inserted","meta.diff.header.to-file","punctuation.definition.to-file.diff"],"settings":{"foreground":"#98C379"}},{"scope":["entity.name.section","entity.name.tag","entity.name.type","support.type"],"settings":{"foreground":"#E5C07B"}},{"scope":["support.type.property-name","support.variable","variable"],"settings":{"foreground":"#C6CCD7"}},{"scope":["entity.other","punctuation.definition.entity","support.other"],"settings":{"foreground":"#D19A66"}},{"scope":["meta.brace","punctuation"],"settings":{"foreground":"#A9B2C3"}},{"scope":["markup.bold","punctuation.definition.bold","entity.other.attribute-name.id"],"settings":{"fontStyle":"bold"}},{"scope":["comment","markup.italic","punctuation.definition.italic"],"settings":{"fontStyle":"italic"}}],"type":"dark"}`));export{e as default};
|