@shopify/cli 4.6.0 → 4.7.0
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/analytics-6LI5GLWS.js +1 -0
- package/dist/analytics-UNRIIG4Y.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-4YCMEC5R.js → chunk-2CYVZUYT.js} +1 -1
- package/dist/{chunk-C256W7D2.js → chunk-2HK4MFWP.js} +3 -3
- package/dist/chunk-2JDCVEFK.js +1 -0
- package/dist/chunk-2SZOPJYI.js +1 -0
- package/dist/chunk-2U4P6UFZ.js +6 -0
- package/dist/{chunk-TAFOSPBW.js → chunk-2WJAAJVX.js} +1 -1
- package/dist/chunk-37TEEITE.js +2 -0
- package/dist/chunk-3K6VHXC2.js +4 -0
- package/dist/chunk-4HV6A6UH.js +8 -0
- package/dist/chunk-4JY2P2A5.js +1 -0
- package/dist/chunk-4LRG5YBS.js +3 -0
- package/dist/chunk-4W3UE2ZI.js +1 -0
- package/dist/chunk-5CADTCJE.js +25 -0
- package/dist/chunk-5CR5YJTU.js +11 -0
- package/dist/chunk-5CYJG63I.js +1 -0
- package/dist/chunk-5HBIIYSK.js +1 -0
- package/dist/chunk-5HPBQ6U5.js +1 -0
- package/dist/chunk-5NO5OXYP.js +15 -0
- package/dist/chunk-63CIFL36.js +6 -0
- package/dist/chunk-6EBLULOC.js +1 -0
- package/dist/{chunk-FMTPUYSH.js → chunk-6ENBE43F.js} +1 -1
- package/dist/chunk-6OFGSZD6.js +1 -0
- package/dist/chunk-6PDR2IUL.js +11 -0
- package/dist/chunk-6VGJVXZI.js +3 -0
- package/dist/{chunk-ILQXBASM.js → chunk-6VRXGEIW.js} +1 -1
- package/dist/chunk-6WZYX5RO.js +1 -0
- package/dist/chunk-7AALWJAO.js +7 -0
- package/dist/chunk-7DOWT5JZ.js +20 -0
- package/dist/chunk-7JIQXGDE.js +9 -0
- package/dist/chunk-7MHANY34.js +1 -0
- package/dist/chunk-7WTNEG2F.js +3 -0
- package/dist/chunk-7Y7AZRL3.js +10 -0
- package/dist/chunk-ACTDYTAV.js +317 -0
- package/dist/{chunk-Y2PC2BBJ.js → chunk-AEUCDGTB.js} +4 -4
- package/dist/chunk-AGOEROAI.js +10 -0
- package/dist/{chunk-WPRAJ25Z.js → chunk-AH2ZGMDM.js} +1 -1
- package/dist/chunk-AMLWPYNA.js +4 -0
- package/dist/chunk-B4OMIONW.js +5 -0
- package/dist/chunk-BR6DBMQA.js +5 -0
- package/dist/chunk-CFWHR74L.js +1 -0
- package/dist/chunk-CHMEDVDZ.js +15 -0
- package/dist/chunk-CIH6LPTG.js +6 -0
- package/dist/chunk-CMYQXGLO.js +1 -0
- package/dist/chunk-CTRXLZAJ.js +1 -0
- package/dist/{chunk-WWX265PC.js → chunk-CYOFLJ3Z.js} +1 -1
- package/dist/{chunk-HSKB5OTM.js → chunk-CZJZCJRX.js} +1 -1
- package/dist/chunk-CZPGC2E7.js +1 -0
- package/dist/{chunk-2I62GKIH.js → chunk-D2K2ZBKH.js} +8 -8
- package/dist/chunk-DHU57LKD.js +1 -0
- package/dist/chunk-DKL6N3L2.js +1 -0
- package/dist/chunk-DMXQLI35.js +1 -0
- package/dist/chunk-DPNZWBT5.js +1 -0
- package/dist/{chunk-QU5NL2QT.js → chunk-DQCIORGH.js} +1 -1
- package/dist/chunk-DQFSKPKL.js +6 -0
- package/dist/{chunk-6Q5VRSRN.js → chunk-E2W5OYYM.js} +1 -1
- package/dist/chunk-E5T4YRGW.js +1 -0
- package/dist/chunk-EOMCXBCS.js +5 -0
- package/dist/{chunk-LWRDNTAD.js → chunk-EW55WWT7.js} +1 -1
- package/dist/{chunk-6UTUJKKC.js → chunk-F5HCSUXC.js} +5 -5
- package/dist/{chunk-W2GMKXM7.js → chunk-FCGKO2KY.js} +1 -1
- package/dist/{chunk-7CPECP5P.js → chunk-FULWTZS6.js} +1 -1
- package/dist/chunk-FWPJEL6Q.js +3 -0
- package/dist/chunk-GKOBFX4A.js +1 -0
- package/dist/chunk-GLWQMLUC.js +1 -0
- package/dist/chunk-GMTNOCMS.js +375 -0
- package/dist/chunk-GSCWZR22.js +1 -0
- package/dist/chunk-GZ64KWHX.js +8 -0
- package/dist/{chunk-72GN655L.js → chunk-H5KWM27L.js} +1 -1
- package/dist/chunk-HHVHVGRT.js +1 -0
- package/dist/{chunk-EBZ6MDEM.js → chunk-HLNJL4B6.js} +1 -1
- package/dist/{chunk-OUUOML3D.js → chunk-HZIX3DIT.js} +1 -1
- package/dist/chunk-I3N6NPHF.js +2 -0
- package/dist/chunk-JD5P5RAJ.js +1 -0
- package/dist/chunk-JJJTPEMD.js +1 -0
- package/dist/{chunk-KRZABRYT.js → chunk-JLGA3B7P.js} +1 -1
- package/dist/chunk-JQ2B3VHR.js +7 -0
- package/dist/{chunk-VZKR2YFM.js → chunk-JQISGC7D.js} +1 -1
- package/dist/chunk-JQVXH26X.js +6 -0
- package/dist/{chunk-ERCJPRN3.js → chunk-JUKAWTYY.js} +1 -1
- package/dist/{chunk-JHRZCUBE.js → chunk-JZMRBJH3.js} +1 -1
- package/dist/chunk-JZXA3H5K.js +1 -0
- package/dist/chunk-K4KTNINH.js +1 -0
- package/dist/chunk-KCS75ZM4.js +1 -0
- package/dist/{chunk-AJ6VOBXU.js → chunk-KIYHEMHD.js} +7 -7
- package/dist/chunk-KK24VGVE.js +6 -0
- package/dist/{chunk-6BX62FFE.js → chunk-KOVAFUYN.js} +1 -1
- package/dist/{chunk-QG7TELFC.js → chunk-KUNDCAQN.js} +1 -1
- package/dist/{chunk-3NO6PWNL.js → chunk-L67BU25M.js} +1 -1
- package/dist/{chunk-4KZRP2JP.js → chunk-LDF4PQ3B.js} +18 -18
- package/dist/chunk-LFOBYEWG.js +1 -0
- package/dist/chunk-LJM2DUXN.js +1 -0
- package/dist/{chunk-XWPPBOGF.js → chunk-LQ7ENG4V.js} +1 -1
- package/dist/chunk-LQCR4TGH.js +3 -0
- package/dist/{chunk-UM3OHLCX.js → chunk-LRQYUWWB.js} +1 -1
- package/dist/{chunk-CXWLHQKA.js → chunk-LWJA2DQG.js} +1 -1
- package/dist/{chunk-IKYZ5L3F.js → chunk-LZ3GZ7NS.js} +1 -1
- package/dist/chunk-MB7E5GEY.js +2 -0
- package/dist/{chunk-XERJY4IG.js → chunk-MLZLDL6B.js} +8 -8
- package/dist/chunk-MRCWOOSF.js +8 -0
- package/dist/chunk-N6YTJXIS.js +18 -0
- package/dist/chunk-NEMPLS7C.js +1 -0
- package/dist/chunk-OE3F7XXU.js +4 -0
- package/dist/chunk-OORWOTAP.js +3 -0
- package/dist/chunk-OUZGGWFN.js +1 -0
- package/dist/chunk-P5MNNBSO.js +1 -0
- package/dist/chunk-PAAKBWSF.js +1 -0
- package/dist/{chunk-5EFQILLF.js → chunk-PANGX7SA.js} +1 -1
- package/dist/{chunk-DODCPRXT.js → chunk-PIFW2R3S.js} +1 -1
- package/dist/chunk-PWSI275S.js +7 -0
- package/dist/chunk-Q5DQGV3M.js +1 -0
- package/dist/chunk-QBIVQXUJ.js +6 -0
- package/dist/chunk-QEB3HUQE.js +19 -0
- package/dist/{chunk-E3RDAVJT.js → chunk-QKGZWOOY.js} +1 -1
- package/dist/chunk-QPWMD2VR.js +1 -0
- package/dist/chunk-QRT4A2RV.js +3 -0
- package/dist/chunk-QXHENYJH.js +2 -0
- package/dist/{chunk-FPWLEGKZ.js → chunk-QZBSCOJV.js} +1 -1
- package/dist/chunk-R2R6JDNH.js +1 -0
- package/dist/chunk-RUFQCXBX.js +16 -0
- package/dist/chunk-RY2SJVWM.js +12 -0
- package/dist/chunk-RZFBGBNA.js +1 -0
- package/dist/chunk-S3P5WWJD.js +1 -0
- package/dist/chunk-SEVSMWNX.js +1 -0
- package/dist/chunk-SJMTETSU.js +32 -0
- package/dist/chunk-SSJGWLCW.js +28 -0
- package/dist/chunk-SYADOUBB.js +7 -0
- package/dist/chunk-T5JXQ7KO.js +1 -0
- package/dist/chunk-TCTVI6PK.js +1 -0
- package/dist/chunk-TSLQZTXR.js +1 -0
- package/dist/chunk-TTAPXLI5.js +1 -0
- package/dist/{chunk-MDXSLAIC.js → chunk-TY4W7AYX.js} +1 -1
- package/dist/chunk-TYIGOVRQ.js +3 -0
- package/dist/{chunk-B6SY4BIK.js → chunk-U2Z5NMXV.js} +1 -1
- package/dist/{chunk-KGZH4RFA.js → chunk-U6HYEGAE.js} +1 -1
- package/dist/chunk-U7R6LYPJ.js +5 -0
- package/dist/chunk-UPJLZHHR.js +4 -0
- package/dist/chunk-UVQL7RUY.js +1 -0
- package/dist/chunk-V2HCVJYF.js +1 -0
- package/dist/chunk-V5SC2RYQ.js +2 -0
- package/dist/chunk-VKSR6MJG.js +2 -0
- package/dist/chunk-VRVP2GQL.js +5 -0
- package/dist/{chunk-XGRVAPLR.js → chunk-WCRZJY3P.js} +1 -1
- package/dist/{chunk-XGCJWCC4.js → chunk-WHLGNDRE.js} +1 -1
- package/dist/{chunk-E3RQCWSC.js → chunk-WKUGSFTB.js} +3 -3
- package/dist/chunk-X4XP2RQJ.js +1 -0
- package/dist/chunk-XAOYKECS.js +1 -0
- package/dist/chunk-XCBEYRQI.js +3 -0
- package/dist/chunk-XHZ5BWXL.js +5 -0
- package/dist/{chunk-2JFZ6GZC.js → chunk-XLURZ6GL.js} +52 -52
- package/dist/chunk-XRT2W5Y2.js +10 -0
- package/dist/chunk-XUEMMLXK.js +1 -0
- package/dist/chunk-Y34LWI3S.js +19 -0
- package/dist/chunk-YHPBDS52.js +16 -0
- package/dist/{chunk-JS3X6BDT.js → chunk-YIZZ5LZN.js} +1 -1
- package/dist/chunk-YN6A26QL.js +836 -0
- package/dist/chunk-YOO7DLOT.js +1 -0
- package/dist/chunk-YUVE2I3C.js +1 -0
- package/dist/chunk-YY6TFARF.js +1 -0
- package/dist/chunk-Z5K4J7HQ.js +1 -0
- package/dist/chunk-ZCNIR6YU.js +1 -0
- package/dist/{chunk-OTT73YUA.js → chunk-ZO74GSWC.js} +1 -1
- package/dist/{chunk-5Y2VD4I3.js → chunk-ZRLEAF7M.js} +1 -1
- package/dist/chunk-ZSFAURIH.js +3 -0
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.d.ts +5 -0
- package/dist/cli/commands/send-analytics.js +1 -0
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/cli/services/doctor-release/theme/tests/init.js +4 -8
- package/dist/cli/services/doctor-release/theme/tests/push.js +3 -4
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-OAGJBITE.js +1 -0
- package/dist/custom-oclif-loader-BWAMUFQ4.js +1 -0
- package/dist/deprecations-K3NPRKBF.js +1 -0
- package/dist/dist-EXJEE23W.js +1 -0
- package/dist/dist-S62Z6IFV.js +1 -0
- package/dist/environments-ALH2N36U.js +1 -0
- package/dist/error-YX56C43A.js +1 -0
- package/dist/error-handler-FDCH72NH.js +1 -0
- package/dist/fs-SKHQZZTQ.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +2 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -15
- package/dist/is-global-V5VORI3F.js +1 -0
- package/dist/lib-M72BVWQ3.js +1 -0
- package/dist/local-GX5AN6ZS.js +1 -0
- package/dist/metadata-XUJUTBTB.js +1 -0
- package/dist/{morph-ABSWZEVT.js → morph-77RHJICZ.js} +1 -1
- package/dist/node-package-manager-3WIYU7Y3.js +1 -0
- package/dist/notifications-system-RHULO564.js +1 -0
- package/dist/os-M6X7KOR4.js +1 -0
- package/dist/output-X47P6ICP.js +1 -0
- package/dist/{prettier-6ZMB2MMO.js → prettier-RVUAAWC7.js} +1 -1
- package/dist/system-SR5G7WEW.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-VYWSLAQ6.js +1 -0
- package/dist/upgrade-PFQ7JMXG.js +1 -0
- package/dist/version-FK4ETQ22.js +1 -0
- package/dist/version-U4GM2LNG.js +1 -0
- package/dist/workerd-NAPS5TA7.js +18 -0
- package/oclif.manifest.json +146 -120
- package/package.json +7 -8
- package/dist/analytics-6S5JVSRO.js +0 -1
- package/dist/analytics-E252SR3P.js +0 -1
- package/dist/chunk-2MCH43SL.js +0 -11
- package/dist/chunk-2SNT7U7B.js +0 -1
- package/dist/chunk-2VIUGNYO.js +0 -1
- package/dist/chunk-2Y6CYLKF.js +0 -1
- package/dist/chunk-3EHRA4LA.js +0 -1
- package/dist/chunk-3EPQ6UOK.js +0 -25
- package/dist/chunk-3TFUSDHY.js +0 -370
- package/dist/chunk-46NA23I7.js +0 -3
- package/dist/chunk-47URTBZF.js +0 -9
- package/dist/chunk-4FEBSLSU.js +0 -1
- package/dist/chunk-4HB4VZJQ.js +0 -4
- package/dist/chunk-4JARSKED.js +0 -32
- package/dist/chunk-4P7PWLUN.js +0 -1
- package/dist/chunk-53ZA2HD3.js +0 -1
- package/dist/chunk-57YF2UNT.js +0 -1
- package/dist/chunk-5JPV3HPJ.js +0 -1
- package/dist/chunk-5LJ5H4TD.js +0 -7
- package/dist/chunk-6FJBCRVK.js +0 -15
- package/dist/chunk-6SXB44CE.js +0 -1
- package/dist/chunk-6YCGMS7X.js +0 -28
- package/dist/chunk-7HAFBCL3.js +0 -2
- package/dist/chunk-7XPFLQEM.js +0 -1
- package/dist/chunk-A3JE5LX3.js +0 -7
- package/dist/chunk-A4SBXDZB.js +0 -14
- package/dist/chunk-B2WK53GH.js +0 -1
- package/dist/chunk-B34VYVGV.js +0 -1
- package/dist/chunk-BBEHNPKK.js +0 -7
- package/dist/chunk-BCTMBKAU.js +0 -7
- package/dist/chunk-BGUHH7AW.js +0 -10
- package/dist/chunk-DHU767C3.js +0 -1
- package/dist/chunk-DKHMLETG.js +0 -1
- package/dist/chunk-EJDWYASP.js +0 -1
- package/dist/chunk-ELJ7SKMH.js +0 -1
- package/dist/chunk-EQTULRM7.js +0 -2
- package/dist/chunk-ESZS7L6O.js +0 -11
- package/dist/chunk-ET2O5DAS.js +0 -1
- package/dist/chunk-EZ7EBYDT.js +0 -684
- package/dist/chunk-EZNJDFFK.js +0 -28
- package/dist/chunk-F34LB7M4.js +0 -20
- package/dist/chunk-FE24P4UQ.js +0 -6
- package/dist/chunk-FT4HLDK7.js +0 -1
- package/dist/chunk-G3YYMKWG.js +0 -3
- package/dist/chunk-G7QW5OSQ.js +0 -6
- package/dist/chunk-GCDEDRY7.js +0 -3
- package/dist/chunk-GEE5MXHT.js +0 -5
- package/dist/chunk-H4MYBJ6C.js +0 -1
- package/dist/chunk-HDXBZLHH.js +0 -8
- package/dist/chunk-HT6MOPLW.js +0 -1
- package/dist/chunk-HZXY7RWJ.js +0 -19
- package/dist/chunk-IDAWPBJM.js +0 -4
- package/dist/chunk-IDLDQ2JB.js +0 -1
- package/dist/chunk-IYU72M55.js +0 -3
- package/dist/chunk-J3IHP46B.js +0 -3
- package/dist/chunk-J4KJQHNS.js +0 -1
- package/dist/chunk-JIBLEZ57.js +0 -18
- package/dist/chunk-JIKIYMCT.js +0 -1
- package/dist/chunk-JJTGHARS.js +0 -3
- package/dist/chunk-JQP3ZCAG.js +0 -1
- package/dist/chunk-K7IZMKBR.js +0 -5
- package/dist/chunk-KO4FB4QU.js +0 -1
- package/dist/chunk-KPRKIZ5M.js +0 -3
- package/dist/chunk-KUN74JD4.js +0 -4
- package/dist/chunk-KURWC4A5.js +0 -16
- package/dist/chunk-L3D2CASO.js +0 -1
- package/dist/chunk-L7DZTIHJ.js +0 -1
- package/dist/chunk-LBDAYBIF.js +0 -1
- package/dist/chunk-LH3RIIOB.js +0 -8
- package/dist/chunk-LWWBU7ET.js +0 -6
- package/dist/chunk-M4BEPPA3.js +0 -1
- package/dist/chunk-M4YPMHIM.js +0 -1
- package/dist/chunk-M5KKLAM6.js +0 -3
- package/dist/chunk-MBLHXPGK.js +0 -1
- package/dist/chunk-MDHJJVXA.js +0 -2
- package/dist/chunk-NA2ERJIJ.js +0 -1
- package/dist/chunk-NOKCVDYD.js +0 -317
- package/dist/chunk-O6XSWAP2.js +0 -4
- package/dist/chunk-OB62WVZ5.js +0 -16
- package/dist/chunk-OT52JOML.js +0 -1
- package/dist/chunk-P7XC5HS2.js +0 -1
- package/dist/chunk-PALG4SNB.js +0 -1
- package/dist/chunk-PB37BTPE.js +0 -6
- package/dist/chunk-PWYRKTJ4.js +0 -1
- package/dist/chunk-PXSX63RF.js +0 -1
- package/dist/chunk-QDPDB5EP.js +0 -3
- package/dist/chunk-QV53BSQP.js +0 -6
- package/dist/chunk-QXXA2EQY.js +0 -15
- package/dist/chunk-QZ5FMWZS.js +0 -1
- package/dist/chunk-R26GJEH3.js +0 -1
- package/dist/chunk-RTW4RZWH.js +0 -6
- package/dist/chunk-SEV3S3WH.js +0 -8
- package/dist/chunk-STJ3LWFL.js +0 -1
- package/dist/chunk-TAV2ENJY.js +0 -1
- package/dist/chunk-TQNALMQH.js +0 -3
- package/dist/chunk-TUJNCWHZ.js +0 -1
- package/dist/chunk-U564K7SX.js +0 -1
- package/dist/chunk-UKQ7NE5V.js +0 -1
- package/dist/chunk-V65P572N.js +0 -10
- package/dist/chunk-VFIVXK53.js +0 -2
- package/dist/chunk-VVFPW4ZQ.js +0 -2
- package/dist/chunk-VYITPC34.js +0 -11
- package/dist/chunk-W4X3635B.js +0 -1
- package/dist/chunk-WEEYQX3M.js +0 -1
- package/dist/chunk-WO7LKJCJ.js +0 -1
- package/dist/chunk-WR2ZQGUR.js +0 -1
- package/dist/chunk-WW7TENNA.js +0 -1
- package/dist/chunk-XGMPC7KK.js +0 -2
- package/dist/chunk-Y4QC2YVE.js +0 -1
- package/dist/chunk-YNJZ2VXV.js +0 -5
- package/dist/chunk-Z5DDPQ26.js +0 -3
- package/dist/chunk-ZK7VJZ6V.js +0 -6
- package/dist/chunk-ZLT4DPHN.js +0 -5
- package/dist/chunk-ZOBQKNGK.js +0 -1
- package/dist/chunk-ZTE46E4Z.js +0 -153
- package/dist/conf-store-N5P2ZEAD.js +0 -1
- package/dist/custom-oclif-loader-4ZAXX5MR.js +0 -1
- package/dist/deprecations-4TY4DNME.js +0 -1
- package/dist/dist-6ZJS4I57.js +0 -1
- package/dist/dist-7W2KJOYN.js +0 -1
- package/dist/environments-TR5WW2MD.js +0 -1
- package/dist/error-VJQM4MFE.js +0 -1
- package/dist/error-handler-IYGE3Z72.js +0 -1
- package/dist/fs-EOQL26C3.js +0 -1
- package/dist/hooks/app-init.d.ts +0 -9
- package/dist/hooks/app-init.js +0 -1
- package/dist/is-global-RQCPBQA3.js +0 -1
- package/dist/is-wsl-UEMXYJPN.js +0 -1
- package/dist/lib-JKLF33A7.js +0 -1
- package/dist/local-TW3HCZ2S.js +0 -1
- package/dist/local-storage-T6FKS53K.js +0 -1
- package/dist/metadata-TYZDEER5.js +0 -1
- package/dist/node-package-manager-6SWUZILX.js +0 -1
- package/dist/notifications-system-SMHMV2UW.js +0 -1
- package/dist/output-JG5I2TEL.js +0 -1
- package/dist/system-D4Z32GDS.js +0 -1
- package/dist/ui-6M3XZ6MR.js +0 -1
- package/dist/upgrade-EKAG4IV7.js +0 -1
- package/dist/version-6UBWZCNS.js +0 -1
- package/dist/version-XRU7TEAI.js +0 -1
- package/dist/workerd-LXBSJULF.js +0 -18
- /package/dist/{chunk-VDN6MEYI.js → chunk-NJPL5BTN.js} +0 -0
package/dist/chunk-46NA23I7.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as g,b as A,d as w,g as k}from"./chunk-W2GMKXM7.js";import{a as S}from"./chunk-ERCJPRN3.js";import{t as P}from"./chunk-JS3X6BDT.js";import{a as F}from"./chunk-DHU767C3.js";import{a as G}from"./chunk-QG7TELFC.js";import{b,e as L}from"./chunk-2Y6CYLKF.js";import{t as d,y as u}from"./chunk-EZ7EBYDT.js";import{J as f,a as c}from"./chunk-6YCGMS7X.js";import{Fb as h,Hb as y,Mb as n,Qb as v}from"./chunk-3TFUSDHY.js";import{a as x}from"./chunk-CTNBSUVU.js";import{e as q,g as i}from"./chunk-VKWPEFWQ.js";i();i();i();import{randomBytes as C}from"crypto";function M(){return C(32).toString("hex")}function T(r){let e=new URL(`http://localhost:${r.port}/graphiql`);return e.searchParams.set("key",r.key),r.query&&e.searchParams.set("query",r.query),r.variables&&e.searchParams.set("variables",r.variables),r.apiVersion&&e.searchParams.set("api_version",r.apiVersion),e.toString()}async function I(r){let e=await S(r.port),t=A({stdout:r.stdout??process.stdout,port:e,storeFqdn:r.storeFqdn,tokenProvider:r.tokenProvider,key:r.key,appContext:r.appContext,protectMutations:r.protectMutations}),a=T({port:e,key:r.key,query:r.query,variables:r.variables,apiVersion:r.apiVersion});try{n(y`GraphiQL is running at ${h.link(a)}`),r.additionalReadyMessages?.forEach(p=>n(p)),n("Press Ctrl+C to stop."),await f(a)||v("Browser did not open automatically. Open the URL above manually."),await O(r.abortSignal)}finally{t.close()}}async function O(r){let e=new c,t=()=>e.abort();process.once("SIGINT",t);try{await new Promise(a=>{if(e.signal.aborted||r?.aborted){a();return}e.signal.addEventListener("abort",()=>a(),{once:!0}),r?.addEventListener("abort",()=>e.abort(),{once:!0})})}finally{process.removeListener("SIGINT",t)}}async function Q(r){let e=r.remoteApp.apiSecretKeys[0]?.secret??"",t=g(void 0,e,r.store),a=k({apiKey:r.remoteApp.apiKey,apiSecret:e,storeFqdn:r.store}),l=await d(),p=w(r.store,r.remoteApp.apiKey,l);await I({port:r.port,storeFqdn:r.store,tokenProvider:a,key:t,appContext:{appName:r.remoteApp.title,appUrl:p,apiSecret:e},variables:r.variables,apiVersion:r.apiVersion,abortSignal:r.abortSignal})}var s=q(x(),1),m,o=class extends F{async run(){let{flags:e}=await this.parse(m),{appContextResult:t,store:a}=await P(e);return await Q({remoteApp:t.remoteApp,store:a.shopDomain,port:e.port,variables:e.variables,apiVersion:e.version}),{app:t.app}}};m=o;o.summary="Open a local GraphiQL UI for your app and store.";o.descriptionWithMarkdown=`Opens an authenticated Admin API GraphiQL UI for your app and selected store.
|
|
2
|
-
|
|
3
|
-
The app must be installed on the store.`;o.description=m.descriptionWithoutMarkdown();o.examples=["<%= config.bin %> <%= command.id %> --store shop.myshopify.com","<%= config.bin %> <%= command.id %> --store shop.myshopify.com --port 9123"];o.flags={...b,...G,store:s.Flags.string({char:"s",description:"The myshopify.com domain of the store to open GraphiQL against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async r=>u(r)}),port:L({description:"Local port for the GraphiQL server.",env:"SHOPIFY_FLAG_PORT"}),variables:s.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES"}),version:s.Flags.string({description:"The API version to use in GraphiQL. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})};var ar=o;export{M as a,I as b,ar as c};
|
package/dist/chunk-47URTBZF.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{b as i}from"./chunk-2Y6CYLKF.js";import{b as o}from"./chunk-2MCH43SL.js";import{J as t}from"./chunk-6YCGMS7X.js";import{a as p}from"./chunk-CTNBSUVU.js";import{e as h,g as a}from"./chunk-VKWPEFWQ.js";a();a();async function c(r){let e=new URLSearchParams;e.append("search",r??""),await t(`https://shopify.dev?${e.toString()}`)}var n=h(p(),1),s=class r extends o{static{this.description="Search shopify.dev for the most relevant content matching a query. Best for discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`."}static{this.usage="search [query]"}static{this.examples=[`# open the search modal on Shopify.dev
|
|
2
|
-
shopify search
|
|
3
|
-
|
|
4
|
-
# search for a term on Shopify.dev
|
|
5
|
-
shopify search <query>
|
|
6
|
-
|
|
7
|
-
# search for a phrase on Shopify.dev
|
|
8
|
-
shopify search "<a search query separated by spaces>"
|
|
9
|
-
`]}static{this.args={query:n.Args.string()}}static{this.flags={...i}}async run(){let{args:e}=await this.parse(r);await c(e.query)}};export{s as a};
|
package/dist/chunk-4FEBSLSU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as o}from"./chunk-6UTUJKKC.js";import{d as n}from"./chunk-2Y6CYLKF.js";import{b as r}from"./chunk-2MCH43SL.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var e=class extends r{environmentsFilename(){return o.appEnvironments}};e.baseFlags=n;var l=e;export{l as a};
|
package/dist/chunk-4HB4VZJQ.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{a as L}from"./chunk-72GN655L.js";import{a as M}from"./chunk-DHU767C3.js";import{a as C}from"./chunk-QG7TELFC.js";import{C as j,ta as E}from"./chunk-NOKCVDYD.js";import{e as I}from"./chunk-PXSX63RF.js";import{a as J}from"./chunk-AJ6VOBXU.js";import{b as O}from"./chunk-2Y6CYLKF.js";import{R as h,da as g,ga as A,y}from"./chunk-EZ7EBYDT.js";import{D,E as f,u as T}from"./chunk-6YCGMS7X.js";import{p as R}from"./chunk-ZTE46E4Z.js";import{Fb as k,Hb as m,Mb as v}from"./chunk-3TFUSDHY.js";import{a as z}from"./chunk-CTNBSUVU.js";import{e as _,g as s}from"./chunk-VKWPEFWQ.js";s();s();s();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetafieldForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetafieldForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetafieldDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}},{kind:"Field",name:{kind:"Name",value:"customerAccount"}}]}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminFilterable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]};s();async function Q(e){let i="Admin",n=I(e.storeFqdn,"unstable");return{token:e.token,api:i,url:n}}async function w(e){return A({query:e.query,...await Q(e.session),variables:e.variables,autoRateLimitRestore:e.autoRateLimitRestore})}s();var V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metaobjectDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaobjectDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaobjectForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaobjectForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetaobjectDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}}]}},{kind:"Field",name:{kind:"Name",value:"displayNameKey"}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publishable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"translatable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"renderable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaTitleKey"}},{kind:"Field",name:{kind:"Name",value:"metaDescriptionKey"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"fieldDefinitions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"required"}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]};var $=_(J(),1);var Z={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",customer:"CUSTOMER",delivery_customization:"DELIVERY_CUSTOMIZATION",delivery_method:"DELIVERY_METHOD",delivery_option_generator:"DELIVERY_OPTION_GENERATOR",discount:"DISCOUNT",draft_order:"DRAFTORDER",fulfillment_constraint_rule:"FULFILLMENT_CONSTRAINT_RULE",gift_card_transaction:"GIFT_CARD_TRANSACTION",order_routing_location_rule:"ORDER_ROUTING_LOCATION_RULE",payment_customization:"PAYMENT_CUSTOMIZATION",selling_plan:"SELLING_PLAN",shop:"SHOP",validation:"VALIDATION",variant:"PRODUCTVARIANT",cart_transform:"CARTTRANSFORM"};async function q({query:e,session:i,toNodes:n,toVariables:t,performQuery:d=a=>w({query:e,session:i,variables:a,autoRateLimitRestore:!0})}){let a;try{let o=n(await d(t(a))),l=[];for(l.push(...o.nodes);o.pageInfo.hasNextPage;)a=o.pageInfo.endCursor,o=n(await d(t(a))),l.push(...o.nodes);return{status:"ok",items:l}}catch(o){if(o instanceof Error&&o.message.includes("ACCESS_DENIED"))return{status:"scope_error"};throw o}}function x(e,i){let n="";for(let t of e)n=(0,$.updateTomlValues)(n,t);return`# ${i}
|
|
2
|
-
${n}`}function X(e,i){let n=i.map(le).map(a=>{switch(a.status){case"ok":{let{typeName:o,patches:l}=a;return x(l,`type: $app:${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null),t=e.flatMap(({items:a,ownerType:o,graphQLOwner:l})=>a.map(r=>({result:oe(r,o),graphQLOwner:l}))).map(({result:a,graphQLOwner:o})=>{switch(a.status){case"ok":{let{namespace:l,key:r,patches:b}=a;return x(b,`namespace: ${l==="app"?"$app":`$app:${l}`} key: ${r} owner_type: ${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null);return{tomlContent:[...n,...t].join(`
|
|
3
|
-
`),metafieldCount:t.length,metaobjectCount:n.length}}async function K(e){let i=await de(e),n=i.storeFqdn,t=await ne(i),d=await ie(i);e.includeExistingDeclaredDefinitions||(t=te(t,e.appConfiguration),d=ae(d,e.appConfiguration));let{tomlContent:a,metafieldCount:o,metaobjectCount:l}=X(t,d);ee(o,l,n,a)}function ee(e,i,n,t){T({headline:"Conversion to TOML complete.",body:["Converted",{warn:`${e} metafields`},"and",{warn:`${i} metaobjects`},"from",{warn:n},"into TOML, ready for you to copy."],orderedNextSteps:!0,nextSteps:["Review the suggested TOML carefully before applying.",["Missing sections? Make sure your app has the required access scopes to load metafields and metaobjects (e.g.",{command:"read_customers"},"to load customer metafields,",{command:"read_metaobject_definitions"},"to load metaobjects.)"],["Missing definitions? Only metafields and metaobjects that are app-reserved (using",{command:"$app"},") will be converted."],["When you're ready, add the generated TOML to your app's configuration file and test out changes with the",{command:"shopify app dev"},"command."]]}),ue(t)}async function ne(e){let i=[];return await D(Object.entries(Z).map(([n,t])=>({title:m`Loading ${k.green(n)} metafields`,task:async()=>{let d=await q({query:P,session:e,toNodes:a=>a.metafieldDefinitions,toVariables:a=>({ownerType:t,after:a})});i.push({metafields:d,ownerType:n,graphQLOwner:t})}}))),i.map(({metafields:n,ownerType:t,graphQLOwner:d})=>n.status==="ok"?{ownerType:t,items:n.items,graphQLOwner:d}:null).filter(n=>n!==null)}async function ie(e){let i=await f({title:m`Loading ${k.green("metaobjects")}`,task:async()=>q({query:V,session:e,toNodes:n=>n.metaobjectDefinitions,toVariables:n=>({after:n})})});return i.status==="ok"?i.items:[]}function te(e,i){return e.map(n=>{let t=n.items.filter(d=>!U(i,[n.ownerType,"metafields",p(d.namespace)??"",d.key]));return t.length>0?{...n,items:t}:null}).filter(n=>n!==null)}function ae(e,i){return e.filter(n=>!U(i,["metaobjects","app",p(n.type)??""]))}function U(e,i){let n=e;for(let t of i){if(!n[t])return!1;n=n[t]}return!0}async function de(e){let{remoteApp:i,store:n}=e,t=i.apiSecretKeys[0]?.secret;if(!t)throw new R("No API secret keys found for app");return await h(n.shopDomain,i.apiKey,t)}function p(e){if(!e.match(/^app--\d+/))return null;let i="app";return e.match(/^app--\d+--/)&&(i=e.replace(/^app--\d+--/,"")),i}function oe(e,i){let n=p(e.namespace);if(!n)return{status:"not_app_reserved"};let t=e.key,d=se(e),a=me(d,i,n,t);return{status:"ok",key:t,namespace:n,patches:a}}function le(e){let i=p(e.type);if(!i)return{status:"not_app_reserved"};let n=re(e,i),t=ce(n,i);return{status:"ok",typeName:i,patches:t}}function se(e){let i={name:e.name===e.key?void 0:e.name,type:e.type.name,description:e.description??void 0,capabilities:u({admin_filterable:e.capabilities.adminFilterable.enabled||void 0}),access:u({admin:Y(e.access.admin),storefront:H(e.access.storefront),customer_account:pe(e.access.customerAccount)}),validations:B(e.validations)},{type:n,validations:t}=G(i.type,i.validations);return i.type=n,i.validations=t,i}function re(e,i){return{name:e.name===i?void 0:e.name,description:e.description??void 0,display_name_field:e.displayNameKey??void 0,access:u({admin:Y(e.access.admin),storefront:H(e.access.storefront)}),capabilities:u({translatable:e.capabilities.translatable.enabled||void 0,publishable:e.capabilities.publishable.enabled||void 0,renderable:e.capabilities.renderable?.enabled||void 0,renderable_meta_title_field:e.capabilities.renderable?.data?.metaTitleKey??void 0,renderable_meta_description_field:e.capabilities.renderable?.data?.metaDescriptionKey??void 0}),fields:Object.fromEntries(e.fieldDefinitions.map(n=>{let t={type:n.type.name,description:n.description??void 0,name:n.name===n.key?void 0:n.name,required:n.required||void 0,validations:B(n.validations)},{type:d,validations:a}=G(t.type,t.validations);return t.type=d,t.validations=a,[n.key,t]}))}}function G(e,i){if(!i)return{type:e,validations:void 0};if(i.metaobject_definition_type&&typeof i.metaobject_definition_type=="string"){let n=p(i.metaobject_definition_type);return{type:`${e}<$app:${n}>`,validations:u({...i,metaobject_definition_type:void 0})}}if(i.metaobject_definition_types&&Array.isArray(i.metaobject_definition_types)&&i.metaobject_definition_types.every(n=>typeof n=="string")){let n=i.metaobject_definition_types.map(t=>p(t));return{type:`${e}<${n.map(t=>`$app:${t}`).join(",")}>`,validations:u({...i,metaobject_definition_types:void 0})}}return{type:e,validations:i}}function B(e){let i=n=>{try{return JSON.parse(n)}catch{return n}};return u(Object.fromEntries(e.filter(n=>n.value!==void 0&&n.name!=="metaobject_definition_id"&&n.name!=="metaobject_definition_ids").map(n=>[n.name,n.value?i(n.value):void 0])))}function me(e,i,n,t){let d=[[[i,"metafields",n,t,"name"],e.name],[[i,"metafields",n,t,"type"],e.type],[[i,"metafields",n,t,"description"],e.description]],a=[[[i,"metafields",n,t,"access","admin"],e.access?.admin],[[i,"metafields",n,t,"access","storefront"],e.access?.storefront],[[i,"metafields",n,t,"access","customer_account"],e.access?.customer_account],[[i,"metafields",n,t,"capabilities","admin_filterable"],e.capabilities?.admin_filterable||void 0]];return e.validations&&W(e.validations).forEach(({validationKey:l,actualValue:r})=>{d.push([[i,"metafields",n,t,"validations",l],r])}),[N(d),N(a)]}function ce(e,i){let n=[[["metaobjects","app",i,"name"],e.name===i?void 0:e.name],[["metaobjects","app",i,"description"],e.description],[["metaobjects","app",i,"display_name_field"],e.display_name_field]],t=[[["metaobjects","app",i,"access","admin"],e.access?.admin],[["metaobjects","app",i,"access","storefront"],e.access?.storefront]];return e.capabilities?.translatable&&t.push([["metaobjects","app",i,"capabilities","translatable"],!0]),e.capabilities?.publishable&&t.push([["metaobjects","app",i,"capabilities","publishable"],!0]),e.capabilities?.renderable&&(t.push([["metaobjects","app",i,"capabilities","renderable"],!0]),e.capabilities?.renderable_meta_title_field&&t.push([["metaobjects","app",i,"capabilities","renderable_meta_title_field"],e.capabilities.renderable_meta_title_field]),e.capabilities?.renderable_meta_description_field&&t.push([["metaobjects","app",i,"capabilities","renderable_meta_description_field"],e.capabilities.renderable_meta_description_field])),Object.entries(e.fields).forEach(([d,a])=>{if(typeof a=="string")n.push([["metaobjects","app",i,"fields",d],a]);else{let o=Object.fromEntries(Object.entries(a).filter(([l,r])=>r!==void 0));Object.keys(o).length===1?n.push([["metaobjects","app",i,"fields",d],a.type]):(n.push([["metaobjects","app",i,"fields",d,"type"],a.type]),n.push([["metaobjects","app",i,"fields",d,"description"],a.description]),n.push([["metaobjects","app",i,"fields",d,"name"],a.name]),n.push([["metaobjects","app",i,"fields",d,"required"],a.required||void 0]),a.validations&&W(a.validations).forEach(({validationKey:r,actualValue:b})=>{n.push([["metaobjects","app",i,"fields",d,"validations",r],b])}))}}),[N(n),N(t)]}function W(e){return Object.entries(e).map(([i,n])=>{let t;return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||Array.isArray(n)&&n.every(d=>typeof d=="string")?t=n:t=JSON.stringify(n),{validationKey:i,actualValue:t}})}function ue(e){let i=e.split(`
|
|
4
|
-
`);for(let n of i)n.match(/^\s*\[/)?v(m`${k.green(n)}`):n.match(/^\s*#/)?v(m`${k.gray(n)}`):v(m`${n}`)}function Y(e){switch(e){case"MERCHANT_READ_WRITE":return"merchant_read_write";case"MERCHANT_READ":case"PRIVATE":case"PUBLIC_READ":case"PUBLIC_READ_WRITE":case null:case void 0:return}}function H(e){switch(e){case"PUBLIC_READ":return"public_read";case"NONE":case null:case void 0:return}}function pe(e){switch(e){case"READ":return"read";case"READ_WRITE":return"read_write";case"NONE":case null:case void 0:return}}function u(e){if(e&&!g(e)&&!(typeof e=="object"&&Object.values(e).every(i=>i===void 0)))return e}function N(e){return e.filter(([i,n])=>n!==void 0)}var S=_(z(),1);var F,c=class extends M{async run(){let{appContextResult:i,...n}=await f({title:m`Loading application`,task:async()=>{let{flags:t}=await this.parse(F);await j(t.path);let d=await E({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),a=await L({appContextResult:d,storeFqdn:t.store,forceReselectStore:t.reset});return{appContextResult:d,appConfiguration:d.app.configuration,remoteApp:d.remoteApp,store:a,includeExistingDeclaredDefinitions:t["include-existing"]}}});return await K(n),{app:i.app}}};F=c;c.summary="Import metafield and metaobject definitions.";c.descriptionWithMarkdown="Import metafield and metaobject definitions from your development store. [Read more about declarative custom data definitions](https://shopify.dev/docs/apps/build/custom-data/declarative-custom-data-definitions).";c.description=F.descriptionWithoutMarkdown();c.flags={...O,...C,store:S.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>y(e)}),"include-existing":S.Flags.boolean({description:"Include existing declared definitions in the output.",default:!1,env:"SHOPIFY_FLAG_INCLUDE_EXISTING"})};var Ke=c;export{Ke as a};
|
package/dist/chunk-4JARSKED.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import{a as v,b as J}from"./chunk-QU5NL2QT.js";import{a as C}from"./chunk-57YF2UNT.js";import{a as p}from"./chunk-6BX62FFE.js";import{a as N}from"./chunk-STJ3LWFL.js";import{r as E}from"./chunk-HT6MOPLW.js";import{p as c,r as F,v as S}from"./chunk-Z5DDPQ26.js";import{b as q,c as D}from"./chunk-2Y6CYLKF.js";import{O as w}from"./chunk-EZ7EBYDT.js";import{A as T,S as O,v as I,x as u}from"./chunk-6YCGMS7X.js";import{Lb as a}from"./chunk-3TFUSDHY.js";import{a as M}from"./chunk-CTNBSUVU.js";import{e as A,g as h}from"./chunk-VKWPEFWQ.js";h();h();async function _(t,o,e){let{name:r,verbose:d,noColor:l,json:m,force:x}=e,g=O()||x;if(C({verbose:d,noColor:l}),g&&!o){let s="A theme ID is required to duplicate a theme, specify one with the --theme flag";m?a(JSON.stringify({message:s,errors:[]})):u({body:[s]});return}let i=o?await J(t,o):await v(t,{header:"Select a theme to duplicate",filter:{theme:o}});if(!i){let s=`No theme with ID ${o} could be found. Use shopify theme list to find a theme ID.`;m?a(JSON.stringify({message:s,errors:[]})):u({body:[s]});return}if(i?.role==="development"){let s="Development themes can't be duplicated. Use shopify theme push to upload it to the store first.";m?a(JSON.stringify({message:s,errors:[]})):u({body:[s]});return}if(!g&&!await T({message:`Do you want to duplicate '${i.name}' on ${t.storeFqdn}?`,confirmationMessage:`Yes, duplicate '${i.name}'`,cancellationMessage:"No, cancel duplicate"}))return;let b=await E(i.id,r,t);m?j(i,t,b):P(i,t,b)}function P(t,o,e){if(e.userErrors&&e.userErrors.length>0){let r=e.userErrors.map(d=>d.message).join(", ");u({body:["The theme",...p(t),"could not be duplicated due to errors: ",{subdued:r},{char:"."},...e.requestId?[`
|
|
2
|
-
Request ID: `,{subdued:e.requestId}]:[]]})}else e.theme?I({body:["The theme",...p(t),"has been duplicated",{char:"."}],nextSteps:[[{link:{label:"View the duplicated theme",url:N(e.theme,o)}}]]}):u({body:["The theme",...p(t),"unexpectedly could not be duplicated",{char:"."},...e.requestId?[`
|
|
3
|
-
Request ID: `,{subdued:e.requestId}]:[]]})}function j(t,o,e){if(e.userErrors&&e.userErrors.length>0)a(JSON.stringify({message:`The theme '${t.name}' could not be duplicated due to errors`,errors:e.userErrors.map(r=>r.message),requestId:e.requestId}));else if(e.theme){let{id:r,name:d,role:l}=e.theme,m={theme:{id:r,name:d,role:l,shop:o.storeFqdn}};a(JSON.stringify(m))}else a(JSON.stringify({message:`The theme '${t.name}' unexpectedly could not be duplicated `,errors:[],requestId:e.requestId}))}var f=A(M(),1);var y,n=class extends S{async run(){let{flags:o}=await this.parse(y),e=F(o),r=await w(e,o.password);await _(r,o.theme,o)}};y=n;n.summary="Duplicates a theme from your theme library.";n.usage=["theme duplicate","theme duplicate --theme 10 --name 'New Theme'"];n.descriptionWithMarkdown=`If you want to duplicate your local theme, you need to run \`shopify theme push\` first.
|
|
4
|
-
|
|
5
|
-
If no theme ID is specified, you're prompted to select the theme that you want to duplicate from the list of themes in your store. You're asked to confirm that you want to duplicate the specified theme.
|
|
6
|
-
|
|
7
|
-
Prompts and confirmations are not shown when duplicate is run in a CI environment or the \`--force\` flag is used, therefore you must specify a theme ID using the \`--theme\` flag.
|
|
8
|
-
|
|
9
|
-
You can optionally name the duplicated theme using the \`--name\` flag.
|
|
10
|
-
|
|
11
|
-
If you use the \`--json\` flag, then theme information is returned in JSON format, which can be used as a machine-readable input for scripts or continuous integration.
|
|
12
|
-
|
|
13
|
-
Sample JSON output:
|
|
14
|
-
|
|
15
|
-
\`\`\`json
|
|
16
|
-
{
|
|
17
|
-
"theme": {
|
|
18
|
-
"id": 108267175958,
|
|
19
|
-
"name": "A Duplicated Theme",
|
|
20
|
-
"role": "unpublished",
|
|
21
|
-
"shop": "mystore.myshopify.com"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
\`\`\`
|
|
25
|
-
|
|
26
|
-
\`\`\`json
|
|
27
|
-
{
|
|
28
|
-
"message": "The theme 'Summer Edition' could not be duplicated due to errors",
|
|
29
|
-
"errors": ["Maximum number of themes reached"],
|
|
30
|
-
"requestId": "12345-abcde-67890"
|
|
31
|
-
}
|
|
32
|
-
\`\`\``;n.description=y.descriptionWithoutMarkdown();n.flags={...q,...D,password:c.password,theme:f.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),name:f.Flags.string({char:"n",description:"Name of the newly duplicated theme.",env:"SHOPIFY_FLAG_NAME"}),store:c.store,environment:c.environment,force:f.Flags.boolean({char:"f",description:"Force the duplicate operation to run without prompts or confirmations.",env:"SHOPIFY_FLAG_FORCE"})};var ee=n;export{ee as a};
|
package/dist/chunk-4P7PWLUN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as u,c as h,f}from"./chunk-NOKCVDYD.js";import{O as c}from"./chunk-6YCGMS7X.js";import{d as e}from"./chunk-773TIA5M.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function s(n){if(n.features.includes("function")&&n.isJavaScript){let r=await f(n);return u(r.functionRunner)}return u()}function d(n){return n.configuration.build?.path?e(n.directory,n.configuration.build.path):n.outputPath}async function g(n){let r=n.functionExtension,i=await s(r);await h(i);let t=[];n.inputPath&&t.push("--input",n.inputPath),n.export&&t.push("--export",n.export),n.json&&t.push("--json"),n.schemaPath&&n.queryPath&&(t.push("--schema-path",n.schemaPath),t.push("--query-path",n.queryPath));let o=d(r);return c(i.path,["-f",o,...t],{cwd:n.functionExtension.directory,stdin:n.stdin,stdout:n.stdout??"inherit",stderr:n.stderr??"inherit",input:n.input})}export{g as a};
|
package/dist/chunk-53ZA2HD3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as u,c as d}from"./chunk-U564K7SX.js";import{a as m}from"./chunk-M4YPMHIM.js";import{a}from"./chunk-QG7TELFC.js";import{o as p,ua as c}from"./chunk-NOKCVDYD.js";import{b as e}from"./chunk-2Y6CYLKF.js";import{v as n}from"./chunk-6YCGMS7X.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var s,o=class extends m{async run(){let{flags:t}=await this.parse(s),{app:r}=await c({directory:t.path,userProvidedConfigName:t.config}),l=await d(r,t.path);return await p(l,{app:r,stdout:process.stdout,stderr:process.stderr,useTasks:!0,environment:"production"}),n({headline:"Function built successfully."}),{app:r}}};s=o;o.summary="Compile a function to wasm.";o.descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";o.description=s.descriptionWithoutMarkdown();o.flags={...e,...a,...u};var k=o;export{k as a};
|
package/dist/chunk-57YF2UNT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as n}from"./chunk-2Y6CYLKF.js";import{u as r}from"./chunk-A4SBXDZB.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function v(o){o.verbose&&(process.env[n.verbose.env]="true"),o.noColor&&(r.level=0,process.env.FORCE_COLOR="0")}export{v as a};
|
package/dist/chunk-5JPV3HPJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as b}from"./chunk-DHU767C3.js";import{a as k}from"./chunk-QG7TELFC.js";import{Z as x,ta as N}from"./chunk-NOKCVDYD.js";import{b as C,c as R}from"./chunk-2Y6CYLKF.js";import{C as y}from"./chunk-6YCGMS7X.js";import{m as v}from"./chunk-ZTE46E4Z.js";import{Fb as w,Hb as E,Lb as L,Mb as m,Vb as T,ba as h}from"./chunk-3TFUSDHY.js";import{u as A}from"./chunk-A4SBXDZB.js";import{j as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=12;async function S(p,t,o){let n=await p.appVersions(t);if(!n.app)throw new v(`Invalid API Key: ${t.apiKey}`);let a=n.app.appVersions.nodes.map(e=>{let r=e.message??"";return{...e,status:e.status==="active"&&!o?A.green(`\u2605 ${e.status}`):e.status,createdBy:e.createdBy?.displayName??"",createdAt:h(new Date(e.createdAt)),message:r}});if(!o){let e=(process.stdout.columns??75)-M,r=e;a.forEach(s=>{let f=s.message.length+(s.versionTag?.length??0)+T(s.status).length+s.createdAt.length+s.createdBy.length;if(f>e){let I=f-s.message.length,g=Math.max(e-I,10);g<r&&(r=g)}}),a.forEach(s=>{s.message.length>r&&(s.message=`${s.message.slice(0,r-3)}...`)})}return{appVersions:a,totalResults:n.app.appVersions.pageInfo.totalResults,app:n.app}}async function c(p){let{remoteApp:t,developerPlatformClient:o,organization:n}=p,{appVersions:a,totalResults:e}=await S(o,t,p.json);if(p.json)return L(JSON.stringify(a,null,2));if(x({org:n.businessName,appName:t.title,configFile:u(p.app.configPath)}),a.length===0){m("No app versions found for this app");return}y({rows:a,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let r=w.link(o.webUiName,[await o.appDeepLink(t),"versions"].join("/"));m(E`\nView all ${String(e)} app versions in the ${r}`)}var d,i=class extends b{async run(){let{flags:t}=await this.parse(d),{app:o,remoteApp:n,developerPlatformClient:a,organization:e}=await N({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await c({app:o,remoteApp:n,organization:e,developerPlatformClient:a,json:t.json}),{app:o}}};d=i;i.summary="List deployed versions of your app.";i.descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";i.description=d.descriptionWithoutMarkdown();i.flags={...C,...k,...R};var J=i;export{J as a};
|
package/dist/chunk-5LJ5H4TD.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{p,v as d}from"./chunk-Z5DDPQ26.js";import{a as u}from"./chunk-E3RDAVJT.js";import{aa as P}from"./chunk-DODCPRXT.js";import{b as l}from"./chunk-2Y6CYLKF.js";import{v as f}from"./chunk-6YCGMS7X.js";import{m as i}from"./chunk-ZTE46E4Z.js";import{Ta as c,ma as h}from"./chunk-3TFUSDHY.js";import{f as r,n as m}from"./chunk-773TIA5M.js";import{e as w,g as n}from"./chunk-VKWPEFWQ.js";n();n();var g=w(P(),1),k=["assets/**","blocks/**","config/**","layout/**","listings/**/*","locales/**","sections/**","snippets/**","templates/**","templates/customers/**","release-notes.md","update_extension.json"].join("|");async function y(e){let t=await v(e),o=`${e}/${t}`,a=`${e}/(${k})`;await u({inputDirectory:e,outputZipPath:o,matchFilePattern:a}),f({body:["Your local theme was packaged in",{filePath:m(o)}]})}async function v(e){let t=r(e,"config/settings_schema.json");if(!await c(t))throw new i("Provide a config/settings_schema.json to package your theme.");let o=await j(t);if(o===void 0||o.theme_name===void 0)throw new i("Provide a theme_info.theme_name configuration in config/settings_schema.json.");return`${[o.theme_name,o.theme_version].filter(Boolean).join("-")}.zip`}async function j(e){let t=(0,g.parseJSON)(await h(e),null,!0);if(!t)throw new i("The file config/settings_schema.json contains an error. Please check if the file is valid JSON and includes the theme_info.theme_name configuration.");return t.find(o=>o.name==="theme_info")}var _,s=class extends d{async command(t){await y(t.path)}};_=s;s.summary="Package your theme into a .zip file, ready to upload to the Online Store.";s.descriptionWithMarkdown=`Packages your local theme files into a ZIP file that can be uploaded to Shopify.
|
|
2
|
-
|
|
3
|
-
Only folders that match the [default Shopify theme folder structure](https://shopify.dev/docs/storefronts/themes/tools/cli#directory-structure) are included in the package.
|
|
4
|
-
|
|
5
|
-
The package includes the \`listings\` directory if present (required for multi-preset themes per [Theme Store requirements](https://shopify.dev/docs/storefronts/themes/store/requirements#adding-presets-to-your-theme-zip-submission)).
|
|
6
|
-
|
|
7
|
-
The ZIP file uses the name \`theme_name-theme_version.zip\`, based on parameters in your [settings_schema.json](https://shopify.dev/docs/storefronts/themes/architecture/config/settings-schema-json) file.`;s.description=_.descriptionWithoutMarkdown();s.flags={...l,path:p.path};s.multiEnvironmentsFlags=null;var E=s;export{E as a};
|
package/dist/chunk-6FJBCRVK.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{b as h}from"./chunk-2MCH43SL.js";import{Ca as g,ua as u,wa as c}from"./chunk-3TFUSDHY.js";import{d as f,q as p}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static{this.description="Generate CLI commands documentation"}static{this.hidden=!0}async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
|
|
2
|
-
* ${$}
|
|
3
|
-
*${D}
|
|
4
|
-
*/
|
|
5
|
-
'${w}--${r}${v}'${x}: ${y}`}).filter(r=>r&&r?.length>0).join(`
|
|
6
|
-
|
|
7
|
-
`),i=`// This is an autogenerated file. Don't edit this file manually.
|
|
8
|
-
/**
|
|
9
|
-
* The following flags are available for the \`${a}\` command:
|
|
10
|
-
* @publicDocs
|
|
11
|
-
*/
|
|
12
|
-
export interface ${o} {
|
|
13
|
-
${e}
|
|
14
|
-
}
|
|
15
|
-
`;await c(`${d}/interfaces`),await u(`${d}/interfaces/${s}.interface.ts`,i)}export{m as a,k as b,N as c};
|
package/dist/chunk-6SXB44CE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as g}from"./chunk-2MCH43SL.js";import{A as l,B as f,C as m,D as d,J as p,x as u}from"./chunk-EZ7EBYDT.js";import{h as n}from"./chunk-WR2ZQGUR.js";import{F as S,z as h}from"./chunk-6YCGMS7X.js";import{Ob as w}from"./chunk-3TFUSDHY.js";import{a as C}from"./chunk-CTNBSUVU.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();var r="NEW_LOGIN";function N(e,t){let s=[],o=e[t];if(o)for(let[c,I]of Object.entries(o))s.push({label:I.identity.alias??c,value:c});return s}async function b(){let e=await p({},{forceNewSession:!0}),t=await f(e.userId);if(!t){let s=await S({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await m(e.userId,s),s}return t}async function v(){let e=await l(),t=await u(),s=[];return e&&s.push(...N(e,t)),s.length>0&&s.push({label:"Log in with a different account",value:r}),s}async function y(e){if(e){let o=await d(e);if(o)return n(o),e}let t=await v(),s=r;return t.length>0&&(s=await h({message:"Which account would you like to use?",choices:t})),s===r?b():(n(s),t.find(o=>o.value===s)?.label??s)}var A=L(C(),1);var a=class e extends g{static{this.description="Logs you in to your Shopify account."}static{this.flags={alias:A.Flags.string({description:"Alias of the session you want to login to.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})}}async run(){let{flags:t}=await this.parse(e),s=await y(t.alias);w(`Current account: ${s}.`)}};export{a};
|
package/dist/chunk-6YCGMS7X.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import{a as Ea,b as Sa}from"./chunk-EJDWYASP.js";import{a as bn}from"./chunk-RJ5VF3QY.js";import{a as ya}from"./chunk-7UNQOKZW.js";import{a as wa}from"./chunk-GB3YC4TI.js";import{a as wt}from"./chunk-B6SY4BIK.js";import{f as Ne}from"./chunk-VZKR2YFM.js";import{m as qe,n as Et,o as wn,p as En,t as Sn}from"./chunk-ZTE46E4Z.js";import{C as ca,Db as yn,E as ua,F as fa,Fb as Tn,H as ma,Hb as St,J as da,Pb as Ie,T as un,Vb as Ge,Wb as ke,a as ea,eb as N,f as ra,fb as g,gb as y,hb as sr,ib as mn,jb as xt,kb as fe,l as na,lb as dn,m as oa,mb as De,nb as yt,ob as pn,pb as ar,rb as ha,sb as ga,t as ir,tb as hn,u as ia,ub as Be,vb as $e,wb as gn,xb as V,y as aa,z as la}from"./chunk-3TFUSDHY.js";import{e as ta,g as sa,j as pa,l as fn,u as Ue}from"./chunk-A4SBXDZB.js";import{f as nt,n as vn}from"./chunk-J3IHP46B.js";import{a as or}from"./chunk-UKQ7NE5V.js";import{b as an,i as ln,q as cn}from"./chunk-773TIA5M.js";import{a as xn}from"./chunk-636CTEW7.js";import{j as ba}from"./chunk-TR4OWSEX.js";import{a as xa}from"./chunk-TOLPNBZK.js";import{a as ue,c as k,e as D,g as u}from"./chunk-VKWPEFWQ.js";var Dn=k((Hu,Ln)=>{u();Ln.exports=Rn;Rn.sync=Ta;var Cn=ue("fs");function va(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function An(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:va(t,r)}function Rn(e,t,r){Cn.stat(e,function(n,o){r(n,n?!1:An(o,e,t))})}function Ta(e,t){return An(Cn.statSync(e),e,t)}});var In=k((Wu,Bn)=>{u();Bn.exports=Mn;Mn.sync=Ca;var kn=ue("fs");function Mn(e,t,r){kn.stat(e,function(n,o){r(n,n?!1:_n(o,t))})}function Ca(e,t){return _n(kn.statSync(e),t)}function _n(e,t){return e.isFile()&&Aa(e,t)}function Aa(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),f=parseInt("100",8),m=parseInt("010",8),d=parseInt("001",8),p=f|m,b=r&d||r&m&&o===s||r&f&&n===i||r&p&&i===0;return b}});var On=k((Xu,Pn)=>{u();var Vu=ue("fs"),vt;process.platform==="win32"||global.TESTING_WINDOWS?vt=Dn():vt=In();Pn.exports=lr;lr.sync=Ra;function lr(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){lr(e,t||{},function(i,s){i?o(i):n(s)})})}vt(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function Ra(e,t){try{return vt.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Hn=k((Yu,Gn)=>{u();var He=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Fn=ue("path"),La=He?";":":",Un=On(),$n=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Nn=(e,t)=>{let r=t.colon||La,n=e.match(/\//)||He&&e.match(/\\/)?[""]:[...He?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=He?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=He?o.split(r):[""];return He&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},qn=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=Nn(e,t),s=[],f=d=>new Promise((p,b)=>{if(d===n.length)return t.all&&s.length?p(s):b($n(e));let S=n[d],v=/^".*"$/.test(S)?S.slice(1,-1):S,w=Fn.join(v,e),A=!v&&/^\.[\\\/]/.test(e)?e.slice(0,2)+w:w;p(m(A,d,0))}),m=(d,p,b)=>new Promise((S,v)=>{if(b===o.length)return S(f(p+1));let w=o[b];Un(d+w,{pathExt:i},(A,C)=>{if(!A&&C)if(t.all)s.push(d+w);else return S(d+w);return S(m(d,p,b+1))})});return r?f(0).then(d=>r(null,d),r):f(0)},Da=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=Nn(e,t),i=[];for(let s=0;s<r.length;s++){let f=r[s],m=/^".*"$/.test(f)?f.slice(1,-1):f,d=Fn.join(m,e),p=!m&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let b=0;b<n.length;b++){let S=p+n[b];try{if(Un.sync(S,{pathExt:o}))if(t.all)i.push(S);else return S}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw $n(e)};Gn.exports=qn;qn.sync=Da});var Wn=k((Qu,cr)=>{"use strict";u();var jn=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};cr.exports=jn;cr.exports.default=jn});var Kn=k((ef,Xn)=>{"use strict";u();var zn=ue("path"),ka=Hn(),Ma=Wn();function Vn(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let s;try{s=ka.sync(e.command,{path:r[Ma({env:r})],pathExt:t?zn.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return s&&(s=zn.resolve(o?e.options.cwd:"",s)),s}function _a(e){return Vn(e)||Vn(e,!0)}Xn.exports=_a});var Yn=k((rf,fr)=>{"use strict";u();var ur=/([()\][%!^"`<>&|;, *?])/g;function Ba(e){return e=e.replace(ur,"^$1"),e}function Ia(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(ur,"^$1"),t&&(e=e.replace(ur,"^$1")),e}fr.exports.command=Ba;fr.exports.argument=Ia});var Qn=k((of,Zn)=>{"use strict";u();Zn.exports=/^#!(.*)/});var eo=k((af,Jn)=>{"use strict";u();var Pa=Qn();Jn.exports=(e="")=>{let t=e.match(Pa);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var ro=k((cf,to)=>{"use strict";u();var mr=ue("fs"),Oa=eo();function Fa(e){let r=Buffer.alloc(150),n;try{n=mr.openSync(e,"r"),mr.readSync(n,r,0,150,0),mr.closeSync(n)}catch{}return Oa(r.toString())}to.exports=Fa});var so=k((ff,io)=>{"use strict";u();var Ua=ue("path"),no=Kn(),oo=Yn(),$a=ro(),Na=process.platform==="win32",qa=/\.(?:com|exe)$/i,Ga=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ha(e){e.file=no(e);let t=e.file&&$a(e.file);return t?(e.args.unshift(e.file),e.command=t,no(e)):e.file}function ja(e){if(!Na)return e;let t=Ha(e),r=!qa.test(t);if(e.options.forceShell||r){let n=Ga.test(t);e.command=Ua.normalize(e.command),e.command=oo.command(e.command),e.args=e.args.map(i=>oo.argument(i,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Wa(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:ja(n)}io.exports=Wa});var co=k((df,lo)=>{"use strict";u();var dr=process.platform==="win32";function pr(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function za(e,t){if(!dr)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=ao(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function ao(e,t){return dr&&e===1&&!t.file?pr(t.original,"spawn"):null}function Va(e,t){return dr&&e===1&&!t.file?pr(t.original,"spawnSync"):null}lo.exports={hookChildProcess:za,verifyENOENT:ao,verifyENOENTSync:Va,notFoundError:pr}});var mo=k((hf,je)=>{"use strict";u();var uo=ue("child_process"),hr=so(),gr=co();function fo(e,t,r){let n=hr(e,t,r),o=uo.spawn(n.command,n.args,n.options);return gr.hookChildProcess(o,n),o}function Xa(e,t,r){let n=hr(e,t,r),o=uo.spawnSync(n.command,n.args,n.options);return o.error=o.error||gr.verifyENOENTSync(o.status,n),o}je.exports=fo;je.exports.spawn=fo;je.exports.sync=Xa;je.exports._parse=hr;je.exports._enoent=gr});var ko=k((Qf,Do)=>{"use strict";u();var{PassThrough:bl}=ue("stream");Do.exports=function(){var e=[],t=new bl({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(r),t;function r(i){return Array.isArray(i)?(i.forEach(r),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function n(){return e.length==0}function o(i){e=e.filter(function(s){return s!==i}),!e.length&&t.readable&&t.end()}}});var Jo=k((cd,Qo)=>{u();var{EventEmitter:Ql}=ue("events"),Dt=class{constructor(){this.eventEmitter=new Ql,this.onabort=null,this.aborted=!1,this.reason=void 0}toString(){return"[object AbortSignal]"}get[Symbol.toStringTag](){return"AbortSignal"}removeEventListener(t,r){this.eventEmitter.removeListener(t,r)}addEventListener(t,r){this.eventEmitter.on(t,r)}dispatchEvent(t){let r={type:t,target:this},n=`on${t}`;typeof this[n]=="function"&&this[n](r),this.eventEmitter.emit(t,r)}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let r=new st;return r.abort(),r.signal}static timeout(t){let r=new st;return setTimeout(()=>r.abort(new Error("TimeoutError")),t),r.signal}},st=class{constructor(){this.signal=new Dt}abort(t){this.signal.aborted||(this.signal.aborted=!0,t?this.signal.reason=t:this.signal.reason=new Error("AbortError"),this.signal.dispatchEvent("abort"))}toString(){return"[object AbortController]"}get[Symbol.toStringTag](){return"AbortController"}};Qo.exports={AbortController:st,AbortSignal:Dt}});var ui=k((fp,ci)=>{"use strict";u();ci.exports=class ye{constructor(t){try{t(r=>{this.setValue(r,!1)},r=>{this.setValue(r,!0)})}catch(r){this.setValue(r,!0)}}setValue(t,r){this.val=t instanceof ye?t.val:t,this.rejected=r||(t instanceof ye?t.rejected:!1)}static valueFrom(t){if(t instanceof ye){if(t.rejected)throw t.val;return t.val}else return t}then(t){try{if(!this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}catch(t){try{if(this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}static resolve(t){return new ye(r=>{r(t)})}static reject(t){return new ye((r,n)=>{n(t)})}}});var di=k((dp,mi)=>{"use strict";u();var fi=typeof window<"u"&&window.window===window&&window.navigator,hc=fi?window.location.href:process.cwd(),gc=new RegExp("^((https|http)://)?[a-z0-9A-Z]{3}.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z].com|net|cn|cc (:s[0-9]{1-4})?/$"),Ce=mi.exports={concat(e,t){let r=e[e.length-1]==="/",n=t[0]==="/";return e+(r||n?"":"/")+(r&&n?t.substring(1):t)},resolve(e){return Ce.isAbsolute(e)?Ce.normalize(e):Ce.normalize(Ce.concat(hc,e))},normalize(e){let t=[],r=0;e.split("/").reverse().filter(o=>o!==".").forEach(o=>{o===".."?r++:r===0?t.push(o):r--});let n=t.reverse().join("/");return(fi&&n[0]==="/"?n[1]==="/"?window.location.protocol:window.location.origin:"")+n},isData:e=>e.indexOf("data:")===0,isURL:e=>gc.test(e),isAbsolute:e=>e[0]==="/"||/^[^\/]*:/.test(e),relativeToFile(e,t){return Ce.isData(e)||Ce.isAbsolute(t)?Ce.normalize(t):Ce.normalize(Ce.concat(e.split("/").slice(0,-1).join("/"),t))}}});var hi=k((hp,pi)=>{"use strict";u();pi.exports=bc;function bc(e){if(!/^data\:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");var t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");for(var r=e.substring(5,t).split(";"),n=r[0]||"text/plain",o=n,i=!1,s="",f=1;f<r.length;f++)r[f]=="base64"?i=!0:(o+=";"+r[f],r[f].indexOf("charset=")==0&&(s=r[f].substring(8)));!r[0]&&!s.length&&(o+=";charset=US-ASCII",s="US-ASCII");var m=unescape(e.substring(t+1)),d=i?"base64":"ascii",p=Buffer.from?Buffer.from(m,d):new Buffer(m,d);return p.type=n,p.typeFull=o,p.charset=s,p}});var yi=k((bp,$t)=>{"use strict";u();var{assign:We}=Object,Pr=typeof window<"u"&&window.window===window&&window.navigator,xc=xa().SourceMapConsumer,Ut=ui(),Ir=di(),yc=hi(),bi=Pr?null:$t.require,gi=e=>{let t=r=>r in t.cache?t.cache[r]:t.cache[r]=e(r);return t.forgetEverything=()=>{t.cache=Object.create(null)},t.cache=Object.create(null),t};function xi(e,t){let r=t?Ut:Promise,n=gi(f=>o(f,e(f)));function o(f,m){return m===void 0?n(Ir.resolve(f)):r.resolve(m).then(d=>{let p,b,S,v=w=>(S=S||i(p))(w);return p={path:f,text:d,get lines(){return b=b||d.split(`
|
|
2
|
-
`)},resolve(w){let A=v(w);if(t)try{return Ut.valueFrom(A)}catch(C){return We({},w,{error:C})}else return Promise.resolve(A)},_resolve:v}})}function i(f){let m=/\u0023 sourceMappingURL=(.+)\n?/g,d;for(;;){let S=m.exec(f.text);if(S)d=S;else break}let p=d&&d[1],b=S=>We({},S,{sourceFile:f,sourceLine:f.lines[S.line-1]||""});return p?s(f.path,p,b):b}function s(f,m,d){let p=m.startsWith("data:")?o(f,yc(m).toString()):o(Ir.relativeToFile(f,m)),b=p.then(v=>xc(JSON.parse(v.text))),S=gi(function(w){return p.then(A=>{let C=Ir.relativeToFile(A.path,w);return b.then(I=>o(C,I.sourceContentFor(w,!0)||void 0))})});return v=>b.then(w=>{let A=w.originalPositionFor(v);return A.source?S(A.source).then(C=>C._resolve(We({},v,{line:A.line,column:A.column+1,name:A.name}))):d(v)}).catch(w=>We(d(v),{sourceMapError:w}))}return We(function(m){let d=o(m);if(t)try{return Ut.valueFrom(d)}catch(p){let b={path:m,text:"",lines:[],error:p,resolve(S){return We({},S,{error:p,sourceLine:"",sourceFile:b})}};return b}return d},{resetCache:()=>n.forgetEverything(),getCache:()=>n.cache})}$t.exports=xi(function(t){return new Ut(r=>{if(Pr){let n=new XMLHttpRequest;n.open("GET",t,!1),n.send(null),r(n.responseText)}else r(bi("fs").readFileSync(t,{encoding:"utf8"}))})},!0);$t.exports.async=xi(function(t){return new Promise((r,n)=>{if(Pr){let o=new XMLHttpRequest;o.open("GET",t),o.onreadystatechange=i=>{o.readyState===4&&(o.status===200?r(o.responseText):n(new Error(o.statusText)))},o.send(null)}else bi("fs").readFile(t,{encoding:"utf8"},(o,i)=>{o?n(o):r(i)})})})});var Ei=k((yp,wi)=>{"use strict";u();wi.exports=(e,t)=>{let r=e||[],n=[],o={label:void 0,items:[r.first]};return r.forEach(i=>{let s=t(i);o.label!==s&&o.items.length?n.push(o={label:s,items:[i]}):o.items.push(i)}),n}});var vi=k((Ep,$r)=>{"use strict";u();var wc=(function(){function e(t,r){var n=[],o=!0,i=!1,s=void 0;try{for(var f=t[Symbol.iterator](),m;!(o=(m=f.next()).done)&&(n.push(m.value),!(r&&n.length===r));o=!0);}catch(d){i=!0,s=d}finally{try{!o&&f.return&&f.return()}finally{if(i)throw s}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),Nt="[\x1B\x9B][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]",Si="\0-\b\v-\x1B\x9B\xAD\u200B\u2028\u2029\uFEFF\uFE00-\uFE0F",Ur=`
|
|
3
|
-
`+Si,Ec=new RegExp("(?:"+Nt+")|["+Si+"]","g"),Or=new RegExp("(?:"+Nt+")|["+Ur+"]","g"),Fr=new RegExp("((?:"+Nt+")|[ "+Ur+"])?([^ "+Ur+"]*)","g");$r.exports={zeroWidthCharacters:Or,ansiEscapeCodes:new RegExp(Nt,"g"),strlen:e=>Array.from(e.replace(Or,"")).length,isBlank:e=>e.replace(Or,"").replace(/\s/g,"").length===0,blank:e=>Array.from(e.replace(Ec,"")).map(t=>t===" "||t===`
|
|
4
|
-
`?t:" ").join(""),partition(e){for(var t,r=[];Fr.lastIndex!==e.length&&(t=Fr.exec(e));)r.push([t[1]||"",t[2]]);return Fr.lastIndex=0,r},first(e,t){let r="",n=0;for(let i of $r.exports.partition(e)){var o=wc(i,2);let s=o[0],f=o[1],m=Array.from(f).slice(0,t-n);r+=s+m.join(""),n+=m.length}return r}}});var Li=k((vp,Ri)=>{"use strict";u();function ze(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}var qt=Object,Ci=vi(),Sc=Ci.first,Gt=Ci.strlen,vc=(e,t)=>Sc(e,t-1)+"\u2026",Ti=(e,t)=>{let r=(w,A)=>w.reduce((C,I)=>I.map((R,T)=>[].concat(ze(C[T]||[]),[R])),[]).map(C=>A.apply(void 0,ze(C))),n=e.map(w=>w.map(A=>A.replace(/\n/g,"\\n"))),o=n.map(w=>w.map(Gt)),i=r(o,Math.max),s=qt.assign({delimiter:" ",minColumnWidths:i.map(w=>0),maxTotalWidth:0},t),f=Gt(s.delimiter),m=i.reduce((w,A)=>w+A,0),d=i.map(w=>w/m),p=s.maxTotalWidth-f*(i.length-1),b=Math.max(0,m-p),S=r([s.minColumnWidths,i,d],(w,A,C)=>Math.max(w,Math.floor(A-b*C))),v=o.map(w=>r([S,w],(A,C)=>A-C));return r([n,v],(w,A)=>r([w,A],(C,I)=>I>=0?s.right?" ".repeat(I)+C:C+" ".repeat(I):vc(C,Gt(C)+I)).join(s.delimiter))},Ai=e=>qt.assign(t=>{var r;if(t[0]&&Array.isArray(t[0]))return Ti(t.map(s=>s.map((f,m)=>f===void 0?"":e.print(f,m))),e).join(`
|
|
5
|
-
`);let n=[].concat(ze(new Set((r=[]).concat.apply(r,ze(t.map(qt.keys)))))),o=[n.map(e.title)].concat(ze(t.map(s=>n.map(f=>s[f]===void 0?"":e.print(s[f],f))))),i=Ti(o,e);return(e.dash?[i[0],e.dash.repeat(Gt(i[0]))].concat(ze(i.slice(1))):i).join(`
|
|
6
|
-
`)},e,{configure:t=>Ai(qt.assign({},e,t))});Ri.exports=Ai({maxTotalWidth:Number.MAX_SAFE_INTEGER,print:String,title:String,dash:"-",right:!1})});var Mi=k((Ap,Nr)=>{"use strict";u();var Ht=Object,Ve=typeof window<"u"&&window.window===window&&window.navigator,Cp=Ve?null:Nr.require,Di=e=>e[e.length-1],jt=yi(),Tc=Ei(),Cc=Li(),ut=e=>e.replace(/\\/g,"/"),ki=Ve?window.location.href:ut(process.cwd())+"/",ft=class e{constructor(t,r){let n=t,o=t&&t instanceof SyntaxError&&!Ve;if(t||(t=new Error,r=r===void 0?1:r),t instanceof Error&&(t=t.stack||""),typeof t=="string"&&(t=this.rawParse(t).slice(r).map(i=>this.extractEntryMetadata(i))),Array.isArray(t)){if(o){let i=ue("util").inspect(n).split(`
|
|
7
|
-
`),s=i[0].split(":"),f=s.pop(),m=s.join(":");m&&t.unshift({file:ut(m),line:f,column:(i[2]||"").indexOf("^")+1,sourceLine:i[1],callee:"(syntax error)",syntaxError:!0})}this.items=t}else this.items=[]}extractEntryMetadata(t){let r=this.decomposePath(t.file||""),n=r[0],o=r[1];return Ht.assign(t,{calleeShort:t.calleeShort||Di((t.callee||"").split(".")),fileRelative:n,fileShort:this.shortenPath(n),fileName:Di((t.file||"").split("/")),thirdParty:this.isThirdParty(n,o)&&!t.index,externalDomain:o})}shortenPath(t){return t.replace(/^node_modules\//,"").replace(/^webpack\/bootstrap\//,"").replace(/^__parcel_source_root\//,"")}decomposePath(t){let r=t;Ve&&(r=r.replace(ki,""));let n=r.match(/^(http|https)\:\/\/?([^\/]+)\/(.*)/),o=n?n[2]:void 0;return r=n?n[3]:r,Ve||(r=ue("path").relative(ki,r)),[ut(r).replace(/^.*\:\/\/?\/?/,""),o]}isThirdParty(t,r){return r||t[0]==="~"||t[0]==="/"||t.indexOf("node_modules")===0||t.indexOf("webpack/bootstrap")===0}rawParse(t){return(t||"").split(`
|
|
8
|
-
`).map(o=>{o=o.trim();let i,s=[],f,m,d;if((m=o.match(/at (.+) \(eval at .+ \((.+)\), .+\)/))||(m=o.match(/at (.+) \((.+)\)/))||(m=o.match(/at (.+) ([^ ]+)/))||o.slice(0,3)!=="at "&&(m=o.match(/(.*)@(.*)/)))i=m[1],f=m[2]==="native",s=(m[2].match(/(.*):(\d+):(\d+)/)||m[2].match(/(.*):(\d+)/)||[]).slice(1);else if(d=o.match(/^(at\s+)*(.+):(\d+):(\d+)/))s=d.slice(2);else return;return i&&!s[0]&&i.split(".")[0]==="Array"&&(f=!0),{beforeParse:o,callee:i||"",index:Ve&&s[0]===window.location.href,native:f||!1,file:ut(s[0]||""),line:parseInt(s[1]||"",10)||void 0,column:parseInt(s[2]||"",10)||void 0}}).filter(o=>o!==void 0)}withSourceAt(t){return this.items[t]&&this.withSource(this.items[t])}withSourceAsyncAt(t){return this.items[t]&&this.withSourceAsync(this.items[t])}withSource(t){if(this.shouldSkipResolving(t))return t;{let r=jt(t.file||"").resolve(t);return r.sourceFile?this.withSourceResolved(t,r):t}}withSourceAsync(t){return this.shouldSkipResolving(t)?Promise.resolve(t):jt.async(t.file||"").then(r=>r.resolve(t)).then(r=>this.withSourceResolved(t,r)).catch(r=>this.withSourceResolved(t,{error:r,sourceLine:""}))}shouldSkipResolving(t){return t.sourceFile||t.error||t.file&&t.file.indexOf("<")>=0}withSourceResolved(t,r){return r.sourceFile&&!r.sourceFile.error&&(r.file=ut(r.sourceFile.path),r=this.extractEntryMetadata(r)),r.sourceLine.includes("// @hide")&&(r.sourceLine=r.sourceLine.replace("// @hide",""),r.hide=!0),(r.sourceLine.includes("__webpack_require__")||r.sourceLine.includes("/******/ ({"))&&(r.thirdParty=!0),Ht.assign({sourceLine:""},t,r)}withSources(){return this.map(t=>this.withSource(t))}withSourcesAsync(){return Promise.all(this.items.map(t=>this.withSourceAsync(t))).then(t=>new e(t))}mergeRepeatedLines(){return new e(Tc(this.items,t=>t.file+t.line).map(t=>t.items.slice(1).reduce((r,n)=>(r.callee=(r.callee||"<anonymous>")+" \u2192 "+(n.callee||"<anonymous>"),r.calleeShort=(r.calleeShort||"<anonymous>")+" \u2192 "+(n.calleeShort||"<anonymous>"),r),Ht.assign({},t.items[0]))))}clean(){let t=this.withSources().mergeRepeatedLines();return t.filter(t.isClean.bind(t))}cleanAsync(){return this.withSourcesAsync().then(t=>(t=t.mergeRepeatedLines(),t.filter(t.isClean.bind(t))))}isClean(t,r){return r===0||!(t.thirdParty||t.hide||t.native)}at(t){return Ht.assign({beforeParse:"",callee:"<???>",index:!1,native:!1,file:"<???>",line:0,column:0},this.items[t])}asTable(t){let r=t&&t.maxColumnWidths||this.maxColumnWidths(),n=(s,f)=>s&&(s.length>f?s.slice(0,f-1)+"\u2026":s),o=(s,f)=>s&&(s.length>f?"\u2026"+s.slice(-(f-1)):s),i=this.map(s=>["at "+n(s.calleeShort,r.callee),o(s.fileShort&&s.fileShort+":"+s.line||"",r.file),n((s.sourceLine||"").trim()||"",r.sourceLine)]);return Cc(i.items)}maxColumnWidths(){return{callee:30,file:60,sourceLine:80}}static resetCache(){jt.resetCache(),jt.async.resetCache()}static locationsEqual(t,r){return t.file===r.file&&t.line===r.line&&t.column===r.column}};["map","filter","slice","concat"].forEach(e=>{ft.prototype[e]=function(){return new ft(this.items[e].apply(this.items,arguments))}});Nr.exports=ft});var $i=k((Mh,Ui)=>{u();function Bc(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),f=s.length;f--;){var m=s[e?f:++o];if(r(i[m],m,i)===!1)break}return t}}Ui.exports=Bc});var qi=k((Bh,Ni)=>{u();var Ic=$i(),Pc=Ic();Ni.exports=Pc});var Hi=k((Ph,Gi)=>{u();var Oc=qi(),Fc=ia();function Uc(e,t){return e&&Oc(e,t,Fc)}Gi.exports=Uc});var Wi=k((Fh,ji)=>{u();var $c=ir();function Nc(e,t){return function(r,n){if(r==null)return r;if(!$c(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=Object(r);(t?i--:++i<o)&&n(s[i],i,s)!==!1;);return r}}ji.exports=Nc});var Vi=k(($h,zi)=>{u();var qc=Hi(),Gc=Wi(),Hc=Gc(qc);zi.exports=Hc});var Ki=k((qh,Xi)=>{u();var jc=Vi(),Wc=ir();function zc(e,t){var r=-1,n=Wc(e)?Array(e.length):[];return jc(e,function(o,i,s){n[++r]=t(o,i,s)}),n}Xi.exports=zc});var Zi=k((Hh,Yi)=>{u();function Vc(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}Yi.exports=Vc});var es=k((Wh,Ji)=>{u();var Qi=sa();function Xc(e,t){if(e!==t){var r=e!==void 0,n=e===null,o=e===e,i=Qi(e),s=t!==void 0,f=t===null,m=t===t,d=Qi(t);if(!f&&!d&&!i&&e>t||i&&s&&m&&!f&&!d||n&&s&&m||!r&&m||!o)return 1;if(!n&&!i&&!d&&e<t||d&&r&&o&&!n&&!i||f&&r&&o||!s&&o||!m)return-1}return 0}Ji.exports=Xc});var rs=k((Vh,ts)=>{u();var Kc=es();function Yc(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,s=o.length,f=r.length;++n<s;){var m=Kc(o[n],i[n]);if(m){if(n>=f)return m;var d=r[n];return m*(d=="desc"?-1:1)}}return e.index-t.index}ts.exports=Yc});var os=k((Kh,ns)=>{u();var Hr=la(),Zc=ca(),Qc=fa(),Jc=Ki(),eu=Zi(),tu=oa(),ru=rs(),nu=ua(),ou=ra();function iu(e,t,r){t.length?t=Hr(t,function(i){return ou(i)?function(s){return Zc(s,i.length===1?i[0]:i)}:i}):t=[nu];var n=-1;t=Hr(t,tu(Qc));var o=Jc(e,function(i,s,f){var m=Hr(t,function(d){return d(i)});return{criteria:m,index:++n,value:i}});return eu(o,function(i,s){return ru(i,s,r)})}ns.exports=iu});var ss=k((Zh,is)=>{u();var su=ea(),au=ir(),lu=na(),cu=ta();function uu(e,t,r){if(!cu(r))return!1;var n=typeof t;return(n=="number"?au(r)&&lu(t,r.length):n=="string"&&t in r)?su(r[t],e):!1}is.exports=uu});var cs=k((Jh,ls)=>{u();var fu=ma(),mu=os(),du=da(),as=ss(),pu=du(function(e,t){if(e==null)return[];var r=t.length;return r>1&&as(e,t[0],t[1])?t=[]:r>2&&as(t[0],t[1],t[2])&&(t=[t[0]]),mu(e,fu(t,1),[])});ls.exports=pu});var hs=k((kg,ps)=>{"use strict";u();var xu=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let o=t.length,i=0,s="";do s+=e.substr(i,n-i)+t+r,i=n+o,n=e.indexOf(t,i);while(n!==-1);return s+=e.substr(i),s},yu=(e,t,r,n)=>{let o=0,i="";do{let s=e[n-1]==="\r";i+=e.substr(o,(s?n-1:n)-o)+t+(s?`\r
|
|
9
|
-
`:`
|
|
10
|
-
`)+r,o=n+1,n=e.indexOf(`
|
|
11
|
-
`,o)}while(n!==-1);return i+=e.substr(o),i};ps.exports={stringReplaceAll:xu,stringEncaseCRLFWithFirstIndex:yu}});var ws=k((_g,ys)=>{"use strict";u();var wu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,gs=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Eu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Su=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,vu=new Map([["n",`
|
|
12
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function xs(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):vu.get(e)||e}function Tu(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),o;for(let i of n){let s=Number(i);if(!Number.isNaN(s))r.push(s);else if(o=i.match(Eu))r.push(o[2].replace(Su,(f,m,d)=>m?xs(m):d));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`)}return r}function Cu(e){gs.lastIndex=0;let t=[],r;for(;(r=gs.exec(e))!==null;){let n=r[1];if(r[2]){let o=Tu(n,r[2]);t.push([n].concat(o))}else t.push([n])}return t}function bs(e,t){let r={};for(let o of t)for(let i of o.styles)r[i[0]]=o.inverse?null:i.slice(1);let n=e;for(let[o,i]of Object.entries(r))if(Array.isArray(i)){if(!(o in n))throw new Error(`Unknown Chalk style: ${o}`);n=i.length>0?n[o](...i):n[o]}return n}ys.exports=(e,t)=>{let r=[],n=[],o=[];if(t.replace(wu,(i,s,f,m,d,p)=>{if(s)o.push(xs(s));else if(m){let b=o.join("");o=[],n.push(r.length===0?b:bs(e,r)(b)),r.push({inverse:f,styles:Cu(m)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(bs(e,r)(o.join(""))),o=[],r.pop()}else o.push(p)}),n.push(o.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")}});var Rs=k((Ig,As)=>{"use strict";u();var dt=ba(),{stdout:Wr,stderr:zr}=ha(),{stringReplaceAll:Au,stringEncaseCRLFWithFirstIndex:Ru}=hs(),{isArray:Zt}=Array,Ss=["ansi","ansi","ansi256","ansi16m"],Qe=Object.create(null),Lu=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Wr?Wr.level:0;e.level=t.level===void 0?r:t.level},Vr=class{constructor(t){return vs(t)}},vs=e=>{let t={};return Lu(t,e),t.template=(...r)=>Cs(t.template,...r),Object.setPrototypeOf(t,Qt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Vr,t.template};function Qt(e){return vs(e)}for(let[e,t]of Object.entries(dt))Qe[e]={get(){let r=Jt(this,Xr(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};Qe.visible={get(){let e=Jt(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ts=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Ts)Qe[e]={get(){let{level:t}=this;return function(...r){let n=Xr(dt.color[Ss[t]][e](...r),dt.color.close,this._styler);return Jt(this,n,this._isEmpty)}}};for(let e of Ts){let t="bg"+e[0].toUpperCase()+e.slice(1);Qe[t]={get(){let{level:r}=this;return function(...n){let o=Xr(dt.bgColor[Ss[r]][e](...n),dt.bgColor.close,this._styler);return Jt(this,o,this._isEmpty)}}}}var Du=Object.defineProperties(()=>{},{...Qe,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Xr=(e,t,r)=>{let n,o;return r===void 0?(n=e,o=t):(n=r.openAll+e,o=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:o,parent:r}},Jt=(e,t,r)=>{let n=(...o)=>Zt(o[0])&&Zt(o[0].raw)?Es(n,Cs(n,...o)):Es(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,Du),n._generator=e,n._styler=t,n._isEmpty=r,n},Es=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:o}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=Au(t,r.close,r.open),r=r.parent;let i=t.indexOf(`
|
|
13
|
-
`);return i!==-1&&(t=Ru(t,o,n,i)),n+t+o},jr,Cs=(e,...t)=>{let[r]=t;if(!Zt(r)||!Zt(r.raw))return t.join(" ");let n=t.slice(1),o=[r.raw[0]];for(let i=1;i<r.length;i++)o.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return jr===void 0&&(jr=ws()),jr(e,o.join(""))};Object.defineProperties(Qt.prototype,Qe);var er=Qt();er.supportsColor=Wr;er.stderr=Qt({level:zr?zr.level:0});er.stderr.supportsColor=zr;As.exports=er});var Ls=k((Kr,Yr)=>{u();(function(e,t){typeof Kr=="object"&&typeof Yr<"u"?Yr.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(Kr,(function(){"use strict";function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(a)}var t=/^\s+/,r=/\s+$/;function n(a,c){if(a=a||"",c=c||{},a instanceof n)return a;if(!(this instanceof n))return new n(a,c);var l=o(a);this._originalInput=a,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=c.format||l.format,this._gradientType=c.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=l.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var c=this.toRgb();return(c.r*299+c.g*587+c.b*114)/1e3},getLuminance:function(){var c=this.toRgb(),l,h,E,x,U,W;return l=c.r/255,h=c.g/255,E=c.b/255,l<=.03928?x=l/12.92:x=Math.pow((l+.055)/1.055,2.4),h<=.03928?U=h/12.92:U=Math.pow((h+.055)/1.055,2.4),E<=.03928?W=E/12.92:W=Math.pow((E+.055)/1.055,2.4),.2126*x+.7152*U+.0722*W},setAlpha:function(c){return this._a=ve(c),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var c=m(this._r,this._g,this._b);return{h:c.h*360,s:c.s,v:c.v,a:this._a}},toHsvString:function(){var c=m(this._r,this._g,this._b),l=Math.round(c.h*360),h=Math.round(c.s*100),E=Math.round(c.v*100);return this._a==1?"hsv("+l+", "+h+"%, "+E+"%)":"hsva("+l+", "+h+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var c=s(this._r,this._g,this._b);return{h:c.h*360,s:c.s,l:c.l,a:this._a}},toHslString:function(){var c=s(this._r,this._g,this._b),l=Math.round(c.h*360),h=Math.round(c.s*100),E=Math.round(c.l*100);return this._a==1?"hsl("+l+", "+h+"%, "+E+"%)":"hsla("+l+", "+h+"%, "+E+"%, "+this._roundA+")"},toHex:function(c){return p(this._r,this._g,this._b,c)},toHexString:function(c){return"#"+this.toHex(c)},toHex8:function(c){return b(this._r,this._g,this._b,this._a,c)},toHex8String:function(c){return"#"+this.toHex8(c)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(B(this._r,255)*100)+"%",g:Math.round(B(this._g,255)*100)+"%",b:Math.round(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(B(this._r,255)*100)+"%, "+Math.round(B(this._g,255)*100)+"%, "+Math.round(B(this._b,255)*100)+"%)":"rgba("+Math.round(B(this._r,255)*100)+"%, "+Math.round(B(this._g,255)*100)+"%, "+Math.round(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:$[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(c){var l="#"+S(this._r,this._g,this._b,this._a),h=l,E=this._gradientType?"GradientType = 1, ":"";if(c){var x=n(c);h="#"+S(x._r,x._g,x._b,x._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+l+",endColorstr="+h+")"},toString:function(c){var l=!!c;c=c||this._format;var h=!1,E=this._a<1&&this._a>=0,x=!l&&E&&(c==="hex"||c==="hex6"||c==="hex3"||c==="hex4"||c==="hex8"||c==="name");return x?c==="name"&&this._a===0?this.toName():this.toRgbString():(c==="rgb"&&(h=this.toRgbString()),c==="prgb"&&(h=this.toPercentageRgbString()),(c==="hex"||c==="hex6")&&(h=this.toHexString()),c==="hex3"&&(h=this.toHexString(!0)),c==="hex4"&&(h=this.toHex8String(!0)),c==="hex8"&&(h=this.toHex8String()),c==="name"&&(h=this.toName()),c==="hsl"&&(h=this.toHslString()),c==="hsv"&&(h=this.toHsvString()),h||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(c,l){var h=c.apply(null,[this].concat([].slice.call(l)));return this._r=h._r,this._g=h._g,this._b=h._b,this.setAlpha(h._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(c,l){return c.apply(null,[this].concat([].slice.call(l)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(X,arguments)},triad:function(){return this._applyCombination(P,[3])},tetrad:function(){return this._applyCombination(P,[4])}},n.fromRatio=function(a,c){if(e(a)=="object"){var l={};for(var h in a)a.hasOwnProperty(h)&&(h==="a"?l[h]=a[h]:l[h]=tt(a[h]));a=l}return n(a,c)};function o(a){var c={r:0,g:0,b:0},l=1,h=null,E=null,x=null,U=!1,W=!1;return typeof a=="string"&&(a=Qs(a)),e(a)=="object"&&(Te(a.r)&&Te(a.g)&&Te(a.b)?(c=i(a.r,a.g,a.b),U=!0,W=String(a.r).substr(-1)==="%"?"prgb":"rgb"):Te(a.h)&&Te(a.s)&&Te(a.v)?(h=tt(a.s),E=tt(a.v),c=d(a.h,h,E),U=!0,W="hsv"):Te(a.h)&&Te(a.s)&&Te(a.l)&&(h=tt(a.s),x=tt(a.l),c=f(a.h,h,x),U=!0,W="hsl"),a.hasOwnProperty("a")&&(l=a.a)),l=ve(l),{ok:U,format:a.format||W,r:Math.min(255,Math.max(c.r,0)),g:Math.min(255,Math.max(c.g,0)),b:Math.min(255,Math.max(c.b,0)),a:l}}function i(a,c,l){return{r:B(a,255)*255,g:B(c,255)*255,b:B(l,255)*255}}function s(a,c,l){a=B(a,255),c=B(c,255),l=B(l,255);var h=Math.max(a,c,l),E=Math.min(a,c,l),x,U,W=(h+E)/2;if(h==E)x=U=0;else{var Y=h-E;switch(U=W>.5?Y/(2-h-E):Y/(h+E),h){case a:x=(c-l)/Y+(c<l?6:0);break;case c:x=(l-a)/Y+2;break;case l:x=(a-c)/Y+4;break}x/=6}return{h:x,s:U,l:W}}function f(a,c,l){var h,E,x;a=B(a,360),c=B(c,100),l=B(l,100);function U(ce,rt,ge){return ge<0&&(ge+=1),ge>1&&(ge-=1),ge<1/6?ce+(rt-ce)*6*ge:ge<1/2?rt:ge<2/3?ce+(rt-ce)*(2/3-ge)*6:ce}if(c===0)h=E=x=l;else{var W=l<.5?l*(1+c):l+c-l*c,Y=2*l-W;h=U(Y,W,a+1/3),E=U(Y,W,a),x=U(Y,W,a-1/3)}return{r:h*255,g:E*255,b:x*255}}function m(a,c,l){a=B(a,255),c=B(c,255),l=B(l,255);var h=Math.max(a,c,l),E=Math.min(a,c,l),x,U,W=h,Y=h-E;if(U=h===0?0:Y/h,h==E)x=0;else{switch(h){case a:x=(c-l)/Y+(c<l?6:0);break;case c:x=(l-a)/Y+2;break;case l:x=(a-c)/Y+4;break}x/=6}return{h:x,s:U,v:W}}function d(a,c,l){a=B(a,360)*6,c=B(c,100),l=B(l,100);var h=Math.floor(a),E=a-h,x=l*(1-c),U=l*(1-E*c),W=l*(1-(1-E)*c),Y=h%6,ce=[l,U,x,x,W,l][Y],rt=[W,l,l,U,x,x][Y],ge=[x,x,W,l,l,U][Y];return{r:ce*255,g:rt*255,b:ge*255}}function p(a,c,l,h){var E=[re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16))];return h&&E[0].charAt(0)==E[0].charAt(1)&&E[1].charAt(0)==E[1].charAt(1)&&E[2].charAt(0)==E[2].charAt(1)?E[0].charAt(0)+E[1].charAt(0)+E[2].charAt(0):E.join("")}function b(a,c,l,h,E){var x=[re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16)),re(on(h))];return E&&x[0].charAt(0)==x[0].charAt(1)&&x[1].charAt(0)==x[1].charAt(1)&&x[2].charAt(0)==x[2].charAt(1)&&x[3].charAt(0)==x[3].charAt(1)?x[0].charAt(0)+x[1].charAt(0)+x[2].charAt(0)+x[3].charAt(0):x.join("")}function S(a,c,l,h){var E=[re(on(h)),re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16))];return E.join("")}n.equals=function(a,c){return!a||!c?!1:n(a).toRgbString()==n(c).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function v(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.s-=c/100,l.s=O(l.s),n(l)}function w(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.s+=c/100,l.s=O(l.s),n(l)}function A(a){return n(a).desaturate(100)}function C(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.l+=c/100,l.l=O(l.l),n(l)}function I(a,c){c=c===0?0:c||10;var l=n(a).toRgb();return l.r=Math.max(0,Math.min(255,l.r-Math.round(255*-(c/100)))),l.g=Math.max(0,Math.min(255,l.g-Math.round(255*-(c/100)))),l.b=Math.max(0,Math.min(255,l.b-Math.round(255*-(c/100)))),n(l)}function R(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.l-=c/100,l.l=O(l.l),n(l)}function T(a,c){var l=n(a).toHsl(),h=(l.h+c)%360;return l.h=h<0?360+h:h,n(l)}function L(a){var c=n(a).toHsl();return c.h=(c.h+180)%360,n(c)}function P(a,c){if(isNaN(c)||c<=0)throw new Error("Argument to polyad must be a positive number");for(var l=n(a).toHsl(),h=[n(a)],E=360/c,x=1;x<c;x++)h.push(n({h:(l.h+x*E)%360,s:l.s,l:l.l}));return h}function X(a){var c=n(a).toHsl(),l=c.h;return[n(a),n({h:(l+72)%360,s:c.s,l:c.l}),n({h:(l+216)%360,s:c.s,l:c.l})]}function ee(a,c,l){c=c||6,l=l||30;var h=n(a).toHsl(),E=360/l,x=[n(a)];for(h.h=(h.h-(E*c>>1)+720)%360;--c;)h.h=(h.h+E)%360,x.push(n(h));return x}function z(a,c){c=c||6;for(var l=n(a).toHsv(),h=l.h,E=l.s,x=l.v,U=[],W=1/c;c--;)U.push(n({h,s:E,v:x})),x=(x+W)%1;return U}n.mix=function(a,c,l){l=l===0?0:l||50;var h=n(a).toRgb(),E=n(c).toRgb(),x=l/100,U={r:(E.r-h.r)*x+h.r,g:(E.g-h.g)*x+h.g,b:(E.b-h.b)*x+h.b,a:(E.a-h.a)*x+h.a};return n(U)},n.readability=function(a,c){var l=n(a),h=n(c);return(Math.max(l.getLuminance(),h.getLuminance())+.05)/(Math.min(l.getLuminance(),h.getLuminance())+.05)},n.isReadable=function(a,c,l){var h=n.readability(a,c),E,x;switch(x=!1,E=Js(l),E.level+E.size){case"AAsmall":case"AAAlarge":x=h>=4.5;break;case"AAlarge":x=h>=3;break;case"AAAsmall":x=h>=7;break}return x},n.mostReadable=function(a,c,l){var h=null,E=0,x,U,W,Y;l=l||{},U=l.includeFallbackColors,W=l.level,Y=l.size;for(var ce=0;ce<c.length;ce++)x=n.readability(a,c[ce]),x>E&&(E=x,h=n(c[ce]));return n.isReadable(a,h,{level:W,size:Y})||!U?h:(l.includeFallbackColors=!1,n.mostReadable(a,["#fff","#000"],l))};var H=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=n.hexNames=pe(H);function pe(a){var c={};for(var l in a)a.hasOwnProperty(l)&&(c[a[l]]=l);return c}function ve(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function B(a,c){ie(a)&&(a="100%");var l=se(a);return a=Math.min(c,Math.max(0,parseFloat(a))),l&&(a=parseInt(a*c,10)/100),Math.abs(a-c)<1e-6?1:a%c/parseFloat(c)}function O(a){return Math.min(1,Math.max(0,a))}function F(a){return parseInt(a,16)}function ie(a){return typeof a=="string"&&a.indexOf(".")!=-1&&parseFloat(a)===1}function se(a){return typeof a=="string"&&a.indexOf("%")!=-1}function re(a){return a.length==1?"0"+a:""+a}function tt(a){return a<=1&&(a=a*100+"%"),a}function on(a){return Math.round(parseFloat(a)*255).toString(16)}function sn(a){return F(a)/255}var he=(function(){var a="[-\\+]?\\d+%?",c="[-\\+]?\\d*\\.\\d+%?",l="(?:"+c+")|(?:"+a+")",h="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?",E="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?";return{CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+h),rgba:new RegExp("rgba"+E),hsl:new RegExp("hsl"+h),hsla:new RegExp("hsla"+E),hsv:new RegExp("hsv"+h),hsva:new RegExp("hsva"+E),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Te(a){return!!he.CSS_UNIT.exec(a)}function Qs(a){a=a.replace(t,"").replace(r,"").toLowerCase();var c=!1;if(H[a])a=H[a],c=!0;else if(a=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var l;return(l=he.rgb.exec(a))?{r:l[1],g:l[2],b:l[3]}:(l=he.rgba.exec(a))?{r:l[1],g:l[2],b:l[3],a:l[4]}:(l=he.hsl.exec(a))?{h:l[1],s:l[2],l:l[3]}:(l=he.hsla.exec(a))?{h:l[1],s:l[2],l:l[3],a:l[4]}:(l=he.hsv.exec(a))?{h:l[1],s:l[2],v:l[3]}:(l=he.hsva.exec(a))?{h:l[1],s:l[2],v:l[3],a:l[4]}:(l=he.hex8.exec(a))?{r:F(l[1]),g:F(l[2]),b:F(l[3]),a:sn(l[4]),format:c?"name":"hex8"}:(l=he.hex6.exec(a))?{r:F(l[1]),g:F(l[2]),b:F(l[3]),format:c?"name":"hex"}:(l=he.hex4.exec(a))?{r:F(l[1]+""+l[1]),g:F(l[2]+""+l[2]),b:F(l[3]+""+l[3]),a:sn(l[4]+""+l[4]),format:c?"name":"hex8"}:(l=he.hex3.exec(a))?{r:F(l[1]+""+l[1]),g:F(l[2]+""+l[2]),b:F(l[3]+""+l[3]),format:c?"name":"hex"}:!1}function Js(a){var c,l;return a=a||{level:"AA",size:"small"},c=(a.level||"AA").toUpperCase(),l=(a.size||"small").toLowerCase(),c!=="AA"&&c!=="AAA"&&(c="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:c,size:l}}return n}))});var Ps=k((Fg,Is)=>{u();var pt=Ls(),_s={r:256,g:256,b:256,a:1},Bs={h:360,s:1,v:1,a:1};function Jr(e,t,r){let n={};for(let o in e)e.hasOwnProperty(o)&&(n[o]=r===0?0:(t[o]-e[o])/r);return n}function en(e,t,r,n){let o={};for(let i in t)t.hasOwnProperty(i)&&(o[i]=e[i]*r+t[i],o[i]=o[i]<0?o[i]+n[i]:n[i]!==1?o[i]%n[i]:o[i]);return o}function Zr(e,t,r){let n=e.color.toRgb(),o=t.color.toRgb(),i=Jr(n,o,r),s=[e.color];for(let f=1;f<r;f++){let m=en(i,n,f,_s);s.push(pt(m))}return s}function Ds(e,t,r,n){let o=e.color.toHsv(),i=t.color.toHsv();if(o.s===0||i.s===0)return Zr(e,t,r);let s;if(typeof n=="boolean")s=n;else{let p=o.h<i.h&&i.h-o.h<180||o.h>i.h&&o.h-i.h>180;s=n==="long"&&p||n==="short"&&!p}let f=Jr(o,i,r),m=[e.color],d;o.h<=i.h&&!s||o.h>=i.h&&s?d=i.h-o.h:s?d=360-i.h+o.h:d=360-o.h+i.h,f.h=Math.pow(-1,s?1:0)*Math.abs(d)/r;for(let p=1;p<r;p++){let b=en(f,o,p,Bs);m.push(pt(b))}return m}function ks(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let i=1;i<r;i++){let s=(t-1)*(e[i].pos-e[i-1].pos);n.push(Math.max(1,Math.round(s)))}let o=1;for(let i=r-1;i--;)o+=n[i];for(;o!==t;)if(o<t){let i=Math.min.apply(null,n);n[n.indexOf(i)]++,o++}else{let i=Math.max.apply(null,n);n[n.indexOf(i)]--,o--}return n}function Ms(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let o,i;for(let m=0,d=e.length;m<d-1;m++)if(t>=e[m].pos&&t<e[m+1].pos){o=e[m],i=e[m+1];break}o||(o=i=e[e.length-1]);let s=Jr(o.color[r](),i.color[r](),(i.pos-o.pos)*100),f=en(s,o.color[r](),(t-o.pos)*100,n);return pt(f)}var Qr=class e{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,o=-1,i=!1;this.stops=t.map((s,f)=>{let m=s.pos!==void 0;if(r^m)throw new Error("Cannot mix positionned and not posionned color stops");if(m){let d=s.color!==void 0;if(!d&&(i||f===0||f===n-1))throw new Error("Cannot define two consecutive position-only stops");if(i=!d,s={color:d?pt(s.color):null,colorLess:!d,pos:s.pos},s.pos<0||s.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(s.pos<o)throw new Error("Color stops positions are not ordered");o=s.pos}else s={color:pt(s.color!==void 0?s.color:s),pos:f/(n-1)};return s}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new e(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new e(t.concat(r.reverse()))}rgb(t){let r=ks(this.stops,t),n=[];this.stops.forEach((o,i)=>{o.colorLess&&(o.color=Zr(this.stops[i-1],this.stops[i+1],2)[1])});for(let o=0,i=this.stops.length;o<i-1;o++){let s=Zr(this.stops[o],this.stops[o+1],r[o]);n.splice(n.length,0,...s)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=ks(this.stops,t),o=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Ds(this.stops[s-1],this.stops[s+1],2,r)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let f=Ds(this.stops[i],this.stops[i+1],n[i],r);o.splice(o.length,0,...f)}return o.push(this.stops[this.stops.length-1].color),o}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(o){n+=", "+(o.colorLess?"":o.color.toRgbString()+" ")+o.pos*100+"%"}),n+=")",n}rgbAt(t){return Ms(this.stops,t,"toRgb",_s)}hsvAt(t){return Ms(this.stops,t,"toHsv",Bs)}};Is.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new Qr(e)}});var Ns=k(($g,tr)=>{"use strict";u();var Fs=Rs(),ku=Ps(),Os=/\s/g;function tn(...e){let t=ku.apply(this,e),r=(n,o)=>Mu(n?n.toString():"",t,o);return r.multiline=(n,o)=>_u(n?n.toString():"",t,o),r}var Us=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function Mu(e,t,r){let n=$s(r),o=Math.max(e.replace(Os,"").length,t.stops.length),i=Us(t,n,o),s="";for(let f of e)s+=f.match(Os)?f:Fs.hex(i.shift().toHex())(f);return s}function _u(e,t,r){let n=$s(r),o=e.split(`
|
|
14
|
-
`),i=Math.max.apply(null,o.map(m=>m.length).concat([t.stops.length])),s=Us(t,n,i),f=[];for(let m of o){let d=s.slice(0),p="";for(let b of m)p+=Fs.hex(d.shift().toHex())(b);f.push(p)}return f.join(`
|
|
15
|
-
`)}function $s(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var ht={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};tr.exports=tn;for(let e in ht)tr.exports[e]=t=>new tn(ht[e].colors)(t,ht[e].options),tr.exports[e].multiline=t=>new tn(ht[e].colors).multiline(t,ht[e].options)});u();u();u();u();var Ho=D(mo(),1);import{Buffer as Il}from"node:buffer";import Pl from"node:path";import Dr from"node:child_process";import Lt from"node:process";u();function br(e){let t=typeof e=="string"?`
|
|
16
|
-
`:10,r=typeof e=="string"?"\r":13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}u();var Tt=new WeakMap,po=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(Tt.set(i,++n),n===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return r};return bn(i,e),Tt.set(i,n),i};po.callCount=e=>{if(!Tt.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Tt.get(e)};var ho=po;u();import ol from"node:process";u();import{constants as Qa}from"node:os";u();var go=()=>{let e=xo-bo+1;return Array.from({length:e},Ka)},Ka=(e,t)=>({name:`SIGRT${t+1}`,number:bo+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),bo=34,xo=64;u();import{constants as Ya}from"node:os";u();var yo=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var xr=()=>{let e=go();return[...yo,...e].map(Za)},Za=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{let{signals:{[e]:s}}=Ya,f=s!==void 0;return{name:e,number:f?s:t,description:r,supported:f,action:n,forced:o,standard:i}};var Ja=()=>{let e=xr();return Object.fromEntries(e.map(el))},el=({name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s}],wo=Ja(),tl=()=>{let e=xr(),t=65,r=Array.from({length:t},(n,o)=>rl(o,e));return Object.assign({},...r)},rl=(e,t)=>{let r=nl(e,t);if(r===void 0)return{};let{name:n,description:o,supported:i,action:s,forced:f,standard:m}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:s,forced:f,standard:m}}},nl=(e,t)=>{let r=t.find(({name:n})=>Qa.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},Bf=tl();var il=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${o})`:i!==void 0?`failed with exit code ${i}`:"failed",ot=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:i,command:s,escapedCommand:f,timedOut:m,isCanceled:d,killed:p,parsed:{options:{timeout:b,cwd:S=ol.cwd()}}})=>{i=i===null?void 0:i,o=o===null?void 0:o;let v=o===void 0?void 0:wo[o].description,w=n&&n.code,C=`Command ${il({timedOut:m,timeout:b,errorCode:w,signal:o,signalDescription:v,exitCode:i,isCanceled:d})}: ${s}`,I=Object.prototype.toString.call(n)==="[object Error]",R=I?`${C}
|
|
17
|
-
${n.message}`:C,T=[R,t,e].filter(Boolean).join(`
|
|
18
|
-
`);return I?(n.originalMessage=n.message,n.message=T):n=new Error(T),n.shortMessage=R,n.command=s,n.escapedCommand=f,n.exitCode=i,n.signal=o,n.signalDescription=v,n.stdout=e,n.stderr=t,n.cwd=S,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!m,n.isCanceled=d,n.killed=p&&!m,n};u();var Ct=["stdin","stdout","stderr"],sl=e=>Ct.some(t=>e[t]!==void 0),Eo=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Ct.map(n=>e[n]);if(sl(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ct.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Ct.length);return Array.from({length:r},(n,o)=>t[o])};u();var So=D(pa(),1);import al from"node:os";var ll=1e3*5,vo=(e,t="SIGTERM",r={})=>{let n=e(t);return cl(e,t,r,n),n},cl=(e,t,r,n)=>{if(!ul(t,r,n))return;let o=ml(r),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},ul=(e,{forceKillAfterTimeout:t},r)=>fl(e)&&t!==!1&&r,fl=e=>e===al.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",ml=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return ll;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},To=(e,t)=>{e.kill()&&(t.isCanceled=!0)},dl=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},Co=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let o,i=new Promise((f,m)=>{o=setTimeout(()=>{dl(e,r,m)},t)}),s=n.finally(()=>{clearTimeout(o)});return Promise.race([i,s])},Ao=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Ro=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let o=(0,So.default)(()=>{e.kill()});return n.finally(()=>{o()})};u();import{createWriteStream as pl}from"node:fs";import{ChildProcess as hl}from"node:child_process";u();function At(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function yr(e){return At(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var gl=e=>e instanceof hl&&typeof e.then=="function",wr=(e,t,r)=>{if(typeof r=="string")return e[t].pipe(pl(r)),e;if(yr(r))return e[t].pipe(r),e;if(!gl(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!yr(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},Lo=e=>{e.stdout!==null&&(e.pipeStdout=wr.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=wr.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=wr.bind(void 0,e,"all"))};u();import{createReadStream as xl,readFileSync as yl}from"node:fs";var vr=D(wa(),1),Mo=D(ko(),1),_o=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},wl=({input:e,inputFile:t})=>typeof t!="string"?e:(_o(e),yl(t)),Bo=e=>{let t=wl(e);if(At(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},El=({input:e,inputFile:t})=>typeof t!="string"?e:(_o(e),xl(t)),Io=(e,t)=>{let r=El(t);r!==void 0&&(At(r)?r.pipe(e.stdin):e.stdin.end(r))},Po=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=(0,Mo.default)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},Er=async(e,t)=>{if(!(!e||t===void 0)){e.destroy();try{return await t}catch(r){return r.bufferedData}}},Sr=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?(0,vr.default)(e,{encoding:t,maxBuffer:n}):vr.default.buffer(e,{maxBuffer:n})},Oo=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:i},s)=>{let f=Sr(e,{encoding:n,buffer:o,maxBuffer:i}),m=Sr(t,{encoding:n,buffer:o,maxBuffer:i}),d=Sr(r,{encoding:n,buffer:o,maxBuffer:i*2});try{return await Promise.all([s,f,m,d])}catch(p){return Promise.all([{error:p,signal:p.signal,timedOut:p.timedOut},Er(e,f),Er(t,m),Er(r,d)])}};u();var Sl=(async()=>{})().constructor.prototype,vl=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Sl,e)]),Tr=(e,t)=>{for(let[r,n]of vl){let o=typeof t=="function"?(...i)=>Reflect.apply(n.value,t(),i):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}},Fo=e=>new Promise((t,r)=>{e.on("exit",(n,o)=>{t({exitCode:n,signal:o})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});u();import{Buffer as Tl}from"node:buffer";import{ChildProcess as Cl}from"node:child_process";var No=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Al=/^[\w.-]+$/,Rl=/"/g,Ll=e=>typeof e!="string"||Al.test(e)?e:`"${e.replace(Rl,'\\"')}"`,Cr=(e,t)=>No(e,t).join(" "),Ar=(e,t)=>No(e,t).map(r=>Ll(r)).join(" "),Dl=/ +/g;var Uo=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof Cl)&&"stdout"in e){let r=typeof e.stdout;if(r==="string")return e.stdout;if(Tl.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},$o=(e,t,r)=>r||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],kl=({templates:e,expressions:t,tokens:r,index:n,template:o})=>{let i=o??e.raw[n],s=i.split(Dl).filter(Boolean),f=$o(r,s,i.startsWith(" "));if(n===t.length)return f;let m=t[n],d=Array.isArray(m)?m.map(p=>Uo(p)):[Uo(m)];return $o(f,d,i.endsWith(" "))},Rr=(e,t)=>{let r=[];for(let[n,o]of e.entries())r=kl({templates:e,expressions:t,tokens:r,index:n,template:o});return r};u();import{debuglog as Ml}from"node:util";import _l from"node:process";var qo=Ml("execa").enabled,Rt=(e,t)=>String(e).padStart(t,"0"),Bl=()=>{let e=new Date;return`${Rt(e.getHours(),2)}:${Rt(e.getMinutes(),2)}:${Rt(e.getSeconds(),2)}.${Rt(e.getMilliseconds(),3)}`},Lr=(e,{verbose:t})=>{t&&_l.stderr.write(`[${Bl()}] ${e}
|
|
19
|
-
`)};var Ol=1e3*1e3*100,Fl=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{let i=t?{...Lt.env,...e}:e;return r?xn({env:i,cwd:n,execPath:o}):i},jo=(e,t,r={})=>{let n=Ho.default._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:Ol,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||Lt.cwd(),execPath:Lt.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:qo,...r},r.env=Fl(r),r.stdio=Eo(r),Lt.platform==="win32"&&Pl.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},it=(e,t,r)=>typeof t!="string"&&!Il.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?br(t):t;function Pe(e,t,r){let n=jo(e,t,r),o=Cr(e,t),i=Ar(e,t);Lr(i,n.options),Ao(n.options);let s;try{s=Dr.spawn(n.file,n.args,n.options)}catch(v){let w=new Dr.ChildProcess,A=Promise.reject(ot({error:v,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Tr(w,A),w}let f=Fo(s),m=Co(s,n.options,f),d=Ro(s,n.options,m),p={isCanceled:!1};s.kill=vo.bind(null,s.kill.bind(s)),s.cancel=To.bind(null,s,p);let S=ho(async()=>{let[{error:v,exitCode:w,signal:A,timedOut:C},I,R,T]=await Oo(s,n.options,d),L=it(n.options,I),P=it(n.options,R),X=it(n.options,T);if(v||w!==0||A!==null){let ee=ot({error:v,exitCode:w,signal:A,stdout:L,stderr:P,all:X,command:o,escapedCommand:i,parsed:n,timedOut:C,isCanceled:p.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:s.killed});if(!n.options.reject)return ee;throw ee}return{command:o,escapedCommand:i,exitCode:0,stdout:L,stderr:P,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Io(s,n.options),s.all=Po(s,n.options),Lo(s),Tr(s,S),s}function Ul(e,t,r){let n=jo(e,t,r),o=Cr(e,t),i=Ar(e,t);Lr(i,n.options);let s=Bo(n.options),f;try{f=Dr.spawnSync(n.file,n.args,{...n.options,input:s})}catch(p){throw ot({error:p,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let m=it(n.options,f.stdout,f.error),d=it(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let p=ot({stdout:m,stderr:d,error:f.error,signal:f.signal,exitCode:f.status,command:o,escapedCommand:i,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return p;throw p}return{command:o,escapedCommand:i,exitCode:0,stdout:m,stderr:d,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var $l=({input:e,inputFile:t,stdio:r})=>e===void 0&&t===void 0&&r===void 0?{stdin:"inherit"}:{},Go=(e={})=>({preferLocal:!0,...$l(e),...e});function Wo(e){function t(r,...n){if(!Array.isArray(r))return Wo({...e,...r});let[o,...i]=Rr(r,n);return Pe(o,i,Go(e))}return t.sync=(r,...n)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[o,...i]=Rr(r,n);return Ul(o,i,Go(e))},t}var Mm=Wo();import{userInfo as Nl}from"os";async function Fm(e=process.platform){Ie(St`Obtaining user name...`);let t=ql();if(t)return t;let r=Gl();if(r)return r;try{if(e==="win32"){let{stdout:o}=await Pe("whoami");return Hl(o)}let{stdout:n}=await Pe("id",["-u"]);try{let{stdout:o}=await Pe("id",["-un",n]);return o}catch{}return jl(n)}catch{return null}}function zo(e=process.platform,t=process.arch){let r;return t==="x64"?r="amd64":t==="ia32"?r="386":r=t,{platform:e.match(/^win.+/)?"windows":e,arch:r}}function ql(){let{env:e}=process;return e.SUDO_USER||e.C9_USER||e.LOGNAME||e.USER||e.LNAME||e.USERNAME}function Gl(){try{return Nl().username}catch{return null}}function Hl(e){return e.replace(/^.*\\/,"")}function jl(e){return`no-username-${e}`}var Xo=D(ga(),1),Ko=D(ya(),1);import{fstatSync as Wl}from"fs";import{setTimeout as zl}from"timers/promises";var Vl=10*1024*1024;async function Qm(e){if(vn())return!1;let t=await import("./open-KLSGXBIW.js");try{return await t.default(e),!0}catch{return!1}}async function Jm(e,t,r){return(await kr(e,t,r)).stdout}async function Xl(e,t,r){let n=await kr(e,t,r,{reject:!1});return{stdout:n.stdout,stderr:n.stderr,exitCode:n.exitCode??0}}function Yo(e){let t=[],r="",n=null;for(let o of e)n?o===n?n=null:r+=o:o==='"'||o==="'"?n=o:o===" "||o===" "?r&&(t.push(r),r=""):r+=o;return r&&t.push(r),t}async function ed(e,t){let[r,...n]=Yo(e);return r?Xl(r,n,t):{stdout:"",stderr:"Empty command",exitCode:1}}async function td(e,t){let[r,...n]=Yo(e);if(!r)throw new qe("Empty command");await Kl(r,n,t)}async function Kl(e,t,r){if(r){let i=zo().platform==="windows";r.background=i?!1:r.background}let n=kr(e,t,r);r?.background&&n.unref(),r?.stderr&&r.stderr!=="inherit"&&n.stderr?.pipe(r.stderr,{end:!1}),r?.stdout&&r.stdout!=="inherit"&&n.stdout?.pipe(r.stdout,{end:!1});let o=!1;r?.signal?.addEventListener("abort",()=>{let i=n.pid;i&&(Ie(`Killing process ${i}: ${e} ${t.join(" ")}`),o=!0,wt(i,"SIGTERM"))});try{await n}catch(i){if(o)return;if(r?.externalErrorHandler)await r.externalErrorHandler(i);else{let s=new Et(i.message,e,t);throw s.stack=i.stack,s}}}function kr(e,t,r,n){let o=r?.env??process.env;ke()&&(o.FORCE_COLOR="1");let i=r?.cwd??cn();Yl(e,{cwd:i});let s=Pe(e,t,{env:o,cwd:i,input:r?.input,stdio:r?.background?"ignore":r?.stdio,stdin:r?.stdin,stdout:r?.stdout==="inherit"?"inherit":void 0,stderr:r?.stderr==="inherit"?"inherit":void 0,windowsHide:!1,detached:r?.background,cleanup:!r?.background,...n});return Ie(`Running system process${r?.background?" in background":""}:
|
|
20
|
-
\xB7 Command: ${e} ${t.join(" ")}
|
|
21
|
-
\xB7 Working directory: ${i}
|
|
22
|
-
`),s}function Yl(e,t){let r=`${t.cwd}${an}${process.env.PATH}`,n=Ko.default.sync(e,{nothrow:!0,path:r});if(n&&ln(n)===t.cwd){let o=["Skipped run of unsecure binary",{command:e},"found in the current directory."],i="Please remove that file or review your current PATH.";throw Vo({headline:o,body:i}),new qe(o,i)}}async function rd(e){await zl(1e3*e)}function nd(){return Xo.default.stdout}function Zo(){return or(process.env.CI)?!1:!!(process.stdin.isTTY&&process.stdout.isTTY)}function od(){return or(process.env.CI)}async function id(){return(await import("./is-wsl-UEMXYJPN.js")).default}function Zl(){try{let e=Wl(0);return e.isFIFO()||e.isFile()}catch{return!1}}async function sd(){if(!Zl())return;let e="",t=0;process.stdin.setEncoding("utf8");for await(let r of process.stdin){let n=String(r);if(t+=Buffer.byteLength(n,"utf8"),t>Vl)throw new qe("Stdin input exceeded the maximum allowed size.");e+=n}return e.trim()}u();var Mt=D(Jo()),kt=class extends Mt.AbortController{},ei=class extends Mt.AbortSignal{};u();u();var ae=D(N(),1);import{EventEmitter as Jl}from"events";var ti=(0,ae.createContext)(null);function te(){let e=(0,ae.useContext)(ti);if(!e)throw new Error("useComplete() called outside InkLifecycleRoot");return e}function ec({children:e}){let{exit:t}=dn(),[r,n]=(0,ae.useState)(null),o=(0,ae.useCallback)(i=>{n({error:i})},[]);return(0,ae.useEffect)(()=>{r!==null&&t(r.error)},[r,t]),ae.default.createElement(ti.Provider,{value:o},e)}function at(e,{logLevel:t="info",renderOptions:r}){let{output:n,unmount:o}=tc(e,r);return n&&yn(n,t),o(),n}async function Me(e,t){let{waitUntilExit:r}=sr(ae.default.createElement(ec,null,e),{patchConsole:!nt(),...t});await r()}var Mr=class extends Jl{constructor(t){super(),this.frames=[],this.write=r=>{this.frames.push(r),r!==`
|
|
23
|
-
`&&(this._lastFrame=r)},this.lastFrame=()=>this._lastFrame,this.columns=t.columns??80,this.rows=t.rows??80}},tc=(e,t)=>{let r=nt()?80:process.stdout.columns,n=t?.stdout??new Mr({columns:r}),o=sr(e,{stdout:n,debug:!0,exitOnCtrlC:!1,patchConsole:!1});return{output:n.lastFrame(),unmount:o.unmount}};function me(e,t,r=()=>{wt(process.pid,"SIGINT")}){e==="c"&&t.ctrl&&r()}var Z=D(N(),1);u();import rc from"node:process";u();u();import be from"node:process";function _r(){return be.platform!=="win32"?be.env.TERM!=="linux":!!be.env.CI||!!be.env.WT_SESSION||!!be.env.TERMINUS_SUBLIME||be.env.ConEmuTask==="{cmd::Cmder}"||be.env.TERM_PROGRAM==="Terminus-Sublime"||be.env.TERM_PROGRAM==="vscode"||be.env.TERM==="xterm-256color"||be.env.TERM==="alacritty"||be.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var{platform:nc}=rc,ri={square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},oc={...ri,...nc==="linux"?{circleQuestionMark:"?\u20DD",questionMarkPrefix:"?\u20DD"}:{circleQuestionMark:"?",questionMarkPrefix:"?"},tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},ic={...ri,tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},sc=_r(),ac=sc?oc:ic,ne=ac;import{Writable as lc}from"stream";import{AsyncLocalStorage as cc}from"node:async_hooks";function Br(e){return e<10?`0${e}`:e.toString()}function uc(){let e=new Date,t=Br(e.getHours()),r=Br(e.getMinutes()),n=Br(e.getSeconds());return`${t}:${r}:${n}`}var ni=new cc;function Fd(e,t){return ni.run(e,t)}var oi=({processes:e,prefixColumnSize:t,abortSignal:r,showTimestamps:n=!0,keepRunningAfterProcessesResolve:o=!1,useAlternativeColorPalette:i=!1})=>{let[s,f]=(0,Z.useState)([]),[m,d]=(0,Z.useState)(null),p=te(),b=(0,Z.useMemo)(()=>i?["#b994c3","#e69e19","#d17a73","cyan","magenta","blue"]:["yellow","cyan","magenta","green","blue"],[i]),S=(0,Z.useMemo)(()=>{let T=t??e.reduce((L,P)=>Math.max(L,P.prefix.length),0);return Math.min(T,25)},[e,t]),v=(R,T)=>{let L=T.indexOf(R);return L!==-1?L:(T.push(R),T.length-1)},w=(0,Z.useCallback)(R=>{let T=R%b.length;return b[T]},[b]),A=(0,Z.useCallback)((R,T)=>new lc({write(L,P,X){let ee=ni.getStore(),z=ee?.outputPrefix??R.prefix,H=ee?.stripAnsi??!0,$=L.toString("utf8").replace(/(\n)$/,""),pe=v(z,T),ve=H?fn($).split(/\n/):$.split(/\n/);f(B=>[...B,{color:w(pe),prefix:z,lines:ve}]),X()}}),[w]),C=R=>R.length>S?R.substring(0,S):`${" ".repeat(S-R.length)}${R}`;(0,Z.useEffect)(()=>{(async()=>{let T=[];try{await Promise.all(e.map(async L=>{let P=A(L,T),X=A(L,T);await L.action(P,X,r)})),o||d({})}catch(L){o||d({error:L})}})()},[r,e,A,o]),(0,Z.useEffect)(()=>{m!==null&&p(m.error)},[m,p]);let{lineVertical:I}=ne;return Z.default.createElement(mn,{items:s},(R,T)=>Z.default.createElement(g,{flexDirection:"column",key:T},R.lines.map((L,P)=>Z.default.createElement(g,{key:P,flexDirection:"row"},Z.default.createElement(y,null,n?Z.default.createElement(y,null,uc()," ",I," "):null,Z.default.createElement(y,{color:R.color},C(R.prefix)),Z.default.createElement(y,null," ",I," ",L))))))};u();u();u();u();var It=D(N(),1),_t=20,Bt=80;function de(){let{stdout:e}=De(),[t,r]=(0,It.useState)(ii(e));return(0,It.useLayoutEffect)(()=>{if(!e)return;function n(){r(ii(e))}return e.on("resize",n),()=>{e.off("resize",n)}},[]),t}function ii(e){let t=e?.columns??Bt,r=t,n=t;return t<=_t?(t=_t,r=_t,n=_t):t>Bt&&(r=si({fullWidth:t,fraction:[1,3],minWidth:Bt}),n=si({fullWidth:t,fraction:[2,3],minWidth:Bt})),{fullWidth:t,oneThird:r,twoThirds:n}}function si({fullWidth:e,fraction:t,minWidth:r}){let n=Math.floor(e/t[1]*t[0]);return n<r?r:n}var K=D(N(),1);function Pt(e){return{success:"green",error:"red",warning:"yellow",info:"dim",external_error:"red"}[e]}var fc=()=>{let e=(0,K.useContext)(ar);if(e===null||e.links.current===null)return null;let t=e.links.current,r=Object.keys(t);return r.length>0?K.default.createElement(g,{marginBottom:1,marginTop:-1,flexDirection:"column"},r.map(n=>{let o=`[${n}] ${t[n]?.url}`;return K.default.createElement(g,{key:n,width:o.length},K.default.createElement(y,null,o))})):null},mc=({type:e,children:t})=>{let{twoThirds:r}=de(),n=(0,K.useRef)({});return K.default.createElement(ar.Provider,{value:{links:n,addLink:(o,i)=>{let s=Object.keys(n.current).find(m=>n.current[m].url===i);if(s)return s;let f=(Object.keys(n.current).length+1).toString();return n.current={...n.current,[f]:{label:o,url:i}},f}}},K.default.createElement(g,{width:r,marginBottom:1,borderStyle:"round",flexDirection:"column",borderColor:Pt(e)},K.default.createElement(g,{marginTop:-1,marginLeft:1},K.default.createElement(y,null,` ${e.replace(/_/g," ")} `)),K.default.createElement(g,{flexDirection:"column",paddingY:1,paddingX:2,gap:1},t)),K.default.createElement(fc,null))},dc=({type:e,children:t})=>{let{twoThirds:r}=de(),n=r-2-e.length-2;return n<0&&(n=0),K.default.createElement(g,{flexDirection:"column",marginBottom:1,gap:1},K.default.createElement(y,null,K.default.createElement(y,{color:Pt(e)},"\u2500".repeat(2)),K.default.createElement(y,null,` ${e.replace(/_/g," ")} `),K.default.createElement(y,{color:Pt(e)},"\u2500".repeat(n))),t,K.default.createElement(y,{color:Pt(e)},"\u2500".repeat(r)))},Ot=({children:e,...t})=>t.type==="external_error"?K.default.createElement(dc,t,e):K.default.createElement(mc,t,e);u();var lt=D(N(),1),Ft=({tabularData:e,firstColumnSubdued:t})=>{let r=e.reduce((n,o)=>(o.forEach((i,s)=>{n[s]=Math.max(n[s]??0,Ge($e(i)).length)}),n),[]);return lt.default.createElement(g,{flexDirection:"column"},e.map((n,o)=>lt.default.createElement(g,{key:o,flexDirection:"row",gap:2},n.map((i,s)=>lt.default.createElement(g,{key:s,width:r[s]??0,flexShrink:s===0?0:1},lt.default.createElement(V,{item:s===0&&t&&typeof i=="string"?{subdued:i}:i}))))))};var le=D(N(),1),ai=({type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,customSections:s,orderedNextSteps:f=!1})=>le.default.createElement(Ot,{type:e},t?le.default.createElement(y,{bold:!0},le.default.createElement(V,{item:t})):null,r?le.default.createElement(V,{item:r}):null,n&&n.length>0?le.default.createElement(Be,{title:"Next steps",items:n,ordered:f}):null,o&&o.length>0?le.default.createElement(Be,{title:"Reference",items:o}):null,i?le.default.createElement(hn,{url:i.url,label:i.label}):null,s&&s.length>0?le.default.createElement(g,{flexDirection:"column",gap:1},s.map((m,d)=>le.default.createElement(g,{key:d,flexDirection:"column"},m.title?le.default.createElement(y,{bold:!0},m.title):null,typeof m.body=="object"&&"tabularData"in m.body?le.default.createElement(Ft,{...m.body}):le.default.createElement(V,{item:m.body})))):null);var li=D(N(),1),pc={info:"info",warning:"warn",success:"info",error:"error"};function ct({type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,customSections:s,orderedNextSteps:f=!1,renderOptions:m}){let{type:d,...p}=arguments[0];return at(li.default.createElement(ai,{type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,orderedNextSteps:f,customSections:s}),{logLevel:pc[e],renderOptions:m})}u();var Q=D(N(),1),_i=D(Mi(),1),Bi=({error:e})=>{let t,r;return e instanceof En&&(t=new _i.default(e),t.items.forEach(n=>{n.file=Sn(n.file)}),t=t.withSources(),t=t.filter(n=>!n.file.includes("@oclif/core")).map(n=>{let o=n.fileShort.split("packages/");return n.fileShort=o.length===2?o[1]:o[0],n})),e instanceof Et&&(r=`${e.command} ${e.args.join(" ")}`),Q.default.createElement(Ot,{type:r?"external_error":"error"},r?Q.default.createElement(y,null,"Error coming from ",Q.default.createElement(pn,{command:r})):null,e.formattedMessage?Q.default.createElement(V,{item:e.formattedMessage}):Q.default.createElement(V,{item:e.message}),e.tryMessage?Q.default.createElement(V,{item:e.tryMessage}):null,e.nextSteps&&e.nextSteps.length>0?Q.default.createElement(Be,{title:"Next steps",items:e.nextSteps}):null,e.customSections&&e.customSections.length>0?Q.default.createElement(g,{flexDirection:"column",gap:1},e.customSections.map((n,o)=>Q.default.createElement(g,{key:o,flexDirection:"column"},n.title?Q.default.createElement(y,{bold:!0},n.title):null,typeof n.body=="object"&&"tabularData"in n.body?Q.default.createElement(Ft,{...n.body}):Q.default.createElement(V,{item:n.body})))):null,t&&t.items.length!==0?Q.default.createElement(g,{flexDirection:"column"},Q.default.createElement(y,null,"To investigate the issue, examine this stack trace:"),t.items.map((n,o)=>Q.default.createElement(g,{flexDirection:"column",key:o,paddingLeft:2},Q.default.createElement(y,null,"at",n.calleeShort?Q.default.createElement(y,{color:"yellow"},` ${n.calleeShort}`):null,n.fileShort?` (${n.fileShort}:${n.line})`:null),Q.default.createElement(g,{paddingLeft:2},Q.default.createElement(y,{dimColor:!0},n.sourceLine?.trim()))))):null)};u();u();var Wt=D(N(),1);function Ac(e,t){return e.reduce((r,n,o)=>r.length===0?[n]:[...r,t(o),n],[])}var zt=({rowKey:e,columns:t,data:r,fillerChar:n,ignoreColumnColor:o})=>Wt.default.createElement(g,{flexDirection:"row"},...Ac(t.map(i=>{let s=r[i.name],f=`${e}-cell-${i.name.toString()}`,m=i.width-Ge(String(s??"")).length;return Wt.default.createElement(y,{key:f,color:o?void 0:i.color},s,n.repeat(m))}),i=>{let s=`${e}-horizontal-separator-${i}`;return Wt.default.createElement(y,{key:s}," ")}));var Xe=D(N(),1);function Ii({rows:e,columns:t}){let r=Object.entries(t).map(([o,{header:i,color:s}])=>{let f=String(i??o).length,m=e.map(d=>{let p=d[o];return p==null?0:Ge(String(p)).length});return{name:o,width:Math.max(...m,f),color:s}}),n=Object.entries(t).reduce((o,[i,{header:s}])=>({...o,[i]:s??i}),{});return Xe.default.createElement(g,{flexDirection:"column"},Xe.default.createElement(zt,{rowKey:"heading",fillerChar:" ",columns:r,data:n,ignoreColumnColor:!0}),Xe.default.createElement(zt,{rowKey:"separator",fillerChar:"\u2500",columns:r,data:{},ignoreColumnColor:!0}),e.map((o,i)=>{let s=`row-${i}`;return Xe.default.createElement(g,{flexDirection:"column",key:s},Xe.default.createElement(zt,{rowKey:`data-${s}`,fillerChar:" ",columns:r,data:o}))}))}u();u();var _e=D(N(),1);var Ke=({value:e,defaultValue:t="",onChange:r,placeholder:n="",noColor:o=!ke(),color:i=o?void 0:"cyan",password:s=!1,focus:f=!0})=>{let[m,d]=(0,_e.useState)((e||"").length),p=Math.min(m,(e||"").length);(0,_e.useLayoutEffect)(()=>{p!==m&&d(p)},[p,m]);let b=s?"*".repeat(e.length):e,S,v=R=>Ue.inverse(R[0])+Ue.dim(R.slice(1)),w=ne.square,A=_e.default.createElement(y,{backgroundColor:i},w),C=t.length>0?t:n.length>0?n:"",I=C.length>0?v(C):A;return S=b.split("").map((R,T)=>T===p?o?w:Ue.inverse(R):R).join(""),p===b.length&&(S=_e.default.createElement(y,null,S,A)),fe((R,T)=>{if(T.upArrow||T.downArrow||T.ctrl&&R==="c"||T.shift&&T.tab||T.return)return;if(T.tab&&e.length===0&&C){r(C),d(C.length);return}let L=p,P=e;T.leftArrow?p>0&&L--:T.rightArrow?p<e.length&&L++:T.backspace||T.delete?p>0&&(P=e.slice(0,p-1)+e.slice(p,e.length),L--):(P=e.slice(0,p)+R+e.slice(p,e.length),L+=R.length),d(L),P!==e&&r(P)},{isActive:f}),_e.default.createElement(y,{color:i},b.length>0?S:I)};u();var we=D(N(),1),Vt=({table:e})=>{let t=Array.isArray(e)?e:Object.keys(e).map(n=>({header:n,items:e[n],color:void 0,helperText:void 0,bullet:void 0,emptyItemsText:void 0})),r=Math.max(...t.map(n=>Math.max(...n.header.split(`
|
|
24
|
-
`).map(o=>o.length))));return we.default.createElement(g,{flexDirection:"column"},t.map((n,o)=>we.default.createElement(g,{key:o,marginBottom:o===t.length-1?0:1,flexDirection:"column"},n.header.length>0&&we.default.createElement(g,{width:r+1},we.default.createElement(y,{color:n.color,bold:!0},un(n.header))),we.default.createElement(g,{flexGrow:1,flexDirection:"column",gap:1},n.emptyItemsText&&n.items.length===0?we.default.createElement(y,{color:n.color},we.default.createElement(V,{item:{subdued:n.emptyItemsText}})):we.default.createElement(Be,{margin:!1,items:n.items,color:n.color,bullet:n.bullet}),n.helperText?we.default.createElement(y,{color:n.color},n.helperText):null))))};u();function Ye(e){let t=$e(e);return t.endsWith("?")||t.endsWith(":")||t.endsWith(".")?e:gn(e,":")}u();var Ze=D(N(),1),Rc=()=>Promise.resolve();function Ae(e,t=Rc){let r=te(),[n,o]=(0,Ze.useState)(!1);return(0,Ze.useLayoutEffect)(()=>{e?.addEventListener("abort",()=>{let i=e.reason.message==="AbortError"?void 0:e.reason;t(i).then(()=>o(!0)).catch(()=>{})})},[]),(0,Ze.useEffect)(()=>{if(n){let i=e?.reason?.message==="AbortError"?void 0:e?.reason;r(i)}},[n]),{isAborted:n}}u();var qr=D(N(),1),M;(function(e){e.Idle="idle",e.Loading="loading",e.Submitted="submitted",e.Error="error",e.Cancelled="cancelled"})(M||(M={}));function Re({initialAnswer:e}){let[t,r]=(0,qr.useState)(M.Idle),[n,o]=(0,qr.useState)(e);return{promptState:t,setPromptState:r,answer:n,setAnswer:o}}var _=D(N(),1);var Pi=({message:e,confirmation:t,infoTable:r,warningItem:n,onSubmit:o,abortSignal:i})=>{let s=(0,_.useCallback)(L=>L===t?void 0:["Value must be exactly",{userInput:t}],[t]),{oneThird:f,twoThirds:m}=de(),{promptState:d,setPromptState:p,answer:b,setAnswer:S}=Re({initialAnswer:""}),v=te(),[w,A]=(0,_.useState)(void 0),C=d===M.Error?"red":"cyan",I=new Array(f-3).fill("\u2594"),{isAborted:R}=Ae(i);fe((L,P)=>{if(me(L,P),P.escape&&(p(M.Cancelled),A(void 0)),P.return){let X=s(b);X?(p(M.Error),A(X)):p(M.Submitted)}}),(0,_.useEffect)(()=>{d===M.Submitted?(o(!0),v()):d===M.Cancelled&&(o(!1),v())},[o,d,v]);let T=d===M.Submitted||d===M.Cancelled;return R?null:_.default.createElement(g,{flexDirection:"column",marginBottom:1,width:m},_.default.createElement(g,null,_.default.createElement(g,{marginRight:2},_.default.createElement(y,null,"?")),_.default.createElement(V,{item:Ye(e)})),T?_.default.createElement(Lc,{cancelled:d===M.Cancelled}):_.default.createElement(_.default.Fragment,null,_.default.createElement(g,{flexDirection:"column",gap:1,marginTop:1,marginLeft:3},r?_.default.createElement(g,{paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},_.default.createElement(Vt,{table:r})):null,n?_.default.createElement(g,{flexDirection:"column"},_.default.createElement(y,{color:"red"},ne.warning," WARNING"),_.default.createElement(V,{item:n})):null,_.default.createElement(g,null,_.default.createElement(V,{item:["Type",{userInput:t},"to confirm, or press Escape to cancel."]}))),_.default.createElement(g,{flexDirection:"column",width:f},_.default.createElement(g,null,_.default.createElement(g,{marginRight:2},_.default.createElement(y,{color:C},">")),_.default.createElement(g,{flexGrow:1},_.default.createElement(Ke,{value:b,onChange:L=>{S(L),p(M.Idle)},defaultValue:"",color:C}))),_.default.createElement(g,{marginLeft:3},_.default.createElement(y,{color:C},I)),d===M.Error&&w?_.default.createElement(g,{marginLeft:3},_.default.createElement(y,{color:C},_.default.createElement(V,{item:w}))):null)))},Lc=({cancelled:e})=>_.default.createElement(g,null,_.default.createElement(g,{width:3},e?_.default.createElement(y,{color:"red"},ne.cross):_.default.createElement(y,{color:"cyan"},ne.tick)),_.default.createElement(g,{flexGrow:1},e?_.default.createElement(y,{color:"red"},"Cancelled"):_.default.createElement(y,{color:"cyan"},"Confirmed")));u();u();u();var Ee=D(N(),1),Dc="\u2502",kc="\u2551",Oi=({containerHeight:e,visibleListSectionLength:t,fullListLength:r,visibleFromIndex:n,noColor:o=!ke()})=>{let i=e>=4&&o,s=n+t-1,f=i?e-2:e,m=Math.min(f-1,Math.ceil(Math.min(1,t/r)*f)),d;if(s>=r-1)d=f-m;else{let A=f-m,C=r-t;d=Math.max(0,Math.min(f-m,Math.round(n/C*A)))}let p=f-m-d,b=o?Dc:" ",S=o?kc:" ",v=o?void 0:"gray",w=o?void 0:"cyan";return Ee.default.createElement(g,{flexDirection:"column"},i?Ee.default.createElement(y,null,"\u25B3"):null,Ee.default.createElement(g,{width:1},Ee.default.createElement(y,{backgroundColor:v},b.repeat(d))),Ee.default.createElement(g,{width:1},Ee.default.createElement(y,{backgroundColor:w},S.repeat(m))),Ee.default.createElement(g,{width:1},Ee.default.createElement(y,{backgroundColor:v},b.repeat(p))),i?Ee.default.createElement(y,null,"\u25BD"):null)};u();var xe=D(N(),1);import{isDeepStrictEqual as Mc}from"node:util";var Xt=class extends Map{constructor(t){let r=[],n,o,i=0;for(let s of t){let f={...s,previous:o,next:void 0,index:i};o&&(o.next=f),n??(n=f),r.push([s.value,f]),i++,o=f}super(r),this.first=n}},_c=(e,t)=>{switch(t.type){case"select-next-option":{if(typeof e.value>"u")return e;let r=e.optionMap.get(e.value);if(!r)return e;let n=r.next;for(;n&&n.disabled;)n=n.next;if(!n)return e;if(!(n.index>e.visibleToIndex))return{...e,value:n.value};let i=n.index,s=i-e.visibleOptionCount+1;return{...e,value:n.value,visibleFromIndex:s,visibleToIndex:i,previousValue:e.value}}case"select-previous-option":{if(typeof e.value>"u")return e;let r=e.optionMap.get(e.value);if(!r)return e;let n=r.previous;for(;n&&n.disabled;)n=n.previous;if(!n)return e;if(!(n.index<e.visibleFromIndex))return{...e,value:n.value};let i=n.index,s=i+e.visibleOptionCount-1;return{...e,value:n.value,visibleFromIndex:i,visibleToIndex:s,previousValue:e.value}}case"select-option":{let r=e.optionMap.get(t.option.value);return r?{...e,value:r.value,previousValue:e.value}:e}case"reset":return t.state;default:return e}},Gr=({visibleOptionCount:e,defaultValue:t,options:r})=>{let n=typeof e=="number"?Math.min(e,r.length):r.length,o=new Xt(r),i=typeof t>"u"?void 0:o.get(t),s=i&&!i.disabled?i:o.first;for(;s&&s.disabled;)s=s.next;return{optionMap:o,visibleOptionCount:n,visibleFromIndex:0,visibleToIndex:n-1,value:s?.value,previousValue:s?.value}},Fi=({visibleOptionCount:e,options:t,defaultValue:r})=>{let[n,o]=(0,xe.useReducer)(_c,{visibleOptionCount:e,defaultValue:r,options:t},Gr),[i,s]=(0,xe.useState)(t),[f,m]=(0,xe.useState)(e);t!==i&&!Mc(t,i)&&(o({type:"reset",state:Gr({visibleOptionCount:e,defaultValue:r,options:t})}),s(t)),e!==f&&(o({type:"reset",state:Gr({visibleOptionCount:e,defaultValue:r,options:t})}),m(e));let d=(0,xe.useCallback)(()=>{o({type:"select-next-option"})},[]),p=(0,xe.useCallback)(()=>{o({type:"select-previous-option"})},[]),b=(0,xe.useCallback)(({option:v})=>{o({type:"select-option",option:v})},[]),S=(0,xe.useMemo)(()=>t.slice(n.visibleFromIndex),[t,n.visibleFromIndex]);return{visibleFromIndex:n.visibleFromIndex,visibleToIndex:n.visibleToIndex,value:n.value,visibleOptions:S,selectNextOption:d,selectPreviousOption:p,selectOption:b,previousValue:n.previousValue}};var q=D(N(),1);var fs=D(cs(),1);function hu(e,t){if(!t)return e;let r;try{r=new RegExp(t,"i")}catch{return e}return e.replace(r,n=>Ue.bold(n))}function gu(e){if(e.some(t=>(t.key?.length??0)>1))throw new Error("SelectInput: Keys must be a single character");if(!e.every(t=>typeof t.key<"u"&&t.key.length>0))throw new Error("SelectInput: All items must have keys if one does")}function bu({item:e,previousItem:t,isSelected:r,highlightedTerm:n,enableShortcuts:o,items:i,hasAnyGroup:s,index:f}){let m=hu(e.label,n),d,p;r?p="cyan":e.disabled&&(p="dim"),(typeof t>"u"||e.group!==t.group)&&(d=e.group??(s?"Other":void 0));let b=o&&e.key&&e.key.length>0;return q.default.createElement(g,{key:f,flexDirection:"column",marginTop:i.indexOf(e)!==0&&d?1:0,minHeight:d?2:1},d?q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{bold:!0},d)):null,q.default.createElement(g,{key:f,marginLeft:s?3:0},q.default.createElement(g,{marginRight:2},r?q.default.createElement(y,{color:"cyan"},">"):q.default.createElement(y,null," ")),q.default.createElement(y,{wrap:"end",color:p},b?`(${e.key}) ${m}`:m)))}var us=25;function Kt({items:e,initialItems:t=e,onChange:r,enableShortcuts:n=!0,focus:o=!0,emptyMessage:i="No items to select.",defaultValue:s,highlightedTerm:f,loading:m=!1,errorMessage:d,hasMorePages:p=!1,morePagesMessage:b,availableLines:S=us,onSubmit:v,inputFixedAreaRef:w,ref:A,groupOrder:C}){let I=!1;e.length===0&&(e=[{label:i,value:null,disabled:!0}],I=!0);let R=e.some(O=>typeof O.group<"u"),T=(0,fs.default)(e,O=>{if(!O.group)return Number.MAX_SAFE_INTEGER+1;if(!C)return Number.MAX_SAFE_INTEGER;let F=C.indexOf(O.group);return F===-1?Number.MAX_SAFE_INTEGER:F}),L=T.some(O=>typeof O.key<"u"&&O.key.length>0);L&&gu(T);let P=Math.min(S,us);function X(O){let F=new Set(O.map(se=>se.group).filter(se=>se)).size,ie=Math.ceil(Math.min((P+1)/3,F+1));return F>0?(ie-1)*2+1:0}let ee=X(T),z=Math.max(2,P-ee),H=T.length>z,$=Fi({visibleOptionCount:z,options:T,defaultValue:s});(0,q.useEffect)(()=>{typeof $.value<"u"&&$.previousValue!==$.value&&r?.(T.find(O=>O.value===$.value))},[$.previousValue,$.value,T,r]);let pe=O=>{O.upArrow?$.selectPreviousOption():O.downArrow&&$.selectNextOption()},ve=(0,q.useCallback)(O=>{if($.visibleOptions.map(F=>F.key).includes(O)){let F=$.visibleOptions.find(se=>se.key===O),ie=T.find(se=>se.value===F?.value);F&&!F.disabled&&(v&&ie&&v(ie),$.selectOption({option:F}))}},[T,v,$]);fe((O,F)=>{if(me(O,F),typeof $.value<"u"&&F.return){let ie=T.find(se=>se.value===$.value);ie&&v&&v(ie)}n&&O.length>0&&Object.values(F).every(ie=>!ie)?ve(O):pe(F)},{isActive:o});let{twoThirds:B}=de();if(m)return q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{dimColor:!0},"Loading..."));if(d&&d.length>0)return q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{color:"red"},d));{let O=t.length+X(t),ie=Math.max(R?5:2,Math.min(P,O));return q.default.createElement(g,{flexDirection:"column",ref:A,gap:1,width:B},q.default.createElement(g,{flexDirection:"row",height:ie,width:"100%"},q.default.createElement(g,{flexDirection:"column",overflowY:"hidden",flexGrow:1},$.visibleOptions.map((se,re)=>q.default.createElement(bu,{key:re,item:se,previousItem:$.visibleOptions[re-1],highlightedTerm:f,isSelected:se.value===$.value,items:$.visibleOptions,enableShortcuts:n,hasAnyGroup:R,index:re}))),H?q.default.createElement(Oi,{containerHeight:ie,visibleListSectionLength:z,fullListLength:T.length,visibleFromIndex:$.visibleFromIndex}):null),q.default.createElement(g,{ref:w},I?q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{dimColor:!0},"Try again with a different keyword.")):q.default.createElement(g,{marginLeft:3,flexDirection:"column"},q.default.createElement(y,{dimColor:!0},`Press ${ne.arrowUp}${ne.arrowDown} arrows to select, enter ${L?"or a shortcut ":""}to confirm.`),p?q.default.createElement(y,null,q.default.createElement(y,{bold:!0},"1-",T.length," of many"),b?` ${b}`:null):null)))}}u();u();var mt=D(N(),1),ms=({message:{title:{color:e,text:t},body:r}})=>mt.default.createElement(g,{flexDirection:"column",gap:1},mt.default.createElement(y,{color:e},mt.default.createElement(V,{item:t})),mt.default.createElement(V,{item:r}));var j=D(N(),1);var Yt=({message:e,infoTable:t,abortSignal:r,infoMessage:n,header:o,state:i,input:s,submittedAnswerLabel:f})=>{let{stdout:m}=De(),[d,p]=(0,j.useState)(0),[b,S]=(0,j.useState)(0),[v,w]=(0,j.useState)(0),A=m.rows-b-v,[C,I]=(0,j.useState)(A),R=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);d!==H&&p(H)}},[d]),T=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);S(H)}},[]),L=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);w(H+3)}},[]),P=(0,j.cloneElement)(s,{availableLines:C,inputFixedAreaRef:L});(0,j.useLayoutEffect)(()=>{function z(){let H=m.rows-b-v;H!==C&&I(H)}return z(),m.on("resize",z),()=>{m.off("resize",z)}},[d,b,m,C,v]);let{isAborted:X}=Ae(r),ee=t&&Object.keys(t).length>0;return X?null:j.default.createElement(g,{flexDirection:"column",marginBottom:1,ref:R},j.default.createElement(g,{ref:T,flexDirection:"column"},j.default.createElement(g,null,j.default.createElement(g,{marginRight:2},j.default.createElement(y,null,"?")),j.default.createElement(V,{item:Ye(e)}),o),(ee||n)&&i!==M.Submitted?j.default.createElement(g,{marginTop:1,marginLeft:3,paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},n?j.default.createElement(ms,{message:n}):null,ee?j.default.createElement(Vt,{table:t}):null):null),i===M.Submitted&&f?j.default.createElement(g,null,j.default.createElement(g,{width:3},j.default.createElement(y,{color:"cyan"},ne.tick)),j.default.createElement(y,{color:"cyan"},f)):j.default.createElement(g,{marginTop:1},P))};var Oe=D(N(),1);function ds({message:e,choices:t,infoTable:r,infoMessage:n,onSubmit:o,defaultValue:i,abortSignal:s,groupOrder:f}){if(t.length===0)throw new Error("SelectPrompt requires at least one choice");let m=te(),{promptState:d,setPromptState:p,answer:b,setAnswer:S}=Re({initialAnswer:void 0}),v=(0,Oe.useCallback)(w=>{S(w),p(M.Submitted)},[S,p]);return(0,Oe.useEffect)(()=>{d===M.Submitted&&b&&(o(b.value),m())},[b,o,d,m]),Oe.default.createElement(Yt,{message:e,state:d,submittedAnswerLabel:b?.label,infoTable:r,infoMessage:n,abortSignal:s,input:Oe.default.createElement(Kt,{defaultValue:i,items:t,onSubmit:v,groupOrder:f})})}u();u();u();var oe=D(N(),1),qs=D(Ns(),1);function Bu(e,t){let r=5*t,n={h:r%360,s:.8,v:1},o={h:(r+1)%360,s:.8,v:1};return(0,qs.default)(n,o)(e,{interpolation:"hsv",hsvSpin:"long"})}function Iu(e,t){let r=t%e.length,n=e.slice(-r),o=e.slice(0,-r);return n+o}function Pu(e,t){return t?e.slice(0,t):e}var rn=(0,oe.memo)(({text:e,maxWidth:t})=>{let r=(0,oe.useRef)(0),[n,o]=(0,oe.useState)(e),i=(0,oe.useRef)(),{stdout:s}=De(),[f,m]=(0,oe.useState)(t??Math.floor(s.columns*.66));(0,oe.useLayoutEffect)(()=>{let p=()=>{m(Math.floor(s.columns*.66))};return s.on("resize",p),()=>{s.off("resize",p)}},[s]);let d=(0,oe.useCallback)(()=>{let p=r.current+1;r.current=p,o(Bu(Pu(Iu(e,r.current),f),r.current)),i.current=setTimeout(()=>{d()},35)},[e,f]);return(0,oe.useLayoutEffect)(()=>(d(),()=>{clearTimeout(i.current)}),[d]),oe.default.createElement(y,null,n)});rn.displayName="TextAnimation";var rr=D(N(),1);var Ou="\u2580",Gs="\u2581\u2581\u2582\u2582\u2583\u2583\u2584\u2584\u2585\u2585\u2586\u2586\u2587\u2587\u2588\u2588\u2587\u2587\u2586\u2586\u2585\u2585\u2584\u2584\u2583\u2583\u2582\u2582\u2581\u2581",nr=({title:e,noColor:t,noProgressBar:r})=>{let{twoThirds:n}=de(),{stdout:o}=De(),i=!!o.isTTY,s=new Array(n).fill(Ou).join("");return(t??!ke())&&(s=Gs.repeat(Math.ceil(n/Gs.length))),rr.default.createElement(g,{flexDirection:"column"},i&&!r&&rr.default.createElement(rn,{text:s,maxWidth:n}),rr.default.createElement(y,null,e," ..."))};u();var gt=D(N(),1);function nn(e,{onFulfilled:t=()=>{},onRejected:r=()=>{}}={}){let n=te(),[o,i]=(0,gt.useState)(null);(0,gt.useEffect)(()=>{e().then(()=>{t(),i({})}).catch(s=>{r(s),i({error:s})})},[]),(0,gt.useEffect)(()=>{o!==null&&n(o.error)},[o])}u();function Hs(){let{isRawModeSupported:e}=xt();fe((t,r)=>{if(me(t,r),r.return)return null},{isActive:!!e})}var Fe=D(N(),1),Je;(function(e){e.Loading="loading",e.Success="success",e.Failure="failure"})(Je||(Je={}));async function js(e,t){e.retryCount=0,e.errors=[];let r=e.retry&&e.retry>0?e.retry+1:1;for(let n=1;n<=r;n++)try{return e.skip?.(t)?void 0:await e.task(t,e)}catch(o){if(n===r)throw o;e.errors.push(o),e.retryCount=n}}var Fu=()=>{};function Ws({tasks:e,silent:t=nt(),onComplete:r=Fu,abortSignal:n,noColor:o,noProgressBar:i=!1}){let[s,f]=(0,Fe.useState)(e[0]),[m,d]=(0,Fe.useState)(Je.Loading),p=(0,Fe.useRef)({});nn(async()=>{for(let w of e){f(w);let A=await js(w,p.current);if(Array.isArray(A)&&A.length>0&&A.every(C=>"task"in C))for(let C of A)f(C),await js(C,p.current)}},{onFulfilled:()=>{d(Je.Success),r(p.current)},onRejected:()=>{d(Je.Failure)}}),Hs();let{isAborted:S}=Ae(n);if(t)return null;let v=typeof s.title=="string"?s.title:s.title.value;return m===Je.Loading&&!S?Fe.default.createElement(nr,{title:v,noColor:o,noProgressBar:i}):null}u();var G=D(N(),1);var zs=({message:e,onSubmit:t,validate:r,defaultValue:n="",password:o=!1,allowEmpty:i=!1,emptyDisplayedValue:s="(empty)",abortSignal:f,preview:m,initialAnswer:d=""})=>{if(o&&n)throw new Error("Can't use defaultValue with password");let p=(0,G.useCallback)(H=>{if(r)return r(H);if(H.length===0&&!i)return"Type an answer to the prompt."},[i,r]),{oneThird:b}=de(),{promptState:S,setPromptState:v,answer:w,setAnswer:A}=Re({initialAnswer:d}),C=w.length>0?w:n,I=C==="",R=I?s:C,T=te(),[L,P]=(0,G.useState)(void 0),X=S===M.Error?"red":"cyan",ee=new Array(b-3).fill("\u2594"),{isAborted:z}=Ae(f);return fe((H,$)=>{if(me(H,$),$.return){let pe=p(C);pe?(v(M.Error),P(pe)):v(M.Submitted)}}),(0,G.useEffect)(()=>{S===M.Submitted&&(t(C),T())},[C,t,S,T]),z?null:G.default.createElement(g,{flexDirection:"column",marginBottom:1,width:b},G.default.createElement(g,null,G.default.createElement(g,{marginRight:2},G.default.createElement(y,null,"?")),G.default.createElement(V,{item:Ye(e)})),S===M.Submitted?G.default.createElement(g,null,G.default.createElement(g,{width:3},G.default.createElement(y,{color:"cyan"},ne.tick)),G.default.createElement(g,{flexGrow:1},G.default.createElement(y,{color:"cyan",dimColor:I},o?"*".repeat(w.length):R))):G.default.createElement(g,{flexDirection:"column"},G.default.createElement(g,null,G.default.createElement(g,{marginRight:2},G.default.createElement(y,{color:X},">")),G.default.createElement(g,{flexGrow:1},G.default.createElement(Ke,{value:w,onChange:H=>{A(H),v(M.Idle)},defaultValue:n,color:X,password:o}))),G.default.createElement(g,{marginLeft:3},G.default.createElement(y,{color:X},ee)),S===M.Error?G.default.createElement(g,{marginLeft:3},G.default.createElement(y,{color:X},L)):null,S!==M.Error&&m?G.default.createElement(g,{marginLeft:3},G.default.createElement(V,{item:m(C)})):null))};u();u();var Uu=D(aa()),Vs=D(Ea()),Xs=D(Sa());function Eb(e,t,r){return(0,Vs.default)(e,t,r)}function Ks(e,t,r){return(0,Xs.default)(e,t,r)}var J=D(N(),1);var $u=5,Nu=400;function Ys({message:e,choices:t,infoTable:r,onSubmit:n,search:o,hasMorePages:i=!1,abortSignal:s,infoMessage:f,groupOrder:m,searchDebounceMs:d=Nu}){let p=te(),[b,S]=(0,J.useState)(""),[v,w]=(0,J.useState)(t),A=t.length>$u,[C,I]=(0,J.useState)(i),{promptState:R,setPromptState:T,answer:L,setAnswer:P}=Re({initialAnswer:void 0}),X=(0,J.useCallback)(async B=>await o(B),[o]),ee=(0,J.useCallback)(B=>{R===M.Idle&&(P(B),T(M.Submitted))},[R,P,T]);(0,J.useEffect)(()=>{R===M.Submitted&&L&&(S(""),n(L.value),p())},[L,n,R,p]);let z=(0,J.useRef)(),H=(0,J.useRef)("");H.current=b;let $=(0,J.useRef)(t);$.current=t;let pe=(0,J.useRef)(i);pe.current=i;let ve=J.default.useMemo(()=>Ks(B=>{z.current=setTimeout(()=>{T(M.Loading)},100),X(B).then(O=>{H.current.length===0?(w($.current),I(pe.current)):(w(O.data),I(O.meta?.hasNextPage??!1)),T(M.Idle)}).catch(()=>{T(M.Error)}).finally(()=>{clearTimeout(z.current)})},d,{leading:!0,trailing:!0}),[X,T,d]);return J.default.createElement(Yt,{message:e,state:R,infoTable:r,infoMessage:f,abortSignal:s,header:R!==M.Submitted&&A?J.default.createElement(g,{marginLeft:3},J.default.createElement(Ke,{value:b,onChange:B=>{S(B),H.current=B,B.length>0?ve(B):(ve.cancel(),T(M.Idle),w(t))},placeholder:"Type to search..."})):null,submittedAnswerLabel:L?.label,input:J.default.createElement(Kt,{items:v,initialItems:t,enableShortcuts:!1,emptyMessage:"No results found.",highlightedTerm:b,loading:R===M.Loading,errorMessage:R===M.Error?"There has been an error while searching. Please try again later.":void 0,hasMorePages:C,morePagesMessage:"Find what you're looking for by typing its name.",onSubmit:ee,groupOrder:m})})}u();var Le=D(N(),1);var Zs=({task:e,title:t,onComplete:r,onAbort:n,noColor:o})=>{let[i,s]=(0,Le.useState)(t),[f,m]=(0,Le.useState)(!1),[d,p]=(0,Le.useState)(null),b=te(),{isRawModeSupported:S}=xt();return fe((v,w)=>{n?me(v,w,n):me(v,w)},{isActive:!!S}),(0,Le.useEffect)(()=>{e(s).then(v=>{m(!0),r?.(v),p({})}).catch(v=>{m(!0),p({error:v})})},[e,r]),(0,Le.useEffect)(()=>{d!==null&&b(d.error)},[d,b]),f?null:Le.default.createElement(nr,{title:i.value,noColor:o})};var Se=D(N()),et={skipTTYCheck:!1};async function t0({renderOptions:e,...t}){let r=t.abortSignal??new kt().signal;return Me(Se.default.createElement(oi,{...t,abortSignal:r}),e)}function r0(e){return ct({...e,type:"info"})}function n0(e){return ct({...e,type:"success"})}function Vo(e){return ct({...e,type:"warning"})}function o0(e){return ct({...e,type:"error"})}function i0(e,{renderOptions:t}={}){return at(Se.default.createElement(Bi,{error:e}),{logLevel:"error",renderOptions:t})}async function qu({renderOptions:e,isConfirmationPrompt:t,...r},n=et){return bt({message:r.message,stdin:e?.stdin},n),Ne("cmd_all_timing_prompts_ms")(async()=>{let o;return await Me(Se.default.createElement(ds,{...r,onSubmit:i=>{o=i}}),{...e,exitOnCtrlC:!1}),o})}async function s0({message:e,infoTable:t,confirmationMessage:r="Yes, confirm",cancellationMessage:n="No, cancel",renderOptions:o,defaultValue:i=!0,abortSignal:s,infoMessage:f}){return qu({choices:[{label:r,value:!0,key:"y"},{label:n,value:!1,key:"n"}],message:e,infoTable:t,renderOptions:o,defaultValue:i,isConfirmationPrompt:!0,abortSignal:s,infoMessage:f})}async function a0({renderOptions:e,...t},r=et){bt({message:t.message,stdin:e?.stdin},r);let n=t.search===void 0,o={search(i){let s=i.toLowerCase();return Promise.resolve({data:t.choices.filter(f=>f.label.toLowerCase().includes(s)||f.group?.toLowerCase().includes(s))})},...n?{searchDebounceMs:0}:{},...t};return Ne("cmd_all_timing_prompts_ms")(async()=>{let i;if(await Me(Se.default.createElement(Ys,{...o,onSubmit:s=>{i=s}}),{...e,exitOnCtrlC:!1}),i===void 0)throw new Error("Prompt was interrupted before a selection was made. This can happen if the process received a signal, was terminated, or the prompt was aborted.");return i})}function l0({renderOptions:e,...t}){return at(Se.default.createElement(Ii,{...t}),{renderOptions:e})}async function c0(e,{renderOptions:t,noProgressBar:r}={}){let n;return await Me(Se.default.createElement(Ws,{tasks:e,onComplete:o=>{n=o},noProgressBar:r}),{stdout:process.stderr,...t,exitOnCtrlC:!1}),n}async function u0({title:e,task:t,onAbort:r,renderOptions:n}){let o;return await Me(Se.default.createElement(Zs,{title:e,task:t,onComplete:i=>{o=i},onAbort:r}),{stdout:process.stderr,...n,exitOnCtrlC:!1}),o}async function f0({renderOptions:e,...t},r=et){return bt({message:t.message,stdin:e?.stdin},r),Ne("cmd_all_timing_prompts_ms")(async()=>{let n="";return await Me(Se.default.createElement(zs,{...t,onSubmit:o=>{n=o}}),{...e,exitOnCtrlC:!1}),n})}async function m0({renderOptions:e,...t},r=et){return bt({message:t.message,stdin:e?.stdin},r),Ne("cmd_all_timing_prompts_ms")(async()=>{let n;return await Me(Se.default.createElement(Pi,{...t,onSubmit:o=>{n=o}}),{...e,exitOnCtrlC:!1}),n})}var d0=async(e=process.stdin,t=et)=>(bt({message:"Press any key"},t),Ne("cmd_all_timing_prompts_ms")(()=>new Promise((r,n)=>{let o=i=>{e.setRawMode(!1);let s=Array.from(i);s.length&&s[0]===3&&(Ie("Canceled keypress, User pressed CTRL+C"),n(new wn)),e.unref(),process.nextTick(r)};e.setRawMode(!0),e.once("data",o),e.ref()})));function Gu({stdin:e=void 0,uiDebugOptions:t=et}={}){return!!(t.skipTTYCheck||e||Zo())}function bt({message:e,stdin:t=void 0},r){if(Gu({stdin:t,uiDebugOptions:r}))return;let n=$e(e),o=`Failed to prompt:
|
|
25
|
-
|
|
26
|
-
${St`${Tn.cyan(n)}`.value}
|
|
27
|
-
|
|
28
|
-
This usually happens when running a command non-interactively, for example in a CI environment, or when piping to or from another process.`;throw new qe(o,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")}export{kt as a,ei as b,Hi as c,mo as d,Pe as e,Fm as f,zo as g,Mi as h,Me as i,me as j,ne as k,Fd as l,oi as m,Ft as n,ai as o,Ae as p,Vi as q,Rs as r,Eb as s,t0 as t,r0 as u,n0 as v,Vo as w,o0 as x,i0 as y,qu as z,s0 as A,a0 as B,l0 as C,c0 as D,u0 as E,f0 as F,m0 as G,d0 as H,Gu as I,Qm as J,Jm as K,Xl as L,ed as M,td as N,Kl as O,rd as P,nd as Q,Zo as R,od as S,id as T,Zl as U,sd as V};
|
package/dist/chunk-7HAFBCL3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{w as h}from"./chunk-K7IZMKBR.js";import{a as d}from"./chunk-DHU767C3.js";import{a as f}from"./chunk-QG7TELFC.js";import{ta as l}from"./chunk-NOKCVDYD.js";import{b as m}from"./chunk-2Y6CYLKF.js";import{Lb as c,Xb as u}from"./chunk-3TFUSDHY.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
|
|
2
|
-
`)))}var a,t=class extends d{async run(){let{flags:e}=await this.parse(a),{app:o}=await l({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config});return o.errors.isEmpty()?g(o):process.exit(2),{app:o}}};a=t;t.summary="Print out a list of sources that may be used with the logs command.";t.descriptionWithMarkdown="The output source names can be used with the `--source` argument of `shopify app logs` to filter log output. Currently only function extensions are supported as sources.";t.description=a.descriptionWithoutMarkdown();t.flags={...m,...f};var N=t;export{N as a};
|
package/dist/chunk-7XPFLQEM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-2MCH43SL.js";import{a as r}from"./chunk-CTNBSUVU.js";import{e as c,g as t}from"./chunk-VKWPEFWQ.js";t();var s=c(r(),1);var a=class o extends e{static{this.args={command:s.Args.string({description:"Command to show help for.",required:!1})}}static{this.description="Display help for Shopify CLI"}static{this.usage="help [command] [flags]"}static{this.flags={"nested-commands":s.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})}}static{this.strict=!1}async run(){let{argv:i,flags:n}=await this.parse(o),l=await(0,s.loadHelpClass)(this.config);await new l(this.config,{all:n["nested-commands"]}).showHelp(i)}};export{a};
|
package/dist/chunk-A3JE5LX3.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as D}from"./chunk-R26GJEH3.js";import{a as _,c as b}from"./chunk-QU5NL2QT.js";import{a as c,b as F}from"./chunk-6BX62FFE.js";import{e as y,q as T}from"./chunk-HT6MOPLW.js";import{i as v,p as g,v as w}from"./chunk-Z5DDPQ26.js";import{b as u}from"./chunk-2Y6CYLKF.js";import{A as p,v as d}from"./chunk-6YCGMS7X.js";import{U as f}from"./chunk-3TFUSDHY.js";import{a as C}from"./chunk-CTNBSUVU.js";import{e as Y,g as h}from"./chunk-VKWPEFWQ.js";h();h();async function I(t,e,i){let r=e.themes;e.development&&(r=[(await new D(t).find()).id.toString()]);let n=t.storeFqdn,s=await L(t,{...e,themes:r,development:!1});if(!e.force&&!i&&!await M(s,n))return;await Promise.all(s.map(o=>(y(o)&&v(),T(o.id,t))));let l=e.environment?[{subdued:`Environment: ${e.environment}
|
|
2
|
-
|
|
3
|
-
`}]:[];d({body:f(s,o=>[...l,`The following themes were deleted from ${n}:`,F(o)],o=>[...l,"The theme",...c(o),`was deleted from ${n}.`])})}async function L(t,e){if(e.selectTheme||e.themes.length>0)return b(t,e);let i=t.storeFqdn;return[await _(t,{header:`Select a theme to delete from ${i}`,filter:{development:e.development}})]}async function M(t,e){let r={message:f(t,n=>[`Delete the following themes from ${e}?`],n=>["Delete",...c(n),`from ${e}?`]),confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return t.length>1&&(r.infoTable={"":t.map(c)}),p(r)}var a=Y(C(),1);var O,m=class extends w{async command(e,i,r){let{environment:n,development:s,force:l,theme:o}=e,E=o??[];await I(i,{selectTheme:e["show-all"],environment:n,development:s,themes:E,force:l},r)}};O=m;m.summary="Delete remote themes from the connected store. This command can't be undone.";m.descriptionWithMarkdown=`Deletes a theme from your store.
|
|
4
|
-
|
|
5
|
-
You can specify multiple themes by ID. If no theme is specified, then you're prompted to select the theme that you want to delete from the list of themes in your store.
|
|
6
|
-
|
|
7
|
-
You're asked to confirm that you want to delete the specified themes before they are deleted. You can skip this confirmation using the \`--force\` flag.`;m.description=O.descriptionWithoutMarkdown();m.flags={...u,...g,development:a.Flags.boolean({char:"d",description:"Delete your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),"show-all":a.Flags.boolean({char:"a",description:"Include others development themes in theme list.",env:"SHOPIFY_FLAG_SHOW_ALL"}),force:a.Flags.boolean({char:"f",description:"Skip confirmation.",env:"SHOPIFY_FLAG_FORCE"}),theme:a.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID",multiple:!0})};m.multiEnvironmentsFlags=["store","password",["development","theme"]];var V=m;export{V as a};
|