@agimon-ai/po-cloudflare 0.0.2-alpha.2 → 0.0.2-alpha.21
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/README.md +4 -3
- package/dist/abort-signals-2GUraIGq.js +34 -0
- package/dist/agent-DZ-OKOHn.js +6850 -0
- package/dist/anthropic-messages-5ODquUB-.js +14317 -0
- package/dist/{apiContracts-CHOiCbS_.js → apiContracts-b33nSAAI.js} +18 -81
- package/dist/{approval-BMXqnTYd.js → approval-r3NnI1VC.js} +19 -3
- package/dist/{approvalPrompt-Bg1JrEEY.js → approvalPrompt-DWoXxu3S.js} +2 -2
- package/dist/artifactFiles-DLCReI0-.js +1 -0
- package/dist/assets/assets/{CodeEditorView-BnyZHaYM.js → CodeEditorView-XeNS0L9M.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-muME0eCj.js → abnfDiagram-WEYOIA3C-B6ZW0nkR.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-DMnhK1WH.js → architecture-WOLXFQ4H-bVR64sHO.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-DKn7XGP7.js → architectureDiagram-ZHVYKT53-D7tZz3io.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-DtDctXZg.js → blockDiagram-RJAE7QA3-DdwScfiX.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-23pGLJeP.js → c4Diagram-XDPPPE54-DgSxZJCV.js} +2 -2
- package/dist/assets/assets/channel-TPcVvp_3.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-BZ2nGNPa.js → chunk-2E7WHVMD-D5TXC2SM.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-Dui1SYFi.js → chunk-4EMNKR2T-BWhOSvo1.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-CUB92Evl.js → chunk-55XCU76K-HkkBzLtZ.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-CVayPHfE.js → chunk-7S6XSTFO-CBnjycLU.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB---wakYqY.js → chunk-AQDTSKZB-75lIIq8T.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-DfbdohUR.js → chunk-DSNLSHJZ-D8PpnXMk.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-Dr4KRh-b.js → chunk-HAGFOTED-CXRS2NIN.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-D06cR91Z.js → chunk-HNE4Q36P-BocUqS94.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-Ca4gLeDb.js → chunk-NQOKRVIF-CHf_ogYT.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-DmL638jN.js → chunk-UHW7PFBP-DrW1PaIv.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-pkxSW5Zj.js → chunk-VQ5W62QI-CLoA7bFm.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-Dcc8hV4U.js → chunk-WQQL4CDK-BmBsrj9I.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-iFE4Tl8c.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-B_HKcFrw.js → chunk-YZO67HFG-DShE_cgv.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-DAzZUysS.js → chunk-ZAUX2LTX-B3oLvSXy.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-DAVgjymL.js → chunk-ZCHMQSOR-B14vKK7C.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-Fsw8TGPu.js → classDiagram-v2-4MYWR3UA-Da8elIW2.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-CgUbISYV.js → cose-bilkent-JH36ORCC-Du4tGtiJ.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-D1LxAU2x.js → cynefin-EF2NZ3EQ-Cyj6i_WI.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-D54I1jil.js → cynefinDiagram-WF24UDRP-DFWXwO7A.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-DC7zL16U.js → dagre-NK4GIZVX-C1wB_cf-.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-DB0ptUdz.js → diagram-CBK3MWTC-MYCOBYl6.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-CozSftPJ.js → diagram-I5XIIV2D-BFYbKUFf.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-g3WOEWDS.js → diagram-ODIL2UCW-6siqTpv_.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-CFxGeOYi.js → diagram-PFBEJUXE-CaBr9CoB.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-BQBsLche.js → diagram-RJA3I4VV-DAvmuDpc.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-DrjpW2yq.js → diagram-TYUNFSNR-CJnhgCpo.js} +2 -2
- package/dist/assets/assets/{dist-DjL8d1jZ.js → dist-BQ4W1R18.js} +2 -2
- package/dist/assets/assets/{dist-DvgCCshF.js → dist-BnzFckPF.js} +2 -2
- package/dist/assets/assets/{dist-gfbb4ygy.js → dist-CFtBpcYL.js} +2 -2
- package/dist/assets/assets/{dist-BabjcJ3j.js → dist-CIQX1z4W.js} +2 -2
- package/dist/assets/assets/{dist-XIZum9n5.js → dist-ChHYoe9_.js} +2 -2
- package/dist/assets/assets/{dist-1-mhYUBH.js → dist-DKxZO8d9.js} +2 -2
- package/dist/assets/assets/{dist-h6SOnP8-.js → dist-DL6z28wl.js} +2 -2
- package/dist/assets/assets/{dist-B3JXhDWV.js → dist-DNyn1p9Z.js} +2 -2
- package/dist/assets/assets/{dist-Izr2SB3q.js → dist-qYlLXIa8.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-BZS_aAve.js → ebnfDiagram-V4P3TTPT-AUcqDTM3.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-B2ksVmMA.js → elk-QONTBCTQ-aA10PEHJ.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-7P6zF-Z-.js → erDiagram-KYQIGQAA-hhYiqA-x.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-RoGQoRq-.js → eventmodeling-K75KTNOO-BQZqbRo5.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-BuyysPYC.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-CTOlRy7M.js → ganttDiagram-R7GPNTJY-CLON1GpW.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-CPqytIt0.js → gitGraph-VSP46ZUC-DbmvNwR2.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-BffLxuxg.js → gitGraphDiagram-PDYL7XHY-DJVO0WlL.js} +2 -2
- package/dist/assets/assets/index-BiTVAj5E.js +155 -0
- package/dist/assets/assets/index-CBNQEGK3.css +1 -0
- package/dist/assets/assets/{info-OHQRW6UA-BI8RK0Ow.js → info-OHQRW6UA-CAt3Nt3g.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-DUIst1FB.js → infoDiagram-MVDRKAX5-DTuqH-Zb.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-CA17Eho5.js → ishikawaDiagram-HPEHV2GE-BnWvdonT.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-CNri5Ap9.js → journeyDiagram-BOSHW7O7-Btxtcgvl.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-DnXna7jO.js → kanban-definition-FNSA4HC5-q7ek9o_H.js} +2 -2
- package/dist/assets/assets/{line-BsXJZn93.js → line-B7yLilmC.js} +2 -2
- package/dist/assets/assets/{linear-BHYaD5T0.js → linear-y8aSKEli.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-B64Eo-8a.js → mermaid-parser.core-B4rH50nD.js} +4 -4
- package/dist/assets/assets/{mermaid.core-Zw9qmTzg.js → mermaid.core-DnRVHTjE.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-E5qz4KNc.js → mindmap-definition-6OY57UG3-DT9Afs2v.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-DgfizTr3.js → packet-JDAUHWVQ-CnqNbu4p.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-D0WK_agM.js → pegDiagram-ECIUJNBX-cvxdBBFq.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-PJR1sXD4.js → pie-XZMESJXO-etXMNsaL.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-CPuU-NTs.js → pieDiagram-GNMPY74T-CBN-R3_j.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-5C9yjM1b.js → quadrantDiagram-D57K4MC3-C5jjVPIH.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-BspdXgl0.js → radar-ABXABTNO-CAMd_mrV.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-Ct0a6hLD.js → railroad-I3PHUGI6-DIs3auoe.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-fduYB4SA.js → railroad-abnf-LNEFI6M7-CJXr1qWy.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-CTQa8Sww.js → railroad-ebnf-DWYD2UWJ-DfwtykqI.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-DatoH3GJ.js → railroad-peg-JR7BVNR7-B8beAhTs.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-C8sWN8l2.js → railroadDiagram-Y72NRBL7-BDcQE-EL.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-CqRz4RcT.js → requirementDiagram-EQYSW5RA-KJ4-QjZM.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-bdiuKKlX.js → sankeyDiagram-SY24JHO5-VjIB-Ybr.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-Zy-8I0Hy.js → sequenceDiagram-BLEHNHQU-MfMuWq1M.js} +2 -2
- package/dist/assets/assets/{src-gihY33R9.js → src-BAxIj8GJ.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-DXQERPvz.js → stateDiagram-v2-A6IESKWZ-mHwLRRCY.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-1gjZQElg.js → swimlanes-B3ENRKFQ-PArlYoqV.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-The09-5S.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-CTeYEw-9.js → timeline-definition-JXYKGLGB-B2nKiNFU.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-DD-EsLLT.js → treeView-D4JQ5SDB-gU23_RuI.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-BLdFeS5J.js → treemap-SAJKECNS-CiqoMvZa.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-C1GikSSP.js → usecaseDiagram-WPOLBNNX-DpeoWpMK.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-B1FoA3g8.js → vennDiagram-Q3Y3IDCW-C31iGKvM.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-BrHb5Bjf.js → wardley-7MLQ67FV-CIzHhzNw.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-CmPLD1X4.js → wardleyDiagram-IVAIDKWA-DIIkoezc.js} +2 -2
- package/dist/assets/assets/{webpack-BYWDFj_R.js → webpack-RFseiMZW.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-DR5pfEjl.js → xychartDiagram-4URNHDU4-QiHL91kC.js} +2 -2
- package/dist/assets/bundle-asset-policy.json +1 -1
- package/dist/assets/index.html +2 -2
- package/dist/assets/plugins/assets/base-CKKRZ7-h.css +2 -0
- package/dist/assets/plugins/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js +13 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/assets/plugins/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs +110 -0
- package/dist/assets/plugins/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx +0 -0
- package/dist/assets/plugins/chunks/po-web-runtime-BJDT6Lbw.js +1 -0
- package/dist/assets/plugins/compositions.json +1 -0
- package/dist/assets/plugins/slots/approval.293d9a00-BXIhaPlQ.js +2 -0
- package/dist/assets/plugins/slots/artifacts.24567664-ZzR0gbvy.js +1 -0
- package/dist/assets/plugins/slots/author.0998a880-DAbA-7rb.js +93 -0
- package/dist/assets/plugins/slots/autocompact.dd97d013-IVq4Z6qm.js +1 -0
- package/dist/assets/plugins/slots/builtin-tools.36d7400b-CpCLjRRN.js +7 -0
- package/dist/assets/plugins/slots/codemode.8eaee717-VWt9PqsU.js +10 -0
- package/dist/assets/plugins/slots/domain.5e95fc37-5PIUBqDe.js +1 -0
- package/dist/assets/plugins/slots/edit.385c9aa9-DNAjPNG5.js +7 -0
- package/dist/assets/plugins/slots/files.daf34ed8-CQaTz0i1.js +2 -0
- package/dist/assets/plugins/slots/goal.77ec9930-B8EkarBq.js +1 -0
- package/dist/assets/plugins/slots/grep.02052cdc-CIRhO2gY.js +1 -0
- package/dist/assets/plugins/slots/help.ecd4c0f9-naMF9NN1.js +3 -0
- package/dist/assets/plugins/slots/log.a86eb6d0-D5__rAZJ.js +4 -0
- package/dist/assets/plugins/slots/mcp.974af249-DPNHn9XH.js +109 -0
- package/dist/assets/plugins/slots/plan.bafb8f68-C5GEpybF.js +3 -0
- package/dist/assets/plugins/slots/profile.48851a1d-yX6tzV3x.js +1 -0
- package/dist/assets/plugins/slots/prompts.723d7748-B7zpPeoF.js +3 -0
- package/dist/assets/plugins/slots/read.46bf6536-Cw5Z5z5T.js +1 -0
- package/dist/assets/plugins/slots/runner.53e9bd76-CiQR_FPX.js +8 -0
- package/dist/assets/plugins/slots/skill.086701a4-CL6h_F-x.js +4 -0
- package/dist/assets/plugins/slots/vault.ac9935c8-DKERQYg4.js +1 -0
- package/dist/assets/plugins/slots/voice.e85ca7f9-DEgb-U9m.js +1 -0
- package/dist/assets/pwa/pwa.js +12 -12
- package/dist/assets/pwa/sw.js +4 -4
- package/dist/{atomicJson-BJfPFSYF.js → atomicJson-C_7F2zD1.js} +2 -3
- package/dist/azure-openai-config-COZUaRzM.js +55 -0
- package/dist/azure-openai-responses-Cs4k2HOd.js +183 -0
- package/dist/{backgroundWork-CeFrbRnj.js → backgroundWork-B1mPDYlf.js} +1 -1
- package/dist/browser-BWf8OMfl.js +3 -0
- package/dist/childSession-Cf2-kH4O.js +22 -0
- package/dist/classifier-shared-IhSH9hhh.js +106 -0
- package/dist/cloudflare-workers-ai-system-one-BNnc8MuH.js +52 -0
- package/dist/{codemode-DbPu0yJN.js → codemode-DQFmrosw.js} +5 -2
- package/dist/contracts-DD3f1Lpn.js +19 -0
- package/dist/diagnostics-1lYFeSJe.js +131 -0
- package/dist/{server-D3PQk1Gt.js → dist-B-vqs6tA.js} +1 -546
- package/dist/dist-Dvx5mlIR.js +50 -0
- package/dist/env-api-keys-Bow6MJe2.js +32 -0
- package/dist/error-body-CJk7jMUh.js +102 -0
- package/dist/esm-BKJy3O9-.js +1553 -0
- package/dist/exports-B0WMEXCP.js +34 -0
- package/dist/{remoteMcp-CMqZldeA.js → exports-D09VsUk-.js} +1153 -175
- package/dist/{exports-BNZz2DNU.js → exports-nV43ShA7.js} +25 -9
- package/dist/{extensionFile-CXOa5G4C.js → extensionFile-DNM4xsje.js} +26 -2
- package/dist/github-copilot-headers-D1RedfLn.js +22 -0
- package/dist/google-generative-ai-DXTILNT0.js +328 -0
- package/dist/google-shared-e4JDCTVP.js +19588 -0
- package/dist/google-vertex-a1lzvJfq.js +374 -0
- package/dist/{domains-BNjGTOPj.js → harnessState-Dwrk3lfv.js} +175 -16
- package/dist/{harnessStore-BT706Ly6.js → harnessStore-Z7yDLO45.js} +4 -5
- package/dist/hash-Dt6RIbkn.js +16 -0
- package/dist/headers-CwtEVQvr.js +17 -0
- package/dist/help-w6vVEZGL.js +101 -0
- package/dist/hubChannel-Cm-sxOvU.js +21 -0
- package/dist/hubRevisions-58pU2dW5.js +363 -0
- package/dist/identity-BgfHobJH.js +165 -0
- package/dist/index.edge-COJJ_Dv2.js +937 -0
- package/dist/index.edge-ChYa2LU4.js +14 -0
- package/dist/index.edge-ClLTmPFz.js +191 -0
- package/dist/index.edge-DyYmurS7.js +62 -0
- package/dist/index.edge-K0w5auwG.js +56 -0
- package/dist/index.edge-Xa5LLtxz.js +67 -0
- package/dist/iso-BPQViXM8.js +10 -0
- package/dist/{layeredConfig-DPQAnlXD.js → layeredConfig-CUkYUs1f.js} +193 -15
- package/dist/{majorModes-DbCfLZH3.js → majorModes-BB0PXgFn.js} +4 -14
- package/dist/majorModes-C7vtBs4D.js +1 -0
- package/dist/{mcpProjection-BsP0IEnb.js → mcpProjection-BtKzB6oK.js} +2 -2
- package/dist/migrations-5gbLIQIc.js +32 -0
- package/dist/mistral-conversations-CLwhVDjA.js +689 -0
- package/dist/modeDefinition-C3Zbrw48.js +44 -0
- package/dist/models-Chzm15vC.js +1511 -0
- package/dist/narration-CpRurWLO.js +127 -0
- package/dist/node-BT4GsJQp.js +2479 -0
- package/dist/node-DytJOfYf.js +23 -0
- package/dist/notification-kckG3leF.js +102 -0
- package/dist/openai-codex-responses-DRMONxDE.js +1210 -0
- package/dist/openai-completions-CcNhAv8l.js +984 -0
- package/dist/openai-decisions-BsFjaAGw.js +142 -0
- package/dist/openai-kPrtlgjl.js +17357 -0
- package/dist/openai-prompt-cache-Bc6qNWt0.js +8 -0
- package/dist/openai-responses-C5Gp2UOV.js +281 -0
- package/dist/openai-responses-shared-BbSi-wBR.js +661 -0
- package/dist/openrouter-cost-CvC52g3b.js +30 -0
- package/dist/openrouter-images-BoHl8g8p.js +124 -0
- package/dist/{hubChannel-BHQyzcOo.js → packageApi-t1oCjNDU.js} +4 -41
- package/dist/photon_rs_bg.wasm +0 -0
- package/dist/pi-messages-BXfrZLC7.js +312 -0
- package/dist/piConfig-DQzlbPY4.js +126 -0
- package/dist/piSettings-Cf1QofNe.js +1 -0
- package/dist/platform-BIEiM4TG.js +113 -0
- package/dist/pluginContributions-Be9EnCAW.js +16 -0
- package/dist/pluginProtocol-BqXXyI4z.js +80 -0
- package/dist/{protocol-Xpm_mCNN.js → protocol-DDL8geoS.js} +2 -2
- package/dist/provider-env-CxhHUFiF.js +38 -0
- package/dist/provider-retry-BUoezuw8.js +79 -0
- package/dist/sanitize-unicode-C3Ec8oL6.js +26 -0
- package/dist/sealedChannel-BeWNTWys.js +27 -0
- package/dist/server-AbXyhXlY.js +217 -0
- package/dist/server-B6dqQoh2.js +1518 -0
- package/dist/server-BIHo9TFu.js +505 -0
- package/dist/{server-BZh1ZXz_.js → server-BJ7DNzCp.js} +8 -19
- package/dist/server-BO-j_GbD.js +15106 -0
- package/dist/{server-D4W7EdJY.js → server-BQzAiMns.js} +16 -16
- package/dist/server-BR7SZtj7.js +3125 -0
- package/dist/{server-BE6VqEiA.js → server-BT2ORK83.js} +20 -12
- package/dist/server-BbSHYRnY.js +295 -0
- package/dist/server-BqoKlEGk.js +1806 -0
- package/dist/{server-tvgQ99rv.js → server-Busl0pQI.js} +370 -120
- package/dist/server-CIHM4jqu.js +1116 -0
- package/dist/server-CgWSSdvd.js +576 -0
- package/dist/{server-Dpgh8PDh.js → server-Co_UWKrR.js} +14 -5
- package/dist/{server-BAAL9-NA.js → server-CuEPb7u-.js} +3 -10
- package/dist/{server-Dt4y1rZD.js → server-D40q2Jpx.js} +47 -27
- package/dist/server-DCyf2Asb.js +679 -0
- package/dist/server-DH7PfLln.js +148 -0
- package/dist/server-DJ8bc89M.js +934 -0
- package/dist/server-DYdp0W9v.js +489 -0
- package/dist/server-DsdPEYGu.js +639 -0
- package/dist/server-DymH4Ucq.js +189 -0
- package/dist/server-IqECnUrb.js +834 -0
- package/dist/{server-36iuA3MI.js → server-KBgW77zh.js} +3 -3
- package/dist/server-RW_9R3R3.js +1522 -0
- package/dist/server-aUit8j6r.js +1028 -0
- package/dist/{server-DJAanjoI.js → server-gifRriZK.js} +491 -103
- package/dist/server-nkUlqnAL.js +2658 -0
- package/dist/server-oxyEbv1a.js +1256 -0
- package/dist/{server-D8ndq0wL.js → server-ub3s16Mc.js} +11 -9
- package/dist/{build-2gFaVEfG.js → serverPlugin-CELT6P0Q.js} +3946 -3
- package/dist/{sessionConfig-rBQgzXlT.js → sessionConfig-RQGvfm6E.js} +550 -760
- package/dist/simple-options-CFzI5Pd_.js +156 -0
- package/dist/streaming-json-BWTHTwz-.js +858 -0
- package/dist/system-one-shared-CiIrx29d.js +132 -0
- package/dist/{notification-D76PSL7r.js → telemetry-Csv1ZxAn.js} +1 -92
- package/dist/transform-messages-D77af7Bx.js +356 -0
- package/dist/truncate-M3KbFyVj.js +89 -0
- package/dist/{server-A-_GFpPr.js → type-ASYnCGVW.js} +10 -1031
- package/dist/typesafe-system-one-DGxeggJh.js +37 -0
- package/dist/uuid-B0QJx6Kr.js +31 -0
- package/dist/{validation-D77NZBrx.js → validation-BJxVSAwx.js} +8 -3
- package/dist/{value-Djvc2foV.js → value-_W31So3B.js} +1 -1
- package/dist/vaultSettings-Di3n5YIg.js +328 -0
- package/dist/voiceTools-RMn4HvWo.js +246 -0
- package/dist/web-DCP7ELJj.js +3 -0
- package/dist/worker.js +95288 -49863
- package/dist/workflow-B7qx0Vv9.js +79 -0
- package/package.json +37 -22
- package/wrangler.jsonc +4 -2
- package/dist/assets/assets/channel-CMrEzemr.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-CFf0S6bN.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-BhGbWVf0.js +0 -1
- package/dist/assets/assets/index-Bx_K4Joy.js +0 -155
- package/dist/assets/assets/index-DZM68mTk.css +0 -1
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-q91tR8ri.js +0 -9
- package/dist/contextProjection-DVP2Vc5j.js +0 -188
- package/dist/harnessState-gmzJcPGt.js +0 -88
- package/dist/harnessStore-BiH9vSuD.js +0 -1
- package/dist/index.edge-BgSx_gRO.js +0 -45
- package/dist/majorModes-BvWNqoHt.js +0 -1
- package/dist/piSettings-B6fsgIBA.js +0 -1
- package/dist/platform-B4AAgwJ0.js +0 -16
- package/dist/platformFiles-C_bXo4Ig.js +0 -39
- package/dist/server-BZaPPoQp.js +0 -592
- package/dist/server-D75MWDhB.js +0 -118
- package/dist/server-r358hzQg.js +0 -280
- package/dist/serverPlugin-BOI6c6s5.js +0 -3393
|
@@ -0,0 +1,1553 @@
|
|
|
1
|
+
//#region ../../../node_modules/.pnpm/balanced-match@4.0.3/node_modules/balanced-match/dist/esm/index.js
|
|
2
|
+
const balanced = (a, b, str) => {
|
|
3
|
+
const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
|
|
4
|
+
const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
|
|
5
|
+
const r = ma !== null && mb != null && range(ma, mb, str);
|
|
6
|
+
return r && {
|
|
7
|
+
start: r[0],
|
|
8
|
+
end: r[1],
|
|
9
|
+
pre: str.slice(0, r[0]),
|
|
10
|
+
body: str.slice(r[0] + ma.length, r[1]),
|
|
11
|
+
post: str.slice(r[1] + mb.length)
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
const maybeMatch = (reg, str) => {
|
|
15
|
+
const m = str.match(reg);
|
|
16
|
+
return m ? m[0] : null;
|
|
17
|
+
};
|
|
18
|
+
const range = (a, b, str) => {
|
|
19
|
+
let begs, beg, left, right = void 0, result;
|
|
20
|
+
let ai = str.indexOf(a);
|
|
21
|
+
let bi = str.indexOf(b, ai + 1);
|
|
22
|
+
let i = ai;
|
|
23
|
+
if (ai >= 0 && bi > 0) {
|
|
24
|
+
if (a === b) return [ai, bi];
|
|
25
|
+
begs = [];
|
|
26
|
+
left = str.length;
|
|
27
|
+
while (i >= 0 && !result) {
|
|
28
|
+
if (i === ai) {
|
|
29
|
+
begs.push(i);
|
|
30
|
+
ai = str.indexOf(a, i + 1);
|
|
31
|
+
} else if (begs.length === 1) {
|
|
32
|
+
const r = begs.pop();
|
|
33
|
+
if (r !== void 0) result = [r, bi];
|
|
34
|
+
} else {
|
|
35
|
+
beg = begs.pop();
|
|
36
|
+
if (beg !== void 0 && beg < left) {
|
|
37
|
+
left = beg;
|
|
38
|
+
right = bi;
|
|
39
|
+
}
|
|
40
|
+
bi = str.indexOf(b, i + 1);
|
|
41
|
+
}
|
|
42
|
+
i = ai < bi && ai >= 0 ? ai : bi;
|
|
43
|
+
}
|
|
44
|
+
if (begs.length && right !== void 0) result = [left, right];
|
|
45
|
+
}
|
|
46
|
+
return result;
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region ../../../node_modules/.pnpm/brace-expansion@5.0.12/node_modules/brace-expansion/dist/esm/index.js
|
|
50
|
+
const escSlash = "\0SLASH" + Math.random() + "\0";
|
|
51
|
+
const escOpen = "\0OPEN" + Math.random() + "\0";
|
|
52
|
+
const escClose = "\0CLOSE" + Math.random() + "\0";
|
|
53
|
+
const escComma = "\0COMMA" + Math.random() + "\0";
|
|
54
|
+
const escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
55
|
+
const escSlashPattern = new RegExp(escSlash, "g");
|
|
56
|
+
const escOpenPattern = new RegExp(escOpen, "g");
|
|
57
|
+
const escClosePattern = new RegExp(escClose, "g");
|
|
58
|
+
const escCommaPattern = new RegExp(escComma, "g");
|
|
59
|
+
const escPeriodPattern = new RegExp(escPeriod, "g");
|
|
60
|
+
const slashPattern = /\\\\/g;
|
|
61
|
+
const openPattern = /\\{/g;
|
|
62
|
+
const closePattern = /\\}/g;
|
|
63
|
+
const commaPattern = /\\,/g;
|
|
64
|
+
const periodPattern = /\\\./g;
|
|
65
|
+
const EXPANSION_MAX = 1e5;
|
|
66
|
+
const EXPANSION_MAX_LENGTH = 4e6;
|
|
67
|
+
const EXPANSION_MAX_DEPTH = 1e3;
|
|
68
|
+
const EXPANSION_MAX_REWRITES = 1e3;
|
|
69
|
+
function numeric(str) {
|
|
70
|
+
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
71
|
+
}
|
|
72
|
+
function escapeBraces(str) {
|
|
73
|
+
return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
|
|
74
|
+
}
|
|
75
|
+
function unescapeBraces(str) {
|
|
76
|
+
return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
|
|
77
|
+
}
|
|
78
|
+
function pushAll(target, items) {
|
|
79
|
+
for (let i = 0; i < items.length; i++) target.push(items[i]);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Basically just str.split(","), but handling cases
|
|
83
|
+
* where we have nested braced sections, which should be
|
|
84
|
+
* treated as individual members, like {a,{b,c},d}
|
|
85
|
+
*/
|
|
86
|
+
function parseCommaParts(str) {
|
|
87
|
+
const parts = [];
|
|
88
|
+
let carry = "";
|
|
89
|
+
for (;;) {
|
|
90
|
+
const m = balanced("{", "}", str);
|
|
91
|
+
if (!m) {
|
|
92
|
+
const tail = str.split(",");
|
|
93
|
+
tail[0] = carry + tail[0];
|
|
94
|
+
pushAll(parts, tail);
|
|
95
|
+
return parts;
|
|
96
|
+
}
|
|
97
|
+
const { pre, body, post } = m;
|
|
98
|
+
const p = pre.split(",");
|
|
99
|
+
p[0] = carry + p[0];
|
|
100
|
+
p[p.length - 1] += "{" + body + "}";
|
|
101
|
+
if (!post.length) {
|
|
102
|
+
pushAll(parts, p);
|
|
103
|
+
return parts;
|
|
104
|
+
}
|
|
105
|
+
carry = p.pop();
|
|
106
|
+
pushAll(parts, p);
|
|
107
|
+
str = post;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function expand(str, options = {}) {
|
|
111
|
+
if (!str) return [];
|
|
112
|
+
const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH, maxDepth = EXPANSION_MAX_DEPTH, maxRewrites = EXPANSION_MAX_REWRITES } = options;
|
|
113
|
+
if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
|
|
114
|
+
return expand_(escapeBraces(str), max, maxLength, maxDepth, 0, maxRewrites, true).map(unescapeBraces);
|
|
115
|
+
}
|
|
116
|
+
function embrace(str) {
|
|
117
|
+
return "{" + str + "}";
|
|
118
|
+
}
|
|
119
|
+
function isPadded(el) {
|
|
120
|
+
return /^-?0\d/.test(el);
|
|
121
|
+
}
|
|
122
|
+
function lte(i, y) {
|
|
123
|
+
return i <= y;
|
|
124
|
+
}
|
|
125
|
+
function gte(i, y) {
|
|
126
|
+
return i >= y;
|
|
127
|
+
}
|
|
128
|
+
function combine(acc, pre, values, max, maxLength, dropEmpties) {
|
|
129
|
+
const out = [];
|
|
130
|
+
let length = 0;
|
|
131
|
+
for (let a = 0; a < acc.length; a++) for (let v = 0; v < values.length; v++) {
|
|
132
|
+
if (out.length >= max) return out;
|
|
133
|
+
const expansion = acc[a] + pre + values[v];
|
|
134
|
+
if (dropEmpties && !expansion) continue;
|
|
135
|
+
if (length + expansion.length > maxLength) return out;
|
|
136
|
+
out.push(expansion);
|
|
137
|
+
length += expansion.length;
|
|
138
|
+
}
|
|
139
|
+
return out;
|
|
140
|
+
}
|
|
141
|
+
function expandSequence(body, isAlphaSequence, max, maxLength) {
|
|
142
|
+
const n = body.split(/\.\./);
|
|
143
|
+
const N = [];
|
|
144
|
+
/* c8 ignore start */
|
|
145
|
+
if (n[0] === void 0 || n[1] === void 0) return N;
|
|
146
|
+
/* c8 ignore stop */
|
|
147
|
+
const x = numeric(n[0]);
|
|
148
|
+
const y = numeric(n[1]);
|
|
149
|
+
const width = Math.max(n[0].length, n[1].length);
|
|
150
|
+
let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
151
|
+
let test = lte;
|
|
152
|
+
if (y < x) {
|
|
153
|
+
incr *= -1;
|
|
154
|
+
test = gte;
|
|
155
|
+
}
|
|
156
|
+
const pad = n.some(isPadded);
|
|
157
|
+
let length = 0;
|
|
158
|
+
for (let i = x; test(i, y) && N.length < max; i += incr) {
|
|
159
|
+
let c;
|
|
160
|
+
if (isAlphaSequence) {
|
|
161
|
+
c = String.fromCharCode(i);
|
|
162
|
+
if (c === "\\") c = "";
|
|
163
|
+
} else {
|
|
164
|
+
c = String(i);
|
|
165
|
+
if (pad) {
|
|
166
|
+
const need = width - c.length;
|
|
167
|
+
if (need > 0) {
|
|
168
|
+
const z = new Array(need + 1).join("0");
|
|
169
|
+
if (i < 0) c = "-" + z + c.slice(1);
|
|
170
|
+
else c = z + c;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
if (length + c.length > maxLength) break;
|
|
175
|
+
N.push(c);
|
|
176
|
+
length += c.length;
|
|
177
|
+
}
|
|
178
|
+
return N;
|
|
179
|
+
}
|
|
180
|
+
function expand_(str, max, maxLength, maxDepth, depth, maxRewrites, isTop) {
|
|
181
|
+
if (depth > maxDepth) return [str];
|
|
182
|
+
let acc = [""];
|
|
183
|
+
let rewrites = 0;
|
|
184
|
+
let dropEmpties = false;
|
|
185
|
+
let firstGroup = true;
|
|
186
|
+
for (;;) {
|
|
187
|
+
const m = balanced("{", "}", str);
|
|
188
|
+
if (!m) return combine(acc, str, [""], max, maxLength, dropEmpties);
|
|
189
|
+
const pre = m.pre;
|
|
190
|
+
if (/\$$/.test(pre)) {
|
|
191
|
+
acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
|
|
192
|
+
firstGroup = false;
|
|
193
|
+
if (!m.post.length) break;
|
|
194
|
+
str = m.post;
|
|
195
|
+
continue;
|
|
196
|
+
}
|
|
197
|
+
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
198
|
+
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
199
|
+
const isSequence = isNumericSequence || isAlphaSequence;
|
|
200
|
+
const isOptions = m.body.indexOf(",") >= 0;
|
|
201
|
+
if (!isSequence && !isOptions) {
|
|
202
|
+
if (rewrites < maxRewrites && m.post.match(/,(?!,).*\}/)) {
|
|
203
|
+
rewrites++;
|
|
204
|
+
str = m.pre + "{" + m.body + escClose + m.post;
|
|
205
|
+
isTop = true;
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
|
|
209
|
+
}
|
|
210
|
+
if (firstGroup) {
|
|
211
|
+
dropEmpties = isTop && !isSequence;
|
|
212
|
+
firstGroup = false;
|
|
213
|
+
}
|
|
214
|
+
let values;
|
|
215
|
+
if (isSequence) values = expandSequence(m.body, isAlphaSequence, max, maxLength);
|
|
216
|
+
else {
|
|
217
|
+
let n = parseCommaParts(m.body);
|
|
218
|
+
if (n.length === 1 && n[0] !== void 0) {
|
|
219
|
+
n = expand_(n[0], max, maxLength, maxDepth, depth + 1, maxRewrites, false).map(embrace);
|
|
220
|
+
/* c8 ignore start */
|
|
221
|
+
if (n.length === 1) {
|
|
222
|
+
acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
|
|
223
|
+
if (!m.post.length) break;
|
|
224
|
+
str = m.post;
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
let dropsEmpties = dropEmpties && !m.post.length && !pre;
|
|
229
|
+
for (let d = 0; dropsEmpties && d < acc.length; d++) if (acc[d]) dropsEmpties = false;
|
|
230
|
+
values = [];
|
|
231
|
+
let valuesLength = 0;
|
|
232
|
+
outer: for (let j = 0; j < n.length; j++) {
|
|
233
|
+
const expanded = expand_(n[j], max, maxLength, maxDepth, depth + 1, maxRewrites, false);
|
|
234
|
+
for (let k = 0; k < expanded.length; k++) {
|
|
235
|
+
const v = expanded[k];
|
|
236
|
+
if (dropsEmpties && !v) continue;
|
|
237
|
+
if (values.length >= max || valuesLength + v.length > maxLength) break outer;
|
|
238
|
+
values.push(v);
|
|
239
|
+
valuesLength += v.length;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
|
|
244
|
+
if (!m.post.length) break;
|
|
245
|
+
str = m.post;
|
|
246
|
+
}
|
|
247
|
+
return acc;
|
|
248
|
+
}
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region ../../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
251
|
+
const MAX_PATTERN_LENGTH = 65536;
|
|
252
|
+
const assertValidPattern = (pattern) => {
|
|
253
|
+
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
254
|
+
if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
|
|
255
|
+
};
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region ../../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
258
|
+
const posixClasses = {
|
|
259
|
+
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
260
|
+
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
261
|
+
"[:ascii:]": ["\\x00-\\x7f", false],
|
|
262
|
+
"[:blank:]": ["\\p{Zs}\\t", true],
|
|
263
|
+
"[:cntrl:]": ["\\p{Cc}", true],
|
|
264
|
+
"[:digit:]": ["\\p{Nd}", true],
|
|
265
|
+
"[:graph:]": [
|
|
266
|
+
"\\p{Z}\\p{C}",
|
|
267
|
+
true,
|
|
268
|
+
true
|
|
269
|
+
],
|
|
270
|
+
"[:lower:]": ["\\p{Ll}", true],
|
|
271
|
+
"[:print:]": ["\\p{C}", true],
|
|
272
|
+
"[:punct:]": ["\\p{P}", true],
|
|
273
|
+
"[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
|
|
274
|
+
"[:upper:]": ["\\p{Lu}", true],
|
|
275
|
+
"[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
|
|
276
|
+
"[:xdigit:]": ["A-Fa-f0-9", false]
|
|
277
|
+
};
|
|
278
|
+
const braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
|
|
279
|
+
const regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
280
|
+
const rangesToString = (ranges) => ranges.join("");
|
|
281
|
+
const parseClass = (glob, position) => {
|
|
282
|
+
const pos = position;
|
|
283
|
+
/* c8 ignore start */
|
|
284
|
+
if (glob.charAt(pos) !== "[") throw new Error("not in a brace expression");
|
|
285
|
+
/* c8 ignore stop */
|
|
286
|
+
const ranges = [];
|
|
287
|
+
const negs = [];
|
|
288
|
+
let i = pos + 1;
|
|
289
|
+
let sawStart = false;
|
|
290
|
+
let uflag = false;
|
|
291
|
+
let escaping = false;
|
|
292
|
+
let negate = false;
|
|
293
|
+
let endPos = pos;
|
|
294
|
+
let rangeStart = "";
|
|
295
|
+
WHILE: while (i < glob.length) {
|
|
296
|
+
const c = glob.charAt(i);
|
|
297
|
+
if ((c === "!" || c === "^") && i === pos + 1) {
|
|
298
|
+
negate = true;
|
|
299
|
+
i++;
|
|
300
|
+
continue;
|
|
301
|
+
}
|
|
302
|
+
if (c === "]" && sawStart && !escaping) {
|
|
303
|
+
endPos = i + 1;
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
sawStart = true;
|
|
307
|
+
if (c === "\\") {
|
|
308
|
+
if (!escaping) {
|
|
309
|
+
escaping = true;
|
|
310
|
+
i++;
|
|
311
|
+
continue;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
if (c === "[" && !escaping) {
|
|
315
|
+
for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) if (glob.startsWith(cls, i)) {
|
|
316
|
+
if (rangeStart) return [
|
|
317
|
+
"$.",
|
|
318
|
+
false,
|
|
319
|
+
glob.length - pos,
|
|
320
|
+
true
|
|
321
|
+
];
|
|
322
|
+
i += cls.length;
|
|
323
|
+
if (neg) negs.push(unip);
|
|
324
|
+
else ranges.push(unip);
|
|
325
|
+
uflag = uflag || u;
|
|
326
|
+
continue WHILE;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
escaping = false;
|
|
330
|
+
if (rangeStart) {
|
|
331
|
+
if (c > rangeStart) ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
|
|
332
|
+
else if (c === rangeStart) ranges.push(braceEscape(c));
|
|
333
|
+
rangeStart = "";
|
|
334
|
+
i++;
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
if (glob.startsWith("-]", i + 1)) {
|
|
338
|
+
ranges.push(braceEscape(c + "-"));
|
|
339
|
+
i += 2;
|
|
340
|
+
continue;
|
|
341
|
+
}
|
|
342
|
+
if (glob.startsWith("-", i + 1)) {
|
|
343
|
+
rangeStart = c;
|
|
344
|
+
i += 2;
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
347
|
+
ranges.push(braceEscape(c));
|
|
348
|
+
i++;
|
|
349
|
+
}
|
|
350
|
+
if (endPos < i) return [
|
|
351
|
+
"",
|
|
352
|
+
false,
|
|
353
|
+
0,
|
|
354
|
+
false
|
|
355
|
+
];
|
|
356
|
+
if (!ranges.length && !negs.length) return [
|
|
357
|
+
"$.",
|
|
358
|
+
false,
|
|
359
|
+
glob.length - pos,
|
|
360
|
+
true
|
|
361
|
+
];
|
|
362
|
+
if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
|
|
363
|
+
const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
|
|
364
|
+
return [
|
|
365
|
+
regexpEscape(r),
|
|
366
|
+
false,
|
|
367
|
+
endPos - pos,
|
|
368
|
+
false
|
|
369
|
+
];
|
|
370
|
+
}
|
|
371
|
+
const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
|
|
372
|
+
const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
|
|
373
|
+
return [
|
|
374
|
+
ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs,
|
|
375
|
+
uflag,
|
|
376
|
+
endPos - pos,
|
|
377
|
+
true
|
|
378
|
+
];
|
|
379
|
+
};
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region ../../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
|
|
382
|
+
/**
|
|
383
|
+
* Un-escape a string that has been escaped with {@link escape}.
|
|
384
|
+
*
|
|
385
|
+
* If the {@link MinimatchOptions.windowsPathsNoEscape} option is used, then
|
|
386
|
+
* square-bracket escapes are removed, but not backslash escapes.
|
|
387
|
+
*
|
|
388
|
+
* For example, it will turn the string `'[*]'` into `*`, but it will not
|
|
389
|
+
* turn `'\\*'` into `'*'`, because `\` is a path separator in
|
|
390
|
+
* `windowsPathsNoEscape` mode.
|
|
391
|
+
*
|
|
392
|
+
* When `windowsPathsNoEscape` is not set, then both square-bracket escapes and
|
|
393
|
+
* backslash escapes are removed.
|
|
394
|
+
*
|
|
395
|
+
* Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
|
|
396
|
+
* or unescaped.
|
|
397
|
+
*
|
|
398
|
+
* When `magicalBraces` is not set, escapes of braces (`{` and `}`) will not be
|
|
399
|
+
* unescaped.
|
|
400
|
+
*/
|
|
401
|
+
const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
|
|
402
|
+
if (magicalBraces) return windowsPathsNoEscape ? s.replace(/\[([^/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1");
|
|
403
|
+
return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
|
|
404
|
+
};
|
|
405
|
+
//#endregion
|
|
406
|
+
//#region ../../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
|
|
407
|
+
var _a;
|
|
408
|
+
const types = /* @__PURE__ */ new Set([
|
|
409
|
+
"!",
|
|
410
|
+
"?",
|
|
411
|
+
"+",
|
|
412
|
+
"*",
|
|
413
|
+
"@"
|
|
414
|
+
]);
|
|
415
|
+
const isExtglobType = (c) => types.has(c);
|
|
416
|
+
const isExtglobAST = (c) => isExtglobType(c.type);
|
|
417
|
+
const adoptionMap = /* @__PURE__ */ new Map([
|
|
418
|
+
["!", ["@"]],
|
|
419
|
+
["?", ["?", "@"]],
|
|
420
|
+
["@", ["@"]],
|
|
421
|
+
["*", [
|
|
422
|
+
"*",
|
|
423
|
+
"+",
|
|
424
|
+
"?",
|
|
425
|
+
"@"
|
|
426
|
+
]],
|
|
427
|
+
["+", ["+", "@"]]
|
|
428
|
+
]);
|
|
429
|
+
const adoptionWithSpaceMap = /* @__PURE__ */ new Map([
|
|
430
|
+
["!", ["?"]],
|
|
431
|
+
["@", ["?"]],
|
|
432
|
+
["+", ["?", "*"]]
|
|
433
|
+
]);
|
|
434
|
+
const adoptionAnyMap = /* @__PURE__ */ new Map([
|
|
435
|
+
["!", ["?", "@"]],
|
|
436
|
+
["?", ["?", "@"]],
|
|
437
|
+
["@", ["?", "@"]],
|
|
438
|
+
["*", [
|
|
439
|
+
"*",
|
|
440
|
+
"+",
|
|
441
|
+
"?",
|
|
442
|
+
"@"
|
|
443
|
+
]],
|
|
444
|
+
["+", [
|
|
445
|
+
"+",
|
|
446
|
+
"@",
|
|
447
|
+
"?",
|
|
448
|
+
"*"
|
|
449
|
+
]]
|
|
450
|
+
]);
|
|
451
|
+
const usurpMap = /* @__PURE__ */ new Map([
|
|
452
|
+
["!", /* @__PURE__ */ new Map([["!", "@"]])],
|
|
453
|
+
["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
|
|
454
|
+
["@", /* @__PURE__ */ new Map([
|
|
455
|
+
["!", "!"],
|
|
456
|
+
["?", "?"],
|
|
457
|
+
["@", "@"],
|
|
458
|
+
["*", "*"],
|
|
459
|
+
["+", "+"]
|
|
460
|
+
])],
|
|
461
|
+
["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
|
|
462
|
+
]);
|
|
463
|
+
const startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
464
|
+
const startNoDot = "(?!\\.)";
|
|
465
|
+
const addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
466
|
+
const justDots = /* @__PURE__ */ new Set(["..", "."]);
|
|
467
|
+
const reSpecials = /* @__PURE__ */ new Set("().*{}+?[]^$\\!");
|
|
468
|
+
const regExpEscape$1 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
469
|
+
const qmark = "[^/]";
|
|
470
|
+
const star$1 = "[^/]*?";
|
|
471
|
+
const starNoEmpty = "[^/]+?";
|
|
472
|
+
let ID = 0;
|
|
473
|
+
var AST = class {
|
|
474
|
+
type;
|
|
475
|
+
#root;
|
|
476
|
+
#hasMagic;
|
|
477
|
+
#uflag = false;
|
|
478
|
+
#parts = [];
|
|
479
|
+
#parent;
|
|
480
|
+
#parentIndex;
|
|
481
|
+
#negs;
|
|
482
|
+
#filledNegs = false;
|
|
483
|
+
#options;
|
|
484
|
+
#toString;
|
|
485
|
+
#emptyExt = false;
|
|
486
|
+
id = ++ID;
|
|
487
|
+
get depth() {
|
|
488
|
+
return (this.#parent?.depth ?? -1) + 1;
|
|
489
|
+
}
|
|
490
|
+
[Symbol.for("nodejs.util.inspect.custom")]() {
|
|
491
|
+
return {
|
|
492
|
+
"@@type": "AST",
|
|
493
|
+
id: this.id,
|
|
494
|
+
type: this.type,
|
|
495
|
+
root: this.#root.id,
|
|
496
|
+
parent: this.#parent?.id,
|
|
497
|
+
depth: this.depth,
|
|
498
|
+
partsLength: this.#parts.length,
|
|
499
|
+
parts: this.#parts
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
constructor(type, parent, options = {}) {
|
|
503
|
+
this.type = type;
|
|
504
|
+
if (type) this.#hasMagic = true;
|
|
505
|
+
this.#parent = parent;
|
|
506
|
+
this.#root = this.#parent ? this.#parent.#root : this;
|
|
507
|
+
this.#options = this.#root === this ? options : this.#root.#options;
|
|
508
|
+
this.#negs = this.#root === this ? [] : this.#root.#negs;
|
|
509
|
+
if (type === "!" && !this.#root.#filledNegs) this.#negs.push(this);
|
|
510
|
+
this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
|
|
511
|
+
}
|
|
512
|
+
get hasMagic() {
|
|
513
|
+
/* c8 ignore start */
|
|
514
|
+
if (this.#hasMagic !== void 0) return this.#hasMagic;
|
|
515
|
+
/* c8 ignore stop */
|
|
516
|
+
for (const p of this.#parts) {
|
|
517
|
+
if (typeof p === "string") continue;
|
|
518
|
+
if (p.type || p.hasMagic) return this.#hasMagic = true;
|
|
519
|
+
}
|
|
520
|
+
return this.#hasMagic;
|
|
521
|
+
}
|
|
522
|
+
toString() {
|
|
523
|
+
return this.#toString !== void 0 ? this.#toString : !this.type ? this.#toString = this.#parts.map((p) => String(p)).join("") : this.#toString = this.type + "(" + this.#parts.map((p) => String(p)).join("|") + ")";
|
|
524
|
+
}
|
|
525
|
+
#fillNegs() {
|
|
526
|
+
/* c8 ignore start */
|
|
527
|
+
if (this !== this.#root) throw new Error("should only call on root");
|
|
528
|
+
if (this.#filledNegs) return this;
|
|
529
|
+
/* c8 ignore stop */
|
|
530
|
+
this.toString();
|
|
531
|
+
this.#filledNegs = true;
|
|
532
|
+
let n;
|
|
533
|
+
while (n = this.#negs.pop()) {
|
|
534
|
+
if (n.type !== "!") continue;
|
|
535
|
+
let p = n;
|
|
536
|
+
let pp = p.#parent;
|
|
537
|
+
while (pp) {
|
|
538
|
+
for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) for (const part of n.#parts) {
|
|
539
|
+
/* c8 ignore start */
|
|
540
|
+
if (typeof part === "string") throw new Error("string part in extglob AST??");
|
|
541
|
+
/* c8 ignore stop */
|
|
542
|
+
part.copyIn(pp.#parts[i]);
|
|
543
|
+
}
|
|
544
|
+
p = pp;
|
|
545
|
+
pp = p.#parent;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
return this;
|
|
549
|
+
}
|
|
550
|
+
push(...parts) {
|
|
551
|
+
for (const p of parts) {
|
|
552
|
+
if (p === "") continue;
|
|
553
|
+
/* c8 ignore start */
|
|
554
|
+
if (typeof p !== "string" && !(p instanceof _a && p.#parent === this)) throw new Error("invalid part: " + p);
|
|
555
|
+
/* c8 ignore stop */
|
|
556
|
+
this.#parts.push(p);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
toJSON() {
|
|
560
|
+
const ret = this.type === null ? this.#parts.slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...this.#parts.map((p) => p.toJSON())];
|
|
561
|
+
if (this.isStart() && !this.type) ret.unshift([]);
|
|
562
|
+
if (this.isEnd() && (this === this.#root || this.#root.#filledNegs && this.#parent?.type === "!")) ret.push({});
|
|
563
|
+
return ret;
|
|
564
|
+
}
|
|
565
|
+
isStart() {
|
|
566
|
+
if (this.#root === this) return true;
|
|
567
|
+
if (!this.#parent?.isStart()) return false;
|
|
568
|
+
if (this.#parentIndex === 0) return true;
|
|
569
|
+
const p = this.#parent;
|
|
570
|
+
for (let i = 0; i < this.#parentIndex; i++) {
|
|
571
|
+
const pp = p.#parts[i];
|
|
572
|
+
if (!(pp instanceof _a && pp.type === "!")) return false;
|
|
573
|
+
}
|
|
574
|
+
return true;
|
|
575
|
+
}
|
|
576
|
+
isEnd() {
|
|
577
|
+
if (this.#root === this) return true;
|
|
578
|
+
if (this.#parent?.type === "!") return true;
|
|
579
|
+
if (!this.#parent?.isEnd()) return false;
|
|
580
|
+
if (!this.type) return this.#parent?.isEnd();
|
|
581
|
+
/* c8 ignore start */
|
|
582
|
+
const pl = this.#parent ? this.#parent.#parts.length : 0;
|
|
583
|
+
/* c8 ignore stop */
|
|
584
|
+
return this.#parentIndex === pl - 1;
|
|
585
|
+
}
|
|
586
|
+
copyIn(part) {
|
|
587
|
+
if (typeof part === "string") this.push(part);
|
|
588
|
+
else this.push(part.clone(this));
|
|
589
|
+
}
|
|
590
|
+
clone(parent) {
|
|
591
|
+
const c = new _a(this.type, parent);
|
|
592
|
+
for (const p of this.#parts) c.copyIn(p);
|
|
593
|
+
return c;
|
|
594
|
+
}
|
|
595
|
+
static #parseAST(str, ast, pos, opt, extDepth) {
|
|
596
|
+
const maxDepth = opt.maxExtglobRecursion ?? 2;
|
|
597
|
+
let escaping = false;
|
|
598
|
+
let inBrace = false;
|
|
599
|
+
let braceStart = -1;
|
|
600
|
+
let braceNeg = false;
|
|
601
|
+
if (ast.type === null) {
|
|
602
|
+
let i = pos;
|
|
603
|
+
let acc = "";
|
|
604
|
+
while (i < str.length) {
|
|
605
|
+
const c = str.charAt(i++);
|
|
606
|
+
if (escaping || c === "\\") {
|
|
607
|
+
escaping = !escaping;
|
|
608
|
+
acc += c;
|
|
609
|
+
continue;
|
|
610
|
+
}
|
|
611
|
+
if (inBrace) {
|
|
612
|
+
if (i === braceStart + 1) {
|
|
613
|
+
if (c === "^" || c === "!") braceNeg = true;
|
|
614
|
+
} else if (c === "]" && !(i === braceStart + 2 && braceNeg)) inBrace = false;
|
|
615
|
+
acc += c;
|
|
616
|
+
continue;
|
|
617
|
+
} else if (c === "[") {
|
|
618
|
+
inBrace = true;
|
|
619
|
+
braceStart = i;
|
|
620
|
+
braceNeg = false;
|
|
621
|
+
acc += c;
|
|
622
|
+
continue;
|
|
623
|
+
}
|
|
624
|
+
if (!opt.noext && isExtglobType(c) && str.charAt(i) === "(" && extDepth <= maxDepth) {
|
|
625
|
+
ast.push(acc);
|
|
626
|
+
acc = "";
|
|
627
|
+
const ext = new _a(c, ast);
|
|
628
|
+
i = _a.#parseAST(str, ext, i, opt, extDepth + 1);
|
|
629
|
+
ast.push(ext);
|
|
630
|
+
continue;
|
|
631
|
+
}
|
|
632
|
+
acc += c;
|
|
633
|
+
}
|
|
634
|
+
ast.push(acc);
|
|
635
|
+
return i;
|
|
636
|
+
}
|
|
637
|
+
let i = pos + 1;
|
|
638
|
+
let part = new _a(null, ast);
|
|
639
|
+
const parts = [];
|
|
640
|
+
let acc = "";
|
|
641
|
+
while (i < str.length) {
|
|
642
|
+
const c = str.charAt(i++);
|
|
643
|
+
if (escaping || c === "\\") {
|
|
644
|
+
escaping = !escaping;
|
|
645
|
+
acc += c;
|
|
646
|
+
continue;
|
|
647
|
+
}
|
|
648
|
+
if (inBrace) {
|
|
649
|
+
if (i === braceStart + 1) {
|
|
650
|
+
if (c === "^" || c === "!") braceNeg = true;
|
|
651
|
+
} else if (c === "]" && !(i === braceStart + 2 && braceNeg)) inBrace = false;
|
|
652
|
+
acc += c;
|
|
653
|
+
continue;
|
|
654
|
+
} else if (c === "[") {
|
|
655
|
+
inBrace = true;
|
|
656
|
+
braceStart = i;
|
|
657
|
+
braceNeg = false;
|
|
658
|
+
acc += c;
|
|
659
|
+
continue;
|
|
660
|
+
}
|
|
661
|
+
/* c8 ignore stop */
|
|
662
|
+
if (!opt.noext && isExtglobType(c) && str.charAt(i) === "(" && (extDepth <= maxDepth || ast && ast.#canAdoptType(c))) {
|
|
663
|
+
const depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1;
|
|
664
|
+
part.push(acc);
|
|
665
|
+
acc = "";
|
|
666
|
+
const ext = new _a(c, part);
|
|
667
|
+
part.push(ext);
|
|
668
|
+
i = _a.#parseAST(str, ext, i, opt, extDepth + depthAdd);
|
|
669
|
+
continue;
|
|
670
|
+
}
|
|
671
|
+
if (c === "|") {
|
|
672
|
+
part.push(acc);
|
|
673
|
+
acc = "";
|
|
674
|
+
parts.push(part);
|
|
675
|
+
part = new _a(null, ast);
|
|
676
|
+
continue;
|
|
677
|
+
}
|
|
678
|
+
if (c === ")") {
|
|
679
|
+
if (acc === "" && ast.#parts.length === 0) ast.#emptyExt = true;
|
|
680
|
+
part.push(acc);
|
|
681
|
+
acc = "";
|
|
682
|
+
ast.push(...parts, part);
|
|
683
|
+
return i;
|
|
684
|
+
}
|
|
685
|
+
acc += c;
|
|
686
|
+
}
|
|
687
|
+
ast.type = null;
|
|
688
|
+
ast.#hasMagic = void 0;
|
|
689
|
+
ast.#parts = [str.substring(pos - 1)];
|
|
690
|
+
return i;
|
|
691
|
+
}
|
|
692
|
+
#canAdoptWithSpace(child) {
|
|
693
|
+
return this.#canAdopt(child, adoptionWithSpaceMap);
|
|
694
|
+
}
|
|
695
|
+
#canAdopt(child, map = adoptionMap) {
|
|
696
|
+
if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null) return false;
|
|
697
|
+
const gc = child.#parts[0];
|
|
698
|
+
if (!gc || typeof gc !== "object" || gc.type === null) return false;
|
|
699
|
+
return this.#canAdoptType(gc.type, map);
|
|
700
|
+
}
|
|
701
|
+
#canAdoptType(c, map = adoptionAnyMap) {
|
|
702
|
+
return !!map.get(this.type)?.includes(c);
|
|
703
|
+
}
|
|
704
|
+
#adoptWithSpace(child, index) {
|
|
705
|
+
const gc = child.#parts[0];
|
|
706
|
+
const blank = new _a(null, gc, this.options);
|
|
707
|
+
blank.#parts.push("");
|
|
708
|
+
gc.push(blank);
|
|
709
|
+
this.#adopt(child, index);
|
|
710
|
+
}
|
|
711
|
+
#adopt(child, index) {
|
|
712
|
+
const gc = child.#parts[0];
|
|
713
|
+
this.#parts.splice(index, 1, ...gc.#parts);
|
|
714
|
+
for (const p of gc.#parts) if (typeof p === "object") p.#parent = this;
|
|
715
|
+
this.#toString = void 0;
|
|
716
|
+
}
|
|
717
|
+
#canUsurpType(c) {
|
|
718
|
+
return !!usurpMap.get(this.type)?.has(c);
|
|
719
|
+
}
|
|
720
|
+
#canUsurp(child) {
|
|
721
|
+
if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null || this.#parts.length !== 1) return false;
|
|
722
|
+
const gc = child.#parts[0];
|
|
723
|
+
if (!gc || typeof gc !== "object" || gc.type === null) return false;
|
|
724
|
+
return this.#canUsurpType(gc.type);
|
|
725
|
+
}
|
|
726
|
+
#usurp(child) {
|
|
727
|
+
const m = usurpMap.get(this.type);
|
|
728
|
+
const gc = child.#parts[0];
|
|
729
|
+
const nt = m?.get(gc.type);
|
|
730
|
+
/* c8 ignore start - impossible */
|
|
731
|
+
if (!nt) return false;
|
|
732
|
+
/* c8 ignore stop */
|
|
733
|
+
this.#parts = gc.#parts;
|
|
734
|
+
for (const p of this.#parts) if (typeof p === "object") p.#parent = this;
|
|
735
|
+
this.type = nt;
|
|
736
|
+
this.#toString = void 0;
|
|
737
|
+
this.#emptyExt = false;
|
|
738
|
+
}
|
|
739
|
+
static fromGlob(pattern, options = {}) {
|
|
740
|
+
const ast = new _a(null, void 0, options);
|
|
741
|
+
_a.#parseAST(pattern, ast, 0, options, 0);
|
|
742
|
+
return ast;
|
|
743
|
+
}
|
|
744
|
+
toMMPattern() {
|
|
745
|
+
/* c8 ignore start */
|
|
746
|
+
if (this !== this.#root) return this.#root.toMMPattern();
|
|
747
|
+
/* c8 ignore stop */
|
|
748
|
+
const glob = this.toString();
|
|
749
|
+
const [re, body, hasMagic, uflag] = this.toRegExpSource();
|
|
750
|
+
if (!(hasMagic || this.#hasMagic || this.#options.nocase && !this.#options.nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase())) return body;
|
|
751
|
+
const flags = (this.#options.nocase ? "i" : "") + (uflag ? "u" : "");
|
|
752
|
+
return Object.assign(new RegExp(`^${re}$`, flags), {
|
|
753
|
+
_src: re,
|
|
754
|
+
_glob: glob
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
get options() {
|
|
758
|
+
return this.#options;
|
|
759
|
+
}
|
|
760
|
+
toRegExpSource(allowDot) {
|
|
761
|
+
const dot = allowDot ?? !!this.#options.dot;
|
|
762
|
+
if (this.#root === this) {
|
|
763
|
+
this.#flatten();
|
|
764
|
+
this.#fillNegs();
|
|
765
|
+
}
|
|
766
|
+
if (!isExtglobAST(this)) {
|
|
767
|
+
const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string");
|
|
768
|
+
const src = this.#parts.map((p) => {
|
|
769
|
+
const [re, _, hasMagic, uflag] = typeof p === "string" ? _a.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
|
|
770
|
+
this.#hasMagic = this.#hasMagic || hasMagic;
|
|
771
|
+
this.#uflag = this.#uflag || uflag;
|
|
772
|
+
return re;
|
|
773
|
+
}).join("");
|
|
774
|
+
let start = "";
|
|
775
|
+
if (this.isStart()) {
|
|
776
|
+
if (typeof this.#parts[0] === "string") {
|
|
777
|
+
if (!(this.#parts.length === 1 && justDots.has(this.#parts[0]))) {
|
|
778
|
+
const aps = addPatternStart;
|
|
779
|
+
const needNoTrav = dot && aps.has(src.charAt(0)) || src.startsWith("\\.") && aps.has(src.charAt(2)) || src.startsWith("\\.\\.") && aps.has(src.charAt(4));
|
|
780
|
+
const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
|
|
781
|
+
start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
let end = "";
|
|
786
|
+
if (this.isEnd() && this.#root.#filledNegs && this.#parent?.type === "!") end = "(?:$|\\/)";
|
|
787
|
+
return [
|
|
788
|
+
start + src + end,
|
|
789
|
+
unescape(src),
|
|
790
|
+
this.#hasMagic = !!this.#hasMagic,
|
|
791
|
+
this.#uflag
|
|
792
|
+
];
|
|
793
|
+
}
|
|
794
|
+
const repeated = this.type === "*" || this.type === "+";
|
|
795
|
+
const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
|
|
796
|
+
let body = this.#partsToRegExp(dot);
|
|
797
|
+
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
798
|
+
const s = this.toString();
|
|
799
|
+
const me = this;
|
|
800
|
+
me.#parts = [s];
|
|
801
|
+
me.type = null;
|
|
802
|
+
me.#hasMagic = void 0;
|
|
803
|
+
return [
|
|
804
|
+
s,
|
|
805
|
+
unescape(this.toString()),
|
|
806
|
+
false,
|
|
807
|
+
false
|
|
808
|
+
];
|
|
809
|
+
}
|
|
810
|
+
let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : this.#partsToRegExp(true);
|
|
811
|
+
if (bodyDotAllowed === body) bodyDotAllowed = "";
|
|
812
|
+
if (bodyDotAllowed) body = `(?:${body})(?:${bodyDotAllowed})*?`;
|
|
813
|
+
let final = "";
|
|
814
|
+
if (this.type === "!" && this.#emptyExt) final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
|
|
815
|
+
else {
|
|
816
|
+
const close = this.type === "!" ? "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + "[^/]*?)" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
|
|
817
|
+
final = start + body + close;
|
|
818
|
+
}
|
|
819
|
+
return [
|
|
820
|
+
final,
|
|
821
|
+
unescape(body),
|
|
822
|
+
this.#hasMagic = !!this.#hasMagic,
|
|
823
|
+
this.#uflag
|
|
824
|
+
];
|
|
825
|
+
}
|
|
826
|
+
#flatten() {
|
|
827
|
+
if (!isExtglobAST(this)) {
|
|
828
|
+
for (const p of this.#parts) if (typeof p === "object") p.#flatten();
|
|
829
|
+
} else {
|
|
830
|
+
let iterations = 0;
|
|
831
|
+
let done = false;
|
|
832
|
+
do {
|
|
833
|
+
done = true;
|
|
834
|
+
for (let i = 0; i < this.#parts.length; i++) {
|
|
835
|
+
const c = this.#parts[i];
|
|
836
|
+
if (typeof c === "object") {
|
|
837
|
+
c.#flatten();
|
|
838
|
+
if (this.#canAdopt(c)) {
|
|
839
|
+
done = false;
|
|
840
|
+
this.#adopt(c, i);
|
|
841
|
+
} else if (this.#canAdoptWithSpace(c)) {
|
|
842
|
+
done = false;
|
|
843
|
+
this.#adoptWithSpace(c, i);
|
|
844
|
+
} else if (this.#canUsurp(c)) {
|
|
845
|
+
done = false;
|
|
846
|
+
this.#usurp(c);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
} while (!done && ++iterations < 10);
|
|
851
|
+
}
|
|
852
|
+
this.#toString = void 0;
|
|
853
|
+
}
|
|
854
|
+
#partsToRegExp(dot) {
|
|
855
|
+
return this.#parts.map((p) => {
|
|
856
|
+
/* c8 ignore start */
|
|
857
|
+
if (typeof p === "string") throw new Error("string type in extglob ast??");
|
|
858
|
+
/* c8 ignore stop */
|
|
859
|
+
const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
|
|
860
|
+
this.#uflag = this.#uflag || uflag;
|
|
861
|
+
return re;
|
|
862
|
+
}).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
|
|
863
|
+
}
|
|
864
|
+
static #parseGlob(glob, hasMagic, noEmpty = false) {
|
|
865
|
+
let escaping = false;
|
|
866
|
+
let re = "";
|
|
867
|
+
let uflag = false;
|
|
868
|
+
let inStar = false;
|
|
869
|
+
for (let i = 0; i < glob.length; i++) {
|
|
870
|
+
const c = glob.charAt(i);
|
|
871
|
+
if (escaping) {
|
|
872
|
+
escaping = false;
|
|
873
|
+
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
874
|
+
continue;
|
|
875
|
+
}
|
|
876
|
+
if (c === "*") {
|
|
877
|
+
if (inStar) continue;
|
|
878
|
+
inStar = true;
|
|
879
|
+
re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star$1;
|
|
880
|
+
hasMagic = true;
|
|
881
|
+
continue;
|
|
882
|
+
} else inStar = false;
|
|
883
|
+
if (c === "\\") {
|
|
884
|
+
if (i === glob.length - 1) re += "\\\\";
|
|
885
|
+
else escaping = true;
|
|
886
|
+
continue;
|
|
887
|
+
}
|
|
888
|
+
if (c === "[") {
|
|
889
|
+
const [src, needUflag, consumed, magic] = parseClass(glob, i);
|
|
890
|
+
if (consumed) {
|
|
891
|
+
re += src;
|
|
892
|
+
uflag = uflag || needUflag;
|
|
893
|
+
i += consumed - 1;
|
|
894
|
+
hasMagic = hasMagic || magic;
|
|
895
|
+
continue;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
if (c === "?") {
|
|
899
|
+
re += qmark;
|
|
900
|
+
hasMagic = true;
|
|
901
|
+
continue;
|
|
902
|
+
}
|
|
903
|
+
re += regExpEscape$1(c);
|
|
904
|
+
}
|
|
905
|
+
return [
|
|
906
|
+
re,
|
|
907
|
+
unescape(glob),
|
|
908
|
+
!!hasMagic,
|
|
909
|
+
uflag
|
|
910
|
+
];
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
|
+
_a = AST;
|
|
914
|
+
//#endregion
|
|
915
|
+
//#region ../../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
|
|
916
|
+
/**
|
|
917
|
+
* Escape all magic characters in a glob pattern.
|
|
918
|
+
*
|
|
919
|
+
* If the {@link MinimatchOptions.windowsPathsNoEscape}
|
|
920
|
+
* option is used, then characters are escaped by wrapping in `[]`, because
|
|
921
|
+
* a magic character wrapped in a character class can only be satisfied by
|
|
922
|
+
* that exact character. In this mode, `\` is _not_ escaped, because it is
|
|
923
|
+
* not interpreted as a magic character, but instead as a path separator.
|
|
924
|
+
*
|
|
925
|
+
* If the {@link MinimatchOptions.magicalBraces} option is used,
|
|
926
|
+
* then braces (`{` and `}`) will be escaped.
|
|
927
|
+
*/
|
|
928
|
+
const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
|
|
929
|
+
if (magicalBraces) return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
|
|
930
|
+
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
931
|
+
};
|
|
932
|
+
//#endregion
|
|
933
|
+
//#region ../../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
|
|
934
|
+
const minimatch = (p, pattern, options = {}) => {
|
|
935
|
+
assertValidPattern(pattern);
|
|
936
|
+
if (!options.nocomment && pattern.charAt(0) === "#") return false;
|
|
937
|
+
return new Minimatch(pattern, options).match(p);
|
|
938
|
+
};
|
|
939
|
+
const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
|
|
940
|
+
const starDotExtTest = (ext) => (f) => !f.startsWith(".") && f.endsWith(ext);
|
|
941
|
+
const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
|
|
942
|
+
const starDotExtTestNocase = (ext) => {
|
|
943
|
+
ext = ext.toLowerCase();
|
|
944
|
+
return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext);
|
|
945
|
+
};
|
|
946
|
+
const starDotExtTestNocaseDot = (ext) => {
|
|
947
|
+
ext = ext.toLowerCase();
|
|
948
|
+
return (f) => f.toLowerCase().endsWith(ext);
|
|
949
|
+
};
|
|
950
|
+
const starDotStarRE = /^\*+\.\*+$/;
|
|
951
|
+
const starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
|
|
952
|
+
const starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
|
|
953
|
+
const dotStarRE = /^\.\*+$/;
|
|
954
|
+
const dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
|
|
955
|
+
const starRE = /^\*+$/;
|
|
956
|
+
const starTest = (f) => f.length !== 0 && !f.startsWith(".");
|
|
957
|
+
const starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
|
|
958
|
+
const qmarksRE = /^\?+([^+@!?*[(]*)?$/;
|
|
959
|
+
const qmarksTestNocase = ([$0, ext = ""]) => {
|
|
960
|
+
const noext = qmarksTestNoExt([$0]);
|
|
961
|
+
if (!ext) return noext;
|
|
962
|
+
ext = ext.toLowerCase();
|
|
963
|
+
return (f) => noext(f) && f.toLowerCase().endsWith(ext);
|
|
964
|
+
};
|
|
965
|
+
const qmarksTestNocaseDot = ([$0, ext = ""]) => {
|
|
966
|
+
const noext = qmarksTestNoExtDot([$0]);
|
|
967
|
+
if (!ext) return noext;
|
|
968
|
+
ext = ext.toLowerCase();
|
|
969
|
+
return (f) => noext(f) && f.toLowerCase().endsWith(ext);
|
|
970
|
+
};
|
|
971
|
+
const qmarksTestDot = ([$0, ext = ""]) => {
|
|
972
|
+
const noext = qmarksTestNoExtDot([$0]);
|
|
973
|
+
return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
|
|
974
|
+
};
|
|
975
|
+
const qmarksTest = ([$0, ext = ""]) => {
|
|
976
|
+
const noext = qmarksTestNoExt([$0]);
|
|
977
|
+
return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
|
|
978
|
+
};
|
|
979
|
+
const qmarksTestNoExt = ([$0]) => {
|
|
980
|
+
const len = $0.length;
|
|
981
|
+
return (f) => f.length === len && !f.startsWith(".");
|
|
982
|
+
};
|
|
983
|
+
const qmarksTestNoExtDot = ([$0]) => {
|
|
984
|
+
const len = $0.length;
|
|
985
|
+
return (f) => f.length === len && f !== "." && f !== "..";
|
|
986
|
+
};
|
|
987
|
+
/* c8 ignore start */
|
|
988
|
+
const defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
989
|
+
const path = {
|
|
990
|
+
win32: { sep: "\\" },
|
|
991
|
+
posix: { sep: "/" }
|
|
992
|
+
};
|
|
993
|
+
minimatch.sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
|
|
994
|
+
const GLOBSTAR = Symbol("globstar **");
|
|
995
|
+
minimatch.GLOBSTAR = GLOBSTAR;
|
|
996
|
+
const star = "[^/]*?";
|
|
997
|
+
const twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
998
|
+
const twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
999
|
+
const filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
|
|
1000
|
+
minimatch.filter = filter;
|
|
1001
|
+
const ext = (a, b = {}) => Object.assign({}, a, b);
|
|
1002
|
+
const defaults = (def) => {
|
|
1003
|
+
if (!def || typeof def !== "object" || !Object.keys(def).length) return minimatch;
|
|
1004
|
+
const orig = minimatch;
|
|
1005
|
+
const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
|
|
1006
|
+
return Object.assign(m, {
|
|
1007
|
+
Minimatch: class Minimatch extends orig.Minimatch {
|
|
1008
|
+
constructor(pattern, options = {}) {
|
|
1009
|
+
super(pattern, ext(def, options));
|
|
1010
|
+
}
|
|
1011
|
+
static defaults(options) {
|
|
1012
|
+
return orig.defaults(ext(def, options)).Minimatch;
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
AST: class AST extends orig.AST {
|
|
1016
|
+
/* c8 ignore start */
|
|
1017
|
+
constructor(type, parent, options = {}) {
|
|
1018
|
+
super(type, parent, ext(def, options));
|
|
1019
|
+
}
|
|
1020
|
+
/* c8 ignore stop */
|
|
1021
|
+
static fromGlob(pattern, options = {}) {
|
|
1022
|
+
return orig.AST.fromGlob(pattern, ext(def, options));
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
|
|
1026
|
+
escape: (s, options = {}) => orig.escape(s, ext(def, options)),
|
|
1027
|
+
filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
|
|
1028
|
+
defaults: (options) => orig.defaults(ext(def, options)),
|
|
1029
|
+
makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
|
|
1030
|
+
braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
|
|
1031
|
+
match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
|
|
1032
|
+
sep: orig.sep,
|
|
1033
|
+
GLOBSTAR
|
|
1034
|
+
});
|
|
1035
|
+
};
|
|
1036
|
+
minimatch.defaults = defaults;
|
|
1037
|
+
const braceExpand = (pattern, options = {}) => {
|
|
1038
|
+
assertValidPattern(pattern);
|
|
1039
|
+
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) return [pattern];
|
|
1040
|
+
return expand(pattern, { max: options.braceExpandMax });
|
|
1041
|
+
};
|
|
1042
|
+
minimatch.braceExpand = braceExpand;
|
|
1043
|
+
const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
1044
|
+
minimatch.makeRe = makeRe;
|
|
1045
|
+
const match = (list, pattern, options = {}) => {
|
|
1046
|
+
const mm = new Minimatch(pattern, options);
|
|
1047
|
+
list = list.filter((f) => mm.match(f));
|
|
1048
|
+
if (mm.options.nonull && !list.length) list.push(pattern);
|
|
1049
|
+
return list;
|
|
1050
|
+
};
|
|
1051
|
+
minimatch.match = match;
|
|
1052
|
+
const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
1053
|
+
const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1054
|
+
var Minimatch = class {
|
|
1055
|
+
options;
|
|
1056
|
+
set;
|
|
1057
|
+
pattern;
|
|
1058
|
+
windowsPathsNoEscape;
|
|
1059
|
+
nonegate;
|
|
1060
|
+
negate;
|
|
1061
|
+
comment;
|
|
1062
|
+
empty;
|
|
1063
|
+
preserveMultipleSlashes;
|
|
1064
|
+
partial;
|
|
1065
|
+
globSet;
|
|
1066
|
+
globParts;
|
|
1067
|
+
nocase;
|
|
1068
|
+
isWindows;
|
|
1069
|
+
platform;
|
|
1070
|
+
windowsNoMagicRoot;
|
|
1071
|
+
maxGlobstarRecursion;
|
|
1072
|
+
regexp;
|
|
1073
|
+
constructor(pattern, options = {}) {
|
|
1074
|
+
assertValidPattern(pattern);
|
|
1075
|
+
options = options || {};
|
|
1076
|
+
this.options = options;
|
|
1077
|
+
this.maxGlobstarRecursion = options.maxGlobstarRecursion ?? 200;
|
|
1078
|
+
this.pattern = pattern;
|
|
1079
|
+
this.platform = options.platform || defaultPlatform;
|
|
1080
|
+
this.isWindows = this.platform === "win32";
|
|
1081
|
+
const awe = "allowWindowsEscape";
|
|
1082
|
+
this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options[awe] === false;
|
|
1083
|
+
if (this.windowsPathsNoEscape) this.pattern = this.pattern.replace(/\\/g, "/");
|
|
1084
|
+
this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
|
|
1085
|
+
this.regexp = null;
|
|
1086
|
+
this.negate = false;
|
|
1087
|
+
this.nonegate = !!options.nonegate;
|
|
1088
|
+
this.comment = false;
|
|
1089
|
+
this.empty = false;
|
|
1090
|
+
this.partial = !!options.partial;
|
|
1091
|
+
this.nocase = !!this.options.nocase;
|
|
1092
|
+
this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
|
|
1093
|
+
this.globSet = [];
|
|
1094
|
+
this.globParts = [];
|
|
1095
|
+
this.set = [];
|
|
1096
|
+
this.make();
|
|
1097
|
+
}
|
|
1098
|
+
hasMagic() {
|
|
1099
|
+
if (this.options.magicalBraces && this.set.length > 1) return true;
|
|
1100
|
+
for (const pattern of this.set) for (const part of pattern) if (typeof part !== "string") return true;
|
|
1101
|
+
return false;
|
|
1102
|
+
}
|
|
1103
|
+
debug(..._) {}
|
|
1104
|
+
make() {
|
|
1105
|
+
const pattern = this.pattern;
|
|
1106
|
+
const options = this.options;
|
|
1107
|
+
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
1108
|
+
this.comment = true;
|
|
1109
|
+
return;
|
|
1110
|
+
}
|
|
1111
|
+
if (!pattern) {
|
|
1112
|
+
this.empty = true;
|
|
1113
|
+
return;
|
|
1114
|
+
}
|
|
1115
|
+
this.parseNegate();
|
|
1116
|
+
this.globSet = [...new Set(this.braceExpand())];
|
|
1117
|
+
if (options.debug) this.debug = (...args) => console.error(...args);
|
|
1118
|
+
this.debug(this.pattern, this.globSet);
|
|
1119
|
+
const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
|
|
1120
|
+
this.globParts = this.preprocess(rawGlobParts);
|
|
1121
|
+
this.debug(this.pattern, this.globParts);
|
|
1122
|
+
let set = this.globParts.map((s, _, __) => {
|
|
1123
|
+
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
1124
|
+
const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
|
|
1125
|
+
const isDrive = /^[a-z]:/i.test(s[0]);
|
|
1126
|
+
if (isUNC) return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
|
|
1127
|
+
else if (isDrive) return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
|
|
1128
|
+
}
|
|
1129
|
+
return s.map((ss) => this.parse(ss));
|
|
1130
|
+
});
|
|
1131
|
+
this.debug(this.pattern, set);
|
|
1132
|
+
this.set = set.filter((s) => s.indexOf(false) === -1);
|
|
1133
|
+
if (this.isWindows) for (let i = 0; i < this.set.length; i++) {
|
|
1134
|
+
const p = this.set[i];
|
|
1135
|
+
if (p[0] === "" && p[1] === "" && this.globParts[i][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) p[2] = "?";
|
|
1136
|
+
}
|
|
1137
|
+
this.debug(this.pattern, this.set);
|
|
1138
|
+
}
|
|
1139
|
+
preprocess(globParts) {
|
|
1140
|
+
if (this.options.noglobstar) {
|
|
1141
|
+
for (const partset of globParts) for (let j = 0; j < partset.length; j++) if (partset[j] === "**") partset[j] = "*";
|
|
1142
|
+
}
|
|
1143
|
+
const { optimizationLevel = 1 } = this.options;
|
|
1144
|
+
if (optimizationLevel >= 2) {
|
|
1145
|
+
globParts = this.firstPhasePreProcess(globParts);
|
|
1146
|
+
globParts = this.secondPhasePreProcess(globParts);
|
|
1147
|
+
} else if (optimizationLevel >= 1) globParts = this.levelOneOptimize(globParts);
|
|
1148
|
+
else globParts = this.adjascentGlobstarOptimize(globParts);
|
|
1149
|
+
return globParts;
|
|
1150
|
+
}
|
|
1151
|
+
adjascentGlobstarOptimize(globParts) {
|
|
1152
|
+
return globParts.map((parts) => {
|
|
1153
|
+
let gs = -1;
|
|
1154
|
+
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1155
|
+
let i = gs;
|
|
1156
|
+
while (parts[i + 1] === "**") i++;
|
|
1157
|
+
if (i !== gs) parts.splice(gs, i - gs);
|
|
1158
|
+
}
|
|
1159
|
+
return parts;
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
levelOneOptimize(globParts) {
|
|
1163
|
+
return globParts.map((parts) => {
|
|
1164
|
+
parts = parts.reduce((set, part) => {
|
|
1165
|
+
const prev = set[set.length - 1];
|
|
1166
|
+
if (part === "**" && prev === "**") return set;
|
|
1167
|
+
if (part === "..") {
|
|
1168
|
+
if (prev && prev !== ".." && prev !== "." && prev !== "**") {
|
|
1169
|
+
set.pop();
|
|
1170
|
+
return set;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
set.push(part);
|
|
1174
|
+
return set;
|
|
1175
|
+
}, []);
|
|
1176
|
+
return parts.length === 0 ? [""] : parts;
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
levelTwoFileOptimize(parts) {
|
|
1180
|
+
if (!Array.isArray(parts)) parts = this.slashSplit(parts);
|
|
1181
|
+
let didSomething = false;
|
|
1182
|
+
do {
|
|
1183
|
+
didSomething = false;
|
|
1184
|
+
if (!this.preserveMultipleSlashes) {
|
|
1185
|
+
for (let i = 1; i < parts.length - 1; i++) {
|
|
1186
|
+
const p = parts[i];
|
|
1187
|
+
if (i === 1 && p === "" && parts[0] === "") continue;
|
|
1188
|
+
if (p === "." || p === "") {
|
|
1189
|
+
didSomething = true;
|
|
1190
|
+
parts.splice(i, 1);
|
|
1191
|
+
i--;
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1195
|
+
didSomething = true;
|
|
1196
|
+
parts.pop();
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
let dd = 0;
|
|
1200
|
+
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1201
|
+
const p = parts[dd - 1];
|
|
1202
|
+
if (p && p !== "." && p !== ".." && p !== "**" && !(this.isWindows && /^[a-z]:$/i.test(p))) {
|
|
1203
|
+
didSomething = true;
|
|
1204
|
+
parts.splice(dd - 1, 2);
|
|
1205
|
+
dd -= 2;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
} while (didSomething);
|
|
1209
|
+
return parts.length === 0 ? [""] : parts;
|
|
1210
|
+
}
|
|
1211
|
+
firstPhasePreProcess(globParts) {
|
|
1212
|
+
let didSomething = false;
|
|
1213
|
+
do {
|
|
1214
|
+
didSomething = false;
|
|
1215
|
+
for (let parts of globParts) {
|
|
1216
|
+
let gs = -1;
|
|
1217
|
+
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1218
|
+
let gss = gs;
|
|
1219
|
+
while (parts[gss + 1] === "**") gss++;
|
|
1220
|
+
if (gss > gs) parts.splice(gs + 1, gss - gs);
|
|
1221
|
+
let next = parts[gs + 1];
|
|
1222
|
+
const p = parts[gs + 2];
|
|
1223
|
+
const p2 = parts[gs + 3];
|
|
1224
|
+
if (next !== "..") continue;
|
|
1225
|
+
if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") continue;
|
|
1226
|
+
didSomething = true;
|
|
1227
|
+
parts.splice(gs, 1);
|
|
1228
|
+
const other = parts.slice(0);
|
|
1229
|
+
other[gs] = "**";
|
|
1230
|
+
globParts.push(other);
|
|
1231
|
+
gs--;
|
|
1232
|
+
}
|
|
1233
|
+
if (!this.preserveMultipleSlashes) {
|
|
1234
|
+
for (let i = 1; i < parts.length - 1; i++) {
|
|
1235
|
+
const p = parts[i];
|
|
1236
|
+
if (i === 1 && p === "" && parts[0] === "") continue;
|
|
1237
|
+
if (p === "." || p === "") {
|
|
1238
|
+
didSomething = true;
|
|
1239
|
+
parts.splice(i, 1);
|
|
1240
|
+
i--;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1244
|
+
didSomething = true;
|
|
1245
|
+
parts.pop();
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
let dd = 0;
|
|
1249
|
+
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1250
|
+
const p = parts[dd - 1];
|
|
1251
|
+
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
1252
|
+
didSomething = true;
|
|
1253
|
+
const splin = dd === 1 && parts[dd + 1] === "**" ? ["."] : [];
|
|
1254
|
+
parts.splice(dd - 1, 2, ...splin);
|
|
1255
|
+
if (parts.length === 0) parts.push("");
|
|
1256
|
+
dd -= 2;
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
} while (didSomething);
|
|
1261
|
+
return globParts;
|
|
1262
|
+
}
|
|
1263
|
+
secondPhasePreProcess(globParts) {
|
|
1264
|
+
for (let i = 0; i < globParts.length - 1; i++) for (let j = i + 1; j < globParts.length; j++) {
|
|
1265
|
+
const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
|
|
1266
|
+
if (matched) {
|
|
1267
|
+
globParts[i] = [];
|
|
1268
|
+
globParts[j] = matched;
|
|
1269
|
+
break;
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
return globParts.filter((gs) => gs.length);
|
|
1273
|
+
}
|
|
1274
|
+
partsMatch(a, b, emptyGSMatch = false) {
|
|
1275
|
+
let ai = 0;
|
|
1276
|
+
let bi = 0;
|
|
1277
|
+
let result = [];
|
|
1278
|
+
let which = "";
|
|
1279
|
+
while (ai < a.length && bi < b.length) if (a[ai] === b[bi]) {
|
|
1280
|
+
result.push(which === "b" ? b[bi] : a[ai]);
|
|
1281
|
+
ai++;
|
|
1282
|
+
bi++;
|
|
1283
|
+
} else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
|
|
1284
|
+
result.push(a[ai]);
|
|
1285
|
+
ai++;
|
|
1286
|
+
} else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
|
|
1287
|
+
result.push(b[bi]);
|
|
1288
|
+
bi++;
|
|
1289
|
+
} else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
|
|
1290
|
+
if (which === "b") return false;
|
|
1291
|
+
which = "a";
|
|
1292
|
+
result.push(a[ai]);
|
|
1293
|
+
ai++;
|
|
1294
|
+
bi++;
|
|
1295
|
+
} else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
|
|
1296
|
+
if (which === "a") return false;
|
|
1297
|
+
which = "b";
|
|
1298
|
+
result.push(b[bi]);
|
|
1299
|
+
ai++;
|
|
1300
|
+
bi++;
|
|
1301
|
+
} else return false;
|
|
1302
|
+
return a.length === b.length && result;
|
|
1303
|
+
}
|
|
1304
|
+
parseNegate() {
|
|
1305
|
+
if (this.nonegate) return;
|
|
1306
|
+
const pattern = this.pattern;
|
|
1307
|
+
let negate = false;
|
|
1308
|
+
let negateOffset = 0;
|
|
1309
|
+
for (let i = 0; i < pattern.length && pattern.charAt(i) === "!"; i++) {
|
|
1310
|
+
negate = !negate;
|
|
1311
|
+
negateOffset++;
|
|
1312
|
+
}
|
|
1313
|
+
if (negateOffset) this.pattern = pattern.slice(negateOffset);
|
|
1314
|
+
this.negate = negate;
|
|
1315
|
+
}
|
|
1316
|
+
matchOne(file, pattern, partial = false) {
|
|
1317
|
+
let fileStartIndex = 0;
|
|
1318
|
+
let patternStartIndex = 0;
|
|
1319
|
+
if (this.isWindows) {
|
|
1320
|
+
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
1321
|
+
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
1322
|
+
const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
|
|
1323
|
+
const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
|
|
1324
|
+
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
1325
|
+
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
1326
|
+
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
1327
|
+
const [fd, pd] = [file[fdi], pattern[pdi]];
|
|
1328
|
+
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
1329
|
+
pattern[pdi] = fd;
|
|
1330
|
+
patternStartIndex = pdi;
|
|
1331
|
+
fileStartIndex = fdi;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
const { optimizationLevel = 1 } = this.options;
|
|
1336
|
+
if (optimizationLevel >= 2) file = this.levelTwoFileOptimize(file);
|
|
1337
|
+
if (pattern.includes(GLOBSTAR)) return this.#matchGlobstar(file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
1338
|
+
return this.#matchOne(file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
1339
|
+
}
|
|
1340
|
+
#matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
|
|
1341
|
+
const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
|
|
1342
|
+
const lastgs = pattern.lastIndexOf(GLOBSTAR);
|
|
1343
|
+
const [head, body, tail] = partial ? [
|
|
1344
|
+
pattern.slice(patternIndex, firstgs),
|
|
1345
|
+
pattern.slice(firstgs + 1),
|
|
1346
|
+
[]
|
|
1347
|
+
] : [
|
|
1348
|
+
pattern.slice(patternIndex, firstgs),
|
|
1349
|
+
pattern.slice(firstgs + 1, lastgs),
|
|
1350
|
+
pattern.slice(lastgs + 1)
|
|
1351
|
+
];
|
|
1352
|
+
if (head.length) {
|
|
1353
|
+
const fileHead = file.slice(fileIndex, fileIndex + head.length);
|
|
1354
|
+
if (!this.#matchOne(fileHead, head, partial, 0, 0)) return false;
|
|
1355
|
+
fileIndex += head.length;
|
|
1356
|
+
patternIndex += head.length;
|
|
1357
|
+
}
|
|
1358
|
+
let fileTailMatch = 0;
|
|
1359
|
+
if (tail.length) {
|
|
1360
|
+
if (tail.length + fileIndex > file.length) return false;
|
|
1361
|
+
let tailStart = file.length - tail.length;
|
|
1362
|
+
if (this.#matchOne(file, tail, partial, tailStart, 0)) fileTailMatch = tail.length;
|
|
1363
|
+
else {
|
|
1364
|
+
if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) return false;
|
|
1365
|
+
tailStart--;
|
|
1366
|
+
if (!this.#matchOne(file, tail, partial, tailStart, 0)) return false;
|
|
1367
|
+
fileTailMatch = tail.length + 1;
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
if (!body.length) {
|
|
1371
|
+
let sawSome = !!fileTailMatch;
|
|
1372
|
+
for (let i = fileIndex; i < file.length - fileTailMatch; i++) {
|
|
1373
|
+
const f = String(file[i]);
|
|
1374
|
+
sawSome = true;
|
|
1375
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) return false;
|
|
1376
|
+
}
|
|
1377
|
+
return partial || sawSome;
|
|
1378
|
+
}
|
|
1379
|
+
const bodySegments = [[[], 0]];
|
|
1380
|
+
let currentBody = bodySegments[0];
|
|
1381
|
+
let nonGsParts = 0;
|
|
1382
|
+
const nonGsPartsSums = [0];
|
|
1383
|
+
for (const b of body) if (b === GLOBSTAR) {
|
|
1384
|
+
nonGsPartsSums.push(nonGsParts);
|
|
1385
|
+
currentBody = [[], 0];
|
|
1386
|
+
bodySegments.push(currentBody);
|
|
1387
|
+
} else {
|
|
1388
|
+
currentBody[0].push(b);
|
|
1389
|
+
nonGsParts++;
|
|
1390
|
+
}
|
|
1391
|
+
let i = bodySegments.length - 1;
|
|
1392
|
+
const fileLength = file.length - fileTailMatch;
|
|
1393
|
+
for (const b of bodySegments) b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
|
|
1394
|
+
return !!this.#matchGlobStarBodySections(file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
|
|
1395
|
+
}
|
|
1396
|
+
#matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
|
|
1397
|
+
const bs = bodySegments[bodyIndex];
|
|
1398
|
+
if (!bs) {
|
|
1399
|
+
for (let i = fileIndex; i < file.length; i++) {
|
|
1400
|
+
sawTail = true;
|
|
1401
|
+
const f = file[i];
|
|
1402
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) return false;
|
|
1403
|
+
}
|
|
1404
|
+
return sawTail;
|
|
1405
|
+
}
|
|
1406
|
+
const [body, after] = bs;
|
|
1407
|
+
while (fileIndex <= after) {
|
|
1408
|
+
if (this.#matchOne(file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0) && globStarDepth < this.maxGlobstarRecursion) {
|
|
1409
|
+
const sub = this.#matchGlobStarBodySections(file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
|
|
1410
|
+
if (sub !== false) return sub;
|
|
1411
|
+
}
|
|
1412
|
+
const f = file[fileIndex];
|
|
1413
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) return false;
|
|
1414
|
+
fileIndex++;
|
|
1415
|
+
}
|
|
1416
|
+
return partial || null;
|
|
1417
|
+
}
|
|
1418
|
+
#matchOne(file, pattern, partial, fileIndex, patternIndex) {
|
|
1419
|
+
let fi;
|
|
1420
|
+
let pi;
|
|
1421
|
+
let pl;
|
|
1422
|
+
let fl;
|
|
1423
|
+
for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
1424
|
+
this.debug("matchOne loop");
|
|
1425
|
+
let p = pattern[pi];
|
|
1426
|
+
let f = file[fi];
|
|
1427
|
+
this.debug(pattern, p, f);
|
|
1428
|
+
/* c8 ignore start */
|
|
1429
|
+
if (p === false || p === GLOBSTAR) return false;
|
|
1430
|
+
/* c8 ignore stop */
|
|
1431
|
+
let hit;
|
|
1432
|
+
if (typeof p === "string") {
|
|
1433
|
+
hit = f === p;
|
|
1434
|
+
this.debug("string match", p, f, hit);
|
|
1435
|
+
} else {
|
|
1436
|
+
hit = p.test(f);
|
|
1437
|
+
this.debug("pattern match", p, f, hit);
|
|
1438
|
+
}
|
|
1439
|
+
if (!hit) return false;
|
|
1440
|
+
}
|
|
1441
|
+
if (fi === fl && pi === pl) return true;
|
|
1442
|
+
else if (fi === fl) return partial;
|
|
1443
|
+
else if (pi === pl) return fi === fl - 1 && file[fi] === "";
|
|
1444
|
+
else throw new Error("wtf?");
|
|
1445
|
+
/* c8 ignore stop */
|
|
1446
|
+
}
|
|
1447
|
+
braceExpand() {
|
|
1448
|
+
return braceExpand(this.pattern, this.options);
|
|
1449
|
+
}
|
|
1450
|
+
parse(pattern) {
|
|
1451
|
+
assertValidPattern(pattern);
|
|
1452
|
+
const options = this.options;
|
|
1453
|
+
if (pattern === "**") return GLOBSTAR;
|
|
1454
|
+
if (pattern === "") return "";
|
|
1455
|
+
let m;
|
|
1456
|
+
let fastTest = null;
|
|
1457
|
+
if (m = pattern.match(starRE)) fastTest = options.dot ? starTestDot : starTest;
|
|
1458
|
+
else if (m = pattern.match(starDotExtRE)) fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
|
|
1459
|
+
else if (m = pattern.match(qmarksRE)) fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
|
|
1460
|
+
else if (m = pattern.match(starDotStarRE)) fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
|
|
1461
|
+
else if (m = pattern.match(dotStarRE)) fastTest = dotStarTest;
|
|
1462
|
+
const re = AST.fromGlob(pattern, this.options).toMMPattern();
|
|
1463
|
+
if (fastTest && typeof re === "object") Reflect.defineProperty(re, "test", { value: fastTest });
|
|
1464
|
+
return re;
|
|
1465
|
+
}
|
|
1466
|
+
makeRe() {
|
|
1467
|
+
if (this.regexp || this.regexp === false) return this.regexp;
|
|
1468
|
+
const set = this.set;
|
|
1469
|
+
if (!set.length) {
|
|
1470
|
+
this.regexp = false;
|
|
1471
|
+
return this.regexp;
|
|
1472
|
+
}
|
|
1473
|
+
const options = this.options;
|
|
1474
|
+
const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
|
|
1475
|
+
const flags = new Set(options.nocase ? ["i"] : []);
|
|
1476
|
+
let re = set.map((pattern) => {
|
|
1477
|
+
const pp = pattern.map((p) => {
|
|
1478
|
+
if (p instanceof RegExp) for (const f of p.flags.split("")) flags.add(f);
|
|
1479
|
+
return typeof p === "string" ? regExpEscape(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
|
|
1480
|
+
});
|
|
1481
|
+
pp.forEach((p, i) => {
|
|
1482
|
+
const next = pp[i + 1];
|
|
1483
|
+
const prev = pp[i - 1];
|
|
1484
|
+
if (p !== GLOBSTAR || prev === GLOBSTAR) return;
|
|
1485
|
+
if (prev === void 0) {
|
|
1486
|
+
if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
|
|
1487
|
+
else pp[i] = twoStar;
|
|
1488
|
+
} else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
|
|
1489
|
+
else if (next !== GLOBSTAR) {
|
|
1490
|
+
pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
1491
|
+
pp[i + 1] = GLOBSTAR;
|
|
1492
|
+
}
|
|
1493
|
+
});
|
|
1494
|
+
const filtered = pp.filter((p) => p !== GLOBSTAR);
|
|
1495
|
+
if (this.partial && filtered.length >= 1) {
|
|
1496
|
+
const prefixes = [];
|
|
1497
|
+
for (let i = 1; i <= filtered.length; i++) prefixes.push(filtered.slice(0, i).join("/"));
|
|
1498
|
+
return "(?:" + prefixes.join("|") + ")";
|
|
1499
|
+
}
|
|
1500
|
+
return filtered.join("/");
|
|
1501
|
+
}).join("|");
|
|
1502
|
+
const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
1503
|
+
re = "^" + open + re + close + "$";
|
|
1504
|
+
if (this.partial) re = "^(?:\\/|" + open + re.slice(1, -1) + close + ")$";
|
|
1505
|
+
if (this.negate) re = "^(?!" + re + ").+$";
|
|
1506
|
+
try {
|
|
1507
|
+
this.regexp = new RegExp(re, [...flags].join(""));
|
|
1508
|
+
} catch {
|
|
1509
|
+
this.regexp = false;
|
|
1510
|
+
}
|
|
1511
|
+
/* c8 ignore stop */
|
|
1512
|
+
return this.regexp;
|
|
1513
|
+
}
|
|
1514
|
+
slashSplit(p) {
|
|
1515
|
+
if (this.preserveMultipleSlashes) return p.split("/");
|
|
1516
|
+
else if (this.isWindows && /^\/\/[^/]+/.test(p)) return ["", ...p.split(/\/+/)];
|
|
1517
|
+
else return p.split(/\/+/);
|
|
1518
|
+
}
|
|
1519
|
+
match(f, partial = this.partial) {
|
|
1520
|
+
this.debug("match", f, this.pattern);
|
|
1521
|
+
if (this.comment) return false;
|
|
1522
|
+
if (this.empty) return f === "";
|
|
1523
|
+
if (f === "/" && partial) return true;
|
|
1524
|
+
const options = this.options;
|
|
1525
|
+
if (this.isWindows) f = f.split("\\").join("/");
|
|
1526
|
+
const ff = this.slashSplit(f);
|
|
1527
|
+
this.debug(this.pattern, "split", ff);
|
|
1528
|
+
const set = this.set;
|
|
1529
|
+
this.debug(this.pattern, "set", set);
|
|
1530
|
+
let filename = ff[ff.length - 1];
|
|
1531
|
+
if (!filename) for (let i = ff.length - 2; !filename && i >= 0; i--) filename = ff[i];
|
|
1532
|
+
for (const pattern of set) {
|
|
1533
|
+
let file = ff;
|
|
1534
|
+
if (options.matchBase && pattern.length === 1) file = [filename];
|
|
1535
|
+
if (this.matchOne(file, pattern, partial)) {
|
|
1536
|
+
if (options.flipNegate) return true;
|
|
1537
|
+
return !this.negate;
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
if (options.flipNegate) return false;
|
|
1541
|
+
return this.negate;
|
|
1542
|
+
}
|
|
1543
|
+
static defaults(def) {
|
|
1544
|
+
return minimatch.defaults(def).Minimatch;
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
/* c8 ignore stop */
|
|
1548
|
+
minimatch.AST = AST;
|
|
1549
|
+
minimatch.Minimatch = Minimatch;
|
|
1550
|
+
minimatch.escape = escape;
|
|
1551
|
+
minimatch.unescape = unescape;
|
|
1552
|
+
//#endregion
|
|
1553
|
+
export { minimatch as t };
|