@testmuai/kane-cli 0.8.23 → 0.10.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ChatSurface-VPD5G67Q.js +2 -0
- package/dist/ChromeProfilePicker-CRKQEFYD.js +2 -0
- package/dist/CliFeedbackPrompt-M7BMWLKK.js +2 -0
- package/dist/CliUploadProgress-OP7DXMC2.js +2 -0
- package/dist/ConfigView-XI74BCCH.js +2 -0
- package/dist/EvidenceViewOffer-HAAK6DS5.js +2 -0
- package/dist/FolderPicker-W5S6RFCP.js +2 -0
- package/dist/InfoBox-OWUEHV2D.js +2 -0
- package/dist/LinksBox-PNSESNCU.js +2 -0
- package/dist/ProfilesView-PYDZZHKO.js +2 -0
- package/dist/ProjectPicker-BGFCUGT5.js +2 -0
- package/dist/SaveSessionPrompt-SUJE54GS.js +2 -0
- package/dist/ScrollbackTap-4SPXGFMU.js +2 -0
- package/dist/SingleShotApp-4TDXZEUA.js +2 -0
- package/dist/SummaryBox-FALOODAQ.js +2 -0
- package/dist/TestMdRunView-4GPRWHEU.js +2 -0
- package/dist/TestrunEvidenceTable-OBVQJ6IO.js +2 -0
- package/dist/WhoamiView-6WXGRANY.js +2 -0
- package/dist/{agent-parse-2MLJOJTH.js → agent-parse-CAS45UKA.js} +1 -1
- package/dist/app-client-U2YYF65L.js +2 -0
- package/dist/app-download-RXVZB6MM.js +2 -0
- package/dist/assurance-job-C3TXZGLL.js +7 -0
- package/dist/auth-7Z54TMQQ.js +2 -0
- package/dist/{binary-MOJTQGUV.js → binary-DJCDMGPX.js} +1 -1
- package/dist/bind-XVO4CQYV.js +2 -0
- package/dist/bootstrap-TY5RANJ7.js +2 -0
- package/dist/bridge-T6QMYKED.js +2 -0
- package/dist/build-5ZN47FAT.js +2 -0
- package/dist/catalog-RRQF4TCA.js +2 -0
- package/dist/{changelog-2N6HKKKQ.js → changelog-GBEVIUFJ.js} +1 -1
- package/dist/chat-committer-ZCSRJEUB.js +2 -0
- package/dist/chat-controller-XINCDH6Z.js +2 -0
- package/dist/child-G2GCW73X.js +2 -0
- package/dist/chunk-22PIMG52.js +2 -0
- package/dist/chunk-252FWF2G.js +19 -0
- package/dist/{chunk-AT3RME5W.js → chunk-2IZRPMZN.js} +1 -1
- package/dist/chunk-2NFS4KE4.js +2 -0
- package/dist/{chunk-LHUW5QDT.js → chunk-2OOFURWD.js} +1 -1
- package/dist/chunk-2OSFI33O.js +97 -0
- package/dist/chunk-2S3W2JT3.js +5 -0
- package/dist/chunk-2SWSVJUP.js +12 -0
- package/dist/chunk-2TVPA3LL.js +2 -0
- package/dist/chunk-2XW33VOK.js +2 -0
- package/dist/chunk-33DWJV67.js +235 -0
- package/dist/chunk-34R7BNZ2.js +2 -0
- package/dist/chunk-35ECWCCK.js +2 -0
- package/dist/chunk-3BSYOCSW.js +3 -0
- package/dist/chunk-3G2LSTK5.js +2 -0
- package/dist/chunk-3GXN6VF6.js +2 -0
- package/dist/chunk-3JLEDSG5.js +4 -0
- package/dist/chunk-3QICDXY5.js +5 -0
- package/dist/chunk-3UVSAAES.js +10 -0
- package/dist/chunk-42PALMW2.js +4 -0
- package/dist/chunk-432ZOE42.js +21 -0
- package/dist/chunk-44B6THYK.js +2 -0
- package/dist/chunk-47WQBG5I.js +6 -0
- package/dist/{chunk-J2FJ62K4.js → chunk-4D5PC6QE.js} +1 -1
- package/dist/chunk-4I7YN6YY.js +3 -0
- package/dist/chunk-4IEQNX7F.js +2 -0
- package/dist/{chunk-SYJXTB4J.js → chunk-4LPX2OLV.js} +1 -1
- package/dist/chunk-4LTHDJ3D.js +2 -0
- package/dist/chunk-4QTH7VYE.js +2 -0
- package/dist/chunk-54XA5MZH.js +2 -0
- package/dist/chunk-57MDWTON.js +2 -0
- package/dist/{chunk-3C32LVLX.js → chunk-5BUIIFLC.js} +1 -1
- package/dist/chunk-5D7ENQTQ.js +2 -0
- package/dist/chunk-63EKRZKI.js +2 -0
- package/dist/{chunk-EHN5HTUD.js → chunk-65VANXOF.js} +51 -51
- package/dist/chunk-672CQECV.js +47 -0
- package/dist/chunk-6LIC2R22.js +3 -0
- package/dist/chunk-6NFOH4AC.js +4 -0
- package/dist/chunk-6NWT2TEJ.js +2 -0
- package/dist/chunk-6PIIUAZF.js +3 -0
- package/dist/{chunk-MBJHS653.js → chunk-6U7ID777.js} +1 -1
- package/dist/chunk-6UVIY56J.js +2 -0
- package/dist/chunk-72KYMWQ5.js +2 -0
- package/dist/chunk-72RC7JSA.js +21 -0
- package/dist/chunk-74W4AOT2.js +2 -0
- package/dist/chunk-77ZZQJLX.js +2 -0
- package/dist/chunk-7DFBOVUB.js +2 -0
- package/dist/chunk-7EXDYXXD.js +2 -0
- package/dist/chunk-7HO4NX5W.js +1 -0
- package/dist/chunk-7KX2BHKG.js +2 -0
- package/dist/chunk-7LKCWO2R.js +11 -0
- package/dist/{chunk-ULGZPRKU.js → chunk-7NCJMWFX.js} +1 -1
- package/dist/chunk-7RPKHKA3.js +2 -0
- package/dist/chunk-7RWP4Y3H.js +2 -0
- package/dist/chunk-7V4BQSSV.js +2 -0
- package/dist/chunk-7XBNMOH4.js +6 -0
- package/dist/chunk-A6TJOZ24.js +2 -0
- package/dist/chunk-A7RJQJNT.js +2 -0
- package/dist/chunk-AA674WLL.js +2 -0
- package/dist/chunk-AIXJYMSP.js +9 -0
- package/dist/chunk-AJQZ3ST5.js +8 -0
- package/dist/chunk-AQ2OG2EF.js +2 -0
- package/dist/chunk-AUJSC7PU.js +4 -0
- package/dist/chunk-AVI5H4UM.js +13 -0
- package/dist/chunk-AZLNLHUA.js +4 -0
- package/dist/chunk-B2HXPGIZ.js +26 -0
- package/dist/chunk-B7ZX5HEN.js +8 -0
- package/dist/{chunk-XQQHSC7G.js → chunk-BJJUKB5K.js} +1 -1
- package/dist/{chunk-66MOZKD2.js → chunk-BSRSXYDZ.js} +1 -1
- package/dist/{chunk-TONFENRW.js → chunk-BVO4C5F2.js} +1 -1
- package/dist/chunk-BWXLZS5O.js +2 -0
- package/dist/chunk-BY65QAAN.js +4 -0
- package/dist/chunk-BZVNI44O.js +6 -0
- package/dist/chunk-C5Z7MQE6.js +2 -0
- package/dist/chunk-C6HI6Y3S.js +2 -0
- package/dist/chunk-CB4ARIHR.js +2 -0
- package/dist/chunk-CPBBYNL7.js +4 -0
- package/dist/{chunk-GFNCGN5V.js → chunk-D4FFXCX6.js} +2 -2
- package/dist/chunk-D756UWY2.js +6 -0
- package/dist/chunk-DBMW3VUN.js +4 -0
- package/dist/chunk-DD5TULWQ.js +34 -0
- package/dist/{chunk-SY4T44VC.js → chunk-DDJNYQBH.js} +1 -1
- package/dist/{chunk-KJIDMW6N.js → chunk-DHQ4SQWA.js} +1 -1
- package/dist/chunk-DNGOT65K.js +3 -0
- package/dist/chunk-DPGOAFKF.js +2 -0
- package/dist/chunk-DREQ3RAA.js +2 -0
- package/dist/chunk-DTUPEKEO.js +2 -0
- package/dist/chunk-E6KSRQXL.js +8 -0
- package/dist/chunk-EF47KRUK.js +2 -0
- package/dist/chunk-ENL4XTQ2.js +2 -0
- package/dist/chunk-EXFDIVNI.js +9 -0
- package/dist/chunk-EZN7CF45.js +4 -0
- package/dist/chunk-F3U6T4YD.js +22 -0
- package/dist/{chunk-DHJSM5DT.js → chunk-FCD3NYOM.js} +1 -1
- package/dist/chunk-FFL55I2M.js +2 -0
- package/dist/chunk-FIP5L6LV.js +9 -0
- package/dist/chunk-FOJHSG5M.js +6 -0
- package/dist/chunk-FSYOTRMC.js +2 -0
- package/dist/chunk-GFLB2SHW.js +2 -0
- package/dist/chunk-GMTHZUZ3.js +2 -0
- package/dist/chunk-GRURFGBP.js +2 -0
- package/dist/chunk-GZFLJORM.js +2 -0
- package/dist/{chunk-PXHN7SFG.js → chunk-H3HHSTEK.js} +4 -4
- package/dist/chunk-HAW5WEKT.js +13 -0
- package/dist/chunk-HFJSP4KD.js +2 -0
- package/dist/chunk-HHW6MRU3.js +6 -0
- package/dist/chunk-HIUAUZNL.js +2 -0
- package/dist/chunk-HJLMH7ZM.js +2 -0
- package/dist/{chunk-5GUD3CIH.js → chunk-HQ2E2XCU.js} +1 -1
- package/dist/chunk-I2KOGINW.js +7 -0
- package/dist/chunk-I2MC6VVX.js +2 -0
- package/dist/chunk-I5NSJBOZ.js +2 -0
- package/dist/chunk-I6OQISK4.js +2 -0
- package/dist/chunk-IBBD36FQ.js +2 -0
- package/dist/chunk-IINZZ4BZ.js +2 -0
- package/dist/{chunk-UYI4WPNQ.js → chunk-IMDMRJQ6.js} +2 -2
- package/dist/chunk-IXW7FOGX.js +2 -0
- package/dist/chunk-IZ65ZPWY.js +3 -0
- package/dist/chunk-JD52IXON.js +9 -0
- package/dist/chunk-JGRXMTME.js +15 -0
- package/dist/{chunk-NBXYL2JT.js → chunk-JIRNI5TB.js} +7 -7
- package/dist/chunk-JNSWKGTB.js +2 -0
- package/dist/chunk-JPYW6U4D.js +2 -0
- package/dist/chunk-JQSLUGD4.js +3 -0
- package/dist/chunk-K45BKGB5.js +8 -0
- package/dist/chunk-KF4DKXSS.js +2 -0
- package/dist/chunk-KGNE5CIM.js +2 -0
- package/dist/chunk-KM3YCIDV.js +3 -0
- package/dist/chunk-KU3YHPWZ.js +2 -0
- package/dist/chunk-L4UVUFL6.js +3 -0
- package/dist/chunk-LCSJ7GOG.js +2 -0
- package/dist/chunk-LKQFG4RW.js +5 -0
- package/dist/chunk-LNNWCBPQ.js +2 -0
- package/dist/chunk-LRS5MGBY.js +3 -0
- package/dist/chunk-LRXBJTD4.js +4 -0
- package/dist/chunk-LSDJOVWW.js +6 -0
- package/dist/chunk-LWJRSUE2.js +2 -0
- package/dist/chunk-LX2I4JEH.js +2 -0
- package/dist/{chunk-K6VDRR3H.js → chunk-M6MBMRFR.js} +1 -1
- package/dist/chunk-MGNRNLBE.js +2 -0
- package/dist/chunk-MII3JOO3.js +4 -0
- package/dist/chunk-MNBGG4H3.js +16 -0
- package/dist/chunk-MYVKUJGS.js +2 -0
- package/dist/chunk-MYZHOBS4.js +2 -0
- package/dist/chunk-MZOIHUVX.js +27 -0
- package/dist/{chunk-OFRYEWZE.js → chunk-N3TCNZSX.js} +1 -1
- package/dist/chunk-NC7D7GOM.js +21 -0
- package/dist/{chunk-CLQP3DHT.js → chunk-NDEI7R4K.js} +1 -1
- package/dist/chunk-NFRA64NU.js +10 -0
- package/dist/chunk-NLZZLANH.js +4 -0
- package/dist/{chunk-5HOHXV2K.js → chunk-NQTYWHPB.js} +1 -1
- package/dist/chunk-NWBLYMH7.js +3 -0
- package/dist/chunk-NWD54VV5.js +2 -0
- package/dist/chunk-NXRF7FFS.js +2 -0
- package/dist/chunk-O3HHTKZ5.js +6 -0
- package/dist/{chunk-FPFS6OSR.js → chunk-OAKYUBD3.js} +1 -1
- package/dist/chunk-OEWYXCTA.js +7 -0
- package/dist/{chunk-BASTDR3M.js → chunk-OF7WPCTQ.js} +1 -1
- package/dist/chunk-OFSDB7B4.js +3 -0
- package/dist/chunk-OJ33Q6DU.js +2 -0
- package/dist/chunk-OQ5G773E.js +2 -0
- package/dist/chunk-OVNRRI4E.js +2 -0
- package/dist/{chunk-RAARDC2O.js → chunk-OZNBTSW5.js} +1 -1
- package/dist/chunk-P2ZQDQDB.js +2 -0
- package/dist/chunk-P7MSVLAH.js +6 -0
- package/dist/chunk-PUVMC4PX.js +26 -0
- package/dist/{chunk-SEEEGDVK.js → chunk-PZA3BSOE.js} +1 -1
- package/dist/chunk-Q3C6NDGI.js +2 -0
- package/dist/chunk-QCKA665H.js +2 -0
- package/dist/chunk-QDFY5GGO.js +5 -0
- package/dist/chunk-QHRUBG7J.js +2 -0
- package/dist/chunk-QI5RZ7LL.js +2 -0
- package/dist/chunk-QNLVC5ZB.js +2 -0
- package/dist/{chunk-DSKJ6J7Y.js → chunk-QQ4TKLWP.js} +1 -1
- package/dist/chunk-QS5ZJFGF.js +4 -0
- package/dist/chunk-QTZBVDPR.js +12 -0
- package/dist/chunk-QXQ7KVEN.js +2 -0
- package/dist/chunk-R4JUKTDO.js +2 -0
- package/dist/chunk-R7KXAISS.js +12 -0
- package/dist/chunk-RDP7GWSY.js +2 -0
- package/dist/chunk-REKHAN53.js +5 -0
- package/dist/{chunk-5RHR4DMF.js → chunk-RFEON5GN.js} +1 -1
- package/dist/chunk-RFIIM33J.js +2 -0
- package/dist/chunk-RG372DON.js +6 -0
- package/dist/chunk-RPRXRKKR.js +2 -0
- package/dist/chunk-RTVWQK7I.js +2 -0
- package/dist/chunk-RW3Z2HMB.js +7 -0
- package/dist/chunk-RX47NRSM.js +2 -0
- package/dist/chunk-RX6776AI.js +5 -0
- package/dist/chunk-S53AQU7R.js +6 -0
- package/dist/{chunk-HJX5PQRD.js → chunk-SA6IKFFD.js} +1 -1
- package/dist/{chunk-2MEQTHNI.js → chunk-SLKYD44Y.js} +1 -1
- package/dist/chunk-SMTBOSEJ.js +2 -0
- package/dist/chunk-SMXABALN.js +2 -0
- package/dist/chunk-SONMD3W5.js +5 -0
- package/dist/chunk-SWMTXMKB.js +2 -0
- package/dist/chunk-SXRHKXSE.js +2 -0
- package/dist/chunk-T3HEJASG.js +5 -0
- package/dist/chunk-T4AVLJCW.js +6 -0
- package/dist/{chunk-J6TBTWW7.js → chunk-T6K2MEWP.js} +1 -1
- package/dist/{chunk-D6BULK7E.js → chunk-T7H4LBFK.js} +1 -1
- package/dist/chunk-TNORODUF.js +2 -0
- package/dist/chunk-TW63WWEN.js +2 -0
- package/dist/chunk-UALJTPSA.js +18 -0
- package/dist/chunk-UAWWLLTI.js +2 -0
- package/dist/chunk-UEE3RZN4.js +14 -0
- package/dist/chunk-UTM7D4PI.js +2 -0
- package/dist/chunk-UUJIGOEO.js +2 -0
- package/dist/chunk-UYDHOHSZ.js +2 -0
- package/dist/chunk-V5JGXOV7.js +2 -0
- package/dist/chunk-V7S6S5W3.js +2 -0
- package/dist/{chunk-HBSYBL6J.js → chunk-VG44B5JD.js} +1 -1
- package/dist/chunk-VJGWVBZR.js +1 -0
- package/dist/chunk-VLDCHFXF.js +2 -0
- package/dist/chunk-VO66KP2W.js +2 -0
- package/dist/{chunk-D4XR7EEQ.js → chunk-VQLH63X7.js} +14 -12
- package/dist/chunk-VRIZDOO5.js +2 -0
- package/dist/chunk-VYHT2IET.js +1397 -0
- package/dist/chunk-VZJ6LUXX.js +2 -0
- package/dist/chunk-W3OVSDBN.js +29 -0
- package/dist/chunk-W7FLXW6Q.js +5 -0
- package/dist/{chunk-IEW7AW64.js → chunk-WEM3MOAL.js} +1 -1
- package/dist/chunk-WI7K6VKQ.js +2 -0
- package/dist/chunk-WMGKUERB.js +6 -0
- package/dist/{chunk-DFS4RMVP.js → chunk-WN5VKKJ3.js} +1 -1
- package/dist/chunk-WOSANGV6.js +5 -0
- package/dist/chunk-WYSZ6TPW.js +15 -0
- package/dist/chunk-XB6BJPDL.js +2 -0
- package/dist/{chunk-5ESGUPSR.js → chunk-XBEYWXPV.js} +1 -1
- package/dist/chunk-XIPKSXRQ.js +16 -0
- package/dist/chunk-XJ7HCXKW.js +2 -0
- package/dist/chunk-XMPTFXPW.js +5 -0
- package/dist/chunk-XZYA7DNH.js +2 -0
- package/dist/chunk-Y4T4SLDO.js +2 -0
- package/dist/chunk-Y6Y6RAY4.js +2 -0
- package/dist/chunk-YDPTSDIJ.js +2 -0
- package/dist/chunk-YDSGXB25.js +2 -0
- package/dist/chunk-YIKF4ERQ.js +375 -0
- package/dist/chunk-Z55KBMYV.js +2 -0
- package/dist/chunk-ZCRZFAOT.js +2 -0
- package/dist/chunk-ZFM77AQU.js +2 -0
- package/dist/{chunk-Q6F23V7L.js → chunk-ZFMRQ57Y.js} +1 -1
- package/dist/chunk-ZHWU6L2G.js +5 -0
- package/dist/chunk-ZTHYAHDN.js +17 -0
- package/dist/chunk-ZZP5SHUV.js +3 -0
- package/dist/committer-JGY66PFM.js +2 -0
- package/dist/config-5ZOALGKE.js +2 -0
- package/dist/controller-client-PB3AZAGG.js +2 -0
- package/dist/cover-cmd-UA2SVIZZ.js +2 -0
- package/dist/{credentials-PSQWWFGD.js → credentials-MRG452Y6.js} +1 -1
- package/dist/{deps-bundle-PPOQHJTB.js → deps-bundle-FWINW4XM.js} +1 -1
- package/dist/{deps-resolve-AX6ZAKLH.js → deps-resolve-IET4KIBO.js} +1 -1
- package/dist/descriptor-7T32VRMB.js +2 -0
- package/dist/design-chat-MM5PJD2N.js +2 -0
- package/dist/design-committer-TRYP3LOZ.js +2 -0
- package/dist/design-headless-FZONCKHW.js +2 -0
- package/dist/design-remote-SPVRIY2H.js +3 -0
- package/dist/device-env-LXJ65AVF.js +2 -0
- package/dist/dispatch-DVQ3H7EJ.js +2 -0
- package/dist/doctor-VAX2BWQF.js +2 -0
- package/dist/docx-convert-6IZO5P5K.js +2 -0
- package/dist/{dossier-7HVC6BNK.js → dossier-NROC2MCY.js} +1 -1
- package/dist/evidence-LVVK7ROT.js +2 -0
- package/dist/evidence-presentation-YYTIDCBS.js +2 -0
- package/dist/evolve-cmd-AGRKG7T3.js +2 -0
- package/dist/evolve-remote-BGHULJTL.js +2 -0
- package/dist/{exit-manager-ZLDO54S4.js → exit-manager-EDHCETUN.js} +1 -1
- package/dist/explain-DGJ5T6V5.js +2 -0
- package/dist/explain-cmd-VYAANFFZ.js +4 -0
- package/dist/explain-cmd-WOBGS6KX.js +12 -0
- package/dist/explore-LOKNOVNP.js +2 -0
- package/dist/explore-context-tty-JTZVZFOE.js +2 -0
- package/dist/explore-entry-5OGNLFAU.js +6 -0
- package/dist/explore-live-2XZHUYFS.js +5 -0
- package/dist/explore-run-tty-LGTIK2NA.js +5 -0
- package/dist/extract-bind-NM2BBK4I.js +14 -0
- package/dist/extract-chat-HLQMJJIC.js +2 -0
- package/dist/extract-cmd-T2TSAC3N.js +6 -0
- package/dist/extract-headless-OQTQ3FJK.js +2 -0
- package/dist/feeder-NY45UFJK.js +2 -0
- package/dist/folder-flags-WXUR6OPJ.js +2 -0
- package/dist/gaps-cmd-PTSKPTF7.js +3 -0
- package/dist/gate-P57VP4E5.js +2 -0
- package/dist/gate-WISOUTHQ.js +2 -0
- package/dist/{generate-headless-TEDHS3F2.js → generate-headless-JYZP6VXZ.js} +3 -3
- package/dist/headless-io-FFM5T6KL.js +2 -0
- package/dist/hold-passthrough-IOWPVB4W.js +2 -0
- package/dist/identity-HL5CJJXR.js +2 -0
- package/dist/index.js +194 -175
- package/dist/ingest-PDGS5ZTL.js +2 -0
- package/dist/ingest-cmd-LHCBMO4Z.js +8 -0
- package/dist/ingest-remote-D5TO5JQP.js +2 -0
- package/dist/ink-screen-RZ7QDIUI.js +2 -0
- package/dist/install-Z6K2D2VY.js +2 -0
- package/dist/interactive-bind-5EJQUGKI.js +26 -0
- package/dist/interactive-remote-D77ULJGL.js +65 -0
- package/dist/interrupt-guard-QETBPINI.js +2 -0
- package/dist/lane-AQYRIW24.js +2 -0
- package/dist/lattice-auth-74XGF77Y.js +2 -0
- package/dist/lifecycle-cmd-7SM6UCMH.js +2 -0
- package/dist/list-cmd-Z6FZXMFU.js +3 -0
- package/dist/list-commands-CZYZ7GIG.js +2 -0
- package/dist/list-remote-WOPOC6KK.js +15 -0
- package/dist/locks-cmd-JJ2QNTNY.js +2 -0
- package/dist/logical-ids-RXAQJZ3T.js +2 -0
- package/dist/login-flow-2FZEOVHM.js +2 -0
- package/dist/maintenance-cmd-VRTGZVRE.js +2 -0
- package/dist/mobile-prompts-KNAHU64X.js +2 -0
- package/dist/{next-KZXH4UA4.js → next-O6SUSX3R.js} +1 -1
- package/dist/{objective-variable-gate-JALOH6SL.js → objective-variable-gate-3Z7DNVVC.js} +1 -1
- package/dist/onboarding-LGT6PMDZ.js +5 -0
- package/dist/open-provider-OZAG6WZS.js +2 -0
- package/dist/{paths-JCYX6UWL.js → paths-UMIX3RJF.js} +1 -1
- package/dist/pdf-convert-447ACUB3.js +2 -0
- package/dist/persist-recorded-session-BX7II5P7.js +3 -0
- package/dist/phase-seed-LCJ4WSYV.js +2 -0
- package/dist/pipeline-IXVTVRS5.js +2 -0
- package/dist/prepare-target-ULMKVKMC.js +2 -0
- package/dist/pull-cmd-6AL2WYHB.js +2 -0
- package/dist/pull-route-TTVARJMV.js +2 -0
- package/dist/readmodel-INMP6MNW.js +2 -0
- package/dist/real-device-run-2LFS5WE2.js +2 -0
- package/dist/reconcile-cmd-R6H37SQR.js +5 -0
- package/dist/reconcile-deps-TWJ3FTSU.js +2 -0
- package/dist/reconcile-remote-GWDV5CUT.js +13 -0
- package/dist/recording-banner-ACC67Q2U.js +2 -0
- package/dist/registry-6IJYQXQC.js +2 -0
- package/dist/remote-entry-YL7O2NJQ.js +2 -0
- package/dist/remote-mode-7G6PLJCW.js +4 -0
- package/dist/remote-words-45USLRVN.js +2 -0
- package/dist/require-project-folder-A3UDRELU.js +2 -0
- package/dist/resolve-run-intent-ZGPSUBXV.js +2 -0
- package/dist/resolver-IPM6R7U4.js +2 -0
- package/dist/revert-FHOBLZWF.js +2 -0
- package/dist/review-cmd-NNT5C5RZ.js +5 -0
- package/dist/run-5RQUCNYP.js +2 -0
- package/dist/run-PC5YO4AS.js +2 -0
- package/dist/run-channel-63SVP5OI.js +2 -0
- package/dist/run-remote-3AYYVPKX.js +2 -0
- package/dist/run-startup-gate-NKRMKYBB.js +2 -0
- package/dist/run-test-md-HE6DUWQR.js +17 -0
- package/dist/scrollback-GGNBDFQV.js +2 -0
- package/dist/session-target-DD53UXO7.js +2 -0
- package/dist/session-worker.js +12 -0
- package/dist/sessions-CFV7FOIT.js +2 -0
- package/dist/sessions-cmd-GYMETJHG.js +26 -0
- package/dist/sessions-remote-GI7GOBMH.js +3 -0
- package/dist/shell-arg-FN3MT5U7.js +2 -0
- package/dist/{skill-installer-T2IOCPET.js → skill-installer-3QAVQGDH.js} +1 -1
- package/dist/spawner-C7NLLM4F.js +2 -0
- package/dist/store-X6XPFSKF.js +2 -0
- package/dist/store-choice-RT73HAI7.js +2 -0
- package/dist/store-guard-SNWKLHQV.js +2 -0
- package/dist/store-id-YZ5WKJ25.js +2 -0
- package/dist/store-site-KA2DNBGY.js +2 -0
- package/dist/stream-warnings-GEQKKJU7.js +2 -0
- package/dist/structured-answers-EQ2AP3F7.js +2 -0
- package/dist/sync-cmd-NBPPDG3B.js +2 -0
- package/dist/sync-setup-5NUCH6N3.js +2 -0
- package/dist/{sync-setup-ui-RC727VK6.js → sync-setup-ui-XITPGSO4.js} +2 -2
- package/dist/tcg-generate-Z23CUISY.js +2 -0
- package/dist/test-definition-VRI4YIYL.js +2 -0
- package/dist/testmd-actions-GH5BW5V5.js +2 -0
- package/dist/testmd-sync-ACKCIOL3.js +2 -0
- package/dist/tms-client-NXAB6VJD.js +2 -0
- package/dist/token-refresh-4UCYAG6A.js +2 -0
- package/dist/trust-gate-AT2XBWN4.js +2 -0
- package/dist/turn-preflight-LHYLRL7G.js +2 -0
- package/dist/ui-SNV3FD2G.js +4 -0
- package/dist/use-case-ref-NE4X4MZN.js +2 -0
- package/dist/validate-basic-RE2WLIGQ.js +2 -0
- package/dist/{variable-receipt-F55CSW5Z.js → variable-receipt-BXSZO36E.js} +1 -1
- package/dist/verdicts-XK3GAUX3.js +2 -0
- package/dist/version-check-4FJVZP3K.js +2 -0
- package/dist/{view-cmd-ELDKYRMZ.js → view-cmd-N47BQZPD.js} +4 -3
- package/dist/walk-session-DA7QWXSW.js +2 -0
- package/dist/with-telemetry-7V4LY2BG.js +2 -0
- package/package.json +11 -11
- package/dist/ChatSurface-GBZX4LWL.js +0 -8
- package/dist/ChromeProfilePicker-UONX2UVC.js +0 -2
- package/dist/CliFeedbackPrompt-6BJCNRNG.js +0 -2
- package/dist/CliUploadProgress-K4Z22DSY.js +0 -2
- package/dist/ConfigView-BB22G7JO.js +0 -2
- package/dist/EvidenceViewOffer-25IQF3TX.js +0 -2
- package/dist/FolderPicker-65JFR2NW.js +0 -2
- package/dist/InfoBox-OU5PLRIL.js +0 -2
- package/dist/LinksBox-DH7TSUXW.js +0 -2
- package/dist/ProfilesView-MGJKBOF5.js +0 -2
- package/dist/ProjectPicker-YFV6K77F.js +0 -2
- package/dist/SaveSessionPrompt-64QKQB6B.js +0 -2
- package/dist/ScrollbackTap-QHJOFYMC.js +0 -2
- package/dist/SingleShotApp-VYKUCRVW.js +0 -2
- package/dist/SummaryBox-DGS3LVRF.js +0 -2
- package/dist/TestMdRunView-LKAITAA4.js +0 -2
- package/dist/TestrunEvidenceTable-PHBAB4XQ.js +0 -2
- package/dist/WhoamiView-6HWPYN6Y.js +0 -2
- package/dist/app-client-ZCCNE3RV.js +0 -2
- package/dist/app-download-SQ2LYYL7.js +0 -2
- package/dist/auth-NWBIFCB7.js +0 -2
- package/dist/bind-S3IQTPNN.js +0 -15
- package/dist/bootstrap-RCV7PNMQ.js +0 -2
- package/dist/bridge-O7ENTV4K.js +0 -2
- package/dist/build-JIKYOZUH.js +0 -2
- package/dist/chat-committer-6D7AQI6Z.js +0 -2
- package/dist/chat-controller-UJQ6Z4RE.js +0 -2
- package/dist/chunk-2A7OQRAD.js +0 -17
- package/dist/chunk-2FH4HJYB.js +0 -5
- package/dist/chunk-2KVECC36.js +0 -2
- package/dist/chunk-2YEHV2CX.js +0 -2
- package/dist/chunk-3OKX64UR.js +0 -2
- package/dist/chunk-3UI5VTQS.js +0 -4
- package/dist/chunk-3UMVRJX3.js +0 -6
- package/dist/chunk-3VAU3PNU.js +0 -2
- package/dist/chunk-5EOX4MEY.js +0 -2
- package/dist/chunk-5LJRZI7S.js +0 -6
- package/dist/chunk-5UHY3PTQ.js +0 -3
- package/dist/chunk-5ZFOKYFB.js +0 -5
- package/dist/chunk-63DYVWNX.js +0 -2
- package/dist/chunk-6YZ3VP3E.js +0 -2
- package/dist/chunk-7KRY26OF.js +0 -4
- package/dist/chunk-7N6OCHPC.js +0 -7
- package/dist/chunk-A2SQD2AY.js +0 -4
- package/dist/chunk-AACQE24F.js +0 -2
- package/dist/chunk-AGDPEZXT.js +0 -4
- package/dist/chunk-AIK7BAME.js +0 -8
- package/dist/chunk-ATYXPCM6.js +0 -6
- package/dist/chunk-AXTPNZPX.js +0 -2
- package/dist/chunk-BB2W35TW.js +0 -2
- package/dist/chunk-BKM2LWU2.js +0 -3
- package/dist/chunk-BL5QHONU.js +0 -2
- package/dist/chunk-C44QQJR4.js +0 -239
- package/dist/chunk-C7NWWGLT.js +0 -6
- package/dist/chunk-CAJZQQ3G.js +0 -3
- package/dist/chunk-CSVPZ33X.js +0 -2
- package/dist/chunk-CXF6AZWY.js +0 -2
- package/dist/chunk-D6E6KRVX.js +0 -2
- package/dist/chunk-D7WG7SRA.js +0 -2
- package/dist/chunk-DDHGEJJP.js +0 -2
- package/dist/chunk-DUYRCVI5.js +0 -2
- package/dist/chunk-DWHF5HUD.js +0 -2
- package/dist/chunk-EM3PU2YW.js +0 -2
- package/dist/chunk-EVFFDODK.js +0 -5
- package/dist/chunk-EYOCNMUM.js +0 -2
- package/dist/chunk-F2OBORCG.js +0 -2
- package/dist/chunk-FMBPUXWL.js +0 -8
- package/dist/chunk-FORNRNHU.js +0 -2
- package/dist/chunk-FQJOWUEN.js +0 -2
- package/dist/chunk-FQNQVC5O.js +0 -5
- package/dist/chunk-FY7TCYPK.js +0 -6
- package/dist/chunk-HJGVM6TS.js +0 -370
- package/dist/chunk-HPHETGRE.js +0 -2
- package/dist/chunk-I7TIGB7K.js +0 -2
- package/dist/chunk-IGHK2ENL.js +0 -2
- package/dist/chunk-IICT4VOU.js +0 -2
- package/dist/chunk-IIDBLJ5A.js +0 -18
- package/dist/chunk-JFZA4UON.js +0 -9
- package/dist/chunk-K2UJYY2U.js +0 -2
- package/dist/chunk-KBM3XHAM.js +0 -2
- package/dist/chunk-KDNNMU7Q.js +0 -4
- package/dist/chunk-KJQNAOOE.js +0 -6
- package/dist/chunk-LF42V6P6.js +0 -7
- package/dist/chunk-LNFU4JZ7.js +0 -2
- package/dist/chunk-LNSBC32V.js +0 -2
- package/dist/chunk-LSDWPG6C.js +0 -2
- package/dist/chunk-MKMJOMLX.js +0 -8
- package/dist/chunk-MKQ7ZRDW.js +0 -2
- package/dist/chunk-MSGW4JDG.js +0 -2
- package/dist/chunk-MV3Q335C.js +0 -7
- package/dist/chunk-MWIE6LOZ.js +0 -4
- package/dist/chunk-MZ7W4WLF.js +0 -4
- package/dist/chunk-NIFJJX6N.js +0 -12
- package/dist/chunk-NJ4BXZBX.js +0 -2
- package/dist/chunk-NLCCBXXV.js +0 -2
- package/dist/chunk-ODU2JSMA.js +0 -8
- package/dist/chunk-OYKRCDT4.js +0 -15
- package/dist/chunk-Q2F5QB2W.js +0 -2
- package/dist/chunk-Q4YYAN6E.js +0 -2
- package/dist/chunk-Q6AHSGOE.js +0 -5
- package/dist/chunk-QAG67DUT.js +0 -2
- package/dist/chunk-QGXVQIN5.js +0 -27
- package/dist/chunk-QQCEP3QP.js +0 -2
- package/dist/chunk-QU7P7B3W.js +0 -4
- package/dist/chunk-RAPV3BTA.js +0 -98
- package/dist/chunk-RD72POF2.js +0 -2
- package/dist/chunk-RDHWNSDP.js +0 -7
- package/dist/chunk-RGRFL7XG.js +0 -29
- package/dist/chunk-RKXHVP2Z.js +0 -2
- package/dist/chunk-RMVASIVL.js +0 -35
- package/dist/chunk-RRY5IXOB.js +0 -2
- package/dist/chunk-RSSOJ3L2.js +0 -21
- package/dist/chunk-SB2SKN34.js +0 -2
- package/dist/chunk-SFFDVF3J.js +0 -9
- package/dist/chunk-T2ONUKTL.js +0 -5
- package/dist/chunk-TAOHYWEO.js +0 -2
- package/dist/chunk-U6OTFMIT.js +0 -4
- package/dist/chunk-UD7KKHPW.js +0 -5
- package/dist/chunk-UF4MU2AZ.js +0 -22
- package/dist/chunk-UQSVO7TY.js +0 -9
- package/dist/chunk-URWWROLS.js +0 -9
- package/dist/chunk-V4B5QA3U.js +0 -4
- package/dist/chunk-VACHFCNC.js +0 -21
- package/dist/chunk-VAN7ECN6.js +0 -2
- package/dist/chunk-VIO7CCFW.js +0 -5
- package/dist/chunk-VOYMN2WQ.js +0 -5
- package/dist/chunk-VVOKM2VO.js +0 -2
- package/dist/chunk-W5TTF7GB.js +0 -6
- package/dist/chunk-WESMQEPO.js +0 -2
- package/dist/chunk-WICJY6KL.js +0 -6
- package/dist/chunk-WJR2FU7S.js +0 -16
- package/dist/chunk-WVHMPIDQ.js +0 -2
- package/dist/chunk-X4NUVVCJ.js +0 -26
- package/dist/chunk-XLSOQLVT.js +0 -2
- package/dist/chunk-YCCUBQY4.js +0 -2
- package/dist/chunk-YFQGOOF7.js +0 -2
- package/dist/chunk-YI3H2UIB.js +0 -2
- package/dist/chunk-YKTYVJBN.js +0 -3
- package/dist/chunk-YLQHY4A7.js +0 -2
- package/dist/chunk-ZIHG6EKH.js +0 -2
- package/dist/chunk-ZKSN2SJ7.js +0 -2
- package/dist/chunk-ZLWURCJ7.js +0 -2
- package/dist/committer-2QPBANRD.js +0 -2
- package/dist/config-7E4NS553.js +0 -2
- package/dist/controller-client-ZF5IXRUV.js +0 -2
- package/dist/cover-cmd-6KZX46S2.js +0 -3
- package/dist/descriptor-3JJUOHBM.js +0 -2
- package/dist/design-committer-D44GSUXY.js +0 -2
- package/dist/device-env-TZQDB5T3.js +0 -2
- package/dist/dispatch-KMWEDMKE.js +0 -2
- package/dist/doctor-XDF3MA4W.js +0 -2
- package/dist/docx-convert-SQRTF7XS.js +0 -2
- package/dist/evidence-EUIDOVOR.js +0 -2
- package/dist/evidence-presentation-XF23B7F2.js +0 -2
- package/dist/evolve-cmd-QVTGTCJ5.js +0 -2
- package/dist/explain-NEFBUX5G.js +0 -2
- package/dist/explain-cmd-36SVSHU7.js +0 -9
- package/dist/explain-cmd-JAOHSI4F.js +0 -3
- package/dist/extract-bind-PLMSZKLZ.js +0 -14
- package/dist/extract-cmd-RJBHPPF3.js +0 -5
- package/dist/feeder-66TUPB2R.js +0 -2
- package/dist/gaps-cmd-3WZPDDYS.js +0 -3
- package/dist/gate-OYRDJMF6.js +0 -2
- package/dist/headless-io-75HUMWZB.js +0 -2
- package/dist/identity-ADZ4PAJF.js +0 -2
- package/dist/ingest-OSNNM3DH.js +0 -2
- package/dist/ingest-cmd-JDIOPJBN.js +0 -2
- package/dist/install-Y3VKFBK3.js +0 -2
- package/dist/interactive-bind-XUMKEGAN.js +0 -26
- package/dist/interrupt-guard-UREUWNRL.js +0 -2
- package/dist/lifecycle-cmd-FBDRFIOE.js +0 -2
- package/dist/list-cmd-TFUACRAM.js +0 -3
- package/dist/list-commands-OHIQFJGQ.js +0 -2
- package/dist/locks-cmd-67OHQZNV.js +0 -2
- package/dist/logical-ids-GLVM2SVR.js +0 -2
- package/dist/login-flow-OHNKSVYZ.js +0 -2
- package/dist/maintenance-cmd-7OSUIDL4.js +0 -2
- package/dist/mobile-prompts-DEVUZRG3.js +0 -2
- package/dist/open-provider-746LLSEO.js +0 -2
- package/dist/pdf-convert-RLXSXFWN.js +0 -2
- package/dist/persist-recorded-session-GPP6UKN6.js +0 -3
- package/dist/phase-seed-MKHEWUN6.js +0 -2
- package/dist/pipeline-QPTPZVUJ.js +0 -2
- package/dist/prepare-target-N7QRNYOS.js +0 -2
- package/dist/readmodel-FVLRQWZ7.js +0 -2
- package/dist/reconcile-cmd-SMGLHMLF.js +0 -2
- package/dist/reconcile-deps-DVIJK5UZ.js +0 -4
- package/dist/reconcile-engine-KL2J5SNQ.js +0 -2
- package/dist/recording-banner-TCFFB6KE.js +0 -2
- package/dist/records-LMCVKPE5.js +0 -2
- package/dist/registry-BFFA4YJK.js +0 -2
- package/dist/require-project-folder-2224ZMJ5.js +0 -2
- package/dist/resolve-run-intent-HFXGEOYK.js +0 -2
- package/dist/resolver-GJR2Z7JY.js +0 -2
- package/dist/revert-NOUECRW4.js +0 -2
- package/dist/review-cmd-CQE6SBZA.js +0 -5
- package/dist/run-BXKWDJFJ.js +0 -2
- package/dist/run-HSP2MZPU.js +0 -2
- package/dist/run-channel-RGH4WIQX.js +0 -2
- package/dist/run-test-md-2ELPAASM.js +0 -17
- package/dist/scrollback-JLPJR25X.js +0 -2
- package/dist/session-items-2ATN7VXG.js +0 -2
- package/dist/session-target-UWROGOCY.js +0 -2
- package/dist/sessions-NH7WQWMX.js +0 -2
- package/dist/sessions-cmd-IV25N2L7.js +0 -25
- package/dist/spawner-HQM2757J.js +0 -2
- package/dist/store-guard-NAW26EEQ.js +0 -2
- package/dist/store-id-EOSGEKVK.js +0 -2
- package/dist/structured-answers-ZI2B6JJE.js +0 -2
- package/dist/sync-cmd-Q6ZYEVWI.js +0 -2
- package/dist/sync-setup-CA362C5S.js +0 -2
- package/dist/tcg-generate-CDB2N5LD.js +0 -2
- package/dist/testmd-actions-BDWDE2TG.js +0 -2
- package/dist/testmd-sync-EPTUVJYJ.js +0 -2
- package/dist/tms-client-KU6HCA23.js +0 -2
- package/dist/token-refresh-TKBOHXSD.js +0 -2
- package/dist/trust-gate-EX7R2P4Y.js +0 -2
- package/dist/turn-preflight-JGYT7LXP.js +0 -2
- package/dist/ui-JEJGTURD.js +0 -4
- package/dist/validate-basic-V7R4RH5M.js +0 -2
- package/dist/verdicts-7IUZFXB4.js +0 -2
- package/dist/version-check-PUUSB7AY.js +0 -2
- package/dist/walk-session-EGIMA4VG.js +0 -2
- package/dist/with-telemetry-LRWWBISP.js +0 -2
- /package/dist/{chunk-BKHXPBWN.js → chunk-2RUSXQ3O.js} +0 -0
- /package/dist/{chunk-6J5T5FEY.js → chunk-3AGP2BVN.js} +0 -0
- /package/dist/{chunk-CH273NAE.js → chunk-73Y6T2UK.js} +0 -0
- /package/dist/{chunk-ZMNJBUAO.js → chunk-73ZFOJOK.js} +0 -0
- /package/dist/{chunk-N2P4MI32.js → chunk-FWGUISUG.js} +0 -0
- /package/dist/{chunk-UJZZDPDY.js → chunk-HD6NR44L.js} +0 -0
- /package/dist/{chunk-LDPLJFCV.js → chunk-I6S6DZ2E.js} +0 -0
- /package/dist/{chunk-427OQS2N.js → chunk-LD5B3QFW.js} +0 -0
- /package/dist/{chunk-2UIHS2FH.js → chunk-PGESS7BW.js} +0 -0
- /package/dist/{chunk-BZAGVBCX.js → chunk-ZCIWQHCO.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as
|
|
3
|
-
%s`,v,v,b,n);let O=b.type==="*"?ta:b.type==="?"?na:"\\"+b.type;s=!0,n=n.slice(0,b.reStart)+O+"\\("+v}E(),o&&(n+="\\\\");let A=jE[n.charAt(0)];for(let v=l.length-1;v>-1;v--){let O=l[v],w=n.slice(0,O.reStart),T=n.slice(O.reStart,O.reEnd-8),R=n.slice(O.reEnd),N=n.slice(O.reEnd-8,O.reEnd)+R,G=w.split(")").length,ue=w.split("(").length-G,K=R;for(let V=0;V<ue;V++)K=K.replace(/\)[+*?]?/,"");R=K;let te=R===""&&r!==ra?"(?:$|\\/)":"";n=w+T+R+te+N}if(n!==""&&s&&(n="(?=.)"+n),A&&(n=m()+n),r===ra)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return UE(e);let L=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",L),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?ta:r.dot?FE:BE,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?zE(a):a===Re?Re:a._src).reduce((a,l)=>(a[a.length-1]===Re&&l===Re||a.push(l),a),[]),o.forEach((a,l)=>{a!==Re||o[l-1]===Re||(l===0?o.length>1?o[l+1]="(?:\\/|"+i+"\\/)?"+o[l+1]:o[l]=i:l===o.length-1?o[l-1]+="(?:\\/|"+i+")?":(o[l-1]+="(?:\\/|\\/"+i+"\\/)"+o[l+1],o[l+1]=Re))}),o.filter(a=>a!==Re).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;ia.sep!=="/"&&(e=e.split(ia.sep).join("/")),e=e.split(Mh),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],l=e;if(i.matchBase&&a.length===1&&(l=[s]),this.matchOne(l,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Ne.defaults(e).Minimatch}};Ne.Minimatch=wr});var Uh=p((hB,Wh)=>{"use strict";Wh.exports=jh;var aa=I("fs"),{EventEmitter:HE}=I("events"),{Minimatch:oa}=qh(),{resolve:VE}=I("path");function YE(t,e){return new Promise((r,i)=>{aa.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function Fh(t,e){return new Promise((r,i)=>{(e?aa.stat:aa.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?Fh(t,!1):null):r(null):r(o)})})}async function*Bh(t,e,r,i,n,s){let o=await YE(e+t,s);for(let a of o){let l=a.name;l===void 0&&(l=a,i=!0);let u=t+"/"+l,f=u.slice(1),h=e+"/"+f,c=null;(i||r)&&(c=await Fh(h,r)),!c&&a.name!==void 0&&(c=a),c===null&&(c={isDirectory:()=>!1}),c.isDirectory()?n(f)||(yield{relative:f,absolute:h,stats:c},yield*Bh(u,e,r,i,n,!1)):yield{relative:f,absolute:h,stats:c}}}async function*ZE(t,e,r,i){yield*Bh("",t,e,r,i,!0)}function KE(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Mn=class extends HE{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=KE(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new oa(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new oa(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new oa(s,{dot:!0}))}this.iterator=ZE(VE(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function jh(t,e,r){return new Mn(t,e,r)}jh.ReaddirGlob=Mn});var jc={};RE(jc,{all:()=>ya,allLimit:()=>ma,allSeries:()=>_a,any:()=>Ta,anyLimit:()=>Aa,anySeries:()=>Ra,apply:()=>Yh,applyEach:()=>ec,applyEachSeries:()=>tc,asyncify:()=>kn,auto:()=>Ia,autoInject:()=>rc,cargo:()=>ic,cargoQueue:()=>nc,compose:()=>sc,concat:()=>fa,concatLimit:()=>yi,concatSeries:()=>ha,constant:()=>oc,default:()=>t1,detect:()=>ca,detectLimit:()=>da,detectSeries:()=>pa,dir:()=>lc,doDuring:()=>qn,doUntil:()=>uc,doWhilst:()=>qn,during:()=>Un,each:()=>ga,eachLimit:()=>Fn,eachOf:()=>Fe,eachOfLimit:()=>gi,eachOfSeries:()=>Xe,eachSeries:()=>Bn,ensureAsync:()=>Na,every:()=>ya,everyLimit:()=>ma,everySeries:()=>_a,filter:()=>ba,filterLimit:()=>wa,filterSeries:()=>Sa,find:()=>ca,findLimit:()=>da,findSeries:()=>pa,flatMap:()=>fa,flatMapLimit:()=>yi,flatMapSeries:()=>ha,foldl:()=>Sr,foldr:()=>va,forEach:()=>ga,forEachLimit:()=>Fn,forEachOf:()=>Fe,forEachOfLimit:()=>gi,forEachOfSeries:()=>Xe,forEachSeries:()=>Bn,forever:()=>hc,groupBy:()=>cc,groupByLimit:()=>Vn,groupBySeries:()=>dc,inject:()=>Sr,log:()=>pc,map:()=>$n,mapLimit:()=>bi,mapSeries:()=>Da,mapValues:()=>gc,mapValuesLimit:()=>Yn,mapValuesSeries:()=>yc,memoize:()=>mc,nextTick:()=>_c,parallel:()=>bc,parallelLimit:()=>wc,priorityQueue:()=>Sc,queue:()=>Ca,race:()=>Ec,reduce:()=>Sr,reduceRight:()=>va,reflect:()=>jn,reflectAll:()=>vc,reject:()=>xc,rejectLimit:()=>Tc,rejectSeries:()=>Ac,retry:()=>Wn,retryable:()=>Dc,select:()=>ba,selectLimit:()=>wa,selectSeries:()=>Sa,seq:()=>Pa,series:()=>Ic,setImmediate:()=>Rt,some:()=>Ta,someLimit:()=>Aa,someSeries:()=>Ra,sortBy:()=>Lc,timeout:()=>Pc,times:()=>Nc,timesLimit:()=>Zn,timesSeries:()=>Mc,transform:()=>Cc,tryEach:()=>kc,unmemoize:()=>qc,until:()=>Fc,waterfall:()=>Bc,whilst:()=>Un,wrapSync:()=>kn});function Yh(t,...e){return(...r)=>t(...e,...r)}function mi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function Qh(t){setTimeout(t,0)}function Xh(t){return(e,...r)=>t(()=>e(...r))}function kn(t){return _i(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return Gh(i,r)}:mi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return Gh(i,r);r(null,i)})}function Gh(t,e){return t.then(r=>{zh(e,null,r)},r=>{zh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function zh(t,e,r){try{t(e,r)}catch(i){Rt(n=>{throw n},i)}}function _i(t){return t[Symbol.toStringTag]==="AsyncFunction"}function XE(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function JE(t){return typeof t[Symbol.asyncIterator]=="function"}function q(t){if(typeof t!="function")throw new Error("expected a function");return _i(t)?kn(t):t}function k(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((n,s)=>{i[e-1]=(o,...a)=>{if(o)return s(o);n(a.length>1?a:a[0])},t.apply(this,i)})}return r}function Jh(t){return function(r,...i){return k(function(s){var o=this;return t(r,(a,l)=>{q(a).apply(o,i.concat(l))},s)})}}function Oa(t,e,r,i){e=e||[];var n=[],s=0,o=q(r);return t(e,(a,l,u)=>{var f=s++;o(a,(h,c)=>{n[f]=c,u(h)})},a=>{i(a,n)})}function Gn(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}function Ot(t){function e(...r){if(t!==null){var i=t;t=null,i.apply(this,r)}}return Object.assign(e,t),e}function ev(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function tv(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function rv(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function iv(t){var e=t?Object.keys(t):[],r=-1,i=e.length;return function n(){var s=e[++r];return s==="__proto__"?n():r<i?{value:t[s],key:s}:null}}function nv(t){if(Gn(t))return tv(t);var e=ev(t);return e?rv(e):iv(t)}function Dt(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}function $h(t,e,r,i){let n=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||n||(o=!0,t.next().then(({value:c,done:d})=>{if(!(s||n)){if(o=!1,d){n=!0,a<=0&&i(null);return}a++,r(c,l,f),l++,u()}}).catch(h))}function f(c,d){if(a-=1,!s){if(c)return h(c);if(c===!1){n=!0,s=!0;return}if(d===zn||n&&a<=0)return n=!0,i(null);u()}}function h(c){s||(o=!1,n=!0,i(c))}u()}function sv(t,e,r,i){return $e(e)(t,q(r),i)}function ov(t,e,r){r=Ot(r);var i=0,n=0,{length:s}=t,o=!1;s===0&&r(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?r(l):(++n===s||u===zn)&&r(null))}for(;i<s;i++)e(t[i],i,Dt(a))}function av(t,e,r){return gi(t,1/0,e,r)}function lv(t,e,r){var i=Gn(t)?ov:av;return i(t,q(e),r)}function uv(t,e,r){return Oa(Fe,t,e,r)}function fv(t,e,r){return gi(t,1,e,r)}function hv(t,e,r){return Oa(Xe,t,e,r)}function Er(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[vr]=new Promise((i,n)=>{t=i,e=n}),r}function Ia(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||Er());var i=Object.keys(t).length;if(!i)return r(null);e||(e=i);var n={},s=0,o=!1,a=!1,l=Object.create(null),u=[],f=[],h={};Object.keys(t).forEach(S=>{var E=t[S];if(!Array.isArray(E)){c(S,[E]),f.push(S);return}var A=E.slice(0,E.length-1),L=A.length;if(L===0){c(S,E),f.push(S);return}h[S]=L,A.forEach(v=>{if(!t[v])throw new Error("async.auto task `"+S+"` has a non-existent dependency `"+v+"` in "+A.join(", "));b(v,()=>{L--,L===0&&c(S,E)})})}),y(),d();function c(S,E){u.push(()=>x(S,E))}function d(){if(!o){if(u.length===0&&s===0)return r(null,n);for(;u.length&&s<e;){var S=u.shift();S()}}}function b(S,E){var A=l[S];A||(A=l[S]=[]),A.push(E)}function g(S){var E=l[S]||[];E.forEach(A=>A()),d()}function x(S,E){if(!a){var A=Dt((v,...O)=>{if(s--,v===!1){o=!0;return}if(O.length<2&&([O]=O),v){var w={};if(Object.keys(n).forEach(T=>{w[T]=n[T]}),w[S]=O,a=!0,l=Object.create(null),o)return;r(v,w)}else n[S]=O,g(S)});s++;var L=q(E[E.length-1]);E.length>1?L(n,A):L(A)}}function y(){for(var S,E=0;f.length;)S=f.pop(),E++,m(S).forEach(A=>{--h[A]===0&&f.push(A)});if(E!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function m(S){var E=[];return Object.keys(t).forEach(A=>{let L=t[A];Array.isArray(L)&&L.indexOf(S)>=0&&E.push(A)}),E}return r[vr]}function yv(t){let e="",r=0,i=t.indexOf("*/");for(;r<t.length;)if(t[r]==="/"&&t[r+1]==="/"){let n=t.indexOf(`
|
|
4
|
-
`,r);r=n===-1?t.length:n}else if(i!==-1&&t[r]==="/"&&t[r+1]==="*"){let n=t.indexOf("*/",r);n!==-1?(r=n+2,i=t.indexOf("*/",r)):(e+=t[r],r++)}else e+=t[r],r++;return e}function
|
|
2
|
+
import{a as I,b as TE,c as p,d as AE,f as RE}from"./chunk-UR6MHSHU.js";var _h=p((sB,mh)=>{"use strict";var OE=typeof process=="object"&&process&&process.platform==="win32";mh.exports=OE?{sep:"\\"}:{sep:"/"}});var vh=p((oB,Eh)=>{"use strict";Eh.exports=wh;function wh(t,e,r){t instanceof RegExp&&(t=bh(t,r)),e instanceof RegExp&&(e=bh(e,r));var i=Sh(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function bh(t,e){var r=e.match(t);return r?r[0]:null}wh.range=Sh;function Sh(t,e,r){var i,n,s,o,a,l=r.indexOf(t),u=r.indexOf(e,l+1),f=l;if(l>=0&&u>0){if(t===e)return[l,u];for(i=[],s=r.length;f>=0&&!a;)f==l?(i.push(f),l=r.indexOf(t,f+1)):i.length==1?a=[i.pop(),u]:(n=i.pop(),n<s&&(s=n,o=u),u=r.indexOf(e,f+1)),f=l<u&&l>=0?l:u;i.length&&(a=[s,o])}return a}});var ea=p((aB,Ih)=>{"use strict";var xh=vh();Ih.exports=LE;var Th="\0SLASH"+Math.random()+"\0",Ah="\0OPEN"+Math.random()+"\0",Jo="\0CLOSE"+Math.random()+"\0",Rh="\0COMMA"+Math.random()+"\0",Oh="\0PERIOD"+Math.random()+"\0";function Xo(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function DE(t){return t.split("\\\\").join(Th).split("\\{").join(Ah).split("\\}").join(Jo).split("\\,").join(Rh).split("\\.").join(Oh)}function IE(t){return t.split(Th).join("\\").split(Ah).join("{").split(Jo).join("}").split(Rh).join(",").split(Oh).join(".")}function Dh(t){if(!t)return[""];var e=[],r=xh("{","}",t);if(!r)return t.split(",");var i=r.pre,n=r.body,s=r.post,o=i.split(",");o[o.length-1]+="{"+n+"}";var a=Dh(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function LE(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),di(DE(t),!0).map(IE)):[]}function NE(t){return"{"+t+"}"}function PE(t){return/^-?0\d/.test(t)}function ME(t,e){return t<=e}function CE(t,e){return t>=e}function di(t,e){var r=[],i=xh("{","}",t);if(!i)return[t];var n=i.pre,s=i.post.length?di(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=n+"{"+i.body+"}"+s[o];r.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=l||u,h=i.body.indexOf(",")>=0;if(!f&&!h)return i.post.match(/,(?!,).*\}/)?(t=i.pre+"{"+i.body+Jo+i.post,di(t)):[t];var c;if(f)c=i.body.split(/\.\./);else if(c=Dh(i.body),c.length===1&&(c=di(c[0],!1).map(NE),c.length===1))return s.map(function(T){return i.pre+c[0]+T});var d;if(f){var b=Xo(c[0]),g=Xo(c[1]),x=Math.max(c[0].length,c[1].length),y=c.length==3?Math.max(Math.abs(Xo(c[2])),1):1,m=ME,S=g<b;S&&(y*=-1,m=CE);var E=c.some(PE);d=[];for(var A=b;m(A,g);A+=y){var L;if(u)L=String.fromCharCode(A),L==="\\"&&(L="");else if(L=String(A),E){var v=x-L.length;if(v>0){var O=new Array(v+1).join("0");A<0?L="-"+O+L.slice(1):L=O+L}}d.push(L)}}else{d=[];for(var w=0;w<c.length;w++)d.push.apply(d,di(c[w],!1))}for(var w=0;w<d.length;w++)for(var o=0;o<s.length;o++){var a=n+d[w]+s[o];(!e||f||a)&&r.push(a)}}return r}});var kh=p((uB,sa)=>{"use strict";var Pe=sa.exports=(t,e,r={})=>(Pn(e),!r.nocomment&&e.charAt(0)==="#"?!1:new wr(e,r).match(t));sa.exports=Pe;var ia=_h();Pe.sep=ia.sep;var Re=Symbol("globstar **");Pe.GLOBSTAR=Re;var kE=ea(),Lh={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},na="[^/]",ta=na+"*?",qE="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",FE="(?:(?!(?:\\/|^)\\.).)*?",Mh=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),Nh=Mh("().*{}+?[]^$\\!"),BE=Mh("[.("),Ph=/\/+/;Pe.filter=(t,e={})=>(r,i,n)=>Pe(r,t,e);var At=(t,e={})=>{let r={};return Object.keys(t).forEach(i=>r[i]=t[i]),Object.keys(e).forEach(i=>r[i]=e[i]),r};Pe.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Pe;let e=Pe,r=(i,n,s)=>e(i,n,At(t,s));return r.Minimatch=class extends e.Minimatch{constructor(n,s){super(n,At(t,s))}},r.Minimatch.defaults=i=>e.defaults(At(t,i)).Minimatch,r.filter=(i,n)=>e.filter(i,At(t,n)),r.defaults=i=>e.defaults(At(t,i)),r.makeRe=(i,n)=>e.makeRe(i,At(t,n)),r.braceExpand=(i,n)=>e.braceExpand(i,At(t,n)),r.match=(i,n,s)=>e.match(i,n,At(t,s)),r};Pe.braceExpand=(t,e)=>Ch(t,e);var Ch=(t,e={})=>(Pn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:kE(t)),jE=1024*64,Pn=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>jE)throw new TypeError("pattern is too long")},ra=Symbol("subparse");Pe.makeRe=(t,e)=>new wr(t,e||{}).makeRe();Pe.match=(t,e,r={})=>{let i=new wr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};var WE=t=>t.replace(/\\(.)/g,"$1"),UE=t=>t.replace(/\\([^-\]])/g,"$1"),GE=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),zE=t=>t.replace(/[[\]\\]/g,"\\$&"),wr=class{constructor(e,r){Pn(e),r||(r={}),this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion!==void 0?r.maxGlobstarRecursion:200,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();r.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,i),i=this.globParts=i.map(n=>n.split(Ph)),this.debug(this.pattern,i),i=i.map((n,s,o)=>n.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(n=>n.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i){return r.indexOf(Re)!==-1?this._matchGlobstar(e,r,i,0,0):this._matchOne(e,r,i,0,0)}_matchGlobstar(e,r,i,n,s){let o=-1;for(let m=s;m<r.length;m++)if(r[m]===Re){o=m;break}let a=-1;for(let m=r.length-1;m>=0;m--)if(r[m]===Re){a=m;break}let l=r.slice(s,o),u=i?r.slice(o+1):r.slice(o+1,a),f=i?[]:r.slice(a+1);if(l.length){let m=e.slice(n,n+l.length);if(!this._matchOne(m,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let m=e.length-f.length;if(this._matchOne(e,f,i,m,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||!this._matchOne(e,f,i,m-1,0))return!1;h=f.length+1}}if(!u.length){let m=!!h;for(let S=n;S<e.length-h;S++){let E=String(e[S]);if(m=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return i||m}let c=[[[],0]],d=c[0],b=0,g=[0];for(let m of u)m===Re?(g.push(b),d=[[],0],c.push(d)):(d[0].push(m),b++);let x=c.length-1,y=e.length-h;for(let m of c)m[1]=y-(g[x--]+m[0].length);return!!this._matchGlobStarBodySections(e,c,n,0,i,0,!!h)}_matchGlobStarBodySections(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let h=i;h<e.length;h++){a=!0;let c=e[h];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return a}let[u,f]=l;for(;i<=f;){if(this._matchOne(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this._matchGlobStarBodySections(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let c=e[i];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;i++}return s||null}_matchOne(e,r,i,n,s){let o,a,l,u;for(o=n,a=s,l=e.length,u=r.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");let f=r[a],h=e[o];if(this.debug(r,f,h),f===!1||f===Re)return!1;let c;if(typeof f=="string"?(c=h===f,this.debug("string match",f,h,c)):(c=h.match(f),this.debug("pattern match",f,h,c)),!c)return!1}if(o===l&&a===u)return!0;if(o===l)return i;if(a===u)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return Ch(this.pattern,this.options)}parse(e,r){Pn(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Re;if(e==="")return"";let n="",s=!1,o=!1,a=[],l=[],u,f=!1,h=-1,c=-1,d,b,g,x=e.charAt(0)===".",y=i.dot||x,m=()=>x?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=v=>v.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=()=>{if(u){switch(u){case"*":n+=ta,s=!0;break;case"?":n+=na,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let v=0,O;v<e.length&&(O=e.charAt(v));v++){if(this.debug("%s %s %s %j",e,v,n,O),o){if(O==="/")return!1;Nh[O]&&(n+="\\"),n+=O,o=!1;continue}switch(O){case"/":return!1;case"\\":if(f&&e.charAt(v+1)==="-"){n+=O;continue}E(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,v,n,O),f){this.debug(" in class"),O==="!"&&v===c+1&&(O="^"),n+=O;continue}if(O==="*"&&u==="*")continue;this.debug("call clearStateChar %j",u),E(),u=O,i.noext&&E();continue;case"(":{if(f){n+="(";continue}if(!u){n+="\\(";continue}let w={type:u,start:v-1,reStart:n.length,open:Lh[u].open,close:Lh[u].close};this.debug(this.pattern," ",w),a.push(w),n+=w.open,w.start===0&&w.type!=="!"&&(x=!0,n+=S(e.slice(v+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let w=a[a.length-1];if(f||!w){n+="\\)";continue}a.pop(),E(),s=!0,b=w,n+=b.close,b.type==="!"&&l.push(Object.assign(b,{reEnd:n.length}));continue}case"|":{let w=a[a.length-1];if(f||!w){n+="\\|";continue}E(),n+="|",w.start===0&&w.type!=="!"&&(x=!0,n+=S(e.slice(v+1)));continue}case"[":if(E(),f){n+="\\"+O;continue}f=!0,c=v,h=n.length,n+=O;continue;case"]":if(v===c+1||!f){n+="\\"+O;continue}d=e.substring(c+1,v);try{RegExp("["+zE(UE(d))+"]"),n+=O}catch{n=n.substring(0,h)+"(?:$.)"}s=!0,f=!1;continue;default:E(),Nh[O]&&!(O==="^"&&f)&&(n+="\\"),n+=O;break}}for(f&&(d=e.slice(c+1),g=this.parse(d,ra),n=n.substring(0,h)+"\\["+g[0],s=s||g[1]),b=a.pop();b;b=a.pop()){let v;v=n.slice(b.reStart+b.open.length),this.debug("setting tail",n,b),v=v.replace(/((?:\\{2}){0,64})(\\?)\|/g,(w,T,R)=>(R||(R="\\"),T+T+R+"|")),this.debug(`tail=%j
|
|
3
|
+
%s`,v,v,b,n);let O=b.type==="*"?ta:b.type==="?"?na:"\\"+b.type;s=!0,n=n.slice(0,b.reStart)+O+"\\("+v}E(),o&&(n+="\\\\");let A=BE[n.charAt(0)];for(let v=l.length-1;v>-1;v--){let O=l[v],w=n.slice(0,O.reStart),T=n.slice(O.reStart,O.reEnd-8),R=n.slice(O.reEnd),P=n.slice(O.reEnd-8,O.reEnd)+R,G=w.split(")").length,ue=w.split("(").length-G,K=R;for(let V=0;V<ue;V++)K=K.replace(/\)[+*?]?/,"");R=K;let te=R===""&&r!==ra?"(?:$|\\/)":"";n=w+T+R+te+P}if(n!==""&&s&&(n="(?=.)"+n),A&&(n=m()+n),r===ra)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return WE(e);let L=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",L),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?ta:r.dot?qE:FE,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?GE(a):a===Re?Re:a._src).reduce((a,l)=>(a[a.length-1]===Re&&l===Re||a.push(l),a),[]),o.forEach((a,l)=>{a!==Re||o[l-1]===Re||(l===0?o.length>1?o[l+1]="(?:\\/|"+i+"\\/)?"+o[l+1]:o[l]=i:l===o.length-1?o[l-1]+="(?:\\/|"+i+")?":(o[l-1]+="(?:\\/|\\/"+i+"\\/)"+o[l+1],o[l+1]=Re))}),o.filter(a=>a!==Re).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;ia.sep!=="/"&&(e=e.split(ia.sep).join("/")),e=e.split(Ph),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],l=e;if(i.matchBase&&a.length===1&&(l=[s]),this.matchOne(l,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Pe.defaults(e).Minimatch}};Pe.Minimatch=wr});var Wh=p((fB,jh)=>{"use strict";jh.exports=Bh;var aa=I("fs"),{EventEmitter:$E}=I("events"),{Minimatch:oa}=kh(),{resolve:HE}=I("path");function VE(t,e){return new Promise((r,i)=>{aa.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function qh(t,e){return new Promise((r,i)=>{(e?aa.stat:aa.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?qh(t,!1):null):r(null):r(o)})})}async function*Fh(t,e,r,i,n,s){let o=await VE(e+t,s);for(let a of o){let l=a.name;l===void 0&&(l=a,i=!0);let u=t+"/"+l,f=u.slice(1),h=e+"/"+f,c=null;(i||r)&&(c=await qh(h,r)),!c&&a.name!==void 0&&(c=a),c===null&&(c={isDirectory:()=>!1}),c.isDirectory()?n(f)||(yield{relative:f,absolute:h,stats:c},yield*Fh(u,e,r,i,n,!1)):yield{relative:f,absolute:h,stats:c}}}async function*YE(t,e,r,i){yield*Fh("",t,e,r,i,!0)}function ZE(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Mn=class extends $E{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=ZE(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new oa(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new oa(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new oa(s,{dot:!0}))}this.iterator=YE(HE(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function Bh(t,e,r){return new Mn(t,e,r)}Bh.ReaddirGlob=Mn});var Bc={};AE(Bc,{all:()=>ya,allLimit:()=>ma,allSeries:()=>_a,any:()=>Ta,anyLimit:()=>Aa,anySeries:()=>Ra,apply:()=>Vh,applyEach:()=>Jh,applyEachSeries:()=>ec,asyncify:()=>kn,auto:()=>Ia,autoInject:()=>tc,cargo:()=>rc,cargoQueue:()=>ic,compose:()=>nc,concat:()=>fa,concatLimit:()=>yi,concatSeries:()=>ha,constant:()=>sc,default:()=>e1,detect:()=>ca,detectLimit:()=>da,detectSeries:()=>pa,dir:()=>ac,doDuring:()=>qn,doUntil:()=>lc,doWhilst:()=>qn,during:()=>Un,each:()=>ga,eachLimit:()=>Fn,eachOf:()=>Fe,eachOfLimit:()=>gi,eachOfSeries:()=>Xe,eachSeries:()=>Bn,ensureAsync:()=>Pa,every:()=>ya,everyLimit:()=>ma,everySeries:()=>_a,filter:()=>ba,filterLimit:()=>wa,filterSeries:()=>Sa,find:()=>ca,findLimit:()=>da,findSeries:()=>pa,flatMap:()=>fa,flatMapLimit:()=>yi,flatMapSeries:()=>ha,foldl:()=>Sr,foldr:()=>va,forEach:()=>ga,forEachLimit:()=>Fn,forEachOf:()=>Fe,forEachOfLimit:()=>gi,forEachOfSeries:()=>Xe,forEachSeries:()=>Bn,forever:()=>fc,groupBy:()=>hc,groupByLimit:()=>Vn,groupBySeries:()=>cc,inject:()=>Sr,log:()=>dc,map:()=>$n,mapLimit:()=>bi,mapSeries:()=>Da,mapValues:()=>pc,mapValuesLimit:()=>Yn,mapValuesSeries:()=>gc,memoize:()=>yc,nextTick:()=>mc,parallel:()=>_c,parallelLimit:()=>bc,priorityQueue:()=>wc,queue:()=>Ca,race:()=>Sc,reduce:()=>Sr,reduceRight:()=>va,reflect:()=>jn,reflectAll:()=>Ec,reject:()=>vc,rejectLimit:()=>xc,rejectSeries:()=>Tc,retry:()=>Wn,retryable:()=>Oc,select:()=>ba,selectLimit:()=>wa,selectSeries:()=>Sa,seq:()=>Na,series:()=>Dc,setImmediate:()=>Rt,some:()=>Ta,someLimit:()=>Aa,someSeries:()=>Ra,sortBy:()=>Ic,timeout:()=>Lc,times:()=>Nc,timesLimit:()=>Zn,timesSeries:()=>Pc,transform:()=>Mc,tryEach:()=>Cc,unmemoize:()=>kc,until:()=>qc,waterfall:()=>Fc,whilst:()=>Un,wrapSync:()=>kn});function Vh(t,...e){return(...r)=>t(...e,...r)}function mi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function Kh(t){setTimeout(t,0)}function Qh(t){return(e,...r)=>t(()=>e(...r))}function kn(t){return _i(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return Uh(i,r)}:mi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return Uh(i,r);r(null,i)})}function Uh(t,e){return t.then(r=>{Gh(e,null,r)},r=>{Gh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function Gh(t,e,r){try{t(e,r)}catch(i){Rt(n=>{throw n},i)}}function _i(t){return t[Symbol.toStringTag]==="AsyncFunction"}function QE(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function XE(t){return typeof t[Symbol.asyncIterator]=="function"}function q(t){if(typeof t!="function")throw new Error("expected a function");return _i(t)?kn(t):t}function k(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((n,s)=>{i[e-1]=(o,...a)=>{if(o)return s(o);n(a.length>1?a:a[0])},t.apply(this,i)})}return r}function Xh(t){return function(r,...i){return k(function(s){var o=this;return t(r,(a,l)=>{q(a).apply(o,i.concat(l))},s)})}}function Oa(t,e,r,i){e=e||[];var n=[],s=0,o=q(r);return t(e,(a,l,u)=>{var f=s++;o(a,(h,c)=>{n[f]=c,u(h)})},a=>{i(a,n)})}function Gn(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}function Ot(t){function e(...r){if(t!==null){var i=t;t=null,i.apply(this,r)}}return Object.assign(e,t),e}function JE(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function ev(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function tv(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function rv(t){var e=t?Object.keys(t):[],r=-1,i=e.length;return function n(){var s=e[++r];return s==="__proto__"?n():r<i?{value:t[s],key:s}:null}}function iv(t){if(Gn(t))return ev(t);var e=JE(t);return e?tv(e):rv(t)}function Dt(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}function zh(t,e,r,i){let n=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||n||(o=!0,t.next().then(({value:c,done:d})=>{if(!(s||n)){if(o=!1,d){n=!0,a<=0&&i(null);return}a++,r(c,l,f),l++,u()}}).catch(h))}function f(c,d){if(a-=1,!s){if(c)return h(c);if(c===!1){n=!0,s=!0;return}if(d===zn||n&&a<=0)return n=!0,i(null);u()}}function h(c){s||(o=!1,n=!0,i(c))}u()}function nv(t,e,r,i){return $e(e)(t,q(r),i)}function sv(t,e,r){r=Ot(r);var i=0,n=0,{length:s}=t,o=!1;s===0&&r(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?r(l):(++n===s||u===zn)&&r(null))}for(;i<s;i++)e(t[i],i,Dt(a))}function ov(t,e,r){return gi(t,1/0,e,r)}function av(t,e,r){var i=Gn(t)?sv:ov;return i(t,q(e),r)}function lv(t,e,r){return Oa(Fe,t,e,r)}function uv(t,e,r){return gi(t,1,e,r)}function fv(t,e,r){return Oa(Xe,t,e,r)}function Er(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[vr]=new Promise((i,n)=>{t=i,e=n}),r}function Ia(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||Er());var i=Object.keys(t).length;if(!i)return r(null);e||(e=i);var n={},s=0,o=!1,a=!1,l=Object.create(null),u=[],f=[],h={};Object.keys(t).forEach(S=>{var E=t[S];if(!Array.isArray(E)){c(S,[E]),f.push(S);return}var A=E.slice(0,E.length-1),L=A.length;if(L===0){c(S,E),f.push(S);return}h[S]=L,A.forEach(v=>{if(!t[v])throw new Error("async.auto task `"+S+"` has a non-existent dependency `"+v+"` in "+A.join(", "));b(v,()=>{L--,L===0&&c(S,E)})})}),y(),d();function c(S,E){u.push(()=>x(S,E))}function d(){if(!o){if(u.length===0&&s===0)return r(null,n);for(;u.length&&s<e;){var S=u.shift();S()}}}function b(S,E){var A=l[S];A||(A=l[S]=[]),A.push(E)}function g(S){var E=l[S]||[];E.forEach(A=>A()),d()}function x(S,E){if(!a){var A=Dt((v,...O)=>{if(s--,v===!1){o=!0;return}if(O.length<2&&([O]=O),v){var w={};if(Object.keys(n).forEach(T=>{w[T]=n[T]}),w[S]=O,a=!0,l=Object.create(null),o)return;r(v,w)}else n[S]=O,g(S)});s++;var L=q(E[E.length-1]);E.length>1?L(n,A):L(A)}}function y(){for(var S,E=0;f.length;)S=f.pop(),E++,m(S).forEach(A=>{--h[A]===0&&f.push(A)});if(E!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function m(S){var E=[];return Object.keys(t).forEach(A=>{let L=t[A];Array.isArray(L)&&L.indexOf(S)>=0&&E.push(A)}),E}return r[vr]}function gv(t){let e="",r=0,i=t.indexOf("*/");for(;r<t.length;)if(t[r]==="/"&&t[r+1]==="/"){let n=t.indexOf(`
|
|
4
|
+
`,r);r=n===-1?t.length:n}else if(i!==-1&&t[r]==="/"&&t[r+1]==="*"){let n=t.indexOf("*/",r);n!==-1?(r=n+2,i=t.indexOf("*/",r)):(e+=t[r],r++)}else e+=t[r],r++;return e}function yv(t){let e=gv(t.toString()),r=e.match(hv);if(r||(r=e.match(cv)),!r)throw new Error(`could not parse args in autoInject
|
|
5
5
|
Source:
|
|
6
|
-
`+e);let[,i]=r;return i.replace(/\s/g,"").split(pv).map(n=>n.replace(gv,"").trim())}function rc(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=_i(n),a=!o&&n.length===1||o&&n.length===0;if(Array.isArray(n))s=[...n],n=s.pop(),r[i]=s.concat(s.length>0?l:n);else if(a)r[i]=n;else{if(s=mv(n),n.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),r[i]=s.concat(l)}function l(u,f){var h=s.map(c=>u[c]);h.push(f),q(n)(...h)}}),Ia(r,e)}function Hh(t,e){t.length=1,t.head=t.tail=e}function La(t,e,r){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var i=q(t),n=0,s=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(m,S){o[m].push(S)}function l(m,S){let E=(...A)=>{u(m,E),S(...A)};o[m].push(E)}function u(m,S){if(!m)return Object.keys(o).forEach(E=>o[E]=[]);if(!S)return o[m]=[];o[m]=o[m].filter(E=>E!==S)}function f(m,...S){o[m].forEach(E=>E(...S))}var h=!1;function c(m,S,E,A){if(A!=null&&typeof A!="function")throw new Error("task callback must be a function");y.started=!0;var L,v;function O(T,...R){if(T)return E?v(T):L();if(R.length<=1)return L(R[0]);L(R)}var w=y._createTaskItem(m,E?O:A||O);if(S?y._tasks.unshift(w):y._tasks.push(w),h||(h=!0,Rt(()=>{h=!1,y.process()})),E||!A)return new Promise((T,R)=>{L=T,v=R})}function d(m){return function(S,...E){n-=1;for(var A=0,L=m.length;A<L;A++){var v=m[A],O=s.indexOf(v);O===0?s.shift():O>0&&s.splice(O,1),v.callback(S,...E),S!=null&&f("error",S,v.data)}n<=y.concurrency-y.buffer&&f("unsaturated"),y.idle()&&f("drain"),y.process()}}function b(m){return m.length===0&&y.idle()?(Rt(()=>f("drain")),!0):!1}let g=m=>S=>{if(!S)return new Promise((E,A)=>{l(m,(L,v)=>{if(L)return A(L);E(v)})});u(m),a(m,S)};var x=!1,y={_tasks:new ua,_createTaskItem(m,S){return{data:m,callback:S}},*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:e,payload:r,buffer:e/4,started:!1,paused:!1,push(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!1,!1,S)):c(m,!1,!1,S)},pushAsync(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!1,!0,S)):c(m,!1,!0,S)},kill(){u(),y._tasks.empty()},unshift(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!0,!1,S)):c(m,!0,!1,S)},unshiftAsync(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!0,!0,S)):c(m,!0,!0,S)},remove(m){y._tasks.remove(m)},process(){if(!x){for(x=!0;!y.paused&&n<y.concurrency&&y._tasks.length;){var m=[],S=[],E=y._tasks.length;y.payload&&(E=Math.min(E,y.payload));for(var A=0;A<E;A++){var L=y._tasks.shift();m.push(L),s.push(L),S.push(L.data)}n+=1,y._tasks.length===0&&f("empty"),n===y.concurrency&&f("saturated");var v=Dt(d(m));i(S,v)}x=!1}},length(){return y._tasks.length},running(){return n},workersList(){return s},idle(){return y._tasks.length+n===0},pause(){y.paused=!0},resume(){y.paused!==!1&&(y.paused=!1,Rt(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:g("saturated")},unsaturated:{writable:!1,value:g("unsaturated")},empty:{writable:!1,value:g("empty")},drain:{writable:!1,value:g("drain")},error:{writable:!1,value:g("error")}}),y}function ic(t,e){return La(t,1,e)}function nc(t,e,r){return La(t,e,r)}function _v(t,e,r,i){i=Ot(i);var n=q(r);return Xe(t,(s,o,a)=>{n(e,s,(l,u)=>{e=u,a(l)})},s=>i(s,e))}function Pa(...t){var e=t.map(q);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=Er(),Sr(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[vr]}}function sc(...t){return Pa(...t.reverse())}function bv(t,e,r,i){return Oa($e(e),t,r,i)}function wv(t,e,r,i){var n=q(r);return bi(t,e,(s,o)=>{n(s,(a,...l)=>a?o(a):o(a,l))},(s,o)=>{for(var a=[],l=0;l<o.length;l++)o[l]&&(a=a.concat(...o[l]));return i(s,a)})}function Sv(t,e,r){return yi(t,1/0,e,r)}function Ev(t,e,r){return yi(t,1,e,r)}function oc(...t){return function(...e){var r=e.pop();return r(null,...t)}}function dt(t,e){return(r,i,n,s)=>{var o=!1,a;let l=q(n);r(i,(u,f,h)=>{l(u,(c,d)=>{if(c||c===!1)return h(c);if(t(d)&&!a)return o=!0,a=e(!0,u),h(null,zn);h()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function vv(t,e,r){return dt(i=>i,(i,n)=>n)(Fe,t,e,r)}function xv(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function Tv(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function ac(t){return(e,...r)=>q(e)(...r,(i,...n)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[t]&&n.forEach(s=>console[t](s)))})}function Av(t,e,r){r=Dt(r);var i=q(t),n=q(e),s;function o(l,...u){if(l)return r(l);l!==!1&&(s=u,n(...u,a))}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return a(null,!0)}function uc(t,e,r){let i=q(e);return qn(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function fc(t){return(e,r,i)=>t(e,i)}function Rv(t,e,r){return Fe(t,fc(q(e)),r)}function Ov(t,e,r,i){return $e(e)(t,fc(q(r)),i)}function Dv(t,e,r){return Fn(t,1,e,r)}function Na(t){return _i(t)?t:function(...e){var r=e.pop(),i=!0;e.push((...n)=>{i?Rt(()=>r(...n)):r(...n)}),t.apply(this,e),i=!1}}function Iv(t,e,r){return dt(i=>!i,i=>!i)(Fe,t,e,r)}function Lv(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function Pv(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function Nv(t,e,r,i){var n=new Array(e.length);t(e,(s,o,a)=>{r(s,(l,u)=>{n[o]=!!u,a(l)})},s=>{if(s)return i(s);for(var o=[],a=0;a<e.length;a++)n[a]&&o.push(e[a]);i(null,o)})}function Mv(t,e,r,i){var n=[];t(e,(s,o,a)=>{r(s,(l,u)=>{if(l)return a(l);u&&n.push({index:o,value:s}),a(l)})},s=>{if(s)return i(s);i(null,n.sort((o,a)=>o.index-a.index).map(o=>o.value))})}function Hn(t,e,r,i){var n=Gn(e)?Nv:Mv;return n(t,e,q(r),i)}function Cv(t,e,r){return Hn(Fe,t,e,r)}function kv(t,e,r,i){return Hn($e(e),t,r,i)}function qv(t,e,r){return Hn(Xe,t,e,r)}function Fv(t,e){var r=Dt(e),i=q(Na(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function Bv(t,e,r,i){var n=q(r);return bi(t,e,(s,o)=>{n(s,(a,l)=>a?o(a):o(a,{key:l,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<o.length;u++)if(o[u]){var{key:f}=o[u],{val:h}=o[u];l.call(a,f)?a[f].push(h):a[f]=[h]}return i(s,a)})}function cc(t,e,r){return Vn(t,1/0,e,r)}function dc(t,e,r){return Vn(t,1,e,r)}function jv(t,e,r,i){i=Ot(i);var n={},s=q(r);return $e(e)(t,(o,a,l)=>{s(o,a,(u,f)=>{if(u)return l(u);n[a]=f,l(u)})},o=>i(o,n))}function gc(t,e,r){return Yn(t,1/0,e,r)}function yc(t,e,r){return Yn(t,1,e,r)}function mc(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=q(t),s=mi((o,a)=>{var l=e(...o);l in r?Rt(()=>a(null,...r[l])):l in i?i[l].push(a):(i[l]=[a],n(...o,(u,...f)=>{u||(r[l]=f);var h=i[l];delete i[l];for(var c=0,d=h.length;c<d;c++)h[c](u,...f)}))});return s.memo=r,s.unmemoized=t,s}function bc(t,e){return Ma(Fe,t,e)}function wc(t,e,r){return Ma($e(e),t,r)}function Ca(t,e){var r=q(t);return La((i,n)=>{r(i[0],n)},e,1)}function Wv(t){return(t<<1)+1}function Vh(t){return(t+1>>1)-1}function la(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function Sc(t,e){var r=Ca(t,e),{push:i,pushAsync:n}=r;r._tasks=new Ea,r._createTaskItem=({data:o,priority:a},l)=>({data:o,priority:a,callback:l});function s(o,a){return Array.isArray(o)?o.map(l=>({data:l,priority:a})):{data:o,priority:a}}return r.push=function(o,a=0,l){return i(s(o,a),l)},r.pushAsync=function(o,a=0,l){return n(s(o,a),l)},delete r.unshift,delete r.unshiftAsync,r}function Uv(t,e){if(e=Ot(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,i=t.length;r<i;r++)q(t[r])(e)}function va(t,e,r,i){var n=[...t].reverse();return Sr(n,e,r,i)}function jn(t){var e=q(t);return mi(function(i,n){return i.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var l=o;o.length<=1&&([l]=o),a.value=l}n(null,a)}),e.apply(this,i)})}function vc(t){var e;return Array.isArray(t)?e=t.map(jn):(e={},Object.keys(t).forEach(r=>{e[r]=jn.call(this,t[r])})),e}function ka(t,e,r,i){let n=q(r);return Hn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function Gv(t,e,r){return ka(Fe,t,e,r)}function zv(t,e,r,i){return ka($e(e),t,r,i)}function $v(t,e,r){return ka(Xe,t,e,r)}function Rc(t){return function(){return t}}function Wn(t,e,r){var i={times:xa,intervalFunc:Rc(Oc)};if(arguments.length<3&&typeof t=="function"?(r=e||Er(),e=t):(Hv(i,t),r=r||Er()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var n=q(e),s=1;function o(){n((a,...l)=>{a!==!1&&(a&&s++<i.times&&(typeof i.errorFilter!="function"||i.errorFilter(a))?setTimeout(o,i.intervalFunc(s-1)):r(a,...l))})}return o(),r[vr]}function Hv(t,e){if(typeof e=="object")t.times=+e.times||xa,t.intervalFunc=typeof e.interval=="function"?e.interval:Rc(+e.interval||Oc),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||xa;else throw new Error("Invalid arguments for async.retry")}function Dc(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;_i(e)&&(r+=1);var i=q(e);return mi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=Er());function o(a){i(...n,a)}return t?Wn(t,o,s):Wn(o,s),s[vr]})}function Ic(t,e){return Ma(Xe,t,e)}function Vv(t,e,r){return dt(Boolean,i=>i)(Fe,t,e,r)}function Yv(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Zv(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Kv(t,e,r){var i=q(e);return $n(t,(s,o)=>{i(s,(a,l)=>{if(a)return o(a);o(a,{value:s,criteria:l})})},(s,o)=>{if(s)return r(s);r(null,o.sort(n).map(a=>a.value))});function n(s,o){var a=s.criteria,l=o.criteria;return a<l?-1:a>l?1:0}}function Pc(t,e,r){var i=q(t);return mi((n,s)=>{var o=!1,a;function l(){var u=t.name||"anonymous",f=new Error('Callback function "'+u+'" timed out.');f.code="ETIMEDOUT",r&&(f.info=r),o=!0,s(f)}n.push((...u)=>{o||(s(...u),clearTimeout(a))}),a=setTimeout(l,e),i(...n)})}function Qv(t){for(var e=Array(t);t--;)e[t]=t;return e}function Zn(t,e,r,i){var n=q(r);return bi(Qv(t),e,n,i)}function Nc(t,e,r){return Zn(t,1/0,e,r)}function Mc(t,e,r){return Zn(t,1,e,r)}function Cc(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||Er());var n=q(r);return Fe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[vr]}function Xv(t,e){var r=null,i;return Bn(t,(n,s)=>{q(n)((o,...a)=>{if(o===!1)return s(o);a.length<2?[i]=a:i=a,r=o,s(o?null:{})})},()=>e(r,i))}function qc(t){return(...e)=>(t.unmemoized||t)(...e)}function Jv(t,e,r){r=Dt(r);var i=q(e),n=q(t),s=[];function o(l,...u){if(l)return r(l);s=u,l!==!1&&n(a)}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return n(a)}function Fc(t,e,r){let i=q(t);return Un(n=>i((s,o)=>n(s,!o)),e,r)}function e1(t,e){if(e=Ot(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(s){var o=q(t[r++]);o(...s,Dt(n))}function n(s,...o){if(s!==!1){if(s||r===t.length)return e(s,...o);i(o)}}i([])}var QE,Zh,Kh,pi,Rt,zn,$e,gi,Fe,$n,ec,Xe,Da,tc,vr,cv,dv,pv,gv,ua,Sr,bi,yi,fa,ha,ca,da,pa,lc,qn,ga,Fn,Bn,ya,ma,_a,ba,wa,Sa,hc,Vn,pc,Yn,Cn,_c,Ma,Ea,Ec,xc,Tc,Ac,xa,Oc,Ta,Aa,Ra,Lc,kc,Un,Bc,t1,Wc=AE(()=>{"use strict";QE=typeof queueMicrotask=="function"&&queueMicrotask,Zh=typeof setImmediate=="function"&&setImmediate,Kh=typeof process=="object"&&typeof process.nextTick=="function";QE?pi=queueMicrotask:Zh?pi=setImmediate:Kh?pi=process.nextTick:pi=Qh;Rt=Xh(pi);zn={};$e=t=>(e,r,i)=>{if(i=Ot(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if(XE(e))return $h(e,t,r,i);if(JE(e))return $h(e[Symbol.asyncIterator](),t,r,i);var n=nv(e),s=!1,o=!1,a=0,l=!1;function u(h,c){if(!o)if(a-=1,h)s=!0,i(h);else if(h===!1)s=!0,o=!0;else{if(c===zn||s&&a<=0)return s=!0,i(null);l||f()}}function f(){for(l=!0;a<t&&!s;){var h=n();if(h===null){s=!0,a<=0&&i(null);return}a+=1,r(h.value,h.key,Dt(u))}l=!1}f()};gi=k(sv,4);Fe=k(lv,3);$n=k(uv,3),ec=Jh($n);Xe=k(fv,3);Da=k(hv,3),tc=Jh(Da),vr=Symbol("promiseCallback");cv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,dv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,pv=/,/,gv=/(=.+)?(\s*)$/;ua=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,r){r.prev=e,r.next=e.next,e.next?e.next.prev=r:this.tail=r,e.next=r,this.length+=1}insertBefore(e,r){r.prev=e.prev,r.next=e,e.prev?e.prev.next=r:this.head=r,e.prev=r,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):Hh(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):Hh(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var r=this.head;r;){var{next:i}=r;e(r)&&this.removeLink(r),r=i}return this}};Sr=k(_v,4);bi=k(bv,4);yi=k(wv,4);fa=k(Sv,3);ha=k(Ev,3);ca=k(vv,3);da=k(xv,4);pa=k(Tv,3);lc=ac("dir");qn=k(Av,3);ga=k(Rv,3);Fn=k(Ov,4);Bn=k(Dv,3);ya=k(Iv,3);ma=k(Lv,4);_a=k(Pv,3);ba=k(Cv,3);wa=k(kv,4);Sa=k(qv,3);hc=k(Fv,2);Vn=k(Bv,4);pc=ac("log");Yn=k(jv,4);Kh?Cn=process.nextTick:Zh?Cn=setImmediate:Cn=Qh;_c=Xh(Cn),Ma=k((t,e,r)=>{var i=Gn(e)?[]:{};t(e,(n,s,o)=>{q(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>r(n,i))},3);Ea=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let r;for(;e>0&&la(this.heap[e],this.heap[r=Vh(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=Wv(e))<this.heap.length&&(r+1<this.heap.length&&la(this.heap[r+1],this.heap[r])&&(r=r+1),!la(this.heap[e],this.heap[r]));){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let r=0;for(let i=0;i<this.heap.length;i++)e(this.heap[i])||(this.heap[r]=this.heap[i],r++);this.heap.splice(r);for(let i=Vh(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Ec=k(Uv,2);xc=k(Gv,3);Tc=k(zv,4);Ac=k($v,3);xa=5,Oc=0;Ta=k(Vv,3);Aa=k(Yv,4);Ra=k(Zv,3);Lc=k(Kv,3);kc=k(Xv);Un=k(Jv,3);Bc=k(e1),t1={apply:Yh,applyEach:ec,applyEachSeries:tc,asyncify:kn,auto:Ia,autoInject:rc,cargo:ic,cargoQueue:nc,compose:sc,concat:fa,concatLimit:yi,concatSeries:ha,constant:oc,detect:ca,detectLimit:da,detectSeries:pa,dir:lc,doUntil:uc,doWhilst:qn,each:ga,eachLimit:Fn,eachOf:Fe,eachOfLimit:gi,eachOfSeries:Xe,eachSeries:Bn,ensureAsync:Na,every:ya,everyLimit:ma,everySeries:_a,filter:ba,filterLimit:wa,filterSeries:Sa,forever:hc,groupBy:cc,groupByLimit:Vn,groupBySeries:dc,log:pc,map:$n,mapLimit:bi,mapSeries:Da,mapValues:gc,mapValuesLimit:Yn,mapValuesSeries:yc,memoize:mc,nextTick:_c,parallel:bc,parallelLimit:wc,priorityQueue:Sc,queue:Ca,race:Ec,reduce:Sr,reduceRight:va,reflect:jn,reflectAll:vc,reject:xc,rejectLimit:Tc,rejectSeries:Ac,retry:Wn,retryable:Dc,seq:Pa,series:Ic,setImmediate:Rt,some:Ta,someLimit:Aa,someSeries:Ra,sortBy:Lc,timeout:Pc,times:Nc,timesLimit:Zn,timesSeries:Mc,transform:Cc,tryEach:kc,unmemoize:qc,until:Fc,waterfall:Bc,whilst:Un,all:ya,allLimit:ma,allSeries:_a,any:Ta,anyLimit:Aa,anySeries:Ra,find:ca,findLimit:da,findSeries:pa,flatMap:fa,flatMapLimit:yi,flatMapSeries:ha,forEach:ga,forEachSeries:Bn,forEachLimit:Fn,forEachOf:Fe,forEachOfSeries:Xe,forEachOfLimit:gi,inject:Sr,foldl:Sr,foldr:va,select:ba,selectLimit:wa,selectSeries:Sa,wrapSync:kn,during:Un,doDuring:qn}});var Gc=p((cB,Uc)=>{"use strict";var It=I("constants"),r1=process.cwd,Kn=null,i1=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Kn||(Kn=r1.call(process)),Kn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(qa=process.chdir,process.chdir=function(t){Kn=null,qa.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,qa));var qa;Uc.exports=n1;function n1(t){It.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,h,c){c&&process.nextTick(c)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,c,d){d&&process.nextTick(d)},t.lchownSync=function(){}),i1==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function h(c,d,b){var g=Date.now(),x=0;f(c,d,function y(m){if(m&&(m.code==="EACCES"||m.code==="EPERM"||m.code==="EBUSY")&&Date.now()-g<6e4){setTimeout(function(){t.stat(d,function(S,E){S&&S.code==="ENOENT"?f(c,d,y):b(m)})},x),x<100&&(x+=10);return}b&&b(m)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function h(c,d,b,g,x,y){var m;if(y&&typeof y=="function"){var S=0;m=function(E,A,L){if(E&&E.code==="EAGAIN"&&S<10)return S++,f.call(t,c,d,b,g,x,m);y.apply(this,arguments)}}return f.call(t,c,d,b,g,x,m)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(h,c,d,b,g){for(var x=0;;)try{return f.call(t,h,c,d,b,g)}catch(y){if(y.code==="EAGAIN"&&x<10){x++;continue}throw y}}})(t.readSync);function e(f){f.lchmod=function(h,c,d){f.open(h,It.O_WRONLY|It.O_SYMLINK,c,function(b,g){if(b){d&&d(b);return}f.fchmod(g,c,function(x){f.close(g,function(y){d&&d(x||y)})})})},f.lchmodSync=function(h,c){var d=f.openSync(h,It.O_WRONLY|It.O_SYMLINK,c),b=!0,g;try{g=f.fchmodSync(d,c),b=!1}finally{if(b)try{f.closeSync(d)}catch{}else f.closeSync(d)}return g}}function r(f){It.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,c,d,b){f.open(h,It.O_SYMLINK,function(g,x){if(g){b&&b(g);return}f.futimes(x,c,d,function(y){f.close(x,function(m){b&&b(y||m)})})})},f.lutimesSync=function(h,c,d){var b=f.openSync(h,It.O_SYMLINK),g,x=!0;try{g=f.futimesSync(b,c,d),x=!1}finally{if(x)try{f.closeSync(b)}catch{}else f.closeSync(b)}return g}):f.futimes&&(f.lutimes=function(h,c,d,b){b&&process.nextTick(b)},f.lutimesSync=function(){})}function i(f){return f&&function(h,c,d){return f.call(t,h,c,function(b){u(b)&&(b=null),d&&d.apply(this,arguments)})}}function n(f){return f&&function(h,c){try{return f.call(t,h,c)}catch(d){if(!u(d))throw d}}}function s(f){return f&&function(h,c,d,b){return f.call(t,h,c,d,function(g){u(g)&&(g=null),b&&b.apply(this,arguments)})}}function o(f){return f&&function(h,c,d){try{return f.call(t,h,c,d)}catch(b){if(!u(b))throw b}}}function a(f){return f&&function(h,c,d){typeof c=="function"&&(d=c,c=null);function b(g,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),d&&d.apply(this,arguments)}return c?f.call(t,h,c,b):f.call(t,h,b)}}function l(f){return f&&function(h,c){var d=c?f.call(t,h,c):f.call(t,h);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Hc=p((dB,$c)=>{"use strict";var zc=I("stream").Stream;$c.exports=s1;function s1(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);zc.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),a=0,l=o.length;a<l;a++){var u=o[a];this[u]=n[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);zc.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=n[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Yc=p((pB,Vc)=>{"use strict";Vc.exports=a1;var o1=Object.getPrototypeOf||function(t){return t.__proto__};function a1(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:o1(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Wa=p((gB,ja)=>{"use strict";var ne=I("fs"),l1=Gc(),u1=Hc(),f1=Yc(),Qn=I("util"),_e,Jn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(_e=Symbol.for("graceful-fs.queue"),Jn=Symbol.for("graceful-fs.previous")):(_e="___graceful-fs.queue",Jn="___graceful-fs.previous");function h1(){}function Qc(t,e){Object.defineProperty(t,_e,{get:function(){return e}})}var Qt=h1;Qn.debuglog?Qt=Qn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qt=function(){var t=Qn.format.apply(Qn,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
7
|
-
GFS4: `),console.error(t)});ne[_e]||(Zc=global[_e]||[],Qc(ne,Zc),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||Kc(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Jn,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),Kc()}return Object.defineProperty(e,Jn,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qt(ne[_e]),I("assert").equal(ne[_e].length,0)}));var Zc;global[_e]||Qc(global,ne[_e]);ja.exports=Fa(f1(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&(ja.exports=Fa(ne),ne.__patched=!0);function Fa(t){l1(t),t.gracefulify=Fa,t.createReadStream=A,t.createWriteStream=L;var e=t.readFile;t.readFile=r;function r(w,T,R){return typeof T=="function"&&(R=T,T=null),N(w,T,R);function N(G,ue,K,te){return e(G,ue,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xr([N,[G,ue,K],V,te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(w,T,R,N){return typeof R=="function"&&(N=R,R=null),G(w,T,R,N);function G(ue,K,te,V,me){return i(ue,K,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(w,T,R,N){return typeof R=="function"&&(N=R,R=null),G(w,T,R,N);function G(ue,K,te,V,me){return s(ue,K,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(w,T,R,N){return typeof R=="function"&&(N=R,R=0),G(w,T,R,N);function G(ue,K,te,V,me){return a(ue,K,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var u=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(w,T,R){typeof T=="function"&&(R=T,T=null);var N=f.test(process.version)?function(K,te,V,me){return u(K,G(K,te,V,me))}:function(K,te,V,me){return u(K,te,G(K,te,V,me))};return N(w,T,R);function G(ue,K,te,V){return function(me,re){me&&(me.code==="EMFILE"||me.code==="ENFILE")?xr([N,[ue,K,te],me,V||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof te=="function"&&te.call(this,me,re))}}}if(process.version.substr(0,4)==="v0.8"){var c=u1(t);y=c.ReadStream,S=c.WriteStream}var d=t.ReadStream;d&&(y.prototype=Object.create(d.prototype),y.prototype.open=m);var b=t.WriteStream;b&&(S.prototype=Object.create(b.prototype),S.prototype.open=E),Object.defineProperty(t,"ReadStream",{get:function(){return y},set:function(w){y=w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return S},set:function(w){S=w},enumerable:!0,configurable:!0});var g=y;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(w){g=w},enumerable:!0,configurable:!0});var x=S;Object.defineProperty(t,"FileWriteStream",{get:function(){return x},set:function(w){x=w},enumerable:!0,configurable:!0});function y(w,T){return this instanceof y?(d.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function m(){var w=this;O(w.path,w.flags,w.mode,function(T,R){T?(w.autoClose&&w.destroy(),w.emit("error",T)):(w.fd=R,w.emit("open",R),w.read())})}function S(w,T){return this instanceof S?(b.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function E(){var w=this;O(w.path,w.flags,w.mode,function(T,R){T?(w.destroy(),w.emit("error",T)):(w.fd=R,w.emit("open",R))})}function A(w,T){return new t.ReadStream(w,T)}function L(w,T){return new t.WriteStream(w,T)}var v=t.open;t.open=O;function O(w,T,R,N){return typeof R=="function"&&(N=R,R=null),G(w,T,R,N);function G(ue,K,te,V,me){return v(ue,K,te,function(re,sB){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function xr(t){Qt("ENQUEUE",t[0].name,t[1]),ne[_e].push(t),Ba()}var Xn;function Kc(){for(var t=Date.now(),e=0;e<ne[_e].length;++e)ne[_e][e].length>2&&(ne[_e][e][3]=t,ne[_e][e][4]=t);Ba()}function Ba(){if(clearTimeout(Xn),Xn=void 0,ne[_e].length!==0){var t=ne[_e].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)Qt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Qt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,l=Math.max(s-n,1),u=Math.min(l*1.2,100);a>=u?(Qt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[_e].push(t)}Xn===void 0&&(Xn=setTimeout(Ba,0))}}});var es=p((yB,Xc)=>{"use strict";var Je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Je.writable=t=>Je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Je.readable=t=>Je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Je.duplex=t=>Je.writable(t)&&Je.readable(t);Je.transform=t=>Je.duplex(t)&&typeof t._transform=="function";Xc.exports=Je});var wi=p((mB,Ua)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ua.exports={nextTick:c1}:Ua.exports=process;function c1(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,r)});case 4:return process.nextTick(function(){t.call(null,e,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var ed=p((_B,Jc)=>{"use strict";var d1={}.toString;Jc.exports=Array.isArray||function(t){return d1.call(t)=="[object Array]"}});var Ga=p((bB,td)=>{"use strict";td.exports=I("stream")});var Si=p((za,id)=>{"use strict";var ts=I("buffer"),pt=ts.Buffer;function rd(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?id.exports=ts:(rd(ts,za),za.Buffer=Tr);function Tr(t,e,r){return pt(t,e,r)}rd(pt,Tr);Tr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Tr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=pt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Tr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Tr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ts.SlowBuffer(t)}});var Ar=p(ve=>{"use strict";function p1(t){return Array.isArray?Array.isArray(t):rs(t)==="[object Array]"}ve.isArray=p1;function g1(t){return typeof t=="boolean"}ve.isBoolean=g1;function y1(t){return t===null}ve.isNull=y1;function m1(t){return t==null}ve.isNullOrUndefined=m1;function _1(t){return typeof t=="number"}ve.isNumber=_1;function b1(t){return typeof t=="string"}ve.isString=b1;function w1(t){return typeof t=="symbol"}ve.isSymbol=w1;function S1(t){return t===void 0}ve.isUndefined=S1;function E1(t){return rs(t)==="[object RegExp]"}ve.isRegExp=E1;function v1(t){return typeof t=="object"&&t!==null}ve.isObject=v1;function x1(t){return rs(t)==="[object Date]"}ve.isDate=x1;function T1(t){return rs(t)==="[object Error]"||t instanceof Error}ve.isError=T1;function A1(t){return typeof t=="function"}ve.isFunction=A1;function R1(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}ve.isPrimitive=R1;ve.isBuffer=I("buffer").Buffer.isBuffer;function rs(t){return Object.prototype.toString.call(t)}});var nd=p((SB,$a)=>{"use strict";typeof Object.create=="function"?$a.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:$a.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Rr=p((EB,Va)=>{"use strict";try{if(Ha=I("util"),typeof Ha.inherits!="function")throw"";Va.exports=Ha.inherits}catch{Va.exports=nd()}var Ha});var od=p((vB,Ya)=>{"use strict";function O1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var sd=Si().Buffer,Ei=I("util");function D1(t,e,r){t.copy(e,r)}Ya.exports=(function(){function t(){O1(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return sd.alloc(0);for(var i=sd.allocUnsafe(r>>>0),n=this.head,s=0;n;)D1(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();Ei&&Ei.inspect&&Ei.inspect.custom&&(Ya.exports.prototype[Ei.inspect.custom]=function(){var t=Ei.inspect({length:this.length});return this.constructor.name+" "+t})});var Za=p((xB,ad)=>{"use strict";var is=wi();function I1(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,is.nextTick(ns,this,t)):is.nextTick(ns,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,is.nextTick(ns,r,s)):is.nextTick(ns,r,s):e&&e(s)}),this)}function L1(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ns(t,e){t.emit("error",e)}ad.exports={destroy:I1,undestroy:L1}});var ud=p((TB,ld)=>{"use strict";ld.exports=I("util").deprecate});var Qa=p((AB,md)=>{"use strict";var Xt=wi();md.exports=fe;function hd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Z1(e,t)}}var P1=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Xt.nextTick,Or;fe.WritableState=xi;var cd=Object.create(Ar());cd.inherits=Rr();var N1={deprecate:ud()},dd=Ga(),os=Si().Buffer,M1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function C1(t){return os.from(t)}function k1(t){return os.isBuffer(t)||t instanceof M1}var pd=Za();cd.inherits(fe,dd);function q1(){}function xi(t,e){Or=Or||Jt(),t=t||{};var r=e instanceof Or;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){z1(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new hd(this)}xi.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(xi.prototype,"buffer",{get:N1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ss;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ss=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return ss.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof xi}})):ss=function(t){return t instanceof this};function fe(t){if(Or=Or||Jt(),!ss.call(fe,this)&&!(this instanceof Or))return new fe(t);this._writableState=new xi(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),dd.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function F1(t,e){var r=new Error("write after end");t.emit("error",r),Xt.nextTick(e,r)}function B1(t,e,r,i){var n=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),Xt.nextTick(i,s),n=!1),n}fe.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&k1(t);return s&&!os.isBuffer(t)&&(t=C1(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=q1),i.ended?F1(this,r):(s||B1(this,i,t,r))&&(i.pendingcb++,n=W1(this,i,s,t,e,r)),n};fe.prototype.cork=function(){var t=this._writableState;t.corked++};fe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&gd(this,t))};fe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function j1(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=os.from(e,r)),e}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function W1(t,e,r,i,n,s){if(!r){var o=j1(e,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ka(t,e,!1,a,i,n,s);return l}function Ka(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function U1(t,e,r,i,n){--e.pendingcb,r?(Xt.nextTick(n,i),Xt.nextTick(vi,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),vi(t,e))}function G1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function z1(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(G1(r),e)U1(t,r,i,e,n);else{var s=yd(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&gd(t,r),i?P1(fd,t,r,s,n):fd(t,r,s,n)}}function fd(t,e,r,i){r||$1(t,e),e.pendingcb--,i(),vi(t,e)}function $1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function gd(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,Ka(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new hd(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,h=e.objectMode?1:l.length;if(Ka(t,e,!1,h,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}fe.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};fe.prototype._writev=null;fe.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||Y1(this,i,r)};function yd(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function H1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),vi(t,e)})}function V1(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Xt.nextTick(H1,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function vi(t,e){var r=yd(e);return r&&(V1(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function Y1(t,e,r){e.ending=!0,vi(t,e),r&&(e.finished?Xt.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Z1(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});fe.prototype.destroy=pd.destroy;fe.prototype._undestroy=pd.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var Jt=p((RB,Sd)=>{"use strict";var _d=wi(),K1=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Sd.exports=gt;var bd=Object.create(Ar());bd.inherits=Rr();var wd=el(),Ja=Qa();bd.inherits(gt,wd);for(Xa=K1(Ja.prototype),as=0;as<Xa.length;as++)ls=Xa[as],gt.prototype[ls]||(gt.prototype[ls]=Ja.prototype[ls]);var Xa,ls,as;function gt(t){if(!(this instanceof gt))return new gt(t);wd.call(this,t),Ja.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Q1)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Q1(){this.allowHalfOpen||this._writableState.ended||_d.nextTick(X1,this)}function X1(t){t.end()}Object.defineProperty(gt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});gt.prototype._destroy=function(t,e){this.push(null),this.end(),_d.nextTick(e,t)}});var il=p(vd=>{"use strict";var rl=Si().Buffer,Ed=rl.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function J1(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function ex(t){var e=J1(t);if(typeof e!="string"&&(rl.isEncoding===Ed||!Ed(t)))throw new Error("Unknown encoding: "+t);return e||t}vd.StringDecoder=Ti;function Ti(t){this.encoding=ex(t);var e;switch(this.encoding){case"utf16le":this.text=ox,this.end=ax,e=4;break;case"utf8":this.fillLast=ix,e=4;break;case"base64":this.text=lx,this.end=ux,e=3;break;default:this.write=fx,this.end=hx;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rl.allocUnsafe(e)}Ti.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Ti.prototype.end=sx;Ti.prototype.text=nx;Ti.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function tl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function tx(t,e,r){var i=e.length-1;if(i<r)return 0;var n=tl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=tl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=tl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function rx(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function ix(t){var e=this.lastTotal-this.lastNeed,r=rx(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function nx(t,e){var r=tx(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function sx(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function ox(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function ax(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function lx(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function ux(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function fx(t){return t.toString(this.encoding)}function hx(t){return t&&t.length?this.write(t):""}});var el=p((IB,Cd)=>{"use strict";var Ir=wi();Cd.exports=Q;var cx=ed(),Ai;Q.ReadableState=Id;var DB=I("events").EventEmitter,Rd=function(t,e){return t.listeners(e).length},ll=Ga(),Ri=Si().Buffer,dx=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function px(t){return Ri.from(t)}function gx(t){return Ri.isBuffer(t)||t instanceof dx}var Od=Object.create(Ar());Od.inherits=Rr();var nl=I("util"),$=void 0;nl&&nl.debuglog?$=nl.debuglog("stream"):$=function(){};var yx=od(),Dd=Za(),Dr;Od.inherits(Q,ll);var sl=["error","close","destroy","pause","resume"];function mx(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):cx(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Id(t,e){Ai=Ai||Jt(),t=t||{};var r=e instanceof Ai;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new yx,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Dr||(Dr=il().StringDecoder),this.decoder=new Dr(t.encoding),this.encoding=t.encoding)}function Q(t){if(Ai=Ai||Jt(),!(this instanceof Q))return new Q(t);this._readableState=new Id(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ll.call(this)}Object.defineProperty(Q.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Q.prototype.destroy=Dd.destroy;Q.prototype._undestroy=Dd.undestroy;Q.prototype._destroy=function(t,e){this.push(null),e(t)};Q.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ri.from(t,e),e=""),i=!0),Ld(this,t,e,!1,i)};Q.prototype.unshift=function(t){return Ld(this,t,null,!0,!1)};function Ld(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,Sx(t,s);else{var o;n||(o=_x(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ri.prototype&&(e=px(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):ol(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?ol(t,s,e,!1):Pd(t,s)):ol(t,s,e,!1))):i||(s.reading=!1)}return bx(s)}function ol(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&us(t)),Pd(t,e)}function _x(t,e){var r;return!gx(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function bx(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Q.prototype.isPaused=function(){return this._readableState.flowing===!1};Q.prototype.setEncoding=function(t){return Dr||(Dr=il().StringDecoder),this._readableState.decoder=new Dr(t),this._readableState.encoding=t,this};var xd=8388608;function wx(t){return t>=xd?t=xd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Td(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=wx(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Q.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?al(this):us(this),null;if(t=Td(t,e),t===0&&e.ended)return e.length===0&&al(this),null;var i=e.needReadable;$("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,$("length less than watermark",i)),e.ended||e.reading?(i=!1,$("reading or ended",i)):i&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Td(r,e)));var n;return t>0?n=Nd(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&al(this)),n!==null&&this.emit("data",n),n};function Sx(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,us(t)}}function us(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Ir.nextTick(Ad,t):Ad(t))}function Ad(t){$("emit readable"),t.emit("readable"),ul(t)}function Pd(t,e){e.readingMore||(e.readingMore=!0,Ir.nextTick(Ex,t,e))}function Ex(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&($("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Q.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Q.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,$("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:x;i.endEmitted?Ir.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,m){$("onunpipe"),y===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,f())}function a(){$("onend"),t.end()}var l=vx(r);t.on("drain",l);var u=!1;function f(){$("cleanup"),t.removeListener("close",b),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",x),r.removeListener("data",c),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var h=!1;r.on("data",c);function c(y){$("ondata"),h=!1;var m=t.write(y);m===!1&&!h&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Md(i.pipes,t)!==-1)&&!u&&($("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function d(y){$("onerror",y),x(),t.removeListener("error",d),Rd(t,"error")===0&&t.emit("error",y)}mx(t,"error",d);function b(){t.removeListener("finish",g),x()}t.once("close",b);function g(){$("onfinish"),t.removeListener("close",b),x()}t.once("finish",g);function x(){$("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||($("pipe resume"),r.resume()),t};function vx(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Rd(t,"data")&&(e.flowing=!0,ul(t))}}Q.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Md(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Q.prototype.on=function(t,e){var r=ll.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&us(this):Ir.nextTick(xx,this))}return r};Q.prototype.addListener=Q.prototype.on;function xx(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,Tx(this,t)),this};function Tx(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ir.nextTick(Ax,t,e))}function Ax(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),ul(t),e.flowing&&!e.reading&&t.read(0)}Q.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function ul(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&t.read()!==null;);}Q.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if($("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if($("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<sl.length;s++)t.on(sl[s],this.emit.bind(this,sl[s]));return this._read=function(o){$("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Q._fromList=Nd;function Nd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=Rx(t,e.buffer,e.decoder),r}function Rx(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?Ox(t,e):Dx(t,e),i}function Ox(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(o===s.length?n+=s:n+=s.slice(0,t),t-=o,t===0){o===s.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++i}return e.length-=i,n}function Dx(t,e){var r=Ri.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var s=i.data,o=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,o),t-=o,t===0){o===s.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=s.slice(o));break}++n}return e.length-=n,r}function al(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Ir.nextTick(Ix,e,t))}function Ix(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Md(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var fl=p((LB,Fd)=>{"use strict";Fd.exports=yt;var fs=Jt(),qd=Object.create(Ar());qd.inherits=Rr();qd.inherits(yt,fs);function Lx(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function yt(t){if(!(this instanceof yt))return new yt(t);fs.call(this,t),this._transformState={afterTransform:Lx.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Px)}function Px(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){kd(t,e,r)}):kd(this,null,null)}yt.prototype.push=function(t,e){return this._transformState.needTransform=!1,fs.prototype.push.call(this,t,e)};yt.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};yt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};yt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};yt.prototype._destroy=function(t,e){var r=this;fs.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function kd(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var Ud=p((PB,Wd)=>{"use strict";Wd.exports=Oi;var Bd=fl(),jd=Object.create(Ar());jd.inherits=Rr();jd.inherits(Oi,Bd);function Oi(t){if(!(this instanceof Oi))return new Oi(t);Bd.call(this,t)}Oi.prototype._transform=function(t,e,r){r(null,t)}});var Gd=p((be,hs)=>{"use strict";var et=I("stream");process.env.READABLE_STREAM==="disable"&&et?(hs.exports=et,be=hs.exports=et.Readable,be.Readable=et.Readable,be.Writable=et.Writable,be.Duplex=et.Duplex,be.Transform=et.Transform,be.PassThrough=et.PassThrough,be.Stream=et):(be=hs.exports=el(),be.Stream=et||be,be.Readable=be,be.Writable=Qa(),be.Duplex=Jt(),be.Transform=fl(),be.PassThrough=Ud())});var $d=p((NB,zd)=>{"use strict";zd.exports=Gd().PassThrough});var Zd=p((MB,Yd)=>{"use strict";var Hd=I("util"),ps=$d();Yd.exports={Readable:cs,Writable:ds};Hd.inherits(cs,ps);Hd.inherits(ds,ps);function Vd(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function cs(t,e){if(!(this instanceof cs))return new cs(t,e);ps.call(this,e),Vd(this,"_read",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),r.pipe(this)}),this.emit("readable")}function ds(t,e){if(!(this instanceof ds))return new ds(t,e);ps.call(this,e),Vd(this,"_write",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),this.pipe(r)}),this.emit("writable")}});var hl=p((CB,Kd)=>{"use strict";Kd.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var i="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),i="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),i+s.join("/")}});var cl=p((kB,Qd)=>{"use strict";function Nx(t){return t}Qd.exports=Nx});var Jd=p((qB,Xd)=>{"use strict";function Mx(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}Xd.exports=Mx});var rp=p((FB,tp)=>{"use strict";var Cx=Jd(),ep=Math.max;function kx(t,e,r){return e=ep(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=ep(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=r(o),Cx(t,this,a)}}tp.exports=kx});var np=p((BB,ip)=>{"use strict";function qx(t){return function(){return t}}ip.exports=qx});var dl=p((jB,sp)=>{"use strict";var Fx=typeof global=="object"&&global&&global.Object===Object&&global;sp.exports=Fx});var Lr=p((WB,op)=>{"use strict";var Bx=dl(),jx=typeof self=="object"&&self&&self.Object===Object&&self,Wx=Bx||jx||Function("return this")();op.exports=Wx});var gs=p((UB,ap)=>{"use strict";var Ux=Lr(),Gx=Ux.Symbol;ap.exports=Gx});var hp=p((GB,fp)=>{"use strict";var lp=gs(),up=Object.prototype,zx=up.hasOwnProperty,$x=up.toString,Di=lp?lp.toStringTag:void 0;function Hx(t){var e=zx.call(t,Di),r=t[Di];try{t[Di]=void 0;var i=!0}catch{}var n=$x.call(t);return i&&(e?t[Di]=r:delete t[Di]),n}fp.exports=Hx});var dp=p((zB,cp)=>{"use strict";var Vx=Object.prototype,Yx=Vx.toString;function Zx(t){return Yx.call(t)}cp.exports=Zx});var Ii=p(($B,yp)=>{"use strict";var pp=gs(),Kx=hp(),Qx=dp(),Xx="[object Null]",Jx="[object Undefined]",gp=pp?pp.toStringTag:void 0;function eT(t){return t==null?t===void 0?Jx:Xx:gp&&gp in Object(t)?Kx(t):Qx(t)}yp.exports=eT});var Li=p((HB,mp)=>{"use strict";function tT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}mp.exports=tT});var pl=p((VB,_p)=>{"use strict";var rT=Ii(),iT=Li(),nT="[object AsyncFunction]",sT="[object Function]",oT="[object GeneratorFunction]",aT="[object Proxy]";function lT(t){if(!iT(t))return!1;var e=rT(t);return e==sT||e==oT||e==nT||e==aT}_p.exports=lT});var wp=p((YB,bp)=>{"use strict";var uT=Lr(),fT=uT["__core-js_shared__"];bp.exports=fT});var vp=p((ZB,Ep)=>{"use strict";var gl=wp(),Sp=(function(){var t=/[^.]+$/.exec(gl&&gl.keys&&gl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function hT(t){return!!Sp&&Sp in t}Ep.exports=hT});var Tp=p((KB,xp)=>{"use strict";var cT=Function.prototype,dT=cT.toString;function pT(t){if(t!=null){try{return dT.call(t)}catch{}try{return t+""}catch{}}return""}xp.exports=pT});var Rp=p((QB,Ap)=>{"use strict";var gT=pl(),yT=vp(),mT=Li(),_T=Tp(),bT=/[\\^$.*+?()[\]{}|]/g,wT=/^\[object .+?Constructor\]$/,ST=Function.prototype,ET=Object.prototype,vT=ST.toString,xT=ET.hasOwnProperty,TT=RegExp("^"+vT.call(xT).replace(bT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function AT(t){if(!mT(t)||yT(t))return!1;var e=gT(t)?TT:wT;return e.test(_T(t))}Ap.exports=AT});var Dp=p((XB,Op)=>{"use strict";function RT(t,e){return t?.[e]}Op.exports=RT});var Pi=p((JB,Ip)=>{"use strict";var OT=Rp(),DT=Dp();function IT(t,e){var r=DT(t,e);return OT(r)?r:void 0}Ip.exports=IT});var Pp=p((ej,Lp)=>{"use strict";var LT=Pi(),PT=(function(){try{var t=LT(Object,"defineProperty");return t({},"",{}),t}catch{}})();Lp.exports=PT});var Cp=p((tj,Mp)=>{"use strict";var NT=np(),Np=Pp(),MT=cl(),CT=Np?function(t,e){return Np(t,"toString",{configurable:!0,enumerable:!1,value:NT(e),writable:!0})}:MT;Mp.exports=CT});var qp=p((rj,kp)=>{"use strict";var kT=800,qT=16,FT=Date.now;function BT(t){var e=0,r=0;return function(){var i=FT(),n=qT-(i-r);if(r=i,n>0){if(++e>=kT)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}kp.exports=BT});var Bp=p((ij,Fp)=>{"use strict";var jT=Cp(),WT=qp(),UT=WT(jT);Fp.exports=UT});var ys=p((nj,jp)=>{"use strict";var GT=cl(),zT=rp(),$T=Bp();function HT(t,e){return $T(zT(t,e,GT),t+"")}jp.exports=HT});var ms=p((sj,Wp)=>{"use strict";function VT(t,e){return t===e||t!==t&&e!==e}Wp.exports=VT});var yl=p((oj,Up)=>{"use strict";var YT=9007199254740991;function ZT(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=YT}Up.exports=ZT});var _s=p((aj,Gp)=>{"use strict";var KT=pl(),QT=yl();function XT(t){return t!=null&&QT(t.length)&&!KT(t)}Gp.exports=XT});var ml=p((lj,zp)=>{"use strict";var JT=9007199254740991,eA=/^(?:0|[1-9]\d*)$/;function tA(t,e){var r=typeof t;return e=e??JT,!!e&&(r=="number"||r!="symbol"&&eA.test(t))&&t>-1&&t%1==0&&t<e}zp.exports=tA});var Hp=p((uj,$p)=>{"use strict";var rA=ms(),iA=_s(),nA=ml(),sA=Li();function oA(t,e,r){if(!sA(r))return!1;var i=typeof e;return(i=="number"?iA(r)&&nA(e,r.length):i=="string"&&e in r)?rA(r[e],t):!1}$p.exports=oA});var Yp=p((fj,Vp)=>{"use strict";function aA(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}Vp.exports=aA});var Pr=p((hj,Zp)=>{"use strict";function lA(t){return t!=null&&typeof t=="object"}Zp.exports=lA});var Qp=p((cj,Kp)=>{"use strict";var uA=Ii(),fA=Pr(),hA="[object Arguments]";function cA(t){return fA(t)&&uA(t)==hA}Kp.exports=cA});var _l=p((dj,eg)=>{"use strict";var Xp=Qp(),dA=Pr(),Jp=Object.prototype,pA=Jp.hasOwnProperty,gA=Jp.propertyIsEnumerable,yA=Xp((function(){return arguments})())?Xp:function(t){return dA(t)&&pA.call(t,"callee")&&!gA.call(t,"callee")};eg.exports=yA});var bl=p((pj,tg)=>{"use strict";var mA=Array.isArray;tg.exports=mA});var ig=p((gj,rg)=>{"use strict";function _A(){return!1}rg.exports=_A});var ag=p((Ni,Nr)=>{"use strict";var bA=Lr(),wA=ig(),og=typeof Ni=="object"&&Ni&&!Ni.nodeType&&Ni,ng=og&&typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,SA=ng&&ng.exports===og,sg=SA?bA.Buffer:void 0,EA=sg?sg.isBuffer:void 0,vA=EA||wA;Nr.exports=vA});var ug=p((yj,lg)=>{"use strict";var xA=Ii(),TA=yl(),AA=Pr(),RA="[object Arguments]",OA="[object Array]",DA="[object Boolean]",IA="[object Date]",LA="[object Error]",PA="[object Function]",NA="[object Map]",MA="[object Number]",CA="[object Object]",kA="[object RegExp]",qA="[object Set]",FA="[object String]",BA="[object WeakMap]",jA="[object ArrayBuffer]",WA="[object DataView]",UA="[object Float32Array]",GA="[object Float64Array]",zA="[object Int8Array]",$A="[object Int16Array]",HA="[object Int32Array]",VA="[object Uint8Array]",YA="[object Uint8ClampedArray]",ZA="[object Uint16Array]",KA="[object Uint32Array]",X={};X[UA]=X[GA]=X[zA]=X[$A]=X[HA]=X[VA]=X[YA]=X[ZA]=X[KA]=!0;X[RA]=X[OA]=X[jA]=X[DA]=X[WA]=X[IA]=X[LA]=X[PA]=X[NA]=X[MA]=X[CA]=X[kA]=X[qA]=X[FA]=X[BA]=!1;function QA(t){return AA(t)&&TA(t.length)&&!!X[xA(t)]}lg.exports=QA});var wl=p((mj,fg)=>{"use strict";function XA(t){return function(e){return t(e)}}fg.exports=XA});var cg=p((Mi,Mr)=>{"use strict";var JA=dl(),hg=typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,Ci=hg&&typeof Mr=="object"&&Mr&&!Mr.nodeType&&Mr,eR=Ci&&Ci.exports===hg,Sl=eR&&JA.process,tR=(function(){try{var t=Ci&&Ci.require&&Ci.require("util").types;return t||Sl&&Sl.binding&&Sl.binding("util")}catch{}})();Mr.exports=tR});var yg=p((_j,gg)=>{"use strict";var rR=ug(),iR=wl(),dg=cg(),pg=dg&&dg.isTypedArray,nR=pg?iR(pg):rR;gg.exports=nR});var _g=p((bj,mg)=>{"use strict";var sR=Yp(),oR=_l(),aR=bl(),lR=ag(),uR=ml(),fR=yg(),hR=Object.prototype,cR=hR.hasOwnProperty;function dR(t,e){var r=aR(t),i=!r&&oR(t),n=!r&&!i&&lR(t),s=!r&&!i&&!n&&fR(t),o=r||i||n||s,a=o?sR(t.length,String):[],l=a.length;for(var u in t)(e||cR.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||uR(u,l)))&&a.push(u);return a}mg.exports=dR});var wg=p((wj,bg)=>{"use strict";var pR=Object.prototype;function gR(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||pR;return t===r}bg.exports=gR});var Eg=p((Sj,Sg)=>{"use strict";function yR(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}Sg.exports=yR});var xg=p((Ej,vg)=>{"use strict";var mR=Li(),_R=wg(),bR=Eg(),wR=Object.prototype,SR=wR.hasOwnProperty;function ER(t){if(!mR(t))return bR(t);var e=_R(t),r=[];for(var i in t)i=="constructor"&&(e||!SR.call(t,i))||r.push(i);return r}vg.exports=ER});var Ag=p((vj,Tg)=>{"use strict";var vR=_g(),xR=xg(),TR=_s();function AR(t){return TR(t)?vR(t,!0):xR(t)}Tg.exports=AR});var Dg=p((xj,Og)=>{"use strict";var RR=ys(),OR=ms(),DR=Hp(),IR=Ag(),Rg=Object.prototype,LR=Rg.hasOwnProperty,PR=RR(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&DR(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=IR(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||OR(f,Rg[u])&&!LR.call(t,u))&&(t[u]=s[u])}return t});Og.exports=PR});var ie=p((Tj,Ig)=>{"use strict";var El=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let i=0;i<e.length;i++)r+=` ${e[i].stack}
|
|
8
|
-
`;super(r),this.name="AggregateError",this.errors=e}};Ig.exports={AggregateError:El,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var vl=p((Aj,Lg)=>{"use strict";Lg.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var xe=p((Rj,Mg)=>{"use strict";var{format:NR,inspect:bs}=vl(),{AggregateError:MR}=ie(),CR=globalThis.AggregateError||MR,kR=Symbol("kIsNodeError"),qR=["string","function","number","object","Function","Object","boolean","bigint","symbol"],FR=/^([A-Z][a-z0-9]*)+$/,BR="__node_internal_",ws={};function er(t,e){if(!t)throw new ws.ERR_INTERNAL_ASSERTION(e)}function Pg(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function jR(t,e,r){if(typeof e=="function")return er(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return er(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:NR(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(jR(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[kR]=!0,ws[t]=i}function Ng(t){let e=BR+t.name;return Object.defineProperty(t,"name",{value:e}),t}function WR(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new CR([e,t],e.message);return r.code=e.code,r}return t||e}var xl=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new ws.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};we("ERR_ASSERTION","%s",Error);we("ERR_INVALID_ARG_TYPE",(t,e,r)=>{er(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let l of e)er(typeof l=="string","All expected entries have to be of type string"),qR.includes(l)?n.push(l.toLowerCase()):FR.test(l)?s.push(l):(er(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=bs(r,{depth:-1});i+=`. Received ${l}`}}else{let l=bs(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);we("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=bs(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);we("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);we("ERR_MISSING_ARGS",(...t)=>{er(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`"${i}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(", ")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);we("ERR_OUT_OF_RANGE",(t,e,r)=>{er(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Pg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Pg(i)),i+="n"}else i=bs(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);we("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);we("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);we("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);we("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);we("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);we("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);we("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);we("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);we("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);we("ERR_STREAM_WRITE_AFTER_END","write after end",Error);we("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Mg.exports={AbortError:xl,aggregateTwoErrors:Ng(WR),hideStackFrames:Ng,codes:ws}});var zg=p((Fi,qi)=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var jg=new WeakMap,Tl=new WeakMap;function J(t){let e=jg.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function Cg(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function Cr(t,e){jg.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let i=0;i<r.length;++i){let n=r[i];n in this||Object.defineProperty(this,n,Wg(n))}}Cr.prototype={get type(){return J(this).event.type},get target(){return J(this).eventTarget},get currentTarget(){return J(this).currentTarget},composedPath(){let t=J(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return J(this).eventPhase},stopPropagation(){let t=J(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=J(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!J(this).event.bubbles},get cancelable(){return!!J(this).event.cancelable},preventDefault(){Cg(J(this))},get defaultPrevented(){return J(this).canceled},get composed(){return!!J(this).event.composed},get timeStamp(){return J(this).timeStamp},get srcElement(){return J(this).eventTarget},get cancelBubble(){return J(this).stopped},set cancelBubble(t){if(!t)return;let e=J(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!J(this).canceled},set returnValue(t){t||Cg(J(this))},initEvent(){}};Object.defineProperty(Cr.prototype,"constructor",{value:Cr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Cr.prototype,window.Event.prototype),Tl.set(window.Event.prototype,Cr));function Wg(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function UR(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function GR(t,e){let r=Object.keys(e);if(r.length===0)return t;function i(n,s){t.call(this,n,s)}i.prototype=Object.create(t.prototype,{constructor:{value:i,configurable:!0,writable:!0}});for(let n=0;n<r.length;++n){let s=r[n];if(!(s in t.prototype)){let a=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(i.prototype,s,a?UR(s):Wg(s))}}return i}function Ug(t){if(t==null||t===Object.prototype)return Cr;let e=Tl.get(t);return e==null&&(e=GR(Ug(Object.getPrototypeOf(t)),t),Tl.set(t,e)),e}function zR(t,e){let r=Ug(Object.getPrototypeOf(e));return new r(t,e)}function $R(t){return J(t).immediateStopped}function HR(t,e){J(t).eventPhase=e}function VR(t,e){J(t).currentTarget=e}function kg(t,e){J(t).passiveListener=e}var Gg=new WeakMap,qg=1,Fg=2,Ss=3;function Es(t){return t!==null&&typeof t=="object"}function ki(t){let e=Gg.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function YR(t){return{get(){let r=ki(this).get(t);for(;r!=null;){if(r.listenerType===Ss)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Es(e)&&(e=null);let r=ki(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===Ss?i!==null?i.next=n.next:n.next!==null?r.set(t,n.next):r.delete(t):i=n,n=n.next;if(e!==null){let s={listener:e,listenerType:Ss,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Al(t,e){Object.defineProperty(t,`on${e}`,YR(e))}function Bg(t){function e(){He.call(this)}e.prototype=Object.create(He.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)Al(e.prototype,t[r]);return e}function He(){if(this instanceof He){Gg.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return Bg(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return Bg(t)}throw new TypeError("Cannot call a class as a function")}He.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!Es(e))throw new TypeError("'listener' should be a function or an object.");let i=ki(this),n=Es(r),o=(n?!!r.capture:!!r)?qg:Fg,a={listener:e,listenerType:o,passive:n&&!!r.passive,once:n&&!!r.once,next:null},l=i.get(t);if(l===void 0){i.set(t,a);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===o)return;u=l,l=l.next}u.next=a},removeEventListener(t,e,r){if(e==null)return;let i=ki(this),s=(Es(r)?!!r.capture:!!r)?qg:Fg,o=null,a=i.get(t);for(;a!=null;){if(a.listener===e&&a.listenerType===s){o!==null?o.next=a.next:a.next!==null?i.set(t,a.next):i.delete(t);return}o=a,a=a.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=ki(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=zR(this,t),s=null;for(;i!=null;){if(i.once?s!==null?s.next=i.next:i.next!==null?e.set(r,i.next):e.delete(r):s=i,kg(n,i.passive?i.listener:null),typeof i.listener=="function")try{i.listener.call(this,n)}catch(o){typeof console<"u"&&typeof console.error=="function"&&console.error(o)}else i.listenerType!==Ss&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if($R(n))break;i=i.next}return kg(n,null),HR(n,0),VR(n,null),!n.defaultPrevented}};Object.defineProperty(He.prototype,"constructor",{value:He,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(He.prototype,window.EventTarget.prototype);Fi.defineEventAttribute=Al;Fi.EventTarget=He;Fi.default=He;qi.exports=He;qi.exports.EventTarget=qi.exports.default=He;qi.exports.defineEventAttribute=Al});var kr=p((ji,Bi)=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});var Rl=zg(),Lt=class extends Rl.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=vs.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};Rl.defineEventAttribute(Lt.prototype,"abort");function ZR(){let t=Object.create(Lt.prototype);return Rl.EventTarget.call(t),vs.set(t,!1),t}function KR(t){vs.get(t)===!1&&(vs.set(t,!0),t.dispatchEvent({type:"abort"}))}var vs=new WeakMap;Object.defineProperties(Lt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Lt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Pt=class{constructor(){Hg.set(this,ZR())}get signal(){return $g(this)}abort(){KR($g(this))}},Hg=new WeakMap;function $g(t){let e=Hg.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(Pt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Pt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});ji.AbortController=Pt;ji.AbortSignal=Lt;ji.default=Pt;Bi.exports=Pt;Bi.exports.AbortController=Bi.exports.default=Pt;Bi.exports.AbortSignal=Lt});var Oe=p((Oj,Dl)=>{"use strict";var QR=I("buffer"),{format:XR,inspect:JR}=vl(),{codes:{ERR_INVALID_ARG_TYPE:Ol}}=xe(),{kResistStopPropagation:eO,AggregateError:tO,SymbolDispose:rO}=ie(),iO=globalThis.AbortSignal||kr().AbortSignal,nO=globalThis.AbortController||kr().AbortController,sO=Object.getPrototypeOf(async function(){}).constructor,Vg=globalThis.Blob||QR.Blob,oO=typeof Vg<"u"?function(e){return e instanceof Vg}:function(e){return!1},Yg=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ol(e,"AbortSignal",t)},aO=(t,e)=>{if(typeof t!="function")throw new Ol(e,"Function",t)};Dl.exports={AggregateError:tO,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format:XR,inspect:JR,types:{isAsyncFunction(t){return t instanceof sO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:oO,deprecate(t,e){return t},addAbortListener:I("events").addAbortListener||function(e,r){if(e===void 0)throw new Ol("signal","AbortSignal",e);Yg(e,"signal"),aO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[eO]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[rO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:iO.any||function(e){if(e.length===1)return e[0];let r=new nO,i=()=>r.abort();return e.forEach(n=>{Yg(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};Dl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Fr=p((Dj,ny)=>{"use strict";var{ArrayIsArray:Ll,ArrayPrototypeIncludes:Xg,ArrayPrototypeJoin:Jg,ArrayPrototypeMap:lO,NumberIsInteger:Pl,NumberIsNaN:uO,NumberMAX_SAFE_INTEGER:fO,NumberMIN_SAFE_INTEGER:hO,NumberParseInt:cO,ObjectPrototypeHasOwnProperty:dO,RegExpPrototypeExec:ey,String:pO,StringPrototypeToUpperCase:gO,StringPrototypeTrim:yO}=ie(),{hideStackFrames:Be,codes:{ERR_SOCKET_BAD_PORT:mO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:qr,ERR_OUT_OF_RANGE:tr,ERR_UNKNOWN_SIGNAL:Zg}}=xe(),{normalizeEncoding:_O}=Oe(),{isAsyncFunction:bO,isArrayBufferView:wO}=Oe().types,Kg={};function SO(t){return t===(t|0)}function EO(t){return t===t>>>0}var vO=/^[0-7]+$/,xO="must be a 32-bit unsigned integer or an octal string";function TO(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(ey(vO,t)===null)throw new qr(e,t,xO);t=cO(t,8)}return ty(t,e),t}var AO=Be((t,e,r=hO,i=fO)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Pl(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),RO=Be((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Pl(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),ty=Be((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Pl(t))throw new tr(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new tr(e,`>= ${i} && <= ${n}`,t)});function Nl(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function OO(t,e,r=void 0,i){if(typeof t!="number")throw new Te(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&uO(t))throw new tr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var DO=Be((t,e,r)=>{if(!Xg(r,t)){let n="must be one of: "+Jg(lO(r,s=>typeof s=="string"?`'${s}'`:pO(s)),", ");throw new qr(e,t,n)}});function ry(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function Il(t,e,r){return t==null||!dO(t,e)?r:t[e]}var IO=Be((t,e,r=null)=>{let i=Il(r,"allowArray",!1),n=Il(r,"allowFunction",!1);if(!Il(r,"nullable",!1)&&t===null||!i&&Ll(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Te(e,"Object",t)}),LO=Be((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),xs=Be((t,e,r=0)=>{if(!Ll(t))throw new Te(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new qr(e,t,i)}});function PO(t,e){xs(t,e);for(let r=0;r<t.length;r++)Nl(t[r],`${e}[${r}]`)}function NO(t,e){xs(t,e);for(let r=0;r<t.length;r++)ry(t[r],`${e}[${r}]`)}function MO(t,e){xs(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Te(n,"AbortSignal",i);iy(i,n)}}function CO(t,e="signal"){if(Nl(t,e),Kg[t]===void 0)throw Kg[gO(t)]!==void 0?new Zg(t+" (signals must use all capital letters)"):new Zg(t)}var kO=Be((t,e="buffer")=>{if(!wO(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function qO(t,e){let r=_O(e),i=t.length;if(r==="hex"&&i%2!==0)throw new qr("encoding",e,`is invalid for data of length ${i}`)}function FO(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&yO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new mO(e,t,r);return t|0}var iy=Be((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),BO=Be((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),jO=Be((t,e)=>{if(typeof t!="function"||bO(t))throw new Te(e,"Function",t)}),WO=Be((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function UO(t,e,r){if(!Xg(r,t))throw new Te(e,`('${Jg(r,"|")}')`,t)}var GO=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Qg(t,e){if(typeof t>"u"||!ey(GO,t))throw new qr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function zO(t){if(typeof t=="string")return Qg(t,"hints"),t;if(Ll(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];Qg(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new qr("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}ny.exports={isInt32:SO,isUint32:EO,parseFileMode:TO,validateArray:xs,validateStringArray:PO,validateBooleanArray:NO,validateAbortSignalArray:MO,validateBoolean:ry,validateBuffer:kO,validateDictionary:LO,validateEncoding:qO,validateFunction:BO,validateInt32:RO,validateInteger:AO,validateNumber:OO,validateObject:IO,validateOneOf:DO,validatePlainFunction:jO,validatePort:FO,validateSignalName:CO,validateString:Nl,validateUint32:ty,validateUndefined:WO,validateUnion:UO,validateAbortSignal:iy,validateLinkHeaderValue:zO}});var Nt=p((Ij,sy)=>{"use strict";sy.exports=global.process});var rt=p((Lj,wy)=>{"use strict";var{SymbolAsyncIterator:oy,SymbolIterator:ay,SymbolFor:rr}=ie(),ly=rr("nodejs.stream.destroyed"),uy=rr("nodejs.stream.errored"),Ml=rr("nodejs.stream.readable"),Cl=rr("nodejs.stream.writable"),fy=rr("nodejs.stream.disturbed"),$O=rr("nodejs.webstream.isClosedPromise"),HO=rr("nodejs.webstream.controllerErrorFunction");function Ts(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function As(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function VO(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function tt(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function hy(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function cy(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function dy(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function YO(t){return hy(t)||cy(t)||dy(t)}function ZO(t,e){return t==null?!1:e===!0?typeof t[oy]=="function":e===!1?typeof t[ay]=="function":typeof t[oy]=="function"||typeof t[ay]=="function"}function Rs(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[ly]||i!=null&&i.destroyed)}function py(t){if(!As(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function KO(t,e){if(!As(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function QO(t){if(!Ts(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function gy(t,e){if(!Ts(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function yy(t){return t&&t[Ml]!=null?t[Ml]:typeof t?.readable!="boolean"?null:Rs(t)?!1:Ts(t)&&t.readable&&!gy(t)}function my(t){return t&&t[Cl]!=null?t[Cl]:typeof t?.writable!="boolean"?null:Rs(t)?!1:As(t)&&t.writable&&!py(t)}function XO(t,e){return tt(t)?Rs(t)?!0:!(e?.readable!==!1&&yy(t)||e?.writable!==!1&&my(t)):null}function JO(t){var e,r;return tt(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function eD(t){var e,r;return tt(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function tD(t){if(!tt(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&_y(t)?t._closed:null}function _y(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function by(t){return typeof t._sent100=="boolean"&&_y(t)}function rD(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function iD(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&by(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function nD(t){var e;return!!(t&&((e=t[fy])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function sD(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[uy])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&n!==void 0?n:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&i!==void 0?i:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((f=t._writableState)===null||f===void 0)&&f.errored))}wy.exports={isDestroyed:Rs,kIsDestroyed:ly,isDisturbed:nD,kIsDisturbed:fy,isErrored:sD,kIsErrored:uy,isReadable:yy,kIsReadable:Ml,kIsClosedPromise:$O,kControllerErrorFunction:HO,kIsWritable:Cl,isClosed:tD,isDuplexNodeStream:VO,isFinished:XO,isIterable:ZO,isReadableNodeStream:Ts,isReadableStream:hy,isReadableEnded:QO,isReadableFinished:gy,isReadableErrored:eD,isNodeStream:tt,isWebStream:YO,isWritable:my,isWritableNodeStream:As,isWritableStream:cy,isWritableEnded:py,isWritableFinished:KO,isWritableErrored:JO,isServerRequest:rD,isServerResponse:by,willEmitClose:iD,isTransformStream:dy}});var mt=p((Pj,jl)=>{"use strict";var Mt=Nt(),{AbortError:Dy,codes:oD}=xe(),{ERR_INVALID_ARG_TYPE:aD,ERR_STREAM_PREMATURE_CLOSE:Sy}=oD,{kEmptyObject:ql,once:Fl}=Oe(),{validateAbortSignal:lD,validateFunction:uD,validateObject:fD,validateBoolean:hD}=Fr(),{Promise:cD,PromisePrototypeThen:dD,SymbolDispose:Iy}=ie(),{isClosed:pD,isReadable:Ey,isReadableNodeStream:kl,isReadableStream:gD,isReadableFinished:vy,isReadableErrored:xy,isWritable:Ty,isWritableNodeStream:Ay,isWritableStream:yD,isWritableFinished:Ry,isWritableErrored:Oy,isNodeStream:mD,willEmitClose:_D,kIsClosedPromise:bD}=rt(),Br;function wD(t){return t.setHeader&&typeof t.abort=="function"}var Bl=()=>{};function Ly(t,e,r){var i,n;if(arguments.length===2?(r=e,e=ql):e==null?e=ql:fD(e,"options"),uD(r,"callback"),lD(e.signal,"options.signal"),r=Fl(r),gD(t)||yD(t))return SD(t,e,r);if(!mD(t))throw new aD("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:kl(t),o=(n=e.writable)!==null&&n!==void 0?n:Ay(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||c()},f=_D(t)&&kl(t)===s&&Ay(t)===o,h=Ry(t,!1),c=()=>{h=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=vy(t,!1),b=()=>{d=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||h)&&r.call(t)},g=A=>{r.call(t,A)},x=pD(t),y=()=>{x=!0;let A=Oy(t)||xy(t);if(A&&typeof A!="boolean")return r.call(t,A);if(s&&!d&&kl(t,!0)&&!vy(t,!1))return r.call(t,new Sy);if(o&&!h&&!Ry(t,!1))return r.call(t,new Sy);r.call(t)},m=()=>{x=!0;let A=Oy(t)||xy(t);if(A&&typeof A!="boolean")return r.call(t,A);r.call(t)},S=()=>{t.req.on("finish",c)};wD(t)?(t.on("complete",c),f||t.on("abort",y),t.req?S():t.on("request",S)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",y),t.on("end",b),t.on("finish",c),e.error!==!1&&t.on("error",g),t.on("close",y),x?Mt.nextTick(y):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Mt.nextTick(m):(!s&&(!f||Ey(t))&&(h||Ty(t)===!1)||!o&&(!f||Ty(t))&&(d||Ey(t)===!1)||l&&t.req&&t.aborted)&&Mt.nextTick(m);let E=()=>{r=Bl,t.removeListener("aborted",y),t.removeListener("complete",c),t.removeListener("abort",y),t.removeListener("request",S),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",b),t.removeListener("error",g),t.removeListener("close",y)};if(e.signal&&!x){let A=()=>{let L=r;E(),L.call(t,new Dy(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Mt.nextTick(A);else{Br=Br||Oe().addAbortListener;let L=Br(e.signal,A),v=r;r=Fl((...O)=>{L[Iy](),v.apply(t,O)})}}return E}function SD(t,e,r){let i=!1,n=Bl;if(e.signal)if(n=()=>{i=!0,r.call(t,new Dy(void 0,{cause:e.signal.reason}))},e.signal.aborted)Mt.nextTick(n);else{Br=Br||Oe().addAbortListener;let o=Br(e.signal,n),a=r;r=Fl((...l)=>{o[Iy](),a.apply(t,l)})}let s=(...o)=>{i||Mt.nextTick(()=>r.apply(t,o))};return dD(t[bD].promise,s,s),Bl}function ED(t,e){var r;let i=!1;return e===null&&(e=ql),(r=e)!==null&&r!==void 0&&r.cleanup&&(hD(e.cleanup,"cleanup"),i=e.cleanup),new cD((n,s)=>{let o=Ly(t,e,a=>{i&&o(),a?s(a):n()})})}jl.exports=Ly;jl.exports.finished=ED});var ir=p((Nj,By)=>{"use strict";var it=Nt(),{aggregateTwoErrors:vD,codes:{ERR_MULTIPLE_CALLBACK:xD},AbortError:TD}=xe(),{Symbol:My}=ie(),{kIsDestroyed:AD,isDestroyed:RD,isFinished:OD,isServerRequest:DD}=rt(),Cy=My("kDestroy"),Wl=My("kConstruct");function ky(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function ID(t,e){let r=this._readableState,i=this._writableState,n=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(ky(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Py(this,t,e):this.once(Cy,function(s){Py(this,vD(s,t),e)}),this)}function Py(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;ky(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(LD,t,s):it.nextTick(qy,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function LD(t,e){Ul(t,e),qy(t)}function qy(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Ul(t,e){let r=t._readableState,i=t._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function PD(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function Gl(t,e,r){let i=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),i&&!i.errored&&(i.errored=e),r?it.nextTick(Ul,t,e):Ul(t,e))}function ND(t,e){if(typeof t._construct!="function")return;let r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(Wl,e),!(t.listenerCount(Wl)>1)&&it.nextTick(MD,t)}function MD(t){let e=!1;function r(i){if(e){Gl(t,i??new xD);return}e=!0;let n=t._readableState,s=t._writableState,o=s||n;n&&(n.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(Cy,i):i?Gl(t,i,!0):it.nextTick(CD,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function CD(t){t.emit(Wl)}function Ny(t){return t?.setHeader&&typeof t.abort=="function"}function Fy(t){t.emit("close")}function kD(t,e){t.emit("error",e),it.nextTick(Fy,t)}function qD(t,e){!t||RD(t)||(!e&&!OD(t)&&(e=new TD),DD(t)?(t.socket=null,t.destroy(e)):Ny(t)?t.abort():Ny(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(kD,t,e):it.nextTick(Fy,t),t.destroyed||(t[AD]=!0))}By.exports={construct:ND,destroyer:qD,destroy:ID,undestroy:PD,errorOrDestroy:Gl}});var Is=p((Mj,Wy)=>{"use strict";var{ArrayIsArray:FD,ObjectSetPrototypeOf:jy}=ie(),{EventEmitter:Os}=I("events");function Ds(t){Os.call(this,t)}jy(Ds.prototype,Os.prototype);jy(Ds,Os);Ds.prototype.pipe=function(t,e){let r=this;function i(f){t.writable&&t.write(f)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(f){u(),Os.listenerCount(this,"error")===0&&this.emit("error",f)}zl(r,"error",l),zl(t,"error",l);function u(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function zl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):FD(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}Wy.exports={Stream:Ds,prependListener:zl}});var Wi=p((Cj,Ls)=>{"use strict";var{SymbolDispose:BD}=ie(),{AbortError:Uy,codes:jD}=xe(),{isNodeStream:Gy,isWebStream:WD,kControllerErrorFunction:UD}=rt(),GD=mt(),{ERR_INVALID_ARG_TYPE:zy}=jD,$l,zD=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new zy(e,"AbortSignal",t)};Ls.exports.addAbortSignal=function(e,r){if(zD(e,"signal"),!Gy(r)&&!WD(r))throw new zy("stream",["ReadableStream","WritableStream","Stream"],r);return Ls.exports.addAbortSignalNoValidate(e,r)};Ls.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=Gy(e)?()=>{e.destroy(new Uy(void 0,{cause:t.reason}))}:()=>{e[UD](new Uy(void 0,{cause:t.reason}))};if(t.aborted)r();else{$l=$l||Oe().addAbortListener;let i=$l(t,r);GD(e,i[BD])}return e}});var Vy=p((qj,Hy)=>{"use strict";var{StringPrototypeSlice:$y,SymbolIterator:$D,TypedArrayPrototypeSet:Ps,Uint8Array:HD}=ie(),{Buffer:Hl}=I("buffer"),{inspect:VD}=Oe();Hy.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=e+r.data;return i}concat(e){if(this.length===0)return Hl.alloc(0);let r=Hl.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)Ps(r,i.data,n),n+=i.data.length,i=i.next;return r}consume(e,r){let i=this.head.data;if(e<i.length){let n=i.slice(0,e);return this.head.data=i.slice(e),n}return e===i.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[$D](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",i=this.head,n=0;do{let s=i.data;if(e>s.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++n,i.next?this.head=i.next:this.head=this.tail=null):(r+=$y(s,0,e),this.head=i,i.data=$y(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Hl.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)Ps(r,o,i-e),e-=o.length;else{e===o.length?(Ps(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(Ps(r,new HD(o.buffer,o.byteOffset,e),i-e),this.head=n,n.data=o.slice(e));break}++s}while((n=n.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return VD(this,{...r,depth:0,customInspect:!1})}}});var Ui=p((Fj,Qy)=>{"use strict";var{MathFloor:YD,NumberIsInteger:ZD}=ie(),{validateInteger:KD}=Fr(),{ERR_INVALID_ARG_VALUE:QD}=xe().codes,Yy=16*1024,Zy=16;function XD(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Ky(t){return t?Zy:Yy}function JD(t,e){KD(e,"value",0),t?Zy=e:Yy=e}function eI(t,e,r,i){let n=XD(e,i,r);if(n!=null){if(!ZD(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new QD(s,n)}return YD(n)}return Ky(t.objectMode)}Qy.exports={getHighWaterMark:eI,getDefaultHighWaterMark:Ky,setDefaultHighWaterMark:JD}});var em=p((Vl,Jy)=>{"use strict";var Ns=I("buffer"),nt=Ns.Buffer;function Xy(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?Jy.exports=Ns:(Xy(Ns,Vl),Vl.Buffer=nr);function nr(t,e,r){return nt(t,e,r)}nr.prototype=Object.create(nt.prototype);Xy(nt,nr);nr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};nr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=nt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ns.SlowBuffer(t)}});var im=p(rm=>{"use strict";var Zl=em().Buffer,tm=Zl.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function tI(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function rI(t){var e=tI(t);if(typeof e!="string"&&(Zl.isEncoding===tm||!tm(t)))throw new Error("Unknown encoding: "+t);return e||t}rm.StringDecoder=Gi;function Gi(t){this.encoding=rI(t);var e;switch(this.encoding){case"utf16le":this.text=lI,this.end=uI,e=4;break;case"utf8":this.fillLast=sI,e=4;break;case"base64":this.text=fI,this.end=hI,e=3;break;default:this.write=cI,this.end=dI;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Zl.allocUnsafe(e)}Gi.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Gi.prototype.end=aI;Gi.prototype.text=oI;Gi.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Yl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function iI(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Yl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Yl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Yl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function nI(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function sI(t){var e=this.lastTotal-this.lastNeed,r=nI(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function oI(t,e){var r=iI(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function aI(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function lI(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function uI(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function fI(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function hI(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function cI(t){return t.toString(this.encoding)}function dI(t){return t&&t.length?this.write(t):""}});var Kl=p((jj,am)=>{"use strict";var nm=Nt(),{PromisePrototypeThen:pI,SymbolAsyncIterator:sm,SymbolIterator:om}=ie(),{Buffer:gI}=I("buffer"),{ERR_INVALID_ARG_TYPE:yI,ERR_STREAM_NULL_VALUES:mI}=xe().codes;function _I(t,e,r){let i;if(typeof e=="string"||e instanceof gI)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[sm])n=!0,i=e[sm]();else if(e&&e[om])n=!1,i=e[om]();else throw new yI("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,f){pI(a(u),()=>nm.nextTick(f,u),h=>nm.nextTick(f,h||u))};async function a(u){let f=u!=null,h=typeof i.throw=="function";if(f&&h){let{value:c,done:d}=await i.throw(u);if(await c,d)return}if(typeof i.return=="function"){let{value:c}=await i.return();await c}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let h=u&&typeof u.then=="function"?await u:u;if(h===null)throw o=!1,new mI;if(s.push(h))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}am.exports=_I});var $i=p((Wj,Tm)=>{"use strict";var Ve=Nt(),{ArrayPrototypeIndexOf:bI,NumberIsInteger:wI,NumberIsNaN:SI,NumberParseInt:EI,ObjectDefineProperties:nu,ObjectKeys:vI,ObjectSetPrototypeOf:fm,Promise:hm,SafeSet:xI,SymbolAsyncDispose:TI,SymbolAsyncIterator:AI,Symbol:RI}=ie();Tm.exports=C;C.ReadableState=qs;var{EventEmitter:OI}=I("events"),{Stream:Ct,prependListener:DI}=Is(),{Buffer:Ql}=I("buffer"),{addAbortSignal:II}=Wi(),cm=mt(),j=Oe().debuglog("stream",t=>{j=t}),LI=Vy(),Ur=ir(),{getHighWaterMark:PI,getDefaultHighWaterMark:NI}=Ui(),{aggregateTwoErrors:lm,codes:{ERR_INVALID_ARG_TYPE:MI,ERR_METHOD_NOT_IMPLEMENTED:CI,ERR_OUT_OF_RANGE:kI,ERR_STREAM_PUSH_AFTER_EOF:qI,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:FI},AbortError:BI}=xe(),{validateObject:jI}=Fr(),sr=RI("kPaused"),{StringDecoder:dm}=im(),WI=Kl();fm(C.prototype,Ct.prototype);fm(C,Ct);var Xl=()=>{},{errorOrDestroy:jr}=Ur,Wr=1,UI=2,pm=4,zi=8,gm=16,Ms=32,Cs=64,ym=128,GI=256,zI=512,$I=1024,ru=2048,iu=4096,HI=8192,VI=16384,YI=32768,mm=65536,ZI=1<<17,KI=1<<18;function he(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}nu(qs.prototype,{objectMode:he(Wr),ended:he(UI),endEmitted:he(pm),reading:he(zi),constructed:he(gm),sync:he(Ms),needReadable:he(Cs),emittedReadable:he(ym),readableListening:he(GI),resumeScheduled:he(zI),errorEmitted:he($I),emitClose:he(ru),autoDestroy:he(iu),destroyed:he(HI),closed:he(VI),closeEmitted:he(YI),multiAwaitDrain:he(mm),readingMore:he(ZI),dataEmitted:he(KI)});function qs(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=ru|iu|gm|Ms,t&&t.objectMode&&(this.state|=Wr),r&&t&&t.readableObjectMode&&(this.state|=Wr),this.highWaterMark=t?PI(this,t,"readableHighWaterMark",r):NI(!1),this.buffer=new LI,this.length=0,this.pipes=[],this.flowing=null,this[sr]=null,t&&t.emitClose===!1&&(this.state&=~ru),t&&t.autoDestroy===!1&&(this.state&=~iu),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new dm(t.encoding),this.encoding=t.encoding)}function C(t){if(!(this instanceof C))return new C(t);let e=this instanceof st();this._readableState=new qs(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&II(t.signal,this)),Ct.call(this,t),Ur.construct(this,()=>{this._readableState.needReadable&&ks(this,this._readableState)})}C.prototype.destroy=Ur.destroy;C.prototype._undestroy=Ur.undestroy;C.prototype._destroy=function(t,e){e(t)};C.prototype[OI.captureRejectionSymbol]=function(t){this.destroy(t)};C.prototype[TI]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new BI,this.destroy(t)),new hm((e,r)=>cm(this,i=>i&&i!==t?r(i):e(null)))};C.prototype.push=function(t,e){return _m(this,t,e,!1)};C.prototype.unshift=function(t,e){return _m(this,t,e,!0)};function _m(t,e,r,i){j("readableAddChunk",e);let n=t._readableState,s;if((n.state&Wr)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=Ql.from(e,r).toString(n.encoding):(e=Ql.from(e,r),r=""))):e instanceof Ql?r="":Ct._isUint8Array(e)?(e=Ct._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new MI("chunk",["string","Buffer","Uint8Array"],e))),s)jr(t,s);else if(e===null)n.state&=~zi,JI(t,n);else if((n.state&Wr)!==0||e&&e.length>0)if(i)if((n.state&pm)!==0)jr(t,new FI);else{if(n.destroyed||n.errored)return!1;Jl(t,n,e,!0)}else if(n.ended)jr(t,new qI);else{if(n.destroyed||n.errored)return!1;n.state&=~zi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Jl(t,n,e,!1):ks(t,n)):Jl(t,n,e,!1)}else i||(n.state&=~zi,ks(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function Jl(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&mm)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),(e.state&Cs)!==0&&Fs(t)),ks(t,e)}C.prototype.isPaused=function(){let t=this._readableState;return t[sr]===!0||t.flowing===!1};C.prototype.setEncoding=function(t){let e=new dm(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i="";for(let n of r)i+=e.write(n);return r.clear(),i!==""&&r.push(i),this._readableState.length=i.length,this};var QI=1073741824;function XI(t){if(t>QI)throw new kI("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function um(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Wr)!==0?1:SI(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}C.prototype.read=function(t){j("read",t),t===void 0?t=NaN:wI(t)||(t=EI(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=XI(t)),t!==0&&(e.state&=~ym),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return j("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?eu(this):Fs(this),null;if(t=um(t,e),t===0&&e.ended)return e.length===0&&eu(this),null;let i=(e.state&Cs)!==0;if(j("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,j("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,j("reading, ended or constructing",i);else if(i){j("do read"),e.state|=zi|Ms,e.length===0&&(e.state|=Cs);try{this._read(e.highWaterMark)}catch(s){jr(this,s)}e.state&=~Ms,e.reading||(t=um(r,e))}let n;return t>0?n=vm(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&eu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function JI(t,e){if(j("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Fs(t):(e.needReadable=!1,e.emittedReadable=!0,bm(t))}}function Fs(t){let e=t._readableState;j("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(j("emitReadable",e.flowing),e.emittedReadable=!0,Ve.nextTick(bm,t))}function bm(t){let e=t._readableState;j("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Sm(t)}function ks(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(eL,t,e))}function eL(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(j("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}C.prototype._read=function(t){throw new CI("_read()")};C.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new xI(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),j("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==Ve.stdout&&t!==Ve.stderr?a:x;i.endEmitted?Ve.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,m){j("onunpipe"),y===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,f())}function a(){j("onend"),t.end()}let l,u=!1;function f(){j("cleanup"),t.removeListener("close",b),t.removeListener("finish",g),l&&t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",x),r.removeListener("data",c),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function h(){u||(i.pipes.length===1&&i.pipes[0]===t?(j("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(j("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=tL(r,t),t.on("drain",l))}r.on("data",c);function c(y){j("ondata");let m=t.write(y);j("dest.write",m),m===!1&&h()}function d(y){if(j("onerror",y),x(),t.removeListener("error",d),t.listenerCount("error")===0){let m=t._writableState||t._readableState;m&&!m.errorEmitted?jr(t,y):t.emit("error",y)}}DI(t,"error",d);function b(){t.removeListener("finish",g),x()}t.once("close",b);function g(){j("onfinish"),t.removeListener("close",b),x()}t.once("finish",g);function x(){j("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?h():i.flowing||(j("pipe resume"),r.resume()),t};function tL(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(j("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(j("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}C.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let s=0;s<n.length;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}let i=bI(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};C.prototype.on=function(t,e){let r=Ct.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,j("on readable",i.length,i.reading),i.length?Fs(this):i.reading||Ve.nextTick(rL,this)),r};C.prototype.addListener=C.prototype.on;C.prototype.removeListener=function(t,e){let r=Ct.prototype.removeListener.call(this,t,e);return t==="readable"&&Ve.nextTick(wm,this),r};C.prototype.off=C.prototype.removeListener;C.prototype.removeAllListeners=function(t){let e=Ct.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ve.nextTick(wm,this),e};function wm(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[sr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function rL(t){j("readable nexttick read 0"),t.read(0)}C.prototype.resume=function(){let t=this._readableState;return t.flowing||(j("resume"),t.flowing=!t.readableListening,iL(this,t)),t[sr]=!1,this};function iL(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(nL,t,e))}function nL(t,e){j("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Sm(t),e.flowing&&!e.reading&&t.read(0)}C.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[sr]=!0,this};function Sm(t){let e=t._readableState;for(j("flow",e.flowing);e.flowing&&t.read()!==null;);}C.prototype.wrap=function(t){let e=!1;t.on("data",i=>{!this.push(i)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",i=>{jr(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=vI(t);for(let i=1;i<r.length;i++){let n=r[i];this[n]===void 0&&typeof t[n]=="function"&&(this[n]=t[n].bind(t))}return this};C.prototype[AI]=function(){return Em(this)};C.prototype.iterator=function(t){return t!==void 0&&jI(t,"options"),Em(this,t)};function Em(t,e){typeof t.read!="function"&&(t=C.wrap(t,{objectMode:!0}));let r=sL(t,e);return r.stream=t,r}async function*sL(t,e){let r=Xl;function i(o){this===t?(r(),r=Xl):r=o}t.on("readable",i);let n,s=cm(t,{writable:!1},o=>{n=o?lm(n,o):null,r(),r=Xl});try{for(;;){let o=t.destroyed?null:t.read();if(o!==null)yield o;else{if(n)throw n;if(n===null)return;await new hm(i)}}}catch(o){throw n=lm(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Ur.destroyer(t,null):(t.off("readable",i),s())}}nu(C.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});nu(qs.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[sr]!==!1},set(t){this[sr]=!!t}}});C._fromList=vm;function vm(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function eu(t){let e=t._readableState;j("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(oL,e,t))}function oL(t,e){if(j("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Ve.nextTick(aL,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function aL(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}C.from=function(t,e){return WI(C,t,e)};var tu;function xm(){return tu===void 0&&(tu={}),tu}C.fromWeb=function(t,e){return xm().newStreamReadableFromReadableStream(t,e)};C.toWeb=function(t,e){return xm().newReadableStreamFromStreamReadable(t,e)};C.wrap=function(t,e){var r,i;return new C({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){Ur.destroyer(t,n),s(n)}}).wrap(t)}});var Gs=p((Uj,qm)=>{"use strict";var or=Nt(),{ArrayPrototypeSlice:Om,Error:lL,FunctionPrototypeSymbolHasInstance:Dm,ObjectDefineProperty:Im,ObjectDefineProperties:uL,ObjectSetPrototypeOf:Lm,StringPrototypeToLowerCase:fL,Symbol:hL,SymbolHasInstance:cL}=ie();qm.exports=se;se.WritableState=Yi;var{EventEmitter:dL}=I("events"),Hi=Is().Stream,{Buffer:Bs}=I("buffer"),Us=ir(),{addAbortSignal:pL}=Wi(),{getHighWaterMark:gL,getDefaultHighWaterMark:yL}=Ui(),{ERR_INVALID_ARG_TYPE:mL,ERR_METHOD_NOT_IMPLEMENTED:_L,ERR_MULTIPLE_CALLBACK:Pm,ERR_STREAM_CANNOT_PIPE:bL,ERR_STREAM_DESTROYED:Vi,ERR_STREAM_ALREADY_FINISHED:wL,ERR_STREAM_NULL_VALUES:SL,ERR_STREAM_WRITE_AFTER_END:EL,ERR_UNKNOWN_ENCODING:Nm}=xe().codes,{errorOrDestroy:Gr}=Us;Lm(se.prototype,Hi.prototype);Lm(se,Hi);function au(){}var zr=hL("kOnFinished");function Yi(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?gL(this,t,"writableHighWaterMark",r):yL(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(t&&t.decodeStrings===!1);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=xL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Ws(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[zr]=[]}function Ws(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Yi.prototype.getBuffer=function(){return Om(this.buffered,this.bufferedIndex)};Im(Yi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!Dm(se,this))return new se(t);this._writableState=new Yi(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&pL(t.signal,this)),Hi.call(this,t),Us.construct(this,()=>{let r=this._writableState;r.writing||uu(this,r),fu(this,r)})}Im(se,cL,{__proto__:null,value:function(t){return Dm(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Yi}});se.prototype.pipe=function(){Gr(this,new bL)};function Mm(t,e,r,i){let n=t._writableState;if(typeof r=="function")i=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!=="buffer"&&!Bs.isEncoding(r))throw new Nm(r);typeof i!="function"&&(i=au)}if(e===null)throw new SL;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Bs.from(e,r),r="buffer");else if(e instanceof Bs)r="buffer";else if(Hi._isUint8Array(e))e=Hi._uint8ArrayToBuffer(e),r="buffer";else throw new mL("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new EL:n.destroyed&&(s=new Vi("write")),s?(or.nextTick(i,s),Gr(t,s,!0),s):(n.pendingcb++,vL(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Mm(this,t,e,r)===!0};se.prototype.cork=function(){this._writableState.corked++};se.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||uu(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=fL(e)),!Bs.isEncoding(e))throw new Nm(e);return this._writableState.defaultEncoding=e,this};function vL(t,e,r,i,n){let s=e.objectMode?1:r.length;e.length+=s;let o=e.length<e.highWaterMark;return o||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:i,callback:n}),e.allBuffers&&i!=="buffer"&&(e.allBuffers=!1),e.allNoop&&n!==au&&(e.allNoop=!1)):(e.writelen=s,e.writecb=n,e.writing=!0,e.sync=!0,t._write(r,i,e.onwrite),e.sync=!1),o&&!e.errored&&!e.destroyed}function Am(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Vi("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Rm(t,e,r,i){--e.pendingcb,i(r),lu(e),Gr(t,r)}function xL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){Gr(t,new Pm);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?or.nextTick(Rm,t,r,e,n):Rm(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&uu(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},or.nextTick(TL,r.afterWriteTickInfo)):Cm(t,r,1,n))}function TL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,Cm(t,e,r,i)}function Cm(t,e,r,i){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,i();e.destroyed&&lu(e),fu(t,e)}function lu(t){if(t.writing)return;for(let n=t.bufferedIndex;n<t.buffered.length;++n){var e;let{chunk:s,callback:o}=t.buffered[n],a=t.objectMode?1:s.length;t.length-=a,o((e=t.errored)!==null&&e!==void 0?e:new Vi("write"))}let r=t[zr].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Vi("end"))}Ws(t)}function uu(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:i,objectMode:n}=e,s=r.length-i;if(!s)return;let o=i;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let a=e.allNoop?au:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:Om(r,o);l.allBuffers=e.allBuffers,Am(t,e,!0,e.length,l,"",a),Ws(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;Am(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?Ws(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}se.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new _L("_write()")};se.prototype._writev=null;se.prototype.end=function(t,e,r){let i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let s=Mm(this,t,e);s instanceof lL&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,fu(this,i,!0),i.ended=!0):i.finished?n=new wL("end"):i.destroyed&&(n=new Vi("end"))),typeof r=="function"&&(n||i.finished?or.nextTick(r,n):i[zr].push(r)),this};function js(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function AL(t,e){let r=!1;function i(n){if(r){Gr(t,n??Pm());return}if(r=!0,e.pendingcb--,n){let s=e[zr].splice(0);for(let o=0;o<s.length;o++)s[o](n);Gr(t,n,e.sync)}else js(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,or.nextTick(ou,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function RL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,AL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function fu(t,e,r){js(e)&&(RL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,or.nextTick((i,n)=>{js(n)?ou(i,n):n.pendingcb--},t,e)):js(e)&&(e.pendingcb++,ou(t,e))))}function ou(t,e){e.pendingcb--,e.finished=!0;let r=e[zr].splice(0);for(let i=0;i<r.length;i++)r[i]();if(t.emit("finish"),e.autoDestroy){let i=t._readableState;(!i||i.autoDestroy&&(i.endEmitted||i.readable===!1))&&t.destroy()}}uL(se.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var OL=Us.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[zr].length)&&or.nextTick(lu,r),OL.call(this,t,e),this};se.prototype._undestroy=Us.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[dL.captureRejectionSymbol]=function(t){this.destroy(t)};var su;function km(){return su===void 0&&(su={}),su}se.fromWeb=function(t,e){return km().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return km().newWritableStreamFromStreamWritable(t)}});var Xm=p((Gj,Qm)=>{"use strict";var hu=Nt(),DL=I("buffer"),{isReadable:IL,isWritable:LL,isIterable:Fm,isNodeStream:PL,isReadableNodeStream:Bm,isWritableNodeStream:jm,isDuplexNodeStream:NL,isReadableStream:Wm,isWritableStream:Um}=rt(),Gm=mt(),{AbortError:Zm,codes:{ERR_INVALID_ARG_TYPE:ML,ERR_INVALID_RETURN_VALUE:zm}}=xe(),{destroyer:Hr}=ir(),CL=st(),Km=$i(),kL=Gs(),{createDeferredPromise:$m}=Oe(),Hm=Kl(),Vm=globalThis.Blob||DL.Blob,qL=typeof Vm<"u"?function(e){return e instanceof Vm}:function(e){return!1},FL=globalThis.AbortController||kr().AbortController,{FunctionPrototypeCall:Ym}=ie(),kt=class extends CL{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};Qm.exports=function t(e,r){if(NL(e))return e;if(Bm(e))return $r({readable:e});if(jm(e))return $r({writable:e});if(PL(e))return $r({writable:!1,readable:!1});if(Wm(e))return $r({readable:Km.fromWeb(e)});if(Um(e))return $r({writable:kL.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=BL(e);if(Fm(n))return Hm(kt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=Ym(l,n,h=>{if(h!=null)throw new zm("nully","body",h)},h=>{Hr(u,h)});return u=new kt({objectMode:!0,readable:!1,write:s,final(h){o(async()=>{try{await f,hu.nextTick(h,null)}catch(c){hu.nextTick(h,c)}})},destroy:a})}throw new zm("Iterable, AsyncIterable or AsyncFunction",r,n)}if(qL(e))return t(e.arrayBuffer());if(Fm(e))return Hm(kt,e,{objectMode:!0,writable:!1});if(Wm(e?.readable)&&Um(e?.writable))return kt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?Bm(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?jm(e?.writable)?e?.writable:t(e.writable):void 0;return $r({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return Ym(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Hr(n,s)}),n=new kt({objectMode:!0,writable:!1,read(){}})}throw new ML(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function BL(t){let{promise:e,resolve:r}=$m(),i=new FL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(hu.nextTick(u),l)return;if(n.aborted)throw new Zm(void 0,{cause:n.reason});({promise:e,resolve:r}=$m()),yield a}})(),{signal:n}),write(o,a,l){let u=r;r=null,u({chunk:o,done:!1,cb:l})},final(o){let a=r;r=null,a({done:!0,cb:o})},destroy(o,a){i.abort(),a(o)}}}function $r(t){let e=t.readable&&typeof t.readable.read!="function"?Km.wrap(t.readable):t.readable,r=t.writable,i=!!IL(e),n=!!LL(r),s,o,a,l,u;function f(h){let c=l;l=null,c?c(h):h&&u.destroy(h)}return u=new kt({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(Gm(r,h=>{n=!1,h&&Hr(e,h),f(h)}),u._write=function(h,c,d){r.write(h,c)?d():s=d},u._final=function(h){r.end(),o=h},r.on("drain",function(){if(s){let h=s;s=null,h()}}),r.on("finish",function(){if(o){let h=o;o=null,h()}})),i&&(Gm(e,h=>{i=!1,h&&Hr(e,h),f(h)}),e.on("readable",function(){if(a){let h=a;a=null,h()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let h=e.read();if(h===null){a=u._read;return}if(!u.push(h))return}}),u._destroy=function(h,c){!h&&l!==null&&(h=new Zm),a=null,s=null,o=null,l===null?c(h):(l=c,Hr(r,h),Hr(e,h))},u}});var st=p((zj,t_)=>{"use strict";var{ObjectDefineProperties:jL,ObjectGetOwnPropertyDescriptor:_t,ObjectKeys:WL,ObjectSetPrototypeOf:Jm}=ie();t_.exports=Ye;var pu=$i(),je=Gs();Jm(Ye.prototype,pu.prototype);Jm(Ye,pu);{let t=WL(je.prototype);for(let e=0;e<t.length;e++){let r=t[e];Ye.prototype[r]||(Ye.prototype[r]=je.prototype[r])}}function Ye(t){if(!(this instanceof Ye))return new Ye(t);pu.call(this,t),je.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}jL(Ye.prototype,{writable:{__proto__:null,..._t(je.prototype,"writable")},writableHighWaterMark:{__proto__:null,..._t(je.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,..._t(je.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,..._t(je.prototype,"writableBuffer")},writableLength:{__proto__:null,..._t(je.prototype,"writableLength")},writableFinished:{__proto__:null,..._t(je.prototype,"writableFinished")},writableCorked:{__proto__:null,..._t(je.prototype,"writableCorked")},writableEnded:{__proto__:null,..._t(je.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,..._t(je.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var cu;function e_(){return cu===void 0&&(cu={}),cu}Ye.fromWeb=function(t,e){return e_().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return e_().newReadableWritablePairFromDuplex(t)};var du;Ye.from=function(t){return du||(du=Xm()),du(t,"body")}});var mu=p(($j,i_)=>{"use strict";var{ObjectSetPrototypeOf:r_,Symbol:UL}=ie();i_.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:GL}=xe().codes,yu=st(),{getHighWaterMark:zL}=Ui();r_(bt.prototype,yu.prototype);r_(bt,yu);var Zi=UL("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?zL(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),yu.call(this,t),this._readableState.sync=!1,this[Zi]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",$L)}function gu(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function $L(){this._final!==gu&&gu.call(this)}bt.prototype._final=gu;bt.prototype._transform=function(t,e,r){throw new GL("_transform()")};bt.prototype._write=function(t,e,r){let i=this._readableState,n=this._writableState,s=i.length;this._transform(t,e,(o,a)=>{if(o){r(o);return}a!=null&&this.push(a),n.ended||s===i.length||i.length<i.highWaterMark?r():this[Zi]=r})};bt.prototype._read=function(){if(this[Zi]){let t=this[Zi];this[Zi]=null,t()}}});var bu=p((Hj,s_)=>{"use strict";var{ObjectSetPrototypeOf:n_}=ie();s_.exports=Vr;var _u=mu();n_(Vr.prototype,_u.prototype);n_(Vr,_u);function Vr(t){if(!(this instanceof Vr))return new Vr(t);_u.call(this,t)}Vr.prototype._transform=function(t,e,r){r(null,t)}});var Vs=p((Vj,f_)=>{"use strict";var Ki=Nt(),{ArrayIsArray:HL,Promise:VL,SymbolAsyncIterator:YL,SymbolDispose:ZL}=ie(),Hs=mt(),{once:KL}=Oe(),QL=ir(),o_=st(),{aggregateTwoErrors:XL,codes:{ERR_INVALID_ARG_TYPE:Ou,ERR_INVALID_RETURN_VALUE:wu,ERR_MISSING_ARGS:JL,ERR_STREAM_DESTROYED:eP,ERR_STREAM_PREMATURE_CLOSE:tP},AbortError:rP}=xe(),{validateFunction:iP,validateAbortSignal:nP}=Fr(),{isIterable:ar,isReadable:Su,isReadableNodeStream:$s,isNodeStream:a_,isTransformStream:Yr,isWebStream:sP,isReadableStream:Eu,isReadableFinished:oP}=rt(),aP=globalThis.AbortController||kr().AbortController,vu,xu,Tu;function l_(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Hs(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,QL.destroyer(t,s||new eP("pipe")))},cleanup:n}}function lP(t){return iP(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Au(t){if(ar(t))return t;if($s(t))return uP(t);throw new Ou("val",["Readable","Iterable","AsyncIterable"],t)}async function*uP(t){xu||(xu=$i()),yield*xu.prototype[YL].call(t)}async function zs(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new VL((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Hs(e,{readable:!1},o);try{e.writableNeedDrain&&await a();for await(let u of t)e.write(u)||await a();i&&(e.end(),await a()),r()}catch(u){r(n!==u?XL(n,u):u)}finally{l(),e.off("drain",o)}}async function Ru(t,e,r,{end:i}){Yr(e)&&(e=e.writable);let n=e.getWriter();try{for await(let s of t)await n.ready,n.write(s).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(s){try{await n.abort(s),r(s)}catch(o){r(o)}}}function fP(...t){return u_(t,KL(lP(t)))}function u_(t,e,r){if(t.length===1&&HL(t[0])&&(t=t[0]),t.length<2)throw new JL("streams");let i=new aP,n=i.signal,s=r?.signal,o=[];nP(s,"options.signal");function a(){b(new rP)}Tu=Tu||Oe().addAbortListener;let l;s&&(l=Tu(s,a));let u,f,h=[],c=0;function d(S){b(S,--c===0)}function b(S,E){var A;if(S&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=S),!(!u&&!E)){for(;h.length;)h.shift()(u);(A=l)===null||A===void 0||A[ZL](),i.abort(),E&&(u||o.forEach(L=>L()),Ki.nextTick(e,u,f))}}let g;for(let S=0;S<t.length;S++){let E=t[S],A=S<t.length-1,L=S>0,v=A||r?.end!==!1,O=S===t.length-1;if(a_(E)){let w=function(T){T&&T.name!=="AbortError"&&T.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(T)};var m=w;if(v){let{destroy:T,cleanup:R}=l_(E,A,L);h.push(T),Su(E)&&O&&o.push(R)}E.on("error",w),Su(E)&&O&&o.push(()=>{E.removeListener("error",w)})}if(S===0)if(typeof E=="function"){if(g=E({signal:n}),!ar(g))throw new wu("Iterable, AsyncIterable or Stream","source",g)}else ar(E)||$s(E)||Yr(E)?g=E:g=o_.from(E);else if(typeof E=="function"){if(Yr(g)){var x;g=Au((x=g)===null||x===void 0?void 0:x.readable)}else g=Au(g);if(g=E(g,{signal:n}),A){if(!ar(g,!0))throw new wu("AsyncIterable",`transform[${S-1}]`,g)}else{var y;vu||(vu=bu());let w=new vu({objectMode:!0}),T=(y=g)===null||y===void 0?void 0:y.then;if(typeof T=="function")c++,T.call(g,G=>{f=G,G!=null&&w.write(G),v&&w.end(),Ki.nextTick(d)},G=>{w.destroy(G),Ki.nextTick(d,G)});else if(ar(g,!0))c++,zs(g,w,d,{end:v});else if(Eu(g)||Yr(g)){let G=g.readable||g;c++,zs(G,w,d,{end:v})}else throw new wu("AsyncIterable or Promise","destination",g);g=w;let{destroy:R,cleanup:N}=l_(g,!1,!0);h.push(R),O&&o.push(N)}}else if(a_(E)){if($s(g)){c+=2;let w=hP(g,E,d,{end:v});Su(E)&&O&&o.push(w)}else if(Yr(g)||Eu(g)){let w=g.readable||g;c++,zs(w,E,d,{end:v})}else if(ar(g))c++,zs(g,E,d,{end:v});else throw new Ou("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=E}else if(sP(E)){if($s(g))c++,Ru(Au(g),E,d,{end:v});else if(Eu(g)||ar(g))c++,Ru(g,E,d,{end:v});else if(Yr(g))c++,Ru(g.readable,E,d,{end:v});else throw new Ou("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=E}else g=o_.from(E)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Ki.nextTick(a),g}function hP(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new tP)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;oP(t)?Ki.nextTick(o):t.once("end",o)}else r();return Hs(t,{readable:!0,writable:!1},o=>{let a=t._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once("end",r).once("error",r):r(o)}),Hs(e,{readable:!1,writable:!0},r)}f_.exports={pipelineImpl:u_,pipeline:fP}});var Iu=p((Yj,y_)=>{"use strict";var{pipeline:cP}=Vs(),Ys=st(),{destroyer:dP}=ir(),{isNodeStream:Zs,isReadable:h_,isWritable:c_,isWebStream:Du,isTransformStream:lr,isWritableStream:d_,isReadableStream:p_}=rt(),{AbortError:pP,codes:{ERR_INVALID_ARG_VALUE:g_,ERR_MISSING_ARGS:gP}}=xe(),yP=mt();y_.exports=function(...e){if(e.length===0)throw new gP("streams");if(e.length===1)return Ys.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Ys.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Ys.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Zs(e[d])&&!Du(e[d]))){if(d<e.length-1&&!(h_(e[d])||p_(e[d])||lr(e[d])))throw new g_(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(c_(e[d])||d_(e[d])||lr(e[d])))throw new g_(`streams[${d}]`,r[d],"must be writable")}let i,n,s,o,a;function l(d){let b=o;o=null,b?b(d):d?a.destroy(d):!c&&!h&&a.destroy()}let u=e[0],f=cP(e,l),h=!!(c_(u)||d_(u)||lr(u)),c=!!(h_(f)||p_(f)||lr(f));if(a=new Ys({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:h,readable:c}),h){if(Zs(u))a._write=function(b,g,x){u.write(b,g)?x():i=x},a._final=function(b){u.end(),n=b},u.on("drain",function(){if(i){let b=i;i=null,b()}});else if(Du(u)){let g=(lr(u)?u.writable:u).getWriter();a._write=async function(x,y,m){try{await g.ready,g.write(x).catch(()=>{}),m()}catch(S){m(S)}},a._final=async function(x){try{await g.ready,g.close().catch(()=>{}),n=x}catch(y){x(y)}}}let d=lr(f)?f.readable:f;yP(d,()=>{if(n){let b=n;n=null,b()}})}if(c){if(Zs(f))f.on("readable",function(){if(s){let d=s;s=null,d()}}),f.on("end",function(){a.push(null)}),a._read=function(){for(;;){let d=f.read();if(d===null){s=a._read;return}if(!a.push(d))return}};else if(Du(f)){let b=(lr(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:g,done:x}=await b.read();if(!a.push(g))return;if(x){a.push(null);return}}catch{return}}}}return a._destroy=function(d,b){!d&&o!==null&&(d=new pP),s=null,i=null,n=null,o===null?b(d):(o=b,Zs(f)&&dP(f,d))},a}});var A_=p((Zj,Nu)=>{"use strict";var mP=globalThis.AbortController||kr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:_P,ERR_INVALID_ARG_TYPE:Qi,ERR_MISSING_ARGS:bP,ERR_OUT_OF_RANGE:wP},AbortError:ot}=xe(),{validateAbortSignal:ur,validateInteger:m_,validateObject:fr}=Fr(),SP=ie().Symbol("kWeak"),EP=ie().Symbol("kResistStopPropagation"),{finished:vP}=mt(),xP=Iu(),{addAbortSignalNoValidate:TP}=Wi(),{isWritable:AP,isNodeStream:RP}=rt(),{deprecate:OP}=Oe(),{ArrayPrototypePush:DP,Boolean:IP,MathFloor:__,Number:LP,NumberIsNaN:PP,Promise:b_,PromiseReject:w_,PromiseResolve:NP,PromisePrototypeThen:S_,Symbol:v_}=ie(),Ks=v_("kEmpty"),E_=v_("kEof");function MP(t,e){if(e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),RP(t)&&!AP(t))throw new _P("stream",t,"must be writable");let r=xP(this,t);return e!=null&&e.signal&&TP(e.signal,r),r}function Qs(t,e){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=__(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=__(e.highWaterMark)),m_(r,"options.concurrency",1),m_(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(IP)),o=this,a=[],l={signal:s},u,f,h=!1,c=0;function d(){h=!0,b()}function b(){c-=1,g()}function g(){f&&!h&&c<r&&a.length<i&&(f(),f=null)}async function x(){try{for await(let y of o){if(h)return;if(s.aborted)throw new ot;try{if(y=t(y,l),y===Ks)continue;y=NP(y)}catch(m){y=w_(m)}c+=1,S_(y,b,d),a.push(y),u&&(u(),u=null),!h&&(a.length>=i||c>=r)&&await new b_(m=>{f=m})}a.push(E_)}catch(y){let m=w_(y);S_(m,b,d),a.push(m)}finally{h=!0,u&&(u(),u=null)}}x();try{for(;;){for(;a.length>0;){let y=await a[0];if(y===E_)return;if(s.aborted)throw new ot;y!==Ks&&(yield y),a.shift(),g()}await new b_(y=>{u=y})}}finally{h=!0,f&&(f(),f=null)}}.call(this)}function CP(t=void 0){return t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ot({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function x_(t,e=void 0){for await(let r of Pu.call(this,t,e))return!0;return!1}async function kP(t,e=void 0){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);return!await x_.call(this,async(...r)=>!await t(...r),e)}async function qP(t,e){for await(let r of Pu.call(this,t,e))return r}async function FP(t,e){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),Ks}for await(let i of Qs.call(this,r,e));}function Pu(t,e){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:Ks}return Qs.call(this,r,e)}var Lu=class extends bP{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function BP(t,e,r){var i;if(typeof t!="function")throw new Qi("reducer",["Function","AsyncFunction"],t);r!=null&&fr(r,"options"),r?.signal!=null&&ur(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new ot(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await vP(this.destroy(u)),u}let s=new mP,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[SP]:this,[EP]:!0};r.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ot;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new Lu}finally{s.abort()}return e}async function jP(t){t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal");let e=[];for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ot(void 0,{cause:t.signal.reason});DP(e,i)}return e}function WP(t,e){let r=Qs.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function T_(t){if(t=LP(t),PP(t))return 0;if(t<0)throw new wP("number",">= 0",t);return t}function UP(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=T_(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;t--<=0&&(yield s)}}.call(this)}function GP(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=T_(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;if(t-- >0&&(yield s),t<=0)return}}.call(this)}Nu.exports.streamReturningOperators={asIndexedPairs:OP(CP,"readable.asIndexedPairs will be removed in a future version."),drop:UP,filter:Pu,flatMap:WP,map:Qs,take:GP,compose:MP};Nu.exports.promiseReturningOperators={every:kP,forEach:FP,reduce:BP,toArray:jP,some:x_,find:qP}});var Mu=p((Kj,R_)=>{"use strict";var{ArrayPrototypePop:zP,Promise:$P}=ie(),{isIterable:HP,isNodeStream:VP,isWebStream:YP}=rt(),{pipelineImpl:ZP}=Vs(),{finished:KP}=mt();Cu();function QP(...t){return new $P((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!VP(s)&&!HP(s)&&!YP(s)){let o=zP(t);i=o.signal,n=o.end}ZP(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}R_.exports={finished:KP,pipeline:QP}});var Cu=p((Qj,k_)=>{"use strict";var{Buffer:XP}=I("buffer"),{ObjectDefineProperty:wt,ObjectKeys:I_,ReflectApply:L_}=ie(),{promisify:{custom:P_}}=Oe(),{streamReturningOperators:O_,promiseReturningOperators:D_}=A_(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:N_}}=xe(),JP=Iu(),{setDefaultHighWaterMark:eN,getDefaultHighWaterMark:tN}=Ui(),{pipeline:M_}=Vs(),{destroyer:rN}=ir(),C_=mt(),ku=Mu(),Xi=rt(),ee=k_.exports=Is().Stream;ee.isDestroyed=Xi.isDestroyed;ee.isDisturbed=Xi.isDisturbed;ee.isErrored=Xi.isErrored;ee.isReadable=Xi.isReadable;ee.isWritable=Xi.isWritable;ee.Readable=$i();for(let t of I_(O_)){let r=function(...i){if(new.target)throw N_();return ee.Readable.from(L_(e,this,i))},e=O_[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of I_(D_)){let r=function(...i){if(new.target)throw N_();return L_(e,this,i)},e=D_[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}ee.Writable=Gs();ee.Duplex=st();ee.Transform=mu();ee.PassThrough=bu();ee.pipeline=M_;var{addAbortSignal:iN}=Wi();ee.addAbortSignal=iN;ee.finished=C_;ee.destroy=rN;ee.compose=JP;ee.setDefaultHighWaterMark=eN;ee.getDefaultHighWaterMark=tN;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return ku}});wt(M_,P_,{__proto__:null,enumerable:!0,get(){return ku.pipeline}});wt(C_,P_,{__proto__:null,enumerable:!0,get(){return ku.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return XP.from(e.buffer,e.byteOffset,e.byteLength)}});var hr=p((Xj,B)=>{"use strict";var ce=I("stream");if(ce&&process.env.READABLE_STREAM==="disable"){let t=ce.promises;B.exports._uint8ArrayToBuffer=ce._uint8ArrayToBuffer,B.exports._isUint8Array=ce._isUint8Array,B.exports.isDisturbed=ce.isDisturbed,B.exports.isErrored=ce.isErrored,B.exports.isReadable=ce.isReadable,B.exports.Readable=ce.Readable,B.exports.Writable=ce.Writable,B.exports.Duplex=ce.Duplex,B.exports.Transform=ce.Transform,B.exports.PassThrough=ce.PassThrough,B.exports.addAbortSignal=ce.addAbortSignal,B.exports.finished=ce.finished,B.exports.destroy=ce.destroy,B.exports.pipeline=ce.pipeline,B.exports.compose=ce.compose,Object.defineProperty(ce,"promises",{configurable:!0,enumerable:!0,get(){return t}}),B.exports.Stream=ce.Stream}else{let t=Cu(),e=Mu(),r=t.Readable.destroy;B.exports=t.Readable,B.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,B.exports._isUint8Array=t._isUint8Array,B.exports.isDisturbed=t.isDisturbed,B.exports.isErrored=t.isErrored,B.exports.isReadable=t.isReadable,B.exports.Readable=t.Readable,B.exports.Writable=t.Writable,B.exports.Duplex=t.Duplex,B.exports.Transform=t.Transform,B.exports.PassThrough=t.PassThrough,B.exports.addAbortSignal=t.addAbortSignal,B.exports.finished=t.finished,B.exports.destroy=t.destroy,B.exports.destroy=r,B.exports.pipeline=t.pipeline,B.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),B.exports.Stream=t.Stream}B.exports.default=B.exports});var F_=p((Jj,q_)=>{"use strict";function nN(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}q_.exports=nN});var U_=p((e4,W_)=>{"use strict";var B_=gs(),sN=_l(),oN=bl(),j_=B_?B_.isConcatSpreadable:void 0;function aN(t){return oN(t)||sN(t)||!!(j_&&t&&t[j_])}W_.exports=aN});var Xs=p((t4,z_)=>{"use strict";var lN=F_(),uN=U_();function G_(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=uN),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?G_(a,e-1,r,i,n):lN(n,a):i||(n[n.length]=a)}return n}z_.exports=G_});var H_=p((r4,$_)=>{"use strict";var fN=Xs();function hN(t){var e=t==null?0:t.length;return e?fN(t,1):[]}$_.exports=hN});var Ji=p((i4,V_)=>{"use strict";var cN=Pi(),dN=cN(Object,"create");V_.exports=dN});var K_=p((n4,Z_)=>{"use strict";var Y_=Ji();function pN(){this.__data__=Y_?Y_(null):{},this.size=0}Z_.exports=pN});var X_=p((s4,Q_)=>{"use strict";function gN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}Q_.exports=gN});var eb=p((o4,J_)=>{"use strict";var yN=Ji(),mN="__lodash_hash_undefined__",_N=Object.prototype,bN=_N.hasOwnProperty;function wN(t){var e=this.__data__;if(yN){var r=e[t];return r===mN?void 0:r}return bN.call(e,t)?e[t]:void 0}J_.exports=wN});var rb=p((a4,tb)=>{"use strict";var SN=Ji(),EN=Object.prototype,vN=EN.hasOwnProperty;function xN(t){var e=this.__data__;return SN?e[t]!==void 0:vN.call(e,t)}tb.exports=xN});var nb=p((l4,ib)=>{"use strict";var TN=Ji(),AN="__lodash_hash_undefined__";function RN(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=TN&&e===void 0?AN:e,this}ib.exports=RN});var ob=p((u4,sb)=>{"use strict";var ON=K_(),DN=X_(),IN=eb(),LN=rb(),PN=nb();function Zr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Zr.prototype.clear=ON;Zr.prototype.delete=DN;Zr.prototype.get=IN;Zr.prototype.has=LN;Zr.prototype.set=PN;sb.exports=Zr});var lb=p((f4,ab)=>{"use strict";function NN(){this.__data__=[],this.size=0}ab.exports=NN});var en=p((h4,ub)=>{"use strict";var MN=ms();function CN(t,e){for(var r=t.length;r--;)if(MN(t[r][0],e))return r;return-1}ub.exports=CN});var hb=p((c4,fb)=>{"use strict";var kN=en(),qN=Array.prototype,FN=qN.splice;function BN(t){var e=this.__data__,r=kN(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():FN.call(e,r,1),--this.size,!0}fb.exports=BN});var db=p((d4,cb)=>{"use strict";var jN=en();function WN(t){var e=this.__data__,r=jN(e,t);return r<0?void 0:e[r][1]}cb.exports=WN});var gb=p((p4,pb)=>{"use strict";var UN=en();function GN(t){return UN(this.__data__,t)>-1}pb.exports=GN});var mb=p((g4,yb)=>{"use strict";var zN=en();function $N(t,e){var r=this.__data__,i=zN(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}yb.exports=$N});var bb=p((y4,_b)=>{"use strict";var HN=lb(),VN=hb(),YN=db(),ZN=gb(),KN=mb();function Kr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Kr.prototype.clear=HN;Kr.prototype.delete=VN;Kr.prototype.get=YN;Kr.prototype.has=ZN;Kr.prototype.set=KN;_b.exports=Kr});var Sb=p((m4,wb)=>{"use strict";var QN=Pi(),XN=Lr(),JN=QN(XN,"Map");wb.exports=JN});var xb=p((_4,vb)=>{"use strict";var Eb=ob(),eM=bb(),tM=Sb();function rM(){this.size=0,this.__data__={hash:new Eb,map:new(tM||eM),string:new Eb}}vb.exports=rM});var Ab=p((b4,Tb)=>{"use strict";function iM(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}Tb.exports=iM});var tn=p((w4,Rb)=>{"use strict";var nM=Ab();function sM(t,e){var r=t.__data__;return nM(e)?r[typeof e=="string"?"string":"hash"]:r.map}Rb.exports=sM});var Db=p((S4,Ob)=>{"use strict";var oM=tn();function aM(t){var e=oM(this,t).delete(t);return this.size-=e?1:0,e}Ob.exports=aM});var Lb=p((E4,Ib)=>{"use strict";var lM=tn();function uM(t){return lM(this,t).get(t)}Ib.exports=uM});var Nb=p((v4,Pb)=>{"use strict";var fM=tn();function hM(t){return fM(this,t).has(t)}Pb.exports=hM});var Cb=p((x4,Mb)=>{"use strict";var cM=tn();function dM(t,e){var r=cM(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Mb.exports=dM});var qb=p((T4,kb)=>{"use strict";var pM=xb(),gM=Db(),yM=Lb(),mM=Nb(),_M=Cb();function Qr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Qr.prototype.clear=pM;Qr.prototype.delete=gM;Qr.prototype.get=yM;Qr.prototype.has=mM;Qr.prototype.set=_M;kb.exports=Qr});var Bb=p((A4,Fb)=>{"use strict";var bM="__lodash_hash_undefined__";function wM(t){return this.__data__.set(t,bM),this}Fb.exports=wM});var Wb=p((R4,jb)=>{"use strict";function SM(t){return this.__data__.has(t)}jb.exports=SM});var qu=p((O4,Ub)=>{"use strict";var EM=qb(),vM=Bb(),xM=Wb();function Js(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new EM;++e<r;)this.add(t[e])}Js.prototype.add=Js.prototype.push=vM;Js.prototype.has=xM;Ub.exports=Js});var zb=p((D4,Gb)=>{"use strict";function TM(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}Gb.exports=TM});var Hb=p((I4,$b)=>{"use strict";function AM(t){return t!==t}$b.exports=AM});var Yb=p((L4,Vb)=>{"use strict";function RM(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}Vb.exports=RM});var Kb=p((P4,Zb)=>{"use strict";var OM=zb(),DM=Hb(),IM=Yb();function LM(t,e,r){return e===e?IM(t,e,r):OM(t,DM,r)}Zb.exports=LM});var Fu=p((N4,Qb)=>{"use strict";var PM=Kb();function NM(t,e){var r=t==null?0:t.length;return!!r&&PM(t,e,0)>-1}Qb.exports=NM});var Bu=p((M4,Xb)=>{"use strict";function MM(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}Xb.exports=MM});var ew=p((C4,Jb)=>{"use strict";function CM(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}Jb.exports=CM});var ju=p((k4,tw)=>{"use strict";function kM(t,e){return t.has(e)}tw.exports=kM});var iw=p((q4,rw)=>{"use strict";var qM=qu(),FM=Fu(),BM=Bu(),jM=ew(),WM=wl(),UM=ju(),GM=200;function zM(t,e,r,i){var n=-1,s=FM,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=jM(e,WM(r))),i?(s=BM,o=!1):e.length>=GM&&(s=UM,o=!1,e=new qM(e));e:for(;++n<a;){var f=t[n],h=r==null?f:r(f);if(f=i||f!==0?f:0,o&&h===h){for(var c=u;c--;)if(e[c]===h)continue e;l.push(f)}else s(e,h,i)||l.push(f)}return l}rw.exports=zM});var Wu=p((F4,nw)=>{"use strict";var $M=_s(),HM=Pr();function VM(t){return HM(t)&&$M(t)}nw.exports=VM});var aw=p((B4,ow)=>{"use strict";var YM=iw(),ZM=Xs(),KM=ys(),sw=Wu(),QM=KM(function(t,e){return sw(t)?YM(t,ZM(e,1,sw,!0)):[]});ow.exports=QM});var uw=p((j4,lw)=>{"use strict";var XM=Pi(),JM=Lr(),e2=XM(JM,"Set");lw.exports=e2});var hw=p((W4,fw)=>{"use strict";function t2(){}fw.exports=t2});var Uu=p((U4,cw)=>{"use strict";function r2(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}cw.exports=r2});var pw=p((G4,dw)=>{"use strict";var Gu=uw(),i2=hw(),n2=Uu(),s2=1/0,o2=Gu&&1/n2(new Gu([,-0]))[1]==s2?function(t){return new Gu(t)}:i2;dw.exports=o2});var yw=p((z4,gw)=>{"use strict";var a2=qu(),l2=Fu(),u2=Bu(),f2=ju(),h2=pw(),c2=Uu(),d2=200;function p2(t,e,r){var i=-1,n=l2,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=u2;else if(s>=d2){var u=e?null:h2(t);if(u)return c2(u);o=!1,n=f2,l=new a2}else l=e?[]:a;e:for(;++i<s;){var f=t[i],h=e?e(f):f;if(f=r||f!==0?f:0,o&&h===h){for(var c=l.length;c--;)if(l[c]===h)continue e;e&&l.push(h),a.push(f)}else n(l,h,r)||(l!==a&&l.push(h),a.push(f))}return a}gw.exports=p2});var _w=p(($4,mw)=>{"use strict";var g2=Xs(),y2=ys(),m2=yw(),_2=Wu(),b2=y2(function(t){return m2(g2(t,1,_2,!0))});mw.exports=b2});var ww=p((H4,bw)=>{"use strict";function w2(t,e){return function(r){return t(e(r))}}bw.exports=w2});var Ew=p((V4,Sw)=>{"use strict";var S2=ww(),E2=S2(Object.getPrototypeOf,Object);Sw.exports=E2});var Tw=p((Y4,xw)=>{"use strict";var v2=Ii(),x2=Ew(),T2=Pr(),A2="[object Object]",R2=Function.prototype,O2=Object.prototype,vw=R2.toString,D2=O2.hasOwnProperty,I2=vw.call(Object);function L2(t){if(!T2(t)||v2(t)!=A2)return!1;var e=x2(t);if(e===null)return!0;var r=D2.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&vw.call(r)==I2}xw.exports=L2});var Aw=p(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.assertValidPattern=void 0;var P2=1024*64,N2=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>P2)throw new TypeError("pattern is too long")};eo.assertValidPattern=N2});var Ow=p(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.parseClass=void 0;var M2={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},rn=t=>t.replace(/[[\]\\-]/g,"\\$&"),C2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Rw=t=>t.join(""),k2=(t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],s=r+1,o=!1,a=!1,l=!1,u=!1,f=r,h="";e:for(;s<t.length;){let g=t.charAt(s);if((g==="!"||g==="^")&&s===r+1){u=!0,s++;continue}if(g==="]"&&o&&!l){f=s+1;break}if(o=!0,g==="\\"&&!l){l=!0,s++;continue}if(g==="["&&!l){for(let[x,[y,m,S]]of Object.entries(M2))if(t.startsWith(x,s)){if(h)return["$.",!1,t.length-r,!0];s+=x.length,S?n.push(y):i.push(y),a=a||m;continue e}}if(l=!1,h){g>h?i.push(rn(h)+"-"+rn(g)):g===h&&i.push(rn(g)),h="",s++;continue}if(t.startsWith("-]",s+1)){i.push(rn(g+"-")),s+=2;continue}if(t.startsWith("-",s+1)){h=g,s+=2;continue}i.push(rn(g)),s++}if(f<s)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,t.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let g=i[0].length===2?i[0].slice(-1):i[0];return[C2(g),!1,f-r,!1]}let c="["+(u?"^":"")+Rw(i)+"]",d="["+(u?"":"^")+Rw(n)+"]";return[i.length&&n.length?"("+c+"|"+d+")":i.length?c:d,a,f-r,!0]};to.parseClass=k2});var io=p(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.unescape=void 0;var q2=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");ro.unescape=q2});var Hu=p(ao=>{"use strict";var Pe;Object.defineProperty(ao,"__esModule",{value:!0});ao.AST=void 0;var F2=Ow(),no=io(),B2=new Set(["!","?","+","*","@"]),zu=t=>B2.has(t),Dw=t=>zu(t.type),j2=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),W2=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),U2=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Iw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),G2="(?!(?:^|/)\\.\\.?(?:$|/))",so="(?!\\.)",z2=new Set(["[","."]),$2=new Set(["..","."]),H2=new Set("().*{}+?[]^$\\!"),V2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),$u="[^/]",Lw=$u+"*?",Pw=$u+"+?",oo=class{type;#e;#r;#n=!1;#t=[];#o;#S;#u;#h=!1;#l;#a;#s=!1;constructor(e,r,i={}){this.type=e,e&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?i:this.#e.#l,this.#u=this.#e===this?[]:this.#e.#u,e==="!"&&!this.#e.#h&&this.#u.push(this),this.#S=this.#o?this.#o.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#a=this.#t.map(e=>String(e)).join("")}#m(){if(this!==this.#e)throw new Error("should only call on root");if(this.#h)return this;this.toString(),this.#h=!0;let e;for(;e=this.#u.pop();){if(e.type!=="!")continue;let r=e,i=r.#o;for(;i;){for(let n=r.#S+1;!i.type&&n<i.#t.length;n++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#t[n])}r=i,i=r.#o}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof Pe&&r.#o===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#h&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#S===0)return!0;let e=this.#o;for(let r=0;r<this.#S;r++){let i=e.#t[r];if(!(i instanceof Pe&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#t.length:0;return this.#S===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new Pe(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#_(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let g=i,x="";for(;g<e.length;){let y=e.charAt(g++);if(a||y==="\\"){a=!a,x+=y;continue}if(l){g===u+1?(y==="^"||y==="!")&&(f=!0):y==="]"&&!(g===u+2&&f)&&(l=!1),x+=y;continue}else if(y==="["){l=!0,u=g,f=!1,x+=y;continue}if(!n.noext&&zu(y)&&e.charAt(g)==="("&&s<=o){r.push(x),x="";let S=new Pe(y,r);g=Pe.#_(e,S,g,n,s+1),r.push(S);continue}x+=y}return r.push(x),g}let h=i+1,c=new Pe(null,r),d=[],b="";for(;h<e.length;){let g=e.charAt(h++);if(a||g==="\\"){a=!a,b+=g;continue}if(l){h===u+1?(g==="^"||g==="!")&&(f=!0):g==="]"&&!(h===u+2&&f)&&(l=!1),b+=g;continue}else if(g==="["){l=!0,u=h,f=!1,b+=g;continue}if(zu(g)&&e.charAt(h)==="("&&(s<=o||r&&r.#E(g))){let y=r&&r.#E(g)?0:1;c.push(b),b="";let m=new Pe(g,c);c.push(m),h=Pe.#_(e,m,h,n,s+y);continue}if(g==="|"){c.push(b),b="",d.push(c),c=new Pe(null,r);continue}if(g===")")return b===""&&r.#t.length===0&&(r.#s=!0),c.push(b),b="",r.push(...d,c),h;b+=g}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],h}#g(e){return this.#d(e,W2)}#d(e,r=j2){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let i=e.#t[0];return!i||typeof i!="object"||i.type===null?!1:this.#E(i.type,r)}#E(e,r=U2){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Pe(null,i,this.options);n.#t.push(""),i.push(n),this.#x(e,r)}#x(e,r){let i=e.#t[0];this.#t.splice(r,1,...i.#t);for(let n of i.#t)typeof n=="object"&&(n.#o=this);this.#a=void 0}#T(e){return!!Iw.get(this.type)?.has(e)}#y(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#T(r.type)}#v(e){let r=Iw.get(this.type),i=e.#t[0],n=r?.get(i.type);if(!n)return!1;this.#t=i.#t;for(let s of this.#t)typeof s=="object"&&(s.#o=this);this.type=n,this.#a=void 0,this.#s=!1}#b(){if(Dw(this)){let e=0,r=!1;do{r=!0;for(let i=0;i<this.#t.length;i++){let n=this.#t[i];typeof n=="object"&&(n.#b(),this.#d(n)?(r=!1,this.#x(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#y(n)&&(r=!1,this.#v(n)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#b();this.#a=void 0}static fromGlob(e,r={}){let i=new Pe(null,void 0,r);return Pe.#_(e,i,0,r,0),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,i,n,s]=this.toRegExpSource();if(!(n||this.#r||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:e})}get options(){return this.#l}toRegExpSource(e){let r=e??!!this.#l.dot;if(this.#e===this&&(this.#b(),this.#m()),!Dw(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(d=>{let[b,g,x,y]=typeof d=="string"?Pe.#A(d,this.#r,l):d.toRegExpSource(e);return this.#r=this.#r||x,this.#n=this.#n||y,b}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&$2.has(this.#t[0]))){let b=z2,g=r&&b.has(u.charAt(0))||u.startsWith("\\.")&&b.has(u.charAt(2))||u.startsWith("\\.\\.")&&b.has(u.charAt(4)),x=!r&&!e&&b.has(u.charAt(0));f=g?G2:x?so:""}let h="";return this.isEnd()&&this.#e.#h&&this.#o?.type==="!"&&(h="(?:$|\\/)"),[f+u+h,(0,no.unescape)(u),this.#r=!!this.#r,this.#n]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#c(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,no.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!so?"":this.#c(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?so:"")+Pw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?so:"")+Lw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,no.unescape)(s),this.#r=!!this.#r,this.#n]}#c(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=r.toRegExpSource(e);return this.#n=this.#n||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#A(e,r,i=!1){let n=!1,s="",o=!1,a=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(n){n=!1,s+=(H2.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,h,c,d]=(0,F2.parseClass)(e,l);if(c){s+=f,o=o||h,l+=c-1,r=r||d,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?Pw:Lw,r=!0;continue}else a=!1;if(u==="?"){s+=$u,r=!0;continue}s+=V2(u)}return[s,(0,no.unescape)(e),!!r,o]}};ao.AST=oo;Pe=oo});var Vu=p(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.escape=void 0;var Y2=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");lo.escape=Y2});var qt=p(D=>{"use strict";var Z2=D&&D.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(D,"__esModule",{value:!0});D.unescape=D.escape=D.AST=D.Minimatch=D.match=D.makeRe=D.braceExpand=D.defaults=D.filter=D.GLOBSTAR=D.sep=D.minimatch=void 0;var K2=Z2(ea()),uo=Aw(),Cw=Hu(),Q2=Vu(),X2=io(),J2=(t,e,r={})=>((0,uo.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new cr(e,r).match(t));D.minimatch=J2;var eC=/^\*+([^+@!?\*\[\(]*)$/,tC=t=>e=>!e.startsWith(".")&&e.endsWith(t),rC=t=>e=>e.endsWith(t),iC=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),nC=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),sC=/^\*+\.\*+$/,oC=t=>!t.startsWith(".")&&t.includes("."),aC=t=>t!=="."&&t!==".."&&t.includes("."),lC=/^\.\*+$/,uC=t=>t!=="."&&t!==".."&&t.startsWith("."),fC=/^\*+$/,hC=t=>t.length!==0&&!t.startsWith("."),cC=t=>t.length!==0&&t!=="."&&t!=="..",dC=/^\?+([^+@!?\*\[\(]*)?$/,pC=([t,e=""])=>{let r=kw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},gC=([t,e=""])=>{let r=qw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},yC=([t,e=""])=>{let r=qw([t]);return e?i=>r(i)&&i.endsWith(e):r},mC=([t,e=""])=>{let r=kw([t]);return e?i=>r(i)&&i.endsWith(e):r},kw=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},qw=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},Fw=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Nw={win32:{sep:"\\"},posix:{sep:"/"}};D.sep=Fw==="win32"?Nw.win32.sep:Nw.posix.sep;D.minimatch.sep=D.sep;D.GLOBSTAR=Symbol("globstar **");D.minimatch.GLOBSTAR=D.GLOBSTAR;var _C="[^/]",bC=_C+"*?",wC="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",SC="(?:(?!(?:\\/|^)\\.).)*?",EC=(t,e={})=>r=>(0,D.minimatch)(r,t,e);D.filter=EC;D.minimatch.filter=D.filter;var We=(t,e={})=>Object.assign({},t,e),vC=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return D.minimatch;let e=D.minimatch;return Object.assign((i,n,s={})=>e(i,n,We(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,We(t,s))}static defaults(n){return e.defaults(We(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,We(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,We(t,s))}},unescape:(i,n={})=>e.unescape(i,We(t,n)),escape:(i,n={})=>e.escape(i,We(t,n)),filter:(i,n={})=>e.filter(i,We(t,n)),defaults:i=>e.defaults(We(t,i)),makeRe:(i,n={})=>e.makeRe(i,We(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,We(t,n)),match:(i,n,s={})=>e.match(i,n,We(t,s)),sep:e.sep,GLOBSTAR:D.GLOBSTAR})};D.defaults=vC;D.minimatch.defaults=D.defaults;var xC=(t,e={})=>((0,uo.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,K2.default)(t));D.braceExpand=xC;D.minimatch.braceExpand=D.braceExpand;var TC=(t,e={})=>new cr(t,e).makeRe();D.makeRe=TC;D.minimatch.makeRe=D.makeRe;var AC=(t,e,r={})=>{let i=new cr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};D.match=AC;D.minimatch.match=D.match;var Mw=/[?*]|[+@!]\(.*?\)|\[|\]/,RC=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),cr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,uo.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||Fw,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!Mw.test(s[2]))&&!Mw.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let n=0;n<e[i].length;n++)e[i][n]==="**"&&(e[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let s=e[n];n===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let n=e[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,e.splice(i-1,2),i-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let i of e){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let a=i[n+1],l=i[n+2],u=i[n+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,i.splice(n,1);let f=i.slice(0);f[n]="**",e.push(f),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let l=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...l),i.length===0&&i.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let i=r+1;i<e.length;i++){let n=this.partsMatch(e[r],e[i],!this.preserveMultipleSlashes);if(n){e[r]=[],e[i]=n;break}}return e.filter(r=>r.length)}partsMatch(e,r,i=!1){let n=0,s=0,o=[],a="";for(;n<e.length&&s<r.length;)if(e[n]===r[s])o.push(a==="b"?r[s]:e[n]),n++,s++;else if(i&&e[n]==="**"&&r[s]===e[n+1])o.push(e[n]),n++;else if(i&&r[s]==="**"&&e[n]===r[s+1])o.push(r[s]),s++;else if(e[n]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[n]),n++,s++}else if(r[s]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),n++,s++}else return!1;return e.length===r.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i=!1){let n=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),f=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),h=l?3:a?0:void 0,c=f?3:u?0:void 0;if(typeof h=="number"&&typeof c=="number"){let[d,b]=[e[h],r[c]];d.toLowerCase()===b.toLowerCase()&&(r[c]=d,s=c,n=h)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(D.GLOBSTAR)?this.#e(e,r,i,n,s):this.#n(e,r,i,n,s)}#e(e,r,i,n,s){let o=r.indexOf(D.GLOBSTAR,s),a=r.lastIndexOf(D.GLOBSTAR),[l,u,f]=i?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(l.length){let m=e.slice(n,n+l.length);if(!this.#n(m,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let m=e.length-f.length;if(this.#n(e,f,i,m,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(m--,!this.#n(e,f,i,m,0)))return!1;h=f.length+1}}if(!u.length){let m=!!h;for(let S=n;S<e.length-h;S++){let E=String(e[S]);if(m=!0,E==="."||E===".."||!this.options.dot&&E.startsWith("."))return!1}return i||m}let c=[[[],0]],d=c[0],b=0,g=[0];for(let m of u)m===D.GLOBSTAR?(g.push(b),d=[[],0],c.push(d)):(d[0].push(m),b++);let x=c.length-1,y=e.length-h;for(let m of c)m[1]=y-(g[x--]+m[0].length);return!!this.#r(e,c,n,0,i,0,!!h)}#r(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let h=i;h<e.length;h++){a=!0;let c=e[h];if(c==="."||c===".."||!this.options.dot&&c.startsWith("."))return!1}return a}let[u,f]=l;for(;i<=f;){if(this.#n(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let c=e[i];if(c==="."||c===".."||!this.options.dot&&c.startsWith("."))return!1;i++}return s||null}#n(e,r,i,n,s){let o,a,l,u;for(o=n,a=s,u=e.length,l=r.length;o<u&&a<l;o++,a++){this.debug("matchOne loop");let f=r[a],h=e[o];if(this.debug(r,f,h),f===!1||f===D.GLOBSTAR)return!1;let c;if(typeof f=="string"?(c=h===f,this.debug("string match",f,h,c)):(c=f.test(h),this.debug("pattern match",f,h,c)),!c)return!1}if(o===u&&a===l)return!0;if(o===u)return i;if(a===l)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,D.braceExpand)(this.pattern,this.options)}parse(e){(0,uo.assertValidPattern)(e);let r=this.options;if(e==="**")return D.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(fC))?n=r.dot?cC:hC:(i=e.match(eC))?n=(r.nocase?r.dot?nC:iC:r.dot?rC:tC)(i[1]):(i=e.match(dC))?n=(r.nocase?r.dot?gC:pC:r.dot?yC:mC)(i):(i=e.match(sC))?n=r.dot?aC:oC:(i=e.match(lC))&&(n=uC);let s=Cw.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?bC:r.dot?wC:SC,n=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?RC(f):f===D.GLOBSTAR?D.GLOBSTAR:f._src});return u.forEach((f,h)=>{let c=u[h+1],d=u[h-1];f!==D.GLOBSTAR||d===D.GLOBSTAR||(d===void 0?c!==void 0&&c!==D.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+c:u[h]=i:c===void 0?u[h-1]=d+"(?:\\/|"+i+")?":c!==D.GLOBSTAR&&(u[h-1]=d+"(?:\\/|\\/"+i+"\\/)"+c,u[h+1]=D.GLOBSTAR))}),u.filter(f=>f!==D.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let l=s[a],u=n;if(i.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return D.minimatch.defaults(e).Minimatch}};D.Minimatch=cr;var OC=Hu();Object.defineProperty(D,"AST",{enumerable:!0,get:function(){return OC.AST}});var DC=Vu();Object.defineProperty(D,"escape",{enumerable:!0,get:function(){return DC.escape}});var IC=io();Object.defineProperty(D,"unescape",{enumerable:!0,get:function(){return IC.unescape}});D.minimatch.AST=Cw.AST;D.minimatch.Minimatch=cr;D.minimatch.escape=Q2.escape;D.minimatch.unescape=X2.unescape});var Gw=p(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.LRUCache=void 0;var Xr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,jw=new Set,Yu=typeof process=="object"&&process?process:{},Ww=(t,e,r,i)=>{typeof Yu.emitWarning=="function"?Yu.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},fo=globalThis.AbortController,Bw=globalThis.AbortSignal;if(typeof fo>"u"){Bw=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},fo=class{constructor(){e()}signal=new Bw;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=Yu.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,Ww("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var LC=t=>!jw.has(t),Ft=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Uw=t=>Ft(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Jr:null:null,Jr=class extends Array{constructor(e){super(e),this.fill(0)}},Zu=class t{heap;length;static#e=!1;static create(e){let r=Uw(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Ku=class t{#e;#r;#n;#t;#o;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#h;#l;#a;#s;#m;#_;#g;#d;#E;#p;#x;#T;#y;#v;#b;#c;static unsafeExposeInternals(e){return{starts:e.#T,ttls:e.#y,sizes:e.#x,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#m,prev:e.#_,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#F(r,i,n,s),moveToTail:r=>e.#j(r),indexes:r=>e.#O(r),rindexes:r=>e.#D(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#h}get size(){return this.#u}get fetchMethod(){return this.#o}get memoMethod(){return this.#S}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:c,maxSize:d=0,maxEntrySize:b=0,sizeCalculation:g,fetchMethod:x,memoMethod:y,noDeleteOnFetchRejection:m,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:A,ignoreFetchAbort:L}=e;if(r!==0&&!Ft(r))throw new TypeError("max option must be a nonnegative integer");let v=r?Uw(r):Array;if(!v)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=b||this.#r,this.sizeCalculation=g,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=y,x!==void 0&&typeof x!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=x,this.#b=!!x,this.#l=new Map,this.#a=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#m=new v(r),this.#_=new v(r),this.#g=0,this.#d=0,this.#E=Zu.create(r),this.#u=0,this.#h=0,typeof u=="function"&&(this.#n=u),typeof f=="function"?(this.#t=f,this.#p=[]):(this.#t=void 0,this.#p=void 0),this.#v=!!this.#n,this.#c=!!this.#t,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!c,this.noDeleteOnFetchRejection=!!m,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!A,this.ignoreFetchAbort=!!L,this.maxEntrySize!==0){if(this.#r!==0&&!Ft(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ft(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#I()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Ft(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!Ft(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#A()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let O="LRU_CACHE_UNBOUNDED";LC(O)&&(jw.add(O),Ww("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#A(){let e=new Jr(this.#e),r=new Jr(this.#e);this.#y=e,this.#T=r,this.#P=(s,o,a=Xr.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#L(this.#a[s],"expire")},o+1);l.unref&&l.unref()}},this.#R=s=>{r[s]=e[s]!==0?Xr.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let u=s.now-l;s.remainingTTL=a-u}};let i=0,n=()=>{let s=Xr.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=r[o];if(!a||!l)return 1/0;let u=(i||n())-l;return a-u},this.#w=s=>{let o=r[s],a=e[s];return!!a&&!!o&&(i||n())-o>a}}#R=()=>{};#i=()=>{};#P=()=>{};#w=()=>!1;#I(){let e=new Jr(this.#e);this.#h=0,this.#x=e,this.#N=r=>{this.#h-=e[r],e[r]=0},this.#C=(r,i,n,s)=>{if(this.#f(i))return 0;if(!Ft(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!Ft(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#M=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#h>s;)this.#q(!0)}this.#h+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#h)}}#N=e=>{};#M=(e,r,i)=>{};#C=(e,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#d;!(!this.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#_[r]}*#D({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#m[r]}#k(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#O())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*rentries(){for(let e of this.#D())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*keys(){for(let e of this.#O()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*rkeys(){for(let e of this.#D()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*values(){for(let e of this.#O())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#D())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&e(s,this.#a[i],this))return this.get(this.#a[i],r)}}forEach(e,r=this){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}rforEach(e,r=this){for(let i of this.#D()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}purgeStale(){let e=!1;for(let r of this.#D({allowStale:!0}))this.#w(r)&&(this.#L(this.#a[r],"expire"),e=!0);return e}info(e){let r=this.#l.get(e);if(r===void 0)return;let i=this.#s[r],n=this.#f(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#y&&this.#T){let o=this.#y[r],a=this.#T[r];if(o&&a){let l=o-(Xr.now()-a);s.ttl=l,s.start=Date.now()}}return this.#x&&(s.size=this.#x[r]),s}dump(){let e=[];for(let r of this.#O({allowStale:!0})){let i=this.#a[r],n=this.#s[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#y&&this.#T){o.ttl=this.#y[r];let a=Xr.now()-this.#T[r];o.start=Math.floor(Date.now()-a)}this.#x&&(o.size=this.#x[r]),e.unshift([i,o])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=Xr.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,f=this.#C(e,r,i.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#L(e,"set"),this;let h=this.#u===0?void 0:this.#l.get(e);if(h===void 0)h=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#q(!1):this.#u,this.#a[h]=e,this.#s[h]=r,this.#l.set(e,h),this.#m[this.#d]=h,this.#_[h]=this.#d,this.#d=h,this.#u++,this.#M(h,f,l),l&&(l.set="add"),u=!1;else{this.#j(h);let c=this.#s[h];if(r!==c){if(this.#b&&this.#f(c)){c.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=c;d!==void 0&&!o&&(this.#v&&this.#n?.(d,e,"set"),this.#c&&this.#p?.push([d,e,"set"]))}else o||(this.#v&&this.#n?.(c,e,"set"),this.#c&&this.#p?.push([c,e,"set"]));if(this.#N(h),this.#M(h,f,l),this.#s[h]=r,l){l.set="replace";let d=c&&this.#f(c)?c.__staleWhileFetching:c;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update")}if(n!==0&&!this.#y&&this.#A(),this.#y&&(u||this.#P(h,n,s),l&&this.#i(l,h)),!o&&this.#c&&this.#p){let c=this.#p,d;for(;d=c?.shift();)this.#t?.(...d)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#q(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#c&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#q(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#c)&&(this.#v&&this.#n?.(n,i,"evict"),this.#c&&this.#p?.push([n,i,"evict"])),this.#N(r),e&&(this.#a[r]=void 0,this.#s[r]=void 0,this.#E.push(r)),this.#u===1?(this.#g=this.#d=0,this.#E.length=0):this.#g=this.#m[r],this.#l.delete(i),this.#u--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,s=this.#l.get(e);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))n&&(n.has="stale",this.#i(n,s));else return i&&this.#R(s),n&&(n.has="hit",this.#i(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#s[n];return this.#f(s)?s.__staleWhileFetching:s}#F(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new fo,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(g,x=!1)=>{let{aborted:y}=o.signal,m=i.ignoreFetchAbort&&g!==void 0;if(i.status&&(y&&!x?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,m&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),y&&!m&&!x)return h(o.signal.reason);let S=d;return this.#s[r]===d&&(g===void 0?S.__staleWhileFetching?this.#s[r]=S.__staleWhileFetching:this.#L(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,g,l.options))),g},f=g=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=g),h(g)),h=g=>{let{aborted:x}=o.signal,y=x&&i.allowStaleOnFetchAbort,m=y||i.allowStaleOnFetchRejection,S=m||i.noDeleteOnFetchRejection,E=d;if(this.#s[r]===d&&(!S||E.__staleWhileFetching===void 0?this.#L(e,"fetch"):y||(this.#s[r]=E.__staleWhileFetching)),m)return i.status&&E.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw g},c=(g,x)=>{let y=this.#o?.(e,s,l);y&&y instanceof Promise&&y.then(m=>g(m===void 0?void 0:m),x),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(g(void 0),i.allowStaleOnFetchAbort&&(g=m=>u(m,!0)))})};i.status&&(i.status.fetchDispatched=!0);let d=new Promise(c).then(u,f),b=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,b,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=b,b}#f(e){if(!this.#b)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof fo}async fetch(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:g,forceRefresh:x=!1,status:y,signal:m}=r;if(!this.#b)return y&&(y.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:y});let S={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:b,ignoreFetchAbort:d,status:y,signal:m},E=this.#l.get(e);if(E===void 0){y&&(y.fetch="miss");let A=this.#F(e,E,S,g);return A.__returned=A}else{let A=this.#s[E];if(this.#f(A)){let T=i&&A.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",T&&(y.returnedStale=!0)),T?A.__staleWhileFetching:A.__returned=A}let L=this.#w(E);if(!x&&!L)return y&&(y.fetch="hit"),this.#j(E),n&&this.#R(E),y&&this.#i(y,E),A;let v=this.#F(e,E,S,g),w=v.__staleWhileFetching!==void 0&&i;return y&&(y.fetch=L?"stale":"refresh",w&&L&&(y.returnedStale=!0)),w?v.__staleWhileFetching:v.__returned=v}}async forceFetch(e,r={}){let i=await this.fetch(e,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,r={}){let i=this.#S;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:s,...o}=r,a=this.get(e,o);if(!s&&a!==void 0)return a;let l=i(e,a,{options:o,context:n});return this.set(e,l,o),l}get(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#l.get(e);if(a!==void 0){let l=this.#s[a],u=this.#f(l);return o&&this.#i(o,a),this.#w(a)?(o&&(o.get="stale"),u?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(s||this.#L(e,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#j(a),n&&this.#R(a),l))}else o&&(o.get="miss")}#B(e,r){this.#_[r]=e,this.#m[e]=r}#j(e){e!==this.#d&&(e===this.#g?this.#g=this.#m[e]:this.#B(this.#_[e],this.#m[e]),this.#B(this.#d,e),this.#d=e)}delete(e){return this.#L(e,"delete")}#L(e,r){let i=!1;if(this.#u!==0){let n=this.#l.get(e);if(n!==void 0)if(i=!0,this.#u===1)this.#W(r);else{this.#N(n);let s=this.#s[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#v||this.#c)&&(this.#v&&this.#n?.(s,e,r),this.#c&&this.#p?.push([s,e,r])),this.#l.delete(e),this.#a[n]=void 0,this.#s[n]=void 0,n===this.#d)this.#d=this.#_[n];else if(n===this.#g)this.#g=this.#m[n];else{let o=this.#_[n];this.#m[o]=this.#m[n];let a=this.#m[n];this.#_[a]=this.#_[n]}this.#u--,this.#E.push(n)}}if(this.#c&&this.#p?.length){let n=this.#p,s;for(;s=n?.shift();)this.#t?.(...s)}return i}clear(){return this.#W("delete")}#W(e){for(let r of this.#D({allowStale:!0})){let i=this.#s[r];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#a[r];this.#v&&this.#n?.(i,n,e),this.#c&&this.#p?.push([i,n,e])}}if(this.#l.clear(),this.#s.fill(void 0),this.#a.fill(void 0),this.#y&&this.#T&&(this.#y.fill(0),this.#T.fill(0)),this.#x&&this.#x.fill(0),this.#g=0,this.#d=0,this.#E.length=0,this.#h=0,this.#u=0,this.#c&&this.#p){let r=this.#p,i;for(;i=r?.shift();)this.#t?.(...i)}}};ho.LRUCache=Ku});var sf=p(Ie=>{"use strict";var PC=Ie&&Ie.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Minipass=Ie.isWritable=Ie.isReadable=Ie.isStream=void 0;var zw=typeof process=="object"&&process?process:{stdout:null,stderr:null},nf=I("events"),Yw=PC(I("stream")),NC=I("string_decoder"),MC=t=>!!t&&typeof t=="object"&&(t instanceof bo||t instanceof Yw.default||(0,Ie.isReadable)(t)||(0,Ie.isWritable)(t));Ie.isStream=MC;var CC=t=>!!t&&typeof t=="object"&&t instanceof nf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==Yw.default.Writable.prototype.pipe;Ie.isReadable=CC;var kC=t=>!!t&&typeof t=="object"&&t instanceof nf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Ie.isWritable=kC;var St=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),Bt=Symbol("emittedEnd"),co=Symbol("emittingEnd"),nn=Symbol("emittedError"),po=Symbol("closed"),$w=Symbol("read"),go=Symbol("flush"),Hw=Symbol("flushChunk"),Ze=Symbol("encoding"),ei=Symbol("decoder"),de=Symbol("flowing"),sn=Symbol("paused"),ti=Symbol("resume"),pe=Symbol("buffer"),De=Symbol("pipes"),ge=Symbol("bufferLength"),Qu=Symbol("bufferPush"),yo=Symbol("bufferShift"),Ae=Symbol("objectMode"),le=Symbol("destroyed"),Xu=Symbol("error"),Ju=Symbol("emitData"),Vw=Symbol("emitEnd"),ef=Symbol("emitEnd2"),at=Symbol("async"),tf=Symbol("abort"),mo=Symbol("aborted"),on=Symbol("signal"),dr=Symbol("dataListeners"),Me=Symbol("discarded"),an=t=>Promise.resolve().then(t),qC=t=>t(),FC=t=>t==="end"||t==="finish"||t==="prefinish",BC=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,jC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),_o=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ti](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},rf=class extends _o{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>this.dest.emit("error",n),e.on("error",this.proxyErrors)}},WC=t=>!!t.objectMode,UC=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",bo=class extends nf.EventEmitter{[de]=!1;[sn]=!1;[De]=[];[pe]=[];[Ae];[Ze];[at];[ei];[St]=!1;[Bt]=!1;[co]=!1;[po]=!1;[nn]=null;[ge]=0;[le]=!1;[on];[mo]=!1;[dr]=0;[Me]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");WC(r)?(this[Ae]=!0,this[Ze]=null):UC(r)?(this[Ze]=r.encoding,this[Ae]=!1):(this[Ae]=!1,this[Ze]=null),this[at]=!!r.async,this[ei]=this[Ze]?new NC.StringDecoder(this[Ze]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[pe]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[De]});let{signal:i}=r;i&&(this[on]=i,i.aborted?this[tf]():i.addEventListener("abort",()=>this[tf]()))}get bufferLength(){return this[ge]}get encoding(){return this[Ze]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Ae]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[at]}set async(e){this[at]=this[at]||!!e}[tf](){this[mo]=!0,this.emit("abort",this[on]?.reason),this.destroy(this[on]?.reason)}get aborted(){return this[mo]}set aborted(e){}write(e,r,i){if(this[mo])return!1;if(this[St])throw new Error("write after end");if(this[le])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[at]?an:qC;if(!this[Ae]&&!Buffer.isBuffer(e)){if(jC(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(BC(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Ae]?(this[de]&&this[ge]!==0&&this[go](!0),this[de]?this.emit("data",e):this[Qu](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ze]&&!this[ei]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ze]&&(e=this[ei].write(e)),this[de]&&this[ge]!==0&&this[go](!0),this[de]?this.emit("data",e):this[Qu](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):(this[ge]!==0&&this.emit("readable"),i&&n(i),this[de])}read(e){if(this[le])return null;if(this[Me]=!1,this[ge]===0||e===0||e&&e>this[ge])return this[Et](),null;this[Ae]&&(e=null),this[pe].length>1&&!this[Ae]&&(this[pe]=[this[Ze]?this[pe].join(""):Buffer.concat(this[pe],this[ge])]);let r=this[$w](e||null,this[pe][0]);return this[Et](),r}[$w](e,r){if(this[Ae])this[yo]();else{let i=r;e===i.length||e===null?this[yo]():typeof i=="string"?(this[pe][0]=i.slice(e),r=i.slice(0,e),this[ge]-=e):(this[pe][0]=i.subarray(e),r=i.subarray(0,e),this[ge]-=e)}return this.emit("data",r),!this[pe].length&&!this[St]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r="utf8"),e!==void 0&&this.write(e,r),i&&this.once("end",i),this[St]=!0,this.writable=!1,(this[de]||!this[sn])&&this[Et](),this}[ti](){this[le]||(!this[dr]&&!this[De].length&&(this[Me]=!0),this[sn]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[go]():this[St]?this[Et]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[de]=!1,this[sn]=!0,this[Me]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[sn]}[Qu](e){this[Ae]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[yo](){return this[Ae]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[go](e=!1){do;while(this[Hw](this[yo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[Hw](e){return this.emit("data",e),this[de]}pipe(e,r){if(this[le])return e;this[Me]=!1;let i=this[Bt];return r=r||{},e===zw.stdout||e===zw.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[De].push(r.proxyErrors?new rf(this,e,r):new _o(this,e,r)),this[at]?an(()=>this[ti]()):this[ti]()),e}unpipe(e){let r=this[De].find(i=>i.dest===e);r&&(this[De].length===1?(this[de]&&this[dr]===0&&(this[de]=!1),this[De]=[]):this[De].splice(this[De].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);if(e==="data")this[Me]=!1,this[dr]++,!this[De].length&&!this[de]&&this[ti]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(FC(e)&&this[Bt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[nn]){let n=r;this[at]?an(()=>n.call(this,this[nn])):n.call(this,this[nn])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[dr]=this.listeners("data").length,this[dr]===0&&!this[Me]&&!this[De].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[dr]=0,!this[Me]&&!this[De].length&&(this[de]=!1)),r}get emittedEnd(){return this[Bt]}[Et](){!this[co]&&!this[Bt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[co]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[po]&&this.emit("close"),this[co]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==le&&this[le])return!1;if(e==="data")return!this[Ae]&&!i?!1:this[at]?(an(()=>this[Ju](i)),!0):this[Ju](i);if(e==="end")return this[Vw]();if(e==="close"){if(this[po]=!0,!this[Bt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[nn]=i,super.emit(Xu,i);let s=!this[on]||this.listeners("error").length?super.emit("error",i):!1;return this[Et](),s}else if(e==="resume"){let s=super.emit("resume");return this[Et](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,...r);return this[Et](),n}[Ju](e){for(let i of this[De])i.dest.write(e)===!1&&this.pause();let r=this[Me]?!1:super.emit("data",e);return this[Et](),r}[Vw](){return this[Bt]?!1:(this[Bt]=!0,this.readable=!1,this[at]?(an(()=>this[ef]()),!0):this[ef]())}[ef](){if(this[ei]){let r=this[ei].end();if(r){for(let i of this[De])i.dest.write(r);this[Me]||super.emit("data",r)}}for(let r of this[De])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Ae]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ae]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[Ae])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ze]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(le,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Me]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[St])return r();let s,o,a=h=>{this.off("data",l),this.off("end",u),this.off(le,f),r(),o(h)},l=h=>{this.off("error",a),this.off("end",u),this.off(le,f),this.pause(),s({value:h,done:!!this[St]})},u=()=>{this.off("error",a),this.off("data",l),this.off(le,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((h,c)=>{o=c,s=h,this.once(le,f),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Me]=!1;let e=!1,r=()=>(this.pause(),this.off(Xu,r),this.off(le,r),this.off("end",r),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(Xu,r),this.once(le,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[le])return e?this.emit("error",e):this.emit(le),this;this[le]=!0,this[Me]=!0,this[pe].length=0,this[ge]=0;let r=this;return typeof r.close=="function"&&!this[po]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return Ie.isStream}};Ie.Minipass=bo});var u0=p(H=>{"use strict";var GC=H&&H.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),zC=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$C=H&&H.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&GC(e,t,r);return zC(e,t),e};Object.defineProperty(H,"__esModule",{value:!0});H.PathScurry=H.Path=H.PathScurryDarwin=H.PathScurryPosix=H.PathScurryWin32=H.PathScurryBase=H.PathPosix=H.PathWin32=H.PathBase=H.ChildrenCache=H.ResolveCache=void 0;var e0=Gw(),xo=I("path"),HC=I("url"),un=I("fs"),VC=$C(I("fs")),YC=un.realpathSync.native,wo=I("fs/promises"),Zw=sf(),fn={lstatSync:un.lstatSync,readdir:un.readdir,readdirSync:un.readdirSync,readlinkSync:un.readlinkSync,realpathSync:YC,promises:{lstat:wo.lstat,readdir:wo.readdir,readlink:wo.readlink,realpath:wo.realpath}},t0=t=>!t||t===fn||t===VC?fn:{...fn,...t,promises:{...fn.promises,...t.promises||{}}},r0=/^\\\\\?\\([a-z]:)\\?$/i,ZC=t=>t.replace(/\//g,"\\").replace(r0,"$1\\"),KC=/[\\\/]/,Ge=0,i0=1,n0=2,lt=4,s0=6,o0=8,pr=10,a0=12,Ue=15,ln=~Ue,of=16,Kw=32,hn=64,Ke=128,So=256,vo=512,Qw=hn|Ke|vo,QC=1023,af=t=>t.isFile()?o0:t.isDirectory()?lt:t.isSymbolicLink()?pr:t.isCharacterDevice()?n0:t.isBlockDevice()?s0:t.isSocket()?a0:t.isFIFO()?i0:Ge,Xw=new Map,cn=t=>{let e=Xw.get(t);if(e)return e;let r=t.normalize("NFKD");return Xw.set(t,r),r},Jw=new Map,Eo=t=>{let e=Jw.get(t);if(e)return e;let r=cn(t.toLowerCase());return Jw.set(t,r),r},dn=class extends e0.LRUCache{constructor(){super({max:256})}};H.ResolveCache=dn;var To=class extends e0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=To;var l0=Symbol("PathScurry setAsCwd"),Se=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#o;get uid(){return this.#o}#S;get gid(){return this.#S}#u;get rdev(){return this.#u}#h;get blksize(){return this.#h}#l;get ino(){return this.#l}#a;get size(){return this.#a}#s;get blocks(){return this.#s}#m;get atimeMs(){return this.#m}#_;get mtimeMs(){return this.#_}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#x;get ctime(){return this.#x}#T;get birthtime(){return this.#T}#y;#v;#b;#c;#A;#R;#i;#P;#w;#I;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=Ge,i,n,s,o,a){this.name=e,this.#y=s?Eo(e):cn(e),this.#i=r&QC,this.nocase=s,this.roots=n,this.root=i||this,this.#P=o,this.#b=a.fullpath,this.#A=a.relative,this.#R=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=t0(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#P}resolve(e){if(!e)return this;let r=this.getRootString(e),n=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#N(n):this.#N(n)}#N(e){let r=this;for(let i of e)r=r.child(i);return r}children(){let e=this.#P.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#P.set(this,r),this.#i&=~of,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?Eo(e):cn(e);for(let l of i)if(l.#y===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,Ge,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Ke),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let e=this.name,r=this.parent;if(!r)return this.#A=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let e=this.name,r=this.parent;if(!r)return this.#R=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+e}fullpath(){if(this.#b!==void 0)return this.#b;let e=this.name,r=this.parent;if(!r)return this.#b=this.name;let n=r.fullpath()+(r.parent?this.sep:"")+e;return this.#b=n}fullpathPosix(){if(this.#c!==void 0)return this.#c;if(this.sep==="/")return this.#c=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#c=`//?/${n}`:this.#c=n}let e=this.parent,r=e.fullpathPosix(),i=r+(!r||!e.parent?"":"/")+this.name;return this.#c=i}isUnknown(){return(this.#i&Ue)===Ge}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&Ue)===o0}isDirectory(){return(this.#i&Ue)===lt}isCharacterDevice(){return(this.#i&Ue)===n0}isBlockDevice(){return(this.#i&Ue)===s0}isFIFO(){return(this.#i&Ue)===i0}isSocket(){return(this.#i&Ue)===a0}isSymbolicLink(){return(this.#i&pr)===pr}lstatCached(){return this.#i&Kw?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#I}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&Ue;return!(e!==Ge&&e!==pr||this.#i&So||this.#i&Ke)}calledReaddir(){return!!(this.#i&of)}isENOENT(){return!!(this.#i&Ke)}isNamed(e){return this.nocase?this.#y===Eo(e):this.#y===cn(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}#M(e){this.#i|=of;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#C()}}#C(){this.#i&Ke||(this.#i=(this.#i|Ke)&ln,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#C()}#D(){this.#i|=vo,this.#k()}#k(){if(this.#i&hn)return;let e=this.#i;(e&Ue)===lt&&(e&=ln),this.#i=e|hn,this.#O()}#q(e=""){e==="ENOTDIR"||e==="EPERM"?this.#k():e==="ENOENT"?this.#C():this.children().provisional=0}#F(e=""){e==="ENOTDIR"?this.parent.#k():e==="ENOENT"&&this.#C()}#f(e=""){let r=this.#i;r|=So,e==="ENOENT"&&(r|=Ke),(e==="EINVAL"||e==="UNKNOWN")&&(r&=ln),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#k()}#B(e,r){return this.#L(e,r)||this.#j(e,r)}#j(e,r){let i=af(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&Ue;return s!==lt&&s!==pr&&s!==Ge&&(n.#i|=hn),r.unshift(n),r.provisional++,n}#L(e,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?Eo(e.name):cn(e.name))===n.#y)return this.#W(e,n,i,r)}}#W(e,r,i,n){let s=r.name;return r.#i=r.#i&ln|af(e),s!==e.name&&(r.name=e.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(r)),n.provisional++,r}async lstat(){if((this.#i&Ke)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#F(e.code)}}lstatSync(){if((this.#i&Ke)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#F(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:h,ino:c,mode:d,mtime:b,mtimeMs:g,nlink:x,rdev:y,size:m,uid:S}=e;this.#E=r,this.#m=i,this.#T=n,this.#d=s,this.#h=o,this.#s=a,this.#x=l,this.#g=u,this.#r=f,this.#S=h,this.#l=c,this.#n=d,this.#p=b,this.#_=g,this.#t=x,this.#u=y,this.#a=m,this.#o=S;let E=af(e);this.#i=this.#i&ln|E|Kw,E!==Ge&&E!==lt&&E!==pr&&(this.#i|=hn)}#G=[];#z=!1;#H(e){this.#z=!1;let r=this.#G.slice();this.#G.length=0,r.forEach(i=>i(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#G.push(e),this.#z)return;this.#z=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#q(s.code),i.provisional=0;else{for(let a of o)this.#B(a,i);this.#M(i)}this.#H(i.slice(0,i.provisional))})}#U;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#U)await this.#U;else{let i=()=>{};this.#U=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#B(n,e);this.#M(e)}catch(n){this.#q(n.code),e.provisional=0}this.#U=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#B(i,e);this.#M(e)}catch(i){this.#q(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&Qw)return!1;let e=Ue&this.#i;return e===Ge||e===lt||e===pr}shouldWalk(e,r){return(this.#i<)===lt&&!(this.#i&Qw)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#I)return this.#I;if(!((vo|So|Ke)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}realpathSync(){if(this.#I)return this.#I;if(!((vo|So|Ke)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}[l0](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],n=this;for(;n&&n.parent;)r.add(n),n.#A=i.join(this.sep),n.#R=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#A=void 0,n.#R=void 0,n=n.parent}};H.PathBase=Se;var pn=class t extends Se{sep="\\";splitSep=KC;constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return xo.win32.parse(e).root}getRoot(e){if(e=ZC(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=i;return this.roots[e]=new mn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(r0,"$1\\"),e===r}};H.PathWin32=pn;var gn=class t extends Se{splitSep="/";sep="/";constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};H.PathPosix=gn;var yn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=fn}={}){this.#t=t0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,HC.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new dn,this.#r=new dn,this.#n=new To(s);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,f=l.length-1,h=r.sep,c=this.rootPath,d=!1;for(let b of l){let g=f--;u=u.child(b,{relative:new Array(g).fill("..").join(h),relativePosix:new Array(g).fill("..").join("/"),fullpath:c+=(d?"":h)+b}),d=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#e.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpath();return this.#e.set(r,n),n}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#r.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,n),n}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i}=r;if(e.canReaddir()){let n=await e.readdir();return i?n:n.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0}=r;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(n=>n.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.readlink();return r?i:i?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return r?i:i?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.realpath();return r?i:i?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return r?i:i?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set,u=(h,c)=>{l.add(h),h.readdirCB((d,b)=>{if(d)return c(d);let g=b.length;if(!g)return c();let x=()=>{--g===0&&c()};for(let y of b)(!s||s(y))&&a.push(i?y:y.fullpath()),n&&y.isSymbolicLink()?y.realpath().then(m=>m?.isUnknown()?m.lstat():m).then(m=>m?.shouldWalk(l,o)?u(m,x):x()):y.shouldWalk(l,o)?u(y,x):x()},!0)},f=e;return new Promise((h,c)=>{u(f,d=>{if(d)return c(d);h(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let u of l){let f=u.readdirSync();for(let h of f){(!s||s(h))&&a.push(i?h:h.fullpath());let c=h;if(h.isSymbolicLink()){if(!(n&&(c=h.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(l,o)&&l.add(c)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let f of u){(!s||s(f))&&(yield i?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(n&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(a,o)&&a.add(h)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new Zw.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,h=()=>{let c=!1;for(;!c;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let b=(x,y,m=!1)=>{if(x)return a.emit("error",x);if(n&&!m){let S=[];for(let E of y)E.isSymbolicLink()&&S.push(E.realpath().then(A=>A?.isUnknown()?A.lstat():A));if(S.length){Promise.all(S).then(()=>b(null,y,!0));return}}for(let S of y)S&&(!s||s(S))&&(a.write(i?S:S.fullpath())||(c=!0));f--;for(let S of y){let E=S.realpathCached()||S;E.shouldWalk(l,o)&&u.push(E)}c&&!a.flowing?a.once("drain",h):g||h()},g=!0;d.readdirCB(b,!0),g=!1}};return h(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new Zw.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,h=()=>{let c=!1;for(;!c;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let b=d.readdirSync();for(let g of b)(!s||s(g))&&(a.write(i?g:g.fullpath())||(c=!0));f--;for(let g of b){let x=g;if(g.isSymbolicLink()){if(!(n&&(x=g.realpathSync())))continue;x.isUnknown()&&x.lstatSync()}x.shouldWalk(l,o)&&u.push(x)}}c&&!a.flowing&&a.once("drain",h)};return h(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[l0](r)}};H.PathScurryBase=yn;var mn=class extends yn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,xo.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return xo.win32.parse(e).root.toUpperCase()}newRoot(e){return new pn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};H.PathScurryWin32=mn;var _n=class extends yn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,xo.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new gn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=_n;var Ao=class extends _n{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Ao;H.Path=process.platform==="win32"?pn:gn;H.PathScurry=process.platform==="win32"?mn:process.platform==="darwin"?Ao:_n});var uf=p(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.Pattern=void 0;var XC=qt(),JC=t=>t.length>=1,ek=t=>t.length>=1,lf=class t{#e;#r;#n;length;#t;#o;#S;#u;#h;#l;#a=!0;constructor(e,r,i,n){if(!JC(e))throw new TypeError("empty pattern list");if(!ek(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#r=r,this.#n=i,this.#t=n,this.#n===0){if(this.isUNC()){let[s,o,a,l,...u]=this.#e,[f,h,c,d,...b]=this.#r;u[0]===""&&(u.shift(),b.shift());let g=[s,o,a,l,""].join("/"),x=[f,h,c,d,""].join("/");this.#e=[g,...u],this.#r=[x,...b],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#r;o[0]===""&&(o.shift(),l.shift());let u=s+"/",f=a+"/";this.#e=[u,...o],this.#r=[f,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===XC.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#S=this.#S||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new t(this.#e,this.#r,this.#n+1,this.#t),this.#o.#l=this.#l,this.#o.#h=this.#h,this.#o.#u=this.#u,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#h!==void 0?this.#h:this.#h=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};Ro.Pattern=lf});var hf=p(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.Ignore=void 0;var f0=qt(),tk=uf(),rk=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ff=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=rk}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let r=new f0.Minimatch(e,this.mmopts);for(let i=0;i<r.set.length;i++){let n=r.set[i],s=r.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new tk.Pattern(n,s,0,this.platform),a=new f0.Minimatch(o.globString(),this.mmopts),l=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let r=e.fullpath(),i=`${r}/`,n=e.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(i))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(r))return!0;return!1}};Oo.Ignore=ff});var c0=p(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var h0=qt(),Do=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let i=e.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};ut.HasWalkedCache=Do;var Io=class{store=new Map;add(e,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};ut.MatchRecord=Io;var Lo=class{store=new Map;add(e,r){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};ut.SubWalks=Lo;var cf=class t{hasWalkedCache;matches=new Io;subwalks=new Lo;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new Do}processPatterns(e,r){this.patterns=r;let i=r.map(n=>[e,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let h=s.rest();if(h)s=h;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let l,u,f=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)n=n.resolve(l),s=u,f=!0;if(l=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof l=="string"){let h=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,h);continue}else if(l===h0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let h=u?.pattern(),c=u?.rest();if(!u||(h===""||h===".")&&!c)this.matches.add(n,a,h===""||h===".");else if(h===".."){let d=n.parent||n;c?this.hasWalkedCache.hasWalked(d,c)||this.subwalks.add(d,c):this.matches.add(d,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let i=this.subwalks.get(e),n=this.child();for(let s of r)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===h0.GLOBSTAR?n.testGlobstar(s,o,u,a):l instanceof RegExp?n.testRegExp(s,l,u,a):n.testString(s,l,u,a)}return n}testGlobstar(e,r,i,n){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(e,i):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),n);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),n)}}testRegExp(e,r,i,n){r.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}testString(e,r,i,n){e.isNamed(r)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}};ut.Processor=cf});var g0=p(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.GlobStream=jt.GlobWalker=jt.GlobUtil=void 0;var ik=sf(),d0=hf(),p0=c0(),nk=(t,e)=>typeof t=="string"?new d0.Ignore([t],e):Array.isArray(t)?new d0.Ignore(t,e):t,bn=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,i){if(this.patterns=e,this.path=r,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#r=nk(i.ignore??[],i),!this.includeChildMatches&&typeof this.#r.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#o(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+n)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?o+s+n:"."+n)}}async match(e,r,i){let n=await this.matchCheck(e,i);n&&this.matchFinish(n,r)}matchSync(e,r,i){let n=this.matchCheckSync(e,i);n&&this.matchFinish(n,r)}walkCB(e,r,i){this.signal?.aborted&&i(),this.walkCB2(e,r,new p0.Processor(this.opts),i)}walkCB2(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,i,o):a.readdirCB((u,f)=>this.walkCB3(a,f,i,o),!0)}o()}walkCB3(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let[a,l]of i.subwalks.entries())s++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(e,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,r,new p0.Processor(this.opts),i)}walkCB2Sync(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,i,o)}o()}walkCB3Sync(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let[a,l]of i.subwalks.entries())s++,this.walkCB2Sync(a,l,i.child(),o);o()}};jt.GlobUtil=bn;var df=class extends bn{matches=new Set;constructor(e,r,i){super(e,r,i)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};jt.GlobWalker=df;var pf=class extends bn{results;constructor(e,r,i){super(e,r,i),this.results=new ik.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};jt.GlobStream=pf});var yf=p(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.Glob=void 0;var sk=qt(),ok=I("url"),Po=u0(),ak=uf(),No=g0(),lk=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",gf=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,ok.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=r.platform||lk,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?Po.PathScurryWin32:r.platform==="darwin"?Po.PathScurryDarwin:r.platform?Po.PathScurryPosix:Po.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",n={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new sk.Minimatch(l,n)),[o,a]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=o.map((l,u)=>{let f=a[u];if(!f)throw new Error("invalid pattern object");return new ak.Pattern(l,f,0,this.platform)})}async walk(){return[...await new No.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new No.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new No.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new No.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};Mo.Glob=gf});var mf=p(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.hasMagic=void 0;var uk=qt(),fk=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new uk.Minimatch(r,e).hasMagic())return!0;return!1};Co.hasMagic=fk});var b0=p(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.glob=W.sync=W.iterate=W.iterateSync=W.stream=W.streamSync=W.Ignore=W.hasMagic=W.Glob=W.unescape=W.escape=void 0;W.globStreamSync=wn;W.globStream=_f;W.globSync=bf;W.globIterateSync=Sn;W.globIterate=wf;var y0=qt(),gr=yf(),hk=mf(),_0=qt();Object.defineProperty(W,"escape",{enumerable:!0,get:function(){return _0.escape}});Object.defineProperty(W,"unescape",{enumerable:!0,get:function(){return _0.unescape}});var ck=yf();Object.defineProperty(W,"Glob",{enumerable:!0,get:function(){return ck.Glob}});var dk=mf();Object.defineProperty(W,"hasMagic",{enumerable:!0,get:function(){return dk.hasMagic}});var pk=hf();Object.defineProperty(W,"Ignore",{enumerable:!0,get:function(){return pk.Ignore}});function wn(t,e={}){return new gr.Glob(t,e).streamSync()}function _f(t,e={}){return new gr.Glob(t,e).stream()}function bf(t,e={}){return new gr.Glob(t,e).walkSync()}async function m0(t,e={}){return new gr.Glob(t,e).walk()}function Sn(t,e={}){return new gr.Glob(t,e).iterateSync()}function wf(t,e={}){return new gr.Glob(t,e).iterate()}W.streamSync=wn;W.stream=Object.assign(_f,{sync:wn});W.iterateSync=Sn;W.iterate=Object.assign(wf,{sync:Sn});W.sync=Object.assign(bf,{stream:wn,iterate:Sn});W.glob=Object.assign(m0,{glob:m0,globSync:bf,sync:W.sync,globStream:_f,stream:W.stream,globStreamSync:wn,streamSync:W.streamSync,globIterate:wf,iterate:W.iterate,globIterateSync:Sn,iterateSync:W.iterateSync,Glob:gr.Glob,hasMagic:hk.hasMagic,escape:y0.escape,unescape:y0.unescape});W.glob.glob=W.glob});var v0=p((g6,E0)=>{"use strict";var S0=Wa(),ri=I("path"),Sf=H_(),gk=aw(),yk=_w(),mk=Tw(),_k=b0(),yr=E0.exports={},w0=/[\/\\]/g,bk=function(t,e){var r=[];return Sf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=gk(r,s):r=yk(r,s)}),r};yr.exists=function(){var t=ri.join.apply(ri,arguments);return S0.existsSync(t)};yr.expand=function(...t){var e=mk(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=bk(r,function(n){return _k.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ri.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):S0.statSync(n)[e.filter]()}catch{return!1}})),i};yr.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ri.join(s||"",o)}},r);var i=[],n={};return yr.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ri.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ri.join(r.cwd,s)),a=a.replace(w0,"/"),s=s.replace(w0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};yr.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var i;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=Sf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return yr.expandMapping(r.src,r.dest,i).map(function(s){var o=Object.assign({},r);return o.orig=Object.assign({},r),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete o[a]}),o});var n=Object.assign({},r);return n.orig=Object.assign({},r),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=r.src,o=Array.isArray(o)?Sf(o):[o],s.result=yr.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var ii=p((m6,A0)=>{"use strict";var Ef=Wa(),x0=I("path"),wk=es(),Sk=Zd(),T0=hl(),Ek=Dg(),y6=I("stream").Stream,vk=hr().PassThrough,Ce=A0.exports={};Ce.file=v0();Ce.collectStream=function(t,e){var r=[],i=0;t.on("error",e),t.on("data",function(n){r.push(n),i+=n.length}),t.on("end",function(){var n=Buffer.alloc(i),s=0;r.forEach(function(o){o.copy(n,s),s+=o.length}),e(null,n)})};Ce.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};Ce.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},Ek(...i)};Ce.isStream=function(t){return wk(t)};Ce.lazyReadStream=function(t){return new Sk.Readable(function(){return Ef.createReadStream(t)})};Ce.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):Ce.isStream(t)?t.pipe(new vk):t};Ce.sanitizePath=function(t){return T0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};Ce.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};Ce.unixifyPath=function(t){return T0(t,!1).replace(/^\w+:/,"")};Ce.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Ef.readdir(t,function(n,s){var o=0,a,l;if(n)return r(n);(function u(){if(a=s[o++],!a)return r(null,i);l=x0.join(t,a),Ef.stat(l,function(f,h){i.push({path:l,relative:x0.relative(e,l).replace(/\\/g,"/"),stats:h}),h&&h.isDirectory()?Ce.walkdir(l,e,function(c,d){if(c)return r(c);d.forEach(function(b){i.push(b)}),u()}):u()})})()})}});var I0=p((O0,D0)=>{"use strict";var xk=I("util"),Tk={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function R0(t,e){Error.captureStackTrace(this,this.constructor),this.message=Tk[t]||t,this.code=t,this.data=e}xk.inherits(R0,Error);O0=D0.exports=R0});var C0=p((_6,M0)=>{"use strict";var Tf=I("fs"),P0=Uh(),L0=(Wc(),OE(jc)),vf=I("path"),ft=ii(),Ak=I("util").inherits,ae=I0(),N0=hr().Transform,xf=process.platform==="win32",z=function(t,e){if(!(this instanceof z))return new z(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=ft.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),N0.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=L0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=L0.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};Ak(z,N0);z.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};z.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof Tf.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};z.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};z.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};z.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(i){if(this._task=null,this._state.aborted){this._shutdown();return}if(i){this.emit("error",i),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};z.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new ae("NOENDMETHOD"))};z.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};z.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};z.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};z.prototype._normalizeEntryData=function(t,e){t=ft.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=ft.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?xf?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(xf?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,xf&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=ft.dateify(t.date),t};z.prototype._onModuleError=function(t){this.emit("error",t)};z.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};z.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};z.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}Tf.lstat(t.filepath,function(r,i){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,i),t&&(i.size&&(this._fsEntriesTotalBytes+=i.size),this._queue.push(t)),setImmediate(e)}.bind(this))};z.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};z.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};z.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=ft.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=ft.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=ft.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=Tf.readlinkSync(t.filepath),i=vf.dirname(t.filepath);t.data.type="symlink",t.data.linkname=vf.relative(i,vf.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new ae("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new ae("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new ae("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};z.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};z.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new ae("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new ae("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=ft.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(ft.isStream(t))e.sourceType="stream";else return this.emit("error",new ae("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};z.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var i=!1;typeof r=="function"?(i=r,r={}):typeof r!="object"&&(r={});var n={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(u){this.emit("error",u)}function a(u){l.pause();var f=!1,h=Object.assign({},r);h.name=u.relative,h.prefix=e,h.stats=u.stat,h.callback=l.resume.bind(l);try{if(i){if(h=i(h),h===!1)f=!0;else if(typeof h!="object")throw new ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(c){this.emit("error",c);return}if(f){l.resume();return}this._append(u.absolute,h)}var l=P0(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};z.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new ae("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new ae("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};z.prototype.glob=function(t,e,r){this._pending++,e=ft.defaults(e,{stat:!0,pattern:t});function i(){this._pending--,this._maybeFinalize()}function n(a){this.emit("error",a)}function s(a){o.pause();var l=Object.assign({},r);l.callback=o.resume.bind(o),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var o=P0(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};z.prototype.finalize=function(){if(this._state.aborted){var t=new ae("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new ae("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(i,n){var s;r._module.on("end",function(){s||i()}),r._module.on("error",function(o){s=!0,n(o)})})};z.prototype.setFormat=function(t){return this._format?(this.emit("error",new ae("FORMATSET")),this):(this._format=t,this)};z.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new ae("ABORTED")),this):this._state.module?(this.emit("error",new ae("MODULESET")),this):(this._module=t,this._modulePipe(),this)};z.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ae("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new ae("SYMLINKNOTSUPPORTED",{filepath:t})),this;var i={};return i.type="symlink",i.name=t.replace(/\\/g,"/"),i.linkname=e.replace(/\\/g,"/"),i.sourceType="buffer",typeof r=="number"&&(i.mode=r),this._entriesCount++,this._queue.push({data:i,source:Buffer.concat([])}),this};z.prototype.pointer=function(){return this._pointer};z.prototype.use=function(t){return this._streams.push(t),this};M0.exports=z});var qo=p((b6,k0)=>{"use strict";var ko=k0.exports=function(){};ko.prototype.getName=function(){};ko.prototype.getSize=function(){};ko.prototype.getLastModifiedDate=function(){};ko.prototype.isDirectory=function(){}});var Fo=p((w6,q0)=>{"use strict";var ze=q0.exports={};ze.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var i={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};ze.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};ze.fromDosTime=function(t){return ze.dosToDate(t.readUInt32LE(0))};ze.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ze.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ze.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ze.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ze.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ze.toDosTime=function(t){return ze.getLongBytes(ze.dateToDos(t))}});var Af=p((S6,G0)=>{"use strict";var F0=Fo(),B0=8,j0=1,Rk=4,Ok=2,W0=64,U0=2048,Ee=G0.exports=function(){return this instanceof Ee?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ee};Ee.prototype.encode=function(){return F0.getShortBytes((this.descriptor?B0:0)|(this.utf8?U0:0)|(this.encryption?j0:0)|(this.strongEncryption?W0:0))};Ee.prototype.parse=function(t,e){var r=F0.getShortBytesValue(t,e),i=new Ee;return i.useDataDescriptor((r&B0)!==0),i.useUTF8ForNames((r&U0)!==0),i.useStrongEncryption((r&W0)!==0),i.useEncryption((r&j0)!==0),i.setSlidingDictionarySize((r&Ok)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&Rk)!==0?3:2),i};Ee.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ee.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ee.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ee.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ee.prototype.useDataDescriptor=function(t){this.descriptor=t};Ee.prototype.usesDataDescriptor=function(){return this.descriptor};Ee.prototype.useEncryption=function(t){this.encryption=t};Ee.prototype.usesEncryption=function(){return this.encryption};Ee.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ee.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ee.prototype.useUTF8ForNames=function(t){this.utf8=t};Ee.prototype.usesUTF8ForNames=function(){return this.utf8}});var $0=p((E6,z0)=>{"use strict";z0.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Rf=p((v6,H0)=>{"use strict";H0.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Of=p((x6,Q0)=>{"use strict";var Dk=I("util").inherits,Ik=hl(),Y0=qo(),Z0=Af(),V0=$0(),Le=Rf(),K0=Fo(),F=Q0.exports=function(t){if(!(this instanceof F))return new F(t);Y0.call(this),this.platform=Le.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new Z0,this.crc=0,this.time=-1,this.minver=Le.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};Dk(F,Y0);F.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};F.prototype.getComment=function(){return this.comment!==null?this.comment:""};F.prototype.getCompressedSize=function(){return this.csize};F.prototype.getCrc=function(){return this.crc};F.prototype.getExternalAttributes=function(){return this.exattr};F.prototype.getExtra=function(){return this.extra!==null?this.extra:Le.EMPTY};F.prototype.getGeneralPurposeBit=function(){return this.gpb};F.prototype.getInternalAttributes=function(){return this.inattr};F.prototype.getLastModifiedDate=function(){return this.getTime()};F.prototype.getLocalFileDataExtra=function(){return this.getExtra()};F.prototype.getMethod=function(){return this.method};F.prototype.getName=function(){return this.name};F.prototype.getPlatform=function(){return this.platform};F.prototype.getSize=function(){return this.size};F.prototype.getTime=function(){return this.time!==-1?K0.dosToDate(this.time):-1};F.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};F.prototype.getUnixMode=function(){return this.platform!==Le.PLATFORM_UNIX?0:this.getExternalAttributes()>>Le.SHORT_SHIFT&Le.SHORT_MASK};F.prototype.getVersionNeededToExtract=function(){return this.minver};F.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};F.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};F.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};F.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};F.prototype.setExtra=function(t){this.extra=t};F.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof Z0))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};F.prototype.setInternalAttributes=function(t){this.inattr=t};F.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};F.prototype.setName=function(t,e=!1){t=Ik(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};F.prototype.setPlatform=function(t){this.platform=t};F.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};F.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=K0.dateToDos(t,e)};F.prototype.setUnixMode=function(t){t|=this.isDirectory()?Le.S_IFDIR:Le.S_IFREG;var e=0;e|=t<<Le.SHORT_SHIFT|(this.isDirectory()?Le.S_DOS_D:Le.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Le.MODE_MASK,this.platform=Le.PLATFORM_UNIX};F.prototype.setVersionNeededToExtract=function(t){this.minver=t};F.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};F.prototype.isUnixSymlink=function(){return(this.getUnixMode()&V0.FILE_TYPE_FLAG)===V0.LINK_FLAG};F.prototype.isZip64=function(){return this.csize>Le.ZIP64_MAGIC||this.size>Le.ZIP64_MAGIC}});var Df=p((A6,X0)=>{"use strict";var T6=I("stream").Stream,Lk=hr().PassThrough,Pk=es(),Nk=X0.exports={};Nk.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(Pk(t)&&!t._readableState){var e=new Lk;return t.pipe(e),e}return t}});var Lf=p((R6,J0)=>{"use strict";var Mk=I("util").inherits,Ck=es(),If=hr().Transform,kk=qo(),qk=Df(),ke=J0.exports=function(t){if(!(this instanceof ke))return new ke(t);If.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};Mk(ke,If);ke.prototype._appendBuffer=function(t,e,r){};ke.prototype._appendStream=function(t,e,r){};ke.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};ke.prototype._finish=function(t){};ke.prototype._normalizeEntry=function(t){};ke.prototype._transform=function(t,e,r){r(null,t)};ke.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof kk)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=qk.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(Ck(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};ke.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};ke.prototype.getBytesWritten=function(){return this.offset};ke.prototype.write=function(t,e){return t&&(this.offset+=t.length),If.prototype.write.call(this,t,e)}});var Bo=p(Pf=>{"use strict";var eS;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof Pf=="object"?t(Pf):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(eS={}):t(eS={})})(function(t){t.version="1.2.2";function e(){for(var v=0,O=new Array(256),w=0;w!=256;++w)v=w,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,O[w]=v;return typeof Int32Array<"u"?new Int32Array(O):O}var r=e();function i(v){var O=0,w=0,T=0,R=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(T=0;T!=256;++T)R[T]=v[T];for(T=0;T!=256;++T)for(w=v[T],O=256+T;O<4096;O+=256)w=R[O]=w>>>8^v[w&255];var N=[];for(T=1;T!=16;++T)N[T-1]=typeof Int32Array<"u"?R.subarray(T*256,T*256+256):R.slice(T*256,T*256+256);return N}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],h=n[6],c=n[7],d=n[8],b=n[9],g=n[10],x=n[11],y=n[12],m=n[13],S=n[14];function E(v,O){for(var w=O^-1,T=0,R=v.length;T<R;)w=w>>>8^r[(w^v.charCodeAt(T++))&255];return~w}function A(v,O){for(var w=O^-1,T=v.length-15,R=0;R<T;)w=S[v[R++]^w&255]^m[v[R++]^w>>8&255]^y[v[R++]^w>>16&255]^x[v[R++]^w>>>24]^g[v[R++]]^b[v[R++]]^d[v[R++]]^c[v[R++]]^h[v[R++]]^f[v[R++]]^u[v[R++]]^l[v[R++]]^a[v[R++]]^o[v[R++]]^s[v[R++]]^r[v[R++]];for(T+=15;R<T;)w=w>>>8^r[(w^v[R++])&255];return~w}function L(v,O){for(var w=O^-1,T=0,R=v.length,N=0,G=0;T<R;)N=v.charCodeAt(T++),N<128?w=w>>>8^r[(w^N)&255]:N<2048?(w=w>>>8^r[(w^(192|N>>6&31))&255],w=w>>>8^r[(w^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,G=v.charCodeAt(T++)&1023,w=w>>>8^r[(w^(240|N>>8&7))&255],w=w>>>8^r[(w^(128|N>>2&63))&255],w=w>>>8^r[(w^(128|G>>6&15|(N&3)<<4))&255],w=w>>>8^r[(w^(128|G&63))&255]):(w=w>>>8^r[(w^(224|N>>12&15))&255],w=w>>>8^r[(w^(128|N>>6&63))&255],w=w>>>8^r[(w^(128|N&63))&255]);return~w}t.table=r,t.bstr=E,t.buf=A,t.str=L})});var rS=p((D6,tS)=>{"use strict";var{Transform:Fk}=hr(),Bk=Bo(),Nf=class extends Fk{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=Bk.buf(e,this.checksum)>>>0,this.rawSize+=e.length),i(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};tS.exports=Nf});var nS=p((I6,iS)=>{"use strict";var{DeflateRaw:jk}=I("zlib"),Wk=Bo(),Mf=class extends jk{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,r){return e&&(this.compressedSize+=e.length),super.push(e,r)}_transform(e,r,i){e&&(this.checksum=Wk.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,i)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};iS.exports=Mf});var Cf=p((L6,sS)=>{"use strict";sS.exports={CRC32Stream:rS(),DeflateCRC32Stream:nS()}});var lS=p((C6,aS)=>{"use strict";var Uk=I("util").inherits,Gk=Bo(),{CRC32Stream:zk}=Cf(),{DeflateCRC32Stream:$k}=Cf(),oS=Lf(),P6=Of(),N6=Af(),M=Rf(),M6=Df(),P=Fo(),ye=aS.exports=function(t){if(!(this instanceof ye))return new ye(t);t=this.options=this._defaults(t),oS.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};Uk(ye,oS);ye.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};ye.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(M.METHOD_STORED);var i=t.getMethod();if(i===M.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(Gk.buf(e)>>>0)),this._writeLocalFileHeader(t),i===M.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===M.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};ye.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(M.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var i=this._smartStream(t,r);e.once("error",function(n){i.emit("error",n),i.end()}),e.pipe(i)};ye.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=M.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};ye.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};ye.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(M.METHOD_DEFLATED),t.getMethod()===M.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(M.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};ye.prototype._smartStream=function(t,e){var r=t.getMethod()===M.METHOD_DEFLATED,i=r?new $k(this.options.zlib):new zk,n=null;function s(){var o=i.digest().readUInt32BE(0);t.setCrc(o),t.setSize(i.size()),t.setCompressedSize(i.size(!0)),this._afterAppend(t),e(n,t)}return i.once("end",s.bind(this)),i.once("error",function(o){n=o}),i.pipe(this,{end:!1}),i};ye.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=M.ZIP64_MAGIC_SHORT,e=M.ZIP64_MAGIC,r=M.ZIP64_MAGIC),this.write(P.getLongBytes(M.SIG_EOCD)),this.write(M.SHORT_ZERO),this.write(M.SHORT_ZERO),this.write(P.getShortBytes(t)),this.write(P.getShortBytes(t)),this.write(P.getLongBytes(e)),this.write(P.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write(P.getShortBytes(n)),this.write(i)};ye.prototype._writeCentralDirectoryZip64=function(){this.write(P.getLongBytes(M.SIG_ZIP64_EOCD)),this.write(P.getEightBytes(44)),this.write(P.getShortBytes(M.MIN_VERSION_ZIP64)),this.write(P.getShortBytes(M.MIN_VERSION_ZIP64)),this.write(M.LONG_ZERO),this.write(M.LONG_ZERO),this.write(P.getEightBytes(this._entries.length)),this.write(P.getEightBytes(this._entries.length)),this.write(P.getEightBytes(this._archive.centralLength)),this.write(P.getEightBytes(this._archive.centralOffset)),this.write(P.getLongBytes(M.SIG_ZIP64_EOCD_LOC)),this.write(M.LONG_ZERO),this.write(P.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(P.getLongBytes(1))};ye.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t._offsets.file,n=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||i>M.ZIP64_MAGIC){n=M.ZIP64_MAGIC,s=M.ZIP64_MAGIC,i=M.ZIP64_MAGIC,t.setVersionNeededToExtract(M.MIN_VERSION_ZIP64);var o=Buffer.concat([P.getShortBytes(M.ZIP64_EXTRA_ID),P.getShortBytes(24),P.getEightBytes(t.getSize()),P.getEightBytes(t.getCompressedSize()),P.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(P.getLongBytes(M.SIG_CFH)),this.write(P.getShortBytes(t.getPlatform()<<8|M.VERSION_MADEBY)),this.write(P.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(P.getShortBytes(r)),this.write(P.getLongBytes(t.getTimeDos())),this.write(P.getLongBytes(t.getCrc())),this.write(P.getLongBytes(s)),this.write(P.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write(P.getShortBytes(a.length)),this.write(P.getShortBytes(u.length)),this.write(P.getShortBytes(l.length)),this.write(M.SHORT_ZERO),this.write(P.getShortBytes(t.getInternalAttributes())),this.write(P.getLongBytes(t.getExternalAttributes())),this.write(P.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};ye.prototype._writeDataDescriptor=function(t){this.write(P.getLongBytes(M.SIG_DD)),this.write(P.getLongBytes(t.getCrc())),t.isZip64()?(this.write(P.getEightBytes(t.getCompressedSize())),this.write(P.getEightBytes(t.getSize()))):(this.write(P.getLongBytes(t.getCompressedSize())),this.write(P.getLongBytes(t.getSize())))};ye.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(M.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write(P.getLongBytes(M.SIG_LFH)),this.write(P.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(P.getShortBytes(r)),this.write(P.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(M.LONG_ZERO),this.write(M.LONG_ZERO),this.write(M.LONG_ZERO)):(this.write(P.getLongBytes(t.getCrc())),this.write(P.getLongBytes(t.getCompressedSize())),this.write(P.getLongBytes(t.getSize()))),this.write(P.getShortBytes(i.length)),this.write(P.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};ye.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};ye.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>M.ZIP64_MAGIC_SHORT||this._archive.centralLength>M.ZIP64_MAGIC||this._archive.centralOffset>M.ZIP64_MAGIC};ye.prototype.setComment=function(t){this._archive.comment=t}});var kf=p((k6,uS)=>{"use strict";uS.exports={ArchiveEntry:qo(),ZipArchiveEntry:Of(),ArchiveOutputStream:Lf(),ZipArchiveOutputStream:lS()}});var hS=p((q6,fS)=>{"use strict";var Hk=I("util").inherits,Ff=kf().ZipArchiveOutputStream,Vk=kf().ZipArchiveEntry,qf=ii(),ni=fS.exports=function(t){if(!(this instanceof ni))return new ni(t);t=this.options=t||{},t.zlib=t.zlib||{},Ff.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};Hk(ni,Ff);ni.prototype._normalizeFileData=function(t){t=qf.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",r=t.type==="symlink";return t.name&&(t.name=qf.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=qf.dateify(t.date),t};ni.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new Vk(e.name);return i.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&i.setName(e.name,!0),e.store&&i.setMethod(0),e.comment.length>0&&i.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),i.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),Ff.prototype.entry.call(this,i,t,r)};ni.prototype.finalize=function(){this.finish()}});var dS=p((F6,cS)=>{"use strict";var Yk=hS(),Zk=ii(),Wt=function(t){if(!(this instanceof Wt))return new Wt(t);t=this.options=Zk.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new Yk(t)};Wt.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Wt.prototype.finalize=function(){this.engine.finalize()};Wt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Wt.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Wt.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};cS.exports=Wt});var gS=p((B6,pS)=>{"use strict";pS.exports=I("events")});var mS=p((W6,yS)=>{"use strict";yS.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var Bf=p((G6,bS)=>{"use strict";var _S=mS();bS.exports=class{constructor(e){this.hwm=e||16,this.head=new _S(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new _S(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var jf=p((z6,wS)=>{"use strict";function Kk(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function Qk(t){return Buffer.isEncoding(t)}function Xk(t,e,r){return Buffer.alloc(t,e,r)}function Jk(t){return Buffer.allocUnsafe(t)}function eq(t){return Buffer.allocUnsafeSlow(t)}function tq(t,e){return Buffer.byteLength(t,e)}function rq(t,e){return Buffer.compare(t,e)}function iq(t,e){return Buffer.concat(t,e)}function nq(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function sq(t,e){return Y(t).equals(e)}function oq(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function aq(t,e,r){return Buffer.from(t,e,r)}function lq(t,e,r,i){return Y(t).includes(e,r,i)}function uq(t,e,r,i){return Y(t).indexOf(e,r,i)}function fq(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function hq(t){return Y(t).swap16()}function cq(t){return Y(t).swap32()}function dq(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function pq(t,e,r,i){return Y(t).toString(e,r,i)}function gq(t,e,r,i,n){return Y(t).write(e,r,i,n)}function yq(t,e){return Y(t).readDoubleBE(e)}function mq(t,e){return Y(t).readDoubleLE(e)}function _q(t,e){return Y(t).readFloatBE(e)}function bq(t,e){return Y(t).readFloatLE(e)}function wq(t,e){return Y(t).readInt32BE(e)}function Sq(t,e){return Y(t).readInt32LE(e)}function Eq(t,e){return Y(t).readUInt32BE(e)}function vq(t,e){return Y(t).readUInt32LE(e)}function xq(t,e,r){return Y(t).writeDoubleBE(e,r)}function Tq(t,e,r){return Y(t).writeDoubleLE(e,r)}function Aq(t,e,r){return Y(t).writeFloatBE(e,r)}function Rq(t,e,r){return Y(t).writeFloatLE(e,r)}function Oq(t,e,r){return Y(t).writeInt32BE(e,r)}function Dq(t,e,r){return Y(t).writeInt32LE(e,r)}function Iq(t,e,r){return Y(t).writeUInt32BE(e,r)}function Lq(t,e,r){return Y(t).writeUInt32LE(e,r)}wS.exports={isBuffer:Kk,isEncoding:Qk,alloc:Xk,allocUnsafe:Jk,allocUnsafeSlow:eq,byteLength:tq,compare:rq,concat:iq,copy:nq,equals:sq,fill:oq,from:aq,includes:lq,indexOf:uq,lastIndexOf:fq,swap16:hq,swap32:cq,swap64:dq,toBuffer:Y,toString:pq,write:gq,readDoubleBE:yq,readDoubleLE:mq,readFloatBE:_q,readFloatLE:bq,readInt32BE:wq,readInt32LE:Sq,readUInt32BE:Eq,readUInt32LE:vq,writeDoubleBE:xq,writeDoubleLE:Tq,writeFloatBE:Aq,writeFloatLE:Rq,writeInt32BE:Oq,writeInt32LE:Dq,writeUInt32BE:Iq,writeUInt32LE:Lq}});var ES=p((H6,SS)=>{"use strict";var Pq=jf();SS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return Pq.toString(e,this.encoding)}flush(){return""}}});var AS=p((Y6,TS)=>{"use strict";var vS=jf();TS.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&xS(e,0)===0)return this.bytesSeen=Nq(e),vS.toString(e,"utf8");let r="",i=0;if(this.bytesNeeded>0){for(;i<e.byteLength;){let o=e[i];if(o<this.lowerBoundary||o>this.upperBoundary){r+="\uFFFD",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|o&63,this.bytesSeen++,i++,this.bytesSeen===this.bytesNeeded){r+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return r}let n=xS(e,i),s=e.byteLength-n;s>i&&(r+=vS.toString(e,"utf8",i,s));for(let o=s;o<e.byteLength;o++){let a=e[o];if(this.bytesNeeded===0){a<=127?(this.bytesSeen=0,r+=String.fromCharCode(a)):a>=194&&a<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=a&31):a>=224&&a<=239?(a===224?this.lowerBoundary=160:a===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=a&15):a>=240&&a<=244?(a===240?this.lowerBoundary=144:a===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=a&7):(this.bytesSeen=1,r+="\uFFFD");continue}if(a<this.lowerBoundary||a>this.upperBoundary){r+="\uFFFD",o--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|a&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(r+=String.fromCodePoint(this.codePoint),this._reset())}return r}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function xS(t,e){let r=t.byteLength;if(r<=e)return 0;let i=Math.max(e,r-4),n=r-1;for(;n>i&&(t[n]&192)===128;)n--;if(n<e)return 0;let s=t[n],o;if(s<=127)return 0;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 0;let a=r-n;return a<o?a:0}function Nq(t){let e=t.byteLength;if(e===0)return 0;let r=t[e-1];if(r<=127)return 0;if((r&192)!==128)return 1;let i=Math.max(0,e-4),n=e-2;for(;n>=i&&(t[n]&192)===128;)n--;if(n<0)return 1;let s=t[n],o;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 1;if(e-n!==o)return 1;if(o>=3){let a=t[n+1];if(s===224&&a<160||s===237&&a>159||s===240&&a<144||s===244&&a>143)return 1}return 0}});var OS=p((K6,RS)=>{"use strict";var Mq=ES(),Cq=AS();RS.exports=class{constructor(e="utf8"){switch(this.encoding=kq(e),this.encoding){case"utf8":this.decoder=new Cq;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new Mq(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let r="";return e&&(r=this.push(e)),r+=this.decoder.flush(),r}};function kq(t){switch(t=t.toLowerCase(),t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}});var rh=p((Q6,QS)=>{"use strict";var{EventEmitter:qq}=gS(),$o=new Error("Stream was destroyed"),Wf=new Error("Premature close"),MS=Bf(),Fq=OS(),Uf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ht=1,Zf=2,vt=4,En=8,CS=oe^ht,Bq=oe^Zf,Rn=16,si=32,li=64,Gt=128,On=256,Kf=512,zt=1024,Gf=2048,Qf=4096,Xf=8192,Qe=16384,Ut=32768,Ho=65536,mr=131072,kS=On|Kf,jq=Rn|Ho,Wq=li|Rn,Uq=Qf|Gt,Jf=On|mr,Gq=oe^Rn,zq=oe^li,$q=oe^(li|Ho),DS=oe^Ho,Hq=oe^On,Vq=oe^(Gt|Xf),Yq=oe^zt,IS=oe^kS,qS=oe^Ut,Zq=oe^si,FS=oe^mr,Kq=oe^Jf,xt=1<<18,ai=2<<18,Dn=4<<18,_r=8<<18,In=16<<18,Ht=32<<18,zf=64<<18,oi=128<<18,eh=256<<18,$t=512<<18,Vo=1024<<18,Qq=oe^(xt|eh),BS=oe^Dn,Xq=oe^(xt|$t),Jq=oe^In,eF=oe^_r,jS=oe^oi,tF=oe^ai,WS=oe^Vo,vn=Rn|xt,US=oe^vn,th=Qe|Ht,ct=vt|En|Zf,qe=ct|ht,GS=ct|th,rF=BS&zq,Yo=oi|Ut,iF=Yo&US,zS=qe|iF,nF=qe|zt|Qe,LS=qe|Qe|Gt,sF=qe|zt|Gt,oF=qe|Qf|Gt|Xf,aF=qe|Rn|zt|Qe|Ho|mr,lF=ct|zt|Qe,uF=si|qe|Ut|li,fF=Ut|ht,hF=qe|$t|Ht,cF=_r|In,$S=_r|xt,dF=_r|In|qe|xt,PS=qe|xt|_r|Vo,pF=Dn|xt,gF=xt|eh,yF=qe|$t|$S|Ht,mF=In|ct|$t|Ht,_F=ai|qe|oi|Dn,bF=$t|Ht|ct,jo=Symbol.asyncIterator||Symbol("asyncIterator"),Wo=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new MS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||KS,this.map=n||i,this.afterWrite=EF.bind(this),this.afterUpdateNextTick=TF.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&bF)!==0?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=_r,!0):(this.stream._duplexState|=cF,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=eF),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&BS}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&PS)===$S;)i.push(n._writableState.shift());if((n._duplexState&qe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=ai;do{for(;(e._duplexState&PS)===_r;){let r=this.shift();e._duplexState|=gF,e._write(r,this.afterWrite)}(e._duplexState&pF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=tF}updateNonPrimary(){let e=this.stream;if((e._duplexState&yF)===$t){e._duplexState=e._duplexState|xt,e._final(SF.bind(this));return}if((e._duplexState&ct)===vt){(e._duplexState&Yo)===0&&(e._duplexState|=vn,e._destroy(HS.bind(this)));return}(e._duplexState&zS)===ht&&(e._duplexState=(e._duplexState|vn)&CS,e._open(VS.bind(this)))}continueUpdate(){return(this.stream._duplexState&oi)===0?!1:(this.stream._duplexState&=jS,!0)}updateCallback(){(this.stream._duplexState&_F)===Dn?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&oi)===0&&(this.stream._duplexState|=oi,(this.stream._duplexState&ai)===0&&Uf(this.afterUpdateNextTick))}},$f=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new MS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||KS,this.map=n||i,this.pipeTo=null,this.afterRead=vF.bind(this),this.afterUpdateNextTick=xF.bind(this)}get ending(){return(this.stream._duplexState&zt)!==0}get ended(){return(this.stream._duplexState&Qe)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=Kf,this.pipeTo=e,this.pipeline=new Vf(this.stream,e,r),r&&this.stream.on("error",NS),An(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",NS),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let i=this.pipeline.done.bind(this.pipeline,e),n=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",i),e.on("close",n),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",wF.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|zt)&$q,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=DS,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|Gt)&DS,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=Vq),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let i=0;i<r.length-1;i++){let n=r[i];this.buffered+=this.byteLength(n),this.queue.push(n)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&LS)===Gt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=IS),(e._duplexState&Gf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=mr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&LS)===Gt&&(e._duplexState&kS)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=IS),(e._duplexState&Gf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=si;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&aF)===mr;)e._duplexState|=jq,e._read(this.afterRead),this.drain();(e._duplexState&oF)===Uq&&(e._duplexState|=Xf,e.emit("readable")),(e._duplexState&Wq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=Zq}updateNonPrimary(){let e=this.stream;if((e._duplexState&sF)===zt&&(e._duplexState=(e._duplexState|Qe)&Yq,e.emit("end"),(e._duplexState&GS)===th&&(e._duplexState|=vt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ct)===vt){(e._duplexState&Yo)===0&&(e._duplexState|=vn,e._destroy(HS.bind(this)));return}(e._duplexState&zS)===ht&&(e._duplexState=(e._duplexState|vn)&CS,e._open(VS.bind(this)))}continueUpdate(){return(this.stream._duplexState&Ut)===0?!1:(this.stream._duplexState&=qS,!0)}updateCallback(){(this.stream._duplexState&uF)===li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&fF)===0&&(this.stream._duplexState|=Ut,(this.stream._duplexState&si)===0&&Uf(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Ut)===0&&(this.stream._duplexState|=Ut,(this.stream._duplexState&si)===0&&Uf(this.afterUpdateNextTick))}},Hf=class{constructor(e){this.data=null,this.afterTransform=RF.bind(e),this.afterFinal=null}},Vf=class{constructor(e,r,i){this.from=e,this.to=r,this.afterPipe=i,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Qe)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Qe)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function wF(){this.stream._duplexState|=Kf,this.updateCallback()}function SF(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ct)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&GS)===th&&(e._duplexState|=vt),e._duplexState&=Xq,(e._duplexState&ai)===0?this.update():this.updateNextTick()}function HS(t){let e=this.stream;!t&&this.error!==$o&&(t=this.error),t&&e.emit("error",t),e._duplexState|=En,e.emit("close");let r=e._readableState,i=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),i!==null){for(;i.drains!==null&&i.drains.length>0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(e,t)}}function EF(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=Qq,this.drains!==null&&AF(this.drains),(e._duplexState&dF)===In&&(e._duplexState&=Jq,(e._duplexState&zf)===zf&&e.emit("drain")),this.updateCallback()}function vF(t){t&&this.stream.destroy(t),this.stream._duplexState&=Gq,this.readAhead===!1&&(this.stream._duplexState&On)===0&&(this.stream._duplexState&=FS),this.updateCallback()}function xF(){(this.stream._duplexState&si)===0&&(this.stream._duplexState&=qS,this.update())}function TF(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState&=jS,this.update())}function AF(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function VS(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&vt)===0&&((e._duplexState&nF)===0&&(e._duplexState|=li),(e._duplexState&hF)===0&&(e._duplexState|=Dn),e.emit("open")),e._duplexState&=US,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function RF(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function OF(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Gf|Jf,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=Qf,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=zf,this._writableState.updateNextTick())}var xn=class extends qq{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",jF.bind(this))),this.on("newListener",OF)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&En)!==0}get destroying(){return(this._duplexState&ct)!==0}destroy(e){(this._duplexState&ct)===0&&(e||(e=$o),this._duplexState=(this._duplexState|vt)&rF,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Zf,this._predestroy(),this._duplexState&=Bq,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Uo=class t extends xn{constructor(e){super(e),this._duplexState|=ht|Ht|mr,this._readableState=new $f(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=FS),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new Fq(e),i=this._readableState.map||LF;return this._readableState.map=n,this;function n(s){let o=r.push(s);return o===""&&(s.byteLength!==0||r.remaining>0)?null:i(o)}}_read(e){e(null)}pipe(e,r){return this._readableState.updateNextTick(),this._readableState.pipe(e,r),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=Jf,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?Kq:Hq,this}static _fromAsyncIterator(e,r){let i,n=new t({...r,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){i=e.return()},destroy(o){if(!i)return o(null);i.then(o.bind(null,null)).catch(o)}});return n;function s(o){o.done?n.push(null):n.push(o.value)}}static from(e,r){if(qF(e))return e;if(e[jo])return this._fromAsyncIterator(e[jo](),r);Array.isArray(e)||(e=e===void 0?[]:[e]);let i=0;return new t({...r,read(n){this.push(i===e.length?null:e[i++]),n(null)}})}static isBackpressured(e){return(e._duplexState&lF)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&On)===0}[jo](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[jo](){return this},next(){return new Promise(function(u,f){i=u,n=f;let h=e.read();h!==null?a(h):(e._duplexState&En)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){i!==null&&a(e.read())}function o(){i!==null&&a(null)}function a(u){n!==null&&(r?n(r):u===null&&(e._duplexState&Qe)===0?n($o):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,h)=>{if(e._duplexState&En)return f({value:void 0,done:!0});e.once("close",function(){u?h(u):f({value:void 0,done:!0})})})}}},Go=class extends xn{constructor(e){super(e),this._duplexState|=ht|Qe,this._writableState=new Wo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=Vo}uncork(){this._duplexState&=WS,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&mF)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(WF(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&eh?1:0);return n===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:n,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Tn=class extends Uo{constructor(e){super(e),this._duplexState=ht|this._duplexState&mr,this._writableState=new Wo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Vo}uncork(){this._duplexState&=WS,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},zo=class extends Tn{constructor(e){super(e),this._transformState=new Hf(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(DF.bind(this))}},Yf=class extends zo{};function DF(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function IF(...t){return new Promise((e,r)=>YS(...t,i=>{if(i)return r(i);e()}))}function YS(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],i=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let n=r[0],s=null,o=null;for(let u=1;u<r.length;u++)s=r[u],An(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=An(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",h=>{o===null&&(o=h)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:Wf)))}return s;function a(u,f,h,c){u.on("error",c),u.on("close",d);function d(){if(f&&u._readableState&&!u._readableState.ended||h&&u._writableState&&!u._writableState.ended)return c(Wf)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function LF(t){return t}function ZS(t){return!!t._readableState||!!t._writableState}function An(t){return typeof t._duplexState=="number"&&ZS(t)}function PF(t){return!!t._readableState&&t._readableState.ending}function NF(t){return!!t._readableState&&t._readableState.ended}function MF(t){return!!t._writableState&&t._writableState.ending}function CF(t){return!!t._writableState&&t._writableState.ended}function kF(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===$o?null:r}function qF(t){return An(t)&&t.readable}function FF(t){return(t._duplexState&ht)!==ht||(t._duplexState&vt)===vt||(t._duplexState&Yo)!==0}function BF(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function KS(t){return BF(t)?t.byteLength:1024}function NS(){}function jF(){this.destroy(new Error("Stream aborted."))}function WF(t){return t._writev!==Go.prototype._writev&&t._writev!==Tn.prototype._writev}QS.exports={pipeline:YS,pipelinePromise:IF,isStream:ZS,isStreamx:An,isEnding:PF,isEnded:NF,isFinishing:MF,isFinished:CF,isDisturbed:FF,getStreamError:kF,Stream:xn,Writable:Go,Readable:Uo,Duplex:Tn,Transform:zo,PassThrough:Yf}});var Zo=p((X6,XS)=>{"use strict";function UF(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function GF(t){return Buffer.isEncoding(t)}function zF(t,e,r){return Buffer.alloc(t,e,r)}function $F(t){return Buffer.allocUnsafe(t)}function HF(t){return Buffer.allocUnsafeSlow(t)}function VF(t,e){return Buffer.byteLength(t,e)}function YF(t,e){return Buffer.compare(t,e)}function ZF(t,e){return Buffer.concat(t,e)}function KF(t,e,r,i,n){return Z(t).copy(e,r,i,n)}function QF(t,e){return Z(t).equals(e)}function XF(t,e,r,i,n){return Z(t).fill(e,r,i,n)}function JF(t,e,r){return Buffer.from(t,e,r)}function e3(t,e,r,i){return Z(t).includes(e,r,i)}function t3(t,e,r,i){return Z(t).indexOf(e,r,i)}function r3(t,e,r,i){return Z(t).lastIndexOf(e,r,i)}function i3(t){return Z(t).swap16()}function n3(t){return Z(t).swap32()}function s3(t){return Z(t).swap64()}function Z(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function o3(t,e,r,i){return Z(t).toString(e,r,i)}function a3(t,e,r,i,n){return Z(t).write(e,r,i,n)}function l3(t,e){return Z(t).readDoubleBE(e)}function u3(t,e){return Z(t).readDoubleLE(e)}function f3(t,e){return Z(t).readFloatBE(e)}function h3(t,e){return Z(t).readFloatLE(e)}function c3(t,e){return Z(t).readInt32BE(e)}function d3(t,e){return Z(t).readInt32LE(e)}function p3(t,e){return Z(t).readUInt32BE(e)}function g3(t,e){return Z(t).readUInt32LE(e)}function y3(t,e,r){return Z(t).writeDoubleBE(e,r)}function m3(t,e,r){return Z(t).writeDoubleLE(e,r)}function _3(t,e,r){return Z(t).writeFloatBE(e,r)}function b3(t,e,r){return Z(t).writeFloatLE(e,r)}function w3(t,e,r){return Z(t).writeInt32BE(e,r)}function S3(t,e,r){return Z(t).writeInt32LE(e,r)}function E3(t,e,r){return Z(t).writeUInt32BE(e,r)}function v3(t,e,r){return Z(t).writeUInt32LE(e,r)}XS.exports={isBuffer:UF,isEncoding:GF,alloc:zF,allocUnsafe:$F,allocUnsafeSlow:HF,byteLength:VF,compare:YF,concat:ZF,copy:KF,equals:QF,fill:XF,from:JF,includes:e3,indexOf:t3,lastIndexOf:r3,swap16:i3,swap32:n3,swap64:s3,toBuffer:Z,toString:o3,write:a3,readDoubleBE:l3,readDoubleLE:u3,readFloatBE:f3,readFloatLE:h3,readInt32BE:c3,readInt32LE:d3,readUInt32BE:p3,readUInt32LE:g3,writeDoubleBE:y3,writeDoubleLE:m3,writeFloatBE:_3,writeFloatLE:b3,writeInt32BE:w3,writeInt32LE:S3,writeUInt32BE:E3,writeUInt32LE:v3}});var sh=p(fi=>{"use strict";var U=Zo(),x3="0000000000000000000",T3="7777777777777777777",Ko=48,JS=U.from([117,115,116,97,114,0]),A3=U.from([Ko,Ko]),R3=U.from([117,115,116,97,114,32]),O3=U.from([32,0]),D3=4095,Ln=257,nh=263;fi.decodeLongPath=function(e,r){return ui(e,0,e.length,r)};fi.encodePax=function(e){let r="";e.name&&(r+=ih(" path="+e.name+`
|
|
6
|
+
`+e);let[,i]=r;return i.replace(/\s/g,"").split(dv).map(n=>n.replace(pv,"").trim())}function tc(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=_i(n),a=!o&&n.length===1||o&&n.length===0;if(Array.isArray(n))s=[...n],n=s.pop(),r[i]=s.concat(s.length>0?l:n);else if(a)r[i]=n;else{if(s=yv(n),n.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),r[i]=s.concat(l)}function l(u,f){var h=s.map(c=>u[c]);h.push(f),q(n)(...h)}}),Ia(r,e)}function $h(t,e){t.length=1,t.head=t.tail=e}function La(t,e,r){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var i=q(t),n=0,s=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(m,S){o[m].push(S)}function l(m,S){let E=(...A)=>{u(m,E),S(...A)};o[m].push(E)}function u(m,S){if(!m)return Object.keys(o).forEach(E=>o[E]=[]);if(!S)return o[m]=[];o[m]=o[m].filter(E=>E!==S)}function f(m,...S){o[m].forEach(E=>E(...S))}var h=!1;function c(m,S,E,A){if(A!=null&&typeof A!="function")throw new Error("task callback must be a function");y.started=!0;var L,v;function O(T,...R){if(T)return E?v(T):L();if(R.length<=1)return L(R[0]);L(R)}var w=y._createTaskItem(m,E?O:A||O);if(S?y._tasks.unshift(w):y._tasks.push(w),h||(h=!0,Rt(()=>{h=!1,y.process()})),E||!A)return new Promise((T,R)=>{L=T,v=R})}function d(m){return function(S,...E){n-=1;for(var A=0,L=m.length;A<L;A++){var v=m[A],O=s.indexOf(v);O===0?s.shift():O>0&&s.splice(O,1),v.callback(S,...E),S!=null&&f("error",S,v.data)}n<=y.concurrency-y.buffer&&f("unsaturated"),y.idle()&&f("drain"),y.process()}}function b(m){return m.length===0&&y.idle()?(Rt(()=>f("drain")),!0):!1}let g=m=>S=>{if(!S)return new Promise((E,A)=>{l(m,(L,v)=>{if(L)return A(L);E(v)})});u(m),a(m,S)};var x=!1,y={_tasks:new ua,_createTaskItem(m,S){return{data:m,callback:S}},*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:e,payload:r,buffer:e/4,started:!1,paused:!1,push(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!1,!1,S)):c(m,!1,!1,S)},pushAsync(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!1,!0,S)):c(m,!1,!0,S)},kill(){u(),y._tasks.empty()},unshift(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!0,!1,S)):c(m,!0,!1,S)},unshiftAsync(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!0,!0,S)):c(m,!0,!0,S)},remove(m){y._tasks.remove(m)},process(){if(!x){for(x=!0;!y.paused&&n<y.concurrency&&y._tasks.length;){var m=[],S=[],E=y._tasks.length;y.payload&&(E=Math.min(E,y.payload));for(var A=0;A<E;A++){var L=y._tasks.shift();m.push(L),s.push(L),S.push(L.data)}n+=1,y._tasks.length===0&&f("empty"),n===y.concurrency&&f("saturated");var v=Dt(d(m));i(S,v)}x=!1}},length(){return y._tasks.length},running(){return n},workersList(){return s},idle(){return y._tasks.length+n===0},pause(){y.paused=!0},resume(){y.paused!==!1&&(y.paused=!1,Rt(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:g("saturated")},unsaturated:{writable:!1,value:g("unsaturated")},empty:{writable:!1,value:g("empty")},drain:{writable:!1,value:g("drain")},error:{writable:!1,value:g("error")}}),y}function rc(t,e){return La(t,1,e)}function ic(t,e,r){return La(t,e,r)}function mv(t,e,r,i){i=Ot(i);var n=q(r);return Xe(t,(s,o,a)=>{n(e,s,(l,u)=>{e=u,a(l)})},s=>i(s,e))}function Na(...t){var e=t.map(q);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=Er(),Sr(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[vr]}}function nc(...t){return Na(...t.reverse())}function _v(t,e,r,i){return Oa($e(e),t,r,i)}function bv(t,e,r,i){var n=q(r);return bi(t,e,(s,o)=>{n(s,(a,...l)=>a?o(a):o(a,l))},(s,o)=>{for(var a=[],l=0;l<o.length;l++)o[l]&&(a=a.concat(...o[l]));return i(s,a)})}function wv(t,e,r){return yi(t,1/0,e,r)}function Sv(t,e,r){return yi(t,1,e,r)}function sc(...t){return function(...e){var r=e.pop();return r(null,...t)}}function dt(t,e){return(r,i,n,s)=>{var o=!1,a;let l=q(n);r(i,(u,f,h)=>{l(u,(c,d)=>{if(c||c===!1)return h(c);if(t(d)&&!a)return o=!0,a=e(!0,u),h(null,zn);h()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function Ev(t,e,r){return dt(i=>i,(i,n)=>n)(Fe,t,e,r)}function vv(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function xv(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function oc(t){return(e,...r)=>q(e)(...r,(i,...n)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[t]&&n.forEach(s=>console[t](s)))})}function Tv(t,e,r){r=Dt(r);var i=q(t),n=q(e),s;function o(l,...u){if(l)return r(l);l!==!1&&(s=u,n(...u,a))}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return a(null,!0)}function lc(t,e,r){let i=q(e);return qn(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function uc(t){return(e,r,i)=>t(e,i)}function Av(t,e,r){return Fe(t,uc(q(e)),r)}function Rv(t,e,r,i){return $e(e)(t,uc(q(r)),i)}function Ov(t,e,r){return Fn(t,1,e,r)}function Pa(t){return _i(t)?t:function(...e){var r=e.pop(),i=!0;e.push((...n)=>{i?Rt(()=>r(...n)):r(...n)}),t.apply(this,e),i=!1}}function Dv(t,e,r){return dt(i=>!i,i=>!i)(Fe,t,e,r)}function Iv(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function Lv(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function Nv(t,e,r,i){var n=new Array(e.length);t(e,(s,o,a)=>{r(s,(l,u)=>{n[o]=!!u,a(l)})},s=>{if(s)return i(s);for(var o=[],a=0;a<e.length;a++)n[a]&&o.push(e[a]);i(null,o)})}function Pv(t,e,r,i){var n=[];t(e,(s,o,a)=>{r(s,(l,u)=>{if(l)return a(l);u&&n.push({index:o,value:s}),a(l)})},s=>{if(s)return i(s);i(null,n.sort((o,a)=>o.index-a.index).map(o=>o.value))})}function Hn(t,e,r,i){var n=Gn(e)?Nv:Pv;return n(t,e,q(r),i)}function Mv(t,e,r){return Hn(Fe,t,e,r)}function Cv(t,e,r,i){return Hn($e(e),t,r,i)}function kv(t,e,r){return Hn(Xe,t,e,r)}function qv(t,e){var r=Dt(e),i=q(Pa(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function Fv(t,e,r,i){var n=q(r);return bi(t,e,(s,o)=>{n(s,(a,l)=>a?o(a):o(a,{key:l,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<o.length;u++)if(o[u]){var{key:f}=o[u],{val:h}=o[u];l.call(a,f)?a[f].push(h):a[f]=[h]}return i(s,a)})}function hc(t,e,r){return Vn(t,1/0,e,r)}function cc(t,e,r){return Vn(t,1,e,r)}function Bv(t,e,r,i){i=Ot(i);var n={},s=q(r);return $e(e)(t,(o,a,l)=>{s(o,a,(u,f)=>{if(u)return l(u);n[a]=f,l(u)})},o=>i(o,n))}function pc(t,e,r){return Yn(t,1/0,e,r)}function gc(t,e,r){return Yn(t,1,e,r)}function yc(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=q(t),s=mi((o,a)=>{var l=e(...o);l in r?Rt(()=>a(null,...r[l])):l in i?i[l].push(a):(i[l]=[a],n(...o,(u,...f)=>{u||(r[l]=f);var h=i[l];delete i[l];for(var c=0,d=h.length;c<d;c++)h[c](u,...f)}))});return s.memo=r,s.unmemoized=t,s}function _c(t,e){return Ma(Fe,t,e)}function bc(t,e,r){return Ma($e(e),t,r)}function Ca(t,e){var r=q(t);return La((i,n)=>{r(i[0],n)},e,1)}function jv(t){return(t<<1)+1}function Hh(t){return(t+1>>1)-1}function la(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function wc(t,e){var r=Ca(t,e),{push:i,pushAsync:n}=r;r._tasks=new Ea,r._createTaskItem=({data:o,priority:a},l)=>({data:o,priority:a,callback:l});function s(o,a){return Array.isArray(o)?o.map(l=>({data:l,priority:a})):{data:o,priority:a}}return r.push=function(o,a=0,l){return i(s(o,a),l)},r.pushAsync=function(o,a=0,l){return n(s(o,a),l)},delete r.unshift,delete r.unshiftAsync,r}function Wv(t,e){if(e=Ot(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,i=t.length;r<i;r++)q(t[r])(e)}function va(t,e,r,i){var n=[...t].reverse();return Sr(n,e,r,i)}function jn(t){var e=q(t);return mi(function(i,n){return i.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var l=o;o.length<=1&&([l]=o),a.value=l}n(null,a)}),e.apply(this,i)})}function Ec(t){var e;return Array.isArray(t)?e=t.map(jn):(e={},Object.keys(t).forEach(r=>{e[r]=jn.call(this,t[r])})),e}function ka(t,e,r,i){let n=q(r);return Hn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function Uv(t,e,r){return ka(Fe,t,e,r)}function Gv(t,e,r,i){return ka($e(e),t,r,i)}function zv(t,e,r){return ka(Xe,t,e,r)}function Ac(t){return function(){return t}}function Wn(t,e,r){var i={times:xa,intervalFunc:Ac(Rc)};if(arguments.length<3&&typeof t=="function"?(r=e||Er(),e=t):($v(i,t),r=r||Er()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var n=q(e),s=1;function o(){n((a,...l)=>{a!==!1&&(a&&s++<i.times&&(typeof i.errorFilter!="function"||i.errorFilter(a))?setTimeout(o,i.intervalFunc(s-1)):r(a,...l))})}return o(),r[vr]}function $v(t,e){if(typeof e=="object")t.times=+e.times||xa,t.intervalFunc=typeof e.interval=="function"?e.interval:Ac(+e.interval||Rc),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||xa;else throw new Error("Invalid arguments for async.retry")}function Oc(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;_i(e)&&(r+=1);var i=q(e);return mi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=Er());function o(a){i(...n,a)}return t?Wn(t,o,s):Wn(o,s),s[vr]})}function Dc(t,e){return Ma(Xe,t,e)}function Hv(t,e,r){return dt(Boolean,i=>i)(Fe,t,e,r)}function Vv(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Yv(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Zv(t,e,r){var i=q(e);return $n(t,(s,o)=>{i(s,(a,l)=>{if(a)return o(a);o(a,{value:s,criteria:l})})},(s,o)=>{if(s)return r(s);r(null,o.sort(n).map(a=>a.value))});function n(s,o){var a=s.criteria,l=o.criteria;return a<l?-1:a>l?1:0}}function Lc(t,e,r){var i=q(t);return mi((n,s)=>{var o=!1,a;function l(){var u=t.name||"anonymous",f=new Error('Callback function "'+u+'" timed out.');f.code="ETIMEDOUT",r&&(f.info=r),o=!0,s(f)}n.push((...u)=>{o||(s(...u),clearTimeout(a))}),a=setTimeout(l,e),i(...n)})}function Kv(t){for(var e=Array(t);t--;)e[t]=t;return e}function Zn(t,e,r,i){var n=q(r);return bi(Kv(t),e,n,i)}function Nc(t,e,r){return Zn(t,1/0,e,r)}function Pc(t,e,r){return Zn(t,1,e,r)}function Mc(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||Er());var n=q(r);return Fe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[vr]}function Qv(t,e){var r=null,i;return Bn(t,(n,s)=>{q(n)((o,...a)=>{if(o===!1)return s(o);a.length<2?[i]=a:i=a,r=o,s(o?null:{})})},()=>e(r,i))}function kc(t){return(...e)=>(t.unmemoized||t)(...e)}function Xv(t,e,r){r=Dt(r);var i=q(e),n=q(t),s=[];function o(l,...u){if(l)return r(l);s=u,l!==!1&&n(a)}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return n(a)}function qc(t,e,r){let i=q(t);return Un(n=>i((s,o)=>n(s,!o)),e,r)}function Jv(t,e){if(e=Ot(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(s){var o=q(t[r++]);o(...s,Dt(n))}function n(s,...o){if(s!==!1){if(s||r===t.length)return e(s,...o);i(o)}}i([])}var KE,Yh,Zh,pi,Rt,zn,$e,gi,Fe,$n,Jh,Xe,Da,ec,vr,hv,cv,dv,pv,ua,Sr,bi,yi,fa,ha,ca,da,pa,ac,qn,ga,Fn,Bn,ya,ma,_a,ba,wa,Sa,fc,Vn,dc,Yn,Cn,mc,Ma,Ea,Sc,vc,xc,Tc,xa,Rc,Ta,Aa,Ra,Ic,Cc,Un,Fc,e1,jc=TE(()=>{"use strict";KE=typeof queueMicrotask=="function"&&queueMicrotask,Yh=typeof setImmediate=="function"&&setImmediate,Zh=typeof process=="object"&&typeof process.nextTick=="function";KE?pi=queueMicrotask:Yh?pi=setImmediate:Zh?pi=process.nextTick:pi=Kh;Rt=Qh(pi);zn={};$e=t=>(e,r,i)=>{if(i=Ot(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if(QE(e))return zh(e,t,r,i);if(XE(e))return zh(e[Symbol.asyncIterator](),t,r,i);var n=iv(e),s=!1,o=!1,a=0,l=!1;function u(h,c){if(!o)if(a-=1,h)s=!0,i(h);else if(h===!1)s=!0,o=!0;else{if(c===zn||s&&a<=0)return s=!0,i(null);l||f()}}function f(){for(l=!0;a<t&&!s;){var h=n();if(h===null){s=!0,a<=0&&i(null);return}a+=1,r(h.value,h.key,Dt(u))}l=!1}f()};gi=k(nv,4);Fe=k(av,3);$n=k(lv,3),Jh=Xh($n);Xe=k(uv,3);Da=k(fv,3),ec=Xh(Da),vr=Symbol("promiseCallback");hv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,cv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,dv=/,/,pv=/(=.+)?(\s*)$/;ua=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,r){r.prev=e,r.next=e.next,e.next?e.next.prev=r:this.tail=r,e.next=r,this.length+=1}insertBefore(e,r){r.prev=e.prev,r.next=e,e.prev?e.prev.next=r:this.head=r,e.prev=r,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):$h(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):$h(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var r=this.head;r;){var{next:i}=r;e(r)&&this.removeLink(r),r=i}return this}};Sr=k(mv,4);bi=k(_v,4);yi=k(bv,4);fa=k(wv,3);ha=k(Sv,3);ca=k(Ev,3);da=k(vv,4);pa=k(xv,3);ac=oc("dir");qn=k(Tv,3);ga=k(Av,3);Fn=k(Rv,4);Bn=k(Ov,3);ya=k(Dv,3);ma=k(Iv,4);_a=k(Lv,3);ba=k(Mv,3);wa=k(Cv,4);Sa=k(kv,3);fc=k(qv,2);Vn=k(Fv,4);dc=oc("log");Yn=k(Bv,4);Zh?Cn=process.nextTick:Yh?Cn=setImmediate:Cn=Kh;mc=Qh(Cn),Ma=k((t,e,r)=>{var i=Gn(e)?[]:{};t(e,(n,s,o)=>{q(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>r(n,i))},3);Ea=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let r;for(;e>0&&la(this.heap[e],this.heap[r=Hh(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=jv(e))<this.heap.length&&(r+1<this.heap.length&&la(this.heap[r+1],this.heap[r])&&(r=r+1),!la(this.heap[e],this.heap[r]));){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let r=0;for(let i=0;i<this.heap.length;i++)e(this.heap[i])||(this.heap[r]=this.heap[i],r++);this.heap.splice(r);for(let i=Hh(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Sc=k(Wv,2);vc=k(Uv,3);xc=k(Gv,4);Tc=k(zv,3);xa=5,Rc=0;Ta=k(Hv,3);Aa=k(Vv,4);Ra=k(Yv,3);Ic=k(Zv,3);Cc=k(Qv);Un=k(Xv,3);Fc=k(Jv),e1={apply:Vh,applyEach:Jh,applyEachSeries:ec,asyncify:kn,auto:Ia,autoInject:tc,cargo:rc,cargoQueue:ic,compose:nc,concat:fa,concatLimit:yi,concatSeries:ha,constant:sc,detect:ca,detectLimit:da,detectSeries:pa,dir:ac,doUntil:lc,doWhilst:qn,each:ga,eachLimit:Fn,eachOf:Fe,eachOfLimit:gi,eachOfSeries:Xe,eachSeries:Bn,ensureAsync:Pa,every:ya,everyLimit:ma,everySeries:_a,filter:ba,filterLimit:wa,filterSeries:Sa,forever:fc,groupBy:hc,groupByLimit:Vn,groupBySeries:cc,log:dc,map:$n,mapLimit:bi,mapSeries:Da,mapValues:pc,mapValuesLimit:Yn,mapValuesSeries:gc,memoize:yc,nextTick:mc,parallel:_c,parallelLimit:bc,priorityQueue:wc,queue:Ca,race:Sc,reduce:Sr,reduceRight:va,reflect:jn,reflectAll:Ec,reject:vc,rejectLimit:xc,rejectSeries:Tc,retry:Wn,retryable:Oc,seq:Na,series:Dc,setImmediate:Rt,some:Ta,someLimit:Aa,someSeries:Ra,sortBy:Ic,timeout:Lc,times:Nc,timesLimit:Zn,timesSeries:Pc,transform:Mc,tryEach:Cc,unmemoize:kc,until:qc,waterfall:Fc,whilst:Un,all:ya,allLimit:ma,allSeries:_a,any:Ta,anyLimit:Aa,anySeries:Ra,find:ca,findLimit:da,findSeries:pa,flatMap:fa,flatMapLimit:yi,flatMapSeries:ha,forEach:ga,forEachSeries:Bn,forEachLimit:Fn,forEachOf:Fe,forEachOfSeries:Xe,forEachOfLimit:gi,inject:Sr,foldl:Sr,foldr:va,select:ba,selectLimit:wa,selectSeries:Sa,wrapSync:kn,during:Un,doDuring:qn}});var Uc=p((hB,Wc)=>{"use strict";var It=I("constants"),t1=process.cwd,Kn=null,r1=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Kn||(Kn=t1.call(process)),Kn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(qa=process.chdir,process.chdir=function(t){Kn=null,qa.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,qa));var qa;Wc.exports=i1;function i1(t){It.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,h,c){c&&process.nextTick(c)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,c,d){d&&process.nextTick(d)},t.lchownSync=function(){}),r1==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function h(c,d,b){var g=Date.now(),x=0;f(c,d,function y(m){if(m&&(m.code==="EACCES"||m.code==="EPERM"||m.code==="EBUSY")&&Date.now()-g<6e4){setTimeout(function(){t.stat(d,function(S,E){S&&S.code==="ENOENT"?f(c,d,y):b(m)})},x),x<100&&(x+=10);return}b&&b(m)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function h(c,d,b,g,x,y){var m;if(y&&typeof y=="function"){var S=0;m=function(E,A,L){if(E&&E.code==="EAGAIN"&&S<10)return S++,f.call(t,c,d,b,g,x,m);y.apply(this,arguments)}}return f.call(t,c,d,b,g,x,m)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(h,c,d,b,g){for(var x=0;;)try{return f.call(t,h,c,d,b,g)}catch(y){if(y.code==="EAGAIN"&&x<10){x++;continue}throw y}}})(t.readSync);function e(f){f.lchmod=function(h,c,d){f.open(h,It.O_WRONLY|It.O_SYMLINK,c,function(b,g){if(b){d&&d(b);return}f.fchmod(g,c,function(x){f.close(g,function(y){d&&d(x||y)})})})},f.lchmodSync=function(h,c){var d=f.openSync(h,It.O_WRONLY|It.O_SYMLINK,c),b=!0,g;try{g=f.fchmodSync(d,c),b=!1}finally{if(b)try{f.closeSync(d)}catch{}else f.closeSync(d)}return g}}function r(f){It.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,c,d,b){f.open(h,It.O_SYMLINK,function(g,x){if(g){b&&b(g);return}f.futimes(x,c,d,function(y){f.close(x,function(m){b&&b(y||m)})})})},f.lutimesSync=function(h,c,d){var b=f.openSync(h,It.O_SYMLINK),g,x=!0;try{g=f.futimesSync(b,c,d),x=!1}finally{if(x)try{f.closeSync(b)}catch{}else f.closeSync(b)}return g}):f.futimes&&(f.lutimes=function(h,c,d,b){b&&process.nextTick(b)},f.lutimesSync=function(){})}function i(f){return f&&function(h,c,d){return f.call(t,h,c,function(b){u(b)&&(b=null),d&&d.apply(this,arguments)})}}function n(f){return f&&function(h,c){try{return f.call(t,h,c)}catch(d){if(!u(d))throw d}}}function s(f){return f&&function(h,c,d,b){return f.call(t,h,c,d,function(g){u(g)&&(g=null),b&&b.apply(this,arguments)})}}function o(f){return f&&function(h,c,d){try{return f.call(t,h,c,d)}catch(b){if(!u(b))throw b}}}function a(f){return f&&function(h,c,d){typeof c=="function"&&(d=c,c=null);function b(g,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),d&&d.apply(this,arguments)}return c?f.call(t,h,c,b):f.call(t,h,b)}}function l(f){return f&&function(h,c){var d=c?f.call(t,h,c):f.call(t,h);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var $c=p((cB,zc)=>{"use strict";var Gc=I("stream").Stream;zc.exports=n1;function n1(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);Gc.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),a=0,l=o.length;a<l;a++){var u=o[a];this[u]=n[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);Gc.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=n[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Vc=p((dB,Hc)=>{"use strict";Hc.exports=o1;var s1=Object.getPrototypeOf||function(t){return t.__proto__};function o1(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:s1(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Wa=p((pB,ja)=>{"use strict";var ne=I("fs"),a1=Uc(),l1=$c(),u1=Vc(),Qn=I("util"),_e,Jn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(_e=Symbol.for("graceful-fs.queue"),Jn=Symbol.for("graceful-fs.previous")):(_e="___graceful-fs.queue",Jn="___graceful-fs.previous");function f1(){}function Kc(t,e){Object.defineProperty(t,_e,{get:function(){return e}})}var Qt=f1;Qn.debuglog?Qt=Qn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qt=function(){var t=Qn.format.apply(Qn,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
7
|
+
GFS4: `),console.error(t)});ne[_e]||(Yc=global[_e]||[],Kc(ne,Yc),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||Zc(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Jn,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),Zc()}return Object.defineProperty(e,Jn,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qt(ne[_e]),I("assert").equal(ne[_e].length,0)}));var Yc;global[_e]||Kc(global,ne[_e]);ja.exports=Fa(u1(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&(ja.exports=Fa(ne),ne.__patched=!0);function Fa(t){a1(t),t.gracefulify=Fa,t.createReadStream=A,t.createWriteStream=L;var e=t.readFile;t.readFile=r;function r(w,T,R){return typeof T=="function"&&(R=T,T=null),P(w,T,R);function P(G,ue,K,te){return e(G,ue,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xr([P,[G,ue,K],V,te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(w,T,R,P){return typeof R=="function"&&(P=R,R=null),G(w,T,R,P);function G(ue,K,te,V,me){return i(ue,K,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(w,T,R,P){return typeof R=="function"&&(P=R,R=null),G(w,T,R,P);function G(ue,K,te,V,me){return s(ue,K,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(w,T,R,P){return typeof R=="function"&&(P=R,R=0),G(w,T,R,P);function G(ue,K,te,V,me){return a(ue,K,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var u=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(w,T,R){typeof T=="function"&&(R=T,T=null);var P=f.test(process.version)?function(K,te,V,me){return u(K,G(K,te,V,me))}:function(K,te,V,me){return u(K,te,G(K,te,V,me))};return P(w,T,R);function G(ue,K,te,V){return function(me,re){me&&(me.code==="EMFILE"||me.code==="ENFILE")?xr([P,[ue,K,te],me,V||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof te=="function"&&te.call(this,me,re))}}}if(process.version.substr(0,4)==="v0.8"){var c=l1(t);y=c.ReadStream,S=c.WriteStream}var d=t.ReadStream;d&&(y.prototype=Object.create(d.prototype),y.prototype.open=m);var b=t.WriteStream;b&&(S.prototype=Object.create(b.prototype),S.prototype.open=E),Object.defineProperty(t,"ReadStream",{get:function(){return y},set:function(w){y=w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return S},set:function(w){S=w},enumerable:!0,configurable:!0});var g=y;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(w){g=w},enumerable:!0,configurable:!0});var x=S;Object.defineProperty(t,"FileWriteStream",{get:function(){return x},set:function(w){x=w},enumerable:!0,configurable:!0});function y(w,T){return this instanceof y?(d.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function m(){var w=this;O(w.path,w.flags,w.mode,function(T,R){T?(w.autoClose&&w.destroy(),w.emit("error",T)):(w.fd=R,w.emit("open",R),w.read())})}function S(w,T){return this instanceof S?(b.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function E(){var w=this;O(w.path,w.flags,w.mode,function(T,R){T?(w.destroy(),w.emit("error",T)):(w.fd=R,w.emit("open",R))})}function A(w,T){return new t.ReadStream(w,T)}function L(w,T){return new t.WriteStream(w,T)}var v=t.open;t.open=O;function O(w,T,R,P){return typeof R=="function"&&(P=R,R=null),G(w,T,R,P);function G(ue,K,te,V,me){return v(ue,K,te,function(re,nB){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function xr(t){Qt("ENQUEUE",t[0].name,t[1]),ne[_e].push(t),Ba()}var Xn;function Zc(){for(var t=Date.now(),e=0;e<ne[_e].length;++e)ne[_e][e].length>2&&(ne[_e][e][3]=t,ne[_e][e][4]=t);Ba()}function Ba(){if(clearTimeout(Xn),Xn=void 0,ne[_e].length!==0){var t=ne[_e].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)Qt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Qt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,l=Math.max(s-n,1),u=Math.min(l*1.2,100);a>=u?(Qt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[_e].push(t)}Xn===void 0&&(Xn=setTimeout(Ba,0))}}});var es=p((gB,Qc)=>{"use strict";var Je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Je.writable=t=>Je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Je.readable=t=>Je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Je.duplex=t=>Je.writable(t)&&Je.readable(t);Je.transform=t=>Je.duplex(t)&&typeof t._transform=="function";Qc.exports=Je});var wi=p((yB,Ua)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ua.exports={nextTick:h1}:Ua.exports=process;function h1(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,r)});case 4:return process.nextTick(function(){t.call(null,e,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var Jc=p((mB,Xc)=>{"use strict";var c1={}.toString;Xc.exports=Array.isArray||function(t){return c1.call(t)=="[object Array]"}});var Ga=p((_B,ed)=>{"use strict";ed.exports=I("stream")});var Si=p((za,rd)=>{"use strict";var ts=I("buffer"),pt=ts.Buffer;function td(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?rd.exports=ts:(td(ts,za),za.Buffer=Tr);function Tr(t,e,r){return pt(t,e,r)}td(pt,Tr);Tr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Tr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=pt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Tr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Tr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ts.SlowBuffer(t)}});var Ar=p(ve=>{"use strict";function d1(t){return Array.isArray?Array.isArray(t):rs(t)==="[object Array]"}ve.isArray=d1;function p1(t){return typeof t=="boolean"}ve.isBoolean=p1;function g1(t){return t===null}ve.isNull=g1;function y1(t){return t==null}ve.isNullOrUndefined=y1;function m1(t){return typeof t=="number"}ve.isNumber=m1;function _1(t){return typeof t=="string"}ve.isString=_1;function b1(t){return typeof t=="symbol"}ve.isSymbol=b1;function w1(t){return t===void 0}ve.isUndefined=w1;function S1(t){return rs(t)==="[object RegExp]"}ve.isRegExp=S1;function E1(t){return typeof t=="object"&&t!==null}ve.isObject=E1;function v1(t){return rs(t)==="[object Date]"}ve.isDate=v1;function x1(t){return rs(t)==="[object Error]"||t instanceof Error}ve.isError=x1;function T1(t){return typeof t=="function"}ve.isFunction=T1;function A1(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}ve.isPrimitive=A1;ve.isBuffer=I("buffer").Buffer.isBuffer;function rs(t){return Object.prototype.toString.call(t)}});var id=p((wB,$a)=>{"use strict";typeof Object.create=="function"?$a.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:$a.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Rr=p((SB,Va)=>{"use strict";try{if(Ha=I("util"),typeof Ha.inherits!="function")throw"";Va.exports=Ha.inherits}catch{Va.exports=id()}var Ha});var sd=p((EB,Ya)=>{"use strict";function R1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var nd=Si().Buffer,Ei=I("util");function O1(t,e,r){t.copy(e,r)}Ya.exports=(function(){function t(){R1(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return nd.alloc(0);for(var i=nd.allocUnsafe(r>>>0),n=this.head,s=0;n;)O1(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();Ei&&Ei.inspect&&Ei.inspect.custom&&(Ya.exports.prototype[Ei.inspect.custom]=function(){var t=Ei.inspect({length:this.length});return this.constructor.name+" "+t})});var Za=p((vB,od)=>{"use strict";var is=wi();function D1(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,is.nextTick(ns,this,t)):is.nextTick(ns,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,is.nextTick(ns,r,s)):is.nextTick(ns,r,s):e&&e(s)}),this)}function I1(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ns(t,e){t.emit("error",e)}od.exports={destroy:D1,undestroy:I1}});var ld=p((xB,ad)=>{"use strict";ad.exports=I("util").deprecate});var Qa=p((TB,yd)=>{"use strict";var Xt=wi();yd.exports=fe;function fd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Y1(e,t)}}var L1=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Xt.nextTick,Or;fe.WritableState=xi;var hd=Object.create(Ar());hd.inherits=Rr();var N1={deprecate:ld()},cd=Ga(),os=Si().Buffer,P1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function M1(t){return os.from(t)}function C1(t){return os.isBuffer(t)||t instanceof P1}var dd=Za();hd.inherits(fe,cd);function k1(){}function xi(t,e){Or=Or||Jt(),t=t||{};var r=e instanceof Or;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){G1(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new fd(this)}xi.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(xi.prototype,"buffer",{get:N1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ss;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ss=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return ss.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof xi}})):ss=function(t){return t instanceof this};function fe(t){if(Or=Or||Jt(),!ss.call(fe,this)&&!(this instanceof Or))return new fe(t);this._writableState=new xi(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),cd.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function q1(t,e){var r=new Error("write after end");t.emit("error",r),Xt.nextTick(e,r)}function F1(t,e,r,i){var n=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),Xt.nextTick(i,s),n=!1),n}fe.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&C1(t);return s&&!os.isBuffer(t)&&(t=M1(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=k1),i.ended?q1(this,r):(s||F1(this,i,t,r))&&(i.pendingcb++,n=j1(this,i,s,t,e,r)),n};fe.prototype.cork=function(){var t=this._writableState;t.corked++};fe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&pd(this,t))};fe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function B1(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=os.from(e,r)),e}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function j1(t,e,r,i,n,s){if(!r){var o=B1(e,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ka(t,e,!1,a,i,n,s);return l}function Ka(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function W1(t,e,r,i,n){--e.pendingcb,r?(Xt.nextTick(n,i),Xt.nextTick(vi,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),vi(t,e))}function U1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function G1(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(U1(r),e)W1(t,r,i,e,n);else{var s=gd(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&pd(t,r),i?L1(ud,t,r,s,n):ud(t,r,s,n)}}function ud(t,e,r,i){r||z1(t,e),e.pendingcb--,i(),vi(t,e)}function z1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function pd(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,Ka(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new fd(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,h=e.objectMode?1:l.length;if(Ka(t,e,!1,h,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}fe.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};fe.prototype._writev=null;fe.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||V1(this,i,r)};function gd(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function $1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),vi(t,e)})}function H1(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Xt.nextTick($1,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function vi(t,e){var r=gd(e);return r&&(H1(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function V1(t,e,r){e.ending=!0,vi(t,e),r&&(e.finished?Xt.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Y1(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});fe.prototype.destroy=dd.destroy;fe.prototype._undestroy=dd.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var Jt=p((AB,wd)=>{"use strict";var md=wi(),Z1=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};wd.exports=gt;var _d=Object.create(Ar());_d.inherits=Rr();var bd=el(),Ja=Qa();_d.inherits(gt,bd);for(Xa=Z1(Ja.prototype),as=0;as<Xa.length;as++)ls=Xa[as],gt.prototype[ls]||(gt.prototype[ls]=Ja.prototype[ls]);var Xa,ls,as;function gt(t){if(!(this instanceof gt))return new gt(t);bd.call(this,t),Ja.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",K1)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function K1(){this.allowHalfOpen||this._writableState.ended||md.nextTick(Q1,this)}function Q1(t){t.end()}Object.defineProperty(gt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});gt.prototype._destroy=function(t,e){this.push(null),this.end(),md.nextTick(e,t)}});var il=p(Ed=>{"use strict";var rl=Si().Buffer,Sd=rl.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function X1(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function J1(t){var e=X1(t);if(typeof e!="string"&&(rl.isEncoding===Sd||!Sd(t)))throw new Error("Unknown encoding: "+t);return e||t}Ed.StringDecoder=Ti;function Ti(t){this.encoding=J1(t);var e;switch(this.encoding){case"utf16le":this.text=sx,this.end=ox,e=4;break;case"utf8":this.fillLast=rx,e=4;break;case"base64":this.text=ax,this.end=lx,e=3;break;default:this.write=ux,this.end=fx;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rl.allocUnsafe(e)}Ti.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Ti.prototype.end=nx;Ti.prototype.text=ix;Ti.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function tl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function ex(t,e,r){var i=e.length-1;if(i<r)return 0;var n=tl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=tl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=tl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function tx(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function rx(t){var e=this.lastTotal-this.lastNeed,r=tx(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function ix(t,e){var r=ex(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function nx(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function sx(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function ox(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function ax(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function lx(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ux(t){return t.toString(this.encoding)}function fx(t){return t&&t.length?this.write(t):""}});var el=p((DB,Md)=>{"use strict";var Ir=wi();Md.exports=Q;var hx=Jc(),Ai;Q.ReadableState=Dd;var OB=I("events").EventEmitter,Ad=function(t,e){return t.listeners(e).length},ll=Ga(),Ri=Si().Buffer,cx=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function dx(t){return Ri.from(t)}function px(t){return Ri.isBuffer(t)||t instanceof cx}var Rd=Object.create(Ar());Rd.inherits=Rr();var nl=I("util"),$=void 0;nl&&nl.debuglog?$=nl.debuglog("stream"):$=function(){};var gx=sd(),Od=Za(),Dr;Rd.inherits(Q,ll);var sl=["error","close","destroy","pause","resume"];function yx(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):hx(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Dd(t,e){Ai=Ai||Jt(),t=t||{};var r=e instanceof Ai;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new gx,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Dr||(Dr=il().StringDecoder),this.decoder=new Dr(t.encoding),this.encoding=t.encoding)}function Q(t){if(Ai=Ai||Jt(),!(this instanceof Q))return new Q(t);this._readableState=new Dd(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ll.call(this)}Object.defineProperty(Q.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Q.prototype.destroy=Od.destroy;Q.prototype._undestroy=Od.undestroy;Q.prototype._destroy=function(t,e){this.push(null),e(t)};Q.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ri.from(t,e),e=""),i=!0),Id(this,t,e,!1,i)};Q.prototype.unshift=function(t){return Id(this,t,null,!0,!1)};function Id(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,wx(t,s);else{var o;n||(o=mx(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ri.prototype&&(e=dx(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):ol(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?ol(t,s,e,!1):Ld(t,s)):ol(t,s,e,!1))):i||(s.reading=!1)}return _x(s)}function ol(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&us(t)),Ld(t,e)}function mx(t,e){var r;return!px(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function _x(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Q.prototype.isPaused=function(){return this._readableState.flowing===!1};Q.prototype.setEncoding=function(t){return Dr||(Dr=il().StringDecoder),this._readableState.decoder=new Dr(t),this._readableState.encoding=t,this};var vd=8388608;function bx(t){return t>=vd?t=vd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function xd(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=bx(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Q.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?al(this):us(this),null;if(t=xd(t,e),t===0&&e.ended)return e.length===0&&al(this),null;var i=e.needReadable;$("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,$("length less than watermark",i)),e.ended||e.reading?(i=!1,$("reading or ended",i)):i&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=xd(r,e)));var n;return t>0?n=Nd(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&al(this)),n!==null&&this.emit("data",n),n};function wx(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,us(t)}}function us(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Ir.nextTick(Td,t):Td(t))}function Td(t){$("emit readable"),t.emit("readable"),ul(t)}function Ld(t,e){e.readingMore||(e.readingMore=!0,Ir.nextTick(Sx,t,e))}function Sx(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&($("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Q.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Q.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,$("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:x;i.endEmitted?Ir.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,m){$("onunpipe"),y===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,f())}function a(){$("onend"),t.end()}var l=Ex(r);t.on("drain",l);var u=!1;function f(){$("cleanup"),t.removeListener("close",b),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",x),r.removeListener("data",c),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var h=!1;r.on("data",c);function c(y){$("ondata"),h=!1;var m=t.write(y);m===!1&&!h&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Pd(i.pipes,t)!==-1)&&!u&&($("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function d(y){$("onerror",y),x(),t.removeListener("error",d),Ad(t,"error")===0&&t.emit("error",y)}yx(t,"error",d);function b(){t.removeListener("finish",g),x()}t.once("close",b);function g(){$("onfinish"),t.removeListener("close",b),x()}t.once("finish",g);function x(){$("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||($("pipe resume"),r.resume()),t};function Ex(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Ad(t,"data")&&(e.flowing=!0,ul(t))}}Q.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Pd(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Q.prototype.on=function(t,e){var r=ll.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&us(this):Ir.nextTick(vx,this))}return r};Q.prototype.addListener=Q.prototype.on;function vx(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,xx(this,t)),this};function xx(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ir.nextTick(Tx,t,e))}function Tx(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),ul(t),e.flowing&&!e.reading&&t.read(0)}Q.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function ul(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&t.read()!==null;);}Q.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if($("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if($("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<sl.length;s++)t.on(sl[s],this.emit.bind(this,sl[s]));return this._read=function(o){$("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Q._fromList=Nd;function Nd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=Ax(t,e.buffer,e.decoder),r}function Ax(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?Rx(t,e):Ox(t,e),i}function Rx(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(o===s.length?n+=s:n+=s.slice(0,t),t-=o,t===0){o===s.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++i}return e.length-=i,n}function Ox(t,e){var r=Ri.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var s=i.data,o=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,o),t-=o,t===0){o===s.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=s.slice(o));break}++n}return e.length-=n,r}function al(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Ir.nextTick(Dx,e,t))}function Dx(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Pd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var fl=p((IB,qd)=>{"use strict";qd.exports=yt;var fs=Jt(),kd=Object.create(Ar());kd.inherits=Rr();kd.inherits(yt,fs);function Ix(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function yt(t){if(!(this instanceof yt))return new yt(t);fs.call(this,t),this._transformState={afterTransform:Ix.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Lx)}function Lx(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Cd(t,e,r)}):Cd(this,null,null)}yt.prototype.push=function(t,e){return this._transformState.needTransform=!1,fs.prototype.push.call(this,t,e)};yt.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};yt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};yt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};yt.prototype._destroy=function(t,e){var r=this;fs.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Cd(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var Wd=p((LB,jd)=>{"use strict";jd.exports=Oi;var Fd=fl(),Bd=Object.create(Ar());Bd.inherits=Rr();Bd.inherits(Oi,Fd);function Oi(t){if(!(this instanceof Oi))return new Oi(t);Fd.call(this,t)}Oi.prototype._transform=function(t,e,r){r(null,t)}});var Ud=p((be,hs)=>{"use strict";var et=I("stream");process.env.READABLE_STREAM==="disable"&&et?(hs.exports=et,be=hs.exports=et.Readable,be.Readable=et.Readable,be.Writable=et.Writable,be.Duplex=et.Duplex,be.Transform=et.Transform,be.PassThrough=et.PassThrough,be.Stream=et):(be=hs.exports=el(),be.Stream=et||be,be.Readable=be,be.Writable=Qa(),be.Duplex=Jt(),be.Transform=fl(),be.PassThrough=Wd())});var zd=p((NB,Gd)=>{"use strict";Gd.exports=Ud().PassThrough});var Yd=p((PB,Vd)=>{"use strict";var $d=I("util"),ps=zd();Vd.exports={Readable:cs,Writable:ds};$d.inherits(cs,ps);$d.inherits(ds,ps);function Hd(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function cs(t,e){if(!(this instanceof cs))return new cs(t,e);ps.call(this,e),Hd(this,"_read",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),r.pipe(this)}),this.emit("readable")}function ds(t,e){if(!(this instanceof ds))return new ds(t,e);ps.call(this,e),Hd(this,"_write",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),this.pipe(r)}),this.emit("writable")}});var hl=p((MB,Zd)=>{"use strict";Zd.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var i="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),i="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),i+s.join("/")}});var cl=p((CB,Kd)=>{"use strict";function Nx(t){return t}Kd.exports=Nx});var Xd=p((kB,Qd)=>{"use strict";function Px(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}Qd.exports=Px});var tp=p((qB,ep)=>{"use strict";var Mx=Xd(),Jd=Math.max;function Cx(t,e,r){return e=Jd(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=Jd(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=r(o),Mx(t,this,a)}}ep.exports=Cx});var ip=p((FB,rp)=>{"use strict";function kx(t){return function(){return t}}rp.exports=kx});var dl=p((BB,np)=>{"use strict";var qx=typeof global=="object"&&global&&global.Object===Object&&global;np.exports=qx});var Lr=p((jB,sp)=>{"use strict";var Fx=dl(),Bx=typeof self=="object"&&self&&self.Object===Object&&self,jx=Fx||Bx||Function("return this")();sp.exports=jx});var gs=p((WB,op)=>{"use strict";var Wx=Lr(),Ux=Wx.Symbol;op.exports=Ux});var fp=p((UB,up)=>{"use strict";var ap=gs(),lp=Object.prototype,Gx=lp.hasOwnProperty,zx=lp.toString,Di=ap?ap.toStringTag:void 0;function $x(t){var e=Gx.call(t,Di),r=t[Di];try{t[Di]=void 0;var i=!0}catch{}var n=zx.call(t);return i&&(e?t[Di]=r:delete t[Di]),n}up.exports=$x});var cp=p((GB,hp)=>{"use strict";var Hx=Object.prototype,Vx=Hx.toString;function Yx(t){return Vx.call(t)}hp.exports=Yx});var Ii=p((zB,gp)=>{"use strict";var dp=gs(),Zx=fp(),Kx=cp(),Qx="[object Null]",Xx="[object Undefined]",pp=dp?dp.toStringTag:void 0;function Jx(t){return t==null?t===void 0?Xx:Qx:pp&&pp in Object(t)?Zx(t):Kx(t)}gp.exports=Jx});var Li=p(($B,yp)=>{"use strict";function eT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}yp.exports=eT});var pl=p((HB,mp)=>{"use strict";var tT=Ii(),rT=Li(),iT="[object AsyncFunction]",nT="[object Function]",sT="[object GeneratorFunction]",oT="[object Proxy]";function aT(t){if(!rT(t))return!1;var e=tT(t);return e==nT||e==sT||e==iT||e==oT}mp.exports=aT});var bp=p((VB,_p)=>{"use strict";var lT=Lr(),uT=lT["__core-js_shared__"];_p.exports=uT});var Ep=p((YB,Sp)=>{"use strict";var gl=bp(),wp=(function(){var t=/[^.]+$/.exec(gl&&gl.keys&&gl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function fT(t){return!!wp&&wp in t}Sp.exports=fT});var xp=p((ZB,vp)=>{"use strict";var hT=Function.prototype,cT=hT.toString;function dT(t){if(t!=null){try{return cT.call(t)}catch{}try{return t+""}catch{}}return""}vp.exports=dT});var Ap=p((KB,Tp)=>{"use strict";var pT=pl(),gT=Ep(),yT=Li(),mT=xp(),_T=/[\\^$.*+?()[\]{}|]/g,bT=/^\[object .+?Constructor\]$/,wT=Function.prototype,ST=Object.prototype,ET=wT.toString,vT=ST.hasOwnProperty,xT=RegExp("^"+ET.call(vT).replace(_T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function TT(t){if(!yT(t)||gT(t))return!1;var e=pT(t)?xT:bT;return e.test(mT(t))}Tp.exports=TT});var Op=p((QB,Rp)=>{"use strict";function AT(t,e){return t?.[e]}Rp.exports=AT});var Ni=p((XB,Dp)=>{"use strict";var RT=Ap(),OT=Op();function DT(t,e){var r=OT(t,e);return RT(r)?r:void 0}Dp.exports=DT});var Lp=p((JB,Ip)=>{"use strict";var IT=Ni(),LT=(function(){try{var t=IT(Object,"defineProperty");return t({},"",{}),t}catch{}})();Ip.exports=LT});var Mp=p((ej,Pp)=>{"use strict";var NT=ip(),Np=Lp(),PT=cl(),MT=Np?function(t,e){return Np(t,"toString",{configurable:!0,enumerable:!1,value:NT(e),writable:!0})}:PT;Pp.exports=MT});var kp=p((tj,Cp)=>{"use strict";var CT=800,kT=16,qT=Date.now;function FT(t){var e=0,r=0;return function(){var i=qT(),n=kT-(i-r);if(r=i,n>0){if(++e>=CT)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}Cp.exports=FT});var Fp=p((rj,qp)=>{"use strict";var BT=Mp(),jT=kp(),WT=jT(BT);qp.exports=WT});var ys=p((ij,Bp)=>{"use strict";var UT=cl(),GT=tp(),zT=Fp();function $T(t,e){return zT(GT(t,e,UT),t+"")}Bp.exports=$T});var ms=p((nj,jp)=>{"use strict";function HT(t,e){return t===e||t!==t&&e!==e}jp.exports=HT});var yl=p((sj,Wp)=>{"use strict";var VT=9007199254740991;function YT(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=VT}Wp.exports=YT});var _s=p((oj,Up)=>{"use strict";var ZT=pl(),KT=yl();function QT(t){return t!=null&&KT(t.length)&&!ZT(t)}Up.exports=QT});var ml=p((aj,Gp)=>{"use strict";var XT=9007199254740991,JT=/^(?:0|[1-9]\d*)$/;function eA(t,e){var r=typeof t;return e=e??XT,!!e&&(r=="number"||r!="symbol"&&JT.test(t))&&t>-1&&t%1==0&&t<e}Gp.exports=eA});var $p=p((lj,zp)=>{"use strict";var tA=ms(),rA=_s(),iA=ml(),nA=Li();function sA(t,e,r){if(!nA(r))return!1;var i=typeof e;return(i=="number"?rA(r)&&iA(e,r.length):i=="string"&&e in r)?tA(r[e],t):!1}zp.exports=sA});var Vp=p((uj,Hp)=>{"use strict";function oA(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}Hp.exports=oA});var Nr=p((fj,Yp)=>{"use strict";function aA(t){return t!=null&&typeof t=="object"}Yp.exports=aA});var Kp=p((hj,Zp)=>{"use strict";var lA=Ii(),uA=Nr(),fA="[object Arguments]";function hA(t){return uA(t)&&lA(t)==fA}Zp.exports=hA});var _l=p((cj,Jp)=>{"use strict";var Qp=Kp(),cA=Nr(),Xp=Object.prototype,dA=Xp.hasOwnProperty,pA=Xp.propertyIsEnumerable,gA=Qp((function(){return arguments})())?Qp:function(t){return cA(t)&&dA.call(t,"callee")&&!pA.call(t,"callee")};Jp.exports=gA});var bl=p((dj,eg)=>{"use strict";var yA=Array.isArray;eg.exports=yA});var rg=p((pj,tg)=>{"use strict";function mA(){return!1}tg.exports=mA});var og=p((Pi,Pr)=>{"use strict";var _A=Lr(),bA=rg(),sg=typeof Pi=="object"&&Pi&&!Pi.nodeType&&Pi,ig=sg&&typeof Pr=="object"&&Pr&&!Pr.nodeType&&Pr,wA=ig&&ig.exports===sg,ng=wA?_A.Buffer:void 0,SA=ng?ng.isBuffer:void 0,EA=SA||bA;Pr.exports=EA});var lg=p((gj,ag)=>{"use strict";var vA=Ii(),xA=yl(),TA=Nr(),AA="[object Arguments]",RA="[object Array]",OA="[object Boolean]",DA="[object Date]",IA="[object Error]",LA="[object Function]",NA="[object Map]",PA="[object Number]",MA="[object Object]",CA="[object RegExp]",kA="[object Set]",qA="[object String]",FA="[object WeakMap]",BA="[object ArrayBuffer]",jA="[object DataView]",WA="[object Float32Array]",UA="[object Float64Array]",GA="[object Int8Array]",zA="[object Int16Array]",$A="[object Int32Array]",HA="[object Uint8Array]",VA="[object Uint8ClampedArray]",YA="[object Uint16Array]",ZA="[object Uint32Array]",X={};X[WA]=X[UA]=X[GA]=X[zA]=X[$A]=X[HA]=X[VA]=X[YA]=X[ZA]=!0;X[AA]=X[RA]=X[BA]=X[OA]=X[jA]=X[DA]=X[IA]=X[LA]=X[NA]=X[PA]=X[MA]=X[CA]=X[kA]=X[qA]=X[FA]=!1;function KA(t){return TA(t)&&xA(t.length)&&!!X[vA(t)]}ag.exports=KA});var wl=p((yj,ug)=>{"use strict";function QA(t){return function(e){return t(e)}}ug.exports=QA});var hg=p((Mi,Mr)=>{"use strict";var XA=dl(),fg=typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,Ci=fg&&typeof Mr=="object"&&Mr&&!Mr.nodeType&&Mr,JA=Ci&&Ci.exports===fg,Sl=JA&&XA.process,eR=(function(){try{var t=Ci&&Ci.require&&Ci.require("util").types;return t||Sl&&Sl.binding&&Sl.binding("util")}catch{}})();Mr.exports=eR});var gg=p((mj,pg)=>{"use strict";var tR=lg(),rR=wl(),cg=hg(),dg=cg&&cg.isTypedArray,iR=dg?rR(dg):tR;pg.exports=iR});var mg=p((_j,yg)=>{"use strict";var nR=Vp(),sR=_l(),oR=bl(),aR=og(),lR=ml(),uR=gg(),fR=Object.prototype,hR=fR.hasOwnProperty;function cR(t,e){var r=oR(t),i=!r&&sR(t),n=!r&&!i&&aR(t),s=!r&&!i&&!n&&uR(t),o=r||i||n||s,a=o?nR(t.length,String):[],l=a.length;for(var u in t)(e||hR.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||lR(u,l)))&&a.push(u);return a}yg.exports=cR});var bg=p((bj,_g)=>{"use strict";var dR=Object.prototype;function pR(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||dR;return t===r}_g.exports=pR});var Sg=p((wj,wg)=>{"use strict";function gR(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}wg.exports=gR});var vg=p((Sj,Eg)=>{"use strict";var yR=Li(),mR=bg(),_R=Sg(),bR=Object.prototype,wR=bR.hasOwnProperty;function SR(t){if(!yR(t))return _R(t);var e=mR(t),r=[];for(var i in t)i=="constructor"&&(e||!wR.call(t,i))||r.push(i);return r}Eg.exports=SR});var Tg=p((Ej,xg)=>{"use strict";var ER=mg(),vR=vg(),xR=_s();function TR(t){return xR(t)?ER(t,!0):vR(t)}xg.exports=TR});var Og=p((vj,Rg)=>{"use strict";var AR=ys(),RR=ms(),OR=$p(),DR=Tg(),Ag=Object.prototype,IR=Ag.hasOwnProperty,LR=AR(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&OR(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=DR(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||RR(f,Ag[u])&&!IR.call(t,u))&&(t[u]=s[u])}return t});Rg.exports=LR});var ie=p((xj,Dg)=>{"use strict";var El=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let i=0;i<e.length;i++)r+=` ${e[i].stack}
|
|
8
|
+
`;super(r),this.name="AggregateError",this.errors=e}};Dg.exports={AggregateError:El,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var vl=p((Tj,Ig)=>{"use strict";Ig.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var xe=p((Aj,Pg)=>{"use strict";var{format:NR,inspect:bs}=vl(),{AggregateError:PR}=ie(),MR=globalThis.AggregateError||PR,CR=Symbol("kIsNodeError"),kR=["string","function","number","object","Function","Object","boolean","bigint","symbol"],qR=/^([A-Z][a-z0-9]*)+$/,FR="__node_internal_",ws={};function er(t,e){if(!t)throw new ws.ERR_INTERNAL_ASSERTION(e)}function Lg(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function BR(t,e,r){if(typeof e=="function")return er(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return er(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:NR(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(BR(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[CR]=!0,ws[t]=i}function Ng(t){let e=FR+t.name;return Object.defineProperty(t,"name",{value:e}),t}function jR(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new MR([e,t],e.message);return r.code=e.code,r}return t||e}var xl=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new ws.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};we("ERR_ASSERTION","%s",Error);we("ERR_INVALID_ARG_TYPE",(t,e,r)=>{er(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let l of e)er(typeof l=="string","All expected entries have to be of type string"),kR.includes(l)?n.push(l.toLowerCase()):qR.test(l)?s.push(l):(er(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=bs(r,{depth:-1});i+=`. Received ${l}`}}else{let l=bs(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);we("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=bs(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);we("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);we("ERR_MISSING_ARGS",(...t)=>{er(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`"${i}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(", ")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);we("ERR_OUT_OF_RANGE",(t,e,r)=>{er(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Lg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Lg(i)),i+="n"}else i=bs(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);we("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);we("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);we("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);we("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);we("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);we("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);we("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);we("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);we("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);we("ERR_STREAM_WRITE_AFTER_END","write after end",Error);we("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Pg.exports={AbortError:xl,aggregateTwoErrors:Ng(jR),hideStackFrames:Ng,codes:ws}});var Gg=p((Fi,qi)=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var Bg=new WeakMap,Tl=new WeakMap;function J(t){let e=Bg.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function Mg(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function Cr(t,e){Bg.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let i=0;i<r.length;++i){let n=r[i];n in this||Object.defineProperty(this,n,jg(n))}}Cr.prototype={get type(){return J(this).event.type},get target(){return J(this).eventTarget},get currentTarget(){return J(this).currentTarget},composedPath(){let t=J(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return J(this).eventPhase},stopPropagation(){let t=J(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=J(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!J(this).event.bubbles},get cancelable(){return!!J(this).event.cancelable},preventDefault(){Mg(J(this))},get defaultPrevented(){return J(this).canceled},get composed(){return!!J(this).event.composed},get timeStamp(){return J(this).timeStamp},get srcElement(){return J(this).eventTarget},get cancelBubble(){return J(this).stopped},set cancelBubble(t){if(!t)return;let e=J(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!J(this).canceled},set returnValue(t){t||Mg(J(this))},initEvent(){}};Object.defineProperty(Cr.prototype,"constructor",{value:Cr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Cr.prototype,window.Event.prototype),Tl.set(window.Event.prototype,Cr));function jg(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function WR(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function UR(t,e){let r=Object.keys(e);if(r.length===0)return t;function i(n,s){t.call(this,n,s)}i.prototype=Object.create(t.prototype,{constructor:{value:i,configurable:!0,writable:!0}});for(let n=0;n<r.length;++n){let s=r[n];if(!(s in t.prototype)){let a=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(i.prototype,s,a?WR(s):jg(s))}}return i}function Wg(t){if(t==null||t===Object.prototype)return Cr;let e=Tl.get(t);return e==null&&(e=UR(Wg(Object.getPrototypeOf(t)),t),Tl.set(t,e)),e}function GR(t,e){let r=Wg(Object.getPrototypeOf(e));return new r(t,e)}function zR(t){return J(t).immediateStopped}function $R(t,e){J(t).eventPhase=e}function HR(t,e){J(t).currentTarget=e}function Cg(t,e){J(t).passiveListener=e}var Ug=new WeakMap,kg=1,qg=2,Ss=3;function Es(t){return t!==null&&typeof t=="object"}function ki(t){let e=Ug.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function VR(t){return{get(){let r=ki(this).get(t);for(;r!=null;){if(r.listenerType===Ss)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Es(e)&&(e=null);let r=ki(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===Ss?i!==null?i.next=n.next:n.next!==null?r.set(t,n.next):r.delete(t):i=n,n=n.next;if(e!==null){let s={listener:e,listenerType:Ss,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Al(t,e){Object.defineProperty(t,`on${e}`,VR(e))}function Fg(t){function e(){He.call(this)}e.prototype=Object.create(He.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)Al(e.prototype,t[r]);return e}function He(){if(this instanceof He){Ug.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return Fg(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return Fg(t)}throw new TypeError("Cannot call a class as a function")}He.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!Es(e))throw new TypeError("'listener' should be a function or an object.");let i=ki(this),n=Es(r),o=(n?!!r.capture:!!r)?kg:qg,a={listener:e,listenerType:o,passive:n&&!!r.passive,once:n&&!!r.once,next:null},l=i.get(t);if(l===void 0){i.set(t,a);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===o)return;u=l,l=l.next}u.next=a},removeEventListener(t,e,r){if(e==null)return;let i=ki(this),s=(Es(r)?!!r.capture:!!r)?kg:qg,o=null,a=i.get(t);for(;a!=null;){if(a.listener===e&&a.listenerType===s){o!==null?o.next=a.next:a.next!==null?i.set(t,a.next):i.delete(t);return}o=a,a=a.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=ki(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=GR(this,t),s=null;for(;i!=null;){if(i.once?s!==null?s.next=i.next:i.next!==null?e.set(r,i.next):e.delete(r):s=i,Cg(n,i.passive?i.listener:null),typeof i.listener=="function")try{i.listener.call(this,n)}catch(o){typeof console<"u"&&typeof console.error=="function"&&console.error(o)}else i.listenerType!==Ss&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(zR(n))break;i=i.next}return Cg(n,null),$R(n,0),HR(n,null),!n.defaultPrevented}};Object.defineProperty(He.prototype,"constructor",{value:He,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(He.prototype,window.EventTarget.prototype);Fi.defineEventAttribute=Al;Fi.EventTarget=He;Fi.default=He;qi.exports=He;qi.exports.EventTarget=qi.exports.default=He;qi.exports.defineEventAttribute=Al});var kr=p((ji,Bi)=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});var Rl=Gg(),Lt=class extends Rl.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=vs.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};Rl.defineEventAttribute(Lt.prototype,"abort");function YR(){let t=Object.create(Lt.prototype);return Rl.EventTarget.call(t),vs.set(t,!1),t}function ZR(t){vs.get(t)===!1&&(vs.set(t,!0),t.dispatchEvent({type:"abort"}))}var vs=new WeakMap;Object.defineProperties(Lt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Lt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Nt=class{constructor(){$g.set(this,YR())}get signal(){return zg(this)}abort(){ZR(zg(this))}},$g=new WeakMap;function zg(t){let e=$g.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(Nt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Nt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});ji.AbortController=Nt;ji.AbortSignal=Lt;ji.default=Nt;Bi.exports=Nt;Bi.exports.AbortController=Bi.exports.default=Nt;Bi.exports.AbortSignal=Lt});var Oe=p((Rj,Dl)=>{"use strict";var KR=I("buffer"),{format:QR,inspect:XR}=vl(),{codes:{ERR_INVALID_ARG_TYPE:Ol}}=xe(),{kResistStopPropagation:JR,AggregateError:eO,SymbolDispose:tO}=ie(),rO=globalThis.AbortSignal||kr().AbortSignal,iO=globalThis.AbortController||kr().AbortController,nO=Object.getPrototypeOf(async function(){}).constructor,Hg=globalThis.Blob||KR.Blob,sO=typeof Hg<"u"?function(e){return e instanceof Hg}:function(e){return!1},Vg=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ol(e,"AbortSignal",t)},oO=(t,e)=>{if(typeof t!="function")throw new Ol(e,"Function",t)};Dl.exports={AggregateError:eO,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format:QR,inspect:XR,types:{isAsyncFunction(t){return t instanceof nO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:sO,deprecate(t,e){return t},addAbortListener:I("events").addAbortListener||function(e,r){if(e===void 0)throw new Ol("signal","AbortSignal",e);Vg(e,"signal"),oO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[JR]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[tO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:rO.any||function(e){if(e.length===1)return e[0];let r=new iO,i=()=>r.abort();return e.forEach(n=>{Vg(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};Dl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Fr=p((Oj,iy)=>{"use strict";var{ArrayIsArray:Ll,ArrayPrototypeIncludes:Qg,ArrayPrototypeJoin:Xg,ArrayPrototypeMap:aO,NumberIsInteger:Nl,NumberIsNaN:lO,NumberMAX_SAFE_INTEGER:uO,NumberMIN_SAFE_INTEGER:fO,NumberParseInt:hO,ObjectPrototypeHasOwnProperty:cO,RegExpPrototypeExec:Jg,String:dO,StringPrototypeToUpperCase:pO,StringPrototypeTrim:gO}=ie(),{hideStackFrames:Be,codes:{ERR_SOCKET_BAD_PORT:yO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:qr,ERR_OUT_OF_RANGE:tr,ERR_UNKNOWN_SIGNAL:Yg}}=xe(),{normalizeEncoding:mO}=Oe(),{isAsyncFunction:_O,isArrayBufferView:bO}=Oe().types,Zg={};function wO(t){return t===(t|0)}function SO(t){return t===t>>>0}var EO=/^[0-7]+$/,vO="must be a 32-bit unsigned integer or an octal string";function xO(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(Jg(EO,t)===null)throw new qr(e,t,vO);t=hO(t,8)}return ey(t,e),t}var TO=Be((t,e,r=fO,i=uO)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Nl(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),AO=Be((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Nl(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),ey=Be((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Nl(t))throw new tr(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new tr(e,`>= ${i} && <= ${n}`,t)});function Pl(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function RO(t,e,r=void 0,i){if(typeof t!="number")throw new Te(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&lO(t))throw new tr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var OO=Be((t,e,r)=>{if(!Qg(r,t)){let n="must be one of: "+Xg(aO(r,s=>typeof s=="string"?`'${s}'`:dO(s)),", ");throw new qr(e,t,n)}});function ty(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function Il(t,e,r){return t==null||!cO(t,e)?r:t[e]}var DO=Be((t,e,r=null)=>{let i=Il(r,"allowArray",!1),n=Il(r,"allowFunction",!1);if(!Il(r,"nullable",!1)&&t===null||!i&&Ll(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Te(e,"Object",t)}),IO=Be((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),xs=Be((t,e,r=0)=>{if(!Ll(t))throw new Te(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new qr(e,t,i)}});function LO(t,e){xs(t,e);for(let r=0;r<t.length;r++)Pl(t[r],`${e}[${r}]`)}function NO(t,e){xs(t,e);for(let r=0;r<t.length;r++)ty(t[r],`${e}[${r}]`)}function PO(t,e){xs(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Te(n,"AbortSignal",i);ry(i,n)}}function MO(t,e="signal"){if(Pl(t,e),Zg[t]===void 0)throw Zg[pO(t)]!==void 0?new Yg(t+" (signals must use all capital letters)"):new Yg(t)}var CO=Be((t,e="buffer")=>{if(!bO(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function kO(t,e){let r=mO(e),i=t.length;if(r==="hex"&&i%2!==0)throw new qr("encoding",e,`is invalid for data of length ${i}`)}function qO(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&gO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new yO(e,t,r);return t|0}var ry=Be((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),FO=Be((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),BO=Be((t,e)=>{if(typeof t!="function"||_O(t))throw new Te(e,"Function",t)}),jO=Be((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function WO(t,e,r){if(!Qg(r,t))throw new Te(e,`('${Xg(r,"|")}')`,t)}var UO=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Kg(t,e){if(typeof t>"u"||!Jg(UO,t))throw new qr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function GO(t){if(typeof t=="string")return Kg(t,"hints"),t;if(Ll(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];Kg(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new qr("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}iy.exports={isInt32:wO,isUint32:SO,parseFileMode:xO,validateArray:xs,validateStringArray:LO,validateBooleanArray:NO,validateAbortSignalArray:PO,validateBoolean:ty,validateBuffer:CO,validateDictionary:IO,validateEncoding:kO,validateFunction:FO,validateInt32:AO,validateInteger:TO,validateNumber:RO,validateObject:DO,validateOneOf:OO,validatePlainFunction:BO,validatePort:qO,validateSignalName:MO,validateString:Pl,validateUint32:ey,validateUndefined:jO,validateUnion:WO,validateAbortSignal:ry,validateLinkHeaderValue:GO}});var Pt=p((Dj,ny)=>{"use strict";ny.exports=global.process});var rt=p((Ij,by)=>{"use strict";var{SymbolAsyncIterator:sy,SymbolIterator:oy,SymbolFor:rr}=ie(),ay=rr("nodejs.stream.destroyed"),ly=rr("nodejs.stream.errored"),Ml=rr("nodejs.stream.readable"),Cl=rr("nodejs.stream.writable"),uy=rr("nodejs.stream.disturbed"),zO=rr("nodejs.webstream.isClosedPromise"),$O=rr("nodejs.webstream.controllerErrorFunction");function Ts(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function As(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function HO(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function tt(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function fy(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function hy(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function cy(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function VO(t){return fy(t)||hy(t)||cy(t)}function YO(t,e){return t==null?!1:e===!0?typeof t[sy]=="function":e===!1?typeof t[oy]=="function":typeof t[sy]=="function"||typeof t[oy]=="function"}function Rs(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[ay]||i!=null&&i.destroyed)}function dy(t){if(!As(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function ZO(t,e){if(!As(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function KO(t){if(!Ts(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function py(t,e){if(!Ts(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function gy(t){return t&&t[Ml]!=null?t[Ml]:typeof t?.readable!="boolean"?null:Rs(t)?!1:Ts(t)&&t.readable&&!py(t)}function yy(t){return t&&t[Cl]!=null?t[Cl]:typeof t?.writable!="boolean"?null:Rs(t)?!1:As(t)&&t.writable&&!dy(t)}function QO(t,e){return tt(t)?Rs(t)?!0:!(e?.readable!==!1&&gy(t)||e?.writable!==!1&&yy(t)):null}function XO(t){var e,r;return tt(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function JO(t){var e,r;return tt(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function eD(t){if(!tt(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&my(t)?t._closed:null}function my(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function _y(t){return typeof t._sent100=="boolean"&&my(t)}function tD(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function rD(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&_y(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function iD(t){var e;return!!(t&&((e=t[uy])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function nD(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[ly])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&n!==void 0?n:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&i!==void 0?i:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((f=t._writableState)===null||f===void 0)&&f.errored))}by.exports={isDestroyed:Rs,kIsDestroyed:ay,isDisturbed:iD,kIsDisturbed:uy,isErrored:nD,kIsErrored:ly,isReadable:gy,kIsReadable:Ml,kIsClosedPromise:zO,kControllerErrorFunction:$O,kIsWritable:Cl,isClosed:eD,isDuplexNodeStream:HO,isFinished:QO,isIterable:YO,isReadableNodeStream:Ts,isReadableStream:fy,isReadableEnded:KO,isReadableFinished:py,isReadableErrored:JO,isNodeStream:tt,isWebStream:VO,isWritable:yy,isWritableNodeStream:As,isWritableStream:hy,isWritableEnded:dy,isWritableFinished:ZO,isWritableErrored:XO,isServerRequest:tD,isServerResponse:_y,willEmitClose:rD,isTransformStream:cy}});var mt=p((Lj,jl)=>{"use strict";var Mt=Pt(),{AbortError:Oy,codes:sD}=xe(),{ERR_INVALID_ARG_TYPE:oD,ERR_STREAM_PREMATURE_CLOSE:wy}=sD,{kEmptyObject:ql,once:Fl}=Oe(),{validateAbortSignal:aD,validateFunction:lD,validateObject:uD,validateBoolean:fD}=Fr(),{Promise:hD,PromisePrototypeThen:cD,SymbolDispose:Dy}=ie(),{isClosed:dD,isReadable:Sy,isReadableNodeStream:kl,isReadableStream:pD,isReadableFinished:Ey,isReadableErrored:vy,isWritable:xy,isWritableNodeStream:Ty,isWritableStream:gD,isWritableFinished:Ay,isWritableErrored:Ry,isNodeStream:yD,willEmitClose:mD,kIsClosedPromise:_D}=rt(),Br;function bD(t){return t.setHeader&&typeof t.abort=="function"}var Bl=()=>{};function Iy(t,e,r){var i,n;if(arguments.length===2?(r=e,e=ql):e==null?e=ql:uD(e,"options"),lD(r,"callback"),aD(e.signal,"options.signal"),r=Fl(r),pD(t)||gD(t))return wD(t,e,r);if(!yD(t))throw new oD("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:kl(t),o=(n=e.writable)!==null&&n!==void 0?n:Ty(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||c()},f=mD(t)&&kl(t)===s&&Ty(t)===o,h=Ay(t,!1),c=()=>{h=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=Ey(t,!1),b=()=>{d=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||h)&&r.call(t)},g=A=>{r.call(t,A)},x=dD(t),y=()=>{x=!0;let A=Ry(t)||vy(t);if(A&&typeof A!="boolean")return r.call(t,A);if(s&&!d&&kl(t,!0)&&!Ey(t,!1))return r.call(t,new wy);if(o&&!h&&!Ay(t,!1))return r.call(t,new wy);r.call(t)},m=()=>{x=!0;let A=Ry(t)||vy(t);if(A&&typeof A!="boolean")return r.call(t,A);r.call(t)},S=()=>{t.req.on("finish",c)};bD(t)?(t.on("complete",c),f||t.on("abort",y),t.req?S():t.on("request",S)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",y),t.on("end",b),t.on("finish",c),e.error!==!1&&t.on("error",g),t.on("close",y),x?Mt.nextTick(y):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Mt.nextTick(m):(!s&&(!f||Sy(t))&&(h||xy(t)===!1)||!o&&(!f||xy(t))&&(d||Sy(t)===!1)||l&&t.req&&t.aborted)&&Mt.nextTick(m);let E=()=>{r=Bl,t.removeListener("aborted",y),t.removeListener("complete",c),t.removeListener("abort",y),t.removeListener("request",S),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",b),t.removeListener("error",g),t.removeListener("close",y)};if(e.signal&&!x){let A=()=>{let L=r;E(),L.call(t,new Oy(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Mt.nextTick(A);else{Br=Br||Oe().addAbortListener;let L=Br(e.signal,A),v=r;r=Fl((...O)=>{L[Dy](),v.apply(t,O)})}}return E}function wD(t,e,r){let i=!1,n=Bl;if(e.signal)if(n=()=>{i=!0,r.call(t,new Oy(void 0,{cause:e.signal.reason}))},e.signal.aborted)Mt.nextTick(n);else{Br=Br||Oe().addAbortListener;let o=Br(e.signal,n),a=r;r=Fl((...l)=>{o[Dy](),a.apply(t,l)})}let s=(...o)=>{i||Mt.nextTick(()=>r.apply(t,o))};return cD(t[_D].promise,s,s),Bl}function SD(t,e){var r;let i=!1;return e===null&&(e=ql),(r=e)!==null&&r!==void 0&&r.cleanup&&(fD(e.cleanup,"cleanup"),i=e.cleanup),new hD((n,s)=>{let o=Iy(t,e,a=>{i&&o(),a?s(a):n()})})}jl.exports=Iy;jl.exports.finished=SD});var ir=p((Nj,Fy)=>{"use strict";var it=Pt(),{aggregateTwoErrors:ED,codes:{ERR_MULTIPLE_CALLBACK:vD},AbortError:xD}=xe(),{Symbol:Py}=ie(),{kIsDestroyed:TD,isDestroyed:AD,isFinished:RD,isServerRequest:OD}=rt(),My=Py("kDestroy"),Wl=Py("kConstruct");function Cy(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function DD(t,e){let r=this._readableState,i=this._writableState,n=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(Cy(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Ly(this,t,e):this.once(My,function(s){Ly(this,ED(s,t),e)}),this)}function Ly(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;Cy(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(ID,t,s):it.nextTick(ky,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function ID(t,e){Ul(t,e),ky(t)}function ky(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Ul(t,e){let r=t._readableState,i=t._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function LD(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function Gl(t,e,r){let i=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),i&&!i.errored&&(i.errored=e),r?it.nextTick(Ul,t,e):Ul(t,e))}function ND(t,e){if(typeof t._construct!="function")return;let r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(Wl,e),!(t.listenerCount(Wl)>1)&&it.nextTick(PD,t)}function PD(t){let e=!1;function r(i){if(e){Gl(t,i??new vD);return}e=!0;let n=t._readableState,s=t._writableState,o=s||n;n&&(n.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(My,i):i?Gl(t,i,!0):it.nextTick(MD,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function MD(t){t.emit(Wl)}function Ny(t){return t?.setHeader&&typeof t.abort=="function"}function qy(t){t.emit("close")}function CD(t,e){t.emit("error",e),it.nextTick(qy,t)}function kD(t,e){!t||AD(t)||(!e&&!RD(t)&&(e=new xD),OD(t)?(t.socket=null,t.destroy(e)):Ny(t)?t.abort():Ny(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(CD,t,e):it.nextTick(qy,t),t.destroyed||(t[TD]=!0))}Fy.exports={construct:ND,destroyer:kD,destroy:DD,undestroy:LD,errorOrDestroy:Gl}});var Is=p((Pj,jy)=>{"use strict";var{ArrayIsArray:qD,ObjectSetPrototypeOf:By}=ie(),{EventEmitter:Os}=I("events");function Ds(t){Os.call(this,t)}By(Ds.prototype,Os.prototype);By(Ds,Os);Ds.prototype.pipe=function(t,e){let r=this;function i(f){t.writable&&t.write(f)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(f){u(),Os.listenerCount(this,"error")===0&&this.emit("error",f)}zl(r,"error",l),zl(t,"error",l);function u(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function zl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):qD(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}jy.exports={Stream:Ds,prependListener:zl}});var Wi=p((Mj,Ls)=>{"use strict";var{SymbolDispose:FD}=ie(),{AbortError:Wy,codes:BD}=xe(),{isNodeStream:Uy,isWebStream:jD,kControllerErrorFunction:WD}=rt(),UD=mt(),{ERR_INVALID_ARG_TYPE:Gy}=BD,$l,GD=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new Gy(e,"AbortSignal",t)};Ls.exports.addAbortSignal=function(e,r){if(GD(e,"signal"),!Uy(r)&&!jD(r))throw new Gy("stream",["ReadableStream","WritableStream","Stream"],r);return Ls.exports.addAbortSignalNoValidate(e,r)};Ls.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=Uy(e)?()=>{e.destroy(new Wy(void 0,{cause:t.reason}))}:()=>{e[WD](new Wy(void 0,{cause:t.reason}))};if(t.aborted)r();else{$l=$l||Oe().addAbortListener;let i=$l(t,r);UD(e,i[FD])}return e}});var Hy=p((kj,$y)=>{"use strict";var{StringPrototypeSlice:zy,SymbolIterator:zD,TypedArrayPrototypeSet:Ns,Uint8Array:$D}=ie(),{Buffer:Hl}=I("buffer"),{inspect:HD}=Oe();$y.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=e+r.data;return i}concat(e){if(this.length===0)return Hl.alloc(0);let r=Hl.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)Ns(r,i.data,n),n+=i.data.length,i=i.next;return r}consume(e,r){let i=this.head.data;if(e<i.length){let n=i.slice(0,e);return this.head.data=i.slice(e),n}return e===i.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[zD](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",i=this.head,n=0;do{let s=i.data;if(e>s.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++n,i.next?this.head=i.next:this.head=this.tail=null):(r+=zy(s,0,e),this.head=i,i.data=zy(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Hl.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)Ns(r,o,i-e),e-=o.length;else{e===o.length?(Ns(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(Ns(r,new $D(o.buffer,o.byteOffset,e),i-e),this.head=n,n.data=o.slice(e));break}++s}while((n=n.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return HD(this,{...r,depth:0,customInspect:!1})}}});var Ui=p((qj,Ky)=>{"use strict";var{MathFloor:VD,NumberIsInteger:YD}=ie(),{validateInteger:ZD}=Fr(),{ERR_INVALID_ARG_VALUE:KD}=xe().codes,Vy=16*1024,Yy=16;function QD(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Zy(t){return t?Yy:Vy}function XD(t,e){ZD(e,"value",0),t?Yy=e:Vy=e}function JD(t,e,r,i){let n=QD(e,i,r);if(n!=null){if(!YD(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new KD(s,n)}return VD(n)}return Zy(t.objectMode)}Ky.exports={getHighWaterMark:JD,getDefaultHighWaterMark:Zy,setDefaultHighWaterMark:XD}});var Jy=p((Vl,Xy)=>{"use strict";var Ps=I("buffer"),nt=Ps.Buffer;function Qy(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?Xy.exports=Ps:(Qy(Ps,Vl),Vl.Buffer=nr);function nr(t,e,r){return nt(t,e,r)}nr.prototype=Object.create(nt.prototype);Qy(nt,nr);nr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};nr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=nt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ps.SlowBuffer(t)}});var rm=p(tm=>{"use strict";var Zl=Jy().Buffer,em=Zl.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function eI(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function tI(t){var e=eI(t);if(typeof e!="string"&&(Zl.isEncoding===em||!em(t)))throw new Error("Unknown encoding: "+t);return e||t}tm.StringDecoder=Gi;function Gi(t){this.encoding=tI(t);var e;switch(this.encoding){case"utf16le":this.text=aI,this.end=lI,e=4;break;case"utf8":this.fillLast=nI,e=4;break;case"base64":this.text=uI,this.end=fI,e=3;break;default:this.write=hI,this.end=cI;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Zl.allocUnsafe(e)}Gi.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Gi.prototype.end=oI;Gi.prototype.text=sI;Gi.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Yl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function rI(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Yl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Yl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Yl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function iI(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function nI(t){var e=this.lastTotal-this.lastNeed,r=iI(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function sI(t,e){var r=rI(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function oI(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function aI(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function lI(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function uI(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function fI(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function hI(t){return t.toString(this.encoding)}function cI(t){return t&&t.length?this.write(t):""}});var Kl=p((Bj,om)=>{"use strict";var im=Pt(),{PromisePrototypeThen:dI,SymbolAsyncIterator:nm,SymbolIterator:sm}=ie(),{Buffer:pI}=I("buffer"),{ERR_INVALID_ARG_TYPE:gI,ERR_STREAM_NULL_VALUES:yI}=xe().codes;function mI(t,e,r){let i;if(typeof e=="string"||e instanceof pI)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[nm])n=!0,i=e[nm]();else if(e&&e[sm])n=!1,i=e[sm]();else throw new gI("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,f){dI(a(u),()=>im.nextTick(f,u),h=>im.nextTick(f,h||u))};async function a(u){let f=u!=null,h=typeof i.throw=="function";if(f&&h){let{value:c,done:d}=await i.throw(u);if(await c,d)return}if(typeof i.return=="function"){let{value:c}=await i.return();await c}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let h=u&&typeof u.then=="function"?await u:u;if(h===null)throw o=!1,new yI;if(s.push(h))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}om.exports=mI});var $i=p((jj,xm)=>{"use strict";var Ve=Pt(),{ArrayPrototypeIndexOf:_I,NumberIsInteger:bI,NumberIsNaN:wI,NumberParseInt:SI,ObjectDefineProperties:nu,ObjectKeys:EI,ObjectSetPrototypeOf:um,Promise:fm,SafeSet:vI,SymbolAsyncDispose:xI,SymbolAsyncIterator:TI,Symbol:AI}=ie();xm.exports=C;C.ReadableState=qs;var{EventEmitter:RI}=I("events"),{Stream:Ct,prependListener:OI}=Is(),{Buffer:Ql}=I("buffer"),{addAbortSignal:DI}=Wi(),hm=mt(),j=Oe().debuglog("stream",t=>{j=t}),II=Hy(),Ur=ir(),{getHighWaterMark:LI,getDefaultHighWaterMark:NI}=Ui(),{aggregateTwoErrors:am,codes:{ERR_INVALID_ARG_TYPE:PI,ERR_METHOD_NOT_IMPLEMENTED:MI,ERR_OUT_OF_RANGE:CI,ERR_STREAM_PUSH_AFTER_EOF:kI,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:qI},AbortError:FI}=xe(),{validateObject:BI}=Fr(),sr=AI("kPaused"),{StringDecoder:cm}=rm(),jI=Kl();um(C.prototype,Ct.prototype);um(C,Ct);var Xl=()=>{},{errorOrDestroy:jr}=Ur,Wr=1,WI=2,dm=4,zi=8,pm=16,Ms=32,Cs=64,gm=128,UI=256,GI=512,zI=1024,ru=2048,iu=4096,$I=8192,HI=16384,VI=32768,ym=65536,YI=1<<17,ZI=1<<18;function he(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}nu(qs.prototype,{objectMode:he(Wr),ended:he(WI),endEmitted:he(dm),reading:he(zi),constructed:he(pm),sync:he(Ms),needReadable:he(Cs),emittedReadable:he(gm),readableListening:he(UI),resumeScheduled:he(GI),errorEmitted:he(zI),emitClose:he(ru),autoDestroy:he(iu),destroyed:he($I),closed:he(HI),closeEmitted:he(VI),multiAwaitDrain:he(ym),readingMore:he(YI),dataEmitted:he(ZI)});function qs(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=ru|iu|pm|Ms,t&&t.objectMode&&(this.state|=Wr),r&&t&&t.readableObjectMode&&(this.state|=Wr),this.highWaterMark=t?LI(this,t,"readableHighWaterMark",r):NI(!1),this.buffer=new II,this.length=0,this.pipes=[],this.flowing=null,this[sr]=null,t&&t.emitClose===!1&&(this.state&=~ru),t&&t.autoDestroy===!1&&(this.state&=~iu),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new cm(t.encoding),this.encoding=t.encoding)}function C(t){if(!(this instanceof C))return new C(t);let e=this instanceof st();this._readableState=new qs(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&DI(t.signal,this)),Ct.call(this,t),Ur.construct(this,()=>{this._readableState.needReadable&&ks(this,this._readableState)})}C.prototype.destroy=Ur.destroy;C.prototype._undestroy=Ur.undestroy;C.prototype._destroy=function(t,e){e(t)};C.prototype[RI.captureRejectionSymbol]=function(t){this.destroy(t)};C.prototype[xI]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new FI,this.destroy(t)),new fm((e,r)=>hm(this,i=>i&&i!==t?r(i):e(null)))};C.prototype.push=function(t,e){return mm(this,t,e,!1)};C.prototype.unshift=function(t,e){return mm(this,t,e,!0)};function mm(t,e,r,i){j("readableAddChunk",e);let n=t._readableState,s;if((n.state&Wr)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=Ql.from(e,r).toString(n.encoding):(e=Ql.from(e,r),r=""))):e instanceof Ql?r="":Ct._isUint8Array(e)?(e=Ct._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new PI("chunk",["string","Buffer","Uint8Array"],e))),s)jr(t,s);else if(e===null)n.state&=~zi,XI(t,n);else if((n.state&Wr)!==0||e&&e.length>0)if(i)if((n.state&dm)!==0)jr(t,new qI);else{if(n.destroyed||n.errored)return!1;Jl(t,n,e,!0)}else if(n.ended)jr(t,new kI);else{if(n.destroyed||n.errored)return!1;n.state&=~zi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Jl(t,n,e,!1):ks(t,n)):Jl(t,n,e,!1)}else i||(n.state&=~zi,ks(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function Jl(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&ym)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),(e.state&Cs)!==0&&Fs(t)),ks(t,e)}C.prototype.isPaused=function(){let t=this._readableState;return t[sr]===!0||t.flowing===!1};C.prototype.setEncoding=function(t){let e=new cm(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i="";for(let n of r)i+=e.write(n);return r.clear(),i!==""&&r.push(i),this._readableState.length=i.length,this};var KI=1073741824;function QI(t){if(t>KI)throw new CI("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function lm(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Wr)!==0?1:wI(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}C.prototype.read=function(t){j("read",t),t===void 0?t=NaN:bI(t)||(t=SI(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=QI(t)),t!==0&&(e.state&=~gm),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return j("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?eu(this):Fs(this),null;if(t=lm(t,e),t===0&&e.ended)return e.length===0&&eu(this),null;let i=(e.state&Cs)!==0;if(j("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,j("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,j("reading, ended or constructing",i);else if(i){j("do read"),e.state|=zi|Ms,e.length===0&&(e.state|=Cs);try{this._read(e.highWaterMark)}catch(s){jr(this,s)}e.state&=~Ms,e.reading||(t=lm(r,e))}let n;return t>0?n=Em(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&eu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function XI(t,e){if(j("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Fs(t):(e.needReadable=!1,e.emittedReadable=!0,_m(t))}}function Fs(t){let e=t._readableState;j("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(j("emitReadable",e.flowing),e.emittedReadable=!0,Ve.nextTick(_m,t))}function _m(t){let e=t._readableState;j("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,wm(t)}function ks(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(JI,t,e))}function JI(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(j("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}C.prototype._read=function(t){throw new MI("_read()")};C.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new vI(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),j("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==Ve.stdout&&t!==Ve.stderr?a:x;i.endEmitted?Ve.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,m){j("onunpipe"),y===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,f())}function a(){j("onend"),t.end()}let l,u=!1;function f(){j("cleanup"),t.removeListener("close",b),t.removeListener("finish",g),l&&t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",x),r.removeListener("data",c),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function h(){u||(i.pipes.length===1&&i.pipes[0]===t?(j("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(j("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=eL(r,t),t.on("drain",l))}r.on("data",c);function c(y){j("ondata");let m=t.write(y);j("dest.write",m),m===!1&&h()}function d(y){if(j("onerror",y),x(),t.removeListener("error",d),t.listenerCount("error")===0){let m=t._writableState||t._readableState;m&&!m.errorEmitted?jr(t,y):t.emit("error",y)}}OI(t,"error",d);function b(){t.removeListener("finish",g),x()}t.once("close",b);function g(){j("onfinish"),t.removeListener("close",b),x()}t.once("finish",g);function x(){j("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?h():i.flowing||(j("pipe resume"),r.resume()),t};function eL(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(j("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(j("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}C.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let s=0;s<n.length;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}let i=_I(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};C.prototype.on=function(t,e){let r=Ct.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,j("on readable",i.length,i.reading),i.length?Fs(this):i.reading||Ve.nextTick(tL,this)),r};C.prototype.addListener=C.prototype.on;C.prototype.removeListener=function(t,e){let r=Ct.prototype.removeListener.call(this,t,e);return t==="readable"&&Ve.nextTick(bm,this),r};C.prototype.off=C.prototype.removeListener;C.prototype.removeAllListeners=function(t){let e=Ct.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ve.nextTick(bm,this),e};function bm(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[sr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function tL(t){j("readable nexttick read 0"),t.read(0)}C.prototype.resume=function(){let t=this._readableState;return t.flowing||(j("resume"),t.flowing=!t.readableListening,rL(this,t)),t[sr]=!1,this};function rL(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(iL,t,e))}function iL(t,e){j("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),wm(t),e.flowing&&!e.reading&&t.read(0)}C.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[sr]=!0,this};function wm(t){let e=t._readableState;for(j("flow",e.flowing);e.flowing&&t.read()!==null;);}C.prototype.wrap=function(t){let e=!1;t.on("data",i=>{!this.push(i)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",i=>{jr(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=EI(t);for(let i=1;i<r.length;i++){let n=r[i];this[n]===void 0&&typeof t[n]=="function"&&(this[n]=t[n].bind(t))}return this};C.prototype[TI]=function(){return Sm(this)};C.prototype.iterator=function(t){return t!==void 0&&BI(t,"options"),Sm(this,t)};function Sm(t,e){typeof t.read!="function"&&(t=C.wrap(t,{objectMode:!0}));let r=nL(t,e);return r.stream=t,r}async function*nL(t,e){let r=Xl;function i(o){this===t?(r(),r=Xl):r=o}t.on("readable",i);let n,s=hm(t,{writable:!1},o=>{n=o?am(n,o):null,r(),r=Xl});try{for(;;){let o=t.destroyed?null:t.read();if(o!==null)yield o;else{if(n)throw n;if(n===null)return;await new fm(i)}}}catch(o){throw n=am(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Ur.destroyer(t,null):(t.off("readable",i),s())}}nu(C.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});nu(qs.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[sr]!==!1},set(t){this[sr]=!!t}}});C._fromList=Em;function Em(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function eu(t){let e=t._readableState;j("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(sL,e,t))}function sL(t,e){if(j("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Ve.nextTick(oL,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function oL(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}C.from=function(t,e){return jI(C,t,e)};var tu;function vm(){return tu===void 0&&(tu={}),tu}C.fromWeb=function(t,e){return vm().newStreamReadableFromReadableStream(t,e)};C.toWeb=function(t,e){return vm().newReadableStreamFromStreamReadable(t,e)};C.wrap=function(t,e){var r,i;return new C({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){Ur.destroyer(t,n),s(n)}}).wrap(t)}});var Gs=p((Wj,km)=>{"use strict";var or=Pt(),{ArrayPrototypeSlice:Rm,Error:aL,FunctionPrototypeSymbolHasInstance:Om,ObjectDefineProperty:Dm,ObjectDefineProperties:lL,ObjectSetPrototypeOf:Im,StringPrototypeToLowerCase:uL,Symbol:fL,SymbolHasInstance:hL}=ie();km.exports=se;se.WritableState=Yi;var{EventEmitter:cL}=I("events"),Hi=Is().Stream,{Buffer:Bs}=I("buffer"),Us=ir(),{addAbortSignal:dL}=Wi(),{getHighWaterMark:pL,getDefaultHighWaterMark:gL}=Ui(),{ERR_INVALID_ARG_TYPE:yL,ERR_METHOD_NOT_IMPLEMENTED:mL,ERR_MULTIPLE_CALLBACK:Lm,ERR_STREAM_CANNOT_PIPE:_L,ERR_STREAM_DESTROYED:Vi,ERR_STREAM_ALREADY_FINISHED:bL,ERR_STREAM_NULL_VALUES:wL,ERR_STREAM_WRITE_AFTER_END:SL,ERR_UNKNOWN_ENCODING:Nm}=xe().codes,{errorOrDestroy:Gr}=Us;Im(se.prototype,Hi.prototype);Im(se,Hi);function au(){}var zr=fL("kOnFinished");function Yi(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?pL(this,t,"writableHighWaterMark",r):gL(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(t&&t.decodeStrings===!1);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=vL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Ws(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[zr]=[]}function Ws(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Yi.prototype.getBuffer=function(){return Rm(this.buffered,this.bufferedIndex)};Dm(Yi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!Om(se,this))return new se(t);this._writableState=new Yi(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&dL(t.signal,this)),Hi.call(this,t),Us.construct(this,()=>{let r=this._writableState;r.writing||uu(this,r),fu(this,r)})}Dm(se,hL,{__proto__:null,value:function(t){return Om(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Yi}});se.prototype.pipe=function(){Gr(this,new _L)};function Pm(t,e,r,i){let n=t._writableState;if(typeof r=="function")i=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!=="buffer"&&!Bs.isEncoding(r))throw new Nm(r);typeof i!="function"&&(i=au)}if(e===null)throw new wL;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Bs.from(e,r),r="buffer");else if(e instanceof Bs)r="buffer";else if(Hi._isUint8Array(e))e=Hi._uint8ArrayToBuffer(e),r="buffer";else throw new yL("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new SL:n.destroyed&&(s=new Vi("write")),s?(or.nextTick(i,s),Gr(t,s,!0),s):(n.pendingcb++,EL(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Pm(this,t,e,r)===!0};se.prototype.cork=function(){this._writableState.corked++};se.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||uu(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=uL(e)),!Bs.isEncoding(e))throw new Nm(e);return this._writableState.defaultEncoding=e,this};function EL(t,e,r,i,n){let s=e.objectMode?1:r.length;e.length+=s;let o=e.length<e.highWaterMark;return o||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:i,callback:n}),e.allBuffers&&i!=="buffer"&&(e.allBuffers=!1),e.allNoop&&n!==au&&(e.allNoop=!1)):(e.writelen=s,e.writecb=n,e.writing=!0,e.sync=!0,t._write(r,i,e.onwrite),e.sync=!1),o&&!e.errored&&!e.destroyed}function Tm(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Vi("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Am(t,e,r,i){--e.pendingcb,i(r),lu(e),Gr(t,r)}function vL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){Gr(t,new Lm);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?or.nextTick(Am,t,r,e,n):Am(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&uu(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},or.nextTick(xL,r.afterWriteTickInfo)):Mm(t,r,1,n))}function xL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,Mm(t,e,r,i)}function Mm(t,e,r,i){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,i();e.destroyed&&lu(e),fu(t,e)}function lu(t){if(t.writing)return;for(let n=t.bufferedIndex;n<t.buffered.length;++n){var e;let{chunk:s,callback:o}=t.buffered[n],a=t.objectMode?1:s.length;t.length-=a,o((e=t.errored)!==null&&e!==void 0?e:new Vi("write"))}let r=t[zr].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Vi("end"))}Ws(t)}function uu(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:i,objectMode:n}=e,s=r.length-i;if(!s)return;let o=i;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let a=e.allNoop?au:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:Rm(r,o);l.allBuffers=e.allBuffers,Tm(t,e,!0,e.length,l,"",a),Ws(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;Tm(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?Ws(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}se.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new mL("_write()")};se.prototype._writev=null;se.prototype.end=function(t,e,r){let i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let s=Pm(this,t,e);s instanceof aL&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,fu(this,i,!0),i.ended=!0):i.finished?n=new bL("end"):i.destroyed&&(n=new Vi("end"))),typeof r=="function"&&(n||i.finished?or.nextTick(r,n):i[zr].push(r)),this};function js(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function TL(t,e){let r=!1;function i(n){if(r){Gr(t,n??Lm());return}if(r=!0,e.pendingcb--,n){let s=e[zr].splice(0);for(let o=0;o<s.length;o++)s[o](n);Gr(t,n,e.sync)}else js(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,or.nextTick(ou,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function AL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,TL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function fu(t,e,r){js(e)&&(AL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,or.nextTick((i,n)=>{js(n)?ou(i,n):n.pendingcb--},t,e)):js(e)&&(e.pendingcb++,ou(t,e))))}function ou(t,e){e.pendingcb--,e.finished=!0;let r=e[zr].splice(0);for(let i=0;i<r.length;i++)r[i]();if(t.emit("finish"),e.autoDestroy){let i=t._readableState;(!i||i.autoDestroy&&(i.endEmitted||i.readable===!1))&&t.destroy()}}lL(se.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var RL=Us.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[zr].length)&&or.nextTick(lu,r),RL.call(this,t,e),this};se.prototype._undestroy=Us.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[cL.captureRejectionSymbol]=function(t){this.destroy(t)};var su;function Cm(){return su===void 0&&(su={}),su}se.fromWeb=function(t,e){return Cm().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return Cm().newWritableStreamFromStreamWritable(t)}});var Qm=p((Uj,Km)=>{"use strict";var hu=Pt(),OL=I("buffer"),{isReadable:DL,isWritable:IL,isIterable:qm,isNodeStream:LL,isReadableNodeStream:Fm,isWritableNodeStream:Bm,isDuplexNodeStream:NL,isReadableStream:jm,isWritableStream:Wm}=rt(),Um=mt(),{AbortError:Ym,codes:{ERR_INVALID_ARG_TYPE:PL,ERR_INVALID_RETURN_VALUE:Gm}}=xe(),{destroyer:Hr}=ir(),ML=st(),Zm=$i(),CL=Gs(),{createDeferredPromise:zm}=Oe(),$m=Kl(),Hm=globalThis.Blob||OL.Blob,kL=typeof Hm<"u"?function(e){return e instanceof Hm}:function(e){return!1},qL=globalThis.AbortController||kr().AbortController,{FunctionPrototypeCall:Vm}=ie(),kt=class extends ML{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};Km.exports=function t(e,r){if(NL(e))return e;if(Fm(e))return $r({readable:e});if(Bm(e))return $r({writable:e});if(LL(e))return $r({writable:!1,readable:!1});if(jm(e))return $r({readable:Zm.fromWeb(e)});if(Wm(e))return $r({writable:CL.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=FL(e);if(qm(n))return $m(kt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=Vm(l,n,h=>{if(h!=null)throw new Gm("nully","body",h)},h=>{Hr(u,h)});return u=new kt({objectMode:!0,readable:!1,write:s,final(h){o(async()=>{try{await f,hu.nextTick(h,null)}catch(c){hu.nextTick(h,c)}})},destroy:a})}throw new Gm("Iterable, AsyncIterable or AsyncFunction",r,n)}if(kL(e))return t(e.arrayBuffer());if(qm(e))return $m(kt,e,{objectMode:!0,writable:!1});if(jm(e?.readable)&&Wm(e?.writable))return kt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?Fm(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?Bm(e?.writable)?e?.writable:t(e.writable):void 0;return $r({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return Vm(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Hr(n,s)}),n=new kt({objectMode:!0,writable:!1,read(){}})}throw new PL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function FL(t){let{promise:e,resolve:r}=zm(),i=new qL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(hu.nextTick(u),l)return;if(n.aborted)throw new Ym(void 0,{cause:n.reason});({promise:e,resolve:r}=zm()),yield a}})(),{signal:n}),write(o,a,l){let u=r;r=null,u({chunk:o,done:!1,cb:l})},final(o){let a=r;r=null,a({done:!0,cb:o})},destroy(o,a){i.abort(),a(o)}}}function $r(t){let e=t.readable&&typeof t.readable.read!="function"?Zm.wrap(t.readable):t.readable,r=t.writable,i=!!DL(e),n=!!IL(r),s,o,a,l,u;function f(h){let c=l;l=null,c?c(h):h&&u.destroy(h)}return u=new kt({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(Um(r,h=>{n=!1,h&&Hr(e,h),f(h)}),u._write=function(h,c,d){r.write(h,c)?d():s=d},u._final=function(h){r.end(),o=h},r.on("drain",function(){if(s){let h=s;s=null,h()}}),r.on("finish",function(){if(o){let h=o;o=null,h()}})),i&&(Um(e,h=>{i=!1,h&&Hr(e,h),f(h)}),e.on("readable",function(){if(a){let h=a;a=null,h()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let h=e.read();if(h===null){a=u._read;return}if(!u.push(h))return}}),u._destroy=function(h,c){!h&&l!==null&&(h=new Ym),a=null,s=null,o=null,l===null?c(h):(l=c,Hr(r,h),Hr(e,h))},u}});var st=p((Gj,e_)=>{"use strict";var{ObjectDefineProperties:BL,ObjectGetOwnPropertyDescriptor:_t,ObjectKeys:jL,ObjectSetPrototypeOf:Xm}=ie();e_.exports=Ye;var pu=$i(),je=Gs();Xm(Ye.prototype,pu.prototype);Xm(Ye,pu);{let t=jL(je.prototype);for(let e=0;e<t.length;e++){let r=t[e];Ye.prototype[r]||(Ye.prototype[r]=je.prototype[r])}}function Ye(t){if(!(this instanceof Ye))return new Ye(t);pu.call(this,t),je.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}BL(Ye.prototype,{writable:{__proto__:null,..._t(je.prototype,"writable")},writableHighWaterMark:{__proto__:null,..._t(je.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,..._t(je.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,..._t(je.prototype,"writableBuffer")},writableLength:{__proto__:null,..._t(je.prototype,"writableLength")},writableFinished:{__proto__:null,..._t(je.prototype,"writableFinished")},writableCorked:{__proto__:null,..._t(je.prototype,"writableCorked")},writableEnded:{__proto__:null,..._t(je.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,..._t(je.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var cu;function Jm(){return cu===void 0&&(cu={}),cu}Ye.fromWeb=function(t,e){return Jm().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return Jm().newReadableWritablePairFromDuplex(t)};var du;Ye.from=function(t){return du||(du=Qm()),du(t,"body")}});var mu=p((zj,r_)=>{"use strict";var{ObjectSetPrototypeOf:t_,Symbol:WL}=ie();r_.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:UL}=xe().codes,yu=st(),{getHighWaterMark:GL}=Ui();t_(bt.prototype,yu.prototype);t_(bt,yu);var Zi=WL("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?GL(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),yu.call(this,t),this._readableState.sync=!1,this[Zi]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",zL)}function gu(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function zL(){this._final!==gu&&gu.call(this)}bt.prototype._final=gu;bt.prototype._transform=function(t,e,r){throw new UL("_transform()")};bt.prototype._write=function(t,e,r){let i=this._readableState,n=this._writableState,s=i.length;this._transform(t,e,(o,a)=>{if(o){r(o);return}a!=null&&this.push(a),n.ended||s===i.length||i.length<i.highWaterMark?r():this[Zi]=r})};bt.prototype._read=function(){if(this[Zi]){let t=this[Zi];this[Zi]=null,t()}}});var bu=p(($j,n_)=>{"use strict";var{ObjectSetPrototypeOf:i_}=ie();n_.exports=Vr;var _u=mu();i_(Vr.prototype,_u.prototype);i_(Vr,_u);function Vr(t){if(!(this instanceof Vr))return new Vr(t);_u.call(this,t)}Vr.prototype._transform=function(t,e,r){r(null,t)}});var Vs=p((Hj,u_)=>{"use strict";var Ki=Pt(),{ArrayIsArray:$L,Promise:HL,SymbolAsyncIterator:VL,SymbolDispose:YL}=ie(),Hs=mt(),{once:ZL}=Oe(),KL=ir(),s_=st(),{aggregateTwoErrors:QL,codes:{ERR_INVALID_ARG_TYPE:Ou,ERR_INVALID_RETURN_VALUE:wu,ERR_MISSING_ARGS:XL,ERR_STREAM_DESTROYED:JL,ERR_STREAM_PREMATURE_CLOSE:eN},AbortError:tN}=xe(),{validateFunction:rN,validateAbortSignal:iN}=Fr(),{isIterable:ar,isReadable:Su,isReadableNodeStream:$s,isNodeStream:o_,isTransformStream:Yr,isWebStream:nN,isReadableStream:Eu,isReadableFinished:sN}=rt(),oN=globalThis.AbortController||kr().AbortController,vu,xu,Tu;function a_(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Hs(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,KL.destroyer(t,s||new JL("pipe")))},cleanup:n}}function aN(t){return rN(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Au(t){if(ar(t))return t;if($s(t))return lN(t);throw new Ou("val",["Readable","Iterable","AsyncIterable"],t)}async function*lN(t){xu||(xu=$i()),yield*xu.prototype[VL].call(t)}async function zs(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new HL((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Hs(e,{readable:!1},o);try{e.writableNeedDrain&&await a();for await(let u of t)e.write(u)||await a();i&&(e.end(),await a()),r()}catch(u){r(n!==u?QL(n,u):u)}finally{l(),e.off("drain",o)}}async function Ru(t,e,r,{end:i}){Yr(e)&&(e=e.writable);let n=e.getWriter();try{for await(let s of t)await n.ready,n.write(s).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(s){try{await n.abort(s),r(s)}catch(o){r(o)}}}function uN(...t){return l_(t,ZL(aN(t)))}function l_(t,e,r){if(t.length===1&&$L(t[0])&&(t=t[0]),t.length<2)throw new XL("streams");let i=new oN,n=i.signal,s=r?.signal,o=[];iN(s,"options.signal");function a(){b(new tN)}Tu=Tu||Oe().addAbortListener;let l;s&&(l=Tu(s,a));let u,f,h=[],c=0;function d(S){b(S,--c===0)}function b(S,E){var A;if(S&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=S),!(!u&&!E)){for(;h.length;)h.shift()(u);(A=l)===null||A===void 0||A[YL](),i.abort(),E&&(u||o.forEach(L=>L()),Ki.nextTick(e,u,f))}}let g;for(let S=0;S<t.length;S++){let E=t[S],A=S<t.length-1,L=S>0,v=A||r?.end!==!1,O=S===t.length-1;if(o_(E)){let w=function(T){T&&T.name!=="AbortError"&&T.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(T)};var m=w;if(v){let{destroy:T,cleanup:R}=a_(E,A,L);h.push(T),Su(E)&&O&&o.push(R)}E.on("error",w),Su(E)&&O&&o.push(()=>{E.removeListener("error",w)})}if(S===0)if(typeof E=="function"){if(g=E({signal:n}),!ar(g))throw new wu("Iterable, AsyncIterable or Stream","source",g)}else ar(E)||$s(E)||Yr(E)?g=E:g=s_.from(E);else if(typeof E=="function"){if(Yr(g)){var x;g=Au((x=g)===null||x===void 0?void 0:x.readable)}else g=Au(g);if(g=E(g,{signal:n}),A){if(!ar(g,!0))throw new wu("AsyncIterable",`transform[${S-1}]`,g)}else{var y;vu||(vu=bu());let w=new vu({objectMode:!0}),T=(y=g)===null||y===void 0?void 0:y.then;if(typeof T=="function")c++,T.call(g,G=>{f=G,G!=null&&w.write(G),v&&w.end(),Ki.nextTick(d)},G=>{w.destroy(G),Ki.nextTick(d,G)});else if(ar(g,!0))c++,zs(g,w,d,{end:v});else if(Eu(g)||Yr(g)){let G=g.readable||g;c++,zs(G,w,d,{end:v})}else throw new wu("AsyncIterable or Promise","destination",g);g=w;let{destroy:R,cleanup:P}=a_(g,!1,!0);h.push(R),O&&o.push(P)}}else if(o_(E)){if($s(g)){c+=2;let w=fN(g,E,d,{end:v});Su(E)&&O&&o.push(w)}else if(Yr(g)||Eu(g)){let w=g.readable||g;c++,zs(w,E,d,{end:v})}else if(ar(g))c++,zs(g,E,d,{end:v});else throw new Ou("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=E}else if(nN(E)){if($s(g))c++,Ru(Au(g),E,d,{end:v});else if(Eu(g)||ar(g))c++,Ru(g,E,d,{end:v});else if(Yr(g))c++,Ru(g.readable,E,d,{end:v});else throw new Ou("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=E}else g=s_.from(E)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Ki.nextTick(a),g}function fN(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new eN)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;sN(t)?Ki.nextTick(o):t.once("end",o)}else r();return Hs(t,{readable:!0,writable:!1},o=>{let a=t._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once("end",r).once("error",r):r(o)}),Hs(e,{readable:!1,writable:!0},r)}u_.exports={pipelineImpl:l_,pipeline:uN}});var Iu=p((Vj,g_)=>{"use strict";var{pipeline:hN}=Vs(),Ys=st(),{destroyer:cN}=ir(),{isNodeStream:Zs,isReadable:f_,isWritable:h_,isWebStream:Du,isTransformStream:lr,isWritableStream:c_,isReadableStream:d_}=rt(),{AbortError:dN,codes:{ERR_INVALID_ARG_VALUE:p_,ERR_MISSING_ARGS:pN}}=xe(),gN=mt();g_.exports=function(...e){if(e.length===0)throw new pN("streams");if(e.length===1)return Ys.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Ys.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Ys.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Zs(e[d])&&!Du(e[d]))){if(d<e.length-1&&!(f_(e[d])||d_(e[d])||lr(e[d])))throw new p_(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(h_(e[d])||c_(e[d])||lr(e[d])))throw new p_(`streams[${d}]`,r[d],"must be writable")}let i,n,s,o,a;function l(d){let b=o;o=null,b?b(d):d?a.destroy(d):!c&&!h&&a.destroy()}let u=e[0],f=hN(e,l),h=!!(h_(u)||c_(u)||lr(u)),c=!!(f_(f)||d_(f)||lr(f));if(a=new Ys({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:h,readable:c}),h){if(Zs(u))a._write=function(b,g,x){u.write(b,g)?x():i=x},a._final=function(b){u.end(),n=b},u.on("drain",function(){if(i){let b=i;i=null,b()}});else if(Du(u)){let g=(lr(u)?u.writable:u).getWriter();a._write=async function(x,y,m){try{await g.ready,g.write(x).catch(()=>{}),m()}catch(S){m(S)}},a._final=async function(x){try{await g.ready,g.close().catch(()=>{}),n=x}catch(y){x(y)}}}let d=lr(f)?f.readable:f;gN(d,()=>{if(n){let b=n;n=null,b()}})}if(c){if(Zs(f))f.on("readable",function(){if(s){let d=s;s=null,d()}}),f.on("end",function(){a.push(null)}),a._read=function(){for(;;){let d=f.read();if(d===null){s=a._read;return}if(!a.push(d))return}};else if(Du(f)){let b=(lr(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:g,done:x}=await b.read();if(!a.push(g))return;if(x){a.push(null);return}}catch{return}}}}return a._destroy=function(d,b){!d&&o!==null&&(d=new dN),s=null,i=null,n=null,o===null?b(d):(o=b,Zs(f)&&cN(f,d))},a}});var T_=p((Yj,Pu)=>{"use strict";var yN=globalThis.AbortController||kr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:mN,ERR_INVALID_ARG_TYPE:Qi,ERR_MISSING_ARGS:_N,ERR_OUT_OF_RANGE:bN},AbortError:ot}=xe(),{validateAbortSignal:ur,validateInteger:y_,validateObject:fr}=Fr(),wN=ie().Symbol("kWeak"),SN=ie().Symbol("kResistStopPropagation"),{finished:EN}=mt(),vN=Iu(),{addAbortSignalNoValidate:xN}=Wi(),{isWritable:TN,isNodeStream:AN}=rt(),{deprecate:RN}=Oe(),{ArrayPrototypePush:ON,Boolean:DN,MathFloor:m_,Number:IN,NumberIsNaN:LN,Promise:__,PromiseReject:b_,PromiseResolve:NN,PromisePrototypeThen:w_,Symbol:E_}=ie(),Ks=E_("kEmpty"),S_=E_("kEof");function PN(t,e){if(e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),AN(t)&&!TN(t))throw new mN("stream",t,"must be writable");let r=vN(this,t);return e!=null&&e.signal&&xN(e.signal,r),r}function Qs(t,e){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=m_(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=m_(e.highWaterMark)),y_(r,"options.concurrency",1),y_(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(DN)),o=this,a=[],l={signal:s},u,f,h=!1,c=0;function d(){h=!0,b()}function b(){c-=1,g()}function g(){f&&!h&&c<r&&a.length<i&&(f(),f=null)}async function x(){try{for await(let y of o){if(h)return;if(s.aborted)throw new ot;try{if(y=t(y,l),y===Ks)continue;y=NN(y)}catch(m){y=b_(m)}c+=1,w_(y,b,d),a.push(y),u&&(u(),u=null),!h&&(a.length>=i||c>=r)&&await new __(m=>{f=m})}a.push(S_)}catch(y){let m=b_(y);w_(m,b,d),a.push(m)}finally{h=!0,u&&(u(),u=null)}}x();try{for(;;){for(;a.length>0;){let y=await a[0];if(y===S_)return;if(s.aborted)throw new ot;y!==Ks&&(yield y),a.shift(),g()}await new __(y=>{u=y})}}finally{h=!0,f&&(f(),f=null)}}.call(this)}function MN(t=void 0){return t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ot({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function v_(t,e=void 0){for await(let r of Nu.call(this,t,e))return!0;return!1}async function CN(t,e=void 0){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);return!await v_.call(this,async(...r)=>!await t(...r),e)}async function kN(t,e){for await(let r of Nu.call(this,t,e))return r}async function qN(t,e){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),Ks}for await(let i of Qs.call(this,r,e));}function Nu(t,e){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:Ks}return Qs.call(this,r,e)}var Lu=class extends _N{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function FN(t,e,r){var i;if(typeof t!="function")throw new Qi("reducer",["Function","AsyncFunction"],t);r!=null&&fr(r,"options"),r?.signal!=null&&ur(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new ot(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await EN(this.destroy(u)),u}let s=new yN,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[wN]:this,[SN]:!0};r.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ot;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new Lu}finally{s.abort()}return e}async function BN(t){t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal");let e=[];for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ot(void 0,{cause:t.signal.reason});ON(e,i)}return e}function jN(t,e){let r=Qs.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function x_(t){if(t=IN(t),LN(t))return 0;if(t<0)throw new bN("number",">= 0",t);return t}function WN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=x_(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;t--<=0&&(yield s)}}.call(this)}function UN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=x_(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;if(t-- >0&&(yield s),t<=0)return}}.call(this)}Pu.exports.streamReturningOperators={asIndexedPairs:RN(MN,"readable.asIndexedPairs will be removed in a future version."),drop:WN,filter:Nu,flatMap:jN,map:Qs,take:UN,compose:PN};Pu.exports.promiseReturningOperators={every:CN,forEach:qN,reduce:FN,toArray:BN,some:v_,find:kN}});var Mu=p((Zj,A_)=>{"use strict";var{ArrayPrototypePop:GN,Promise:zN}=ie(),{isIterable:$N,isNodeStream:HN,isWebStream:VN}=rt(),{pipelineImpl:YN}=Vs(),{finished:ZN}=mt();Cu();function KN(...t){return new zN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!HN(s)&&!$N(s)&&!VN(s)){let o=GN(t);i=o.signal,n=o.end}YN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}A_.exports={finished:ZN,pipeline:KN}});var Cu=p((Kj,C_)=>{"use strict";var{Buffer:QN}=I("buffer"),{ObjectDefineProperty:wt,ObjectKeys:D_,ReflectApply:I_}=ie(),{promisify:{custom:L_}}=Oe(),{streamReturningOperators:R_,promiseReturningOperators:O_}=T_(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:N_}}=xe(),XN=Iu(),{setDefaultHighWaterMark:JN,getDefaultHighWaterMark:eP}=Ui(),{pipeline:P_}=Vs(),{destroyer:tP}=ir(),M_=mt(),ku=Mu(),Xi=rt(),ee=C_.exports=Is().Stream;ee.isDestroyed=Xi.isDestroyed;ee.isDisturbed=Xi.isDisturbed;ee.isErrored=Xi.isErrored;ee.isReadable=Xi.isReadable;ee.isWritable=Xi.isWritable;ee.Readable=$i();for(let t of D_(R_)){let r=function(...i){if(new.target)throw N_();return ee.Readable.from(I_(e,this,i))},e=R_[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of D_(O_)){let r=function(...i){if(new.target)throw N_();return I_(e,this,i)},e=O_[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}ee.Writable=Gs();ee.Duplex=st();ee.Transform=mu();ee.PassThrough=bu();ee.pipeline=P_;var{addAbortSignal:rP}=Wi();ee.addAbortSignal=rP;ee.finished=M_;ee.destroy=tP;ee.compose=XN;ee.setDefaultHighWaterMark=JN;ee.getDefaultHighWaterMark=eP;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return ku}});wt(P_,L_,{__proto__:null,enumerable:!0,get(){return ku.pipeline}});wt(M_,L_,{__proto__:null,enumerable:!0,get(){return ku.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return QN.from(e.buffer,e.byteOffset,e.byteLength)}});var hr=p((Qj,B)=>{"use strict";var ce=I("stream");if(ce&&process.env.READABLE_STREAM==="disable"){let t=ce.promises;B.exports._uint8ArrayToBuffer=ce._uint8ArrayToBuffer,B.exports._isUint8Array=ce._isUint8Array,B.exports.isDisturbed=ce.isDisturbed,B.exports.isErrored=ce.isErrored,B.exports.isReadable=ce.isReadable,B.exports.Readable=ce.Readable,B.exports.Writable=ce.Writable,B.exports.Duplex=ce.Duplex,B.exports.Transform=ce.Transform,B.exports.PassThrough=ce.PassThrough,B.exports.addAbortSignal=ce.addAbortSignal,B.exports.finished=ce.finished,B.exports.destroy=ce.destroy,B.exports.pipeline=ce.pipeline,B.exports.compose=ce.compose,Object.defineProperty(ce,"promises",{configurable:!0,enumerable:!0,get(){return t}}),B.exports.Stream=ce.Stream}else{let t=Cu(),e=Mu(),r=t.Readable.destroy;B.exports=t.Readable,B.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,B.exports._isUint8Array=t._isUint8Array,B.exports.isDisturbed=t.isDisturbed,B.exports.isErrored=t.isErrored,B.exports.isReadable=t.isReadable,B.exports.Readable=t.Readable,B.exports.Writable=t.Writable,B.exports.Duplex=t.Duplex,B.exports.Transform=t.Transform,B.exports.PassThrough=t.PassThrough,B.exports.addAbortSignal=t.addAbortSignal,B.exports.finished=t.finished,B.exports.destroy=t.destroy,B.exports.destroy=r,B.exports.pipeline=t.pipeline,B.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),B.exports.Stream=t.Stream}B.exports.default=B.exports});var q_=p((Xj,k_)=>{"use strict";function iP(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}k_.exports=iP});var W_=p((Jj,j_)=>{"use strict";var F_=gs(),nP=_l(),sP=bl(),B_=F_?F_.isConcatSpreadable:void 0;function oP(t){return sP(t)||nP(t)||!!(B_&&t&&t[B_])}j_.exports=oP});var Xs=p((e4,G_)=>{"use strict";var aP=q_(),lP=W_();function U_(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=lP),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?U_(a,e-1,r,i,n):aP(n,a):i||(n[n.length]=a)}return n}G_.exports=U_});var $_=p((t4,z_)=>{"use strict";var uP=Xs();function fP(t){var e=t==null?0:t.length;return e?uP(t,1):[]}z_.exports=fP});var Ji=p((r4,H_)=>{"use strict";var hP=Ni(),cP=hP(Object,"create");H_.exports=cP});var Z_=p((i4,Y_)=>{"use strict";var V_=Ji();function dP(){this.__data__=V_?V_(null):{},this.size=0}Y_.exports=dP});var Q_=p((n4,K_)=>{"use strict";function pP(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}K_.exports=pP});var J_=p((s4,X_)=>{"use strict";var gP=Ji(),yP="__lodash_hash_undefined__",mP=Object.prototype,_P=mP.hasOwnProperty;function bP(t){var e=this.__data__;if(gP){var r=e[t];return r===yP?void 0:r}return _P.call(e,t)?e[t]:void 0}X_.exports=bP});var tb=p((o4,eb)=>{"use strict";var wP=Ji(),SP=Object.prototype,EP=SP.hasOwnProperty;function vP(t){var e=this.__data__;return wP?e[t]!==void 0:EP.call(e,t)}eb.exports=vP});var ib=p((a4,rb)=>{"use strict";var xP=Ji(),TP="__lodash_hash_undefined__";function AP(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=xP&&e===void 0?TP:e,this}rb.exports=AP});var sb=p((l4,nb)=>{"use strict";var RP=Z_(),OP=Q_(),DP=J_(),IP=tb(),LP=ib();function Zr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Zr.prototype.clear=RP;Zr.prototype.delete=OP;Zr.prototype.get=DP;Zr.prototype.has=IP;Zr.prototype.set=LP;nb.exports=Zr});var ab=p((u4,ob)=>{"use strict";function NP(){this.__data__=[],this.size=0}ob.exports=NP});var en=p((f4,lb)=>{"use strict";var PP=ms();function MP(t,e){for(var r=t.length;r--;)if(PP(t[r][0],e))return r;return-1}lb.exports=MP});var fb=p((h4,ub)=>{"use strict";var CP=en(),kP=Array.prototype,qP=kP.splice;function FP(t){var e=this.__data__,r=CP(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():qP.call(e,r,1),--this.size,!0}ub.exports=FP});var cb=p((c4,hb)=>{"use strict";var BP=en();function jP(t){var e=this.__data__,r=BP(e,t);return r<0?void 0:e[r][1]}hb.exports=jP});var pb=p((d4,db)=>{"use strict";var WP=en();function UP(t){return WP(this.__data__,t)>-1}db.exports=UP});var yb=p((p4,gb)=>{"use strict";var GP=en();function zP(t,e){var r=this.__data__,i=GP(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}gb.exports=zP});var _b=p((g4,mb)=>{"use strict";var $P=ab(),HP=fb(),VP=cb(),YP=pb(),ZP=yb();function Kr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Kr.prototype.clear=$P;Kr.prototype.delete=HP;Kr.prototype.get=VP;Kr.prototype.has=YP;Kr.prototype.set=ZP;mb.exports=Kr});var wb=p((y4,bb)=>{"use strict";var KP=Ni(),QP=Lr(),XP=KP(QP,"Map");bb.exports=XP});var vb=p((m4,Eb)=>{"use strict";var Sb=sb(),JP=_b(),eM=wb();function tM(){this.size=0,this.__data__={hash:new Sb,map:new(eM||JP),string:new Sb}}Eb.exports=tM});var Tb=p((_4,xb)=>{"use strict";function rM(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}xb.exports=rM});var tn=p((b4,Ab)=>{"use strict";var iM=Tb();function nM(t,e){var r=t.__data__;return iM(e)?r[typeof e=="string"?"string":"hash"]:r.map}Ab.exports=nM});var Ob=p((w4,Rb)=>{"use strict";var sM=tn();function oM(t){var e=sM(this,t).delete(t);return this.size-=e?1:0,e}Rb.exports=oM});var Ib=p((S4,Db)=>{"use strict";var aM=tn();function lM(t){return aM(this,t).get(t)}Db.exports=lM});var Nb=p((E4,Lb)=>{"use strict";var uM=tn();function fM(t){return uM(this,t).has(t)}Lb.exports=fM});var Mb=p((v4,Pb)=>{"use strict";var hM=tn();function cM(t,e){var r=hM(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Pb.exports=cM});var kb=p((x4,Cb)=>{"use strict";var dM=vb(),pM=Ob(),gM=Ib(),yM=Nb(),mM=Mb();function Qr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Qr.prototype.clear=dM;Qr.prototype.delete=pM;Qr.prototype.get=gM;Qr.prototype.has=yM;Qr.prototype.set=mM;Cb.exports=Qr});var Fb=p((T4,qb)=>{"use strict";var _M="__lodash_hash_undefined__";function bM(t){return this.__data__.set(t,_M),this}qb.exports=bM});var jb=p((A4,Bb)=>{"use strict";function wM(t){return this.__data__.has(t)}Bb.exports=wM});var qu=p((R4,Wb)=>{"use strict";var SM=kb(),EM=Fb(),vM=jb();function Js(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new SM;++e<r;)this.add(t[e])}Js.prototype.add=Js.prototype.push=EM;Js.prototype.has=vM;Wb.exports=Js});var Gb=p((O4,Ub)=>{"use strict";function xM(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}Ub.exports=xM});var $b=p((D4,zb)=>{"use strict";function TM(t){return t!==t}zb.exports=TM});var Vb=p((I4,Hb)=>{"use strict";function AM(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}Hb.exports=AM});var Zb=p((L4,Yb)=>{"use strict";var RM=Gb(),OM=$b(),DM=Vb();function IM(t,e,r){return e===e?DM(t,e,r):RM(t,OM,r)}Yb.exports=IM});var Fu=p((N4,Kb)=>{"use strict";var LM=Zb();function NM(t,e){var r=t==null?0:t.length;return!!r&&LM(t,e,0)>-1}Kb.exports=NM});var Bu=p((P4,Qb)=>{"use strict";function PM(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}Qb.exports=PM});var Jb=p((M4,Xb)=>{"use strict";function MM(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}Xb.exports=MM});var ju=p((C4,ew)=>{"use strict";function CM(t,e){return t.has(e)}ew.exports=CM});var rw=p((k4,tw)=>{"use strict";var kM=qu(),qM=Fu(),FM=Bu(),BM=Jb(),jM=wl(),WM=ju(),UM=200;function GM(t,e,r,i){var n=-1,s=qM,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=BM(e,jM(r))),i?(s=FM,o=!1):e.length>=UM&&(s=WM,o=!1,e=new kM(e));e:for(;++n<a;){var f=t[n],h=r==null?f:r(f);if(f=i||f!==0?f:0,o&&h===h){for(var c=u;c--;)if(e[c]===h)continue e;l.push(f)}else s(e,h,i)||l.push(f)}return l}tw.exports=GM});var Wu=p((q4,iw)=>{"use strict";var zM=_s(),$M=Nr();function HM(t){return $M(t)&&zM(t)}iw.exports=HM});var ow=p((F4,sw)=>{"use strict";var VM=rw(),YM=Xs(),ZM=ys(),nw=Wu(),KM=ZM(function(t,e){return nw(t)?VM(t,YM(e,1,nw,!0)):[]});sw.exports=KM});var lw=p((B4,aw)=>{"use strict";var QM=Ni(),XM=Lr(),JM=QM(XM,"Set");aw.exports=JM});var fw=p((j4,uw)=>{"use strict";function e2(){}uw.exports=e2});var Uu=p((W4,hw)=>{"use strict";function t2(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}hw.exports=t2});var dw=p((U4,cw)=>{"use strict";var Gu=lw(),r2=fw(),i2=Uu(),n2=1/0,s2=Gu&&1/i2(new Gu([,-0]))[1]==n2?function(t){return new Gu(t)}:r2;cw.exports=s2});var gw=p((G4,pw)=>{"use strict";var o2=qu(),a2=Fu(),l2=Bu(),u2=ju(),f2=dw(),h2=Uu(),c2=200;function d2(t,e,r){var i=-1,n=a2,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=l2;else if(s>=c2){var u=e?null:f2(t);if(u)return h2(u);o=!1,n=u2,l=new o2}else l=e?[]:a;e:for(;++i<s;){var f=t[i],h=e?e(f):f;if(f=r||f!==0?f:0,o&&h===h){for(var c=l.length;c--;)if(l[c]===h)continue e;e&&l.push(h),a.push(f)}else n(l,h,r)||(l!==a&&l.push(h),a.push(f))}return a}pw.exports=d2});var mw=p((z4,yw)=>{"use strict";var p2=Xs(),g2=ys(),y2=gw(),m2=Wu(),_2=g2(function(t){return y2(p2(t,1,m2,!0))});yw.exports=_2});var bw=p(($4,_w)=>{"use strict";function b2(t,e){return function(r){return t(e(r))}}_w.exports=b2});var Sw=p((H4,ww)=>{"use strict";var w2=bw(),S2=w2(Object.getPrototypeOf,Object);ww.exports=S2});var xw=p((V4,vw)=>{"use strict";var E2=Ii(),v2=Sw(),x2=Nr(),T2="[object Object]",A2=Function.prototype,R2=Object.prototype,Ew=A2.toString,O2=R2.hasOwnProperty,D2=Ew.call(Object);function I2(t){if(!x2(t)||E2(t)!=T2)return!1;var e=v2(t);if(e===null)return!0;var r=O2.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Ew.call(r)==D2}vw.exports=I2});var Tw=p(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.assertValidPattern=void 0;var L2=1024*64,N2=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>L2)throw new TypeError("pattern is too long")};eo.assertValidPattern=N2});var Rw=p(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.parseClass=void 0;var P2={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},rn=t=>t.replace(/[[\]\\-]/g,"\\$&"),M2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Aw=t=>t.join(""),C2=(t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],s=r+1,o=!1,a=!1,l=!1,u=!1,f=r,h="";e:for(;s<t.length;){let g=t.charAt(s);if((g==="!"||g==="^")&&s===r+1){u=!0,s++;continue}if(g==="]"&&o&&!l){f=s+1;break}if(o=!0,g==="\\"&&!l){l=!0,s++;continue}if(g==="["&&!l){for(let[x,[y,m,S]]of Object.entries(P2))if(t.startsWith(x,s)){if(h)return["$.",!1,t.length-r,!0];s+=x.length,S?n.push(y):i.push(y),a=a||m;continue e}}if(l=!1,h){g>h?i.push(rn(h)+"-"+rn(g)):g===h&&i.push(rn(g)),h="",s++;continue}if(t.startsWith("-]",s+1)){i.push(rn(g+"-")),s+=2;continue}if(t.startsWith("-",s+1)){h=g,s+=2;continue}i.push(rn(g)),s++}if(f<s)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,t.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let g=i[0].length===2?i[0].slice(-1):i[0];return[M2(g),!1,f-r,!1]}let c="["+(u?"^":"")+Aw(i)+"]",d="["+(u?"":"^")+Aw(n)+"]";return[i.length&&n.length?"("+c+"|"+d+")":i.length?c:d,a,f-r,!0]};to.parseClass=C2});var io=p(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.unescape=void 0;var k2=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");ro.unescape=k2});var Hu=p(ao=>{"use strict";var Ne;Object.defineProperty(ao,"__esModule",{value:!0});ao.AST=void 0;var q2=Rw(),no=io(),F2=new Set(["!","?","+","*","@"]),zu=t=>F2.has(t),Ow=t=>zu(t.type),B2=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),j2=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),W2=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Dw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),U2="(?!(?:^|/)\\.\\.?(?:$|/))",so="(?!\\.)",G2=new Set(["[","."]),z2=new Set(["..","."]),$2=new Set("().*{}+?[]^$\\!"),H2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),$u="[^/]",Iw=$u+"*?",Lw=$u+"+?",oo=class{type;#e;#r;#n=!1;#t=[];#o;#S;#u;#h=!1;#l;#a;#s=!1;constructor(e,r,i={}){this.type=e,e&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?i:this.#e.#l,this.#u=this.#e===this?[]:this.#e.#u,e==="!"&&!this.#e.#h&&this.#u.push(this),this.#S=this.#o?this.#o.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#a=this.#t.map(e=>String(e)).join("")}#m(){if(this!==this.#e)throw new Error("should only call on root");if(this.#h)return this;this.toString(),this.#h=!0;let e;for(;e=this.#u.pop();){if(e.type!=="!")continue;let r=e,i=r.#o;for(;i;){for(let n=r.#S+1;!i.type&&n<i.#t.length;n++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#t[n])}r=i,i=r.#o}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof Ne&&r.#o===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#h&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#S===0)return!0;let e=this.#o;for(let r=0;r<this.#S;r++){let i=e.#t[r];if(!(i instanceof Ne&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#t.length:0;return this.#S===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new Ne(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#_(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let g=i,x="";for(;g<e.length;){let y=e.charAt(g++);if(a||y==="\\"){a=!a,x+=y;continue}if(l){g===u+1?(y==="^"||y==="!")&&(f=!0):y==="]"&&!(g===u+2&&f)&&(l=!1),x+=y;continue}else if(y==="["){l=!0,u=g,f=!1,x+=y;continue}if(!n.noext&&zu(y)&&e.charAt(g)==="("&&s<=o){r.push(x),x="";let S=new Ne(y,r);g=Ne.#_(e,S,g,n,s+1),r.push(S);continue}x+=y}return r.push(x),g}let h=i+1,c=new Ne(null,r),d=[],b="";for(;h<e.length;){let g=e.charAt(h++);if(a||g==="\\"){a=!a,b+=g;continue}if(l){h===u+1?(g==="^"||g==="!")&&(f=!0):g==="]"&&!(h===u+2&&f)&&(l=!1),b+=g;continue}else if(g==="["){l=!0,u=h,f=!1,b+=g;continue}if(zu(g)&&e.charAt(h)==="("&&(s<=o||r&&r.#E(g))){let y=r&&r.#E(g)?0:1;c.push(b),b="";let m=new Ne(g,c);c.push(m),h=Ne.#_(e,m,h,n,s+y);continue}if(g==="|"){c.push(b),b="",d.push(c),c=new Ne(null,r);continue}if(g===")")return b===""&&r.#t.length===0&&(r.#s=!0),c.push(b),b="",r.push(...d,c),h;b+=g}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],h}#g(e){return this.#d(e,j2)}#d(e,r=B2){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let i=e.#t[0];return!i||typeof i!="object"||i.type===null?!1:this.#E(i.type,r)}#E(e,r=W2){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Ne(null,i,this.options);n.#t.push(""),i.push(n),this.#x(e,r)}#x(e,r){let i=e.#t[0];this.#t.splice(r,1,...i.#t);for(let n of i.#t)typeof n=="object"&&(n.#o=this);this.#a=void 0}#T(e){return!!Dw.get(this.type)?.has(e)}#y(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#T(r.type)}#v(e){let r=Dw.get(this.type),i=e.#t[0],n=r?.get(i.type);if(!n)return!1;this.#t=i.#t;for(let s of this.#t)typeof s=="object"&&(s.#o=this);this.type=n,this.#a=void 0,this.#s=!1}#b(){if(Ow(this)){let e=0,r=!1;do{r=!0;for(let i=0;i<this.#t.length;i++){let n=this.#t[i];typeof n=="object"&&(n.#b(),this.#d(n)?(r=!1,this.#x(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#y(n)&&(r=!1,this.#v(n)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#b();this.#a=void 0}static fromGlob(e,r={}){let i=new Ne(null,void 0,r);return Ne.#_(e,i,0,r,0),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,i,n,s]=this.toRegExpSource();if(!(n||this.#r||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:e})}get options(){return this.#l}toRegExpSource(e){let r=e??!!this.#l.dot;if(this.#e===this&&(this.#b(),this.#m()),!Ow(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(d=>{let[b,g,x,y]=typeof d=="string"?Ne.#A(d,this.#r,l):d.toRegExpSource(e);return this.#r=this.#r||x,this.#n=this.#n||y,b}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&z2.has(this.#t[0]))){let b=G2,g=r&&b.has(u.charAt(0))||u.startsWith("\\.")&&b.has(u.charAt(2))||u.startsWith("\\.\\.")&&b.has(u.charAt(4)),x=!r&&!e&&b.has(u.charAt(0));f=g?U2:x?so:""}let h="";return this.isEnd()&&this.#e.#h&&this.#o?.type==="!"&&(h="(?:$|\\/)"),[f+u+h,(0,no.unescape)(u),this.#r=!!this.#r,this.#n]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#c(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,no.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!so?"":this.#c(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?so:"")+Lw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?so:"")+Iw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,no.unescape)(s),this.#r=!!this.#r,this.#n]}#c(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=r.toRegExpSource(e);return this.#n=this.#n||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#A(e,r,i=!1){let n=!1,s="",o=!1,a=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(n){n=!1,s+=($2.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,h,c,d]=(0,q2.parseClass)(e,l);if(c){s+=f,o=o||h,l+=c-1,r=r||d,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?Lw:Iw,r=!0;continue}else a=!1;if(u==="?"){s+=$u,r=!0;continue}s+=H2(u)}return[s,(0,no.unescape)(e),!!r,o]}};ao.AST=oo;Ne=oo});var Vu=p(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.escape=void 0;var V2=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");lo.escape=V2});var qt=p(D=>{"use strict";var Y2=D&&D.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(D,"__esModule",{value:!0});D.unescape=D.escape=D.AST=D.Minimatch=D.match=D.makeRe=D.braceExpand=D.defaults=D.filter=D.GLOBSTAR=D.sep=D.minimatch=void 0;var Z2=Y2(ea()),uo=Tw(),Mw=Hu(),K2=Vu(),Q2=io(),X2=(t,e,r={})=>((0,uo.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new cr(e,r).match(t));D.minimatch=X2;var J2=/^\*+([^+@!?\*\[\(]*)$/,eC=t=>e=>!e.startsWith(".")&&e.endsWith(t),tC=t=>e=>e.endsWith(t),rC=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),iC=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),nC=/^\*+\.\*+$/,sC=t=>!t.startsWith(".")&&t.includes("."),oC=t=>t!=="."&&t!==".."&&t.includes("."),aC=/^\.\*+$/,lC=t=>t!=="."&&t!==".."&&t.startsWith("."),uC=/^\*+$/,fC=t=>t.length!==0&&!t.startsWith("."),hC=t=>t.length!==0&&t!=="."&&t!=="..",cC=/^\?+([^+@!?\*\[\(]*)?$/,dC=([t,e=""])=>{let r=Cw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},pC=([t,e=""])=>{let r=kw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},gC=([t,e=""])=>{let r=kw([t]);return e?i=>r(i)&&i.endsWith(e):r},yC=([t,e=""])=>{let r=Cw([t]);return e?i=>r(i)&&i.endsWith(e):r},Cw=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},kw=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},qw=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Nw={win32:{sep:"\\"},posix:{sep:"/"}};D.sep=qw==="win32"?Nw.win32.sep:Nw.posix.sep;D.minimatch.sep=D.sep;D.GLOBSTAR=Symbol("globstar **");D.minimatch.GLOBSTAR=D.GLOBSTAR;var mC="[^/]",_C=mC+"*?",bC="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wC="(?:(?!(?:\\/|^)\\.).)*?",SC=(t,e={})=>r=>(0,D.minimatch)(r,t,e);D.filter=SC;D.minimatch.filter=D.filter;var We=(t,e={})=>Object.assign({},t,e),EC=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return D.minimatch;let e=D.minimatch;return Object.assign((i,n,s={})=>e(i,n,We(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,We(t,s))}static defaults(n){return e.defaults(We(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,We(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,We(t,s))}},unescape:(i,n={})=>e.unescape(i,We(t,n)),escape:(i,n={})=>e.escape(i,We(t,n)),filter:(i,n={})=>e.filter(i,We(t,n)),defaults:i=>e.defaults(We(t,i)),makeRe:(i,n={})=>e.makeRe(i,We(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,We(t,n)),match:(i,n,s={})=>e.match(i,n,We(t,s)),sep:e.sep,GLOBSTAR:D.GLOBSTAR})};D.defaults=EC;D.minimatch.defaults=D.defaults;var vC=(t,e={})=>((0,uo.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,Z2.default)(t));D.braceExpand=vC;D.minimatch.braceExpand=D.braceExpand;var xC=(t,e={})=>new cr(t,e).makeRe();D.makeRe=xC;D.minimatch.makeRe=D.makeRe;var TC=(t,e,r={})=>{let i=new cr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};D.match=TC;D.minimatch.match=D.match;var Pw=/[?*]|[+@!]\(.*?\)|\[|\]/,AC=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),cr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,uo.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||qw,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!Pw.test(s[2]))&&!Pw.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let n=0;n<e[i].length;n++)e[i][n]==="**"&&(e[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let s=e[n];n===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let n=e[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,e.splice(i-1,2),i-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let i of e){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let a=i[n+1],l=i[n+2],u=i[n+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,i.splice(n,1);let f=i.slice(0);f[n]="**",e.push(f),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let l=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...l),i.length===0&&i.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let i=r+1;i<e.length;i++){let n=this.partsMatch(e[r],e[i],!this.preserveMultipleSlashes);if(n){e[r]=[],e[i]=n;break}}return e.filter(r=>r.length)}partsMatch(e,r,i=!1){let n=0,s=0,o=[],a="";for(;n<e.length&&s<r.length;)if(e[n]===r[s])o.push(a==="b"?r[s]:e[n]),n++,s++;else if(i&&e[n]==="**"&&r[s]===e[n+1])o.push(e[n]),n++;else if(i&&r[s]==="**"&&e[n]===r[s+1])o.push(r[s]),s++;else if(e[n]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[n]),n++,s++}else if(r[s]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),n++,s++}else return!1;return e.length===r.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i=!1){let n=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),f=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),h=l?3:a?0:void 0,c=f?3:u?0:void 0;if(typeof h=="number"&&typeof c=="number"){let[d,b]=[e[h],r[c]];d.toLowerCase()===b.toLowerCase()&&(r[c]=d,s=c,n=h)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(D.GLOBSTAR)?this.#e(e,r,i,n,s):this.#n(e,r,i,n,s)}#e(e,r,i,n,s){let o=r.indexOf(D.GLOBSTAR,s),a=r.lastIndexOf(D.GLOBSTAR),[l,u,f]=i?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(l.length){let m=e.slice(n,n+l.length);if(!this.#n(m,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let m=e.length-f.length;if(this.#n(e,f,i,m,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(m--,!this.#n(e,f,i,m,0)))return!1;h=f.length+1}}if(!u.length){let m=!!h;for(let S=n;S<e.length-h;S++){let E=String(e[S]);if(m=!0,E==="."||E===".."||!this.options.dot&&E.startsWith("."))return!1}return i||m}let c=[[[],0]],d=c[0],b=0,g=[0];for(let m of u)m===D.GLOBSTAR?(g.push(b),d=[[],0],c.push(d)):(d[0].push(m),b++);let x=c.length-1,y=e.length-h;for(let m of c)m[1]=y-(g[x--]+m[0].length);return!!this.#r(e,c,n,0,i,0,!!h)}#r(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let h=i;h<e.length;h++){a=!0;let c=e[h];if(c==="."||c===".."||!this.options.dot&&c.startsWith("."))return!1}return a}let[u,f]=l;for(;i<=f;){if(this.#n(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let c=e[i];if(c==="."||c===".."||!this.options.dot&&c.startsWith("."))return!1;i++}return s||null}#n(e,r,i,n,s){let o,a,l,u;for(o=n,a=s,u=e.length,l=r.length;o<u&&a<l;o++,a++){this.debug("matchOne loop");let f=r[a],h=e[o];if(this.debug(r,f,h),f===!1||f===D.GLOBSTAR)return!1;let c;if(typeof f=="string"?(c=h===f,this.debug("string match",f,h,c)):(c=f.test(h),this.debug("pattern match",f,h,c)),!c)return!1}if(o===u&&a===l)return!0;if(o===u)return i;if(a===l)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,D.braceExpand)(this.pattern,this.options)}parse(e){(0,uo.assertValidPattern)(e);let r=this.options;if(e==="**")return D.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(uC))?n=r.dot?hC:fC:(i=e.match(J2))?n=(r.nocase?r.dot?iC:rC:r.dot?tC:eC)(i[1]):(i=e.match(cC))?n=(r.nocase?r.dot?pC:dC:r.dot?gC:yC)(i):(i=e.match(nC))?n=r.dot?oC:sC:(i=e.match(aC))&&(n=lC);let s=Mw.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?_C:r.dot?bC:wC,n=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?AC(f):f===D.GLOBSTAR?D.GLOBSTAR:f._src});return u.forEach((f,h)=>{let c=u[h+1],d=u[h-1];f!==D.GLOBSTAR||d===D.GLOBSTAR||(d===void 0?c!==void 0&&c!==D.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+c:u[h]=i:c===void 0?u[h-1]=d+"(?:\\/|"+i+")?":c!==D.GLOBSTAR&&(u[h-1]=d+"(?:\\/|\\/"+i+"\\/)"+c,u[h+1]=D.GLOBSTAR))}),u.filter(f=>f!==D.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let l=s[a],u=n;if(i.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return D.minimatch.defaults(e).Minimatch}};D.Minimatch=cr;var RC=Hu();Object.defineProperty(D,"AST",{enumerable:!0,get:function(){return RC.AST}});var OC=Vu();Object.defineProperty(D,"escape",{enumerable:!0,get:function(){return OC.escape}});var DC=io();Object.defineProperty(D,"unescape",{enumerable:!0,get:function(){return DC.unescape}});D.minimatch.AST=Mw.AST;D.minimatch.Minimatch=cr;D.minimatch.escape=K2.escape;D.minimatch.unescape=Q2.unescape});var Uw=p(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.LRUCache=void 0;var Xr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Bw=new Set,Yu=typeof process=="object"&&process?process:{},jw=(t,e,r,i)=>{typeof Yu.emitWarning=="function"?Yu.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},fo=globalThis.AbortController,Fw=globalThis.AbortSignal;if(typeof fo>"u"){Fw=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},fo=class{constructor(){e()}signal=new Fw;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=Yu.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,jw("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var IC=t=>!Bw.has(t),Ft=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Ww=t=>Ft(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Jr:null:null,Jr=class extends Array{constructor(e){super(e),this.fill(0)}},Zu=class t{heap;length;static#e=!1;static create(e){let r=Ww(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Ku=class t{#e;#r;#n;#t;#o;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#h;#l;#a;#s;#m;#_;#g;#d;#E;#p;#x;#T;#y;#v;#b;#c;static unsafeExposeInternals(e){return{starts:e.#T,ttls:e.#y,sizes:e.#x,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#m,prev:e.#_,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#F(r,i,n,s),moveToTail:r=>e.#j(r),indexes:r=>e.#O(r),rindexes:r=>e.#D(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#h}get size(){return this.#u}get fetchMethod(){return this.#o}get memoMethod(){return this.#S}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:c,maxSize:d=0,maxEntrySize:b=0,sizeCalculation:g,fetchMethod:x,memoMethod:y,noDeleteOnFetchRejection:m,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:A,ignoreFetchAbort:L}=e;if(r!==0&&!Ft(r))throw new TypeError("max option must be a nonnegative integer");let v=r?Ww(r):Array;if(!v)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=b||this.#r,this.sizeCalculation=g,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=y,x!==void 0&&typeof x!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=x,this.#b=!!x,this.#l=new Map,this.#a=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#m=new v(r),this.#_=new v(r),this.#g=0,this.#d=0,this.#E=Zu.create(r),this.#u=0,this.#h=0,typeof u=="function"&&(this.#n=u),typeof f=="function"?(this.#t=f,this.#p=[]):(this.#t=void 0,this.#p=void 0),this.#v=!!this.#n,this.#c=!!this.#t,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!c,this.noDeleteOnFetchRejection=!!m,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!A,this.ignoreFetchAbort=!!L,this.maxEntrySize!==0){if(this.#r!==0&&!Ft(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ft(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#I()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Ft(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!Ft(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#A()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let O="LRU_CACHE_UNBOUNDED";IC(O)&&(Bw.add(O),jw("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#A(){let e=new Jr(this.#e),r=new Jr(this.#e);this.#y=e,this.#T=r,this.#N=(s,o,a=Xr.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#L(this.#a[s],"expire")},o+1);l.unref&&l.unref()}},this.#R=s=>{r[s]=e[s]!==0?Xr.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let u=s.now-l;s.remainingTTL=a-u}};let i=0,n=()=>{let s=Xr.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=r[o];if(!a||!l)return 1/0;let u=(i||n())-l;return a-u},this.#w=s=>{let o=r[s],a=e[s];return!!a&&!!o&&(i||n())-o>a}}#R=()=>{};#i=()=>{};#N=()=>{};#w=()=>!1;#I(){let e=new Jr(this.#e);this.#h=0,this.#x=e,this.#P=r=>{this.#h-=e[r],e[r]=0},this.#C=(r,i,n,s)=>{if(this.#f(i))return 0;if(!Ft(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!Ft(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#M=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#h>s;)this.#q(!0)}this.#h+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#h)}}#P=e=>{};#M=(e,r,i)=>{};#C=(e,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#d;!(!this.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#_[r]}*#D({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#m[r]}#k(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#O())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*rentries(){for(let e of this.#D())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*keys(){for(let e of this.#O()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*rkeys(){for(let e of this.#D()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*values(){for(let e of this.#O())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#D())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&e(s,this.#a[i],this))return this.get(this.#a[i],r)}}forEach(e,r=this){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}rforEach(e,r=this){for(let i of this.#D()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}purgeStale(){let e=!1;for(let r of this.#D({allowStale:!0}))this.#w(r)&&(this.#L(this.#a[r],"expire"),e=!0);return e}info(e){let r=this.#l.get(e);if(r===void 0)return;let i=this.#s[r],n=this.#f(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#y&&this.#T){let o=this.#y[r],a=this.#T[r];if(o&&a){let l=o-(Xr.now()-a);s.ttl=l,s.start=Date.now()}}return this.#x&&(s.size=this.#x[r]),s}dump(){let e=[];for(let r of this.#O({allowStale:!0})){let i=this.#a[r],n=this.#s[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#y&&this.#T){o.ttl=this.#y[r];let a=Xr.now()-this.#T[r];o.start=Math.floor(Date.now()-a)}this.#x&&(o.size=this.#x[r]),e.unshift([i,o])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=Xr.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,f=this.#C(e,r,i.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#L(e,"set"),this;let h=this.#u===0?void 0:this.#l.get(e);if(h===void 0)h=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#q(!1):this.#u,this.#a[h]=e,this.#s[h]=r,this.#l.set(e,h),this.#m[this.#d]=h,this.#_[h]=this.#d,this.#d=h,this.#u++,this.#M(h,f,l),l&&(l.set="add"),u=!1;else{this.#j(h);let c=this.#s[h];if(r!==c){if(this.#b&&this.#f(c)){c.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=c;d!==void 0&&!o&&(this.#v&&this.#n?.(d,e,"set"),this.#c&&this.#p?.push([d,e,"set"]))}else o||(this.#v&&this.#n?.(c,e,"set"),this.#c&&this.#p?.push([c,e,"set"]));if(this.#P(h),this.#M(h,f,l),this.#s[h]=r,l){l.set="replace";let d=c&&this.#f(c)?c.__staleWhileFetching:c;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update")}if(n!==0&&!this.#y&&this.#A(),this.#y&&(u||this.#N(h,n,s),l&&this.#i(l,h)),!o&&this.#c&&this.#p){let c=this.#p,d;for(;d=c?.shift();)this.#t?.(...d)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#q(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#c&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#q(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#c)&&(this.#v&&this.#n?.(n,i,"evict"),this.#c&&this.#p?.push([n,i,"evict"])),this.#P(r),e&&(this.#a[r]=void 0,this.#s[r]=void 0,this.#E.push(r)),this.#u===1?(this.#g=this.#d=0,this.#E.length=0):this.#g=this.#m[r],this.#l.delete(i),this.#u--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,s=this.#l.get(e);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))n&&(n.has="stale",this.#i(n,s));else return i&&this.#R(s),n&&(n.has="hit",this.#i(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#s[n];return this.#f(s)?s.__staleWhileFetching:s}#F(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new fo,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(g,x=!1)=>{let{aborted:y}=o.signal,m=i.ignoreFetchAbort&&g!==void 0;if(i.status&&(y&&!x?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,m&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),y&&!m&&!x)return h(o.signal.reason);let S=d;return this.#s[r]===d&&(g===void 0?S.__staleWhileFetching?this.#s[r]=S.__staleWhileFetching:this.#L(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,g,l.options))),g},f=g=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=g),h(g)),h=g=>{let{aborted:x}=o.signal,y=x&&i.allowStaleOnFetchAbort,m=y||i.allowStaleOnFetchRejection,S=m||i.noDeleteOnFetchRejection,E=d;if(this.#s[r]===d&&(!S||E.__staleWhileFetching===void 0?this.#L(e,"fetch"):y||(this.#s[r]=E.__staleWhileFetching)),m)return i.status&&E.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw g},c=(g,x)=>{let y=this.#o?.(e,s,l);y&&y instanceof Promise&&y.then(m=>g(m===void 0?void 0:m),x),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(g(void 0),i.allowStaleOnFetchAbort&&(g=m=>u(m,!0)))})};i.status&&(i.status.fetchDispatched=!0);let d=new Promise(c).then(u,f),b=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,b,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=b,b}#f(e){if(!this.#b)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof fo}async fetch(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:g,forceRefresh:x=!1,status:y,signal:m}=r;if(!this.#b)return y&&(y.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:y});let S={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:b,ignoreFetchAbort:d,status:y,signal:m},E=this.#l.get(e);if(E===void 0){y&&(y.fetch="miss");let A=this.#F(e,E,S,g);return A.__returned=A}else{let A=this.#s[E];if(this.#f(A)){let T=i&&A.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",T&&(y.returnedStale=!0)),T?A.__staleWhileFetching:A.__returned=A}let L=this.#w(E);if(!x&&!L)return y&&(y.fetch="hit"),this.#j(E),n&&this.#R(E),y&&this.#i(y,E),A;let v=this.#F(e,E,S,g),w=v.__staleWhileFetching!==void 0&&i;return y&&(y.fetch=L?"stale":"refresh",w&&L&&(y.returnedStale=!0)),w?v.__staleWhileFetching:v.__returned=v}}async forceFetch(e,r={}){let i=await this.fetch(e,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,r={}){let i=this.#S;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:s,...o}=r,a=this.get(e,o);if(!s&&a!==void 0)return a;let l=i(e,a,{options:o,context:n});return this.set(e,l,o),l}get(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#l.get(e);if(a!==void 0){let l=this.#s[a],u=this.#f(l);return o&&this.#i(o,a),this.#w(a)?(o&&(o.get="stale"),u?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(s||this.#L(e,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#j(a),n&&this.#R(a),l))}else o&&(o.get="miss")}#B(e,r){this.#_[r]=e,this.#m[e]=r}#j(e){e!==this.#d&&(e===this.#g?this.#g=this.#m[e]:this.#B(this.#_[e],this.#m[e]),this.#B(this.#d,e),this.#d=e)}delete(e){return this.#L(e,"delete")}#L(e,r){let i=!1;if(this.#u!==0){let n=this.#l.get(e);if(n!==void 0)if(i=!0,this.#u===1)this.#W(r);else{this.#P(n);let s=this.#s[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#v||this.#c)&&(this.#v&&this.#n?.(s,e,r),this.#c&&this.#p?.push([s,e,r])),this.#l.delete(e),this.#a[n]=void 0,this.#s[n]=void 0,n===this.#d)this.#d=this.#_[n];else if(n===this.#g)this.#g=this.#m[n];else{let o=this.#_[n];this.#m[o]=this.#m[n];let a=this.#m[n];this.#_[a]=this.#_[n]}this.#u--,this.#E.push(n)}}if(this.#c&&this.#p?.length){let n=this.#p,s;for(;s=n?.shift();)this.#t?.(...s)}return i}clear(){return this.#W("delete")}#W(e){for(let r of this.#D({allowStale:!0})){let i=this.#s[r];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#a[r];this.#v&&this.#n?.(i,n,e),this.#c&&this.#p?.push([i,n,e])}}if(this.#l.clear(),this.#s.fill(void 0),this.#a.fill(void 0),this.#y&&this.#T&&(this.#y.fill(0),this.#T.fill(0)),this.#x&&this.#x.fill(0),this.#g=0,this.#d=0,this.#E.length=0,this.#h=0,this.#u=0,this.#c&&this.#p){let r=this.#p,i;for(;i=r?.shift();)this.#t?.(...i)}}};ho.LRUCache=Ku});var sf=p(Ie=>{"use strict";var LC=Ie&&Ie.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Minipass=Ie.isWritable=Ie.isReadable=Ie.isStream=void 0;var Gw=typeof process=="object"&&process?process:{stdout:null,stderr:null},nf=I("events"),Vw=LC(I("stream")),NC=I("string_decoder"),PC=t=>!!t&&typeof t=="object"&&(t instanceof bo||t instanceof Vw.default||(0,Ie.isReadable)(t)||(0,Ie.isWritable)(t));Ie.isStream=PC;var MC=t=>!!t&&typeof t=="object"&&t instanceof nf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==Vw.default.Writable.prototype.pipe;Ie.isReadable=MC;var CC=t=>!!t&&typeof t=="object"&&t instanceof nf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Ie.isWritable=CC;var St=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),Bt=Symbol("emittedEnd"),co=Symbol("emittingEnd"),nn=Symbol("emittedError"),po=Symbol("closed"),zw=Symbol("read"),go=Symbol("flush"),$w=Symbol("flushChunk"),Ze=Symbol("encoding"),ei=Symbol("decoder"),de=Symbol("flowing"),sn=Symbol("paused"),ti=Symbol("resume"),pe=Symbol("buffer"),De=Symbol("pipes"),ge=Symbol("bufferLength"),Qu=Symbol("bufferPush"),yo=Symbol("bufferShift"),Ae=Symbol("objectMode"),le=Symbol("destroyed"),Xu=Symbol("error"),Ju=Symbol("emitData"),Hw=Symbol("emitEnd"),ef=Symbol("emitEnd2"),at=Symbol("async"),tf=Symbol("abort"),mo=Symbol("aborted"),on=Symbol("signal"),dr=Symbol("dataListeners"),Me=Symbol("discarded"),an=t=>Promise.resolve().then(t),kC=t=>t(),qC=t=>t==="end"||t==="finish"||t==="prefinish",FC=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,BC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),_o=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ti](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},rf=class extends _o{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>this.dest.emit("error",n),e.on("error",this.proxyErrors)}},jC=t=>!!t.objectMode,WC=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",bo=class extends nf.EventEmitter{[de]=!1;[sn]=!1;[De]=[];[pe]=[];[Ae];[Ze];[at];[ei];[St]=!1;[Bt]=!1;[co]=!1;[po]=!1;[nn]=null;[ge]=0;[le]=!1;[on];[mo]=!1;[dr]=0;[Me]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");jC(r)?(this[Ae]=!0,this[Ze]=null):WC(r)?(this[Ze]=r.encoding,this[Ae]=!1):(this[Ae]=!1,this[Ze]=null),this[at]=!!r.async,this[ei]=this[Ze]?new NC.StringDecoder(this[Ze]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[pe]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[De]});let{signal:i}=r;i&&(this[on]=i,i.aborted?this[tf]():i.addEventListener("abort",()=>this[tf]()))}get bufferLength(){return this[ge]}get encoding(){return this[Ze]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Ae]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[at]}set async(e){this[at]=this[at]||!!e}[tf](){this[mo]=!0,this.emit("abort",this[on]?.reason),this.destroy(this[on]?.reason)}get aborted(){return this[mo]}set aborted(e){}write(e,r,i){if(this[mo])return!1;if(this[St])throw new Error("write after end");if(this[le])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[at]?an:kC;if(!this[Ae]&&!Buffer.isBuffer(e)){if(BC(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(FC(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Ae]?(this[de]&&this[ge]!==0&&this[go](!0),this[de]?this.emit("data",e):this[Qu](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ze]&&!this[ei]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ze]&&(e=this[ei].write(e)),this[de]&&this[ge]!==0&&this[go](!0),this[de]?this.emit("data",e):this[Qu](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):(this[ge]!==0&&this.emit("readable"),i&&n(i),this[de])}read(e){if(this[le])return null;if(this[Me]=!1,this[ge]===0||e===0||e&&e>this[ge])return this[Et](),null;this[Ae]&&(e=null),this[pe].length>1&&!this[Ae]&&(this[pe]=[this[Ze]?this[pe].join(""):Buffer.concat(this[pe],this[ge])]);let r=this[zw](e||null,this[pe][0]);return this[Et](),r}[zw](e,r){if(this[Ae])this[yo]();else{let i=r;e===i.length||e===null?this[yo]():typeof i=="string"?(this[pe][0]=i.slice(e),r=i.slice(0,e),this[ge]-=e):(this[pe][0]=i.subarray(e),r=i.subarray(0,e),this[ge]-=e)}return this.emit("data",r),!this[pe].length&&!this[St]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r="utf8"),e!==void 0&&this.write(e,r),i&&this.once("end",i),this[St]=!0,this.writable=!1,(this[de]||!this[sn])&&this[Et](),this}[ti](){this[le]||(!this[dr]&&!this[De].length&&(this[Me]=!0),this[sn]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[go]():this[St]?this[Et]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[de]=!1,this[sn]=!0,this[Me]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[sn]}[Qu](e){this[Ae]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[yo](){return this[Ae]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[go](e=!1){do;while(this[$w](this[yo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[$w](e){return this.emit("data",e),this[de]}pipe(e,r){if(this[le])return e;this[Me]=!1;let i=this[Bt];return r=r||{},e===Gw.stdout||e===Gw.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[De].push(r.proxyErrors?new rf(this,e,r):new _o(this,e,r)),this[at]?an(()=>this[ti]()):this[ti]()),e}unpipe(e){let r=this[De].find(i=>i.dest===e);r&&(this[De].length===1?(this[de]&&this[dr]===0&&(this[de]=!1),this[De]=[]):this[De].splice(this[De].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);if(e==="data")this[Me]=!1,this[dr]++,!this[De].length&&!this[de]&&this[ti]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(qC(e)&&this[Bt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[nn]){let n=r;this[at]?an(()=>n.call(this,this[nn])):n.call(this,this[nn])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[dr]=this.listeners("data").length,this[dr]===0&&!this[Me]&&!this[De].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[dr]=0,!this[Me]&&!this[De].length&&(this[de]=!1)),r}get emittedEnd(){return this[Bt]}[Et](){!this[co]&&!this[Bt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[co]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[po]&&this.emit("close"),this[co]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==le&&this[le])return!1;if(e==="data")return!this[Ae]&&!i?!1:this[at]?(an(()=>this[Ju](i)),!0):this[Ju](i);if(e==="end")return this[Hw]();if(e==="close"){if(this[po]=!0,!this[Bt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[nn]=i,super.emit(Xu,i);let s=!this[on]||this.listeners("error").length?super.emit("error",i):!1;return this[Et](),s}else if(e==="resume"){let s=super.emit("resume");return this[Et](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,...r);return this[Et](),n}[Ju](e){for(let i of this[De])i.dest.write(e)===!1&&this.pause();let r=this[Me]?!1:super.emit("data",e);return this[Et](),r}[Hw](){return this[Bt]?!1:(this[Bt]=!0,this.readable=!1,this[at]?(an(()=>this[ef]()),!0):this[ef]())}[ef](){if(this[ei]){let r=this[ei].end();if(r){for(let i of this[De])i.dest.write(r);this[Me]||super.emit("data",r)}}for(let r of this[De])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Ae]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ae]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[Ae])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ze]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(le,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Me]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[St])return r();let s,o,a=h=>{this.off("data",l),this.off("end",u),this.off(le,f),r(),o(h)},l=h=>{this.off("error",a),this.off("end",u),this.off(le,f),this.pause(),s({value:h,done:!!this[St]})},u=()=>{this.off("error",a),this.off("data",l),this.off(le,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((h,c)=>{o=c,s=h,this.once(le,f),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Me]=!1;let e=!1,r=()=>(this.pause(),this.off(Xu,r),this.off(le,r),this.off("end",r),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(Xu,r),this.once(le,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[le])return e?this.emit("error",e):this.emit(le),this;this[le]=!0,this[Me]=!0,this[pe].length=0,this[ge]=0;let r=this;return typeof r.close=="function"&&!this[po]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return Ie.isStream}};Ie.Minipass=bo});var l0=p(H=>{"use strict";var UC=H&&H.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),GC=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zC=H&&H.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&UC(e,t,r);return GC(e,t),e};Object.defineProperty(H,"__esModule",{value:!0});H.PathScurry=H.Path=H.PathScurryDarwin=H.PathScurryPosix=H.PathScurryWin32=H.PathScurryBase=H.PathPosix=H.PathWin32=H.PathBase=H.ChildrenCache=H.ResolveCache=void 0;var Jw=Uw(),xo=I("path"),$C=I("url"),un=I("fs"),HC=zC(I("fs")),VC=un.realpathSync.native,wo=I("fs/promises"),Yw=sf(),fn={lstatSync:un.lstatSync,readdir:un.readdir,readdirSync:un.readdirSync,readlinkSync:un.readlinkSync,realpathSync:VC,promises:{lstat:wo.lstat,readdir:wo.readdir,readlink:wo.readlink,realpath:wo.realpath}},e0=t=>!t||t===fn||t===HC?fn:{...fn,...t,promises:{...fn.promises,...t.promises||{}}},t0=/^\\\\\?\\([a-z]:)\\?$/i,YC=t=>t.replace(/\//g,"\\").replace(t0,"$1\\"),ZC=/[\\\/]/,Ge=0,r0=1,i0=2,lt=4,n0=6,s0=8,pr=10,o0=12,Ue=15,ln=~Ue,of=16,Zw=32,hn=64,Ke=128,So=256,vo=512,Kw=hn|Ke|vo,KC=1023,af=t=>t.isFile()?s0:t.isDirectory()?lt:t.isSymbolicLink()?pr:t.isCharacterDevice()?i0:t.isBlockDevice()?n0:t.isSocket()?o0:t.isFIFO()?r0:Ge,Qw=new Map,cn=t=>{let e=Qw.get(t);if(e)return e;let r=t.normalize("NFKD");return Qw.set(t,r),r},Xw=new Map,Eo=t=>{let e=Xw.get(t);if(e)return e;let r=cn(t.toLowerCase());return Xw.set(t,r),r},dn=class extends Jw.LRUCache{constructor(){super({max:256})}};H.ResolveCache=dn;var To=class extends Jw.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=To;var a0=Symbol("PathScurry setAsCwd"),Se=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#o;get uid(){return this.#o}#S;get gid(){return this.#S}#u;get rdev(){return this.#u}#h;get blksize(){return this.#h}#l;get ino(){return this.#l}#a;get size(){return this.#a}#s;get blocks(){return this.#s}#m;get atimeMs(){return this.#m}#_;get mtimeMs(){return this.#_}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#x;get ctime(){return this.#x}#T;get birthtime(){return this.#T}#y;#v;#b;#c;#A;#R;#i;#N;#w;#I;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=Ge,i,n,s,o,a){this.name=e,this.#y=s?Eo(e):cn(e),this.#i=r&KC,this.nocase=s,this.roots=n,this.root=i||this,this.#N=o,this.#b=a.fullpath,this.#A=a.relative,this.#R=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=e0(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#N}resolve(e){if(!e)return this;let r=this.getRootString(e),n=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#P(n):this.#P(n)}#P(e){let r=this;for(let i of e)r=r.child(i);return r}children(){let e=this.#N.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#N.set(this,r),this.#i&=~of,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?Eo(e):cn(e);for(let l of i)if(l.#y===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,Ge,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Ke),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let e=this.name,r=this.parent;if(!r)return this.#A=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let e=this.name,r=this.parent;if(!r)return this.#R=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+e}fullpath(){if(this.#b!==void 0)return this.#b;let e=this.name,r=this.parent;if(!r)return this.#b=this.name;let n=r.fullpath()+(r.parent?this.sep:"")+e;return this.#b=n}fullpathPosix(){if(this.#c!==void 0)return this.#c;if(this.sep==="/")return this.#c=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#c=`//?/${n}`:this.#c=n}let e=this.parent,r=e.fullpathPosix(),i=r+(!r||!e.parent?"":"/")+this.name;return this.#c=i}isUnknown(){return(this.#i&Ue)===Ge}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&Ue)===s0}isDirectory(){return(this.#i&Ue)===lt}isCharacterDevice(){return(this.#i&Ue)===i0}isBlockDevice(){return(this.#i&Ue)===n0}isFIFO(){return(this.#i&Ue)===r0}isSocket(){return(this.#i&Ue)===o0}isSymbolicLink(){return(this.#i&pr)===pr}lstatCached(){return this.#i&Zw?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#I}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&Ue;return!(e!==Ge&&e!==pr||this.#i&So||this.#i&Ke)}calledReaddir(){return!!(this.#i&of)}isENOENT(){return!!(this.#i&Ke)}isNamed(e){return this.nocase?this.#y===Eo(e):this.#y===cn(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}#M(e){this.#i|=of;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#C()}}#C(){this.#i&Ke||(this.#i=(this.#i|Ke)&ln,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#C()}#D(){this.#i|=vo,this.#k()}#k(){if(this.#i&hn)return;let e=this.#i;(e&Ue)===lt&&(e&=ln),this.#i=e|hn,this.#O()}#q(e=""){e==="ENOTDIR"||e==="EPERM"?this.#k():e==="ENOENT"?this.#C():this.children().provisional=0}#F(e=""){e==="ENOTDIR"?this.parent.#k():e==="ENOENT"&&this.#C()}#f(e=""){let r=this.#i;r|=So,e==="ENOENT"&&(r|=Ke),(e==="EINVAL"||e==="UNKNOWN")&&(r&=ln),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#k()}#B(e,r){return this.#L(e,r)||this.#j(e,r)}#j(e,r){let i=af(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&Ue;return s!==lt&&s!==pr&&s!==Ge&&(n.#i|=hn),r.unshift(n),r.provisional++,n}#L(e,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?Eo(e.name):cn(e.name))===n.#y)return this.#W(e,n,i,r)}}#W(e,r,i,n){let s=r.name;return r.#i=r.#i&ln|af(e),s!==e.name&&(r.name=e.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(r)),n.provisional++,r}async lstat(){if((this.#i&Ke)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#F(e.code)}}lstatSync(){if((this.#i&Ke)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#F(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:h,ino:c,mode:d,mtime:b,mtimeMs:g,nlink:x,rdev:y,size:m,uid:S}=e;this.#E=r,this.#m=i,this.#T=n,this.#d=s,this.#h=o,this.#s=a,this.#x=l,this.#g=u,this.#r=f,this.#S=h,this.#l=c,this.#n=d,this.#p=b,this.#_=g,this.#t=x,this.#u=y,this.#a=m,this.#o=S;let E=af(e);this.#i=this.#i&ln|E|Zw,E!==Ge&&E!==lt&&E!==pr&&(this.#i|=hn)}#G=[];#z=!1;#H(e){this.#z=!1;let r=this.#G.slice();this.#G.length=0,r.forEach(i=>i(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#G.push(e),this.#z)return;this.#z=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#q(s.code),i.provisional=0;else{for(let a of o)this.#B(a,i);this.#M(i)}this.#H(i.slice(0,i.provisional))})}#U;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#U)await this.#U;else{let i=()=>{};this.#U=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#B(n,e);this.#M(e)}catch(n){this.#q(n.code),e.provisional=0}this.#U=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#B(i,e);this.#M(e)}catch(i){this.#q(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&Kw)return!1;let e=Ue&this.#i;return e===Ge||e===lt||e===pr}shouldWalk(e,r){return(this.#i<)===lt&&!(this.#i&Kw)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#I)return this.#I;if(!((vo|So|Ke)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}realpathSync(){if(this.#I)return this.#I;if(!((vo|So|Ke)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}[a0](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],n=this;for(;n&&n.parent;)r.add(n),n.#A=i.join(this.sep),n.#R=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#A=void 0,n.#R=void 0,n=n.parent}};H.PathBase=Se;var pn=class t extends Se{sep="\\";splitSep=ZC;constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return xo.win32.parse(e).root}getRoot(e){if(e=YC(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=i;return this.roots[e]=new mn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(t0,"$1\\"),e===r}};H.PathWin32=pn;var gn=class t extends Se{splitSep="/";sep="/";constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};H.PathPosix=gn;var yn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=fn}={}){this.#t=e0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,$C.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new dn,this.#r=new dn,this.#n=new To(s);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,f=l.length-1,h=r.sep,c=this.rootPath,d=!1;for(let b of l){let g=f--;u=u.child(b,{relative:new Array(g).fill("..").join(h),relativePosix:new Array(g).fill("..").join("/"),fullpath:c+=(d?"":h)+b}),d=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#e.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpath();return this.#e.set(r,n),n}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#r.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,n),n}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i}=r;if(e.canReaddir()){let n=await e.readdir();return i?n:n.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0}=r;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(n=>n.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.readlink();return r?i:i?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return r?i:i?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.realpath();return r?i:i?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return r?i:i?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set,u=(h,c)=>{l.add(h),h.readdirCB((d,b)=>{if(d)return c(d);let g=b.length;if(!g)return c();let x=()=>{--g===0&&c()};for(let y of b)(!s||s(y))&&a.push(i?y:y.fullpath()),n&&y.isSymbolicLink()?y.realpath().then(m=>m?.isUnknown()?m.lstat():m).then(m=>m?.shouldWalk(l,o)?u(m,x):x()):y.shouldWalk(l,o)?u(y,x):x()},!0)},f=e;return new Promise((h,c)=>{u(f,d=>{if(d)return c(d);h(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let u of l){let f=u.readdirSync();for(let h of f){(!s||s(h))&&a.push(i?h:h.fullpath());let c=h;if(h.isSymbolicLink()){if(!(n&&(c=h.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(l,o)&&l.add(c)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let f of u){(!s||s(f))&&(yield i?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(n&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(a,o)&&a.add(h)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new Yw.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,h=()=>{let c=!1;for(;!c;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let b=(x,y,m=!1)=>{if(x)return a.emit("error",x);if(n&&!m){let S=[];for(let E of y)E.isSymbolicLink()&&S.push(E.realpath().then(A=>A?.isUnknown()?A.lstat():A));if(S.length){Promise.all(S).then(()=>b(null,y,!0));return}}for(let S of y)S&&(!s||s(S))&&(a.write(i?S:S.fullpath())||(c=!0));f--;for(let S of y){let E=S.realpathCached()||S;E.shouldWalk(l,o)&&u.push(E)}c&&!a.flowing?a.once("drain",h):g||h()},g=!0;d.readdirCB(b,!0),g=!1}};return h(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new Yw.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,h=()=>{let c=!1;for(;!c;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let b=d.readdirSync();for(let g of b)(!s||s(g))&&(a.write(i?g:g.fullpath())||(c=!0));f--;for(let g of b){let x=g;if(g.isSymbolicLink()){if(!(n&&(x=g.realpathSync())))continue;x.isUnknown()&&x.lstatSync()}x.shouldWalk(l,o)&&u.push(x)}}c&&!a.flowing&&a.once("drain",h)};return h(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[a0](r)}};H.PathScurryBase=yn;var mn=class extends yn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,xo.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return xo.win32.parse(e).root.toUpperCase()}newRoot(e){return new pn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};H.PathScurryWin32=mn;var _n=class extends yn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,xo.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new gn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=_n;var Ao=class extends _n{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Ao;H.Path=process.platform==="win32"?pn:gn;H.PathScurry=process.platform==="win32"?mn:process.platform==="darwin"?Ao:_n});var uf=p(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.Pattern=void 0;var QC=qt(),XC=t=>t.length>=1,JC=t=>t.length>=1,lf=class t{#e;#r;#n;length;#t;#o;#S;#u;#h;#l;#a=!0;constructor(e,r,i,n){if(!XC(e))throw new TypeError("empty pattern list");if(!JC(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#r=r,this.#n=i,this.#t=n,this.#n===0){if(this.isUNC()){let[s,o,a,l,...u]=this.#e,[f,h,c,d,...b]=this.#r;u[0]===""&&(u.shift(),b.shift());let g=[s,o,a,l,""].join("/"),x=[f,h,c,d,""].join("/");this.#e=[g,...u],this.#r=[x,...b],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#r;o[0]===""&&(o.shift(),l.shift());let u=s+"/",f=a+"/";this.#e=[u,...o],this.#r=[f,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===QC.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#S=this.#S||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new t(this.#e,this.#r,this.#n+1,this.#t),this.#o.#l=this.#l,this.#o.#h=this.#h,this.#o.#u=this.#u,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#h!==void 0?this.#h:this.#h=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};Ro.Pattern=lf});var hf=p(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.Ignore=void 0;var u0=qt(),ek=uf(),tk=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ff=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=tk}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let r=new u0.Minimatch(e,this.mmopts);for(let i=0;i<r.set.length;i++){let n=r.set[i],s=r.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new ek.Pattern(n,s,0,this.platform),a=new u0.Minimatch(o.globString(),this.mmopts),l=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let r=e.fullpath(),i=`${r}/`,n=e.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(i))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(r))return!0;return!1}};Oo.Ignore=ff});var h0=p(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var f0=qt(),Do=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let i=e.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};ut.HasWalkedCache=Do;var Io=class{store=new Map;add(e,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};ut.MatchRecord=Io;var Lo=class{store=new Map;add(e,r){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};ut.SubWalks=Lo;var cf=class t{hasWalkedCache;matches=new Io;subwalks=new Lo;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new Do}processPatterns(e,r){this.patterns=r;let i=r.map(n=>[e,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let h=s.rest();if(h)s=h;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let l,u,f=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)n=n.resolve(l),s=u,f=!0;if(l=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof l=="string"){let h=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,h);continue}else if(l===f0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let h=u?.pattern(),c=u?.rest();if(!u||(h===""||h===".")&&!c)this.matches.add(n,a,h===""||h===".");else if(h===".."){let d=n.parent||n;c?this.hasWalkedCache.hasWalked(d,c)||this.subwalks.add(d,c):this.matches.add(d,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let i=this.subwalks.get(e),n=this.child();for(let s of r)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===f0.GLOBSTAR?n.testGlobstar(s,o,u,a):l instanceof RegExp?n.testRegExp(s,l,u,a):n.testString(s,l,u,a)}return n}testGlobstar(e,r,i,n){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(e,i):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),n);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),n)}}testRegExp(e,r,i,n){r.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}testString(e,r,i,n){e.isNamed(r)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}};ut.Processor=cf});var p0=p(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.GlobStream=jt.GlobWalker=jt.GlobUtil=void 0;var rk=sf(),c0=hf(),d0=h0(),ik=(t,e)=>typeof t=="string"?new c0.Ignore([t],e):Array.isArray(t)?new c0.Ignore(t,e):t,bn=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,i){if(this.patterns=e,this.path=r,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#r=ik(i.ignore??[],i),!this.includeChildMatches&&typeof this.#r.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#o(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+n)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?o+s+n:"."+n)}}async match(e,r,i){let n=await this.matchCheck(e,i);n&&this.matchFinish(n,r)}matchSync(e,r,i){let n=this.matchCheckSync(e,i);n&&this.matchFinish(n,r)}walkCB(e,r,i){this.signal?.aborted&&i(),this.walkCB2(e,r,new d0.Processor(this.opts),i)}walkCB2(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,i,o):a.readdirCB((u,f)=>this.walkCB3(a,f,i,o),!0)}o()}walkCB3(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let[a,l]of i.subwalks.entries())s++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(e,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,r,new d0.Processor(this.opts),i)}walkCB2Sync(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,i,o)}o()}walkCB3Sync(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let[a,l]of i.subwalks.entries())s++,this.walkCB2Sync(a,l,i.child(),o);o()}};jt.GlobUtil=bn;var df=class extends bn{matches=new Set;constructor(e,r,i){super(e,r,i)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};jt.GlobWalker=df;var pf=class extends bn{results;constructor(e,r,i){super(e,r,i),this.results=new rk.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};jt.GlobStream=pf});var yf=p(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.Glob=void 0;var nk=qt(),sk=I("url"),No=l0(),ok=uf(),Po=p0(),ak=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",gf=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,sk.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=r.platform||ak,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?No.PathScurryWin32:r.platform==="darwin"?No.PathScurryDarwin:r.platform?No.PathScurryPosix:No.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",n={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new nk.Minimatch(l,n)),[o,a]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=o.map((l,u)=>{let f=a[u];if(!f)throw new Error("invalid pattern object");return new ok.Pattern(l,f,0,this.platform)})}async walk(){return[...await new Po.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Po.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Po.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Po.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};Mo.Glob=gf});var mf=p(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.hasMagic=void 0;var lk=qt(),uk=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new lk.Minimatch(r,e).hasMagic())return!0;return!1};Co.hasMagic=uk});var _0=p(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.glob=W.sync=W.iterate=W.iterateSync=W.stream=W.streamSync=W.Ignore=W.hasMagic=W.Glob=W.unescape=W.escape=void 0;W.globStreamSync=wn;W.globStream=_f;W.globSync=bf;W.globIterateSync=Sn;W.globIterate=wf;var g0=qt(),gr=yf(),fk=mf(),m0=qt();Object.defineProperty(W,"escape",{enumerable:!0,get:function(){return m0.escape}});Object.defineProperty(W,"unescape",{enumerable:!0,get:function(){return m0.unescape}});var hk=yf();Object.defineProperty(W,"Glob",{enumerable:!0,get:function(){return hk.Glob}});var ck=mf();Object.defineProperty(W,"hasMagic",{enumerable:!0,get:function(){return ck.hasMagic}});var dk=hf();Object.defineProperty(W,"Ignore",{enumerable:!0,get:function(){return dk.Ignore}});function wn(t,e={}){return new gr.Glob(t,e).streamSync()}function _f(t,e={}){return new gr.Glob(t,e).stream()}function bf(t,e={}){return new gr.Glob(t,e).walkSync()}async function y0(t,e={}){return new gr.Glob(t,e).walk()}function Sn(t,e={}){return new gr.Glob(t,e).iterateSync()}function wf(t,e={}){return new gr.Glob(t,e).iterate()}W.streamSync=wn;W.stream=Object.assign(_f,{sync:wn});W.iterateSync=Sn;W.iterate=Object.assign(wf,{sync:Sn});W.sync=Object.assign(bf,{stream:wn,iterate:Sn});W.glob=Object.assign(y0,{glob:y0,globSync:bf,sync:W.sync,globStream:_f,stream:W.stream,globStreamSync:wn,streamSync:W.streamSync,globIterate:wf,iterate:W.iterate,globIterateSync:Sn,iterateSync:W.iterateSync,Glob:gr.Glob,hasMagic:fk.hasMagic,escape:g0.escape,unescape:g0.unescape});W.glob.glob=W.glob});var E0=p((p6,S0)=>{"use strict";var w0=Wa(),ri=I("path"),Sf=$_(),pk=ow(),gk=mw(),yk=xw(),mk=_0(),yr=S0.exports={},b0=/[\/\\]/g,_k=function(t,e){var r=[];return Sf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=pk(r,s):r=gk(r,s)}),r};yr.exists=function(){var t=ri.join.apply(ri,arguments);return w0.existsSync(t)};yr.expand=function(...t){var e=yk(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=_k(r,function(n){return mk.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ri.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):w0.statSync(n)[e.filter]()}catch{return!1}})),i};yr.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ri.join(s||"",o)}},r);var i=[],n={};return yr.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ri.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ri.join(r.cwd,s)),a=a.replace(b0,"/"),s=s.replace(b0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};yr.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var i;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=Sf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return yr.expandMapping(r.src,r.dest,i).map(function(s){var o=Object.assign({},r);return o.orig=Object.assign({},r),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete o[a]}),o});var n=Object.assign({},r);return n.orig=Object.assign({},r),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=r.src,o=Array.isArray(o)?Sf(o):[o],s.result=yr.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var ii=p((y6,T0)=>{"use strict";var Ef=Wa(),v0=I("path"),bk=es(),wk=Yd(),x0=hl(),Sk=Og(),g6=I("stream").Stream,Ek=hr().PassThrough,Ce=T0.exports={};Ce.file=E0();Ce.collectStream=function(t,e){var r=[],i=0;t.on("error",e),t.on("data",function(n){r.push(n),i+=n.length}),t.on("end",function(){var n=Buffer.alloc(i),s=0;r.forEach(function(o){o.copy(n,s),s+=o.length}),e(null,n)})};Ce.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};Ce.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},Sk(...i)};Ce.isStream=function(t){return bk(t)};Ce.lazyReadStream=function(t){return new wk.Readable(function(){return Ef.createReadStream(t)})};Ce.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):Ce.isStream(t)?t.pipe(new Ek):t};Ce.sanitizePath=function(t){return x0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};Ce.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};Ce.unixifyPath=function(t){return x0(t,!1).replace(/^\w+:/,"")};Ce.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Ef.readdir(t,function(n,s){var o=0,a,l;if(n)return r(n);(function u(){if(a=s[o++],!a)return r(null,i);l=v0.join(t,a),Ef.stat(l,function(f,h){i.push({path:l,relative:v0.relative(e,l).replace(/\\/g,"/"),stats:h}),h&&h.isDirectory()?Ce.walkdir(l,e,function(c,d){if(c)return r(c);d.forEach(function(b){i.push(b)}),u()}):u()})})()})}});var D0=p((R0,O0)=>{"use strict";var vk=I("util"),xk={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function A0(t,e){Error.captureStackTrace(this,this.constructor),this.message=xk[t]||t,this.code=t,this.data=e}vk.inherits(A0,Error);R0=O0.exports=A0});var M0=p((m6,P0)=>{"use strict";var Tf=I("fs"),L0=Wh(),I0=(jc(),RE(Bc)),vf=I("path"),ft=ii(),Tk=I("util").inherits,ae=D0(),N0=hr().Transform,xf=process.platform==="win32",z=function(t,e){if(!(this instanceof z))return new z(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=ft.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),N0.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=I0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=I0.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};Tk(z,N0);z.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};z.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof Tf.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};z.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};z.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};z.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(i){if(this._task=null,this._state.aborted){this._shutdown();return}if(i){this.emit("error",i),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};z.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new ae("NOENDMETHOD"))};z.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};z.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};z.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};z.prototype._normalizeEntryData=function(t,e){t=ft.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=ft.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?xf?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(xf?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,xf&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=ft.dateify(t.date),t};z.prototype._onModuleError=function(t){this.emit("error",t)};z.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};z.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};z.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}Tf.lstat(t.filepath,function(r,i){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,i),t&&(i.size&&(this._fsEntriesTotalBytes+=i.size),this._queue.push(t)),setImmediate(e)}.bind(this))};z.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};z.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};z.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=ft.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=ft.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=ft.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=Tf.readlinkSync(t.filepath),i=vf.dirname(t.filepath);t.data.type="symlink",t.data.linkname=vf.relative(i,vf.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new ae("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new ae("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new ae("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};z.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};z.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new ae("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new ae("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=ft.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(ft.isStream(t))e.sourceType="stream";else return this.emit("error",new ae("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};z.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var i=!1;typeof r=="function"?(i=r,r={}):typeof r!="object"&&(r={});var n={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(u){this.emit("error",u)}function a(u){l.pause();var f=!1,h=Object.assign({},r);h.name=u.relative,h.prefix=e,h.stats=u.stat,h.callback=l.resume.bind(l);try{if(i){if(h=i(h),h===!1)f=!0;else if(typeof h!="object")throw new ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(c){this.emit("error",c);return}if(f){l.resume();return}this._append(u.absolute,h)}var l=L0(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};z.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new ae("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new ae("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};z.prototype.glob=function(t,e,r){this._pending++,e=ft.defaults(e,{stat:!0,pattern:t});function i(){this._pending--,this._maybeFinalize()}function n(a){this.emit("error",a)}function s(a){o.pause();var l=Object.assign({},r);l.callback=o.resume.bind(o),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var o=L0(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};z.prototype.finalize=function(){if(this._state.aborted){var t=new ae("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new ae("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(i,n){var s;r._module.on("end",function(){s||i()}),r._module.on("error",function(o){s=!0,n(o)})})};z.prototype.setFormat=function(t){return this._format?(this.emit("error",new ae("FORMATSET")),this):(this._format=t,this)};z.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new ae("ABORTED")),this):this._state.module?(this.emit("error",new ae("MODULESET")),this):(this._module=t,this._modulePipe(),this)};z.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ae("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new ae("SYMLINKNOTSUPPORTED",{filepath:t})),this;var i={};return i.type="symlink",i.name=t.replace(/\\/g,"/"),i.linkname=e.replace(/\\/g,"/"),i.sourceType="buffer",typeof r=="number"&&(i.mode=r),this._entriesCount++,this._queue.push({data:i,source:Buffer.concat([])}),this};z.prototype.pointer=function(){return this._pointer};z.prototype.use=function(t){return this._streams.push(t),this};P0.exports=z});var qo=p((_6,C0)=>{"use strict";var ko=C0.exports=function(){};ko.prototype.getName=function(){};ko.prototype.getSize=function(){};ko.prototype.getLastModifiedDate=function(){};ko.prototype.isDirectory=function(){}});var Fo=p((b6,k0)=>{"use strict";var ze=k0.exports={};ze.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var i={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};ze.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};ze.fromDosTime=function(t){return ze.dosToDate(t.readUInt32LE(0))};ze.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ze.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ze.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ze.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ze.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ze.toDosTime=function(t){return ze.getLongBytes(ze.dateToDos(t))}});var Af=p((w6,U0)=>{"use strict";var q0=Fo(),F0=8,B0=1,Ak=4,Rk=2,j0=64,W0=2048,Ee=U0.exports=function(){return this instanceof Ee?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ee};Ee.prototype.encode=function(){return q0.getShortBytes((this.descriptor?F0:0)|(this.utf8?W0:0)|(this.encryption?B0:0)|(this.strongEncryption?j0:0))};Ee.prototype.parse=function(t,e){var r=q0.getShortBytesValue(t,e),i=new Ee;return i.useDataDescriptor((r&F0)!==0),i.useUTF8ForNames((r&W0)!==0),i.useStrongEncryption((r&j0)!==0),i.useEncryption((r&B0)!==0),i.setSlidingDictionarySize((r&Rk)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&Ak)!==0?3:2),i};Ee.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ee.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ee.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ee.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ee.prototype.useDataDescriptor=function(t){this.descriptor=t};Ee.prototype.usesDataDescriptor=function(){return this.descriptor};Ee.prototype.useEncryption=function(t){this.encryption=t};Ee.prototype.usesEncryption=function(){return this.encryption};Ee.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ee.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ee.prototype.useUTF8ForNames=function(t){this.utf8=t};Ee.prototype.usesUTF8ForNames=function(){return this.utf8}});var z0=p((S6,G0)=>{"use strict";G0.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Rf=p((E6,$0)=>{"use strict";$0.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Of=p((v6,K0)=>{"use strict";var Ok=I("util").inherits,Dk=hl(),V0=qo(),Y0=Af(),H0=z0(),Le=Rf(),Z0=Fo(),F=K0.exports=function(t){if(!(this instanceof F))return new F(t);V0.call(this),this.platform=Le.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new Y0,this.crc=0,this.time=-1,this.minver=Le.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};Ok(F,V0);F.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};F.prototype.getComment=function(){return this.comment!==null?this.comment:""};F.prototype.getCompressedSize=function(){return this.csize};F.prototype.getCrc=function(){return this.crc};F.prototype.getExternalAttributes=function(){return this.exattr};F.prototype.getExtra=function(){return this.extra!==null?this.extra:Le.EMPTY};F.prototype.getGeneralPurposeBit=function(){return this.gpb};F.prototype.getInternalAttributes=function(){return this.inattr};F.prototype.getLastModifiedDate=function(){return this.getTime()};F.prototype.getLocalFileDataExtra=function(){return this.getExtra()};F.prototype.getMethod=function(){return this.method};F.prototype.getName=function(){return this.name};F.prototype.getPlatform=function(){return this.platform};F.prototype.getSize=function(){return this.size};F.prototype.getTime=function(){return this.time!==-1?Z0.dosToDate(this.time):-1};F.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};F.prototype.getUnixMode=function(){return this.platform!==Le.PLATFORM_UNIX?0:this.getExternalAttributes()>>Le.SHORT_SHIFT&Le.SHORT_MASK};F.prototype.getVersionNeededToExtract=function(){return this.minver};F.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};F.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};F.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};F.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};F.prototype.setExtra=function(t){this.extra=t};F.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof Y0))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};F.prototype.setInternalAttributes=function(t){this.inattr=t};F.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};F.prototype.setName=function(t,e=!1){t=Dk(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};F.prototype.setPlatform=function(t){this.platform=t};F.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};F.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=Z0.dateToDos(t,e)};F.prototype.setUnixMode=function(t){t|=this.isDirectory()?Le.S_IFDIR:Le.S_IFREG;var e=0;e|=t<<Le.SHORT_SHIFT|(this.isDirectory()?Le.S_DOS_D:Le.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Le.MODE_MASK,this.platform=Le.PLATFORM_UNIX};F.prototype.setVersionNeededToExtract=function(t){this.minver=t};F.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};F.prototype.isUnixSymlink=function(){return(this.getUnixMode()&H0.FILE_TYPE_FLAG)===H0.LINK_FLAG};F.prototype.isZip64=function(){return this.csize>Le.ZIP64_MAGIC||this.size>Le.ZIP64_MAGIC}});var Df=p((T6,Q0)=>{"use strict";var x6=I("stream").Stream,Ik=hr().PassThrough,Lk=es(),Nk=Q0.exports={};Nk.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(Lk(t)&&!t._readableState){var e=new Ik;return t.pipe(e),e}return t}});var Lf=p((A6,X0)=>{"use strict";var Pk=I("util").inherits,Mk=es(),If=hr().Transform,Ck=qo(),kk=Df(),ke=X0.exports=function(t){if(!(this instanceof ke))return new ke(t);If.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};Pk(ke,If);ke.prototype._appendBuffer=function(t,e,r){};ke.prototype._appendStream=function(t,e,r){};ke.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};ke.prototype._finish=function(t){};ke.prototype._normalizeEntry=function(t){};ke.prototype._transform=function(t,e,r){r(null,t)};ke.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof Ck)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=kk.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(Mk(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};ke.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};ke.prototype.getBytesWritten=function(){return this.offset};ke.prototype.write=function(t,e){return t&&(this.offset+=t.length),If.prototype.write.call(this,t,e)}});var Bo=p(Nf=>{"use strict";var J0;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof Nf=="object"?t(Nf):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(J0={}):t(J0={})})(function(t){t.version="1.2.2";function e(){for(var v=0,O=new Array(256),w=0;w!=256;++w)v=w,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,O[w]=v;return typeof Int32Array<"u"?new Int32Array(O):O}var r=e();function i(v){var O=0,w=0,T=0,R=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(T=0;T!=256;++T)R[T]=v[T];for(T=0;T!=256;++T)for(w=v[T],O=256+T;O<4096;O+=256)w=R[O]=w>>>8^v[w&255];var P=[];for(T=1;T!=16;++T)P[T-1]=typeof Int32Array<"u"?R.subarray(T*256,T*256+256):R.slice(T*256,T*256+256);return P}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],h=n[6],c=n[7],d=n[8],b=n[9],g=n[10],x=n[11],y=n[12],m=n[13],S=n[14];function E(v,O){for(var w=O^-1,T=0,R=v.length;T<R;)w=w>>>8^r[(w^v.charCodeAt(T++))&255];return~w}function A(v,O){for(var w=O^-1,T=v.length-15,R=0;R<T;)w=S[v[R++]^w&255]^m[v[R++]^w>>8&255]^y[v[R++]^w>>16&255]^x[v[R++]^w>>>24]^g[v[R++]]^b[v[R++]]^d[v[R++]]^c[v[R++]]^h[v[R++]]^f[v[R++]]^u[v[R++]]^l[v[R++]]^a[v[R++]]^o[v[R++]]^s[v[R++]]^r[v[R++]];for(T+=15;R<T;)w=w>>>8^r[(w^v[R++])&255];return~w}function L(v,O){for(var w=O^-1,T=0,R=v.length,P=0,G=0;T<R;)P=v.charCodeAt(T++),P<128?w=w>>>8^r[(w^P)&255]:P<2048?(w=w>>>8^r[(w^(192|P>>6&31))&255],w=w>>>8^r[(w^(128|P&63))&255]):P>=55296&&P<57344?(P=(P&1023)+64,G=v.charCodeAt(T++)&1023,w=w>>>8^r[(w^(240|P>>8&7))&255],w=w>>>8^r[(w^(128|P>>2&63))&255],w=w>>>8^r[(w^(128|G>>6&15|(P&3)<<4))&255],w=w>>>8^r[(w^(128|G&63))&255]):(w=w>>>8^r[(w^(224|P>>12&15))&255],w=w>>>8^r[(w^(128|P>>6&63))&255],w=w>>>8^r[(w^(128|P&63))&255]);return~w}t.table=r,t.bstr=E,t.buf=A,t.str=L})});var tS=p((O6,eS)=>{"use strict";var{Transform:qk}=hr(),Fk=Bo(),Pf=class extends qk{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=Fk.buf(e,this.checksum)>>>0,this.rawSize+=e.length),i(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};eS.exports=Pf});var iS=p((D6,rS)=>{"use strict";var{DeflateRaw:Bk}=I("zlib"),jk=Bo(),Mf=class extends Bk{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,r){return e&&(this.compressedSize+=e.length),super.push(e,r)}_transform(e,r,i){e&&(this.checksum=jk.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,i)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};rS.exports=Mf});var Cf=p((I6,nS)=>{"use strict";nS.exports={CRC32Stream:tS(),DeflateCRC32Stream:iS()}});var aS=p((M6,oS)=>{"use strict";var Wk=I("util").inherits,Uk=Bo(),{CRC32Stream:Gk}=Cf(),{DeflateCRC32Stream:zk}=Cf(),sS=Lf(),L6=Of(),N6=Af(),M=Rf(),P6=Df(),N=Fo(),ye=oS.exports=function(t){if(!(this instanceof ye))return new ye(t);t=this.options=this._defaults(t),sS.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};Wk(ye,sS);ye.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};ye.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(M.METHOD_STORED);var i=t.getMethod();if(i===M.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(Uk.buf(e)>>>0)),this._writeLocalFileHeader(t),i===M.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===M.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};ye.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(M.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var i=this._smartStream(t,r);e.once("error",function(n){i.emit("error",n),i.end()}),e.pipe(i)};ye.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=M.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};ye.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};ye.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(M.METHOD_DEFLATED),t.getMethod()===M.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(M.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};ye.prototype._smartStream=function(t,e){var r=t.getMethod()===M.METHOD_DEFLATED,i=r?new zk(this.options.zlib):new Gk,n=null;function s(){var o=i.digest().readUInt32BE(0);t.setCrc(o),t.setSize(i.size()),t.setCompressedSize(i.size(!0)),this._afterAppend(t),e(n,t)}return i.once("end",s.bind(this)),i.once("error",function(o){n=o}),i.pipe(this,{end:!1}),i};ye.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=M.ZIP64_MAGIC_SHORT,e=M.ZIP64_MAGIC,r=M.ZIP64_MAGIC),this.write(N.getLongBytes(M.SIG_EOCD)),this.write(M.SHORT_ZERO),this.write(M.SHORT_ZERO),this.write(N.getShortBytes(t)),this.write(N.getShortBytes(t)),this.write(N.getLongBytes(e)),this.write(N.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write(N.getShortBytes(n)),this.write(i)};ye.prototype._writeCentralDirectoryZip64=function(){this.write(N.getLongBytes(M.SIG_ZIP64_EOCD)),this.write(N.getEightBytes(44)),this.write(N.getShortBytes(M.MIN_VERSION_ZIP64)),this.write(N.getShortBytes(M.MIN_VERSION_ZIP64)),this.write(M.LONG_ZERO),this.write(M.LONG_ZERO),this.write(N.getEightBytes(this._entries.length)),this.write(N.getEightBytes(this._entries.length)),this.write(N.getEightBytes(this._archive.centralLength)),this.write(N.getEightBytes(this._archive.centralOffset)),this.write(N.getLongBytes(M.SIG_ZIP64_EOCD_LOC)),this.write(M.LONG_ZERO),this.write(N.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(N.getLongBytes(1))};ye.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t._offsets.file,n=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||i>M.ZIP64_MAGIC){n=M.ZIP64_MAGIC,s=M.ZIP64_MAGIC,i=M.ZIP64_MAGIC,t.setVersionNeededToExtract(M.MIN_VERSION_ZIP64);var o=Buffer.concat([N.getShortBytes(M.ZIP64_EXTRA_ID),N.getShortBytes(24),N.getEightBytes(t.getSize()),N.getEightBytes(t.getCompressedSize()),N.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(N.getLongBytes(M.SIG_CFH)),this.write(N.getShortBytes(t.getPlatform()<<8|M.VERSION_MADEBY)),this.write(N.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(N.getShortBytes(r)),this.write(N.getLongBytes(t.getTimeDos())),this.write(N.getLongBytes(t.getCrc())),this.write(N.getLongBytes(s)),this.write(N.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write(N.getShortBytes(a.length)),this.write(N.getShortBytes(u.length)),this.write(N.getShortBytes(l.length)),this.write(M.SHORT_ZERO),this.write(N.getShortBytes(t.getInternalAttributes())),this.write(N.getLongBytes(t.getExternalAttributes())),this.write(N.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};ye.prototype._writeDataDescriptor=function(t){this.write(N.getLongBytes(M.SIG_DD)),this.write(N.getLongBytes(t.getCrc())),t.isZip64()?(this.write(N.getEightBytes(t.getCompressedSize())),this.write(N.getEightBytes(t.getSize()))):(this.write(N.getLongBytes(t.getCompressedSize())),this.write(N.getLongBytes(t.getSize())))};ye.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(M.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write(N.getLongBytes(M.SIG_LFH)),this.write(N.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(N.getShortBytes(r)),this.write(N.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(M.LONG_ZERO),this.write(M.LONG_ZERO),this.write(M.LONG_ZERO)):(this.write(N.getLongBytes(t.getCrc())),this.write(N.getLongBytes(t.getCompressedSize())),this.write(N.getLongBytes(t.getSize()))),this.write(N.getShortBytes(i.length)),this.write(N.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};ye.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};ye.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>M.ZIP64_MAGIC_SHORT||this._archive.centralLength>M.ZIP64_MAGIC||this._archive.centralOffset>M.ZIP64_MAGIC};ye.prototype.setComment=function(t){this._archive.comment=t}});var kf=p((C6,lS)=>{"use strict";lS.exports={ArchiveEntry:qo(),ZipArchiveEntry:Of(),ArchiveOutputStream:Lf(),ZipArchiveOutputStream:aS()}});var fS=p((k6,uS)=>{"use strict";var $k=I("util").inherits,Ff=kf().ZipArchiveOutputStream,Hk=kf().ZipArchiveEntry,qf=ii(),ni=uS.exports=function(t){if(!(this instanceof ni))return new ni(t);t=this.options=t||{},t.zlib=t.zlib||{},Ff.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};$k(ni,Ff);ni.prototype._normalizeFileData=function(t){t=qf.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",r=t.type==="symlink";return t.name&&(t.name=qf.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=qf.dateify(t.date),t};ni.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new Hk(e.name);return i.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&i.setName(e.name,!0),e.store&&i.setMethod(0),e.comment.length>0&&i.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),i.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),Ff.prototype.entry.call(this,i,t,r)};ni.prototype.finalize=function(){this.finish()}});var cS=p((q6,hS)=>{"use strict";var Vk=fS(),Yk=ii(),Wt=function(t){if(!(this instanceof Wt))return new Wt(t);t=this.options=Yk.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new Vk(t)};Wt.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Wt.prototype.finalize=function(){this.engine.finalize()};Wt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Wt.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Wt.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};hS.exports=Wt});var pS=p((F6,dS)=>{"use strict";dS.exports=I("events")});var yS=p((j6,gS)=>{"use strict";gS.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var Bf=p((U6,_S)=>{"use strict";var mS=yS();_S.exports=class{constructor(e){this.hwm=e||16,this.head=new mS(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new mS(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var jf=p((G6,bS)=>{"use strict";function Zk(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function Kk(t){return Buffer.isEncoding(t)}function Qk(t,e,r){return Buffer.alloc(t,e,r)}function Xk(t){return Buffer.allocUnsafe(t)}function Jk(t){return Buffer.allocUnsafeSlow(t)}function eq(t,e){return Buffer.byteLength(t,e)}function tq(t,e){return Buffer.compare(t,e)}function rq(t,e){return Buffer.concat(t,e)}function iq(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function nq(t,e){return Y(t).equals(e)}function sq(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function oq(t,e,r){return Buffer.from(t,e,r)}function aq(t,e,r,i){return Y(t).includes(e,r,i)}function lq(t,e,r,i){return Y(t).indexOf(e,r,i)}function uq(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function fq(t){return Y(t).swap16()}function hq(t){return Y(t).swap32()}function cq(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function dq(t,e,r,i){return Y(t).toString(e,r,i)}function pq(t,e,r,i,n){return Y(t).write(e,r,i,n)}function gq(t,e){return Y(t).readDoubleBE(e)}function yq(t,e){return Y(t).readDoubleLE(e)}function mq(t,e){return Y(t).readFloatBE(e)}function _q(t,e){return Y(t).readFloatLE(e)}function bq(t,e){return Y(t).readInt32BE(e)}function wq(t,e){return Y(t).readInt32LE(e)}function Sq(t,e){return Y(t).readUInt32BE(e)}function Eq(t,e){return Y(t).readUInt32LE(e)}function vq(t,e,r){return Y(t).writeDoubleBE(e,r)}function xq(t,e,r){return Y(t).writeDoubleLE(e,r)}function Tq(t,e,r){return Y(t).writeFloatBE(e,r)}function Aq(t,e,r){return Y(t).writeFloatLE(e,r)}function Rq(t,e,r){return Y(t).writeInt32BE(e,r)}function Oq(t,e,r){return Y(t).writeInt32LE(e,r)}function Dq(t,e,r){return Y(t).writeUInt32BE(e,r)}function Iq(t,e,r){return Y(t).writeUInt32LE(e,r)}bS.exports={isBuffer:Zk,isEncoding:Kk,alloc:Qk,allocUnsafe:Xk,allocUnsafeSlow:Jk,byteLength:eq,compare:tq,concat:rq,copy:iq,equals:nq,fill:sq,from:oq,includes:aq,indexOf:lq,lastIndexOf:uq,swap16:fq,swap32:hq,swap64:cq,toBuffer:Y,toString:dq,write:pq,readDoubleBE:gq,readDoubleLE:yq,readFloatBE:mq,readFloatLE:_q,readInt32BE:bq,readInt32LE:wq,readUInt32BE:Sq,readUInt32LE:Eq,writeDoubleBE:vq,writeDoubleLE:xq,writeFloatBE:Tq,writeFloatLE:Aq,writeInt32BE:Rq,writeInt32LE:Oq,writeUInt32BE:Dq,writeUInt32LE:Iq}});var SS=p(($6,wS)=>{"use strict";var Lq=jf();wS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return Lq.toString(e,this.encoding)}flush(){return""}}});var TS=p((V6,xS)=>{"use strict";var ES=jf();xS.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&vS(e,0)===0)return this.bytesSeen=Nq(e),ES.toString(e,"utf8");let r="",i=0;if(this.bytesNeeded>0){for(;i<e.byteLength;){let o=e[i];if(o<this.lowerBoundary||o>this.upperBoundary){r+="\uFFFD",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|o&63,this.bytesSeen++,i++,this.bytesSeen===this.bytesNeeded){r+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return r}let n=vS(e,i),s=e.byteLength-n;s>i&&(r+=ES.toString(e,"utf8",i,s));for(let o=s;o<e.byteLength;o++){let a=e[o];if(this.bytesNeeded===0){a<=127?(this.bytesSeen=0,r+=String.fromCharCode(a)):a>=194&&a<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=a&31):a>=224&&a<=239?(a===224?this.lowerBoundary=160:a===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=a&15):a>=240&&a<=244?(a===240?this.lowerBoundary=144:a===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=a&7):(this.bytesSeen=1,r+="\uFFFD");continue}if(a<this.lowerBoundary||a>this.upperBoundary){r+="\uFFFD",o--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|a&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(r+=String.fromCodePoint(this.codePoint),this._reset())}return r}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function vS(t,e){let r=t.byteLength;if(r<=e)return 0;let i=Math.max(e,r-4),n=r-1;for(;n>i&&(t[n]&192)===128;)n--;if(n<e)return 0;let s=t[n],o;if(s<=127)return 0;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 0;let a=r-n;return a<o?a:0}function Nq(t){let e=t.byteLength;if(e===0)return 0;let r=t[e-1];if(r<=127)return 0;if((r&192)!==128)return 1;let i=Math.max(0,e-4),n=e-2;for(;n>=i&&(t[n]&192)===128;)n--;if(n<0)return 1;let s=t[n],o;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 1;if(e-n!==o)return 1;if(o>=3){let a=t[n+1];if(s===224&&a<160||s===237&&a>159||s===240&&a<144||s===244&&a>143)return 1}return 0}});var RS=p((Z6,AS)=>{"use strict";var Pq=SS(),Mq=TS();AS.exports=class{constructor(e="utf8"){switch(this.encoding=Cq(e),this.encoding){case"utf8":this.decoder=new Mq;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new Pq(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let r="";return e&&(r=this.push(e)),r+=this.decoder.flush(),r}};function Cq(t){switch(t=t.toLowerCase(),t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}});var rh=p((K6,KS)=>{"use strict";var{EventEmitter:kq}=pS(),$o=new Error("Stream was destroyed"),Wf=new Error("Premature close"),PS=Bf(),qq=RS(),Uf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ht=1,Zf=2,vt=4,En=8,MS=oe^ht,Fq=oe^Zf,Rn=16,si=32,li=64,Gt=128,On=256,Kf=512,zt=1024,Gf=2048,Qf=4096,Xf=8192,Qe=16384,Ut=32768,Ho=65536,mr=131072,CS=On|Kf,Bq=Rn|Ho,jq=li|Rn,Wq=Qf|Gt,Jf=On|mr,Uq=oe^Rn,Gq=oe^li,zq=oe^(li|Ho),OS=oe^Ho,$q=oe^On,Hq=oe^(Gt|Xf),Vq=oe^zt,DS=oe^CS,kS=oe^Ut,Yq=oe^si,qS=oe^mr,Zq=oe^Jf,xt=1<<18,ai=2<<18,Dn=4<<18,_r=8<<18,In=16<<18,Ht=32<<18,zf=64<<18,oi=128<<18,eh=256<<18,$t=512<<18,Vo=1024<<18,Kq=oe^(xt|eh),FS=oe^Dn,Qq=oe^(xt|$t),Xq=oe^In,Jq=oe^_r,BS=oe^oi,eF=oe^ai,jS=oe^Vo,vn=Rn|xt,WS=oe^vn,th=Qe|Ht,ct=vt|En|Zf,qe=ct|ht,US=ct|th,tF=FS&Gq,Yo=oi|Ut,rF=Yo&WS,GS=qe|rF,iF=qe|zt|Qe,IS=qe|Qe|Gt,nF=qe|zt|Gt,sF=qe|Qf|Gt|Xf,oF=qe|Rn|zt|Qe|Ho|mr,aF=ct|zt|Qe,lF=si|qe|Ut|li,uF=Ut|ht,fF=qe|$t|Ht,hF=_r|In,zS=_r|xt,cF=_r|In|qe|xt,LS=qe|xt|_r|Vo,dF=Dn|xt,pF=xt|eh,gF=qe|$t|zS|Ht,yF=In|ct|$t|Ht,mF=ai|qe|oi|Dn,_F=$t|Ht|ct,jo=Symbol.asyncIterator||Symbol("asyncIterator"),Wo=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new PS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||ZS,this.map=n||i,this.afterWrite=SF.bind(this),this.afterUpdateNextTick=xF.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&_F)!==0?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=_r,!0):(this.stream._duplexState|=hF,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=Jq),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&FS}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&LS)===zS;)i.push(n._writableState.shift());if((n._duplexState&qe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=ai;do{for(;(e._duplexState&LS)===_r;){let r=this.shift();e._duplexState|=pF,e._write(r,this.afterWrite)}(e._duplexState&dF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=eF}updateNonPrimary(){let e=this.stream;if((e._duplexState&gF)===$t){e._duplexState=e._duplexState|xt,e._final(wF.bind(this));return}if((e._duplexState&ct)===vt){(e._duplexState&Yo)===0&&(e._duplexState|=vn,e._destroy($S.bind(this)));return}(e._duplexState&GS)===ht&&(e._duplexState=(e._duplexState|vn)&MS,e._open(HS.bind(this)))}continueUpdate(){return(this.stream._duplexState&oi)===0?!1:(this.stream._duplexState&=BS,!0)}updateCallback(){(this.stream._duplexState&mF)===Dn?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&oi)===0&&(this.stream._duplexState|=oi,(this.stream._duplexState&ai)===0&&Uf(this.afterUpdateNextTick))}},$f=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new PS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||ZS,this.map=n||i,this.pipeTo=null,this.afterRead=EF.bind(this),this.afterUpdateNextTick=vF.bind(this)}get ending(){return(this.stream._duplexState&zt)!==0}get ended(){return(this.stream._duplexState&Qe)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=Kf,this.pipeTo=e,this.pipeline=new Vf(this.stream,e,r),r&&this.stream.on("error",NS),An(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",NS),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let i=this.pipeline.done.bind(this.pipeline,e),n=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",i),e.on("close",n),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",bF.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|zt)&zq,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=OS,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|Gt)&OS,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=Hq),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let i=0;i<r.length-1;i++){let n=r[i];this.buffered+=this.byteLength(n),this.queue.push(n)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&IS)===Gt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=DS),(e._duplexState&Gf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=mr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&IS)===Gt&&(e._duplexState&CS)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=DS),(e._duplexState&Gf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=si;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&oF)===mr;)e._duplexState|=Bq,e._read(this.afterRead),this.drain();(e._duplexState&sF)===Wq&&(e._duplexState|=Xf,e.emit("readable")),(e._duplexState&jq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=Yq}updateNonPrimary(){let e=this.stream;if((e._duplexState&nF)===zt&&(e._duplexState=(e._duplexState|Qe)&Vq,e.emit("end"),(e._duplexState&US)===th&&(e._duplexState|=vt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ct)===vt){(e._duplexState&Yo)===0&&(e._duplexState|=vn,e._destroy($S.bind(this)));return}(e._duplexState&GS)===ht&&(e._duplexState=(e._duplexState|vn)&MS,e._open(HS.bind(this)))}continueUpdate(){return(this.stream._duplexState&Ut)===0?!1:(this.stream._duplexState&=kS,!0)}updateCallback(){(this.stream._duplexState&lF)===li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&uF)===0&&(this.stream._duplexState|=Ut,(this.stream._duplexState&si)===0&&Uf(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Ut)===0&&(this.stream._duplexState|=Ut,(this.stream._duplexState&si)===0&&Uf(this.afterUpdateNextTick))}},Hf=class{constructor(e){this.data=null,this.afterTransform=AF.bind(e),this.afterFinal=null}},Vf=class{constructor(e,r,i){this.from=e,this.to=r,this.afterPipe=i,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Qe)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Qe)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function bF(){this.stream._duplexState|=Kf,this.updateCallback()}function wF(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ct)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&US)===th&&(e._duplexState|=vt),e._duplexState&=Qq,(e._duplexState&ai)===0?this.update():this.updateNextTick()}function $S(t){let e=this.stream;!t&&this.error!==$o&&(t=this.error),t&&e.emit("error",t),e._duplexState|=En,e.emit("close");let r=e._readableState,i=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),i!==null){for(;i.drains!==null&&i.drains.length>0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(e,t)}}function SF(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=Kq,this.drains!==null&&TF(this.drains),(e._duplexState&cF)===In&&(e._duplexState&=Xq,(e._duplexState&zf)===zf&&e.emit("drain")),this.updateCallback()}function EF(t){t&&this.stream.destroy(t),this.stream._duplexState&=Uq,this.readAhead===!1&&(this.stream._duplexState&On)===0&&(this.stream._duplexState&=qS),this.updateCallback()}function vF(){(this.stream._duplexState&si)===0&&(this.stream._duplexState&=kS,this.update())}function xF(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState&=BS,this.update())}function TF(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function HS(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&vt)===0&&((e._duplexState&iF)===0&&(e._duplexState|=li),(e._duplexState&fF)===0&&(e._duplexState|=Dn),e.emit("open")),e._duplexState&=WS,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function AF(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function RF(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Gf|Jf,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=Qf,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=zf,this._writableState.updateNextTick())}var xn=class extends kq{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",BF.bind(this))),this.on("newListener",RF)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&En)!==0}get destroying(){return(this._duplexState&ct)!==0}destroy(e){(this._duplexState&ct)===0&&(e||(e=$o),this._duplexState=(this._duplexState|vt)&tF,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Zf,this._predestroy(),this._duplexState&=Fq,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Uo=class t extends xn{constructor(e){super(e),this._duplexState|=ht|Ht|mr,this._readableState=new $f(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=qS),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new qq(e),i=this._readableState.map||IF;return this._readableState.map=n,this;function n(s){let o=r.push(s);return o===""&&(s.byteLength!==0||r.remaining>0)?null:i(o)}}_read(e){e(null)}pipe(e,r){return this._readableState.updateNextTick(),this._readableState.pipe(e,r),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=Jf,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?Zq:$q,this}static _fromAsyncIterator(e,r){let i,n=new t({...r,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){i=e.return()},destroy(o){if(!i)return o(null);i.then(o.bind(null,null)).catch(o)}});return n;function s(o){o.done?n.push(null):n.push(o.value)}}static from(e,r){if(kF(e))return e;if(e[jo])return this._fromAsyncIterator(e[jo](),r);Array.isArray(e)||(e=e===void 0?[]:[e]);let i=0;return new t({...r,read(n){this.push(i===e.length?null:e[i++]),n(null)}})}static isBackpressured(e){return(e._duplexState&aF)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&On)===0}[jo](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[jo](){return this},next(){return new Promise(function(u,f){i=u,n=f;let h=e.read();h!==null?a(h):(e._duplexState&En)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){i!==null&&a(e.read())}function o(){i!==null&&a(null)}function a(u){n!==null&&(r?n(r):u===null&&(e._duplexState&Qe)===0?n($o):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,h)=>{if(e._duplexState&En)return f({value:void 0,done:!0});e.once("close",function(){u?h(u):f({value:void 0,done:!0})})})}}},Go=class extends xn{constructor(e){super(e),this._duplexState|=ht|Qe,this._writableState=new Wo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=Vo}uncork(){this._duplexState&=jS,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&yF)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(jF(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&eh?1:0);return n===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:n,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Tn=class extends Uo{constructor(e){super(e),this._duplexState=ht|this._duplexState&mr,this._writableState=new Wo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Vo}uncork(){this._duplexState&=jS,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},zo=class extends Tn{constructor(e){super(e),this._transformState=new Hf(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(OF.bind(this))}},Yf=class extends zo{};function OF(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function DF(...t){return new Promise((e,r)=>VS(...t,i=>{if(i)return r(i);e()}))}function VS(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],i=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let n=r[0],s=null,o=null;for(let u=1;u<r.length;u++)s=r[u],An(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=An(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",h=>{o===null&&(o=h)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:Wf)))}return s;function a(u,f,h,c){u.on("error",c),u.on("close",d);function d(){if(f&&u._readableState&&!u._readableState.ended||h&&u._writableState&&!u._writableState.ended)return c(Wf)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function IF(t){return t}function YS(t){return!!t._readableState||!!t._writableState}function An(t){return typeof t._duplexState=="number"&&YS(t)}function LF(t){return!!t._readableState&&t._readableState.ending}function NF(t){return!!t._readableState&&t._readableState.ended}function PF(t){return!!t._writableState&&t._writableState.ending}function MF(t){return!!t._writableState&&t._writableState.ended}function CF(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===$o?null:r}function kF(t){return An(t)&&t.readable}function qF(t){return(t._duplexState&ht)!==ht||(t._duplexState&vt)===vt||(t._duplexState&Yo)!==0}function FF(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function ZS(t){return FF(t)?t.byteLength:1024}function NS(){}function BF(){this.destroy(new Error("Stream aborted."))}function jF(t){return t._writev!==Go.prototype._writev&&t._writev!==Tn.prototype._writev}KS.exports={pipeline:VS,pipelinePromise:DF,isStream:YS,isStreamx:An,isEnding:LF,isEnded:NF,isFinishing:PF,isFinished:MF,isDisturbed:qF,getStreamError:CF,Stream:xn,Writable:Go,Readable:Uo,Duplex:Tn,Transform:zo,PassThrough:Yf}});var Zo=p((Q6,QS)=>{"use strict";function WF(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function UF(t){return Buffer.isEncoding(t)}function GF(t,e,r){return Buffer.alloc(t,e,r)}function zF(t){return Buffer.allocUnsafe(t)}function $F(t){return Buffer.allocUnsafeSlow(t)}function HF(t,e){return Buffer.byteLength(t,e)}function VF(t,e){return Buffer.compare(t,e)}function YF(t,e){return Buffer.concat(t,e)}function ZF(t,e,r,i,n){return Z(t).copy(e,r,i,n)}function KF(t,e){return Z(t).equals(e)}function QF(t,e,r,i,n){return Z(t).fill(e,r,i,n)}function XF(t,e,r){return Buffer.from(t,e,r)}function JF(t,e,r,i){return Z(t).includes(e,r,i)}function e3(t,e,r,i){return Z(t).indexOf(e,r,i)}function t3(t,e,r,i){return Z(t).lastIndexOf(e,r,i)}function r3(t){return Z(t).swap16()}function i3(t){return Z(t).swap32()}function n3(t){return Z(t).swap64()}function Z(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function s3(t,e,r,i){return Z(t).toString(e,r,i)}function o3(t,e,r,i,n){return Z(t).write(e,r,i,n)}function a3(t,e){return Z(t).readDoubleBE(e)}function l3(t,e){return Z(t).readDoubleLE(e)}function u3(t,e){return Z(t).readFloatBE(e)}function f3(t,e){return Z(t).readFloatLE(e)}function h3(t,e){return Z(t).readInt32BE(e)}function c3(t,e){return Z(t).readInt32LE(e)}function d3(t,e){return Z(t).readUInt32BE(e)}function p3(t,e){return Z(t).readUInt32LE(e)}function g3(t,e,r){return Z(t).writeDoubleBE(e,r)}function y3(t,e,r){return Z(t).writeDoubleLE(e,r)}function m3(t,e,r){return Z(t).writeFloatBE(e,r)}function _3(t,e,r){return Z(t).writeFloatLE(e,r)}function b3(t,e,r){return Z(t).writeInt32BE(e,r)}function w3(t,e,r){return Z(t).writeInt32LE(e,r)}function S3(t,e,r){return Z(t).writeUInt32BE(e,r)}function E3(t,e,r){return Z(t).writeUInt32LE(e,r)}QS.exports={isBuffer:WF,isEncoding:UF,alloc:GF,allocUnsafe:zF,allocUnsafeSlow:$F,byteLength:HF,compare:VF,concat:YF,copy:ZF,equals:KF,fill:QF,from:XF,includes:JF,indexOf:e3,lastIndexOf:t3,swap16:r3,swap32:i3,swap64:n3,toBuffer:Z,toString:s3,write:o3,readDoubleBE:a3,readDoubleLE:l3,readFloatBE:u3,readFloatLE:f3,readInt32BE:h3,readInt32LE:c3,readUInt32BE:d3,readUInt32LE:p3,writeDoubleBE:g3,writeDoubleLE:y3,writeFloatBE:m3,writeFloatLE:_3,writeInt32BE:b3,writeInt32LE:w3,writeUInt32BE:S3,writeUInt32LE:E3}});var sh=p(fi=>{"use strict";var U=Zo(),v3="0000000000000000000",x3="7777777777777777777",Ko=48,XS=U.from([117,115,116,97,114,0]),T3=U.from([Ko,Ko]),A3=U.from([117,115,116,97,114,32]),R3=U.from([32,0]),O3=4095,Ln=257,nh=263;fi.decodeLongPath=function(e,r){return ui(e,0,e.length,r)};fi.encodePax=function(e){let r="";e.name&&(r+=ih(" path="+e.name+`
|
|
9
9
|
`)),e.linkname&&(r+=ih(" linkpath="+e.linkname+`
|
|
10
10
|
`));let i=e.pax;if(i)for(let n in i)r+=ih(" "+n+"="+i[n]+`
|
|
11
|
-
`);return U.from(r)};fi.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(U.toString(e.subarray(0,i)),10);if(!n)return r;let s=U.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};fi.encode=function(e){let r=U.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),U.byteLength(i)!==i.length)return null;for(;U.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return U.byteLength(i)>100||U.byteLength(n)>155||e.linkname&&U.byteLength(e.linkname)>100?null:(U.write(r,i),U.write(r,Yt(e.mode&D3,6),100),U.write(r,Yt(e.uid,6),108),U.write(r,Yt(e.gid,6),116),k3(e.size,r,124),U.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=Ko+M3(e.type),e.linkname&&U.write(r,e.linkname,157),U.copy(JS,r,Ln),U.copy(A3,r,nh),e.uname&&U.write(r,e.uname,265),e.gname&&U.write(r,e.gname,297),U.write(r,Yt(e.devmajor||0,6),329),U.write(r,Yt(e.devminor||0,6),337),n&&U.write(r,n,345),U.write(r,Yt(tE(r),6),148),r)};fi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Ko,s=ui(e,0,100,r),o=Vt(e,100,8),a=Vt(e,108,8),l=Vt(e,116,8),u=Vt(e,124,12),f=Vt(e,136,12),h=N3(n),c=e[157]===0?null:ui(e,157,100,r),d=ui(e,265,32),b=ui(e,297,32),g=Vt(e,329,8),x=Vt(e,337,8),y=tE(e);if(y===256)return null;if(y!==Vt(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(I3(e))e[345]&&(s=ui(e,345,155,r)+"/"+s);else if(!L3(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:l,size:u,mtime:new Date(1e3*f),type:h,linkname:c,uname:d,gname:b,devmajor:g,devminor:x,pax:null}};function I3(t){return U.equals(JS,t.subarray(Ln,Ln+6))}function L3(t){return U.equals(R3,t.subarray(Ln,Ln+6))&&U.equals(O3,t.subarray(nh,nh+2))}function P3(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function N3(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function M3(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function eE(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function tE(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Yt(t,e){return t=t.toString(8),t.length>e?T3.slice(0,e)+" ":x3.slice(0,e-t.length)+t+" "}function C3(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function k3(t,e,r){t.toString(8).length>11?C3(t,e,r):U.write(e,Yt(t,11),r)}function q3(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function Vt(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return q3(t);{for(;e<t.length&&t[e]===32;)e++;let i=P3(eE(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(U.toString(t.subarray(e,i)),8)}}function ui(t,e,r,i){return U.toString(t.subarray(e,eE(t,0,e,e+r)),i)}function ih(t){let e=U.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var oE=p((e8,sE)=>{"use strict";var{Writable:F3,Readable:B3,getStreamError:rE}=rh(),j3=Bf(),iE=Zo(),hi=sh(),W3=iE.alloc(0),ah=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new j3,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return W3;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return iE.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},lh=class extends B3{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(rE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=nE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},uh=class extends F3{constructor(e){super(e),e||(e={}),this._buffer=new ah,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=oh,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=hi.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=hi.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=hi.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=hi.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?hi.decodePax(e):Object.assign({},this._paxGlobal,hi.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=nE(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new lh(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=oh,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(rE(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,i=null,n=null,s=null,o=this;return this.on("entry",u),this.on("error",c=>{e=c}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return h(null)},throw(c){return h(c)}};function a(c){if(!s)return;let d=s;s=null,d(c)}function l(c,d){if(e)return d(e);if(n){c({value:n,done:!1}),n=null;return}r=c,i=d,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(c,d,b){s=b,d.on("error",oh),r?(r({value:d,done:!1}),r=i=null):n=d}function f(){a(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function h(c){return o.destroy(c),a(c),new Promise((d,b)=>{if(o.destroyed)return d({value:void 0,done:!0});o.once("close",function(){c?b(c):d({value:void 0,done:!0})})})}}};sE.exports=function(e){return new uh(e)};function oh(){}function nE(t){return t&=511,t&&512-t}});var lE=p((t8,fh)=>{"use strict";var aE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{fh.exports=I("fs").constants||aE}catch{fh.exports=aE}});var dE=p((r8,cE)=>{"use strict";var{Readable:U3,Writable:G3,getStreamError:uE}=rh(),br=Zo(),ci=lE(),Qo=sh(),z3=493,$3=420,fE=br.alloc(1024),ch=class extends G3{constructor(e,r,i){super({mapWritable:V3,eagerOpen:!0}),this.written=0,this.header=r,this._callback=i,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?br.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?br.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),hE(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return uE(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},dh=class extends U3{constructor(e){super(e),this._drain=hh,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,i){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(i=r,r=null),i||(i=hh),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=H3(e.mode)),e.mode||(e.mode=e.type==="directory"?z3:$3),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=br.from(r));let n=new ch(this,e,i);return br.isBuffer(r)?(e.size=r.byteLength,n.write(r),n.end(),n):(n._isVoid,n)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(fE),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=Qo.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=Qo.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),i={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(Qo.encode(i)),this.push(r),hE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(Qo.encode(i))}_doDrain(){let e=this._drain;this._drain=hh,e()}_predestroy(){let e=uE(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};cE.exports=function(e){return new dh(e)};function H3(t){switch(t&ci.S_IFMT){case ci.S_IFBLK:return"block-device";case ci.S_IFCHR:return"character-device";case ci.S_IFDIR:return"directory";case ci.S_IFIFO:return"fifo";case ci.S_IFLNK:return"symlink"}return"file"}function hh(){}function hE(t,e){e&=511,e&&t.push(fE.subarray(0,512-e))}function V3(t){return br.isBuffer(t)?t:br.from(t)}});var pE=p(ph=>{"use strict";ph.extract=oE();ph.pack=dE()});var mE=p((n8,yE)=>{"use strict";var Y3=I("zlib"),Z3=pE(),gE=ii(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=gE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=Z3.pack(t),this.compressor=!1,t.gzip&&(this.compressor=Y3.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Tt.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Tt.prototype.append=function(t,e,r){var i=this;e.mtime=e.date;function n(o,a){if(o){r(o);return}i.engine.entry(e,a,function(l){r(l,e)})}if(e.sourceType==="buffer")n(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=i.engine.entry(e,function(o){r(o,e)});t.pipe(s)}else e.sourceType==="stream"&&gE.collectStream(t,n)};Tt.prototype.finalize=function(){this.engine.finalize()};Tt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tt.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Tt.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};yE.exports=Tt});var wE=p((s8,bE)=>{"use strict";function K3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Q3=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function _E(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function X3(t){let e=_E(4);return e.writeInt32BE(t,0),e}function gh(t,e){t=_E(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=Q3[(r^t[i])&255]^r>>>8;return r^-1}function yh(){return X3(gh.apply(null,arguments))}yh.signed=function(){return gh.apply(null,arguments)};yh.unsigned=function(){return gh.apply(null,arguments)>>>0};var J3=yh,eB=K3(J3);bE.exports=eB});var xE=p((o8,vE)=>{"use strict";var tB=I("util").inherits,SE=hr().Transform,rB=wE(),EE=ii(),Zt=function(t){if(!(this instanceof Zt))return new Zt(t);t=this.options=EE.defaults(t,{}),SE.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};tB(Zt,SE);Zt.prototype._transform=function(t,e,r){r(null,t)};Zt.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Zt.prototype.append=function(t,e,r){var i=this;e.crc32=0;function n(s,o){if(s){r(s);return}e.size=o.length||0,e.crc32=rB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&EE.collectStream(t,n)};Zt.prototype.finalize=function(){this._writeStringified(),this.end()};vE.exports=Zt});var nB=p((a8,TE)=>{"use strict";var iB=C0(),Pn={},Kt=function(t,e){return Kt.create(t,e)};Kt.create=function(t,e){if(Pn[t]){var r=new iB(t,e);return r.setFormat(t),r.setModule(new Pn[t](e)),r}else throw new Error("create("+t+"): format not registered")};Kt.registerFormat=function(t,e){if(Pn[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");Pn[t]=e};Kt.isRegisteredFormat=function(t){return!!Pn[t]};Kt.registerFormat("zip",dS());Kt.registerFormat("tar",mE());Kt.registerFormat("json",xE());TE.exports=Kt});async function u8(t,e,r){let i=await mh(t,{method:"PUT",headers:{"Content-Type":r,"x-ms-blob-type":"BlockBlob"},body:new Uint8Array(e)});if(!i.ok)throw new Error(`Azure upload failed: ${i.status} ${await i.text()}`)}export{nB as a,u8 as b};
|
|
11
|
+
`);return U.from(r)};fi.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(U.toString(e.subarray(0,i)),10);if(!n)return r;let s=U.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};fi.encode=function(e){let r=U.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),U.byteLength(i)!==i.length)return null;for(;U.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return U.byteLength(i)>100||U.byteLength(n)>155||e.linkname&&U.byteLength(e.linkname)>100?null:(U.write(r,i),U.write(r,Yt(e.mode&O3,6),100),U.write(r,Yt(e.uid,6),108),U.write(r,Yt(e.gid,6),116),C3(e.size,r,124),U.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=Ko+P3(e.type),e.linkname&&U.write(r,e.linkname,157),U.copy(XS,r,Ln),U.copy(T3,r,nh),e.uname&&U.write(r,e.uname,265),e.gname&&U.write(r,e.gname,297),U.write(r,Yt(e.devmajor||0,6),329),U.write(r,Yt(e.devminor||0,6),337),n&&U.write(r,n,345),U.write(r,Yt(eE(r),6),148),r)};fi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Ko,s=ui(e,0,100,r),o=Vt(e,100,8),a=Vt(e,108,8),l=Vt(e,116,8),u=Vt(e,124,12),f=Vt(e,136,12),h=N3(n),c=e[157]===0?null:ui(e,157,100,r),d=ui(e,265,32),b=ui(e,297,32),g=Vt(e,329,8),x=Vt(e,337,8),y=eE(e);if(y===256)return null;if(y!==Vt(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(D3(e))e[345]&&(s=ui(e,345,155,r)+"/"+s);else if(!I3(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:l,size:u,mtime:new Date(1e3*f),type:h,linkname:c,uname:d,gname:b,devmajor:g,devminor:x,pax:null}};function D3(t){return U.equals(XS,t.subarray(Ln,Ln+6))}function I3(t){return U.equals(A3,t.subarray(Ln,Ln+6))&&U.equals(R3,t.subarray(nh,nh+2))}function L3(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function N3(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function P3(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function JS(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function eE(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Yt(t,e){return t=t.toString(8),t.length>e?x3.slice(0,e)+" ":v3.slice(0,e-t.length)+t+" "}function M3(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function C3(t,e,r){t.toString(8).length>11?M3(t,e,r):U.write(e,Yt(t,11),r)}function k3(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function Vt(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return k3(t);{for(;e<t.length&&t[e]===32;)e++;let i=L3(JS(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(U.toString(t.subarray(e,i)),8)}}function ui(t,e,r,i){return U.toString(t.subarray(e,JS(t,0,e,e+r)),i)}function ih(t){let e=U.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var sE=p((J6,nE)=>{"use strict";var{Writable:q3,Readable:F3,getStreamError:tE}=rh(),B3=Bf(),rE=Zo(),hi=sh(),j3=rE.alloc(0),ah=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new B3,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return j3;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return rE.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},lh=class extends F3{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(tE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=iE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},uh=class extends q3{constructor(e){super(e),e||(e={}),this._buffer=new ah,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=oh,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=hi.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=hi.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=hi.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=hi.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?hi.decodePax(e):Object.assign({},this._paxGlobal,hi.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=iE(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new lh(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=oh,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(tE(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,i=null,n=null,s=null,o=this;return this.on("entry",u),this.on("error",c=>{e=c}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return h(null)},throw(c){return h(c)}};function a(c){if(!s)return;let d=s;s=null,d(c)}function l(c,d){if(e)return d(e);if(n){c({value:n,done:!1}),n=null;return}r=c,i=d,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(c,d,b){s=b,d.on("error",oh),r?(r({value:d,done:!1}),r=i=null):n=d}function f(){a(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function h(c){return o.destroy(c),a(c),new Promise((d,b)=>{if(o.destroyed)return d({value:void 0,done:!0});o.once("close",function(){c?b(c):d({value:void 0,done:!0})})})}}};nE.exports=function(e){return new uh(e)};function oh(){}function iE(t){return t&=511,t&&512-t}});var aE=p((e8,fh)=>{"use strict";var oE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{fh.exports=I("fs").constants||oE}catch{fh.exports=oE}});var cE=p((t8,hE)=>{"use strict";var{Readable:W3,Writable:U3,getStreamError:lE}=rh(),br=Zo(),ci=aE(),Qo=sh(),G3=493,z3=420,uE=br.alloc(1024),ch=class extends U3{constructor(e,r,i){super({mapWritable:H3,eagerOpen:!0}),this.written=0,this.header=r,this._callback=i,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?br.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?br.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),fE(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return lE(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},dh=class extends W3{constructor(e){super(e),this._drain=hh,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,i){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(i=r,r=null),i||(i=hh),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=$3(e.mode)),e.mode||(e.mode=e.type==="directory"?G3:z3),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=br.from(r));let n=new ch(this,e,i);return br.isBuffer(r)?(e.size=r.byteLength,n.write(r),n.end(),n):(n._isVoid,n)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(uE),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=Qo.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=Qo.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),i={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(Qo.encode(i)),this.push(r),fE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(Qo.encode(i))}_doDrain(){let e=this._drain;this._drain=hh,e()}_predestroy(){let e=lE(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};hE.exports=function(e){return new dh(e)};function $3(t){switch(t&ci.S_IFMT){case ci.S_IFBLK:return"block-device";case ci.S_IFCHR:return"character-device";case ci.S_IFDIR:return"directory";case ci.S_IFIFO:return"fifo";case ci.S_IFLNK:return"symlink"}return"file"}function hh(){}function fE(t,e){e&=511,e&&t.push(uE.subarray(0,512-e))}function H3(t){return br.isBuffer(t)?t:br.from(t)}});var dE=p(ph=>{"use strict";ph.extract=sE();ph.pack=cE()});var yE=p((i8,gE)=>{"use strict";var V3=I("zlib"),Y3=dE(),pE=ii(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=pE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=Y3.pack(t),this.compressor=!1,t.gzip&&(this.compressor=V3.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Tt.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Tt.prototype.append=function(t,e,r){var i=this;e.mtime=e.date;function n(o,a){if(o){r(o);return}i.engine.entry(e,a,function(l){r(l,e)})}if(e.sourceType==="buffer")n(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=i.engine.entry(e,function(o){r(o,e)});t.pipe(s)}else e.sourceType==="stream"&&pE.collectStream(t,n)};Tt.prototype.finalize=function(){this.engine.finalize()};Tt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tt.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Tt.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};gE.exports=Tt});var bE=p((n8,_E)=>{"use strict";function Z3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var K3=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function mE(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function Q3(t){let e=mE(4);return e.writeInt32BE(t,0),e}function gh(t,e){t=mE(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=K3[(r^t[i])&255]^r>>>8;return r^-1}function yh(){return Q3(gh.apply(null,arguments))}yh.signed=function(){return gh.apply(null,arguments)};yh.unsigned=function(){return gh.apply(null,arguments)>>>0};var X3=yh,J3=Z3(X3);_E.exports=J3});var vE=p((s8,EE)=>{"use strict";var eB=I("util").inherits,wE=hr().Transform,tB=bE(),SE=ii(),Zt=function(t){if(!(this instanceof Zt))return new Zt(t);t=this.options=SE.defaults(t,{}),wE.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};eB(Zt,wE);Zt.prototype._transform=function(t,e,r){r(null,t)};Zt.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Zt.prototype.append=function(t,e,r){var i=this;e.crc32=0;function n(s,o){if(s){r(s);return}e.size=o.length||0,e.crc32=tB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&SE.collectStream(t,n)};Zt.prototype.finalize=function(){this._writeStringified(),this.end()};EE.exports=Zt});var iB=p((o8,xE)=>{"use strict";var rB=M0(),Nn={},Kt=function(t,e){return Kt.create(t,e)};Kt.create=function(t,e){if(Nn[t]){var r=new rB(t,e);return r.setFormat(t),r.setModule(new Nn[t](e)),r}else throw new Error("create("+t+"): format not registered")};Kt.registerFormat=function(t,e){if(Nn[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");Nn[t]=e};Kt.isRegisteredFormat=function(t){return!!Nn[t]};Kt.registerFormat("zip",cS());Kt.registerFormat("tar",yE());Kt.registerFormat("json",vE());xE.exports=Kt});export{iB as a};
|
|
12
12
|
/*! Bundled license information:
|
|
13
13
|
|
|
14
14
|
normalize-path/index.js:
|