@inkeep/open-knowledge 0.25.0-beta.8 → 0.25.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alias-JE7RI5QX-DxvTrQH3.mjs +1 -0
- package/dist/{architectureDiagram-Q4EWVU46-C9cSuC8m.mjs → architectureDiagram-Q4EWVU46-Dwlx8W7J.mjs} +2 -2
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/awk2-POPGKRAI-6Q9HKhoL.mjs +1 -0
- package/dist/base64-4YMZCVJ5-bqN_UBX0.mjs +1 -0
- package/dist/basename-AA2KJYZQ-GWPOMupJ.mjs +1 -0
- package/dist/bash-IJWYRKFO-C7Yi9aK0.mjs +1 -0
- package/dist/{blockDiagram-DXYQGD6D-Dr7L7QsL.mjs → blockDiagram-DXYQGD6D-D_l7RLVS.mjs} +2 -2
- package/dist/{build-CN003PPg.mjs → build-CCNlCFyu.mjs} +1 -1
- package/dist/build-gfyDk62R.mjs +1 -0
- package/dist/{c4Diagram-AHTNJAMY-CPm6kKNR.mjs → c4Diagram-AHTNJAMY-QadWjRVL.mjs} +2 -2
- package/dist/cat-RDUMLXKC-Cqi4_PjZ.mjs +1 -0
- package/dist/channel-Dq8ADXfq.mjs +2 -0
- package/dist/chmod-SYMGL4JA-C_dD-tNl.mjs +1 -0
- package/dist/{chokidar-oNPiNLWX.mjs → chokidar-D1eNAlbX.mjs} +3 -3
- package/dist/{chunk-24IMIIXA-DaS5XS55.mjs → chunk-24IMIIXA-BoP5OA93.mjs} +2 -2
- package/dist/{chunk-336JU56O-KTMEs5Wk.mjs → chunk-336JU56O-5giJrfiv.mjs} +2 -2
- package/dist/{chunk-3THT3N7L-B1WzJUh4.mjs → chunk-3THT3N7L-CBWmNncQ.mjs} +1 -1
- package/dist/{chunk-426QAEUC-DUpKwtVu.mjs → chunk-426QAEUC-BGn1TCpd.mjs} +2 -2
- package/dist/{chunk-44UOCSGV-BZ6LfyW2.mjs → chunk-44UOCSGV-B6GSHp1s.mjs} +1 -1
- package/dist/{chunk-4TB4RGXK-Ct6WjPoY.mjs → chunk-4TB4RGXK-DWREoP49.mjs} +2 -2
- package/dist/{chunk-5FUZZQ4R-Bf6nbyQG.mjs → chunk-5FUZZQ4R-DFR5eSi-.mjs} +2 -2
- package/dist/{chunk-5PVQY5BW-DUXm3tDu.mjs → chunk-5PVQY5BW-C5V4E1lO.mjs} +2 -2
- package/dist/{chunk-5QMZ5MUS-BwpNU33k.mjs → chunk-5QMZ5MUS-_0tQyQsf.mjs} +2 -2
- package/dist/{chunk-62RKD26F-DebCAz0V.mjs → chunk-62RKD26F-K5NW6_Si.mjs} +2 -2
- package/dist/{chunk-A4JSPFCI-CQJoYugB.mjs → chunk-A4JSPFCI-BA544Kdp.mjs} +2 -2
- package/dist/{chunk-A5O5YHGN-DApqA6Ow.mjs → chunk-A5O5YHGN-Kbs3GRxW.mjs} +2 -2
- package/dist/{chunk-BBXLRYSX-XWD4jM9A.mjs → chunk-BBXLRYSX-OVlWa2B-.mjs} +2 -2
- package/dist/{chunk-BRGMQKJV-CZUkYGAZ.mjs → chunk-BRGMQKJV-DtyxDw61.mjs} +3 -3
- package/dist/{chunk-CR5AFCPT-DN7EAdus.mjs → chunk-CR5AFCPT-BD_awIEP.mjs} +2 -2
- package/dist/{chunk-CWQS3NFK-BkE4vqrf.mjs → chunk-CWQS3NFK-DNm_iIwd.mjs} +1 -1
- package/dist/{chunk-D6CWQ5DW-CF9bBHyK.mjs → chunk-D6CWQ5DW-CaV8X9is.mjs} +2 -2
- package/dist/{chunk-DXB73IDG-F_tmy-Lz.mjs → chunk-DXB73IDG-Bx-Ikbnu.mjs} +1 -1
- package/dist/{chunk-EDXVE4YY-CI4s3JHP.mjs → chunk-EDXVE4YY-B_wA-KGy.mjs} +2 -2
- package/dist/{chunk-ENJZ2VHE-CQwjtY5A.mjs → chunk-ENJZ2VHE-DwiyImt2.mjs} +2 -2
- package/dist/{chunk-F55TLFGB-BZSRX-Vi.mjs → chunk-F55TLFGB-AEzanSfe.mjs} +2 -2
- package/dist/{chunk-FEIOJCZD-NzTooVTc.mjs → chunk-FEIOJCZD-D6YUa1Xl.mjs} +2 -2
- package/dist/{chunk-GFQRA5P5-DbAN9IDm.mjs → chunk-GFQRA5P5-DigWkxW2.mjs} +1 -1
- package/dist/{chunk-GOV5EKKI-CDGzZWfT.mjs → chunk-GOV5EKKI-x0jEbztj.mjs} +2 -2
- package/dist/{chunk-HWBSOZZR-DQTTl_pa.mjs → chunk-HWBSOZZR-DaPTwPxK.mjs} +3 -3
- package/dist/{chunk-I57KEIP3-DSoF8c_0.mjs → chunk-I57KEIP3-DpiJySG6.mjs} +2 -2
- package/dist/{chunk-ICPOFSXX-C--tVIY5.mjs → chunk-ICPOFSXX-D0MVsm4H.mjs} +2 -2
- package/dist/{chunk-IPJHKYVM-CUKythEA.mjs → chunk-IPJHKYVM-DlQCOz2c.mjs} +1 -1
- package/dist/{chunk-J642UCRS-HjD8qpZD.mjs → chunk-J642UCRS-C1PS8Hwf.mjs} +2 -2
- package/dist/{chunk-LPQPILI2-OoVL_l9j.mjs → chunk-LPQPILI2-GOcK96AE.mjs} +2 -2
- package/dist/{chunk-MDDMCKUK-ChL1CU4m.mjs → chunk-MDDMCKUK-CuQlmIio.mjs} +2 -2
- package/dist/{chunk-MIZPJHVH-BD7tHmLL.mjs → chunk-MIZPJHVH-Bo1j-3C3.mjs} +2 -2
- package/dist/{chunk-MLXIYONF-CV7WHBm-.mjs → chunk-MLXIYONF-DRuy-_4a.mjs} +2 -2
- package/dist/{chunk-NAERJDUW-Cyg2DAzO.mjs → chunk-NAERJDUW-0UrOIQ6q.mjs} +2 -2
- package/dist/{chunk-NUYSJFDK-BH2DjyxF.mjs → chunk-NUYSJFDK-BvwS54ju.mjs} +2 -2
- package/dist/{chunk-NYQYO467-CY88QCuT.mjs → chunk-NYQYO467-KfHLMnUW.mjs} +2 -2
- package/dist/{chunk-OARHFVLG-dXiYYC4o.mjs → chunk-OARHFVLG-Csb_cJVS.mjs} +2 -2
- package/dist/{chunk-OCLXQMOG-DOkdFgyf.mjs → chunk-OCLXQMOG-CCPg8vjW.mjs} +2 -2
- package/dist/{chunk-OCS6LSEM-Bcx6uxmm.mjs → chunk-OCS6LSEM-DkbaohJu.mjs} +2 -2
- package/dist/{chunk-OJDRYQWQ-CmrD0Dg2.mjs → chunk-OJDRYQWQ-LGuZyK6R.mjs} +1 -1
- package/dist/{chunk-OL3S66CO-CWEDi2F_.mjs → chunk-OL3S66CO-CBdL6pp1.mjs} +2 -2
- package/dist/{chunk-OYMX7WX6-Dvg98Zb-.mjs → chunk-OYMX7WX6-BrOfVMt8.mjs} +2 -2
- package/dist/{chunk-PBXLG62G-CpvczNyQ.mjs → chunk-PBXLG62G-C7MEQojr.mjs} +2 -2
- package/dist/{chunk-R6VWJ2ZL-BVeTwIsz.mjs → chunk-R6VWJ2ZL-XKIhMSUi.mjs} +1 -1
- package/dist/{chunk-SYMJJMQ4-jdmKoBFb.mjs → chunk-SYMJJMQ4-DUF5hY-A.mjs} +2 -2
- package/dist/{chunk-T56QNPHK-DmDxJbbD.mjs → chunk-T56QNPHK-B6DfVzfs.mjs} +2 -2
- package/dist/{chunk-TLSUDHID-CSDR438C.mjs → chunk-TLSUDHID-SuIGgADo.mjs} +2 -2
- package/dist/{chunk-TOMNU26N-CrDa7MpH.mjs → chunk-TOMNU26N-Dw9Enq1O.mjs} +2 -2
- package/dist/{chunk-U2HBQHQK-C1Q2DiEX.mjs → chunk-U2HBQHQK-DB1SzWgs.mjs} +2 -2
- package/dist/{chunk-UNYNJIFU-CZ2Mla0s.mjs → chunk-UNYNJIFU-HSzsM3a6.mjs} +3 -3
- package/dist/{chunk-VLGZJRPG-DpYP_EVp.mjs → chunk-VLGZJRPG-CHtdu0KZ.mjs} +2 -2
- package/dist/{chunk-X2U36JSP-BiF0R9ys.mjs → chunk-X2U36JSP-CqOGcGN3.mjs} +2 -2
- package/dist/{chunk-XHM67O4N-D3pxE_Og.mjs → chunk-XHM67O4N-2lBQUjKO.mjs} +1 -1
- package/dist/{chunk-XORM457F-BuPOSqOe.mjs → chunk-XORM457F-CJbQLVgU.mjs} +2 -2
- package/dist/{chunk-YCFVLTST-DsF45PbT.mjs → chunk-YCFVLTST-CKzPj8PR.mjs} +2 -2
- package/dist/{chunk-YFG2CMIF-DjdwxBNc.mjs → chunk-YFG2CMIF-DBRGs_rZ.mjs} +2 -2
- package/dist/{chunk-YNYSPYQ5-gU4-j5DO.mjs → chunk-YNYSPYQ5-DHter9G3.mjs} +1 -1
- package/dist/{chunk-YS3AZT3J-CB0wWPLc.mjs → chunk-YS3AZT3J-DwQ3GyQR.mjs} +2 -2
- package/dist/{chunk-YTNYSM6T-DpkSVTln.mjs → chunk-YTNYSM6T-DcovOiF_.mjs} +2 -2
- package/dist/{chunk-YZCP3GAM-DRdMIQsB.mjs → chunk-YZCP3GAM-CkC6DoBJ.mjs} +2 -2
- package/dist/{chunk-Z6LRHWXI-EsbeaQ3V.mjs → chunk-Z6LRHWXI-BLaYoFnT.mjs} +2 -2
- package/dist/{chunk-ZZ45TVLE-DwKS4e_N.mjs → chunk-ZZ45TVLE-CXznFlWR.mjs} +2 -2
- package/dist/classDiagram-6PBFFD2Q-cIblqhKe.mjs +2 -0
- package/dist/classDiagram-v2-HSJHXN6E-CnZ_g-6O.mjs +2 -0
- package/dist/clear-5CZ5X4YR-C4DTv-gF.mjs +1 -0
- package/dist/cli.mjs +71 -59
- package/dist/clone-s6xjJkoz.mjs +2 -0
- package/dist/column-WLPMMSTS-Bg1ZsVDm.mjs +1 -0
- package/dist/comm-5SLSESQG-CTh1BUfn.mjs +1 -0
- package/dist/constants-BwIQxzxy.mjs +2 -0
- package/dist/cp-XOYR4ABJ-VqiK1WcH.mjs +1 -0
- package/dist/{curl-47BFPSFW-xgS5bDTx.mjs → curl-47BFPSFW-ClMENMWY.mjs} +2 -2
- package/dist/cut-OPC3VAGB-BDAM8WY8.mjs +1 -0
- package/dist/{dagre-KV5264BT-Ci7CcQr4.mjs → dagre-KV5264BT-C5SrnhX7.mjs} +2 -2
- package/dist/{dagre-L3rg9n9q.mjs → dagre-LJG-5J7U.mjs} +2 -2
- package/dist/date-DD7FVA2V-nDqDn5ZQ.mjs +1 -0
- package/dist/{diagram-5BDNPKRD-BM3C88Zx.mjs → diagram-5BDNPKRD-biBuhEzo.mjs} +2 -2
- package/dist/{diagram-G4DWMVQ6-Dt1Kt-mj.mjs → diagram-G4DWMVQ6-CHhS5h96.mjs} +2 -2
- package/dist/{diagram-MMDJMWI5-DomPsk0L.mjs → diagram-MMDJMWI5-BgulNwvp.mjs} +2 -2
- package/dist/{diagram-TYMM5635-eOfCqwhs.mjs → diagram-TYMM5635-DpmgERPD.mjs} +2 -2
- package/dist/diff-HJF2MPDN-DSY9AfjL.mjs +1 -0
- package/dist/dirname-LEMTZZFS-VsUIxZwx.mjs +1 -0
- package/dist/{dist-B1-OZ0zK.mjs → dist-Bj79e9B6.mjs} +16 -16
- package/dist/{dist-7R982DBB.mjs → dist-DUXDeyBp.mjs} +1 -1
- package/dist/du-WO2ENHXQ-Cq3dzRFU.mjs +1 -0
- package/dist/echo-O45JWWI2-B99ElfBo.mjs +1 -0
- package/dist/env-5EPCWSXR-CsaomJHQ.mjs +1 -0
- package/dist/{erDiagram-SMLLAGMA-CPcwhEue.mjs → erDiagram-SMLLAGMA-BNISHenz.mjs} +2 -2
- package/dist/{esm-BS2W3Uzl.mjs → esm-BQ4-CT8p.mjs} +1 -1
- package/dist/{esm-BLMtE3s6.mjs → esm-CsQUg9js.mjs} +1 -1
- package/dist/expand-DTNXU4LQ-Bp3M0RnL.mjs +1 -0
- package/dist/expansion-ENLSRCXJ-C5xjxYTl.mjs +1 -0
- package/dist/expr-5T3UU5KE-DrJUreFq.mjs +1 -0
- package/dist/file-ZIGAJ4YS-D07ChhI1.mjs +1 -0
- package/dist/find-TPUOAIUQ-ZPOxwUwf.mjs +1 -0
- package/dist/{flag-coverage-QT4N2Z44-hqAAghSo.mjs → flag-coverage-QT4N2Z44-BlPYKPtd.mjs} +2 -2
- package/dist/{flowDiagram-DWJPFMVM-WnIxEgSt.mjs → flowDiagram-DWJPFMVM-CFu645eN.mjs} +2 -2
- package/dist/fold-LDSORVYE-Bx5XDGgK.mjs +1 -0
- package/dist/{ganttDiagram-T4ZO3ILL-BJEuIZ2X.mjs → ganttDiagram-T4ZO3ILL-DhKUbpmR.mjs} +2 -2
- package/dist/{getMachineId-bsd-DYQqYqxN.mjs → getMachineId-bsd-Bt-frlcx.mjs} +2 -2
- package/dist/{getMachineId-bsd-B7ue3N1o.mjs → getMachineId-bsd-DC8LkcdK.mjs} +2 -2
- package/dist/{getMachineId-bsd-ucL-2FoT.mjs → getMachineId-bsd-DFsE-K5i.mjs} +2 -2
- package/dist/{getMachineId-darwin-BNCkZc-0.mjs → getMachineId-darwin-B9GQUU0e.mjs} +2 -2
- package/dist/{getMachineId-darwin-CSTYV_Bd.mjs → getMachineId-darwin-DMNBrKWp.mjs} +2 -2
- package/dist/{getMachineId-darwin-DWmBOUuk.mjs → getMachineId-darwin-DRxpszyZ.mjs} +2 -2
- package/dist/{getMachineId-linux-Bv6oOXxT.mjs → getMachineId-linux-B5vQV4C7.mjs} +2 -2
- package/dist/{getMachineId-linux-tTgUzx-Z.mjs → getMachineId-linux-D9dNX75P.mjs} +2 -2
- package/dist/{getMachineId-linux-BaNp1ZEm.mjs → getMachineId-linux-DOv7iOg-.mjs} +2 -2
- package/dist/{getMachineId-unsupported-fh_7WYkB.mjs → getMachineId-unsupported-BQ6KY9w-.mjs} +2 -2
- package/dist/{getMachineId-unsupported-iDvWGFBk.mjs → getMachineId-unsupported-D6sWFm_K.mjs} +2 -2
- package/dist/{getMachineId-unsupported-Kf9p6LJQ.mjs → getMachineId-unsupported-DdAD6gRb.mjs} +2 -2
- package/dist/{getMachineId-win-DQ2s9Z1n.mjs → getMachineId-win-BMQSc3Xj.mjs} +2 -2
- package/dist/{getMachineId-win-Bo1_B38N.mjs → getMachineId-win-BZsHRo32.mjs} +2 -2
- package/dist/{getMachineId-win-DHmdubaR.mjs → getMachineId-win-CpDtoa22.mjs} +2 -2
- package/dist/{gh-detect-BIaONQmT.mjs → gh-detect-Ck0zE5NU.mjs} +3 -3
- package/dist/{git-handle-DY9lXoT3-Cmzgvwd8.mjs → git-handle-DY9lXoT3-CfssnuIB.mjs} +4 -4
- package/dist/git-handle-DdgvPBh6-C80s8fFN.mjs +1 -0
- package/dist/{gitGraphDiagram-UUTBAWPF-BqA8KMTw.mjs → gitGraphDiagram-UUTBAWPF-Cwemn6Ch.mjs} +2 -2
- package/dist/{graphlib-BI4uS4Lx.mjs → graphlib-5CpUx0Yq.mjs} +2 -2
- package/dist/grep-3AIAIJVR-Bh6KBg6d.mjs +1 -0
- package/dist/gzip-AQXSGOVS-BtiMTiZG.mjs +1 -0
- package/dist/head-HT2B6D2J-DSAed845.mjs +1 -0
- package/dist/help-VVWX7SA5-DCBusWam.mjs +1 -0
- package/dist/history-J4QRNGRO-BwBOMO5i.mjs +1 -0
- package/dist/hostname-BK6HG2DE-_qJ9gN13.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-D7XdAo13.mjs +1 -0
- package/dist/index.d.mts +34 -1
- package/dist/index.mjs +1 -1
- package/dist/{infoDiagram-42DDH7IO-0lM1lRCH.mjs → infoDiagram-42DDH7IO-D0XeM9Mm.mjs} +2 -2
- package/dist/init-BzdKgHZr.mjs +321 -0
- package/dist/init-HqjPAvpy.mjs +1 -0
- package/dist/{ishikawaDiagram-UXIWVN3A-j-jlqjJX.mjs → ishikawaDiagram-UXIWVN3A-vTBTHzHj.mjs} +2 -2
- package/dist/join-GG2LDHE5-BMnXfCXQ.mjs +1 -0
- package/dist/{journeyDiagram-VCZTEJTY-BDX_OcrR.mjs → journeyDiagram-VCZTEJTY-Dq1fLo6N.mjs} +2 -2
- package/dist/jq-ODXZBPLY-D3tmTL1R.mjs +1 -0
- package/dist/{js-exec-M6UR76J5-Cu6NIWHE.mjs → js-exec-M6UR76J5-ZESSNIAK.mjs} +2 -2
- package/dist/{kanban-definition-6JOO6SKY-C5XJUD3U.mjs → kanban-definition-6JOO6SKY-B03_bODj.mjs} +2 -2
- package/dist/{katex-DEJL_MaU.mjs → katex-Bif7Db7V.mjs} +1 -1
- package/dist/{lib-CItGM3rN.mjs → lib-CCQO9uWA.mjs} +2 -2
- package/dist/{libesm-Ob3yvbRV.mjs → libesm-_Wi8iuGI.mjs} +1 -1
- package/dist/{line-C6RZPh4T.mjs → line-C62ka-l9.mjs} +2 -2
- package/dist/ln-4TRFBYAT-Byit-TLI.mjs +1 -0
- package/dist/{loader-CoLeuXs-.mjs → loader-1IrHrVRY.mjs} +3 -3
- package/dist/loader-BEm7pFin.mjs +1 -0
- package/dist/ls-KSXFZCWH-CNZ_hN8P.mjs +1 -0
- package/dist/{lzma-DBkyKSY9.mjs → lzma-BSEvzrCT.mjs} +2 -2
- package/dist/md5sum-INMIK4DX-pTX2tfQd.mjs +1 -0
- package/dist/{mermaid.core-CcmmzbTt.mjs → mermaid.core-LrO0u_wA.mjs} +3 -3
- package/dist/{mindmap-definition-QFDTVHPH-WLdthwDy.mjs → mindmap-definition-QFDTVHPH-b0aFdJAS.mjs} +2 -2
- package/dist/mkdir-TDEMSB6C-Bl16kSBR.mjs +1 -0
- package/dist/mv-Z6MORUFL-D9pw6nb9.mjs +1 -0
- package/dist/nl-U5YJDM32-Bs_nMrMg.mjs +1 -0
- package/dist/od-VJEF2UR5-DwpkPMHp.mjs +1 -0
- package/dist/paste-7N6AFSDS-C8EyimeA.mjs +1 -0
- package/dist/{pieDiagram-DEJITSTG-7oeIAT-R.mjs → pieDiagram-DEJITSTG-C77h8TOO.mjs} +2 -2
- package/dist/preview-BoSe54Y5.mjs +1 -0
- package/dist/{preview-DWBYV32d.mjs → preview-qP8Vfz3W.mjs} +2 -2
- package/dist/printf-CX64KX2P-2Mks7IIT.mjs +1 -0
- package/dist/pwd-D4OZ7N27-m5fzqroZ.mjs +1 -0
- package/dist/{python3-AUFTPCU6-DmPp1QHj.mjs → python3-AUFTPCU6-B7_jrPM3.mjs} +2 -2
- package/dist/{quadrantDiagram-34T5L4WZ-DWVBhb1E.mjs → quadrantDiagram-34T5L4WZ-CLL-GTlz.mjs} +2 -2
- package/dist/readlink-MI4GCHJF-BMheCA1U.mjs +1 -0
- package/dist/{repair-launch-json-DiMbidtg.mjs → repair-launch-json-B2igGItE.mjs} +2 -2
- package/dist/{repair-mcp-configs-dTwbVEwq.mjs → repair-mcp-configs-B0YDgxKo.mjs} +2 -2
- package/dist/{repair-skills-BvhYVWdw.mjs → repair-skills-Cv_2HgEN.mjs} +3 -3
- package/dist/repair-skills-XaoNNrHC.mjs +1 -0
- package/dist/{requirementDiagram-MS252O5E-Bneel37I.mjs → requirementDiagram-MS252O5E-JIzm76n0.mjs} +2 -2
- package/dist/rev-XOSYPP45-4azlKYu4.mjs +1 -0
- package/dist/rg-FOQSCCX3-ViKChHv5.mjs +1 -0
- package/dist/rm-RTZG23RL-F9g7gQHU.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-CFMuhNvO.mjs +1 -0
- package/dist/{sankeyDiagram-XADWPNL6-4f2f9-uf.mjs → sankeyDiagram-XADWPNL6-Bpk8eTPe.mjs} +2 -2
- package/dist/sed-VFTTATXJ-BfHBQ11q.mjs +1 -0
- package/dist/seq-RN5ZUASB-BaUQfYSh.mjs +1 -0
- package/dist/{sequenceDiagram-FGHM5R23-B1K4VtLp.mjs → sequenceDiagram-FGHM5R23-CHCigzvZ.mjs} +2 -2
- package/dist/server-lock-8Lv6A-Xa-xTK-ENFB.mjs +1 -0
- package/dist/{server-lock-CN2YHwpP-Cwa4llpq.mjs → server-lock-CN2YHwpP-BYuwTc93.mjs} +73 -73
- package/dist/sha1sum-VJPNLNU6-NRAU83Yg.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-Cfe-w5CY.mjs +1 -0
- package/dist/sleep-VZFPZFWA-BgSOeH2N.mjs +1 -0
- package/dist/sort-DCNRDA7U-DqMg1dll.mjs +1 -0
- package/dist/split-SITCSYCZ-DqhMcIGL.mjs +1 -0
- package/dist/sqlite3-56UMWEY3-DNmhrHQv.mjs +1 -0
- package/dist/src-DD9KqmOQ.mjs +3 -0
- package/dist/start-B4zA8vv3.mjs +1 -0
- package/dist/start-DYPIgVG4.mjs +3 -0
- package/dist/stat-BT5A227F-DOG39Ce5.mjs +1 -0
- package/dist/{stateDiagram-FHFEXIEX-BREbMXiC.mjs → stateDiagram-FHFEXIEX-CiIJxbDV.mjs} +2 -2
- package/dist/stateDiagram-v2-QKLJ7IA2-CTdt2FVd.mjs +2 -0
- package/dist/strings-7PLOGTPD-l9kho9ff.mjs +1 -0
- package/dist/tac-SJGXQ4T2-DMDGVNTy.mjs +1 -0
- package/dist/tail-S5ULNTJU-knoYRbXD.mjs +1 -0
- package/dist/tar-ANUBEFJY-Db9qg5B2.mjs +1 -0
- package/dist/tee-O7VXZDCO-BgHEibOy.mjs +1 -0
- package/dist/time-DEUO3QV2-CXWA3kJ0.mjs +1 -0
- package/dist/{timeline-definition-GMOUNBTQ-Bd7XEw7o.mjs → timeline-definition-GMOUNBTQ-BBhlpYO9.mjs} +2 -2
- package/dist/timeout-VRKMCG72-aaC7r4sX.mjs +1 -0
- package/dist/touch-DX2IJOQ4-DGiKr2c0.mjs +1 -0
- package/dist/tr-2HXZRDSW-BDNDgux2.mjs +1 -0
- package/dist/tree-LYXBS7DC-BK2c44-E.mjs +1 -0
- package/dist/true-WHJNXCHG-B6CZ-ZF1.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-BWFllY1p.mjs +1 -0
- package/dist/uniq-SUNANL47-CiXMC2Qh.mjs +1 -0
- package/dist/{vennDiagram-DHZGUBPP-Bk-INjRY.mjs → vennDiagram-DHZGUBPP-CATweP9B.mjs} +2 -2
- package/dist/{wardleyDiagram-NUSXRM2D-DOD6wQla.mjs → wardleyDiagram-NUSXRM2D-3qxY3I6a.mjs} +2 -2
- package/dist/wc-TQB3VNOX-Bof613yN.mjs +1 -0
- package/dist/which-XZHEH76L-DfnqWxtA.mjs +1 -0
- package/dist/whoami-DGKU3D2X-DhtD1OhF.mjs +1 -0
- package/dist/{wrapper-BZO_sIci.mjs → wrapper-CGw3ogaz.mjs} +1 -1
- package/dist/write-project-skill-HXJW0bDK.mjs +36 -0
- package/dist/xan-BXDXYEIB-I8yansvE.mjs +1 -0
- package/dist/xan-view-ECQUO7AJ-DJhdCPf3.mjs +1 -0
- package/dist/xargs-I6EZUCYF-CdKFilDT.mjs +1 -0
- package/dist/{xychartDiagram-5P7HB3ND-B4AGYFQs.mjs → xychartDiagram-5P7HB3ND-BAWpa2N2.mjs} +2 -2
- package/dist/yazl-Clfc09F-.mjs +1 -0
- package/dist/{yazl-Docqgl6q.mjs → yazl-DgCFuIuD.mjs} +1 -1
- package/dist/yq-MJMAR36V-BXyMiYfX.mjs +1 -0
- package/package.json +1 -1
- package/dist/alias-JE7RI5QX-DmHh8yog.mjs +0 -1
- package/dist/awk2-POPGKRAI-C7696e-z.mjs +0 -1
- package/dist/base64-4YMZCVJ5-BIHNwDj2.mjs +0 -1
- package/dist/basename-AA2KJYZQ-Dcz4Ls85.mjs +0 -1
- package/dist/bash-IJWYRKFO-DgruzS3i.mjs +0 -1
- package/dist/build-Ca40rJCO.mjs +0 -1
- package/dist/cat-RDUMLXKC-BJJIS9lB.mjs +0 -1
- package/dist/channel-DE79NHCf.mjs +0 -2
- package/dist/chmod-SYMGL4JA-C1Ie7s0s.mjs +0 -1
- package/dist/classDiagram-6PBFFD2Q-BrpY9pLd.mjs +0 -2
- package/dist/classDiagram-v2-HSJHXN6E-DDV6mz7Y.mjs +0 -2
- package/dist/clear-5CZ5X4YR-CHSnzs8i.mjs +0 -1
- package/dist/clone-BD_JFVST.mjs +0 -2
- package/dist/column-WLPMMSTS-DTBoovzp.mjs +0 -1
- package/dist/comm-5SLSESQG-DT3SY7zS.mjs +0 -1
- package/dist/constants-6L3bwbSM.mjs +0 -2
- package/dist/cp-XOYR4ABJ-Bs6Rpbb2.mjs +0 -1
- package/dist/cut-OPC3VAGB-Bm1HBn07.mjs +0 -1
- package/dist/date-DD7FVA2V-Dv3os04S.mjs +0 -1
- package/dist/diff-HJF2MPDN-Di-oK2tx.mjs +0 -1
- package/dist/dirname-LEMTZZFS-D-u8wJ0b.mjs +0 -1
- package/dist/du-WO2ENHXQ-CO_jR0w6.mjs +0 -1
- package/dist/echo-O45JWWI2-RBT2dq5Y.mjs +0 -1
- package/dist/env-5EPCWSXR-DSwwgRF5.mjs +0 -1
- package/dist/expand-DTNXU4LQ-CtzV8vlq.mjs +0 -1
- package/dist/expansion-ENLSRCXJ-CNi8PTVy.mjs +0 -1
- package/dist/expr-5T3UU5KE-BOXtVHu2.mjs +0 -1
- package/dist/file-ZIGAJ4YS-Bt-1Wusv.mjs +0 -1
- package/dist/find-TPUOAIUQ-CJd25AiD.mjs +0 -1
- package/dist/fold-LDSORVYE-DZ2L21IZ.mjs +0 -1
- package/dist/git-handle-DdgvPBh6-Dv4DjLoy.mjs +0 -1
- package/dist/grep-3AIAIJVR-CzG01gPs.mjs +0 -1
- package/dist/gzip-AQXSGOVS-B_BV2fa3.mjs +0 -1
- package/dist/head-HT2B6D2J-CjBr6WQ1.mjs +0 -1
- package/dist/help-VVWX7SA5-C4HsVKec.mjs +0 -1
- package/dist/history-J4QRNGRO-1CYG7cs0.mjs +0 -1
- package/dist/hostname-BK6HG2DE-BLS00ZWn.mjs +0 -1
- package/dist/html-to-markdown-TFCECAGV-5Fopg2Q5.mjs +0 -1
- package/dist/init-CGNl62xW.mjs +0 -1
- package/dist/init-D998mblu.mjs +0 -317
- package/dist/join-GG2LDHE5-C_A2RnwJ.mjs +0 -1
- package/dist/jq-ODXZBPLY-hdWY1RUY.mjs +0 -1
- package/dist/ln-4TRFBYAT-CMm4PFgi.mjs +0 -1
- package/dist/loader-BfDp4sqJ.mjs +0 -1
- package/dist/ls-KSXFZCWH-Beyjypib.mjs +0 -1
- package/dist/md5sum-INMIK4DX-C2RH1Ljb.mjs +0 -1
- package/dist/mkdir-TDEMSB6C-BeLs_C7x.mjs +0 -1
- package/dist/mv-Z6MORUFL-BDAoI0Wd.mjs +0 -1
- package/dist/nl-U5YJDM32-SP99R3HJ.mjs +0 -1
- package/dist/od-VJEF2UR5-BR0Ho1t5.mjs +0 -1
- package/dist/paste-7N6AFSDS-Bz3kd4hU.mjs +0 -1
- package/dist/preview-CnOFDDeV.mjs +0 -1
- package/dist/printf-CX64KX2P-GrZNCK4M.mjs +0 -1
- package/dist/pwd-D4OZ7N27-DDRhZsId.mjs +0 -1
- package/dist/readlink-MI4GCHJF-mNeJ3km7.mjs +0 -1
- package/dist/repair-skills-qkZ_LTHD.mjs +0 -1
- package/dist/rev-XOSYPP45-KAKdorsx.mjs +0 -1
- package/dist/rg-FOQSCCX3-BWOdKDEd.mjs +0 -1
- package/dist/rm-RTZG23RL-D4Xj3X_m.mjs +0 -1
- package/dist/rmdir-XTQXT7RK-Bx-u3U5l.mjs +0 -1
- package/dist/sed-VFTTATXJ-DmL_7Y-J.mjs +0 -1
- package/dist/seq-RN5ZUASB-DeaNEJEM.mjs +0 -1
- package/dist/server-lock-8Lv6A-Xa-B4jggKdG.mjs +0 -1
- package/dist/sha1sum-VJPNLNU6-DYUNX0rt.mjs +0 -1
- package/dist/sha256sum-PI32XWXY-BwDMGEnF.mjs +0 -1
- package/dist/sleep-VZFPZFWA-D3IG7CwN.mjs +0 -1
- package/dist/sort-DCNRDA7U-BfL8J8kf.mjs +0 -1
- package/dist/split-SITCSYCZ-Q5NIWguo.mjs +0 -1
- package/dist/sqlite3-56UMWEY3-DA8bw7DG.mjs +0 -1
- package/dist/src-CeXDKSSn.mjs +0 -3
- package/dist/start-BqOu87VR.mjs +0 -3
- package/dist/start-ByfafCut.mjs +0 -1
- package/dist/stat-BT5A227F-CYFqsI8W.mjs +0 -1
- package/dist/stateDiagram-v2-QKLJ7IA2-DQeH2s3K.mjs +0 -2
- package/dist/strings-7PLOGTPD-BLW4mXRs.mjs +0 -1
- package/dist/tac-SJGXQ4T2-BGR2Dq7O.mjs +0 -1
- package/dist/tail-S5ULNTJU-BOBd42y5.mjs +0 -1
- package/dist/tar-ANUBEFJY-DCUS8bvA.mjs +0 -1
- package/dist/tee-O7VXZDCO-Bg8MXC_K.mjs +0 -1
- package/dist/time-DEUO3QV2-CxVP9vXG.mjs +0 -1
- package/dist/timeout-VRKMCG72-CVG2Q30a.mjs +0 -1
- package/dist/touch-DX2IJOQ4-DmEja_Fu.mjs +0 -1
- package/dist/tr-2HXZRDSW-DWcyuCoi.mjs +0 -1
- package/dist/tree-LYXBS7DC-CFaeUWGI.mjs +0 -1
- package/dist/true-WHJNXCHG-CJH22fVg.mjs +0 -1
- package/dist/unexpand-RGTMIGZM-Uj1QzdPV.mjs +0 -1
- package/dist/uniq-SUNANL47-MRCnRrGo.mjs +0 -1
- package/dist/wc-TQB3VNOX-JPk1lni-.mjs +0 -1
- package/dist/which-XZHEH76L-Cl63MOrV.mjs +0 -1
- package/dist/whoami-DGKU3D2X-CB3itqHE.mjs +0 -1
- package/dist/write-project-skill-CAgr6zKv.mjs +0 -36
- package/dist/xan-BXDXYEIB-ZPqGVO90.mjs +0 -1
- package/dist/xan-view-ECQUO7AJ-C-WHEJiv.mjs +0 -1
- package/dist/xargs-I6EZUCYF-BvcSF5Y7.mjs +0 -1
- package/dist/yazl-CQSNnbvt.mjs +0 -1
- package/dist/yq-MJMAR36V-_D_zdU3z.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./chunk-C94x7I9S.mjs";import{T as t,p as n,w as r}from"./src-BkCVz_TJ.mjs";import{L as i,P as a,k as o,s,y as c}from"./chunk-ICPOFSXX-C--tVIY5.mjs";import{i as l}from"./chunk-5PVQY5BW-DUXm3tDu.mjs";const u=Object.freeze({left:0,top:0,width:16,height:16}),d=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),f=Object.freeze({...u,...d}),p=Object.freeze({...f,body:``,hidden:!1}),m=Object.freeze({width:null,height:null}),h=Object.freeze({...m,...d}),g=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!_(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!_(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!_(e,n)?null:e}return null},_=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function ee(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function te(e,t){let n=ee(e,t);for(let r in p)r in d?r in e&&!(r in n)&&(n[r]=d[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ne(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function re(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=te(r[e]||i[e],a)}return o(t),n.forEach(o),te(e,a)}function ie(e,t){if(e.icons[t])return re(e,t,[]);let n=ne(e,[t])[t];return n?re(e,t,n):null}const ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,oe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function se(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(ae);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=oe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function ce(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function le(e,t){return e?`<defs>`+e+`</defs>`+t:t}function ue(e,t,n){let r=ce(e);return le(r.defs,t+r.content+n)}const de=e=>e===`unset`||e===`undefined`||e===`none`;function fe(e,t){let n={...f,...e},r={...h,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=ue(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=se(d,c/l)):(u=o===`auto`?c:o,d=s===null?se(u,l/c):s===`auto`?l:s);let p={},m=(e,t)=>{de(t)||(p[e]=t.toString())};m(`width`,u),m(`height`,d);let g=[i.left,i.top,c,l];return p.viewBox=g.join(` `),{attributes:p,viewBox:g,body:a}}const pe=/\sid="(\S+)"/g,me=new Map;function he(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=me.get(e)||0;return me.set(e,t+1),t?`${e}${t}`:e}function ge(e){let t=[],n;for(;n=pe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=he(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function _e(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function v(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var y=v();function ve(e){y=e}var b={exec:()=>null};function x(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(S.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ye=(()=>{try{return!0}catch{return!1}})(),S={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},be=/^(?:[ \t]*(?:\n|$))+/,xe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Se=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,C=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ce=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,w=/(?:[*+-]|\d{1,9}[.)])/,we=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Te=x(we).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Ee=x(we).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),T=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,De=/^[^\n]+/,E=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Oe=x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,E).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ke=x(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,w).getRegex(),D=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,O=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ae=x(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,O).replace(`tag`,D).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),je=x(T).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,D).getRegex(),k={blockquote:x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,je).getRegex(),code:xe,def:Oe,fences:Se,heading:Ce,hr:C,html:Ae,lheading:Te,list:ke,newline:be,paragraph:je,table:b,text:De},Me=x(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,D).getRegex(),Ne={...k,lheading:Ee,table:Me,paragraph:x(T).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Me).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,D).getRegex()},Pe={...k,html:x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,O).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:b,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x(T).replace(`hr`,C).replace(`heading`,` *#{1,6} *[^
|
|
1
|
+
import{t as e}from"./chunk-C94x7I9S.mjs";import{T as t,p as n,w as r}from"./src-BkCVz_TJ.mjs";import{L as i,P as a,k as o,s,y as c}from"./chunk-ICPOFSXX-D0MVsm4H.mjs";import{i as l}from"./chunk-5PVQY5BW-C5V4E1lO.mjs";const u=Object.freeze({left:0,top:0,width:16,height:16}),d=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),f=Object.freeze({...u,...d}),p=Object.freeze({...f,body:``,hidden:!1}),m=Object.freeze({width:null,height:null}),h=Object.freeze({...m,...d}),g=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!_(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!_(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!_(e,n)?null:e}return null},_=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function ee(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function te(e,t){let n=ee(e,t);for(let r in p)r in d?r in e&&!(r in n)&&(n[r]=d[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ne(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function re(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=te(r[e]||i[e],a)}return o(t),n.forEach(o),te(e,a)}function ie(e,t){if(e.icons[t])return re(e,t,[]);let n=ne(e,[t])[t];return n?re(e,t,n):null}const ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,oe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function se(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(ae);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=oe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function ce(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function le(e,t){return e?`<defs>`+e+`</defs>`+t:t}function ue(e,t,n){let r=ce(e);return le(r.defs,t+r.content+n)}const de=e=>e===`unset`||e===`undefined`||e===`none`;function fe(e,t){let n={...f,...e},r={...h,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=ue(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=se(d,c/l)):(u=o===`auto`?c:o,d=s===null?se(u,l/c):s===`auto`?l:s);let p={},m=(e,t)=>{de(t)||(p[e]=t.toString())};m(`width`,u),m(`height`,d);let g=[i.left,i.top,c,l];return p.viewBox=g.join(` `),{attributes:p,viewBox:g,body:a}}const pe=/\sid="(\S+)"/g,me=new Map;function he(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=me.get(e)||0;return me.set(e,t+1),t?`${e}${t}`:e}function ge(e){let t=[],n;for(;n=pe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=he(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function _e(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function v(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var y=v();function ve(e){y=e}var b={exec:()=>null};function x(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(S.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ye=(()=>{try{return!0}catch{return!1}})(),S={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},be=/^(?:[ \t]*(?:\n|$))+/,xe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Se=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,C=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ce=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,w=/(?:[*+-]|\d{1,9}[.)])/,we=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Te=x(we).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Ee=x(we).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),T=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,De=/^[^\n]+/,E=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Oe=x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,E).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ke=x(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,w).getRegex(),D=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,O=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ae=x(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,O).replace(`tag`,D).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),je=x(T).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,D).getRegex(),k={blockquote:x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,je).getRegex(),code:xe,def:Oe,fences:Se,heading:Ce,hr:C,html:Ae,lheading:Te,list:ke,newline:be,paragraph:je,table:b,text:De},Me=x(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,D).getRegex(),Ne={...k,lheading:Ee,table:Me,paragraph:x(T).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Me).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,D).getRegex()},Pe={...k,html:x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,O).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:b,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x(T).replace(`hr`,C).replace(`heading`,` *#{1,6} *[^
|
|
2
2
|
]`).replace(`lheading`,Te).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Fe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ie=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Le=/^( {2,}|\\)\n(?!\s*$)/,Re=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,A=/[\p{P}\p{S}]/u,j=/[\s\p{P}\p{S}]/u,ze=/[^\s\p{P}\p{S}]/u,Be=x(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,j).getRegex(),Ve=/(?!~)[\p{P}\p{S}]/u,He=/(?!~)[\s\p{P}\p{S}]/u,Ue=/(?:[^\s\p{P}\p{S}]|~)/u,We=x(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,ye?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Ge=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ke=x(Ge,`u`).replace(/punct/g,A).getRegex(),qe=x(Ge,`u`).replace(/punct/g,Ve).getRegex(),Je=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Ye=x(Je,`gu`).replace(/notPunctSpace/g,ze).replace(/punctSpace/g,j).replace(/punct/g,A).getRegex(),Xe=x(Je,`gu`).replace(/notPunctSpace/g,Ue).replace(/punctSpace/g,He).replace(/punct/g,Ve).getRegex(),Ze=x(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ze).replace(/punctSpace/g,j).replace(/punct/g,A).getRegex(),Qe=x(/\\(punct)/,`gu`).replace(/punct/g,A).getRegex(),$e=x(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),et=x(O).replace(`(?:-->|$)`,`-->`).getRegex(),tt=x(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,et).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),M=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,nt=x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,M).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rt=x(/^!?\[(label)\]\[(ref)\]/).replace(`label`,M).replace(`ref`,E).getRegex(),it=x(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,E).getRegex(),at=x(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,rt).replace(`nolink`,it).getRegex(),ot=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,N={_backpedal:b,anyPunctuation:Qe,autolink:$e,blockSkip:We,br:Le,code:Ie,del:b,emStrongLDelim:Ke,emStrongRDelimAst:Ye,emStrongRDelimUnd:Ze,escape:Fe,link:nt,nolink:it,punctuation:Be,reflink:rt,reflinkSearch:at,tag:tt,text:Re,url:b},st={...N,link:x(/^!?\[(label)\]\((.*?)\)/).replace(`label`,M).getRegex(),reflink:x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,M).getRegex()},P={...N,emStrongRDelimAst:Xe,emStrongLDelim:qe,url:x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,ot).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:x(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,ot).getRegex()},ct={...P,br:x(Le).replace(`{2,}`,`*`).getRegex(),text:x(P.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},F={normal:k,gfm:Ne,pedantic:Pe},I={normal:N,gfm:P,breaks:ct,pedantic:st},lt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},ut=e=>lt[e];function L(e,t){if(t){if(S.escapeTest.test(e))return e.replace(S.escapeReplace,ut)}else if(S.escapeTestNoEncode.test(e))return e.replace(S.escapeReplaceNoEncode,ut);return e}function dt(e){try{e=encodeURI(e).replace(S.percentDecode,`%`)}catch{return null}return e}function ft(e,t){let n=e.replace(S.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(S.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(S.slashPipe,`|`);return n}function R(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function pt(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function mt(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function ht(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
3
3
|
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
4
4
|
`)}var z=class{options;rules;lexer;constructor(e){this.options=e||y}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:R(e,`
|
|
@@ -68,4 +68,4 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
68
68
|
`).forEach((e,n)=>{n!==0&&(o++,a.push([])),e.split(` `).forEach(e=>{e=e.replace(/'/g,`'`),e&&a[o].push({content:e,type:t})})}):e.type===`strong`||e.type===`em`?e.tokens.forEach(t=>{s(t,e.type)}):e.type===`html`&&a[o].push({content:e.text,type:`normal`})}return r(s,`processNode`),i.forEach(e=>{e.type===`paragraph`?e.tokens?.forEach(e=>{s(e)}):e.type===`html`?a[o].push({content:e.text,type:`normal`}):a[o].push({content:e.raw,type:`normal`})}),a}r(Et,`markdownToLines`);function Dt(e){return e?`<p>${e.replace(/\\n|\n/g,`<br />`)}</p>`:``}r(Dt,`nonMarkdownToHTML`);function Ot(e,{markdownAutoWrap:n}={}){let i=K.lexer(e);function a(e){return e.type===`text`?n===!1?e.text.replace(/\n */g,`<br/>`).replace(/ /g,` `):e.text.replace(/\n */g,`<br/>`):e.type===`strong`?`<strong>${e.tokens?.map(a).join(``)}</strong>`:e.type===`em`?`<em>${e.tokens?.map(a).join(``)}</em>`:e.type===`paragraph`?`<p>${e.tokens?.map(a).join(``)}</p>`:e.type===`space`?``:e.type===`html`?`${e.text}`:e.type===`escape`?e.text:(t.warn(`Unsupported markdown: ${e.type}`),e.raw)}return r(a,`output`),i.map(a).join(``)}r(Ot,`markdownToHTML`);function kt(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}r(kt,`splitTextToChars`);function At(e,t){return J(e,[],kt(t.content),t.type)}r(At,`splitWordToFitWidth`);function J(e,t,n,r){if(n.length===0)return[{content:t.join(``),type:r},{content:``,type:r}];let[i,...a]=n,o=[...t,i];return e([{content:o.join(``),type:r}])?J(e,o,a,r):(t.length===0&&i&&(t.push(i),n.shift()),[{content:t.join(``),type:r},{content:n.join(``),type:r}])}r(J,`splitWordToFitWidthRecursion`);function jt(e,t){if(e.some(({content:e})=>e.includes(`
|
|
69
69
|
`)))throw Error(`splitLineToFitWidth does not support newlines in the line`);return Y(e,t)}r(jt,`splitLineToFitWidth`);function Y(e,t,n=[],r=[]){if(e.length===0)return r.length>0&&n.push(r),n.length>0?n:[];let i=``;e[0].content===` `&&(i=` `,e.shift());let a=e.shift()??{content:` `,type:`normal`},o=[...r];if(i!==``&&o.push({content:i,type:`normal`}),o.push(a),t(o))return Y(e,t,n,o);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=At(t,a);n.push([r]),i.content&&e.unshift(i)}return Y(e,t,n)}r(Y,`splitLineToFitWidthRecursion`);function X(e,t){t&&e.attr(`style`,t)}r(X,`applyStyle`);var Mt=16384;async function Nt(e,t,n,r,l=!1,u=c()){let d=e.append(`foreignObject`);d.attr(`width`,`${Math.min(10*n,Mt)}px`),d.attr(`height`,`${Math.min(10*n,Mt)}px`);let f=d.append(`xhtml:div`),p=o(t.label)?await a(t.label.replace(s.lineBreakRegex,`
|
|
70
70
|
`),u):i(t.label,u),m=t.isNode?`nodeLabel`:`edgeLabel`,h=f.append(`span`);h.html(p),X(h,t.labelStyle),h.attr(`class`,`${m} ${r}`),X(f,t.labelStyle),f.style(`display`,`table-cell`),f.style(`white-space`,`nowrap`),f.style(`line-height`,`1.5`),n!==1/0&&(f.style(`max-width`,n+`px`),f.style(`text-align`,`center`)),f.attr(`xmlns`,`http://www.w3.org/1999/xhtml`),l&&f.attr(`class`,`labelBkg`);let g=f.node().getBoundingClientRect();return g.width===n&&(f.style(`display`,`table`),f.style(`white-space`,`break-spaces`),f.style(`width`,n+`px`),g=f.node().getBoundingClientRect()),d.node()}r(Nt,`addHtmlSpan`);function Z(e,t,n,r=!1){let i=e.append(`tspan`).attr(`class`,`text-outer-tspan`).attr(`x`,0).attr(`y`,t*n-.1+`em`).attr(`dy`,n+`em`);return r&&i.attr(`text-anchor`,`middle`),i}r(Z,`createTspan`);function Pt(e,t,n){let r=e.append(`text`),i=Z(r,1,t);$(i,n);let a=i.node().getComputedTextLength();return r.remove(),a}r(Pt,`computeWidthOfText`);function Ft(e,t,n){let r=e.append(`text`),i=Z(r,1,t);$(i,[{content:n,type:`normal`}]);let a=i.node()?.getBoundingClientRect();return a&&r.remove(),a}r(Ft,`computeDimensionOfText`);function It(e,t,n,i=!1,a=!1){let o=1.1,s=t.append(`g`),c=s.insert(`rect`).attr(`class`,`background`).attr(`style`,`stroke: none`),l=s.append(`text`).attr(`y`,`-10.1`);a&&l.attr(`text-anchor`,`middle`);let u=0;for(let t of n){let n=r(t=>Pt(s,o,t)<=e,`checkWidth`),i=n(t)?[t]:jt(t,n);for(let e of i)$(Z(l,u,o,a),e),u++}if(i){let e=l.node().getBBox();return c.attr(`x`,e.x-2).attr(`y`,e.y-2).attr(`width`,e.width+4).attr(`height`,e.height+4),s.node()}else return l.node()}r(It,`createFormattedText`);function Q(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;default:return e}})}r(Q,`decodeHTMLEntities`);function $(e,t){e.text(``),t.forEach((t,n)=>{let r=e.append(`tspan`).attr(`font-style`,t.type===`em`?`italic`:`normal`).attr(`class`,`text-inner-tspan`).attr(`font-weight`,t.type===`strong`?`bold`:`normal`);n===0?r.text(Q(t.content)):r.text(` `+Q(t.content))})}r($,`updateTextContentAndStyles`);async function Lt(e,t={}){let n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,r,a)=>(n.push((async()=>{let n=`${r}:${a}`;return await St(n)?await Ct(n,void 0,{class:`label-icon`}):`<i class='${i(e,t).replace(`:`,` `)}'></i>`})()),e));let r=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>r.shift()??``)}r(Lt,`replaceIconSubstring`);var Rt=r(async(e,r=``,{style:i=``,isTitle:a=!1,classes:s=``,useHtmlLabels:c=!0,markdown:u=!0,isNode:d=!0,width:f=200,addSvgBackground:p=!1}={},m)=>{if(t.debug(`XYZ createText`,r,i,a,s,c,d,`addSvgBackground: `,p),c){let t=await Lt(l(u?Ot(r,m):Dt(r)),m),n=r.replace(/\\\\/g,`\\`);return await Nt(e,{isNode:d,label:o(r)?n:t,labelStyle:i.replace(`fill:`,`color:`)},f,s,p,m)}else{let t=l(r.replace(/<br\s*\/?>/g,`<br/>`)),o=It(f,e,u?Et(t.replace(`<br>`,`<br/>`),m):Tt(t),r?p:!1,!d);if(d){/stroke:/.exec(i)&&(i=i.replace(`stroke:`,`lineColor:`));let e=i.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);n(o).attr(`style`,e)}else{let e=i.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/background:/g,`fill:`);n(o).select(`rect`).attr(`style`,e.replace(/background:/g,`fill:`));let t=i.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);n(o).select(`text`).attr(`style`,t)}return a?n(o).selectAll(`tspan.text-outer-tspan`).classed(`title-row`,!0):n(o).selectAll(`tspan.text-outer-tspan`).classed(`row`,!0),o}},`createText`);export{vt as a,bt as i,Rt as n,gt as o,Ct as r,Ft as t};
|
|
71
|
-
//# sourceMappingURL=chunk-U2HBQHQK-
|
|
71
|
+
//# sourceMappingURL=chunk-U2HBQHQK-DB1SzWgs.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./chunk-YNYSPYQ5-
|
|
1
|
+
import{t as e}from"./chunk-YNYSPYQ5-DHter9G3.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{r as a,t as o}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{n as s}from"./chunk-7L36YK2X-B3QRwLbB.mjs";import{t as c}from"./chunk-SYMJJMQ4-DUF5hY-A.mjs";import{n as l,s as u}from"./chunk-7TSDKFEO-CMVuiOdP.mjs";import{n as d}from"./chunk-BBXLRYSX-OVlWa2B-.mjs";import{a as f,c as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./chunk-F55TLFGB-AEzanSfe.mjs";var b,x=r(()=>{b=class{input;pos=0;tokens=[];constructor(e){this.input=e}tokenize(){for(;this.pos<this.input.length&&(this.skipWhitespace(),!(this.pos>=this.input.length));){let e=this.nextToken();e&&this.tokens.push(e)}return this.tokens.push({type:`eof`,value:``,pos:this.pos}),this.tokens}skipWhitespace(){for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e===` `||e===` `||e===`
|
|
2
2
|
`||e===`\r`)this.pos++;else if(e===`#`)for(;this.pos<this.input.length&&this.input[this.pos]!==`
|
|
3
3
|
`;)this.pos++;else break}}nextToken(){let e=this.pos,t=this.input[this.pos];if(t>=`0`&&t<=`9`)return this.readNumber();if(t===`"`||t===`'`||t==="`")return this.readString(t);if(t===`b`&&this.pos+1<this.input.length){let e=this.input[this.pos+1];if(e===`"`||e===`'`||e==="`")return this.pos++,this.readString(e)}if(t===`/`){let t=this.tokens[this.tokens.length-1];return t&&(t.type===`int`||t.type===`float`||t.type===`string`||t.type===`ident`||t.type===`)`||t.type===`]`)?this.input[this.pos+1]===`/`?(this.pos+=2,{type:`//`,value:`//`,pos:e}):(this.pos++,{type:`/`,value:`/`,pos:e}):this.readRegex()}if(this.match(`not in`))return{type:`not in`,value:`not in`,pos:e};if(this.match(`=>`))return{type:`=>`,value:`=>`,pos:e};if(this.match(`**`))return{type:`**`,value:`**`,pos:e};if(this.match(`++`))return{type:`++`,value:`++`,pos:e};if(this.match(`//`))return{type:`//`,value:`//`,pos:e};if(this.match(`==`))return{type:`==`,value:`==`,pos:e};if(this.match(`!=`))return{type:`!=`,value:`!=`,pos:e};if(this.match(`<=`))return{type:`<=`,value:`<=`,pos:e};if(this.match(`>=`))return{type:`>=`,value:`>=`,pos:e};if(this.match(`&&`))return{type:`&&`,value:`&&`,pos:e};if(this.match(`||`))return{type:`||`,value:`||`,pos:e};let n=new Map([[`(`,`(`],[`)`,`)`],[`[`,`[`],[`]`,`]`],[`{`,`{`],[`}`,`}`],[`,`,`,`],[`:`,`:`],[`;`,`;`],[`+`,`+`],[`-`,`-`],[`*`,`*`],[`%`,`%`],[`<`,`<`],[`>`,`>`],[`!`,`!`],[`.`,`.`],[`|`,`|`],[`=`,`=`]]).get(t);if(n!==void 0)return this.pos++,{type:n,value:t,pos:e};if(this.isIdentStart(t))return this.readIdentifier();throw Error(`Unexpected character '${t}' at position ${this.pos}`)}match(e){if(this.input.slice(this.pos,this.pos+e.length)===e){if(/^[a-zA-Z]/.test(e)){let t=this.input[this.pos+e.length];if(t&&this.isIdentChar(t))return!1}return this.pos+=e.length,!0}return!1}isIdentStart(e){return e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`_`}isIdentChar(e){return this.isIdentStart(e)||e>=`0`&&e<=`9`}readNumber(){let e=this.pos,t=!1,n=!1;for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e>=`0`&&e<=`9`)this.pos++;else if(e===`_`)this.pos++;else if(e===`.`&&!t&&!n)t=!0,this.pos++;else if((e===`e`||e===`E`)&&!n)n=!0,t=!0,this.pos++,this.pos<this.input.length&&(this.input[this.pos]===`+`||this.input[this.pos]===`-`)&&this.pos++;else break}let r=this.input.slice(e,this.pos).replace(/_/g,``);return{type:t?`float`:`int`,value:r,pos:e}}readString(e){let t=this.pos;this.pos++;let n=``;for(;this.pos<this.input.length;){let r=this.input[this.pos];if(r===e)return this.pos++,{type:`string`,value:n,pos:t};if(r===`\\`){if(this.pos++,this.pos<this.input.length){let e=this.input[this.pos];switch(e){case`n`:n+=`
|
|
4
4
|
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;case`\\`:n+=`\\`;break;case`"`:n+=`"`;break;case`'`:n+=`'`;break;case"`":n+="`";break;case`0`:n+=`\0`;break;default:n+=e}this.pos++}}else n+=r,this.pos++}throw Error(`Unterminated string starting at position ${t}`)}readRegex(){let e=this.pos;this.pos++;let t=``,n=``;for(;this.pos<this.input.length;){let r=this.input[this.pos];if(r===`/`){for(this.pos++;this.pos<this.input.length&&this.input[this.pos]===`i`;)n+=this.input[this.pos],this.pos++;return{type:`regex`,value:t+(n?`/${n}`:``),pos:e}}r===`\\`?(t+=r,this.pos++,this.pos<this.input.length&&(t+=this.input[this.pos],this.pos++)):(t+=r,this.pos++)}throw Error(`Unterminated regex starting at position ${e}`)}readIdentifier(){let e=this.pos;for(;this.pos<this.input.length&&this.isIdentChar(this.input[this.pos]);)this.pos++;let t=!1;this.pos<this.input.length&&this.input[this.pos]===`?`&&(t=!0,this.pos++);let n=this.input.slice(e,t?this.pos-1:this.pos);t&&(n+=`?`);let r=new Map([[`true`,`true`],[`false`,`false`],[`null`,`null`],[`and`,`and`],[`or`,`or`],[`eq`,`eq`],[`ne`,`ne`],[`lt`,`lt`],[`le`,`le`],[`gt`,`gt`],[`ge`,`ge`],[`in`,`in`],[`as`,`as`],[`_`,`_`]]),i=n.replace(/\?$/,``),a=r.get(i);return a!==void 0&&!t?{type:a,value:i,pos:e}:{type:`ident`,value:n,pos:e}}}}),S={};n(S,{parseMoonblade:()=>w,parseNamedExpressions:()=>C});function C(e){let t=[],n=new b(e).tokenize(),r=0,i=()=>n[r]||{type:`eof`,value:``,pos:0},a=()=>n[r++];for(;i().type!==`eof`;){if(i().type===`,`&&t.length>0){a();continue}let o=[],s=0,c=r;for(;i().type!==`eof`;){let e=i();if((e.type===`,`||e.type===`as`)&&s===0)break;(e.type===`(`||e.type===`[`||e.type===`{`)&&s++,(e.type===`)`||e.type===`]`||e.type===`}`)&&s--,o.push(a())}o.push({type:`eof`,value:``,pos:0});let l=new E(o).parse(),u;if(i().type===`as`)if(a(),i().type===`(`){a();let e=[];for(;i().type!==`)`&&i().type!==`eof`;)(i().type===`ident`||i().type===`string`)&&(e.push(i().value),a()),i().type===`,`&&a();i().type===`)`&&a(),u=e}else if(i().type===`ident`||i().type===`string`)u=i().value,a();else throw Error(`Expected name after 'as', got ${i().type}`);else u=e.slice(n[c].pos,n[r-1]?.pos||e.length).trim(),l.type===`identifier`&&(u=l.name);t.push({expr:l,name:u})}return t}function w(e){let t=new b(e).tokenize();return new E(t).parse()}var T,E,D=r(()=>{x(),T={PIPE:1,OR:2,AND:3,EQUALITY:4,COMPARISON:5,ADDITIVE:6,MULTIPLICATIVE:7,POWER:8,UNARY:9,POSTFIX:10},E=class{pos=0;tokens;constructor(e){this.tokens=e}parse(){let e=this.parseExpr(0);if(this.peek().type!==`eof`)throw Error(`Unexpected token: ${this.peek().value}`);return e}parseExpr(e){let t=this.parsePrefix();for(;;){let n=this.peek(),r=this.getInfixPrec(n.type);if(r<e)break;t=this.parseInfix(t,r)}return t}parsePrefix(){let e=this.peek();switch(e.type){case`int`:return this.advance(),{type:`int`,value:Number.parseInt(e.value,10)};case`float`:return this.advance(),{type:`float`,value:Number.parseFloat(e.value)};case`string`:return this.advance(),{type:`string`,value:e.value};case`regex`:{this.advance();let t=e.value.split(`/`),n=t.length>1?t[t.length-1]:``;return{type:`regex`,pattern:t.slice(0,-1).join(`/`)||e.value,caseInsensitive:n.includes(`i`)}}case`true`:return this.advance(),{type:`bool`,value:!0};case`false`:return this.advance(),{type:`bool`,value:!1};case`null`:return this.advance(),{type:`null`};case`_`:return this.advance(),{type:`underscore`};case`ident`:{let t=e.value,n=t.endsWith(`?`),r=n?t.slice(0,-1):t;if(this.advance(),this.peek().type===`(`)return this.parseFunctionCall(r);if(this.peek().type===`=>`){this.advance();let e=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:[r],body:e},[r])}return{type:`identifier`,name:r,unsure:n}}case`(`:{this.advance();let e=[];if(this.peek().type===`)`){if(this.advance(),this.peek().type===`=>`)return this.advance(),{type:`lambda`,params:[],body:this.parseExpr(0)};throw Error(`Empty parentheses not allowed`)}if(this.peek().type===`ident`){let t=this.peek().value;if(this.advance(),this.peek().type===`,`||this.peek().type===`)`){for(e.push(t);this.peek().type===`,`&&(this.advance(),this.peek().type===`ident`);)e.push(this.peek().value),this.advance();if(this.peek().type===`)`&&(this.advance(),this.peek().type===`=>`)){this.advance();let t=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:e,body:t},e)}this.pos-=e.length*2,e.length>1&&(this.pos=this.pos)}this.pos--}let t=this.parseExpr(0);return this.expect(`)`),this.peek().type,t}case`[`:return this.parseList();case`{`:return this.parseMap();case`-`:{this.advance();let e=this.parseExpr(T.UNARY);return e.type===`int`?{type:`int`,value:-e.value}:e.type===`float`?{type:`float`,value:-e.value}:{type:`func`,name:`neg`,args:[{expr:e}]}}case`!`:return this.advance(),{type:`func`,name:`not`,args:[{expr:this.parseExpr(T.UNARY)}]};default:throw Error(`Unexpected token: ${e.type} (${e.value})`)}}parseFunctionCall(e){this.expect(`(`);let t=[];if(this.peek().type!==`)`)do{t.length>0&&this.peek().type===`,`&&this.advance();let e;if(this.peek().type===`ident`){let t=this.peek().value,n=this.pos+1;n<this.tokens.length&&this.tokens[n].type===`=`&&(e=t,this.advance(),this.advance())}let n=this.parseExpr(0);t.push({name:e,expr:n})}while(this.peek().type===`,`);return this.expect(`)`),{type:`func`,name:e.toLowerCase(),args:t}}parseList(){this.expect(`[`);let e=[];if(this.peek().type!==`]`)do e.length>0&&this.peek().type===`,`&&this.advance(),e.push(this.parseExpr(0));while(this.peek().type===`,`);return this.expect(`]`),{type:`list`,elements:e}}parseMap(){this.expect(`{`);let e=[];if(this.peek().type!==`}`)do{e.length>0&&this.peek().type===`,`&&this.advance();let t;if(this.peek().type===`ident`)t=this.peek().value,this.advance();else if(this.peek().type===`string`)t=this.peek().value,this.advance();else throw Error(`Expected map key, got ${this.peek().type}`);this.expect(`:`);let n=this.parseExpr(0);e.push({key:t,value:n})}while(this.peek().type===`,`);return this.expect(`}`),{type:`map`,entries:e}}parseInfix(e,t){let n=this.peek(),r=new Map([[`+`,`add`],[`-`,`sub`],[`*`,`mul`],[`/`,`div`],[`//`,`idiv`],[`%`,`mod`],[`**`,`pow`],[`++`,`concat`],[`==`,`==`],[`!=`,`!=`],[`<`,`<`],[`<=`,`<=`],[`>`,`>`],[`>=`,`>=`],[`eq`,`eq`],[`ne`,`ne`],[`lt`,`lt`],[`le`,`le`],[`gt`,`gt`],[`ge`,`ge`],[`&&`,`and`],[`and`,`and`],[`||`,`or`],[`or`,`or`]]).get(n.type);if(r!==void 0){this.advance();let i=this.parseExpr(t+(this.isRightAssoc(n.type)?0:1));return{type:`func`,name:r,args:[{expr:e},{expr:i}]}}if(n.type===`|`){this.advance();let n=this.parseExpr(t);return this.handlePipe(e,n)}if(n.type===`.`)return this.advance(),this.handleDot(e);if(n.type===`[`)return this.advance(),this.handleIndexing(e);if(n.type===`in`)return this.advance(),{type:`func`,name:`contains`,args:[{expr:this.parseExpr(t+1)},{expr:e}]};if(n.type===`not in`)return this.advance(),{type:`func`,name:`not`,args:[{expr:{type:`func`,name:`contains`,args:[{expr:this.parseExpr(t+1)},{expr:e}]}}]};throw Error(`Unexpected infix token: ${n.type}`)}handlePipe(e,t){if(t.type===`identifier`)return{type:`func`,name:t.name,args:[{expr:e}]};if(t.type===`func`){let n=this.countUnderscores(t);return n===0?t:n===1?this.fillUnderscore(t,e):{type:`pipeline`,exprs:[e,t]}}return this.countUnderscores(t)===1?this.fillUnderscore(t,e):t}handleDot(e){let t=this.peek();if(t.type===`ident`){let n=t.value;if(this.advance(),this.peek().type===`(`){let t=this.parseFunctionCall(n);return t.type===`func`&&t.args.unshift({expr:e}),t}return{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`string`,value:n}}]}}if(t.type===`int`){let n=Number.parseInt(t.value,10);return this.advance(),{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`int`,value:n}}]}}if(t.type===`string`){let n=t.value;return this.advance(),{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`string`,value:n}}]}}throw Error(`Expected identifier, number, or string after dot, got ${t.type}`)}handleIndexing(e){if(this.peek().type===`:`){if(this.advance(),this.peek().type===`]`)return this.advance(),{type:`func`,name:`slice`,args:[{expr:e}]};let t=this.parseExpr(0);return this.expect(`]`),{type:`func`,name:`slice`,args:[{expr:e},{expr:{type:`int`,value:0}},{expr:t}]}}let t=this.parseExpr(0);if(this.peek().type===`:`){if(this.advance(),this.peek().type===`]`)return this.advance(),{type:`func`,name:`slice`,args:[{expr:e},{expr:t}]};let n=this.parseExpr(0);return this.expect(`]`),{type:`func`,name:`slice`,args:[{expr:e},{expr:t},{expr:n}]}}return this.expect(`]`),{type:`func`,name:`get`,args:[{expr:e},{expr:t}]}}countUnderscores(e){return e.type===`underscore`?1:e.type===`func`?e.args.reduce((e,t)=>e+this.countUnderscores(t.expr),0):e.type===`list`?e.elements.reduce((e,t)=>e+this.countUnderscores(t),0):e.type===`map`?e.entries.reduce((e,t)=>e+this.countUnderscores(t.value),0):0}fillUnderscore(e,t){return e.type===`underscore`?t:e.type===`func`?{...e,args:e.args.map(e=>({...e,expr:this.fillUnderscore(e.expr,t)}))}:e.type===`list`?{...e,elements:e.elements.map(e=>this.fillUnderscore(e,t))}:e.type===`map`?{...e,entries:e.entries.map(e=>({...e,value:this.fillUnderscore(e.value,t)}))}:e}bindLambdaArgs(e,t){return{...e,body:this.bindLambdaArgsInExpr(e.body,t)}}bindLambdaArgsInExpr(e,t){return e.type===`identifier`&&t.includes(e.name)?{type:`lambdaBinding`,name:e.name}:e.type===`func`?{...e,args:e.args.map(e=>({...e,expr:this.bindLambdaArgsInExpr(e.expr,t)}))}:e.type===`list`?{...e,elements:e.elements.map(e=>this.bindLambdaArgsInExpr(e,t))}:e.type===`map`?{...e,entries:e.entries.map(e=>({...e,value:this.bindLambdaArgsInExpr(e.value,t)}))}:e}getInfixPrec(e){switch(e){case`|`:return T.PIPE;case`||`:case`or`:return T.OR;case`&&`:case`and`:return T.AND;case`==`:case`!=`:case`eq`:case`ne`:return T.EQUALITY;case`<`:case`<=`:case`>`:case`>=`:case`lt`:case`le`:case`gt`:case`ge`:case`in`:case`not in`:return T.COMPARISON;case`+`:case`-`:case`++`:return T.ADDITIVE;case`*`:case`/`:case`//`:case`%`:return T.MULTIPLICATIVE;case`**`:return T.POWER;case`.`:case`[`:return T.POSTFIX;default:return-1}}isRightAssoc(e){return e===`**`}peek(){return this.tokens[this.pos]||{type:`eof`,value:``,pos:0}}advance(){return this.tokens[this.pos++]}expect(e){let t=this.peek();if(t.type!==e)throw Error(`Expected ${e}, got ${t.type}`);return this.advance()}}});D();function O(e,t){return t.length===0?j(e,[]):t.length===1?{type:`Pipe`,left:t[0],right:j(e,[])}:{type:`Pipe`,left:t[0],right:j(e,t.slice(1))}}var k={add:e=>A(`+`,e[0],e[1]),sub:e=>A(`-`,e[0],e[1]),mul:e=>A(`*`,e[0],e[1]),div:e=>A(`/`,e[0],e[1]),mod:e=>A(`%`,e[0],e[1]),idiv:e=>j(`floor`,[A(`/`,e[0],e[1])]),pow:e=>O(`pow`,e),neg:e=>({type:`UnaryOp`,op:`-`,operand:e[0]}),"==":e=>A(`==`,e[0],e[1]),"!=":e=>A(`!=`,e[0],e[1]),"<":e=>A(`<`,e[0],e[1]),"<=":e=>A(`<=`,e[0],e[1]),">":e=>A(`>`,e[0],e[1]),">=":e=>A(`>=`,e[0],e[1]),eq:e=>A(`==`,P(e[0]),P(e[1])),ne:e=>A(`!=`,P(e[0]),P(e[1])),lt:e=>A(`<`,P(e[0]),P(e[1])),le:e=>A(`<=`,P(e[0]),P(e[1])),gt:e=>A(`>`,P(e[0]),P(e[1])),ge:e=>A(`>=`,P(e[0]),P(e[1])),and:e=>A(`and`,e[0],e[1]),or:e=>A(`or`,e[0],e[1]),not:e=>({type:`UnaryOp`,op:`not`,operand:e[0]}),len:e=>O(`length`,e),length:e=>O(`length`,e),upper:e=>O(`ascii_upcase`,e),lower:e=>O(`ascii_downcase`,e),trim:e=>O(`trim`,e),ltrim:e=>e.length===0?j(`ltrimstr`,[{type:`Literal`,value:` `}]):{type:`Pipe`,left:e[0],right:j(`ltrimstr`,[{type:`Literal`,value:` `}])},rtrim:e=>e.length===0?j(`rtrimstr`,[{type:`Literal`,value:` `}]):{type:`Pipe`,left:e[0],right:j(`rtrimstr`,[{type:`Literal`,value:` `}])},split:e=>O(`split`,e),join:e=>e.length===1?j(`join`,[{type:`Literal`,value:``}]):O(`join`,e),concat:e=>A(`+`,e[0],e[1]),startswith:e=>O(`startswith`,e),endswith:e=>O(`endswith`,e),contains:e=>O(`contains`,e),replace:e=>O(`gsub`,e),substr:e=>e.length===2?{type:`Slice`,base:e[0],start:e[1]}:{type:`Slice`,base:e[0],start:e[1],end:A(`+`,e[1],e[2])},abs:e=>O(`fabs`,e),floor:e=>O(`floor`,e),ceil:e=>O(`ceil`,e),round:e=>O(`round`,e),sqrt:e=>O(`sqrt`,e),log:e=>O(`log`,e),log10:e=>O(`log10`,e),log2:e=>O(`log2`,e),exp:e=>O(`exp`,e),sin:e=>O(`sin`,e),cos:e=>O(`cos`,e),tan:e=>O(`tan`,e),asin:e=>O(`asin`,e),acos:e=>O(`acos`,e),atan:e=>O(`atan`,e),min:e=>O(`min`,e),max:e=>O(`max`,e),first:e=>e.length===0?{type:`Index`,index:{type:`Literal`,value:0}}:{type:`Index`,index:{type:`Literal`,value:0},base:e[0]},last:e=>e.length===0?{type:`Index`,index:{type:`Literal`,value:-1}}:{type:`Index`,index:{type:`Literal`,value:-1},base:e[0]},get:e=>e.length===1?{type:`Index`,index:e[0]}:{type:`Index`,index:e[1],base:e[0]},slice:e=>e.length===1?{type:`Slice`,base:e[0]}:e.length===2?{type:`Slice`,base:e[0],start:e[1]}:{type:`Slice`,base:e[0],start:e[1],end:e[2]},keys:`keys`,values:`values`,entries:e=>j(`to_entries`,e),from_entries:`from_entries`,reverse:`reverse`,sort:`sort`,sort_by:`sort_by`,group_by:`group_by`,unique:`unique`,unique_by:`unique_by`,flatten:`flatten`,map:e=>({type:`Pipe`,left:e[0],right:{type:`Array`,elements:e[1]}}),select:e=>j(`select`,e),empty:()=>j(`empty`,[]),count:()=>j(`length`,[]),sum:e=>e.length===0?j(`add`,[]):{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:j(`add`,[])},mean:e=>e.length===0?{type:`Pipe`,left:{type:`Identity`},right:A(`/`,j(`add`,[]),j(`length`,[]))}:{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:A(`/`,j(`add`,[]),j(`length`,[]))},avg:e=>e.length===0?{type:`Pipe`,left:{type:`Identity`},right:A(`/`,j(`add`,[]),j(`length`,[]))}:{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:A(`/`,j(`add`,[]),j(`length`,[]))},type:`type`,isnull:e=>e.length===0?A(`==`,{type:`Identity`},{type:`Literal`,value:null}):A(`==`,e[0],{type:`Literal`,value:null}),isempty:e=>e.length===0?A(`==`,{type:`Identity`},{type:`Literal`,value:``}):A(`==`,e[0],{type:`Literal`,value:``}),tonumber:e=>e.length===0?j(`tonumber`,[]):j(`tonumber`,e),tostring:e=>e.length===0?j(`tostring`,[]):j(`tostring`,e),if:e=>N(e[0],e[1],e[2]),coalesce:e=>{if(e.length===0)return{type:`Literal`,value:null};if(e.length===1)return e[0];let[t,...n]=e;return N(A(`and`,A(`!=`,t,{type:`Literal`,value:null}),A(`!=`,t,{type:`Literal`,value:``})),t,n.length===1?n[0]:k.coalesce(n))},index:()=>({type:`Field`,name:`_row_index`}),now:()=>j(`now`,[]),fmt:e=>j(`tostring`,e),format:e=>j(`tostring`,e)};Object.setPrototypeOf(k,null);function A(e,t,n){return{type:`BinaryOp`,op:e,left:t,right:n}}function j(e,t){return{type:`Call`,name:e,args:t}}var M=`then`;function N(e,t,n){let r=u({type:`Cond`,cond:e,elifs:[],else:n||{type:`Literal`,value:null}});return r[M]=t,r}function P(e){return{type:`Pipe`,left:e,right:{type:`Call`,name:`tostring`,args:[]}}}function F(e,t=!0){switch(e.type){case`int`:case`float`:return{type:`Literal`,value:e.value};case`string`:return{type:`Literal`,value:e.value};case`bool`:return{type:`Literal`,value:e.value};case`null`:return{type:`Literal`,value:null};case`underscore`:return{type:`Index`,base:{type:`Identity`},index:{type:`Literal`,value:`_`}};case`identifier`:return t?{type:`Field`,name:e.name}:{type:`VarRef`,name:e.name};case`lambdaBinding`:return{type:`VarRef`,name:e.name};case`func`:{let n=e.args.map(e=>F(e.expr,t)),r=Object.hasOwn(k,e.name)?k[e.name]:void 0;return typeof r==`function`?r(n):j(typeof r==`string`?r:e.name,n)}case`list`:return e.elements.length===0?{type:`Array`}:{type:`Array`,elements:e.elements.reduce((e,n,r)=>{let i=F(n,t);return r===0?i:{type:`Comma`,left:e,right:i}},null)};case`map`:return{type:`Object`,entries:e.entries.map(e=>({key:e.key,value:F(e.value,t)}))};case`regex`:return{type:`Literal`,value:e.pattern};case`slice`:return{type:`Slice`,start:e.start?F(e.start,t):void 0,end:e.end?F(e.end,t):void 0};case`lambda`:return F(e.body,t);case`pipeline`:return{type:`Identity`};default:throw Error(`Unknown moonblade expression type: ${e.type}`)}}function I(e){let t=[],n=0;for(;n<e.length;){for(;n<e.length&&(e[n]===` `||e[n]===`,`);)n++;if(n>=e.length)break;let r=n;for(;n<e.length&&/\w/.test(e[n]);)n++;let i=e.slice(r,n);for(;n<e.length&&e[n]===` `;)n++;if(e[n]!==`(`)break;n++;let a=1,o=n;for(;n<e.length&&a>0;)e[n]===`(`?a++:e[n]===`)`&&a--,a>0&&n++;let s=e.slice(o,n).trim();for(n++;n<e.length&&e[n]===` `;)n++;let c=``;if(e.slice(n,n+3).toLowerCase()===`as `){for(n+=3;n<e.length&&e[n]===` `;)n++;let t=n;for(;n<e.length&&/\w/.test(e[n]);)n++;c=e.slice(t,n)}c||=s?`${i}(${s})`:`${i}()`,t.push({func:i,expr:s,alias:c})}return t}function L(e){return/^\w+$/.test(e)}function R(e,t,n){let r=d(e,F(w(t)),n);return r.length>0?r[0]:null}function z(e,t,n={}){let{func:r,expr:i}=t;if(r===`count`&&!i)return e.length;let a;switch(a=L(i)?e.map(e=>e[i]).filter(e=>e!=null):e.map(e=>R(e,i,n)).filter(e=>e!=null),r){case`count`:return L(i)?a.length:a.filter(e=>!!e).length;case`sum`:return a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).reduce((e,t)=>e+t,0);case`mean`:case`avg`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?e.reduce((e,t)=>e+t,0)/e.length:0}case`min`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?Math.min(...e):null}case`max`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?Math.max(...e):null}case`first`:return a.length>0?a[0]:null;case`last`:return a.length>0?a[a.length-1]:null;case`median`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).filter(e=>!Number.isNaN(e)).sort((e,t)=>e-t);if(e.length===0)return null;let t=Math.floor(e.length/2);return e.length%2==0?(e[t-1]+e[t])/2:e[t]}case`mode`:{let e=new Map;for(let t of a){let n=String(t);e.set(n,(e.get(n)||0)+1)}let t=0,n=null;for(let[r,i]of e)i>t&&(t=i,n=r);return n}case`cardinality`:return new Set(a.map(e=>String(e))).size;case`values`:return a.map(e=>String(e)).join(`|`);case`distinct_values`:return[...new Set(a.map(e=>String(e)))].sort().join(`|`);case`all`:if(e.length===0)return!0;for(let t of e)if(!R(t,i,n))return!1;return!0;case`any`:for(let t of e)if(R(t,i,n))return!0;return!1;default:return null}}function ee(e,t,n={}){let r=v();for(let i of t)_(r,i.alias,z(e,i,n));return r}async function te(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan agg: no aggregation expression
|
|
@@ -58,7 +58,7 @@ import{t as e}from"./chunk-YNYSPYQ5-gU4-j5DO.mjs";import{a as t,i as n,n as r,o
|
|
|
58
58
|
`,exitCode:1};o=a[0].headers}let c=[];for(let{headers:e,data:t}of a)for(let n of t){let t=v();for(let r of o)_(t,r,e.includes(r)?n[r]:``);c.push(t)}return{stdout:h(o,c),stderr:``,exitCode:0}}async function Me(t,n){let r=``,i=[],a=!1,o=!1,s=[];for(let e=0;e<t.length;e++){let n=t[e];(n===`-s`||n===`--select`)&&e+1<t.length?i=t[++e].split(`,`):n===`-v`||n===`--invert`?a=!0:n===`-i`||n===`--ignore-case`?o=!0:n===`-r`||n===`--regex`||n.startsWith(`-`)||(r?s.push(n):r=n)}if(!r)return{stdout:``,stderr:`xan search: no pattern specified
|
|
59
59
|
`,exitCode:1};let{headers:c,data:l,error:u}=await g(s,n);if(u)return u;let d=i.length>0?i:c,f;try{f=e(r,o?`i`:``)}catch{return{stdout:``,stderr:`xan search: invalid regex pattern '${r}'
|
|
60
60
|
`,exitCode:1}}return{stdout:h(c,l.filter(e=>{let t=d.some(t=>{let n=e[t];return n!=null&&f.test(String(n))});return a?!t:t})),stderr:``,exitCode:0}}async function Ne(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan flatmap: no expression specified
|
|
61
|
-
`,exitCode:1};let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=C(n).map(({expr:e,name:t})=>({alias:typeof t==`string`?t:t[0],ast:F(e)})),c={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},l=[...i,...s.map(e=>e.alias)],u=[];for(let e of a){let t=[],n=1;for(let r of s){let i=d(e,r.ast,c),a=i.length>0&&Array.isArray(i[0])?i[0]:i;t.push(a),n=Math.max(n,a.length)}for(let r=0;r<n;r++){let n=y(e);for(let e=0;e<s.length;e++){let i=t[e][r]??null;_(n,s[e].alias,i)}u.push(n)}}return{stdout:h(l,u),stderr:``,exitCode:0}}async function Pe(e,t){let{cmdView:n}=await import(`./xan-view-ECQUO7AJ-
|
|
61
|
+
`,exitCode:1};let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=C(n).map(({expr:e,name:t})=>({alias:typeof t==`string`?t:t[0],ast:F(e)})),c={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},l=[...i,...s.map(e=>e.alias)],u=[];for(let e of a){let t=[],n=1;for(let r of s){let i=d(e,r.ast,c),a=i.length>0&&Array.isArray(i[0])?i[0]:i;t.push(a),n=Math.max(n,a.length)}for(let r=0;r<n;r++){let n=y(e);for(let e=0;e<s.length;e++){let i=t[e][r]??null;_(n,s[e].alias,i)}u.push(n)}}return{stdout:h(l,u),stderr:``,exitCode:0}}async function Pe(e,t){let{cmdView:n}=await import(`./xan-view-ECQUO7AJ-DJhdCPf3.mjs`);return n(e,t)}var Q=new Set([`fuzzy-join`,`glob`,`hist`,`input`,`parallel`,`plot`,`progress`,`range`,`scrape`,`tokenize`,`union-find`]),Fe=new Set([`agg`,`behead`,`cat`,`count`,`dedup`,`drop`,`enum`,`explode`,`f`,`filter`,`fixlengths`,`flatmap`,`flatten`,`fmt`,`frequency`,`freq`,`from`,`groupby`,`head`,`headers`,`implode`,`join`,`map`,`merge`,`partition`,`pivot`,`rename`,`reverse`,`sample`,`search`,`select`,`shuffle`,`slice`,`sort`,`split`,`stats`,`tail`,`to`,`top`,`transform`,`transpose`,`view`,...Q]),$={name:`xan`,summary:`CSV toolkit for data manipulation`,usage:`xan <COMMAND> [OPTIONS] [FILE]`,description:`xan is a collection of commands for working with CSV data.
|
|
62
62
|
It provides a simple, ergonomic interface for common data operations.
|
|
63
63
|
|
|
64
64
|
COMMANDS:
|
|
@@ -137,4 +137,4 @@ EXAMPLES:
|
|
|
137
137
|
`,exitCode:1}:{stdout:``,stderr:`xan: unknown command '${n}'
|
|
138
138
|
Run 'xan --help' for usage.
|
|
139
139
|
`,exitCode:1}}}},Re={name:`xan`,flags:[],stdinType:`text`,needsArgs:!0};export{Le as n,Re as t};
|
|
140
|
-
//# sourceMappingURL=chunk-UNYNJIFU-
|
|
140
|
+
//# sourceMappingURL=chunk-UNYNJIFU-HSzsM3a6.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./chunk-YNYSPYQ5-
|
|
1
|
+
import{t as e}from"./chunk-YNYSPYQ5-DHter9G3.mjs";function t(e,t){return e.replace(/\$(&|\d+|<([^>]+)>)/g,(e,n,r)=>n===`&`?t[0]:r===void 0?t[parseInt(n,10)]??``:t.groups?.[r]??``)}function n(e,n,i={}){let{invertMatch:a=!1,showLineNumbers:o=!1,countOnly:s=!1,countMatches:c=!1,filename:l=``,onlyMatching:u=!1,beforeContext:d=0,afterContext:f=0,maxCount:p=0,contextSeparator:m=`--`,showColumn:h=!1,vimgrep:g=!1,showByteOffset:_=!1,replace:v=null,passthru:y=!1,multiline:b=!1,kResetGroup:x}=i;if(b)return r(e,n,{invertMatch:a,showLineNumbers:o,countOnly:s,countMatches:c,filename:l,onlyMatching:u,beforeContext:d,afterContext:f,maxCount:p,contextSeparator:m,showColumn:h,showByteOffset:_,replace:v,kResetGroup:x});let S=e.split(`
|
|
2
2
|
`),C=S.length,w=C>0&&S[C-1]===``?C-1:C;if(s||c){let e=0,t=(c||u)&&!a;for(let r=0;r<w;r++)if(n.lastIndex=0,t)for(let t=n.exec(S[r]);t!==null;t=n.exec(S[r]))e++,t[0].length===0&&n.lastIndex++;else n.test(S[r])!==a&&e++;return{output:`${l?`${l}:${e}`:String(e)}
|
|
3
3
|
`,matched:e>0,matchCount:e}}if(d===0&&f===0&&!y){let e=[],r=!1,i=0,s=0;for(let c=0;c<w&&!(p>0&&i>=p);c++){let d=S[c];if(n.lastIndex=0,n.test(d)!==a)if(r=!0,i++,u){n.lastIndex=0;for(let r=n.exec(d);r!==null;r=n.exec(d)){let i=x===void 0?r[0]:r[x]??``,a=v===null?i:t(v,r),u=l?`${l}:`:``;_&&(u+=`${s+r.index}:`),o&&(u+=`${c+1}:`),h&&(u+=`${r.index+1}:`),e.push(u+a),r[0].length===0&&n.lastIndex++}}else if(g){n.lastIndex=0;for(let t=n.exec(d);t!==null;t=n.exec(d)){let r=l?`${l}:`:``;_&&(r+=`${s+t.index}:`),o&&(r+=`${c+1}:`),h&&(r+=`${t.index+1}:`),e.push(r+d),t[0].length===0&&n.lastIndex++}}else{n.lastIndex=0;let r=n.exec(d),i=r?r.index+1:1,a=d;v!==null&&(n.lastIndex=0,a=n.replace(d,(...e)=>{if(e[0].length===0)return``;let n=e,r=e[e.length-1];return typeof r==`object`&&r?(n.groups=r,n.input=e[e.length-2],n.index=e[e.length-3]):(n.input=e[e.length-1],n.index=e[e.length-2]),t(v,n)}));let u=l?`${l}:`:``;_&&(u+=`${s+(r?r.index:0)}:`),o&&(u+=`${c+1}:`),h&&(u+=`${i}:`),e.push(u+a)}s+=d.length+1}return{output:e.length>0?`${e.join(`
|
|
4
4
|
`)}
|
|
@@ -14,4 +14,4 @@ import{t as e}from"./chunk-YNYSPYQ5-gU4-j5DO.mjs";function t(e,t){return e.repla
|
|
|
14
14
|
`:``,matched:t.length>0,matchCount:t.length}}if(C.length===0)return{output:``,matched:!1,matchCount:0};let w=new Set,T=-1,E=[];for(let e of C){let n=Math.max(0,e.startLine-l),r=Math.min(y-1,e.endLine+u);T>=0&&n>T+1&&E.push(f);for(let t=n;t<e.startLine;t++)if(!w.has(t)){w.add(t),T=t;let e=_[t];i&&(e=`${t+1}-${e}`),s&&(e=`${s}-${e}`),E.push(e)}if(c){let t=h===null?e.matchText:h,n=s?`${s}:`:``;m&&(n+=`${e.byteOffset}:`),i&&(n+=`${e.startLine+1}:`),p&&(n+=`${e.column}:`),E.push(n+t);for(let t=e.startLine;t<=e.endLine;t++)w.add(t),T=t}else for(let n=e.startLine;n<=e.endLine&&n<y;n++)if(!w.has(n)){w.add(n),T=n;let r=_[n];h!==null&&n===e.startLine&&(t.lastIndex=0,r=t.replace(r,h));let a=s?`${s}:`:``;m&&n===e.startLine&&(a+=`${e.byteOffset}:`),i&&(a+=`${n+1}:`),p&&n===e.startLine&&(a+=`${e.column}:`),E.push(a+r)}for(let t=e.endLine+1;t<=r;t++)if(!w.has(t)){w.add(t),T=t;let e=_[t];i&&(e=`${t+1}-${e}`),s&&(e=`${s}-${e}`),E.push(e)}}return{output:E.length>0?`${E.join(`
|
|
15
15
|
`)}
|
|
16
16
|
`:``,matched:!0,matchCount:C.length}}var i=new Map([[`alpha`,`a-zA-Z`],[`digit`,`0-9`],[`alnum`,`a-zA-Z0-9`],[`lower`,`a-z`],[`upper`,`A-Z`],[`xdigit`,`0-9A-Fa-f`],[`space`,` \\t\\n\\r\\f\\v`],[`blank`,` \\t`],[`punct`,"!-/:-@\\[-`{-~"],[`graph`,`!-~`],[`print`,` -~`],[`cntrl`,`\\x00-\\x1F\\x7F`],[`ascii`,`\\x00-\\x7F`],[`word`,`a-zA-Z0-9_`]]);function a(e){let t=``,n=0;for(;n<e.length;){if(e.slice(n,n+7)===`[[:<:]]`){t+=`\\b`,n+=7;continue}if(e.slice(n,n+7)===`[[:>:]]`){t+=`\\b`,n+=7;continue}if(e[n]===`[`){let r=`[`;for(n++,n<e.length&&(e[n]===`^`||e[n]===`!`)&&(r+=`^`,n++),n<e.length&&e[n]===`]`&&(r+=`\\]`,n++);n<e.length&&e[n]!==`]`;){if(e[n]===`[`&&n+1<e.length&&e[n+1]===`:`){let t=e.indexOf(`:]`,n+2);if(t!==-1){let a=e.slice(n+2,t),o=i.get(a);if(o){r+=o,n=t+2;continue}}}if(e[n]===`\\`&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}r+=e[n],n++}n<e.length&&e[n]===`]`&&(r+=`]`,n++),t+=r;continue}if(e[n]===`\\`&&n+1<e.length){t+=e[n]+e[n+1],n+=2;continue}t+=e[n],n++}return t}function o(t,n){let r,i;switch(n.mode){case`fixed`:r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);break;case`extended`:case`perl`:if(r=a(t),r=r.replace(/\(\?P<([^>]+)>/g,`(?<$1>`),n.mode===`perl`){r=s(r),r=c(r),r=l(r);let e=p(r);r=e.pattern,i=e.kResetGroup}break;default:r=a(t),r=_(r);break}n.wholeWord&&(r=`\\b(?:${r})\\b`),n.lineRegexp&&(r=`^${r}$`);let o=/\\u\{[0-9A-Fa-f]+\}/.test(r),u=`g`+(n.ignoreCase?`i`:``)+(n.multiline?`m`:``)+(n.multilineDotall?`s`:``)+(o?`u`:``);return{regex:e(r,u),kResetGroup:i}}function s(e){let t=``,n=0;for(;n<e.length;)if(e[n]===`\\`&&n+1<e.length&&e[n+1]===`Q`){n+=2;let r=``;for(;n<e.length;){if(e[n]===`\\`&&n+1<e.length&&e[n+1]===`E`){n+=2;break}r+=e[n],n++}t+=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}else t+=e[n],n++;return t}function c(e){return e.replace(/\\x\{([0-9A-Fa-f]+)\}/g,`\\u{$1}`)}function l(e){let t=``,n=0;for(;n<e.length;){if(e[n]===`(`&&n+1<e.length&&e[n+1]===`?`){let r=e.slice(n).match(/^\(\?([imsx]*)(-[imsx]*)?(:|$|\))/);if(r){let i=r[1]||``,a=r[2]||``,o=r[3];if(o===`:`){let o=n+r[0].length-1,s=u(e,n);if(s!==-1){let r=d(e.slice(o+1,s),i,a);t+=`(?:${r})`,n=s+1;continue}}else if(o===`)`||o===``){n+=r[0].length;continue}}}t+=e[n],n++}return t}function u(e,t){let n=0,r=t;for(;r<e.length;){if(e[r]===`\\`){r+=2;continue}if(e[r]===`[`){for(r++;r<e.length&&e[r]!==`]`;)e[r]===`\\`&&r++,r++;r++;continue}if(e[r]===`(`)n++;else if(e[r]===`)`&&(n--,n===0))return r;r++}return-1}function d(e,t,n){let r=e;return t.includes(`i`)&&(r=f(r)),r}function f(e){let t=``,n=0;for(;n<e.length;){let r=e[n];if(r===`\\`){n+1<e.length?(t+=r+e[n+1],n+=2):(t+=r,n++);continue}if(r===`[`){t+=r,n++,n<e.length&&e[n]===`^`&&(t+=e[n],n++);let i=[];for(;n<e.length&&e[n]!==`]`;)if(e[n]===`\\`)i.push(e[n]),n++,n<e.length&&(i.push(e[n]),n++);else if(e[n]===`-`&&i.length>0&&n+1<e.length&&e[n+1]!==`]`){let t=i[i.length-1],r=e[n+1];i.push(`-`),i.push(r),/[a-z]/.test(t)&&/[a-z]/.test(r)?(i.push(t.toUpperCase()),i.push(`-`),i.push(r.toUpperCase())):/[A-Z]/.test(t)&&/[A-Z]/.test(r)&&(i.push(t.toLowerCase()),i.push(`-`),i.push(r.toLowerCase())),n+=2}else{let t=e[n];if(i.push(t),/[a-zA-Z]/.test(t)){let e=t===t.toLowerCase()?t.toUpperCase():t.toLowerCase();i.includes(e)||i.push(e)}n++}t+=i.join(``),n<e.length&&(t+=e[n],n++);continue}if(/[a-zA-Z]/.test(r)){let e=r.toLowerCase(),n=r.toUpperCase();t+=`[${n}${e}]`}else t+=r;n++}return t}function p(e){let t=m(e);if(t===-1)return{pattern:e};let n=e.slice(0,t),r=e.slice(t+2),i=h(n);return{pattern:`(?:${n})(${r})`,kResetGroup:i+1}}function m(e){let t=0;for(;t<e.length-1;)if(e[t]===`\\`){if(e[t+1]===`K`){let n=0,r=t-1;for(;r>=0&&e[r]===`\\`;)n++,r--;if(n%2==0)return t}t+=2}else t++;return-1}function h(e){let t=0,n=0;for(;n<e.length;){if(e[n]===`\\`){n+=2;continue}if(e[n]===`[`){for(n++;n<e.length&&e[n]!==`]`;)e[n]===`\\`&&n++,n++;n++;continue}if(e[n]===`(`)if(n+1<e.length&&e[n+1]===`?`){if(n+2<e.length){let r=e[n+2];if(r===`:`||r===`=`||r===`!`){n++;continue}if(r===`<`&&n+3<e.length){let r=e[n+3];if(r===`=`||r===`!`){n++;continue}t++,n++;continue}}}else t++;n++}return t}function g(e){let t=e.replace(/\$\{0\}|\$0(?![0-9])/g,`$$&`);return t=t.replace(/\$\{([^0-9}][^}]*)\}/g,`$$<$1>`),t=t.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)(?![>0-9])/g,`$$<$1>`),t}function _(e){let t=``,n=0,r=!0,i=0;for(;n<e.length;){let a=e[n];if(a===`[`){for(t+=a,n++,n<e.length&&(e[n]===`^`||e[n]===`!`)&&(t+=e[n],n++),n<e.length&&e[n]===`]`&&(t+=e[n],n++);n<e.length&&e[n]!==`]`;)e[n]===`\\`&&n+1<e.length?(t+=e[n]+e[n+1],n+=2):(t+=e[n],n++);n<e.length&&e[n]===`]`&&(t+=e[n],n++),r=!1;continue}if(a===`\\`&&n+1<e.length){let o=e[n+1];if(o===`|`){t+=`|`,n+=2,r=!0;continue}if(o===`(`){t+=`(`,n+=2,i++,r=!0;continue}if(o===`)`){t+=`)`,n+=2,i=Math.max(0,i-1),r=!1;continue}if(o===`{`){let i=e.slice(n).match(/^\\{(\d+)(,(\d*)?)?\\}/);if(i){let e=i[1],a=i[2]!==void 0,o=i[3]||``;a?t+=`{${e},${o}}`:t+=`{${e}}`,n+=i[0].length,r=!1;continue}t+=`\\{`,n+=2,r=!1;continue}if(o===`}`){t+=`\\}`,n+=2,r=!1;continue}t+=a+o,n+=2,r=!1;continue}if(a===`*`&&r){t+=`\\*`,n++;continue}if(a===`^`){if(r){t+=`^`,n++;continue}t+=`\\^`,n++;continue}if(a===`$`){let i=n===e.length-1,a=n+2<e.length&&e[n+1]===`\\`&&e[n+2]===`)`;i||a?t+=`$`:t+=`\\$`,n++,r=!1;continue}a===`+`||a===`?`||a===`|`||a===`(`||a===`)`||a===`{`||a===`}`?t+=`\\${a}`:t+=a,n++,r=!1}return t}export{o as n,g as r,n as t};
|
|
17
|
-
//# sourceMappingURL=chunk-VLGZJRPG-
|
|
17
|
+
//# sourceMappingURL=chunk-VLGZJRPG-CHtdu0KZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{w as e}from"./src-BkCVz_TJ.mjs";import{b as t}from"./chunk-ICPOFSXX-
|
|
2
|
-
//# sourceMappingURL=chunk-X2U36JSP-
|
|
1
|
+
import{w as e}from"./src-BkCVz_TJ.mjs";import{b as t}from"./chunk-ICPOFSXX-D0MVsm4H.mjs";var n=e(e=>{let{handDrawnSeed:n}=t();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:n}},`solidStateFill`),r=e(e=>{let t=i([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),i=e(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),a=e(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),o=e(e=>{let{stylesArray:t}=r(e),n=[],i=[],o=[],s=[];return t.forEach(e=>{let t=e[0];a(t)?n.push(e.join(`:`)+` !important`):(i.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&o.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:i.join(`;`),stylesArray:t,borderStyles:o,backgroundStyles:s}},`styles2String`),s=e((e,n)=>{let{themeVariables:i,handDrawnSeed:a}=t(),{nodeBorder:o,mainBkg:s}=i,{stylesMap:l}=r(e);return Object.assign({roughness:.7,fill:l.get(`fill`)||s,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:l.get(`stroke`)||o,seed:a,strokeWidth:l.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:c(l.get(`stroke-dasharray`))},n)},`userNodeOverrides`),c=e(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);export{s as a,o as i,a as n,n as r,r as t};
|
|
2
|
+
//# sourceMappingURL=chunk-X2U36JSP-CqOGcGN3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import*as e from"node:path";import*as t from"node:fs";function n(e){if(!e||e===`/`)return`/`;let t=e.endsWith(`/`)&&e!==`/`?e.slice(0,-1):e;t.startsWith(`/`)||(t=`/${t}`);let n=t.split(`/`).filter(e=>e&&e!==`.`),r=[];for(let e of n)e===`..`?r.pop():r.push(e);return`/${r.join(`/`)}`||`/`}function r(e,t){if(e.includes(`\0`))throw Error(`ENOENT: path contains null byte, ${t} '${e}'`)}function i(e){let t=n(e);if(t===`/`)return`/`;let r=t.lastIndexOf(`/`);return r===0?`/`:t.slice(0,r)}function a(e,t){return t.startsWith(`/`)?n(t):n(e===`/`?`/${t}`:`${e}/${t}`)}function o(e,t){return e===`/`?`/${t}`:`${e}/${t}`}function s(e,t){return t.startsWith(`/`)?n(t):n(o(i(e),t))}function c(e,t){return e===t||e.startsWith(`${t}/`)}function l(n,r){try{let e=t.realpathSync(n);return c(e,r)?e:null}catch(i){if(i.code===`ENOENT`){let i=e.dirname(n);if(i===n)return null;let a=l(i,r);if(a===null)return null;try{if(t.lstatSync(n).isSymbolicLink()){let i=t.readlinkSync(n);if(l(e.isAbsolute(i)?i:e.resolve(e.dirname(n),i),r)===null)return null}}catch{}return e.join(a,e.basename(n))}return null}}function u(n,r,i){let a=l(n,i);if(a===null)return null;let o=e.resolve(n);if(o.slice(r.length)!==a.slice(i.length))return null;try{if(t.lstatSync(o).isSymbolicLink())return null}catch{}return a}function d(e,n){if(!t.existsSync(e))throw Error(`${n} root does not exist`);if(!t.statSync(e).isDirectory())throw Error(`${n} root is not a directory`)}function f(e,t,n,r){let i=e;if(i.path===void 0){for(let t of r)if(i.message?.includes(t))throw e}let a=i.code||`EIO`;throw Error(`${a}: ${n} '${t}'`)}export{c as a,i as c,a as d,n as i,o as l,f as n,l as o,u as r,r as s,d as t,s as u};
|
|
2
|
-
//# sourceMappingURL=chunk-XHM67O4N-
|
|
2
|
+
//# sourceMappingURL=chunk-XHM67O4N-2lBQUjKO.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e}from"./chunk-GFQRA5P5-
|
|
1
|
+
import{i as e}from"./chunk-GFQRA5P5-DigWkxW2.mjs";import{a as t,r as n,t as r}from"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{n as i}from"./chunk-5QMZ5MUS-_0tQyQsf.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-BoP5OA93.mjs";import{n as s}from"./chunk-3THT3N7L-CBWmNncQ.mjs";import{n as c,r as l,t as u}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{t as d}from"./chunk-SYMJJMQ4-DUF5hY-A.mjs";import{t as f}from"./chunk-7TSDKFEO-CMVuiOdP.mjs";import{n as p,t as m}from"./chunk-BBXLRYSX-OVlWa2B-.mjs";var h=n((e,t)=>{var{hasOwnProperty:n}=Object.prototype,r=(e,t={})=>{typeof t==`string`&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<`u`&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let n=t.platform===`win32`?`\r
|
|
2
2
|
`:`
|
|
3
3
|
`,a=t.whitespace?` = `:`=`,o=[],c=t.sort?Object.keys(e).sort():Object.keys(e),l=0;t.align&&(l=s(c.filter(t=>e[t]===null||Array.isArray(e[t])||typeof e[t]!=`object`).map(t=>Array.isArray(e[t])?`${t}[]`:t).concat([``]).reduce((e,t)=>s(e).length>=s(t).length?e:t)).length);let u=``,d=t.bracketedArray?`[]`:``;for(let t of c){let r=e[t];if(r&&Array.isArray(r))for(let e of r)u+=s(`${t}${d}`).padEnd(l,` `)+a+s(e)+n;else r&&typeof r==`object`?o.push(t):u+=s(t).padEnd(l,` `)+a+s(r)+n}t.section&&u.length&&(u=`[`+s(t.section)+`]`+(t.newline?n+n:n)+u);for(let a of o){let o=i(a,`.`).join(`\\.`),s=(t.section?t.section+`.`:``)+o,c=r(e[a],{...t,section:s});u.length&&c.length&&(u+=n),u+=c}return u};function i(e,t){var n=0,r=0,i=0,a=[];do if(i=e.indexOf(t,n),i!==-1){if(n=i+t.length,i>0&&e[i-1]===`\\`)continue;a.push(e.slice(r,i)),r=i+t.length}while(i!==-1);return a.push(e.slice(r)),a}var a=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),a=r,o=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,l=e.split(/[\r\n]+/g),u={};for(let e of l){if(!e||e.match(/^\s*[;#]/)||e.match(/^\s*$/))continue;let i=e.match(s);if(!i)continue;if(i[1]!==void 0){if(o=c(i[1]),o===`__proto__`){a=Object.create(null);continue}a=r[o]=r[o]||Object.create(null);continue}let l=c(i[2]),d;t.bracketedArray?d=l.length>2&&l.slice(-2)===`[]`:(u[l]=(u?.[l]||0)+1,d=u[l]>1);let f=d&&l.endsWith(`[]`)?l.slice(0,-2):l;if(f===`__proto__`)continue;let p=i[3]?c(i[4]):!0,m=p===`true`||p===`false`||p===`null`?JSON.parse(p):p;d&&(n.call(a,f)?Array.isArray(a[f])||(a[f]=[a[f]]):a[f]=[]),Array.isArray(a[f])?a[f].push(m):a[f]=m}let d=[];for(let e of Object.keys(r)){if(!n.call(r,e)||typeof r[e]!=`object`||Array.isArray(r[e]))continue;let t=i(e,`.`);a=r;let o=t.pop(),s=o.replace(/\\\./g,`.`);for(let e of t)e!==`__proto__`&&((!n.call(a,e)||typeof a[e]!=`object`)&&(a[e]=Object.create(null)),a=a[e]);a===r&&s===o||(a[s]=r[e],d.push(e))}for(let e of d)delete r[e];return r},o=e=>e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`),s=e=>typeof e!=`string`||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&o(e)||e!==e.trim()?JSON.stringify(e):e.split(`;`).join(`\\;`).split(`#`).join(`\\#`),c=e=>{if(e=(e||``).trim(),o(e)){e.charAt(0)===`'`&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,n=``;for(let r=0,i=e.length;r<i;r++){let i=e.charAt(r);if(t)`\\;#`.indexOf(i)===-1?n+=`\\`+i:n+=i,t=!1;else{if(`;#`.indexOf(i)!==-1)break;i===`\\`?t=!0:n+=i}}return t&&(n+=`\\`),n.trim()}return e};t.exports={parse:a,decode:a,stringify:r,encode:r,safe:s,unsafe:c}}),g=n(e=>{var t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=e=>(f(e)||m(e))&&!!e.anchor,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p}),_=n(e=>{var t=g(),n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e<r.items.length;++e){let t=o(e,r.items[e],a,s);if(typeof t==`number`)e=t-1;else{if(t===n)return n;t===i&&(r.items.splice(e,1),--e)}}}else if(t.isPair(r)){s=Object.freeze(s.concat(r));let e=o(`key`,r.key,a,s);if(e===n)return n;e===i&&(r.key=null);let t=o(`value`,r.value,a,s);if(t===n)return n;t===i&&(r.value=null)}}return c}async function s(e,n){let r=l(n);t.isDocument(e)?await c(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):await c(null,e,r,Object.freeze([]))}s.BREAK=n,s.SKIP=r,s.REMOVE=i;async function c(e,r,a,o){let s=await u(e,r,a,o);if(t.isNode(s)||t.isPair(s))return d(e,o,s),c(e,s,a,o);if(typeof s!=`symbol`){if(t.isCollection(r)){o=Object.freeze(o.concat(r));for(let e=0;e<r.items.length;++e){let t=await c(e,r.items[e],a,o);if(typeof t==`number`)e=t-1;else{if(t===n)return n;t===i&&(r.items.splice(e,1),--e)}}}else if(t.isPair(r)){o=Object.freeze(o.concat(r));let e=await c(`key`,r.key,a,o);if(e===n)return n;e===i&&(r.key=null);let t=await c(`value`,r.value,a,o);if(t===n)return n;t===i&&(r.value=null)}}return s}function l(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 u(e,n,r,i){if(typeof r==`function`)return r(e,n,i);if(t.isMap(n))return r.Map?.(e,n,i);if(t.isSeq(n))return r.Seq?.(e,n,i);if(t.isPair(n))return r.Pair?.(e,n,i);if(t.isScalar(n))return r.Scalar?.(e,n,i);if(t.isAlias(n))return r.Alias?.(e,n,i)}function d(e,n,r){let i=n[n.length-1];if(t.isCollection(i))i.items[e]=r;else if(t.isPair(i))e===`key`?i.key=r:i.value=r;else if(t.isDocument(i))i.contents=r;else{let e=t.isAlias(i)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}e.visit=a,e.visitAsync=s}),v=n(e=>{var t=g(),n=_(),r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=e=>e.replace(/[!,[\]{}]/g,e=>r[e]),a=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);break}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+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(`
|
|
4
4
|
`)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a}),y=n(e=>{var t=g(),n=_();function r(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 i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a}),b=n(e=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let r=i[n],a=t(e,i,String(n),r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),a=t(e,i,n,r);a===void 0?i.delete(n):a!==r&&i.set(n,a)}else if(i instanceof Set)for(let n of Array.from(i)){let r=t(e,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r))}else for(let[n,r]of Object.entries(i)){let a=t(e,i,n,r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}return e.call(n,r,i)}e.applyReviver=t}),x=n(e=>{var t=g();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}e.toJS=n}),S=n(e=>{var t=b(),n=g(),r=x();e.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{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:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}}),C=n(e=>{var t=y(),n=_(),r=g(),i=S(),a=x(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(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`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}e.Alias=o}),w=n(e=>{var t=g(),n=S(),r=x(),i=e=>!e||typeof e!=`function`&&typeof e!=`object`,a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i}),T=n(e=>{var t=C(),n=g(),r=w(),i=`tag:yaml.org,2002:`;function a(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 o(e,o,s){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=s.schema[n.MAP].createNode?.(s.schema,null,s);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:c,onAnchor:l,onTagObj:u,schema:d,sourceObjects:f}=s,p;if(c&&e&&typeof e==`object`){if(p=f.get(e),p)return p.anchor??=l(e),new t.Alias(p.anchor);p={anchor:null,node:null},f.set(e,p)}o?.startsWith(`!!`)&&(o=i+o.slice(2));let m=a(e,o,d.tags);if(!m){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return p&&(p.node=t),t}m=e instanceof Map?d[n.MAP]:Symbol.iterator in Object(e)?d[n.SEQ]:d[n.MAP]}u&&(u(m),delete s.onTagObj);let h=m?.createNode?m.createNode(s.schema,e,s):typeof m?.nodeClass?.from==`function`?m.nodeClass.from(s.schema,e,s):new r.Scalar(e);return o?h.tag=o:m.default||(h.tag=m.tag),p&&(p.node=h),h}e.createNode=o}),E=n(e=>{var t=T(),n=g(),r=S();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var a=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;e.Collection=class extends r.NodeBase{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=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a}),D=n(e=>{var t=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}e.indentComment=n,e.lineComment=(e,t,r)=>e.endsWith(`
|
|
@@ -285,4 +285,4 @@ smol-toml/dist/index.js:
|
|
|
285
285
|
*)
|
|
286
286
|
*/
|
|
287
287
|
export{rr as n,nr as t};
|
|
288
|
-
//# sourceMappingURL=chunk-XORM457F-
|
|
288
|
+
//# sourceMappingURL=chunk-XORM457F-CJbQLVgU.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e}from"./chunk-GFQRA5P5-
|
|
1
|
+
import{i as e}from"./chunk-GFQRA5P5-DigWkxW2.mjs";import{n as t}from"./chunk-5QMZ5MUS-_0tQyQsf.mjs";import{r as n,t as r}from"./chunk-24IMIIXA-BoP5OA93.mjs";import{n as i}from"./chunk-3THT3N7L-CBWmNncQ.mjs";import{n as a,r as o,t as s}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{n as c}from"./chunk-7L36YK2X-B3QRwLbB.mjs";import{t as l}from"./chunk-7TSDKFEO-CMVuiOdP.mjs";import{n as u,t as d}from"./chunk-BBXLRYSX-OVlWa2B-.mjs";function f(e){let t=[],n=0,r=e.length;for(;n<r;){for(;n<r&&/\s/.test(e[n]);)n++;if(n>=r)break;let i=n,a=e[n];if(a===`{`||a===`[`){let o=a,s=a===`{`?`}`:`]`,c=1,u=!1,d=!1;for(n++;n<r&&c>0;){let t=e[n];d?d=!1:t===`\\`?d=!0:t===`"`?u=!u:u||(t===o?c++:t===s&&c--),n++}if(c!==0)throw Error(`Unexpected end of JSON input at position ${n} (unclosed ${o})`);t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`"`){let a=!1;for(n++;n<r;){let t=e[n];if(a)a=!1;else if(t===`\\`)a=!0;else if(t===`"`){n++;break}n++}t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`-`||a>=`0`&&a<=`9`){for(;n<r&&/[\d.eE+-]/.test(e[n]);)n++;t.push(l(JSON.parse(e.slice(i,n))))}else if(e.slice(n,n+4)===`true`)t.push(!0),n+=4;else if(e.slice(n,n+5)===`false`)t.push(!1),n+=5;else if(e.slice(n,n+4)===`null`)t.push(null),n+=4;else{let t=e.slice(n,n+10);throw Error(`Invalid JSON at position ${i}: unexpected '${t.split(/\s/)[0]}'`)}}return t}var p={name:`jq`,summary:`command-line JSON processor`,usage:`jq [OPTIONS] FILTER [FILE]`,options:[`-r, --raw-output output strings without quotes`,`-c, --compact compact output (no pretty printing)`,`-e, --exit-status set exit status based on output`,`-s, --slurp read entire input into array`,`-n, --null-input don't read any input`,`-j, --join-output don't print newlines after each output`,`-a, --ascii force ASCII output`,`-S, --sort-keys sort object keys`,`-C, --color colorize output (ignored)`,`-M, --monochrome monochrome output (ignored)`,` --tab use tabs for indentation`,` --help display this help and exit`]};function m(e,t,n,r,i,a=0){if(e==null)return`null`;if(typeof e==`boolean`)return String(e);if(typeof e==`number`)return Number.isFinite(e)?String(e):`null`;if(typeof e==`string`)return n?e:JSON.stringify(e);let o=i?` `:` `;if(Array.isArray(e))return e.length===0?`[]`:t?`[${e.map(e=>m(e,!0,!1,r,i)).join(`,`)}]`:`[
|
|
2
2
|
${e.map(e=>o.repeat(a+1)+m(e,!1,!1,r,i,a+1)).join(`,
|
|
3
3
|
`)}
|
|
4
4
|
${o.repeat(a)}]`;if(typeof e==`object`){let n=Object.keys(e);return r&&(n=n.sort()),n.length===0?`{}`:t?`{${n.map(t=>`${JSON.stringify(t)}:${m(e[t],!0,!1,r,i)}`).join(`,`)}}`:`{
|
|
@@ -10,4 +10,4 @@ ${o.repeat(a)}}`}return String(e)}var h={name:`jq`,async execute(l,h){r(h.requir
|
|
|
10
10
|
`,exitCode:e.EXIT_CODE};let r=i(n.message);return r.includes(`Unknown function`)?{stdout:``,stderr:`jq: error: ${r}
|
|
11
11
|
`,exitCode:3}:{stdout:``,stderr:`jq: parse error: ${r}
|
|
12
12
|
`,exitCode:5}}}},g={name:`jq`,flags:[{flag:`-r`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`-e`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-j`,type:`boolean`},{flag:`-S`,type:`boolean`},{flag:`--tab`,type:`boolean`}],stdinType:`json`,needsArgs:!0};export{g as n,h as t};
|
|
13
|
-
//# sourceMappingURL=chunk-YCFVLTST-
|
|
13
|
+
//# sourceMappingURL=chunk-YCFVLTST-CKzPj8PR.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{t as e}from"./chunk-YNYSPYQ5-
|
|
1
|
+
import{t as e}from"./chunk-YNYSPYQ5-DHter9G3.mjs";import{n as t}from"./chunk-3THT3N7L-CBWmNncQ.mjs";var n={name:`expr`,async execute(e,n){if(e.length===0)return{stdout:``,stderr:`expr: missing operand
|
|
2
2
|
`,exitCode:2};try{let t=r(e),n=t===`0`||t===``?1:0;return{stdout:`${t}
|
|
3
3
|
`,stderr:``,exitCode:n}}catch(e){return{stdout:``,stderr:`expr: ${t(e.message)}
|
|
4
4
|
`,exitCode:2}}}};function r(t){if(t.length===1)return t[0];let n=0;function r(){let e=i();for(;n<t.length&&t[n]===`|`;){n++;let t=i();if(e!==`0`&&e!==``)return e;e=t}return e}function i(){let e=a();for(;n<t.length&&t[n]===`&`;){n++;let t=a();(e===`0`||e===``||t===`0`||t===``)&&(e=`0`)}return e}function a(){let e=o();for(;n<t.length;){let r=t[n];if([`=`,`!=`,`<`,`>`,`<=`,`>=`].includes(r)){n++;let t=o(),i=parseInt(e,10),a=parseInt(t,10),s=!Number.isNaN(i)&&!Number.isNaN(a),c;c=r===`=`?s?i===a:e===t:r===`!=`?s?i!==a:e!==t:r===`<`?s?i<a:e<t:r===`>`?s?i>a:e>t:r===`<=`?s?i<=a:e<=t:s?i>=a:e>=t,e=c?`1`:`0`}else break}return e}function o(){let e=s();for(;n<t.length;){let r=t[n];if(r===`+`||r===`-`){n++;let t=s(),i=parseInt(e,10),a=parseInt(t,10);if(Number.isNaN(i)||Number.isNaN(a))throw Error(`non-integer argument`);e=String(r===`+`?i+a:i-a)}else break}return e}function s(){let e=c();for(;n<t.length;){let r=t[n];if(r===`*`||r===`/`||r===`%`){n++;let t=c(),i=parseInt(e,10),a=parseInt(t,10);if(Number.isNaN(i)||Number.isNaN(a))throw Error(`non-integer argument`);if((r===`/`||r===`%`)&&a===0)throw Error(`division by zero`);e=String(r===`*`?i*a:r===`/`?Math.trunc(i/a):i%a)}else break}return e}function c(){let r=l();for(;n<t.length&&t[n]===`:`;){n++;let t=e(`^${l()}`).match(r);r=t?t[1]===void 0?String(t[0].length):t[1]:`0`}return r}function l(){if(n>=t.length)throw Error(`syntax error`);let i=t[n];if(i===`match`){n++;let t=l(),r=e(l()).match(t);return r?r[1]===void 0?String(r[0].length):r[1]:`0`}if(i===`substr`){n++;let e=l(),t=parseInt(l(),10),r=parseInt(l(),10);if(Number.isNaN(t)||Number.isNaN(r))throw Error(`non-integer argument`);return e.substring(t-1,t-1+r)}if(i===`index`){n++;let e=l(),t=l();for(let n=0;n<e.length;n++)if(t.includes(e[n]))return String(n+1);return`0`}if(i===`length`){n++;let e=l();return String(e.length)}if(i===`(`){n++;let e=r();if(n>=t.length||t[n]!==`)`)throw Error(`syntax error`);return n++,e}return n++,i}return r()}var i={name:`expr`,flags:[],needsArgs:!0};export{n,i as t};
|
|
5
|
-
//# sourceMappingURL=chunk-YFG2CMIF-
|
|
5
|
+
//# sourceMappingURL=chunk-YFG2CMIF-DBRGs_rZ.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{t as r}from"./chunk-J642UCRS-
|
|
1
|
+
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{t as r}from"./chunk-J642UCRS-C1PS8Hwf.mjs";import{n as i,t as a}from"./chunk-VLGZJRPG-CHtdu0KZ.mjs";var o={name:`grep`,summary:`print lines that match patterns`,usage:`grep [OPTION]... PATTERN [FILE]...`,options:[`-E, --extended-regexp PATTERN is an extended regular expression`,`-P, --perl-regexp PATTERN is a Perl regular expression`,`-F, --fixed-strings PATTERN is a set of newline-separated strings`,`-i, --ignore-case ignore case distinctions`,`-v, --invert-match select non-matching lines`,`-w, --word-regexp match only whole words`,`-x, --line-regexp match only whole lines`,`-c, --count print only a count of matching lines`,`-l, --files-with-matches print only names of files with matches`,`-L, --files-without-match print names of files with no matches`,`-m NUM, --max-count=NUM stop after NUM matches`,`-n, --line-number print line number with output lines`,`-h, --no-filename suppress the file name prefix on output`,`-o, --only-matching show only nonempty parts of lines that match`,`-q, --quiet, --silent suppress all normal output`,`-r, -R, --recursive search directories recursively`,`-A NUM print NUM lines of trailing context`,`-B NUM print NUM lines of leading context`,`-C NUM print NUM lines of context`,`-e PATTERN use PATTERN for matching`,` --include=GLOB search only files matching GLOB`,` --exclude=GLOB skip files matching GLOB`,` --exclude-dir=DIR skip directories matching DIR`,` --help display this help and exit`]},s={name:`grep`,async execute(s,c){if(n(s))return t(o);let l=!1,f=!1,p=!1,m=!1,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=!1,S=!1,C=!1,w=!1,T=!1,E=0,D=0,O=0,k=[],A=[],j=[],M=null,N=[];for(let t=0;t<s.length;t++){let n=s[t];if(n.startsWith(`-`)&&n!==`-`){if(n===`-e`&&t+1<s.length){M=s[++t];continue}if(n.startsWith(`--include=`)){k.push(n.slice(10));continue}if(n.startsWith(`--exclude=`)){A.push(n.slice(10));continue}if(n.startsWith(`--exclude-dir=`)){j.push(n.slice(14));continue}if(n.startsWith(`--max-count=`)){E=parseInt(n.slice(12),10);continue}let r=n.match(/^-m(\d+)$/);if(r){E=parseInt(r[1],10);continue}if(n===`-m`&&t+1<s.length){E=parseInt(s[++t],10);continue}let i=n.match(/^-([ABC])(\d+)$/);if(i){let e=parseInt(i[2],10);i[1]===`A`?O=e:i[1]===`B`?D=e:i[1]===`C`&&(D=e,O=e);continue}if((n===`-A`||n===`-B`||n===`-C`)&&t+1<s.length){let e=parseInt(s[++t],10);n===`-A`?O=e:n===`-B`?D=e:(D=e,O=e);continue}let a=n.startsWith(`--`)?[n]:n.slice(1).split(``);for(let t of a)if(t===`i`||t===`--ignore-case`)l=!0;else if(t===`n`||t===`--line-number`)f=!0;else if(t===`v`||t===`--invert-match`)p=!0;else if(t===`c`||t===`--count`)m=!0;else if(t===`l`||t===`--files-with-matches`)h=!0;else if(t===`L`||t===`--files-without-match`)g=!0;else if(t===`r`||t===`R`||t===`--recursive`)_=!0;else if(t===`w`||t===`--word-regexp`)v=!0;else if(t===`x`||t===`--line-regexp`)y=!0;else if(t===`E`||t===`--extended-regexp`)b=!0;else if(t===`P`||t===`--perl-regexp`)x=!0;else if(t===`F`||t===`--fixed-strings`)S=!0;else if(t===`o`||t===`--only-matching`)C=!0;else if(t===`h`||t===`--no-filename`)w=!0;else if(t===`q`||t===`--quiet`||t===`--silent`)T=!0;else{if(t.startsWith(`--`))return e(`grep`,t);if(t.length===1)return e(`grep`,`-${t}`)}}else M===null?M=n:N.push(n)}if(M===null)return{stdout:``,stderr:`grep: missing pattern
|
|
2
2
|
`,exitCode:2};let P=S?`fixed`:b?`extended`:x?`perl`:`basic`,F,I;try{let e=i(M,{mode:P,ignoreCase:l,wholeWord:v,lineRegexp:y});F=e.regex,I=e.kResetGroup}catch{return{stdout:``,stderr:`grep: invalid regular expression: ${M}
|
|
3
3
|
`,exitCode:2}}if(N.length===0&&c.stdin!==void 0){let e=a(c.stdin,F,{invertMatch:p,showLineNumbers:f,countOnly:m,filename:``,onlyMatching:C,beforeContext:D,afterContext:O,maxCount:E,kResetGroup:I});return T?{stdout:``,stderr:``,exitCode:e.matched?0:1}:{stdout:e.output,stderr:``,exitCode:e.matched?0:1}}if(N.length===0)return{stdout:``,stderr:`grep: no input files
|
|
4
4
|
`,exitCode:2};let L=``,R=``,z=!1,B=!1,V=[];for(let e of N)if(e.includes(`*`)||e.includes(`?`)||e.includes(`[`)){let t=await u(e,c);if(_)for(let e of t){let t=await d(e.path,c,k,A,j,e.isFile);V.push(...t)}else V.push(...t)}else if(_){let t=await d(e,c,k,A,j);V.push(...t)}else V.push({path:e});let H=(V.length>1||_)&&!w;for(let e=0;e<V.length;e+=50){let t=V.slice(e,e+50),n=await Promise.all(t.map(async e=>{let t=e.path,n=t.split(`/`).pop()||t;if(A.length>0&&!_&&A.some(e=>r(n,e,{stripQuotes:!0}))||k.length>0&&!_&&!k.some(e=>r(n,e,{stripQuotes:!0})))return null;try{let n=c.fs.resolvePath(c.cwd,t),r=!1;return r=e.isFile===void 0?(await c.fs.stat(n)).isDirectory:!e.isFile,r?_?null:{error:`grep: ${t}: Is a directory
|
|
@@ -6,4 +6,4 @@ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{t as r}fr
|
|
|
6
6
|
`}}}));for(let e of n){if(e===null)continue;if(`error`in e&&e.error){R+=e.error,e.error.includes(`Is a directory`)||(B=!0);continue}if(!(`file`in e)||!e.result)continue;let{file:t,result:n}=e;if(n.matched){if(z=!0,T)return{stdout:``,stderr:``,exitCode:0};h?L+=`${t}
|
|
7
7
|
`:g||(L+=n.output)}else g?L+=`${t}
|
|
8
8
|
`:m&&!h&&(L+=n.output)}}let U;return U=B?2:g?L.length>0?0:1:z?0:1,T?{stdout:``,stderr:``,exitCode:U}:{stdout:L,stderr:R,exitCode:U}}},c=256;async function l(e,t,n,i,a=0){if(a>=c)return;let o=n.fs.resolvePath(n.cwd,e);try{if(!(await n.fs.stat(o)).isDirectory){let n=e.split(`/`).pop()||``;t&&r(n,t.replace(/^\//,``),{stripQuotes:!0})&&i.push(e);return}let s=await n.fs.readdir(o);for(let o of s){let s=e===`.`?o:`${e}/${o}`,c=n.fs.resolvePath(n.cwd,s);(await n.fs.stat(c)).isDirectory?await l(s,t,n,i,a+1):t&&r(o,t.replace(/^\//,``),{stripQuotes:!0})&&i.push(s)}}catch{}}async function u(e,t){let n=[],i=e.lastIndexOf(`/`),a,o;if(i===-1?(a=t.cwd,o=e):(a=e.slice(0,i)||`/`,o=e.slice(i+1)),e.includes(`**`)){let n=[],r=e.split(`**`);return await l(r[0].replace(/\/$/,``)||`.`,r[1]||``,t,n),n.map(e=>({path:e}))}let s=t.fs.resolvePath(t.cwd,a);try{if(t.fs.readdirWithFileTypes){let e=await t.fs.readdirWithFileTypes(s);for(let t of e)if(r(t.name,o,{stripQuotes:!0})){let e=i===-1?t.name:`${a}/${t.name}`;n.push({path:e,isFile:t.isFile})}}else{let e=await t.fs.readdir(s);for(let t of e)if(r(t,o,{stripQuotes:!0})){let e=i===-1?t:`${a}/${t}`;n.push({path:e})}}}catch{}return n.sort((e,t)=>e.path.localeCompare(t.path))}async function d(e,t,n=[],i=[],a=[],o,s=0){if(s>=c)return[];let l=t.fs.resolvePath(t.cwd,e),u=[];try{let c,f;if(o!==void 0)c=o,f=!o;else{let e=await t.fs.stat(l);c=e.isFile,f=e.isDirectory}if(c){let t=e.split(`/`).pop()||e;return i.length>0&&i.some(e=>r(t,e,{stripQuotes:!0}))||n.length>0&&!n.some(e=>r(t,e,{stripQuotes:!0}))?[]:[{path:e,isFile:!0}]}if(!f)return[];let p=e.split(`/`).pop()||e;if(a.length>0&&a.some(e=>r(p,e,{stripQuotes:!0})))return[];if(t.fs.readdirWithFileTypes){let r=await t.fs.readdirWithFileTypes(l);for(let o of r){if(o.name.startsWith(`.`))continue;let r=await d(e===`.`?o.name:`${e}/${o.name}`,t,n,i,a,o.isFile,s+1);u.push(...r)}}else{let r=await t.fs.readdir(l);for(let o of r){if(o.startsWith(`.`))continue;let r=await d(e===`.`?o:`${e}/${o}`,t,n,i,a,void 0,s+1);u.push(...r)}}}catch{}return u}var f={name:`fgrep`,async execute(e,t){return s.execute([`-F`,...e],t)}},p={name:`egrep`,async execute(e,t){return s.execute([`-E`,...e],t)}},m={name:`grep`,flags:[{flag:`-E`,type:`boolean`},{flag:`-F`,type:`boolean`},{flag:`-P`,type:`boolean`},{flag:`-i`,type:`boolean`},{flag:`-v`,type:`boolean`},{flag:`-w`,type:`boolean`},{flag:`-x`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`-l`,type:`boolean`},{flag:`-L`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-h`,type:`boolean`},{flag:`-o`,type:`boolean`},{flag:`-q`,type:`boolean`},{flag:`-r`,type:`boolean`},{flag:`-m`,type:`value`,valueHint:`number`},{flag:`-A`,type:`value`,valueHint:`number`},{flag:`-B`,type:`value`,valueHint:`number`},{flag:`-C`,type:`value`,valueHint:`number`},{flag:`-e`,type:`value`,valueHint:`pattern`}],stdinType:`text`,needsArgs:!0},h={name:`fgrep`,flags:[],stdinType:`text`,needsArgs:!0},g={name:`egrep`,flags:[],stdinType:`text`,needsArgs:!0};export{g as a,s as i,h as n,m as o,p as r,f as t};
|
|
9
|
-
//# sourceMappingURL=chunk-YS3AZT3J-
|
|
9
|
+
//# sourceMappingURL=chunk-YS3AZT3J-DwQ3GyQR.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,t}from"./chunk-A5O5YHGN-
|
|
1
|
+
import{n as e,t}from"./chunk-A5O5YHGN-Kbs3GRxW.mjs";import{t as n}from"./chunk-IPJHKYVM-DlQCOz2c.mjs";import{n as r,r as i,t as a}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{t as o}from"./chunk-3ZUFRYJ4-Bv1jGN68.mjs";var s={name:`timeout`,summary:`run a command with a time limit`,usage:`timeout [OPTION] DURATION COMMAND [ARG]...`,description:`Start COMMAND, and kill it if still running after DURATION.
|
|
2
2
|
|
|
3
3
|
DURATION is a number with optional suffix:
|
|
4
4
|
s - seconds (default)
|
|
@@ -9,4 +9,4 @@ DURATION is a number with optional suffix:
|
|
|
9
9
|
`,exitCode:1};let m=d.slice(1);if(m.length===0)return{stdout:``,stderr:`timeout: missing operand
|
|
10
10
|
`,exitCode:1};if(!l.exec)return{stdout:``,stderr:`timeout: exec not available
|
|
11
11
|
`,exitCode:1};let h=new AbortController,g;try{let e=new Promise(e=>{g=t(()=>{h.abort(),e({timedOut:!0})},p)}),r=l.exec(n([m[0]]),{cwd:l.cwd,signal:h.signal,stdin:l.stdin,args:m.slice(1)}).then(e=>({timedOut:!1,result:e})),i=await Promise.race([e,r]);return i.timedOut?{stdout:``,stderr:``,exitCode:124}:i.result}finally{g!==void 0&&e(g)}}},l={name:`timeout`,flags:[{flag:`-k`,type:`value`,valueHint:`string`},{flag:`-s`,type:`value`,valueHint:`string`},{flag:`--preserve-status`,type:`boolean`},{flag:`--foreground`,type:`boolean`}],needsArgs:!0,minArgs:2};export{c as n,l as t};
|
|
12
|
-
//# sourceMappingURL=chunk-YTNYSM6T-
|
|
12
|
+
//# sourceMappingURL=chunk-YTNYSM6T-DcovOiF_.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,w as t}from"./src-BkCVz_TJ.mjs";import{A as n}from"./chunk-ICPOFSXX-
|
|
2
|
-
//# sourceMappingURL=chunk-YZCP3GAM-
|
|
1
|
+
import{p as e,w as t}from"./src-BkCVz_TJ.mjs";import{A as n}from"./chunk-ICPOFSXX-D0MVsm4H.mjs";import{t as r}from"./dist-DZb_HoiN.mjs";var i=r(),a=t((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),o=t((e,t)=>{a(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),s=t((e,t)=>{let r=t.text.replace(n,` `),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.attr(`class`,`legend`),i.style(`text-anchor`,t.anchor),t.class&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.text(r),i},`drawText`),c=t((e,t,n,r)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,o)},`drawImage`),l=t((e,t,n,r)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),u=t(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),d=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),f=t(()=>{let t=e(`.mermaidTooltip`);return t.empty()&&(t=e(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0).style(`position`,`absolute`).style(`text-align`,`center`).style(`max-width`,`200px`).style(`padding`,`2px`).style(`font-size`,`12px`).style(`background`,`#ffffde`).style(`border`,`1px solid #333`).style(`border-radius`,`2px`).style(`pointer-events`,`none`).style(`z-index`,`100`)),t},`createTooltip`);export{a,d as c,c as i,o as n,s as o,l as r,u as s,f as t};
|
|
2
|
+
//# sourceMappingURL=chunk-YZCP3GAM-CkC6DoBJ.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e}from"./chunk-CWQS3NFK-
|
|
1
|
+
import{r as e}from"./chunk-CWQS3NFK-DNm_iIwd.mjs";import{t}from"./chunk-IPJHKYVM-DlQCOz2c.mjs";import{r as n}from"./chunk-OJDRYQWQ-LGuZyK6R.mjs";import{n as r}from"./chunk-3THT3N7L-CBWmNncQ.mjs";var i={name:`time`,async execute(i,o){let s=`%e %M`,c=null,l=!1,u=!1,d=0;for(;d<i.length;){let e=i[d];if(e===`-f`||e===`--format`){if(d++,d>=i.length)return{stdout:``,stderr:`time: missing argument to '-f'
|
|
2
2
|
`,exitCode:1};s=i[d],d++}else if(e===`-o`||e===`--output`){if(d++,d>=i.length)return{stdout:``,stderr:`time: missing argument to '-o'
|
|
3
3
|
`,exitCode:1};c=i[d],d++}else if(e===`-a`||e===`--append`)l=!0,d++;else if(e===`-v`||e===`--verbose`)s=`Command being timed: %C
|
|
4
4
|
Elapsed (wall clock) time: %e seconds
|
|
@@ -11,4 +11,4 @@ sys 0.00
|
|
|
11
11
|
`)||(_+=`
|
|
12
12
|
`)),c)try{let e=o.fs.resolvePath(o.cwd,c);if(l&&await o.fs.exists(e)){let t=await o.fs.readFile(e);await o.fs.writeFile(e,t+_)}else await o.fs.writeFile(e,_)}catch(e){let t=r(e.message);return{stdout:h.stdout,stderr:h.stderr+`time: cannot write to '${c}': ${t}
|
|
13
13
|
`,exitCode:h.exitCode}}else h={...h,stderr:h.stderr+_};return h}};function a(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return t>0?`${t}:${n.toString().padStart(2,`0`)}:${r.toFixed(2).padStart(5,`0`)}`:`${n}:${r.toFixed(2).padStart(5,`0`)}`}var o={name:`time`,flags:[{flag:`-p`,type:`boolean`}],needsArgs:!0};export{i as n,o as t};
|
|
14
|
-
//# sourceMappingURL=chunk-Z6LRHWXI-
|
|
14
|
+
//# sourceMappingURL=chunk-Z6LRHWXI-BLaYoFnT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{w as e}from"./src-BkCVz_TJ.mjs";import{b as t,d as n}from"./chunk-ICPOFSXX-
|
|
2
|
-
//# sourceMappingURL=chunk-ZZ45TVLE-
|
|
1
|
+
import{w as e}from"./src-BkCVz_TJ.mjs";import{b as t,d as n}from"./chunk-ICPOFSXX-D0MVsm4H.mjs";import{f as r}from"./chunk-5PVQY5BW-C5V4E1lO.mjs";var i=e(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`);async function a(i,a){let o=i.getElementsByTagName(`img`);if(!o||o.length===0)return;let s=a.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...o].map(i=>new Promise(a=>{function o(){if(i.style.display=`flex`,i.style.flexDirection=`column`,s){let[e=n.fontSize]=r(t().fontSize?t().fontSize:window.getComputedStyle(document.body).fontSize),a=e*5+`px`;i.style.minWidth=a,i.style.maxWidth=a}else i.style.width=`100%`;a(i)}e(o,`setupImage`),setTimeout(()=>{i.complete&&o()}),i.addEventListener(`error`,o),i.addEventListener(`load`,o)})))}e(a,`configureLabelImages`);export{i as n,a as t};
|
|
2
|
+
//# sourceMappingURL=chunk-ZZ45TVLE-CXznFlWR.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{w as e}from"./src-BkCVz_TJ.mjs";import"./chunk-ICPOFSXX-D0MVsm4H.mjs";import"./chunk-5PVQY5BW-C5V4E1lO.mjs";import"./chunk-U2HBQHQK-DB1SzWgs.mjs";import"./chunk-FMBD7UC4-CAloFUY3.mjs";import"./chunk-BSJP7CBP-BG3yJGkJ.mjs";import"./chunk-ZZ45TVLE-CXznFlWR.mjs";import"./chunk-YZCP3GAM-CkC6DoBJ.mjs";import"./chunk-55IACEB6-Cmyc0XwJ.mjs";import"./chunk-EDXVE4YY-B_wA-KGy.mjs";import"./chunk-X2U36JSP-CqOGcGN3.mjs";import"./chunk-5FUZZQ4R-DFR5eSi-.mjs";import"./chunk-ENJZ2VHE-DwiyImt2.mjs";import"./chunk-336JU56O-5giJrfiv.mjs";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-DWREoP49.mjs";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
2
|
+
//# sourceMappingURL=classDiagram-6PBFFD2Q-cIblqhKe.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{w as e}from"./src-BkCVz_TJ.mjs";import"./chunk-ICPOFSXX-D0MVsm4H.mjs";import"./chunk-5PVQY5BW-C5V4E1lO.mjs";import"./chunk-U2HBQHQK-DB1SzWgs.mjs";import"./chunk-FMBD7UC4-CAloFUY3.mjs";import"./chunk-BSJP7CBP-BG3yJGkJ.mjs";import"./chunk-ZZ45TVLE-CXznFlWR.mjs";import"./chunk-YZCP3GAM-CkC6DoBJ.mjs";import"./chunk-55IACEB6-Cmyc0XwJ.mjs";import"./chunk-EDXVE4YY-B_wA-KGy.mjs";import"./chunk-X2U36JSP-CqOGcGN3.mjs";import"./chunk-5FUZZQ4R-DFR5eSi-.mjs";import"./chunk-ENJZ2VHE-DwiyImt2.mjs";import"./chunk-336JU56O-5giJrfiv.mjs";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-DWREoP49.mjs";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
2
|
+
//# sourceMappingURL=classDiagram-v2-HSJHXN6E-CnZ_g-6O.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{n as e}from"./chunk-LL3S3NLB-CH16p_-s.mjs";export{e as clearCommand};
|