shopify 3.94.2 → 4.0.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/bin/run.js +5 -1
- package/dist/analytics-6IHHYAV6.js +1 -0
- package/dist/analytics-KKVP5DT3.js +1 -0
- package/dist/bootstrap.d.ts +5 -0
- package/dist/bootstrap.js +3 -0
- package/dist/chunk-22PCRFG4.js +1 -0
- package/dist/chunk-26D72ZNV.js +1 -0
- package/dist/chunk-2APPXD5Z.js +2 -0
- package/dist/chunk-2I4PRX2I.js +1 -0
- package/dist/chunk-2VQJQ36C.js +103 -0
- package/dist/chunk-323UTVMM.js +1 -0
- package/dist/chunk-3DQIVE24.js +9 -0
- package/dist/chunk-3F6NZK7S.js +2 -0
- package/dist/chunk-3LVGAQB4.js +1 -0
- package/dist/chunk-3TNEIDOD.js +1 -0
- package/dist/chunk-3VZEETAV.js +1 -0
- package/dist/chunk-4G7J6HIV.js +1 -0
- package/dist/chunk-4HHXSMD7.js +10 -0
- package/dist/chunk-4LNCYIS3.js +1 -0
- package/dist/chunk-4ZGSSQC6.js +1 -0
- package/dist/chunk-52GC6XUT.js +1 -0
- package/dist/chunk-5CH3B62S.js +2 -0
- package/dist/chunk-5Y7GIF2W.js +1 -0
- package/dist/chunk-66RJ5T7A.js +102 -0
- package/dist/chunk-6B53BWJW.js +1 -0
- package/dist/chunk-6BMMB2UO.js +1 -0
- package/dist/chunk-6HBRBQAN.js +6 -0
- package/dist/chunk-6M3ZYNGO.js +451 -0
- package/dist/chunk-6TZAAS5H.js +1 -0
- package/dist/chunk-72F3YBNA.js +1 -0
- package/dist/chunk-74HYYXXE.js +17 -0
- package/dist/chunk-75VPUOC5.js +1 -0
- package/dist/chunk-7BGM2GAH.js +1 -0
- package/dist/chunk-7UYZQN4V.js +18 -0
- package/dist/chunk-A74GETYC.js +1 -0
- package/dist/chunk-AIV5RI3X.js +1 -0
- package/dist/chunk-ALKTLKQ6.js +5 -0
- package/dist/chunk-B2EHO7ZC.js +847 -0
- package/dist/chunk-B2IVY4V5.js +1 -0
- package/dist/chunk-BDVAE5MS.js +28 -0
- package/dist/chunk-CERXUPGC.js +14 -0
- package/dist/chunk-D3TSJA5S.js +1 -0
- package/dist/chunk-D6JARNEH.js +1 -0
- package/dist/chunk-DFMQWJQ3.js +3 -0
- package/dist/chunk-DJONKJSZ.js +1 -0
- package/dist/chunk-DJQVNH7P.js +567 -0
- package/dist/chunk-DU4WR4OP.js +1 -0
- package/dist/chunk-ELVFJ7BR.js +4 -0
- package/dist/chunk-ELYP4KFP.js +8 -0
- package/dist/chunk-FFQ5EWII.js +294 -0
- package/dist/chunk-FUOIGXI4.js +1 -0
- package/dist/chunk-GD7FWXJ5.js +2 -0
- package/dist/chunk-GFEAKSGV.js +374 -0
- package/dist/chunk-GFJ7UV74.js +1 -0
- package/dist/chunk-GNPS5SBU.js +1 -0
- package/dist/chunk-GOJ2QHSR.js +1 -0
- package/dist/chunk-HSK7YMRE.js +359 -0
- package/dist/chunk-HUZUORYM.js +19 -0
- package/dist/chunk-HZA6IAA4.js +1 -0
- package/dist/chunk-IASVAERO.js +1 -0
- package/dist/chunk-IIIVWD4R.js +1 -0
- package/dist/chunk-INEU4XKS.js +6 -0
- package/dist/chunk-IOLVEXM6.js +1 -0
- package/dist/chunk-IU2ZQ6TE.js +2 -0
- package/dist/chunk-IX5ICOBV.js +7 -0
- package/dist/chunk-J3KVONB3.js +6 -0
- package/dist/chunk-JGXWQULI.js +1 -0
- package/dist/chunk-JHPRFW5B.js +19 -0
- package/dist/chunk-JLBH7RCF.js +4 -0
- package/dist/chunk-JPGO36XP.js +1 -0
- package/dist/chunk-JUVAGMIH.js +1 -0
- package/dist/chunk-JVIKCGDY.js +1 -0
- package/dist/chunk-K2WUCOQJ.js +32 -0
- package/dist/chunk-K5YV6UVF.js +4 -0
- package/dist/chunk-KBQ4LGFB.js +1 -0
- package/dist/chunk-KGXQS7LS.js +1 -0
- package/dist/chunk-KL5Z3T6L.js +1 -0
- package/dist/chunk-KLMDWDT2.js +1 -0
- package/dist/chunk-KNVM7N3U.js +1 -0
- package/dist/chunk-KWJ562F2.js +12 -0
- package/dist/chunk-LALIKZPS.js +5 -0
- package/dist/chunk-LAZJ47DZ.js +6 -0
- package/dist/chunk-LDGAHMS7.js +159 -0
- package/dist/chunk-LNHLDRC5.js +1 -0
- package/dist/chunk-LW7U753G.js +1 -0
- package/dist/chunk-LX3ZOW52.js +12 -0
- package/dist/chunk-LXFJDCNG.js +1 -0
- package/dist/chunk-MBAFWQSZ.js +7 -0
- package/dist/chunk-MOA33ZFO.js +1 -0
- package/dist/chunk-MQNYGGAM.js +1 -0
- package/dist/chunk-N5YIPQ6J.js +1 -0
- package/dist/chunk-N7RBSKYT.js +1 -0
- package/dist/chunk-NF2ABOOU.js +1 -0
- package/dist/chunk-NRAFVIU3.js +1 -0
- package/dist/chunk-OCOY5MV2.js +1 -0
- package/dist/chunk-ODNGDO4H.js +50 -0
- package/dist/chunk-OHY4ZL3U.js +2 -0
- package/dist/chunk-OLZHWPZP.js +1 -0
- package/dist/chunk-OUOYKNMY.js +1 -0
- package/dist/chunk-OXPWCC7I.js +64 -0
- package/dist/chunk-P5VVOLGV.js +1 -0
- package/dist/chunk-P6XE4MH5.js +1 -0
- package/dist/chunk-P7R7FBY2.js +3 -0
- package/dist/chunk-PD5ZHJWI.js +1 -0
- package/dist/chunk-PIBY5DDZ.js +1 -0
- package/dist/chunk-Q7ING5F5.js +1 -0
- package/dist/chunk-QFWIDATO.js +1 -0
- package/dist/chunk-QRRNOVJ3.js +1 -0
- package/dist/chunk-QSTEVZFQ.js +1 -0
- package/dist/chunk-R466TU3N.js +2 -0
- package/dist/chunk-RF2DPBA6.js +1 -0
- package/dist/chunk-RFG5RMPL.js +1 -0
- package/dist/chunk-RM5SJJN6.js +559 -0
- package/dist/chunk-RVNMVBPM.js +1 -0
- package/dist/chunk-SBEZBZM7.js +144 -0
- package/dist/chunk-SGQ6D3LU.js +15 -0
- package/dist/chunk-SRCQVUMC.js +1 -0
- package/dist/chunk-TFSBQ4RY.js +5 -0
- package/dist/chunk-TQYMC7TH.js +1 -0
- package/dist/chunk-UGDBJTLP.js +6 -0
- package/dist/chunk-UGXYQ23Y.js +1411 -0
- package/dist/chunk-UWJ73J4B.js +1 -0
- package/dist/chunk-V2CNCPIE.js +2 -0
- package/dist/chunk-VBUZWRUL.js +1 -0
- package/dist/chunk-VS3T5YOG.js +264 -0
- package/dist/chunk-VWYM4OWK.js +1 -0
- package/dist/chunk-VY6SNDKW.js +3 -0
- package/dist/chunk-WDC3KIZT.js +2 -0
- package/dist/chunk-WFXRSKRK.js +1 -0
- package/dist/chunk-WXVZJJOR.js +16 -0
- package/dist/chunk-WZBSLU4Q.js +6 -0
- package/dist/chunk-XBXMPFXM.js +1 -0
- package/dist/chunk-XEFQQPL4.js +1 -0
- package/dist/chunk-XLELNRFF.js +3 -0
- package/dist/chunk-XNO6DZYP.js +1 -0
- package/dist/chunk-Y5JKV2AI.js +1 -0
- package/dist/chunk-YC6G4MHD.js +3 -0
- package/dist/chunk-YI232QLS.js +1 -0
- package/dist/chunk-YMWHHINU.js +1 -0
- package/dist/chunk-YOZNRLFC.js +1 -0
- package/dist/chunk-YZDDTYTU.js +11 -0
- package/dist/chunk-Z35BTAM6.js +2 -0
- package/dist/chunk-ZR76GGZ6.js +5 -0
- package/dist/chunk-ZTMSBSYD.js +1 -0
- package/dist/chunk-ZV6NCNI4.js +586 -0
- package/dist/chunk-ZVJVDCIM.js +1 -0
- package/dist/cli/commands/app/app-logs/sources.js +2 -0
- package/dist/cli/commands/app/build.js +1 -0
- package/dist/cli/commands/app/bulk/cancel.js +1 -0
- package/dist/cli/commands/app/bulk/execute.js +9 -0
- package/dist/cli/commands/app/bulk/status.js +5 -0
- package/dist/cli/commands/app/config/link.js +4 -0
- package/dist/cli/commands/app/config/pull.js +1 -0
- package/dist/cli/commands/app/config/use.js +1 -0
- package/dist/cli/commands/app/config/validate.js +3 -0
- package/dist/cli/commands/app/demo/watcher.js +1 -0
- package/dist/cli/commands/app/deploy.js +22 -0
- package/dist/cli/commands/app/dev/clean.js +5 -0
- package/dist/cli/commands/app/dev.js +320 -0
- package/dist/cli/commands/app/env/pull.js +11 -0
- package/dist/cli/commands/app/env/show.js +1 -0
- package/dist/cli/commands/app/execute.js +1 -0
- package/dist/cli/commands/app/function/build.js +1 -0
- package/dist/cli/commands/app/function/info.js +16 -0
- package/dist/cli/commands/app/function/replay.js +5 -0
- package/dist/cli/commands/app/function/run.js +1 -0
- package/dist/cli/commands/app/function/schema.js +1 -0
- package/dist/cli/commands/app/function/typegen.js +1 -0
- package/dist/cli/commands/app/generate/extension.js +5 -0
- package/dist/cli/commands/app/import-custom-data-definitions.js +4 -0
- package/dist/cli/commands/app/import-extensions.js +1 -0
- package/dist/cli/commands/app/info.js +11 -0
- package/dist/cli/commands/app/init.js +10 -0
- package/dist/cli/commands/app/logs.js +2 -0
- package/dist/cli/commands/app/release.js +4 -0
- package/dist/cli/commands/app/versions/list.js +1 -0
- package/dist/cli/commands/app/webhook/trigger.js +25 -0
- package/dist/cli/commands/auth/login.js +1 -20
- package/dist/cli/commands/auth/logout.js +1 -12
- package/dist/cli/commands/cache/clear.js +1 -11
- package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -1
- package/dist/cli/commands/config/autoupgrade/constants.js +1 -6
- package/dist/cli/commands/config/autoupgrade/off.js +1 -22
- package/dist/cli/commands/config/autoupgrade/on.js +1 -22
- package/dist/cli/commands/config/autoupgrade/status.js +1 -30
- package/dist/cli/commands/debug/command-flags.js +1 -79
- package/dist/cli/commands/docs/generate.js +1 -157
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -25
- package/dist/cli/commands/doctor-release/theme/index.js +1 -56
- package/dist/cli/commands/help.js +1 -26
- package/dist/cli/commands/kitchen-sink/async.js +1 -16
- package/dist/cli/commands/kitchen-sink/index.js +1 -21
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -16
- package/dist/cli/commands/kitchen-sink/static.js +1 -16
- package/dist/cli/commands/notifications/generate.js +1 -11
- package/dist/cli/commands/notifications/list.js +1 -33
- package/dist/cli/commands/organization/list.js +1 -0
- package/dist/cli/commands/search.js +1 -27
- package/dist/cli/commands/theme/check.js +1 -0
- package/dist/cli/commands/theme/console.js +15 -0
- package/dist/cli/commands/theme/delete.js +7 -0
- package/dist/cli/commands/theme/dev.js +26 -0
- package/dist/cli/commands/theme/duplicate.js +32 -0
- package/dist/cli/commands/theme/info.js +1 -0
- package/dist/cli/commands/theme/init.js +8 -0
- package/dist/cli/commands/theme/language-server.js +1 -0
- package/dist/cli/commands/theme/list.js +1 -0
- package/dist/cli/commands/theme/metafields/pull.js +3 -0
- package/dist/cli/commands/theme/open.js +8 -0
- package/dist/cli/commands/theme/package.js +7 -0
- package/dist/cli/commands/theme/preview.js +1 -0
- package/dist/cli/commands/theme/profile.js +3 -0
- package/dist/cli/commands/theme/publish.js +7 -0
- package/dist/cli/commands/theme/pull.js +3 -0
- package/dist/cli/commands/theme/push.js +28 -0
- package/dist/cli/commands/theme/rename.js +6 -0
- package/dist/cli/commands/theme/share.js +3 -0
- package/dist/cli/commands/upgrade.js +1 -17
- package/dist/cli/commands/version.js +1 -10
- package/dist/command-registry.d.ts +8 -0
- package/dist/command-registry.js +1 -0
- package/dist/conf-store-U5ZITKJN.js +1 -0
- package/dist/custom-oclif-loader-DVFFWCBV.js +1 -0
- package/dist/deprecations-TU5UQJVV.js +1 -0
- package/dist/dist-2Z5TND4U.js +1 -0
- package/dist/dist-GYHFDHKP.js +1 -0
- package/dist/environments-Z5PR7DSI.js +1 -0
- package/dist/error-IJGNYKZ3.js +1 -0
- package/dist/error-handler-WSCGNS2P.js +1 -0
- package/dist/fs-5BDEA2KD.js +1 -0
- package/dist/hooks/app-init.d.ts +9 -0
- package/dist/hooks/app-init.js +1 -0
- package/dist/hooks/did-you-mean.d.ts +1 -0
- package/dist/hooks/did-you-mean.js +1 -0
- package/dist/hooks/hydrogen-init.d.ts +7 -0
- package/dist/hooks/hydrogen-init.js +1 -0
- package/dist/hooks/plugin-plugins.d.ts +1 -0
- package/dist/hooks/plugin-plugins.js +1 -0
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.d.ts +1 -0
- package/dist/hooks/public-metadata.js +1 -0
- package/dist/hooks/sensitive-metadata.d.ts +1 -0
- package/dist/hooks/sensitive-metadata.js +1 -0
- package/dist/hooks/tunnel-provider.d.ts +1 -0
- package/dist/hooks/tunnel-provider.js +1 -0
- package/dist/hooks/tunnel-start.d.ts +1 -0
- package/dist/hooks/tunnel-start.js +1 -0
- package/dist/http-proxy-node16-Q5DZMBHC.js +38 -0
- package/dist/index.js +254 -3668
- package/dist/is-global-V4ZRHQG2.js +1 -0
- package/dist/latest-version-EFWBOTWM.js +49 -0
- package/dist/lib-5L7UKDEK.js +1 -0
- package/dist/lib-C3VO2BQW.js +1 -0
- package/dist/lib-QB6I6CTC.js +1 -0
- package/dist/local-6QPX4GCJ.js +1 -0
- package/dist/local-storage-JLXBZVWO.js +1 -0
- package/dist/metadata-UDMOTRS7.js +1 -0
- package/dist/{morph-DQREIZD2.js → morph-EMYAITFM.js} +1 -1
- package/dist/node-package-manager-HAFRYGUM.js +1 -0
- package/dist/notifications-system-MP7WDOCS.js +1 -0
- package/dist/npa-ICFSA3NL.js +1 -0
- package/dist/output-YGMHXEIS.js +1 -0
- package/dist/{path-HUAU3YBW.js → path-CWUNINMX.js} +1 -1
- package/dist/{prettier-PGDJ5B7I.js → prettier-NVRHEAFO.js} +1 -1
- package/dist/system-KLXD4FXF.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-K5CWIA4V.js +1 -0
- package/dist/ui-GHG3UGB3.js +1 -0
- package/dist/upgrade-OPZGPM5J.js +1 -0
- package/dist/version-D5PJZIRW.js +1 -0
- package/dist/version-KRQBMYCH.js +1 -0
- package/dist/workerd-L2EJKIAQ.js +18 -0
- package/oclif.manifest.json +5247 -6056
- package/package.json +17 -41
- package/dist/chunk-2E6Y4J4T.js +0 -3
- package/dist/chunk-45T5XUIM.js +0 -1
- package/dist/chunk-52KHWFYF.js +0 -1
- package/dist/chunk-FU2Y2M3M.js +0 -5
- package/dist/chunk-JBSYWYIP.js +0 -2
- package/dist/chunk-KVWHPGOA.js +0 -415
- package/dist/chunk-LH4VO6EV.js +0 -63
- package/dist/chunk-PRNHS74J.js +0 -847
- package/dist/chunk-RXF32AET.js +0 -396
- package/dist/chunk-SVA22NZQ.js +0 -607
- package/dist/chunk-YPE4BWWD.js +0 -3
- package/dist/error-handler-CRWXGODM.js +0 -1
- package/dist/http-proxy-node16-TTURN6MD.js +0 -38
- package/dist/lib-3WHF5XD3.js +0 -1
- package/dist/local-7MUCLBBI.js +0 -1
- package/dist/node-package-manager-GFIGZZ24.js +0 -1
- package/dist/npa-OKDXXRCU.js +0 -1
- package/dist/ui-AOFJCTTO.js +0 -1
- package/dist/workerd-VBG5LYNX.js +0 -18
- /package/dist/{chunk-KADPE3PY.js → chunk-7MUKLZOL.js} +0 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import{b as vf,c as Ff}from"./chunk-ZR76GGZ6.js";import{b as Cf}from"./chunk-EENHXSWU.js";import{a as Ef}from"./chunk-FUOIGXI4.js";import{a as wf}from"./chunk-6M3ZYNGO.js";import{a as w,c as C,g as p}from"./chunk-VPRTJUIN.js";var ee=C(oe=>{"use strict";p();Object.defineProperty(oe,"__esModule",{value:!0});oe.pickBy=Af;oe.compact=Of;oe.uniqBy=xf;oe.last=Sf;oe.sortBy=jf;oe.castArray=Pf;oe.isProd=$f;oe.maxBy=Rf;oe.sumBy=Lf;oe.capitalize=Tf;oe.isTruthy=kf;oe.isNotFalsy=Mf;oe.uniq=qf;oe.mapValues=Bf;oe.mergeNestedObjects=Nf;function Af(t,e){return Object.entries(t).reduce((n,[s,r])=>(e(r)&&(n[s]=r),n),{})}function Of(t){return t.filter(e=>!!e)}function xf(t,e){return t.filter((n,s)=>{let r=e(n);return!t.some((i,o)=>o>s&&e(i)===r)})}function Sf(t){if(t)return t.at(-1)}function rr(t,e){if(t=t===void 0?0:t,e=e===void 0?0:e,Array.isArray(t)&&Array.isArray(e)){if(t.length===0&&e.length===0)return 0;let n=rr(t[0],e[0]);return n!==0?n:rr(t.slice(1),e.slice(1))}return t<e?-1:t>e?1:0}function jf(t,e){return t.sort((n,s)=>rr(e(n),e(s)))}function Pf(t){return t===void 0?[]:Array.isArray(t)?t:[t]}function $f(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Rf(t,e){if(t.length!==0)return t.reduce((n,s)=>{let r=e(s),i=e(n);return r>i?s:n})}function Lf(t,e){return t.reduce((n,s)=>n+e(s),0)}function Tf(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}function kf(t){return["1","true","y","yes"].includes(t.toLowerCase())}function Mf(t){return!["0","false","n","no"].includes(t.toLowerCase())}function qf(t){return[...new Set(t)].sort()}function Bf(t,e){return Object.entries(t).reduce((n,[s,r])=>(n[s]=e(r,s),n),{})}function If(t,e){return e.split(".").reduce((n,s)=>n?.[s],t)}function Nf(t,e){return Object.fromEntries(t.flatMap(n=>Object.entries(If(n,e)??{})).reverse())}});var Le=C(He=>{"use strict";p();Object.defineProperty(He,"__esModule",{value:!0});He.fileExists=He.dirExists=void 0;He.readJson=Ro;He.safeReadJson=Uf;He.existsSync=Vf;var Hf=w("node:fs"),ar=w("node:fs/promises"),Wf=ee(),zf=async t=>{let e;try{e=await(0,ar.stat)(t)}catch{throw new Error(`No directory found at ${t}`)}if(!e.isDirectory())throw new Error(`${t} exists but is not a directory`);return t};He.dirExists=zf;var Gf=async t=>{let e;try{e=await(0,ar.stat)(t)}catch{throw new Error(`No file found at ${t}`)}if(!e.isFile())throw new Error(`${t} exists but is not a file`);return t};He.fileExists=Gf;var or=class extends Map{set(e,n){return((0,Wf.isProd)()??!1)&&super.set(e,n),this}},ir=new or;async function Ro(t,e=!0){if(e&&ir.has(t))return JSON.parse(ir.get(t));let n=await(0,ar.readFile)(t,"utf8");return ir.set(t,n),JSON.parse(n)}async function Uf(t,e=!0){try{return await Ro(t,e)}catch{}}function Vf(t){return(0,Hf.existsSync)(t)}});var To=C(le=>{"use strict";p();Object.defineProperty(le,"__esModule",{value:!0});le.string=le.url=le.file=le.directory=le.integer=le.boolean=void 0;le.custom=nt;var Kf=w("node:url"),Lo=Le(),Jf=ee();function nt(t){return(e={})=>({parse:async(n,s,r)=>n,...t,...e,input:[],type:"option"})}le.boolean=nt({parse:async t=>!!t&&(0,Jf.isNotFalsy)(t)});le.integer=nt({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Error(`Expected an integer but received: ${t}`);let s=Number.parseInt(t,10);if(n.min!==void 0&&s<n.min)throw new Error(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&s>n.max)throw new Error(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return s}});le.directory=nt({async parse(t,e,n){return n.exists?(0,Lo.dirExists)(t):t}});le.file=nt({async parse(t,e,n){return n.exists?(0,Lo.fileExists)(t):t}});le.url=nt({async parse(t){try{return new Kf.URL(t)}catch{throw new Error(`Expected a valid url but received: ${t}`)}}});var Xf=nt({});le.string=Xf});var ko=C((N1,Yf)=>{Yf.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.5.3",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.17.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.0",ejs:"^3.1.10","get-package-type":"^0.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^9.0.5",semver:"^7.6.3","string-width":"^4.2.3","supports-color":"^8",tinyglobby:"^0.2.14","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.3.2","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^11.7.2",nyc:"^15.1.0",prettier:"^3.6.2",shx:"^0.4.0",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var Oe=C(cr=>{"use strict";p();Object.defineProperty(cr,"__esModule",{value:!0});var Qf=w("node:fs"),Zf=w("node:path"),ur=class t extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return t.instance||(t.instance=new t),t.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:ko().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,Qf.readFileSync)((0,Zf.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};cr.default=ur});var qo=C(Ce=>{"use strict";p();var eh=/[|\\{}()[\]^$+*?.]/g,th=Object.prototype.hasOwnProperty,lr=function(t,e){return th.apply(t,[e])};Ce.escapeRegExpChars=function(t){return t?String(t).replace(eh,"\\$&"):""};var nh={"&":"&","<":"<",">":">",'"':""","'":"'"},sh=/[&<>'"]/g;function rh(t){return nh[t]||t}var ih=`var _ENCODE_HTML_RULES = {
|
|
2
|
+
"&": "&"
|
|
3
|
+
, "<": "<"
|
|
4
|
+
, ">": ">"
|
|
5
|
+
, '"': """
|
|
6
|
+
, "'": "'"
|
|
7
|
+
}
|
|
8
|
+
, _MATCH_HTML = /[&<>'"]/g;
|
|
9
|
+
function encode_char(c) {
|
|
10
|
+
return _ENCODE_HTML_RULES[c] || c;
|
|
11
|
+
};
|
|
12
|
+
`;Ce.escapeXML=function(t){return t==null?"":String(t).replace(sh,rh)};function Mo(){return Function.prototype.toString.call(this)+`;
|
|
13
|
+
`+ih}try{typeof Object.defineProperty=="function"?Object.defineProperty(Ce.escapeXML,"toString",{value:Mo}):Ce.escapeXML.toString=Mo}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Ce.shallowCopy=function(t,e){if(e=e||{},t!=null)for(var n in e)lr(e,n)&&(n==="__proto__"||n==="constructor"||(t[n]=e[n]));return t};Ce.shallowCopyFromList=function(t,e,n){if(n=n||[],e=e||{},t!=null)for(var s=0;s<n.length;s++){var r=n[s];if(typeof e[r]<"u"){if(!lr(e,r)||r==="__proto__"||r==="constructor")continue;t[r]=e[r]}}return t};Ce.cache={_data:{},set:function(t,e){this._data[t]=e},get:function(t){return this._data[t]},remove:function(t){delete this._data[t]},reset:function(){this._data={}}};Ce.hyphenToCamel=function(t){return t.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})};Ce.createNullProtoObjWherePossible=(function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}})();Ce.hasOwnOnlyObject=function(t){var e=Ce.createNullProtoObjWherePossible();for(var n in t)lr(t,n)&&(e[n]=t[n]);return e}});var Bo=C((U1,oh)=>{oh.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var dr=C(B=>{"use strict";p();var hr=w("fs"),en=w("path"),X=qo(),Io=!1,ah=Bo().version,uh="<",ch=">",lh="%",Uo="locals",fh="ejs",hh="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Vo=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],dh=Vo.concat("cache"),No=/^\uFEFF/,fr=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;B.cache=X.cache;B.fileLoader=hr.readFileSync;B.localsName=Uo;B.promiseImpl=new Function("return this;")().Promise;B.resolveInclude=function(t,e,n){var s=en.dirname,r=en.extname,i=en.resolve,o=i(n?e:s(e),t),a=r(t);return a||(o+=".ejs"),o};function Ho(t,e){var n;if(e.some(function(s){return n=B.resolveInclude(t,s,!0),hr.existsSync(n)}))return n}function ph(t,e){var n,s,r=e.views,i=/^[A-Za-z]+:\\|^\//.exec(t);if(i&&i.length)t=t.replace(/^\/*/,""),Array.isArray(e.root)?n=Ho(t,e.root):n=B.resolveInclude(t,e.root||"/",!0);else if(e.filename&&(s=B.resolveInclude(t,e.filename),hr.existsSync(s)&&(n=s)),!n&&Array.isArray(r)&&(n=Ho(t,r)),!n&&typeof e.includer!="function")throw new Error('Could not find the include file "'+e.escapeFunction(t)+'"');return n}function tn(t,e){var n,s=t.filename,r=arguments.length>1;if(t.cache){if(!s)throw new Error("cache option requires a filename");if(n=B.cache.get(s),n)return n;r||(e=Wo(s).toString().replace(No,""))}else if(!r){if(!s)throw new Error("Internal EJS error: no file name or template provided");e=Wo(s).toString().replace(No,"")}return n=B.compile(e,t),t.cache&&B.cache.set(s,n),n}function gh(t,e,n){var s;if(n){try{s=tn(t)(e)}catch(r){return n(r)}n(null,s)}else{if(typeof B.promiseImpl=="function")return new B.promiseImpl(function(r,i){try{s=tn(t)(e),r(s)}catch(o){i(o)}});throw new Error("Please provide a callback function")}}function Wo(t){return B.fileLoader(t)}function mh(t,e){var n=X.shallowCopy(X.createNullProtoObjWherePossible(),e);if(n.filename=ph(t,n),typeof e.includer=="function"){var s=e.includer(t,n.filename);if(s&&(s.filename&&(n.filename=s.filename),s.template))return tn(n,s.template)}return tn(n)}function zo(t,e,n,s,r){var i=e.split(`
|
|
14
|
+
`),o=Math.max(s-3,0),a=Math.min(i.length,s+3),u=r(n),l=i.slice(o,a).map(function(f,c){var h=c+o+1;return(h==s?" >> ":" ")+h+"| "+f}).join(`
|
|
15
|
+
`);throw t.path=u,t.message=(u||"ejs")+":"+s+`
|
|
16
|
+
`+l+`
|
|
17
|
+
|
|
18
|
+
`+t.message,t}function Go(t){return t.replace(/;(\s*$)/,"$1")}B.compile=function(e,n){var s;return n&&n.scope&&(Io||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Io=!0),n.context||(n.context=n.scope),delete n.scope),s=new se(e,n),s.compile()};B.render=function(t,e,n){var s=e||X.createNullProtoObjWherePossible(),r=n||X.createNullProtoObjWherePossible();return arguments.length==2&&X.shallowCopyFromList(r,s,Vo),tn(r,t)(s)};B.renderFile=function(){var t=Array.prototype.slice.call(arguments),e=t.shift(),n,s={filename:e},r,i;return typeof arguments[arguments.length-1]=="function"&&(n=t.pop()),t.length?(r=t.shift(),t.length?X.shallowCopy(s,t.pop()):(r.settings&&(r.settings.views&&(s.views=r.settings.views),r.settings["view cache"]&&(s.cache=!0),i=r.settings["view options"],i&&X.shallowCopy(s,i)),X.shallowCopyFromList(s,r,dh)),s.filename=e):r=X.createNullProtoObjWherePossible(),gh(s,r,n)};B.Template=se;B.clearCache=function(){B.cache.reset()};function se(t,e){var n=X.hasOwnOnlyObject(e),s=X.createNullProtoObjWherePossible();this.templateText=t,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",s.client=n.client||!1,s.escapeFunction=n.escape||n.escapeFunction||X.escapeXML,s.compileDebug=n.compileDebug!==!1,s.debug=!!n.debug,s.filename=n.filename,s.openDelimiter=n.openDelimiter||B.openDelimiter||uh,s.closeDelimiter=n.closeDelimiter||B.closeDelimiter||ch,s.delimiter=n.delimiter||B.delimiter||lh,s.strict=n.strict||!1,s.context=n.context,s.cache=n.cache||!1,s.rmWhitespace=n.rmWhitespace,s.root=n.root,s.includer=n.includer,s.outputFunctionName=n.outputFunctionName,s.localsName=n.localsName||B.localsName||Uo,s.views=n.views,s.async=n.async,s.destructuredLocals=n.destructuredLocals,s.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,s.strict?s._with=!1:s._with=typeof n._with<"u"?n._with:!0,this.opts=s,this.regex=this.createRegex()}se.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};se.prototype={createRegex:function(){var t=hh,e=X.escapeRegExpChars(this.opts.delimiter),n=X.escapeRegExpChars(this.opts.openDelimiter),s=X.escapeRegExpChars(this.opts.closeDelimiter);return t=t.replace(/%/g,e).replace(/</g,n).replace(/>/g,s),new RegExp(t)},compile:function(){var t,e,n=this.opts,s="",r="",i=n.escapeFunction,o,a=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),s+=` var __output = "";
|
|
19
|
+
function __append(s) { if (s !== undefined && s !== null) __output += s }
|
|
20
|
+
`,n.outputFunctionName){if(!fr.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");s+=" var "+n.outputFunctionName+` = __append;
|
|
21
|
+
`}if(n.localsName&&!fr.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var u=" var __locals = ("+n.localsName+` || {}),
|
|
22
|
+
`,l=0;l<n.destructuredLocals.length;l++){var f=n.destructuredLocals[l];if(!fr.test(f))throw new Error("destructuredLocals["+l+"] is not a valid JS identifier.");l>0&&(u+=`,
|
|
23
|
+
`),u+=f+" = __locals."+f}s+=u+`;
|
|
24
|
+
`}n._with!==!1&&(s+=" with ("+n.localsName+` || {}) {
|
|
25
|
+
`,r+=` }
|
|
26
|
+
`),r+=` return __output;
|
|
27
|
+
`,this.source=s+this.source+r}n.compileDebug?t=`var __line = 1
|
|
28
|
+
, __lines = `+JSON.stringify(this.templateText)+`
|
|
29
|
+
, __filename = `+a+`;
|
|
30
|
+
try {
|
|
31
|
+
`+this.source+`} catch (e) {
|
|
32
|
+
rethrow(e, __lines, __filename, __line, escapeFn);
|
|
33
|
+
}
|
|
34
|
+
`:t=this.source,n.client&&(t="escapeFn = escapeFn || "+i.toString()+`;
|
|
35
|
+
`+t,n.compileDebug&&(t="rethrow = rethrow || "+zo.toString()+`;
|
|
36
|
+
`+t)),n.strict&&(t=`"use strict";
|
|
37
|
+
`+t),n.debug&&console.log(t),n.compileDebug&&n.filename&&(t=t+`
|
|
38
|
+
//# sourceURL=`+a+`
|
|
39
|
+
`);try{if(n.async)try{o=new Function("return (async function(){}).constructor;")()}catch(g){throw g instanceof SyntaxError?new Error("This environment does not support async/await"):g}else o=Function;e=new o(n.localsName+", escapeFn, include, rethrow",t)}catch(g){throw g instanceof SyntaxError&&(n.filename&&(g.message+=" in "+n.filename),g.message+=` while compiling ejs
|
|
40
|
+
|
|
41
|
+
`,g.message+=`If the above error is not helpful, you may want to try EJS-Lint:
|
|
42
|
+
`,g.message+="https://github.com/RyanZim/EJS-Lint",n.async||(g.message+=`
|
|
43
|
+
`,g.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),g}var c=n.client?e:function(m){var D=function(y,_){var x=X.shallowCopy(X.createNullProtoObjWherePossible(),m);return _&&(x=X.shallowCopy(x,_)),mh(y,n)(x)};return e.apply(n.context,[m||X.createNullProtoObjWherePossible(),i,D,zo])};if(n.filename&&typeof Object.defineProperty=="function"){var h=n.filename,d=en.basename(h,en.extname(h));try{Object.defineProperty(c,"name",{value:d,writable:!1,enumerable:!1,configurable:!0})}catch{}}return c},generateSource:function(){var t=this.opts;t.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
|
|
44
|
+
`).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var e=this,n=this.parseTemplateText(),s=this.opts.delimiter,r=this.opts.openDelimiter,i=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(o,a){var u;if(o.indexOf(r+s)===0&&o.indexOf(r+s+s)!==0&&(u=n[a+2],!(u==s+i||u=="-"+s+i||u=="_"+s+i)))throw new Error('Could not find matching close tag for "'+o+'".');e.scanLine(o)})},parseTemplateText:function(){for(var t=this.templateText,e=this.regex,n=e.exec(t),s=[],r;n;)r=n.index,r!==0&&(s.push(t.substring(0,r)),t=t.slice(r)),s.push(n[0]),t=t.slice(n[0].length),n=e.exec(t);return t&&s.push(t),s},_addOutput:function(t){if(this.truncate&&(t=t.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!t)return t;t=t.replace(/\\/g,"\\\\"),t=t.replace(/\n/g,"\\n"),t=t.replace(/\r/g,"\\r"),t=t.replace(/"/g,'\\"'),this.source+=' ; __append("'+t+`")
|
|
45
|
+
`},scanLine:function(t){var e=this,n=this.opts.delimiter,s=this.opts.openDelimiter,r=this.opts.closeDelimiter,i=0;switch(i=t.split(`
|
|
46
|
+
`).length-1,t){case s+n:case s+n+"_":this.mode=se.modes.EVAL;break;case s+n+"=":this.mode=se.modes.ESCAPED;break;case s+n+"-":this.mode=se.modes.RAW;break;case s+n+"#":this.mode=se.modes.COMMENT;break;case s+n+n:this.mode=se.modes.LITERAL,this.source+=' ; __append("'+t.replace(s+n+n,s+n)+`")
|
|
47
|
+
`;break;case n+n+r:this.mode=se.modes.LITERAL,this.source+=' ; __append("'+t.replace(n+n+r,n+r)+`")
|
|
48
|
+
`;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==se.modes.LITERAL&&this._addOutput(t),this.mode=null,this.truncate=t.indexOf("-")===0||t.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case se.modes.EVAL:case se.modes.ESCAPED:case se.modes.RAW:t.lastIndexOf("//")>t.lastIndexOf(`
|
|
49
|
+
`)&&(t+=`
|
|
50
|
+
`)}switch(this.mode){case se.modes.EVAL:this.source+=" ; "+t+`
|
|
51
|
+
`;break;case se.modes.ESCAPED:this.source+=" ; __append(escapeFn("+Go(t)+`))
|
|
52
|
+
`;break;case se.modes.RAW:this.source+=" ; __append("+Go(t)+`)
|
|
53
|
+
`;break;case se.modes.COMMENT:break;case se.modes.LITERAL:this._addOutput(t);break}}else this._addOutput(t)}e.opts.compileDebug&&i&&(this.currentLine+=i,this.source+=" ; __line = "+this.currentLine+`
|
|
54
|
+
`)}};B.escapeXML=X.escapeXML;B.__express=B.renderFile;B.VERSION=ah;B.name=fh;typeof window<"u"&&(window.ejs=B)});var de=C(Ke=>{"use strict";p();var Dh=Ke&&Ke.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.getLogger=Ko;Ke.makeDebug=bh;Ke.setLogger=Eh;Ke.clearLoggers=Ch;var _h=Dh(Ff()),gr="oclif";function Nn(t=gr){let e=(0,_h.default)(t);return{child:(n,s)=>Nn(`${t}${s??":"}${n}`),debug:e,error:(n,...s)=>Nn(`${t}:error`).debug(n,...s),info:e,namespace:t,trace:e,warn:e}}var We=new Map;function Ko(t){let e=We.get("root");if(e||pr(Nn(gr)),e=We.get("root"),t){let n=We.get(t);if(n)return n;let s=e.child(t);return We.set(t,s),s}return e}function yh(t){return typeof t.child=="function"&&typeof t.debug=="function"&&typeof t.error=="function"&&typeof t.info=="function"&&typeof t.trace=="function"&&typeof t.warn=="function"&&typeof t.namespace=="string"}function pr(t){We.has(t.namespace)||We.has("root")||(yh(t)?(We.set(t.namespace,t),We.set("root",t)):process.emitWarning("Logger does not match the Logger interface. Using default logger."))}function bh(t){return(e,...n)=>Ko(t).debug(e,...n)}function Eh(t){t&&typeof t!="string"&&"logger"in t&&t.logger?pr(t.logger):pr(Nn(gr))}function Ch(){We.clear()}});var nn=C(Ct=>{"use strict";p();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.stderr=Ct.stdout=void 0;var Et=w("node:util"),vh=(t,...e)=>{!t&&e?console.log((0,Et.format)(...e)):t?console.log(typeof t=="string"?(0,Et.format)(t,...e):(0,Et.format)(...t,...e)):console.log()};Ct.stdout=vh;var Fh=(t,...e)=>{!t&&e?console.error((0,Et.format)(...e)):t?console.error(typeof t=="string"?(0,Et.format)(t,...e):(0,Et.format)(...t,...e)):console.error()};Ct.stderr=Fh});var Xo=C((Z1,Jo)=>{"use strict";p();Jo.exports=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var mr=C((tb,Zo)=>{"use strict";p();var Yo=w("os"),wh=Xo(),Qo=/\s+at.*[(\s](.*)\)?/,Ah=/^(?:(?:(?:node|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,Oh=typeof Yo.homedir>"u"?"":Yo.homedir();Zo.exports=(t,{pretty:e=!1,basePath:n}={})=>{let s=n&&new RegExp(`(at | \\()${wh(n)}`,"g");return t.replace(/\\/g,"/").split(`
|
|
55
|
+
`).filter(r=>{let i=r.match(Qo);if(i===null||!i[1])return!0;let o=i[1];return o.includes(".app/Contents/Resources/electron.asar")||o.includes(".app/Contents/Resources/default_app.asar")?!1:!Ah.test(o)}).filter(r=>r.trim()!=="").map(r=>(s&&(r=r.replace(s,"$1")),e&&(r=r.replace(Qo,(i,o)=>i.replace(o,o.replace(Oh,"~")))),r)).join(`
|
|
56
|
+
`)}});var Hn=C((sb,ea)=>{"use strict";p();ea.exports=(t,e=1,n)=>{if(n={indent:" ",includeEmptyLines:!1,...n},typeof t!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(typeof n.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(e===0)return t;let s=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return t.replace(s,n.indent.repeat(e))}});var na=C((ib,ta)=>{"use strict";p();ta.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var Dr=C((ab,sa)=>{"use strict";p();var xh=na();sa.exports=t=>typeof t=="string"?t.replace(xh(),""):t});var ia=C((cb,_r)=>{"use strict";p();var ra=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);_r.exports=ra;_r.exports.default=ra});var aa=C((fb,oa)=>{"use strict";p();oa.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Wn=C((db,yr)=>{"use strict";p();var Sh=Dr(),jh=ia(),Ph=aa(),ua=t=>{if(typeof t!="string"||t.length===0||(t=Sh(t),t.length===0))return 0;t=t.replace(Ph()," ");let e=0;for(let n=0;n<t.length;n++){let s=t.codePointAt(n);s<=31||s>=127&&s<=159||s>=768&&s<=879||(s>65535&&n++,e+=jh(s)?2:1)}return e};yr.exports=ua;yr.exports.default=ua});var la=C((gb,ca)=>{"use strict";p();ca.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var br=C((Db,ha)=>{p();var sn=la(),fa={};for(let t of Object.keys(sn))fa[sn[t]]=t;var S={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};ha.exports=S;for(let t of Object.keys(S)){if(!("channels"in S[t]))throw new Error("missing channels property: "+t);if(!("labels"in S[t]))throw new Error("missing channel labels property: "+t);if(S[t].labels.length!==S[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=S[t];delete S[t].channels,delete S[t].labels,Object.defineProperty(S[t],"channels",{value:e}),Object.defineProperty(S[t],"labels",{value:n})}S.rgb.hsl=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255,r=Math.min(e,n,s),i=Math.max(e,n,s),o=i-r,a,u;i===r?a=0:e===i?a=(n-s)/o:n===i?a=2+(s-e)/o:s===i&&(a=4+(e-n)/o),a=Math.min(a*60,360),a<0&&(a+=360);let l=(r+i)/2;return i===r?u=0:l<=.5?u=o/(i+r):u=o/(2-i-r),[a,u*100,l*100]};S.rgb.hsv=function(t){let e,n,s,r,i,o=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(o,a,u),f=l-Math.min(o,a,u),c=function(h){return(l-h)/6/f+1/2};return f===0?(r=0,i=0):(i=f/l,e=c(o),n=c(a),s=c(u),o===l?r=s-n:a===l?r=1/3+e-s:u===l&&(r=2/3+n-e),r<0?r+=1:r>1&&(r-=1)),[r*360,i*100,l*100]};S.rgb.hwb=function(t){let e=t[0],n=t[1],s=t[2],r=S.rgb.hsl(t)[0],i=1/255*Math.min(e,Math.min(n,s));return s=1-1/255*Math.max(e,Math.max(n,s)),[r,i*100,s*100]};S.rgb.cmyk=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255,r=Math.min(1-e,1-n,1-s),i=(1-e-r)/(1-r)||0,o=(1-n-r)/(1-r)||0,a=(1-s-r)/(1-r)||0;return[i*100,o*100,a*100,r*100]};function $h(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}S.rgb.keyword=function(t){let e=fa[t];if(e)return e;let n=1/0,s;for(let r of Object.keys(sn)){let i=sn[r],o=$h(t,i);o<n&&(n=o,s=r)}return s};S.keyword.rgb=function(t){return sn[t]};S.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;let r=e*.4124+n*.3576+s*.1805,i=e*.2126+n*.7152+s*.0722,o=e*.0193+n*.1192+s*.9505;return[r*100,i*100,o*100]};S.rgb.lab=function(t){let e=S.rgb.xyz(t),n=e[0],s=e[1],r=e[2];n/=95.047,s/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let i=116*s-16,o=500*(n-s),a=200*(s-r);return[i,o,a]};S.hsl.rgb=function(t){let e=t[0]/360,n=t[1]/100,s=t[2]/100,r,i,o;if(n===0)return o=s*255,[o,o,o];s<.5?r=s*(1+n):r=s+n-s*n;let a=2*s-r,u=[0,0,0];for(let l=0;l<3;l++)i=e+1/3*-(l-1),i<0&&i++,i>1&&i--,6*i<1?o=a+(r-a)*6*i:2*i<1?o=r:3*i<2?o=a+(r-a)*(2/3-i)*6:o=a,u[l]=o*255;return u};S.hsl.hsv=function(t){let e=t[0],n=t[1]/100,s=t[2]/100,r=n,i=Math.max(s,.01);s*=2,n*=s<=1?s:2-s,r*=i<=1?i:2-i;let o=(s+n)/2,a=s===0?2*r/(i+r):2*n/(s+n);return[e,a*100,o*100]};S.hsv.rgb=function(t){let e=t[0]/60,n=t[1]/100,s=t[2]/100,r=Math.floor(e)%6,i=e-Math.floor(e),o=255*s*(1-n),a=255*s*(1-n*i),u=255*s*(1-n*(1-i));switch(s*=255,r){case 0:return[s,u,o];case 1:return[a,s,o];case 2:return[o,s,u];case 3:return[o,a,s];case 4:return[u,o,s];case 5:return[s,o,a]}};S.hsv.hsl=function(t){let e=t[0],n=t[1]/100,s=t[2]/100,r=Math.max(s,.01),i,o;o=(2-n)*s;let a=(2-n)*r;return i=n*r,i/=a<=1?a:2-a,i=i||0,o/=2,[e,i*100,o*100]};S.hwb.rgb=function(t){let e=t[0]/360,n=t[1]/100,s=t[2]/100,r=n+s,i;r>1&&(n/=r,s/=r);let o=Math.floor(6*e),a=1-s;i=6*e-o,(o&1)!==0&&(i=1-i);let u=n+i*(a-n),l,f,c;switch(o){default:case 6:case 0:l=a,f=u,c=n;break;case 1:l=u,f=a,c=n;break;case 2:l=n,f=a,c=u;break;case 3:l=n,f=u,c=a;break;case 4:l=u,f=n,c=a;break;case 5:l=a,f=n,c=u;break}return[l*255,f*255,c*255]};S.cmyk.rgb=function(t){let e=t[0]/100,n=t[1]/100,s=t[2]/100,r=t[3]/100,i=1-Math.min(1,e*(1-r)+r),o=1-Math.min(1,n*(1-r)+r),a=1-Math.min(1,s*(1-r)+r);return[i*255,o*255,a*255]};S.xyz.rgb=function(t){let e=t[0]/100,n=t[1]/100,s=t[2]/100,r,i,o;return r=e*3.2406+n*-1.5372+s*-.4986,i=e*-.9689+n*1.8758+s*.0415,o=e*.0557+n*-.204+s*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,r=Math.min(Math.max(0,r),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[r*255,i*255,o*255]};S.xyz.lab=function(t){let e=t[0],n=t[1],s=t[2];e/=95.047,n/=100,s/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let r=116*n-16,i=500*(e-n),o=200*(n-s);return[r,i,o]};S.lab.xyz=function(t){let e=t[0],n=t[1],s=t[2],r,i,o;i=(e+16)/116,r=n/500+i,o=i-s/200;let a=i**3,u=r**3,l=o**3;return i=a>.008856?a:(i-16/116)/7.787,r=u>.008856?u:(r-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,r*=95.047,i*=100,o*=108.883,[r,i,o]};S.lab.lch=function(t){let e=t[0],n=t[1],s=t[2],r;r=Math.atan2(s,n)*360/2/Math.PI,r<0&&(r+=360);let o=Math.sqrt(n*n+s*s);return[e,o,r]};S.lch.lab=function(t){let e=t[0],n=t[1],r=t[2]/360*2*Math.PI,i=n*Math.cos(r),o=n*Math.sin(r);return[e,i,o]};S.rgb.ansi16=function(t,e=null){let[n,s,r]=t,i=e===null?S.rgb.hsv(t)[2]:e;if(i=Math.round(i/50),i===0)return 30;let o=30+(Math.round(r/255)<<2|Math.round(s/255)<<1|Math.round(n/255));return i===2&&(o+=60),o};S.hsv.ansi16=function(t){return S.rgb.ansi16(S.hsv.rgb(t),t[2])};S.rgb.ansi256=function(t){let e=t[0],n=t[1],s=t[2];return e===n&&n===s?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(s/255*5)};S.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let n=(~~(t>50)+1)*.5,s=(e&1)*n*255,r=(e>>1&1)*n*255,i=(e>>2&1)*n*255;return[s,r,i]};S.ansi256.rgb=function(t){if(t>=232){let i=(t-232)*10+8;return[i,i,i]}t-=16;let e,n=Math.floor(t/36)/5*255,s=Math.floor((e=t%36)/6)/5*255,r=e%6/5*255;return[n,s,r]};S.rgb.hex=function(t){let n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};S.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let n=e[0];e[0].length===3&&(n=n.split("").map(a=>a+a).join(""));let s=parseInt(n,16),r=s>>16&255,i=s>>8&255,o=s&255;return[r,i,o]};S.rgb.hcg=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255,r=Math.max(Math.max(e,n),s),i=Math.min(Math.min(e,n),s),o=r-i,a,u;return o<1?a=i/(1-o):a=0,o<=0?u=0:r===e?u=(n-s)/o%6:r===n?u=2+(s-e)/o:u=4+(e-n)/o,u/=6,u%=1,[u*360,o*100,a*100]};S.hsl.hcg=function(t){let e=t[1]/100,n=t[2]/100,s=n<.5?2*e*n:2*e*(1-n),r=0;return s<1&&(r=(n-.5*s)/(1-s)),[t[0],s*100,r*100]};S.hsv.hcg=function(t){let e=t[1]/100,n=t[2]/100,s=e*n,r=0;return s<1&&(r=(n-s)/(1-s)),[t[0],s*100,r*100]};S.hcg.rgb=function(t){let e=t[0]/360,n=t[1]/100,s=t[2]/100;if(n===0)return[s*255,s*255,s*255];let r=[0,0,0],i=e%1*6,o=i%1,a=1-o,u=0;switch(Math.floor(i)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=a,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=a,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=a}return u=(1-n)*s,[(n*r[0]+u)*255,(n*r[1]+u)*255,(n*r[2]+u)*255]};S.hcg.hsv=function(t){let e=t[1]/100,n=t[2]/100,s=e+n*(1-e),r=0;return s>0&&(r=e/s),[t[0],r*100,s*100]};S.hcg.hsl=function(t){let e=t[1]/100,s=t[2]/100*(1-e)+.5*e,r=0;return s>0&&s<.5?r=e/(2*s):s>=.5&&s<1&&(r=e/(2*(1-s))),[t[0],r*100,s*100]};S.hcg.hwb=function(t){let e=t[1]/100,n=t[2]/100,s=e+n*(1-e);return[t[0],(s-e)*100,(1-s)*100]};S.hwb.hcg=function(t){let e=t[1]/100,s=1-t[2]/100,r=s-e,i=0;return r<1&&(i=(s-r)/(1-r)),[t[0],r*100,i*100]};S.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};S.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};S.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};S.gray.hsl=function(t){return[0,0,t[0]]};S.gray.hsv=S.gray.hsl;S.gray.hwb=function(t){return[0,100,t[0]]};S.gray.cmyk=function(t){return[0,0,0,t[0]]};S.gray.lab=function(t){return[t[0],0,0]};S.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,s=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(s.length)+s};S.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var pa=C((yb,da)=>{p();var zn=br();function Rh(){let t={},e=Object.keys(zn);for(let n=e.length,s=0;s<n;s++)t[e[s]]={distance:-1,parent:null};return t}function Lh(t){let e=Rh(),n=[t];for(e[t].distance=0;n.length;){let s=n.pop(),r=Object.keys(zn[s]);for(let i=r.length,o=0;o<i;o++){let a=r[o],u=e[a];u.distance===-1&&(u.distance=e[s].distance+1,u.parent=s,n.unshift(a))}}return e}function Th(t,e){return function(n){return e(t(n))}}function kh(t,e){let n=[e[t].parent,t],s=zn[e[t].parent][t],r=e[t].parent;for(;e[r].parent;)n.unshift(e[r].parent),s=Th(zn[e[r].parent][r],s),r=e[r].parent;return s.conversion=n,s}da.exports=function(t){let e=Lh(t),n={},s=Object.keys(e);for(let r=s.length,i=0;i<r;i++){let o=s[i];e[o].parent!==null&&(n[o]=kh(o,e))}return n}});var ma=C((Eb,ga)=>{p();var Er=br(),Mh=pa(),vt={},qh=Object.keys(Er);function Bh(t){let e=function(...n){let s=n[0];return s==null?s:(s.length>1&&(n=s),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function Ih(t){let e=function(...n){let s=n[0];if(s==null)return s;s.length>1&&(n=s);let r=t(n);if(typeof r=="object")for(let i=r.length,o=0;o<i;o++)r[o]=Math.round(r[o]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}qh.forEach(t=>{vt[t]={},Object.defineProperty(vt[t],"channels",{value:Er[t].channels}),Object.defineProperty(vt[t],"labels",{value:Er[t].labels});let e=Mh(t);Object.keys(e).forEach(s=>{let r=e[s];vt[t][s]=Ih(r),vt[t][s].raw=Bh(r)})});ga.exports=vt});var Ca=C((vb,Ea)=>{"use strict";p();var Da=(t,e)=>(...n)=>`\x1B[${t(...n)+e}m`,_a=(t,e)=>(...n)=>{let s=t(...n);return`\x1B[${38+e};5;${s}m`},ya=(t,e)=>(...n)=>{let s=t(...n);return`\x1B[${38+e};2;${s[0]};${s[1]};${s[2]}m`},Gn=t=>t,ba=(t,e,n)=>[t,e,n],Ft=(t,e,n)=>{Object.defineProperty(t,e,{get:()=>{let s=n();return Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0}),s},enumerable:!0,configurable:!0})},Cr,wt=(t,e,n,s)=>{Cr===void 0&&(Cr=ma());let r=s?10:0,i={};for(let[o,a]of Object.entries(Cr)){let u=o==="ansi16"?"ansi":o;o===e?i[u]=t(n,r):typeof a=="object"&&(i[u]=t(a[e],r))}return i};function Nh(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[n,s]of Object.entries(e)){for(let[r,i]of Object.entries(s))e[r]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},s[r]=e[r],t.set(i[0],i[1]);Object.defineProperty(e,n,{value:s,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Ft(e.color,"ansi",()=>wt(Da,"ansi16",Gn,!1)),Ft(e.color,"ansi256",()=>wt(_a,"ansi256",Gn,!1)),Ft(e.color,"ansi16m",()=>wt(ya,"rgb",ba,!1)),Ft(e.bgColor,"ansi",()=>wt(Da,"ansi16",Gn,!0)),Ft(e.bgColor,"ansi256",()=>wt(_a,"ansi256",Gn,!0)),Ft(e.bgColor,"ansi16m",()=>wt(ya,"rgb",ba,!0)),e}Object.defineProperty(Ea,"exports",{enumerable:!0,get:Nh})});var Vn=C((wb,Oa)=>{"use strict";p();var rn=Wn(),Hh=Dr(),Wh=Ca(),Un=new Set(["\x1B","\x9B"]),zh=39,Fr="\x07",wa="[",Gh="]",Aa="m",wr=`${Gh}8;;`,va=t=>`${Un.values().next().value}${wa}${t}${Aa}`,Fa=t=>`${Un.values().next().value}${wr}${t}${Fr}`,Uh=t=>t.split(" ").map(e=>rn(e)),vr=(t,e,n)=>{let s=[...e],r=!1,i=!1,o=rn(Hh(t[t.length-1]));for(let[a,u]of s.entries()){let l=rn(u);if(o+l<=n?t[t.length-1]+=u:(t.push(u),o=0),Un.has(u)&&(r=!0,i=s.slice(a+1).join("").startsWith(wr)),r){i?u===Fr&&(r=!1,i=!1):u===Aa&&(r=!1);continue}o+=l,o===n&&a<s.length-1&&(t.push(""),o=0)}!o&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},Vh=t=>{let e=t.split(" "),n=e.length;for(;n>0&&!(rn(e[n-1])>0);)n--;return n===e.length?t:e.slice(0,n).join(" ")+e.slice(n).join("")},Kh=(t,e,n={})=>{if(n.trim!==!1&&t.trim()==="")return"";let s="",r,i,o=Uh(t),a=[""];for(let[l,f]of t.split(" ").entries()){n.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let c=rn(a[a.length-1]);if(l!==0&&(c>=e&&(n.wordWrap===!1||n.trim===!1)&&(a.push(""),c=0),(c>0||n.trim===!1)&&(a[a.length-1]+=" ",c++)),n.hard&&o[l]>e){let h=e-c,d=1+Math.floor((o[l]-h-1)/e);Math.floor((o[l]-1)/e)<d&&a.push(""),vr(a,f,e);continue}if(c+o[l]>e&&c>0&&o[l]>0){if(n.wordWrap===!1&&c<e){vr(a,f,e);continue}a.push("")}if(c+o[l]>e&&n.wordWrap===!1){vr(a,f,e);continue}a[a.length-1]+=f}n.trim!==!1&&(a=a.map(Vh));let u=[...a.join(`
|
|
57
|
+
`)];for(let[l,f]of u.entries()){if(s+=f,Un.has(f)){let{groups:h}=new RegExp(`(?:\\${wa}(?<code>\\d+)m|\\${wr}(?<uri>.*)${Fr})`).exec(u.slice(l).join(""))||{groups:{}};if(h.code!==void 0){let d=Number.parseFloat(h.code);r=d===zh?void 0:d}else h.uri!==void 0&&(i=h.uri.length===0?void 0:h.uri)}let c=Wh.codes.get(Number(r));u[l+1]===`
|
|
58
|
+
`?(i&&(s+=Fa("")),r&&c&&(s+=va(c))):f===`
|
|
59
|
+
`&&(r&&c&&(s+=va(r)),i&&(s+=Fa(i)))}return s};Oa.exports=(t,e,n)=>String(t).normalize().replace(/\r\n/g,`
|
|
60
|
+
`).split(`
|
|
61
|
+
`).map(s=>Kh(s,e,n)).join(`
|
|
62
|
+
`)});var ze=C(Kn=>{"use strict";p();Object.defineProperty(Kn,"__esModule",{value:!0});Kn.settings=void 0;globalThis.oclif||(globalThis.oclif={});Kn.settings=globalThis.oclif});var Ot=C(At=>{"use strict";p();Object.defineProperty(At,"__esModule",{value:!0});At.errtermwidth=At.stdtermwidth=void 0;var Jh=ze();function xa(t){if(!t.isTTY)return 80;let e=t.getWindowSize()[0];return e<1?80:e<40?40:e}var Sa=Number.parseInt(process.env.OCLIF_COLUMNS,10)||Jh.settings.columns;At.stdtermwidth=Sa||xa(process.stdout);At.errtermwidth=Sa||xa(process.stderr)});var at=C((Pb,Ha)=>{p();var{defineProperty:Xh,setPrototypeOf:ka,create:Yh,keys:Qh}=Object,st="",{round:rt,max:Zh}=Math,Ma=t=>{let[,e]=/([a-f\d]{3,6})/i.exec(t)||[],n=e?e.length:0;if(n===3)e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2];else if(6^n)return[0,0,0];let s=parseInt(e,16);return[s>>16&255,s>>8&255,255&s]},qa=(t,e,n)=>t===e&&e===n?t<8?16:t>248?231:rt((t-8)/247*24)+232:16+36*rt(t/51)+6*rt(e/51)+rt(n/51),xr=t=>{let e,n,s,r,i;return t<8?30+t:t<16?t-8+90:(t>=232?e=n=s=(10*(t-232)+8)/255:(i=(t-=16)%36,e=(t/36|0)/5,n=(i/6|0)/5,s=i%6/5),r=2*Zh(e,n,s),r?30+(rt(s)<<2|rt(n)<<1|rt(e))+(2^r?0:60):30)},Sr=(()=>{let t=g=>i.some((m=>g.test(m))),e=globalThis,n=e.Deno,s=!!n,r=e.process||n||{},i=r.argv||r.args||[],o=r.env||{},a=-1;if(s)try{o=o.toObject()}catch{a=0}let u=!!o.PM2_HOME&&!!o.pm_id||o.NEXT_RUNTIME?.includes("edge")||(s?n.isatty(1):!!r.stdout?.isTTY),l="FORCE_COLOR",f=o[l],c=parseInt(f),h=isNaN(c)?f==="false"?0:-1:c,d=l in o&&h||t(/^-{1,2}color=?(true|always)?$/);return d&&(a=h),a<0&&(a=((g,m,D)=>{let y=g.TERM,_=","+Qh(g).join(",");return{"24bit":3,truecolor:3,ansi256:2,ansi:1}[g.COLORTERM]||(g.TF_BUILD?1:/,TEAMCI/.test(_)?2:g.CI?/,GIT(HUB|EA)/.test(_)?3:1:!m||/-mono|dumb/i.test(y)?0:D||/term-(kit|dir)/.test(y)?3:/-256/.test(y)?2:/scr|xterm|tty|ansi|color|[nm]ux|vt|cyg/.test(y)?1:3)})(o,u,(s?n.build.os:r.platform)==="win32")),!h||o.NO_COLOR||t(/^-{1,2}(no-color|color=(false|never))$/)?0:d&&!a||e.window?.chrome?3:a})(),Ba=Sr>0,Ia={open:st,close:st},Y=Ba?(t,e)=>({open:`\x1B[${t}m`,close:`\x1B[${e}m`}):()=>Ia,it=39,ot=49,ja=(t,e)=>(n,s,r)=>Y(((i,o,a)=>xr(qa(i,o,a)))(n,s,r)+t,e),Pa=t=>(e,n,s)=>t(qa(e,n,s)),$a=t=>e=>t(...Ma(e)),on=(t,e,n)=>Y(`38;2;${t};${e};${n}`,it),Xn=(t,e,n)=>Y(`48;2;${t};${e};${n}`,ot),Yn=t=>Y(`38;5;${t}`,it),Qn=t=>Y(`48;5;${t}`,ot);Sr===2?(on=Pa(Yn),Xn=Pa(Qn)):Sr===1&&(on=ja(0,it),Xn=ja(10,ot),Yn=t=>Y(xr(t),it),Qn=t=>Y(xr(t)+10,ot));var Ar,xe={ansi256:Yn,bgAnsi256:Qn,fg:Yn,bg:Qn,rgb:on,bgRgb:Xn,hex:$a(on),bgHex:$a(Xn),visible:Ia,reset:Y(0,0),bold:Y(1,22),dim:Y(2,22),italic:Y(3,23),underline:Y(4,24),inverse:Y(7,27),hidden:Y(8,28)},Ra="Bright",Jn=30;"black,red,green,yellow,blue,magenta,cyan,white".split(",").map((t=>{Ar="bg"+t[0].toUpperCase()+t.slice(1),xe[t]=Y(Jn,it),xe[t+Ra]=Y(60+Jn,it),xe[Ar]=Y(Jn+10,ot),xe[Ar+Ra]=Y(70+Jn++,ot)})),xe.grey=xe.gray=Y(90,it),xe.bgGrey=xe.bgGray=Y(100,ot),xe.strikethrough=xe.strike=Y(9,29);var jr,La={},Ta=({_p:t},{open:e,close:n})=>{let s=(o,...a)=>{if(!o){if(e&&e===n)return e;if(o==null||st===o)return st}let u=o.raw?String.raw(o,...a).replace(/\\n/g,`
|
|
63
|
+
`):st+o,l=s._p,{_a:f,_b:c}=l;if(u.includes("\x1B"))for(;l;){let h,d=l.close,g=l.open,m=d.length,D=st,y=0;if(m){for(;~(h=u.indexOf(d,y));y=h+m)D+=u.slice(y,h)+g;u=D+u.slice(y)}l=l._p}return u.includes(`
|
|
64
|
+
`)&&(u=u.replace(/(\r?\n)/g,c+"$1"+f)),f+u+c},r=e,i=n;return t&&(r=t._a+e,i=n+t._b),ka(s,jr),s._p={open:e,close:n,_a:r,_b:i,_p:t},s.open=r,s.close=i,s},Na=function(){let t={Ansis:Na,isSupported:()=>Ba,strip:e=>e.replace(/[][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,st),extend(e){for(let n in e){let s=e[n],r=(typeof s)[0],i=r==="s"?on(...Ma(s)):s;La[n]=r==="f"?{get(){return(...o)=>Ta(this,s(...o))}}:{get(){let o=Ta(this,i);return Xh(this,n,{value:o}),o}}}return jr=Yh({},La),ka(t,jr),t}};return t.extend(xe)},Or=new Na;Ha.exports=Or,Or.default=Or});var Wa=C(Zn=>{"use strict";p();Object.defineProperty(Zn,"__esModule",{value:!0});Zn.STANDARD_ANSI=void 0;Zn.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]});var Ga=C(Pr=>{"use strict";p();Object.defineProperty(Pr,"__esModule",{value:!0});Pr.supportsColor=ed;var za=vf();function ed(){return!!za.stdout&&!!za.stderr}});var ve=C(xt=>{"use strict";p();var td=xt&&xt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xt,"__esModule",{value:!0});xt.colorize=rd;xt.parseTheme=Va;var $r=td(at()),nd=Wa(),sd=Ga();function Ua(t){return nd.STANDARD_ANSI.includes(t)}function rd(t,e){if(!t||!(0,sd.supportsColor)())return e;if(Ua(t))return $r.default[t](e);if(t.startsWith("#"))return $r.default.hex(t)(e);if(t.startsWith("rgb")){let[n,s,r]=t.slice(4,-1).split(",").map(i=>Number.parseInt(i.trim(),10));return $r.default.rgb(n,s,r)(e)}return e}function Va(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?id(n):Va(n)]).filter(([e,n])=>n))}function id(t){return t.startsWith("#")||t.startsWith("rgb")||Ua(t)?t:void 0}});var ut=C(Je=>{"use strict";p();var es=Je&&Je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Je,"__esModule",{value:!0});Je.CLIError=void 0;Je.addOclifExitCode=Ja;var od=es(mr()),Rr=es(Hn()),ad=es(Vn()),ud=es(Oe()),cd=Ot(),ld=ze(),Ka=ve();function Ja(t,e){return"oclif"in t||(t.oclif={}),t.oclif.exit=e?.exit===void 0?ud.default.getInstance().get("exitCodes")?.default??2:e.exit,t}var an=class extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,n={}){super(e instanceof Error?e.message:e),Ja(this,n),this.code=n.code,this.suggestions=n.suggestions}get bang(){try{return(0,Ka.colorize)("red",process.platform==="win32"?"\xBB":"\u203A")}catch{}}get stack(){return(0,od.default)(super.stack,{pretty:!0})}render(){if(ld.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,ad.default)(e,cd.errtermwidth-6,{hard:!0,trim:!1}),e=(0,Rr.default)(e,3),e=(0,Rr.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,Rr.default)(e,1),e}};Je.CLIError=an;(function(t){class e extends t{constructor(s){super(s instanceof Error?s.message:s),this.name="Warning"}get bang(){try{return(0,Ka.colorize)("yellow",process.platform==="win32"?"\xBB":"\u203A")}catch{}}}t.Warn=e})(an||(Je.CLIError=an={}))});var ns=C(St=>{"use strict";p();var Xa=St&&St.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(St,"__esModule",{value:!0});St.applyPrettyPrintOptions=pd;St.default=md;var ts=Xa(Hn()),fd=Xa(Vn()),hd=Ot(),dd=ze();function pd(t,e){let n=["message","code","ref","suggestions"];for(let s of n)!(s in t)&&e[s]&&(t[s]=e[s]);return t}var gd=t=>{let e="Try this:";if(!t||t.length===0)return;if(t.length===1)return`${e} ${t[0]}`;let n=t.map(s=>`* ${s}`).join(`
|
|
65
|
+
`);return`${e}
|
|
66
|
+
${(0,ts.default)(n,2)}`};function md(t){if(dd.settings.debug)return t.stack;let{bang:e,code:n,message:s,name:r,ref:i,suggestions:o}=t,a=s?`${r||"Error"}: ${s}`:void 0,u=n?`Code: ${n}`:void 0,l=gd(o),f=i?`Reference: ${i}`:void 0,c=[a,u,l,f].filter(Boolean).join(`
|
|
67
|
+
`),h=(0,fd.default)(c,hd.errtermwidth-6,{hard:!0,trim:!1});return h=(0,ts.default)(h,3),h=(0,ts.default)(h,1,{includeEmptyLines:!0,indent:e||""}),h=(0,ts.default)(h,1),h}});var jt=C(Te=>{"use strict";p();var Dd=Te&&Te.__createBinding||(Object.create?(function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}):(function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]})),_d=Te&&Te.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yd=Te&&Te.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var s=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(s[s.length]=r);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var s=t(e),r=0;r<s.length;r++)s[r]!=="default"&&Dd(n,e,s[r]);return _d(n,e),n}})();Object.defineProperty(Te,"__esModule",{value:!0});Te.error=Za;var bd=de(),Ed=nn(),Ya=ut(),Qa=yd(ns());function Za(t,e={}){let n;if(typeof t=="string")n=new Ya.CLIError(t,e);else if(t instanceof Error)n=(0,Ya.addOclifExitCode)(t,e);else throw new TypeError("first argument must be a string or instance of Error");if(n=(0,Qa.applyPrettyPrintOptions)(n,e),e.exit===!1){let s=(0,Qa.default)(n);s&&(0,Ed.stderr)(s),n?.stack&&(0,bd.getLogger)().error(n.stack)}else throw n}Te.default=Za});var rs=C(ss=>{"use strict";p();Object.defineProperty(ss,"__esModule",{value:!0});ss.ExitError=void 0;var Cd=ut(),Lr=class extends Cd.CLIError{code="EEXIT";constructor(e=1){super(`EEXIT: ${e}`,{exit:e})}render(){return""}};ss.ExitError=Lr});var kr=C(is=>{"use strict";p();Object.defineProperty(is,"__esModule",{value:!0});is.ModuleLoadError=void 0;var vd=ut(),Tr=class extends vd.CLIError{code="MODULE_NOT_FOUND";constructor(e){super(`[MODULE_NOT_FOUND] ${e}`,{exit:1}),this.name="ModuleLoadError"}};is.ModuleLoadError=Tr});var os=C(Mr=>{"use strict";p();Object.defineProperty(Mr,"__esModule",{value:!0});Mr.exit=wd;var Fd=rs();function wd(t=0){throw new Fd.ExitError(t)}});var Pt=C(ct=>{"use strict";p();var Ad=ct&&ct.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ct,"__esModule",{value:!0});ct.warn=qr;ct.memoizedWarn=jd;var Od=de(),xd=nn(),eu=ut(),Sd=Ad(ns());function qr(t){let e;if(typeof t=="string")e=new eu.CLIError.Warn(t);else if(t instanceof Error)e=(0,eu.addOclifExitCode)(t);else throw new TypeError("first argument must be a string or instance of Error");let n=(0,Sd.default)(e);n&&(0,xd.stderr)(n),e?.stack&&(0,Od.getLogger)().error(e.stack)}var tu=new Set;function jd(t){tu.has(t)||qr(t),tu.add(t)}ct.default=qr});var au=C(Br=>{"use strict";p();Object.defineProperty(Br,"__esModule",{value:!0});Br.readTSConfig=Ld;var nu=w("node:fs/promises"),iu=w("node:path"),Pd=Pt(),$d=de(),su=ee(),Rd=(0,$d.makeDebug)("read-tsconfig");function ru(t,e){try{return w.resolve(e,{paths:[t]})}catch{}}async function ou(t,e){let n;try{n=await e(t)}catch{n=!1}if(n)return t;let s=(0,iu.dirname)(t);if(s!==t)return ou(s,e)}async function Ld(t,e="tsconfig.json"){let n=[],s;try{s=wf()}catch{try{s=w(t+"/node_modules/typescript")}catch{}}if(!s){(0,Pd.memoizedWarn)("Could not find typescript. Please ensure that typescript is a devDependency. Falling back to compiled source.");return}let r=async i=>{let o=await ou(i,async a=>(await(0,nu.readdir)(a)).includes("package.json"));if(o)try{let a=await(0,nu.readFile)(i,"utf8"),u=s?.parseConfigFileTextToJson(i,a).config;if(n.push(u),u.extends){if(u.extends.startsWith(".")){let f=ru(o,u.extends);return f?r(f):void 0}let l=ru(o,u.extends);if(l)return r(l)}return u}catch(a){Rd(a)}};return await r((0,iu.join)(t,e)),{compilerOptions:(0,su.mergeNestedObjects)(n,"compilerOptions"),"ts-node":(0,su.mergeNestedObjects)(n,"ts-node")}}});var $t=C(lt=>{"use strict";p();Object.defineProperty(lt,"__esModule",{value:!0});lt.collectUsableIds=void 0;lt.makeDebug=kd;lt.getPermutations=Ir;lt.getCommandIdPermutations=Md;var Td=de();function kd(...t){return(e,...n)=>(0,Td.getLogger)(["config",...t].join(":")).debug(e,...n)}function Ir(t){if(t.length===0)return[];if(t.length===1)return[t];let e=[],n=Ir(t.slice(1)),s=t[0];for(let r=0,i=n.length;r<i;r++){let o=n[r];for(let a=0,u=o.length;a<=u;a++){let l=o.slice(0,a),f=o.slice(a),c=[...l,s,...f];e.push(c)}}return e}function Md(t){return Ir(t.split(":")).flatMap(e=>e.join(":"))}var qd=t=>new Set(t.flatMap(e=>e.split(":").map((n,s,r)=>r.slice(0,s+1).join(":"))));lt.collectUsableIds=qd});var Rt=C(Se=>{"use strict";p();var Bd=Se&&Se.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Se,"__esModule",{value:!0});Se.TS_CONFIGS=void 0;Se.tsPath=Zd;var uu=w("node:fs/promises"),pe=w("node:path"),Id=w("node:url"),Nd=Bd(Oe()),un=Pt(),cu=ze(),Hd=Le(),Wd=au(),Nr=ee(),zd=$t(),I=(0,zd.makeDebug)("ts-path");Se.TS_CONFIGS={};var as=new Set;function Gd(){return process.execPath.split(pe.sep).includes("bun")?"bun":process.execArgv.length===0?"node":process.execArgv[0]==="--require"&&process.execArgv[1].split(pe.sep).includes("ts-node")||process.execArgv[0].split(pe.sep).includes("ts-node")?"ts-node":process.execArgv[0]==="--require"&&process.execArgv[1].split(pe.sep).includes("tsx")?"tsx":"node"}var Hr=Gd();function Ud(t){return"code"in t&&t.code==="ENOENT"}async function Vd(t){try{if(Se.TS_CONFIGS[t])return Se.TS_CONFIGS[t];let e=await(0,Wd.readTSConfig)(t);return e?(I("tsconfig: %O",e),Se.TS_CONFIGS[t]=e,Se.TS_CONFIGS[t]):void 0}catch(e){if(Ud(e))return;I(`Could not parse tsconfig.json. Skipping typescript path lookup for ${t}.`),(0,un.memoizedWarn)(`Could not parse tsconfig.json for ${t}. Falling back to compiled source.`)}}async function Kd(t,e){if(!as.has(t))try{let n=e==="module"?"tsx/esm/api":"tsx/cjs/api",s=w.resolve(n,{paths:[t]});if(!s)return;I("registering tsx at",t),I("tsx path:",s);let{href:r}=(0,Id.pathToFileURL)(s);I("tsx href:",r);let{register:i}=await import(r);I("Successfully imported tsx"),i(),as.add(t)}catch(n){I(`Could not find tsx. Skipping tsx registration for ${t}.`),I(n)}}async function Jd(t,e){if(as.has(t))return;I("registering ts-node at",t);let n=w.resolve("ts-node",{paths:[t,__dirname]});I("ts-node path:",n);let s;try{s=w(n),I("Successfully required ts-node")}catch(f){I(`Could not find ts-node at ${n}. Skipping ts-node registration for ${t}.`),I(f),(0,un.memoizedWarn)(`Could not find ts-node at ${n}. Please ensure that ts-node is a devDependency. Falling back to compiled source.`);return}let r=[(0,pe.join)(t,"node_modules","@types")],i=[];if(e.compilerOptions.rootDirs)for(let f of e.compilerOptions.rootDirs)i.push((0,pe.join)(t,f));else e.compilerOptions.rootDir?i.push((0,pe.join)(t,e.compilerOptions.rootDir)):e.compilerOptions.baseUrl?i.push((0,pe.join)(t,e.compilerOptions.baseUrl)):i.push((0,pe.join)(t,"src"));let{baseUrl:o,rootDir:a,...u}=e.compilerOptions,l={compilerOptions:{...u,rootDirs:i,typeRoots:r},...e["ts-node"],cwd:t,esm:e["ts-node"]?.esm??!0,experimentalSpecifierResolution:e["ts-node"]?.experimentalSpecifierResolution??"explicit",scope:!0,scopeDir:t,skipProject:!0,transpileOnly:!0};I("ts-node options: %O",l),s.register(l),as.add(t)}function Xd(t,e,n){return(n||t?.moduleType==="commonjs")&&e?.moduleType==="module"&&!e?.pjson.devDependencies?.tsx}function Yd(t,e,n){if(e?.moduleType!=="module"||n)return!1;let s=Number.parseInt(process.version.replace("v","").split(".")[0],10);return Hr==="ts-node"&&s>=20}async function Qd(t,e,n){let s=await Vd(t);if(!s)return e;I(`Determining path for ${e}`),Hr==="bun"?I(`Skipping ts-node registration for ${t} because the runtime is: ${Hr}`):(await Kd(t,n?.moduleType),await Jd(t,s));let{baseUrl:r,outDir:i,rootDir:o,rootDirs:a}=s.compilerOptions,u=o??(a??[])[0]??r;if(!u)return I(`no rootDir, rootDirs, or baseUrl specified in tsconfig.json. Returning default path ${e}`),e;if(!i)return I(`no outDir specified in tsconfig.json. Returning default path ${e}`),e;let l=(0,pe.join)(t,i),f=(0,pe.join)(t,u),c=(0,pe.relative)(l,e),h=(0,pe.join)(f,c).replace(/\.js$/,"");return I(`lib dir: ${l}`),I(`src dir: ${f}`),I(`src directory to find: ${h}`),(0,Hd.existsSync)(h)?(I(`Found source directory for ${e} at ${h}`),h):(await Promise.all([(0,uu.access)(`${h}.ts`).then(()=>`${h}.ts`).catch(()=>!1),(0,uu.access)(`${h}.tsx`).then(()=>`${h}.tsx`).catch(()=>!1)])).some(Boolean)?(I(`Found source file for ${e} at ${h}`),h):(I(`No source file found. Returning default path ${e}`),(0,Nr.isProd)()||(0,un.memoizedWarn)(`Could not find source for ${e} based on tsconfig. Defaulting to compiled source.`),e)}async function Zd(t,e,n){let s=n?.options.isRoot?n:Nd.default.getInstance().get("rootPlugin");if(!e)return e;e=e.startsWith(t)?e:(0,pe.join)(t,e);let r=cu.settings.enableAutoTranspile??cu.settings.tsnodeEnabled;if(r===!1)return I(`Skipping typescript path lookup for ${t} because enableAutoTranspile is explicitly set to false`),e;let i=(0,Nr.isProd)();if(r===void 0&&i&&n?.type!=="link")return I(`Skipping typescript path lookup for ${t} because NODE_ENV is NOT "test" or "development"`),e;if(Xd(s,n,i)){I(`Skipping typescript path lookup for ${t} because it's an ESM module (NODE_ENV: ${process.env.NODE_ENV}, root plugin module type: ${s?.moduleType})`);let o=process.env.OCLIF_DISABLE_LINKED_ESM_WARNING&&(0,Nr.isTruthy)(process.env.OCLIF_DISABLE_LINKED_ESM_WARNING);return n?.type==="link"&&!o&&(0,un.memoizedWarn)(`${n?.name} is a linked ESM module and cannot be auto-transpiled. Existing compiled source will be used instead.`),e}if(Yd(t,n,i))return I(`Skipping typescript path lookup for ${t} because ts-node is run in node version ${process.version}"`),(0,un.memoizedWarn)("ts-node executable cannot transpile ESM in Node 20. Existing compiled source will be used instead. See https://github.com/oclif/core/issues/817."),e;try{return await Qd(t,e,n)}catch(o){return I(o),e}}});var Wr=C((aE,fu)=>{"use strict";p();var lu=w("path");function ep(t){let e=lu.basename(t);return lu.sep==="\\"&&(e=e.toLowerCase()),e==="node_modules"}fu.exports=ep});var zr=C((cE,hu)=>{"use strict";p();hu.exports=new Map});var gu=C((fE,pu)=>{"use strict";p();var cs=w("path"),{promisify:tp}=w("util"),np=tp(w("fs").readFile),sp=Wr(),Gr=zr(),us=new Map;async function rp(t){if(sp(t))return"commonjs";try{return JSON.parse(await np(cs.resolve(t,"package.json"))).type||"commonjs"}catch{}let e=cs.dirname(t);return e===t?"commonjs":du(e)}async function du(t){if(Gr.has(t))return Gr.get(t);if(us.has(t))return us.get(t);let e=rp(t);us.set(t,e);let n=await e;return Gr.set(t,n),us.delete(t),n}function ip(t){return du(cs.resolve(cs.dirname(t)))}pu.exports=ip});var _u=C((dE,Du)=>{"use strict";p();var ls=w("path"),{readFileSync:op}=w("fs"),ap=Wr(),Ur=zr();function up(t){if(ap(t))return"commonjs";try{return JSON.parse(op(ls.resolve(t,"package.json"))).type||"commonjs"}catch{}let e=ls.dirname(t);return e===t?"commonjs":mu(e)}function mu(t){if(Ur.has(t))return Ur.get(t);let e=up(t);return Ur.set(t,e),e}function cp(t){return mu(ls.resolve(ls.dirname(t)))}Du.exports=cp});var yu=C((gE,Vr)=>{"use strict";p();var lp=gu(),fp=_u();Vr.exports=t=>lp(t);Vr.exports.sync=fp});var cn=C(Lt=>{"use strict";p();Object.defineProperty(Lt,"__esModule",{value:!0});Lt.load=mp;Lt.loadWithData=Dp;Lt.loadWithDataFromManifest=_p;Lt.isPathModule=Jr;var hp=yu(),dp=w("node:fs"),fs=w("node:path"),Xr=w("node:url"),bu=Rt(),Kr=kr(),Cu=Le(),pp=[".ts",".js",".mjs",".cjs",".mts",".cts",".tsx",".jsx"],gp=t=>t.type!==void 0;function Yr(t,e,n){throw t.code==="MODULE_NOT_FOUND"||t.code==="ERR_MODULE_NOT_FOUND"?new Kr.ModuleLoadError(`${e?"import()":"require"} failed to load ${n}: ${t.message}`):t}async function mp(t,e){let n,s;try{return{filePath:n,isESM:s}=await vu(t,e),s?await import((0,Xr.pathToFileURL)(n).href):w(n)}catch(r){Yr(r,s,n??e)}}async function Dp(t,e){let n,s;try{({filePath:n,isESM:s}=await vu(t,e));let r=s?await import((0,Xr.pathToFileURL)(n).href):w(n);return{filePath:n,isESM:s,module:r}}catch(r){Yr(r,s,n??e)}}async function _p(t,e){let{id:n,isESM:s,relativePath:r}=t;if(!r)throw new Kr.ModuleLoadError(`Cached command ${n} does not have a relative path`);if(s===void 0)throw new Kr.ModuleLoadError(`Cached command ${n} does not have the isESM property set`);let i=(0,fs.join)(e,r.join(fs.sep));try{let o=s?await import((0,Xr.pathToFileURL)(i).href):w(i);return{filePath:i,isESM:s,module:o}}catch(o){Yr(o,s,i??e)}}function Jr(t){switch((0,fs.extname)(t).toLowerCase()){case".js":case".jsx":case".ts":case".tsx":return hp.sync(t)==="module";case".mjs":case".mts":return!0;default:return!1}}async function vu(t,e){let n,s;try{s=w.resolve(e),n=Jr(s)}catch{s=(gp(t)?await(0,bu.tsPath)(t.root,e,t):await(0,bu.tsPath)(t.root,e))??e;let r=!1,i=!1;if((0,Cu.existsSync)(s)){r=!0;try{(0,dp.lstatSync)(s)?.isDirectory?.()&&(r=!1,i=!0)}catch{}}if(!r){let o=Eu(s);!o&&i&&(o=Eu((0,fs.join)(s,"index"))),o&&(s=o)}n=Jr(s)}return{filePath:s,isESM:n}}function Eu(t){for(let e of pp){let n=`${t}${e}`;if((0,Cu.existsSync)(n))return n}return null}});var ds=C(hs=>{"use strict";p();Object.defineProperty(hs,"__esModule",{value:!0});hs.SINGLE_COMMAND_CLI_SYMBOL=void 0;hs.SINGLE_COMMAND_CLI_SYMBOL=Symbol("SINGLE_COMMAND_CLI").toString()});var Qr=C(ps=>{"use strict";p();Object.defineProperty(ps,"__esModule",{value:!0});ps.cacheDefaultValue=void 0;var yp=async(t,e)=>{if(!(e&&t.noCacheDefault)){if(typeof t.defaultHelp=="function")try{return await t.defaultHelp({flags:{},options:t})}catch{return}if(typeof t.default=="function")try{return await t.default({flags:{},options:t})}catch{}else return t.default}};ps.cacheDefaultValue=yp});var ft=C(gs=>{"use strict";p();Object.defineProperty(gs,"__esModule",{value:!0});gs.toStandardizedId=bp;gs.toConfiguredId=Ep;function bp(t,e){return t.replaceAll(new RegExp(e.topicSeparator,"g"),":")}function Ep(t,e){return t.replaceAll(new RegExp(":","g"),e.topicSeparator||":")}});var ei=C(ms=>{"use strict";p();Object.defineProperty(ms,"__esModule",{value:!0});ms.ActionBase=void 0;var Fu=w("node:util"),wu=ee(),Zr=class{std="stderr";stdmocks;type;stdmockOrigs={stderr:process.stderr.write,stdout:process.stdout.write};get globals(){globalThis.ux=globalThis.ux||{};let e=globalThis.ux;return e.action=e.action||{},e}get output(){return this.globals.output}set output(e){this.globals.output=e}get running(){return!!this.task}get status(){return this.task?this.task.status:void 0}set status(e){let{task:n}=this;n&&n.status!==e&&(this._updateStatus(e,n.status),n.status=e)}get task(){return this.globals.action.task}set task(e){this.globals.action.task=e}_flushStdout(){try{let e="",n;for(;this.stdmocks&&this.stdmocks.length>0;){let s=this.stdmocks.shift();n=s[0],this._write(n,s[1]),e+=s[1][0].toString("utf8")}e&&n&&e.at(-1)!==`
|
|
68
|
+
`&&this._write(n,`
|
|
69
|
+
`)}catch(e){this._write("stderr",(0,Fu.inspect)(e))}}_pause(e){throw new Error("not implemented")}_resume(){this.task&&this.start(this.task.action,this.task.status)}_start(e){throw new Error("not implemented")}_stdout(e){try{if(e){if(this.stdmocks)return;this.stdmockOrigs={stderr:process.stderr.write,stdout:process.stdout.write},this.stdmocks=[],process.stdout.write=(...n)=>(this.stdmocks.push(["stdout",n]),!0),process.stderr.write=(...n)=>(this.stdmocks.push(["stderr",n]),!0)}else{if(!this.stdmocks)return;delete this.stdmocks,process.stdout.write=this.stdmockOrigs.stdout,process.stderr.write=this.stdmockOrigs.stderr}}catch(n){this._write("stderr",(0,Fu.inspect)(n))}}_stop(e){throw new Error("not implemented")}_updateStatus(e,n){}_write(e,n){switch(e){case"stderr":{this.stdmockOrigs.stderr.apply(process.stderr,(0,wu.castArray)(n));break}case"stdout":{this.stdmockOrigs.stdout.apply(process.stdout,(0,wu.castArray)(n));break}default:throw new Error(`invalid std: ${e}`)}}pause(e,n){let{task:s}=this,r=s&&s.active;s&&r&&(this._pause(n),this._stdout(!1),s.active=!1);let i=e();return s&&r&&this._resume(),i}async pauseAsync(e,n){let{task:s}=this,r=s&&s.active;s&&r&&(this._pause(n),this._stdout(!1),s.active=!1);let i=await e();return s&&r&&this._resume(),i}start(e,n,s={}){this.std=s.stdout?"stdout":"stderr";let r={action:e,active:!!(this.task&&this.task.active),status:n};this.task=r,this._start(s),r.active=!0,this._stdout(!0)}stop(e="done"){let{task:n}=this;n&&(this._stop(e),n.active=!1,this.task=void 0,this._stdout(!1))}};ms.ActionBase=Zr});var Au=C(ni=>{"use strict";p();Object.defineProperty(ni,"__esModule",{value:!0});var Cp=ei(),ti=class extends Cp.ActionBase{type="simple";_pause(e){e?this._updateStatus(e):this._flush()}_resume(){}_start(){this.task&&this._render(this.task.action,this.task.status)}_stop(e){this.task&&this._updateStatus(e,this.task.status,!0)}_updateStatus(e,n,s=!1){this.task&&(this.task.active&&!n?this._write(this.std,` ${e}`):this._write(this.std,`${this.task.action}... ${e}`),(s||!n)&&this._flush())}_flush(){this._write(this.std,`
|
|
70
|
+
`),this._flushStdout()}_render(e,n){this.task&&(this.task.active&&this._flush(),this._write(this.std,n?`${e}... ${n}`:`${e}...`))}};ni.default=ti});var xu=C((jE,si)=>{"use strict";p();var M=si.exports;si.exports.default=M;var N="\x1B[",ln="\x1B]",Tt="\x07",Ds=";",Ou=process.env.TERM_PROGRAM==="Apple_Terminal";M.cursorTo=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");return typeof e!="number"?N+(t+1)+"G":N+(e+1)+";"+(t+1)+"H"};M.cursorMove=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");let n="";return t<0?n+=N+-t+"D":t>0&&(n+=N+t+"C"),e<0?n+=N+-e+"A":e>0&&(n+=N+e+"B"),n};M.cursorUp=(t=1)=>N+t+"A";M.cursorDown=(t=1)=>N+t+"B";M.cursorForward=(t=1)=>N+t+"C";M.cursorBackward=(t=1)=>N+t+"D";M.cursorLeft=N+"G";M.cursorSavePosition=Ou?"\x1B7":N+"s";M.cursorRestorePosition=Ou?"\x1B8":N+"u";M.cursorGetPosition=N+"6n";M.cursorNextLine=N+"E";M.cursorPrevLine=N+"F";M.cursorHide=N+"?25l";M.cursorShow=N+"?25h";M.eraseLines=t=>{let e="";for(let n=0;n<t;n++)e+=M.eraseLine+(n<t-1?M.cursorUp():"");return t&&(e+=M.cursorLeft),e};M.eraseEndLine=N+"K";M.eraseStartLine=N+"1K";M.eraseLine=N+"2K";M.eraseDown=N+"J";M.eraseUp=N+"1J";M.eraseScreen=N+"2J";M.scrollUp=N+"S";M.scrollDown=N+"T";M.clearScreen="\x1Bc";M.clearTerminal=process.platform==="win32"?`${M.eraseScreen}${N}0f`:`${M.eraseScreen}${N}3J${N}H`;M.beep=Tt;M.link=(t,e)=>[ln,"8",Ds,Ds,e,Tt,t,ln,"8",Ds,Ds,Tt].join("");M.image=(t,e={})=>{let n=`${ln}1337;File=inline=1`;return e.width&&(n+=`;width=${e.width}`),e.height&&(n+=`;height=${e.height}`),e.preserveAspectRatio===!1&&(n+=";preserveAspectRatio=0"),n+":"+t.toString("base64")+Tt};M.iTerm={setCwd:(t=process.cwd())=>`${ln}50;CurrentDir=${t}${Tt}`,annotation:(t,e={})=>{let n=`${ln}1337;`,s=typeof e.x<"u",r=typeof e.y<"u";if((s||r)&&!(s&&r&&typeof e.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return t=t.replace(/\|/g,""),n+=e.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",e.length>0?n+=(s?[t,e.length,e.x,e.y]:[e.length,t]).join("|"):n+=t,n+Tt}}});var Su=C(($E,vp)=>{vp.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var $u=C((RE,Pu)=>{"use strict";p();var _s=Object.assign({},Su()),ju=Object.keys(_s);Object.defineProperty(_s,"random",{get(){let t=Math.floor(Math.random()*ju.length),e=ju[t];return _s[e]}});Pu.exports=_s});var Lu=C(fn=>{"use strict";p();var oi=fn&&fn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fn,"__esModule",{value:!0});var ri=xu(),Fp=oi(at()),Ru=oi($u()),wp=oi(Oe()),Ap=Ot(),Op=ve(),xp=ei(),ii=class extends xp.ActionBase{type="spinner";color="magenta";frameIndex;frames;spinner;constructor(){super(),this.frames=this.getFrames(),this.frameIndex=0}_frame(){let e=this.frames[this.frameIndex];return this.frameIndex=++this.frameIndex%this.frames.length,this.colorize(e)}_pause(e){this.spinner&&clearInterval(this.spinner),this._reset(),e&&this._render(` ${e}`),this.output=void 0}_start(e){this.color=wp.default.getInstance().get("config")?.theme?.spinner??this.color,e.style&&(this.frames=this.getFrames(e)),this._reset(),this.spinner&&clearInterval(this.spinner),this._render(),this.spinner=setInterval(s=>this._render.bind(this)(s),process.platform==="win32"?500:100,"spinner"),this.spinner.unref()}_stop(e){this.task&&(this.task.status=e),this.spinner&&clearInterval(this.spinner),this._render(),this.output=void 0}colorize(e){return(0,Op.colorize)(this.color,e)}_lines(e){return Fp.default.strip(e).split(`
|
|
71
|
+
`).map(n=>Math.ceil(n.length/Ap.errtermwidth)).reduce((n,s)=>n+s,0)}_render(e){if(!this.task)return;this._reset(),this._flushStdout();let n=e==="spinner"?` ${this._frame()}`:e||"",s=this.task.status?` ${this.task.status}`:"";this.output=`${this.task.action}...${n}${s}
|
|
72
|
+
`,this._write(this.std,this.output)}_reset(){if(!this.output)return;let e=this._lines(this.output);this._write(this.std,ri.cursorLeft+ri.cursorUp(e)+ri.eraseDown),this.output=void 0}getFrames(e){return e?.style?Ru.default[e.style].frames:Ru.default[process.platform==="win32"?"line":"dots2"].frames}};fn.default=ii});var ai=C(hn=>{"use strict";p();Object.defineProperty(hn,"__esModule",{value:!0});hn.stringifyInput=ku;hn.tokenize=Mu;hn.default=Rp;var Sp=ve(),jp=[{regex:/^\s+/,tokenType:"whitespace"},{regex:/^[{}]/,tokenType:"brace"},{regex:/^[[\]]/,tokenType:"bracket"},{regex:/^:/,tokenType:"colon"},{regex:/^,/,tokenType:"comma"},{regex:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/i,tokenType:"number"},{regex:/^"(?:\\.|[^"\\])*"(?=\s*:)/,tokenType:"key"},{regex:/^"(?:\\.|[^"\\])*"/,tokenType:"string"},{regex:/^true|^false/,tokenType:"boolean"},{regex:/^null/,tokenType:"null"}];function Tu(t,e,n){return JSON.stringify(t,Pp(e,e),n)}function Pp(t,e){let n=[],s=[];return e||(e=function(r,i){return n[0]===i?"[Circular ~]":"[Circular ~."+s.slice(0,n.indexOf(i)).join(".")+"]"}),function(r,i){if(n.length>0){let o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?s.splice(o,Number.POSITIVE_INFINITY,r):s.push(r),n.includes(i)&&(i=e.call(this,r,i))}else n.push(i);return t?t.call(this,r,i):i}}function ku(t,e){return e?.pretty?Tu(typeof t=="string"?JSON.parse(t):t,void 0,2):typeof t=="string"?t:Tu(t)}function Mu(t,e){let n=ku(t,e),s=[],r=!1;do for(let i of jp){let o=i.regex.exec(n);if(o){s.push({type:i.tokenType,value:o[0]}),n=n.slice(o[0].length),r=!0;break}}while($p(n,r));return s}function $p(t,e){return(t?.length??0)>0&&e}function Rp(t,e){let n={...e,pretty:e?.pretty??!0};return Mu(t,n).reduce((s,r)=>s+(0,Sp.colorize)(e?.theme?.[r.type],r.value),"")}});var ht=C(U=>{"use strict";p();var ys=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(U,"__esModule",{value:!0});U.ux=U.action=U.stdout=U.stderr=U.colorize=U.colorizeJson=U.warn=U.exit=U.error=void 0;var Lp=jt(),Tp=os(),kp=Pt(),Mp=ys(Au()),qp=ys(Lu()),Bp=ys(ai()),Ip=ve(),qu=nn(),Np=jt();Object.defineProperty(U,"error",{enumerable:!0,get:function(){return Np.error}});var Hp=os();Object.defineProperty(U,"exit",{enumerable:!0,get:function(){return Hp.exit}});var Wp=Pt();Object.defineProperty(U,"warn",{enumerable:!0,get:function(){return Wp.warn}});var zp=ai();Object.defineProperty(U,"colorizeJson",{enumerable:!0,get:function(){return ys(zp).default}});var Gp=ve();Object.defineProperty(U,"colorize",{enumerable:!0,get:function(){return Gp.colorize}});var Bu=nn();Object.defineProperty(U,"stderr",{enumerable:!0,get:function(){return Bu.stderr}});Object.defineProperty(U,"stdout",{enumerable:!0,get:function(){return Bu.stdout}});var Up=!!process.stderr.isTTY&&!process.env.CI&&!["dumb","emacs-color"].includes(process.env.TERM)&&"spinner"||"simple";U.action=Up==="spinner"?new qp.default:new Mp.default;U.ux={action:U.action,colorize:Ip.colorize,colorizeJson:Bp.default,error:Lp.error,exit:Tp.exit,stderr:qu.stderr,stdout:qu.stdout,warn:kp.warn}});var bs=C(ui=>{"use strict";p();Object.defineProperty(ui,"__esModule",{value:!0});ui.ensureArgObject=Vp;function Vp(t){return Array.isArray(t)?(t??[]).reduce((e,n)=>({...e,[n.name]:n}),{}):t??{}}});var Iu=C(Es=>{"use strict";p();Object.defineProperty(Es,"__esModule",{value:!0});Es.DocOpts=void 0;var Kp=bs(),ci=class t{cmd;flagList;flagMap;constructor(e){this.cmd=e,this.flagMap={},this.flagList=Object.entries(e.flags||{}).filter(([n,s])=>!s.hidden).map(([n,s])=>(this.flagMap[n]=s,s))}static formatUsageType(e,n,s){if(e.type!=="option")return"";let r;return e.helpValue?r=typeof e.helpValue=="string"?[e.helpValue]:e.helpValue:e.options?r=[s?e.options.join("|"):"<option>"]:n?r=[e.name]:r=["<value>"],r.map(i=>`${i}${e.multiple?"...":""}`).join(" ")}static generate(e){return new t(e).toString()}toString(){let e=["<%= command.id %>"];if(this.cmd.args){let n=this.cmd.strict===!1?"...":"",s=Object.values((0,Kp.ensureArgObject)(this.cmd.args)).filter(r=>!r.hidden).map(r=>r.required?`${r.name.toUpperCase()}${n}`:`[${r.name.toUpperCase()}${n}]`)||[];e.push(...s)}try{e.push(...Object.values(this.groupFlagElements()))}catch{e.push(...this.flagList.map(n=>{let s=n.char?`-${n.char}`:`--${n.name}`;return n.type==="boolean"?s:`${s}=${t.formatUsageType(n,!1,!0)}`}))}return e.join(" ")}combineElementsToFlag(e,n,s,r){if(!this.flagMap[n])return;let i=this.flagMap[n]?.required;(typeof i!="boolean"||!i)&&(i=s.reduce((o,a)=>o||this.flagMap[a]?.required||!1,!1));for(let o of s)e[n]=`${e[n]||""}${r}${e[o]||""}`,delete e[o],delete this.flagMap[o];e[n]=i?`(${e[n]||""})`:`[${e[n]||""}]`,delete this.flagMap[n]}generateElements(e={},n=[]){let s=[];for(let r of n){let i="",o=r.char?`-${r.char}`:`--${r.name}`;r.type==="option"&&(i=` ${t.formatUsageType(r,!1,!0)}`);let a=`${o}${i}`;e[r.name]=a,s.push(a)}return s}groupFlagElements(){let e={};this.generateElements(e,this.flagList.filter(n=>n.required)),this.generateElements(e,this.flagList.filter(n=>!n.required));for(let n of this.flagList)Array.isArray(n.dependsOn)&&this.combineElementsToFlag(e,n.name,n.dependsOn," "),Array.isArray(n.exclusive)&&this.combineElementsToFlag(e,n.name,n.exclusive," | ");for(let n of Object.keys(this.flagMap)){let s=this.flagMap[n]||{};s.required||(e[s.name]=`[${e[s.name]||""}]`)}return e}};Es.DocOpts=ci});var Hu=C((GE,li)=>{"use strict";p();var Jp=Wn(),Nu=t=>{let e=0;for(let n of t.split(`
|
|
73
|
+
`))e=Math.max(e,Jp(n));return e};li.exports=Nu;li.exports.default=Nu});var kt=C(ge=>{"use strict";p();var Xp=ge&&ge.__createBinding||(Object.create?(function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}):(function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]})),Yp=ge&&ge.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qp=ge&&ge.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var s=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(s[s.length]=r);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var s=t(e),r=0;r<s.length;r++)s[r]!=="default"&&Xp(n,e,s[r]);return Yp(n,e),n}})();Object.defineProperty(ge,"__esModule",{value:!0});ge.template=ng;ge.standardizeIDFromArgv=Wu;ge.getHelpFlagAdditions=og;ge.formatFlagDeprecationWarning=ag;ge.formatCommandDeprecationWarning=ug;ge.normalizeArgv=cg;var Zp=Qp(dr()),eg=$t(),tg=ft();function ng(t){function e(n){return Zp.render(n,t)}return e}var sg=t=>t.startsWith("-"),rg=t=>t.includes("=");function ig(t,e){if(t.length===1)return t;let s=(r=>{let i=(0,eg.collectUsableIds)(e.commandIDs),o=[],a=f=>i.has(f),u=f=>(f?[...o,f]:o).filter(Boolean).join(":"),l=()=>{let f=u();if(!f)return!1;let c=e.findCommand(f);return!!(c&&(c.strict===!1||Object.keys(c.args??{}).length>0))};for(let f of r)if(a(u(f)))o.push(f);else{if(rg(f)||sg(f)||l())break;o.push(f)}return u()})(t);if(s){let r=t.slice(s.split(":").length);return[s,...r]}return t}function Wu(t,e){return t.length===0||(e.topicSeparator===" "?t=ig(t,e):e.topicSeparator!==":"&&(t[0]=(0,tg.toStandardizedId)(t[0],e))),t}function og(t){let e=["--help"],n=t.pjson.oclif.additionalHelpFlags??[];return[...new Set([...n,...e]).values()]}function ag(t,e){let n=`The "${t}" flag has been deprecated`;return e===!0?`${n}.`:e.message?e.message:(e.version&&(n+=` and will be removed in version ${e.version}`),n+=e.to?`. Use "${e.to}" instead.`:".",n)}function ug(t,e){let n=`The "${t}" command has been deprecated`;return e?e.message?e.message:(e.version&&(n+=` and will be removed in version ${e.version}`),n+=e.to?`. Use "${e.to}" instead.`:".",n):`${n}.`}function cg(t,e=process.argv.slice(2)){return t.topicSeparator!==":"&&!e[0]?.includes(":")&&(e=Wu(e,t)),e}});var gn=C(Mt=>{"use strict";p();var pn=Mt&&Mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.HelpFormatter=void 0;var dn=pn(at()),lg=pn(Hn()),fg=pn(Wn()),hg=pn(Hu()),dg=pn(Vn()),pg=Ot(),fi=ve(),gg=kt(),hi=class{config;indentSpacing=2;opts;render;constructor(e,n={}){this.config=e,this.opts={maxWidth:pg.stdtermwidth,...n},this.render=(0,gg.template)(this)}indent(e,n=this.indentSpacing){return(0,lg.default)(e,n)}renderList(e,n){if(e.length===0)return"";let s=()=>{let u="";for(let[l,f]of e)!l&&!f||(l&&(n.stripAnsi&&(l=dn.default.strip(l)),u+=this.wrap(l.trim(),n.indentation)),f&&(n.stripAnsi&&(f=dn.default.strip(f)),u+=`
|
|
74
|
+
`,u+=this.indent(this.wrap(f.trim(),n.indentation+2),4)),u+=`
|
|
75
|
+
|
|
76
|
+
`);return u.trim()};if(n.multiline)return s();let r=(0,hg.default)(e.map(u=>u[0]).join(`
|
|
77
|
+
`)),i="",o=n.spacer||`
|
|
78
|
+
`,a="";for(let[u,l]of e){let f=l;if(a&&(i+=o,i+=a),a=u||"",n.stripAnsi&&(a=dn.default.strip(a)),!f){a=a.trim();continue}n.stripAnsi&&(f=dn.default.strip(f)),f=this.wrap(f.trim(),n.indentation+r+2);let[c,...h]=f.split(`
|
|
79
|
+
`).map(d=>d.trim());if(a+=" ".repeat(r-(0,fg.default)(a)+2),a+=c,h.length!==0){if(h.length>4)return s();n.spacer||(o=`
|
|
80
|
+
`),a+=`
|
|
81
|
+
`,a+=this.indent(h.join(`
|
|
82
|
+
`),r+2)}}return a&&(i+=o,i+=a),i.trim()}section(e,n){let s;if(typeof n=="string")s=this.render(n);else if(Array.isArray(n))s=n.map(i=>{if("name"in i){let u=i;return[this.render(u.name),this.render(u.description)]}let[o,a]=i;return[this.render(o),a&&this.render(a)]});else{if("header"in n)return this.section(n.header,n.body);s=n.map(i=>[i.name,i.description]).map(([i,o])=>[this.render(i),o&&this.render(o)])}let r=[(0,fi.colorize)(this.config?.theme?.sectionHeader,(0,fi.colorize)("bold",e)),(0,fi.colorize)(this.config?.theme?.sectionDescription,this.indent(Array.isArray(s)?this.renderList(s,{indentation:2,stripAnsi:this.opts.stripAnsi}):s))].join(`
|
|
83
|
+
`);return this.opts.stripAnsi?dn.default.strip(r):r}wrap(e,n=this.indentSpacing){return(0,dg.default)(this.render(e),this.opts.maxWidth-n,{hard:!0})}};Mt.HelpFormatter=hi});var di=C(dt=>{"use strict";p();var mg=dt&&dt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dt,"__esModule",{value:!0});dt.CommandHelp=void 0;var Dg=mg(at()),_g=bs(),zu=ft(),qt=ee(),te=ve(),Gu=Iu(),yg=gn(),Bt=/\r\n|\n/;function bg(t){return t==="alphabetical"?"alphabetical":t==="none"?"none":"alphabetical"}var Cs=class extends yg.HelpFormatter{command;config;opts;constructor(e,n,s){super(n,s),this.command=e,this.config=n,this.opts=s}aliases(e){return!e||e.length===0?void 0:e.map(s=>[(0,te.colorize)(this.config?.theme?.dollarSign,"$"),(0,te.colorize)(this.config?.theme?.bin,this.config.bin),(0,te.colorize)(this.config?.theme?.alias,s)].join(" ")).join(`
|
|
84
|
+
`)}arg(e){let n=e.name.toUpperCase();return e.required?`${n}`:`[${n}]`}args(e){if(e.filter(n=>n.description).length!==0)return e.map(n=>{let s=this.command.strict===!1?`${n.name.toUpperCase()}...`:n.name.toUpperCase(),r=n.description||"";return n.default&&(r=`${(0,te.colorize)(this.config?.theme?.flagDefaultValue,`[default: ${n.default}]`)} ${r}`),n.options&&(r=`${(0,te.colorize)(this.config?.theme?.flagOptions,`(${n.options.join("|")})`)} ${r}`),[(0,te.colorize)(this.config?.theme?.flag,s),r?(0,te.colorize)(this.config?.theme?.sectionDescription,r):void 0]})}defaultUsage(){return this.opts.docopts===void 0||this.opts.docopts?Gu.DocOpts.generate(this.command):(0,qt.compact)([this.command.id,Object.values(this.command.args??{})?.filter(e=>!e.hidden).map(e=>this.arg(e)).join(" ")]).join(" ")}description(){let e=this.command,n;if(this.opts.hideCommandSummaryInDescription)n=(e.description||"").split(Bt).slice(1);else if(e.description){let s=e.summary?`${e.summary}
|
|
85
|
+
`:null;n=s?[...s.split(Bt),...(e.description||"").split(Bt)]:(e.description||"").split(Bt)}if(n)return this.wrap(n.join(`
|
|
86
|
+
`))}examples(e){return!e||e.length===0?void 0:(0,qt.castArray)(e).map(s=>{let r,i;if(typeof s=="string"){let l=s.split(Bt).filter(Boolean);if(l.length>=2&&!this.isCommand(l[0])&&l.slice(1).every(f=>this.isCommand(f)))r=l[0],i=l.slice(1);else return l.map(f=>this.formatIfCommand(f)).join(`
|
|
87
|
+
`)}else r=s.description,i=[s.command];let o=this.config.platform==="win32"?this.config.shell.includes("powershell")?"`":"^":"\\",a=this.indentSpacing*2,u=i.map(l=>this.indent(this.wrap(this.formatIfCommand(l),a+4)).split(Bt).join(` ${o}
|
|
88
|
+
`)).join(`
|
|
89
|
+
`);return`${this.wrap(r,a)}
|
|
90
|
+
|
|
91
|
+
${u}`}).join(`
|
|
92
|
+
|
|
93
|
+
`)}flagHelpLabel(e,n=!1){let s=e.helpLabel;if(!s){let r=[];r.push(e.char?`-${e.char[0]}`:" "),e.name&&(e.type==="boolean"&&e.allowNo?r.push(`--[no-]${e.name.trim()}`):r.push(`--${e.name.trim()}`)),s=r.join(e.char?(0,te.colorize)(this.config?.theme?.flagSeparator,", "):" ")}if(e.type==="option"){let r=Gu.DocOpts.formatUsageType(e,this.opts.showFlagNameInTitle??!1,this.opts.showFlagOptionsInTitle??n);r.includes("|")||(r=(0,te.colorize)("underline",r)),s+=`=${r}`}return(0,te.colorize)(this.config.theme?.flag,s)}flags(e){if(e.length===0)return;let n=e.reduce((s,r)=>s&&r.char===void 0,!0);return e.map(s=>{let r=this.flagHelpLabel(s);n&&(r=r.replace(" ",""));let i=s.summary||s.description||"",o=!(this.opts.respectNoCacheDefault===!0&&s.noCacheDefault===!0);return s.type==="option"&&s.default&&o&&(i=`${(0,te.colorize)(this.config?.theme?.flagDefaultValue,`[default: ${s.default}]`)} ${i}`),s.required&&(i=`${(0,te.colorize)(this.config?.theme?.flagRequired,"(required)")} ${i}`),s.type==="option"&&s.options&&!s.helpValue&&!this.opts.showFlagOptionsInTitle&&(i+=(0,te.colorize)(this.config?.theme?.flagOptions,`
|
|
94
|
+
<options: ${s.options.join("|")}>`)),[r,(0,te.colorize)(this.config?.theme?.sectionDescription,i.trim())]})}flagsDescriptions(e){let n=e.filter(r=>r.summary&&r.description);return n.length===0?void 0:n.map(r=>{let i=r.summary||"",o=this.flagHelpLabel(r,!0);return r.char||(o=o.replace(" ","")),o+=o.length+i.length+2<this.opts.maxWidth?" "+i:`
|
|
95
|
+
|
|
96
|
+
`+this.indent(this.wrap(i,this.indentSpacing*2)),`${o}
|
|
97
|
+
|
|
98
|
+
${this.indent(this.wrap(r.description||"",this.indentSpacing*2))}`}).join(`
|
|
99
|
+
|
|
100
|
+
`)}generate(){let e=this.command,n=Object.entries(e.flags||{}).filter(([,o])=>!o.hidden).map(([o,a])=>(a.name=o,a)),s=bg(this.opts.flagSortOrder)==="alphabetical"?(0,qt.sortBy)(n,o=>[!o.char,o.char,o.name]):n,r=Object.values((0,_g.ensureArgObject)(e.args)).filter(o=>!o.hidden);return(0,qt.compact)(this.sections().map(({generate:o,header:a})=>{let u=o({args:r,cmd:e,flags:s},a);return Array.isArray(u)?u.map(l=>l&&l.body&&this.section(l.header,l.body)).join(`
|
|
101
|
+
|
|
102
|
+
`):u&&this.section(a,u)})).join(`
|
|
103
|
+
|
|
104
|
+
`)}groupFlags(e){let n=[],s={};for(let r of e){let i=r.helpGroup;i?(s[i]||(s[i]=[]),s[i].push(r)):n.push(r)}return{flagGroups:s,mainFlags:n}}sections(){let e=[{generate:()=>this.usage(),header:this.opts.usageHeader||"USAGE"},{generate:({args:s},r)=>[{body:this.args(s),header:r}],header:"ARGUMENTS"},{generate:({flags:s},r)=>{let{flagGroups:i,mainFlags:o}=this.groupFlags(s),a=[],u=this.flags(o);u&&a.push({body:u,header:r});for(let[l,f]of Object.entries(i)){let c=this.flags(f);c&&a.push({body:c,header:`${l.toUpperCase()} ${r}`})}return(0,qt.compact)(a)},header:"FLAGS"},{generate:()=>this.description(),header:"DESCRIPTION"},{generate:({cmd:s})=>this.aliases(s.aliases),header:"ALIASES"},{generate:({cmd:s})=>{let r=s.examples||s.example;return this.examples(r)},header:"EXAMPLES"},{generate:({flags:s})=>this.flagsDescriptions(s),header:"FLAG DESCRIPTIONS"}],n=this.opts.sections?.map(s=>s.toLowerCase());return e.filter(({header:s})=>!n||n.includes(s.toLowerCase()))}usage(){let{id:e,usage:n}=this.command,s=(0,zu.toStandardizedId)(e,this.config),r=(0,zu.toConfiguredId)(e,this.config);return(n?(0,qt.castArray)(n):[this.defaultUsage()]).map(o=>{let a=this.opts.maxWidth-this.indentSpacing,u=(0,te.colorize)(this.config?.theme?.dollarSign,"$"),l=(0,te.colorize)(this.config?.theme?.bin,this.config.bin),f=(0,te.colorize)(this.config?.theme?.command,"<%= command.id %>"),c=(0,te.colorize)(this.config?.theme?.sectionDescription,o.replace("<%= command.id %>","").replace(new RegExp(`^${s}`),"").replace(new RegExp(`^${r}`),"").trim()),h=`${u} ${l} ${f} ${c}`.trim();if(h.length>a){let d=h.slice(0,Math.max(0,a)).lastIndexOf(" ");return h.slice(0,Math.max(0,d))+`
|
|
105
|
+
`+this.indent(this.wrap(h.slice(Math.max(0,d)),this.indentSpacing*2))}return this.wrap(h)}).join(`
|
|
106
|
+
`)}formatIfCommand(e){e=this.render(e);let n=(0,te.colorize)(this.config?.theme?.dollarSign,"$");return e.startsWith(this.config.bin)?`${n} ${e}`:e.startsWith(`$ ${this.config.bin}`)?`${n}${e.replace("$","")}`:e}isCommand(e){return Dg.default.strip(this.formatIfCommand(e)).startsWith(`${(0,te.colorize)(this.config?.theme?.dollarSign,"$")} ${this.config.bin}`)}};dt.CommandHelp=Cs;dt.default=Cs});var Uu=C(mn=>{"use strict";p();var Eg=mn&&mn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mn,"__esModule",{value:!0});var Cg=Eg(at()),vg=ee(),It=ve(),Fg=gn(),pi=class extends Fg.HelpFormatter{config;opts;constructor(e,n){super(e,n),this.config=e,this.opts=n}description(){let e=this.config.pjson.oclif.description||this.config.pjson.description||"";if(e=this.render(e),e=e.split(`
|
|
107
|
+
`).slice(1).join(`
|
|
108
|
+
`),!!e)return this.section("DESCRIPTION",this.wrap((0,It.colorize)(this.config?.theme?.sectionDescription,e)))}root(){let e=this.config.pjson.oclif.description||this.config.pjson.description||"";e=this.render(e),e=e.split(`
|
|
109
|
+
`)[0];let n=(0,vg.compact)([(0,It.colorize)(this.config?.theme?.commandSummary,e),this.version(),this.usage(),this.description()]).join(`
|
|
110
|
+
|
|
111
|
+
`);return this.opts.stripAnsi&&(n=Cg.default.strip(n)),n}usage(){return this.section(this.opts.usageHeader||"USAGE",this.wrap(`${(0,It.colorize)(this.config?.theme?.dollarSign,"$")} ${(0,It.colorize)(this.config?.theme?.bin,this.config.bin)} ${(0,It.colorize)(this.config?.theme?.sectionDescription,"[COMMAND]")}`))}version(){return this.section("VERSION",this.wrap((0,It.colorize)(this.config?.theme?.version,this.config.userAgent)))}};mn.default=pi});var yn=C(re=>{"use strict";p();var Yu=re&&re.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(re,"__esModule",{value:!0});re.Help=re.HelpBase=re.standardizeIDFromArgv=re.normalizeArgv=re.getHelpFlagAdditions=re.HelpFormatter=re.CommandHelp=void 0;re.loadHelpClass=kg;var Vu=Yu(at()),wg=Rt(),Ag=jt(),Og=cn(),Ku=ds(),xg=Qr(),gi=ft(),Dn=ee(),Ju=ht(),ke=ve(),Sg=di(),jg=gn(),Pg=Yu(Uu()),_n=kt(),$g=di();Object.defineProperty(re,"CommandHelp",{enumerable:!0,get:function(){return $g.CommandHelp}});var Rg=gn();Object.defineProperty(re,"HelpFormatter",{enumerable:!0,get:function(){return Rg.HelpFormatter}});var mi=kt();Object.defineProperty(re,"getHelpFlagAdditions",{enumerable:!0,get:function(){return mi.getHelpFlagAdditions}});Object.defineProperty(re,"normalizeArgv",{enumerable:!0,get:function(){return mi.normalizeArgv}});Object.defineProperty(re,"standardizeIDFromArgv",{enumerable:!0,get:function(){return mi.standardizeIDFromArgv}});function Lg(t,e){let n=(0,_n.getHelpFlagAdditions)(e);for(let s of t){if(s==="--")return;if(!(n.includes(s)||s==="help"))return s.startsWith("-")?void 0:s}}var vs=class extends jg.HelpFormatter{constructor(e,n={}){super(e,n),e.topicSeparator||(e.topicSeparator=":")}};re.HelpBase=vs;var Fs=class extends vs{CommandHelpClass=Sg.CommandHelp;constructor(e,n={}){super(e,n)}get _topics(){return this.config.topics.filter(e=>this.config.topics.some(s=>s.name.includes(`${e.name}:`)))}get sortedCommands(){let{commands:e}=this.config;return e=e.filter(n=>this.opts.all||!n.hidden),e=(0,Dn.sortBy)(e,n=>n.id),e=(0,Dn.uniqBy)(e,n=>n.id),e}get sortedTopics(){let e=this._topics;return e=e.filter(n=>this.opts.all||!n.hidden),e=(0,Dn.sortBy)(e,n=>n.name),e=(0,Dn.uniqBy)(e,n=>n.name),e}command(e){return this.formatCommand(e)}description(e){let n=this.render(e.description||"");return e.summary?n:n.split(`
|
|
112
|
+
`).slice(1).join(`
|
|
113
|
+
`)}formatCommand(e){return this.config.topicSeparator!==":"&&(e.id=e.id.replaceAll(":",this.config.topicSeparator),e.aliases=e.aliases&&e.aliases.map(s=>s.replaceAll(":",this.config.topicSeparator))),this.getCommandHelpClass(e).generate()}formatCommands(e){if(e.length===0)return"";let n=this.renderList(e.filter(s=>this.opts.hideAliasesFromRoot?!s.aliases?.includes(s.id):!0).map(s=>{this.config.topicSeparator!==":"&&(s.id=s.id.replaceAll(":",this.config.topicSeparator));let r=this.summary(s);return[(0,ke.colorize)(this.config?.theme?.command,s.id),r&&(0,ke.colorize)(this.config?.theme?.sectionDescription,Vu.default.strip(r))]}),{indentation:2,spacer:`
|
|
114
|
+
`,stripAnsi:this.opts.stripAnsi});return this.section("COMMANDS",n)}formatRoot(){return new Pg.default(this.config,this.opts).root()}formatTopic(e){let n=this.render(e.description||""),s=n.split(`
|
|
115
|
+
`)[0];n=n.split(`
|
|
116
|
+
`).slice(1).join(`
|
|
117
|
+
`);let r=`${e.name}:COMMAND`;this.config.topicSeparator!==":"&&(r=r.replaceAll(":",this.config.topicSeparator));let i=(0,Dn.compact)([(0,ke.colorize)(this.config?.theme?.commandSummary,s),this.section(this.opts.usageHeader||"USAGE",`${(0,ke.colorize)(this.config?.theme?.dollarSign,"$")} ${(0,ke.colorize)(this.config?.theme?.bin,this.config.bin)} ${r}`),n&&this.section("DESCRIPTION",this.wrap((0,ke.colorize)(this.config?.theme?.sectionDescription,n)))]).join(`
|
|
118
|
+
|
|
119
|
+
`);return this.opts.stripAnsi&&(i=Vu.default.strip(i)),i+`
|
|
120
|
+
`}formatTopics(e){if(e.length===0)return"";let n=this.renderList(e.map(s=>(this.config.topicSeparator!==":"&&(s.name=s.name.replaceAll(":",this.config.topicSeparator)),[(0,ke.colorize)(this.config?.theme?.topic,s.name),s.description&&this.render((0,ke.colorize)(this.config?.theme?.sectionDescription,s.description.split(`
|
|
121
|
+
`)[0]))])),{indentation:2,spacer:`
|
|
122
|
+
`,stripAnsi:this.opts.stripAnsi});return this.section("TOPICS",n)}getCommandHelpClass(e){return new this.CommandHelpClass(e,this.config,this.opts)}log(...e){return this.opts.sendToStderr?Ju.ux.stderr(e):Ju.ux.stdout(e)}async showCommandHelp(e){let n=e.id,s=n.split(":").length,r=this.sortedTopics.filter(l=>l.name.startsWith(n+":")&&l.name.split(":").length===s+1),i=this.sortedCommands.filter(l=>l.id.startsWith(n+":")&&l.id.split(":").length===s+1),o=this.config.plugins.get(e.pluginName),a=this.config.pjson?.oclif?.state||o?.pjson?.oclif?.state||e.state;if(a&&this.log(a==="deprecated"?`${(0,_n.formatCommandDeprecationWarning)((0,gi.toConfiguredId)(n,this.config),e.deprecationOptions)}
|
|
123
|
+
`:`This command is in ${a}.
|
|
124
|
+
`),e.deprecateAliases&&e.aliases.includes(n)){let l=this.config.commands.find(h=>h.aliases.includes(n)),f=l?(0,gi.toConfiguredId)(l.id,this.config):"",c={...e.deprecationOptions,...l?{to:f}:{}};this.log(`${(0,_n.formatCommandDeprecationWarning)((0,gi.toConfiguredId)(n,this.config),c)}
|
|
125
|
+
`)}let u=this.summary(e);if(u&&this.log(u+`
|
|
126
|
+
`),this.log(this.formatCommand(e)),this.log(""),r.length>0&&(this.log(this.formatTopics(r)),this.log("")),i.length>0){let l=[],f=i.filter(c=>(l.push(...c.aliases),!l.includes(c.id)));this.log(this.formatCommands(f)),this.log("")}}async showHelp(e){let n=e.slice(1);e=e.filter(o=>!(0,_n.getHelpFlagAdditions)(this.config).includes(o)),this.config.topicSeparator!==":"&&(e=(0,_n.standardizeIDFromArgv)(e,this.config));let s=Lg(e,this.config);if(!s){if(this.config.isSingleCommandCLI){let o=this.config.findCommand(Ku.SINGLE_COMMAND_CLI_SYMBOL);if(o){o.id="",await this.showCommandHelp(o);return}}await this.showRootHelp();return}let r=this.config.findCommand(s);if(r){if(r.id===Ku.SINGLE_COMMAND_CLI_SYMBOL&&(r.id=""),r.hasDynamicHelp&&r.pluginType!=="jit"){let o=await r.load();for(let[a,u]of Object.entries(o.flags??{}))u.type!=="boolean"&&(r.flags[a].default=await(0,xg.cacheDefaultValue)(u,!1));await this.showCommandHelp(r)}else await this.showCommandHelp(r);return}let i=this.config.findTopic(s);if(i){await this.showTopicHelp(i);return}if(this.config.flexibleTaxonomy){let o=this.config.findMatches(s,n);if(o.length>0&&(await this.config.runHook("command_incomplete",{argv:n.filter(u=>!s.split(":").includes(u)),id:s,matches:o})).successes.length>0)return}(0,Ag.error)(`Command ${s} not found.`)}async showRootHelp(){let e=this.sortedTopics,n=this.sortedCommands,s=this.config.pjson?.oclif?.state;s&&this.log(s==="deprecated"?`${this.config.bin} is deprecated`:`${this.config.bin} is in ${s}.
|
|
127
|
+
`),this.log(this.formatRoot()),this.log(""),this.opts.all||(e=e.filter(r=>!r.name.includes(":")),n=n.filter(r=>!r.id.includes(":"))),e.length>0&&(this.log(this.formatTopics(e)),this.log("")),n.length>0&&(n=n.filter(r=>r.id),this.log(this.formatCommands(n)),this.log(""))}async showTopicHelp(e){let{name:n}=e,s=n.split(":").length,r=this.sortedTopics.filter(a=>a.name.startsWith(n+":")&&a.name.split(":").length===s+1),i=this.sortedCommands.filter(a=>a.id.startsWith(n+":")&&a.id.split(":").length===s+1),o=this.config.pjson?.oclif?.state;o&&this.log(`This topic is in ${o}.
|
|
128
|
+
`),this.log(this.formatTopic(e)),r.length>0&&(this.log(this.formatTopics(r)),this.log("")),i.length>0&&(this.log(this.formatCommands(i)),this.log(""))}summary(e){if(!(this.opts.sections&&!this.opts.sections.map(n=>n.toLowerCase()).includes("summary")))return e.summary?(0,ke.colorize)(this.config?.theme?.commandSummary,this.render(e.summary.split(`
|
|
129
|
+
`)[0])):e.description&&(0,ke.colorize)(this.config?.theme?.commandSummary,this.render(e.description).split(`
|
|
130
|
+
`)[0])}};re.Help=Fs;function Xu(t){return t&&t.default?t.default:t}function Tg(t){return typeof t=="string"?{identifier:"default",target:t}:t.identifier?t:{...t,identifier:"default"}}async function kg(t){if(t.pjson.oclif?.helpClass){let{identifier:e,target:n}=Tg(t.pjson.oclif?.helpClass);try{let s=await(0,wg.tsPath)(t.root,n)??n,r=await(0,Og.load)(t,s),i=r[e]??(e==="default"?Xu(r):void 0);return Xu(i)}catch(s){throw new Error(`Unable to load configured help class "${n}", failed with message:
|
|
131
|
+
${s.message}`)}}return Fs}});var ws=C(Me=>{"use strict";p();var Di=Me&&Me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Me,"__esModule",{value:!0});Me.Exit=void 0;Me.handle=zg;var Mg=Di(mr()),qg=Di(Oe()),Bg=yn(),Ig=de(),Ng=ut(),Hg=rs(),Wg=Di(ns());Me.Exit={exit(t=0){process.exit(t)}};async function zg(t){try{t||(t=new Ng.CLIError("no error?")),t.message==="SIGINT"&&Me.Exit.exit(1);let e=!(t instanceof Hg.ExitError)&&!t.skipOclifErrorHandling,n=(0,Wg.default)(t),s=(0,Mg.default)(t.stack||"",{pretty:!0});if(e){console.error(n??s);let i=qg.default.getInstance().get("config");if(t.showHelp&&t.parse?.input?.argv&&i){let o={...i.pjson.oclif.helpOptions??i.pjson.helpOptions,sections:["flags","usage","arguments"],sendToStderr:!0},a=new Bg.Help(i,o);console.error(),await a.showHelp(process.argv.slice(2))}}let r=t.oclif?.exit??1;t.code!=="EEXIT"&&s&&(0,Ig.getLogger)().error(s),Me.Exit.exit(r)}catch(e){console.error(t.stack),console.error(e.stack),Me.Exit.exit(1)}}});var Ge=C(ae=>{"use strict";p();Object.defineProperty(ae,"__esModule",{value:!0});ae.warn=ae.handle=ae.exit=ae.ModuleLoadError=ae.ExitError=ae.CLIError=ae.error=void 0;var Gg=jt();Object.defineProperty(ae,"error",{enumerable:!0,get:function(){return Gg.error}});var Ug=ut();Object.defineProperty(ae,"CLIError",{enumerable:!0,get:function(){return Ug.CLIError}});var Vg=rs();Object.defineProperty(ae,"ExitError",{enumerable:!0,get:function(){return Vg.ExitError}});var Kg=kr();Object.defineProperty(ae,"ModuleLoadError",{enumerable:!0,get:function(){return Kg.ModuleLoadError}});var Jg=os();Object.defineProperty(ae,"exit",{enumerable:!0,get:function(){return Jg.exit}});var Xg=ws();Object.defineProperty(ae,"handle",{enumerable:!0,get:function(){return Xg.handle}});var Yg=Pt();Object.defineProperty(ae,"warn",{enumerable:!0,get:function(){return Yg.warn}})});var Nt=C(fe=>{"use strict";p();Object.defineProperty(fe,"__esModule",{value:!0});fe.Performance=fe.OCLIF_MARKER_OWNER=void 0;var bn=w("node:perf_hooks"),Qu=de(),Qg=ze();fe.OCLIF_MARKER_OWNER="@oclif/core";var _i=class{owner;name;details;method;module;scope;stopped=!1;startMarker;stopMarker;constructor(e,n,s={}){this.owner=e,this.name=n,this.details=s,this.startMarker=`${this.name}-start`,this.stopMarker=`${this.name}-stop`;let[r,i]=n.split("#"),[o,a]=r.split(".");this.module=o,this.method=a,this.scope=i,bn.performance.mark(this.startMarker)}addDetails(e){this.details={...this.details,...e}}measure(){bn.performance.measure(this.name,this.startMarker,this.stopMarker)}stop(){this.stopped=!0,bn.performance.mark(this.stopMarker)}},yi=class t{static _oclifPerf;static _results=new Map;static markers=new Map;static async collect(){if(!t.enabled||t._results.size>0)return;let e=[...t.markers.values()];if(e.length!==0){for(let n of e.filter(s=>!s.stopped))n.stop();return new Promise(n=>{new bn.PerformanceObserver(r=>{for(let c of r.getEntries()){let h=t.markers.get(c.name);if(h){let d={details:h.details,duration:c.duration,method:h.method,module:h.module,name:c.name,scope:h.scope},g=t._results.get(h.owner)??[];t._results.set(h.owner,[...g,d])}}let i=t._results.get(fe.OCLIF_MARKER_OWNER)??[],o=i.find(c=>c.name.startsWith("config.runCommand")),a=o?t.getResult(fe.OCLIF_MARKER_OWNER,`plugin.findCommand#${o.details.plugin}.${o.details.command}`)?.duration??0:0,u=Object.fromEntries(i.filter(({name:c})=>c.startsWith("plugin.load#")).sort((c,h)=>h.duration-c.duration).map(({details:c,duration:h,scope:d})=>[d,{details:c,duration:h}])),l=i.filter(({name:c})=>c.startsWith("config.runHook#")).reduce((c,h)=>{let d=h.details.event;if(d)c[d]||(c[d]={}),c[d][h.scope]=h.duration;else{let g=h.scope;c[g]||(c[g]={}),c[g].total=h.duration}return c},{}),f=Object.fromEntries(i.filter(({name:c})=>c.startsWith("config.loadPlugins#")).sort((c,h)=>h.duration-c.duration).map(({duration:c,scope:h})=>[h,c]));t._oclifPerf={hookRunTimes:l,"oclif.commandLoadMs":a,"oclif.commandRunMs":i.find(({name:c})=>c.startsWith("config.runCommand#"))?.duration??0,"oclif.configLoadMs":t.getResult(fe.OCLIF_MARKER_OWNER,"config.load")?.duration??0,"oclif.corePluginsLoadMs":f.core??0,"oclif.initHookMs":l.init?.total??0,"oclif.initMs":t.getResult(fe.OCLIF_MARKER_OWNER,"main.run#init")?.duration??0,"oclif.linkedPluginsLoadMs":f.link??0,"oclif.postrunHookMs":l.postrun?.total??0,"oclif.prerunHookMs":l.prerun?.total??0,"oclif.runMs":t.getResult(fe.OCLIF_MARKER_OWNER,"main.run")?.duration??0,"oclif.userPluginsLoadMs":f.user??0,pluginLoadTimes:u},n()}).observe({buffered:!0,entryTypes:["measure"]});for(let r of e)try{r.measure()}catch{}bn.performance.clearMarks()})}}static debug(){if(!t.enabled)return;let e=(0,Qu.makeDebug)("perf"),n=(process.uptime()*1e3).toFixed(4);e("Process Uptime: %sms",n),e("Oclif Time: %sms",t.oclifPerf["oclif.runMs"].toFixed(4)),e("Init Time: %sms",t.oclifPerf["oclif.initMs"].toFixed(4)),e("Config Load Time: %sms",t.oclifPerf["oclif.configLoadMs"].toFixed(4)),e(" \u2022 Root Plugin Load Time: %sms",t.getResult(fe.OCLIF_MARKER_OWNER,"plugin.load#root")?.duration.toFixed(4)??0),e(" \u2022 Plugins Load Time: %sms",t.getResult(fe.OCLIF_MARKER_OWNER,"config.loadAllPlugins")?.duration.toFixed(4)??0),e(" \u2022 Commands Load Time: %sms",t.getResult(fe.OCLIF_MARKER_OWNER,"config.loadAllCommands")?.duration.toFixed(4)??0),e("Core Plugin Load Time: %sms",t.oclifPerf["oclif.corePluginsLoadMs"].toFixed(4)),e("User Plugin Load Time: %sms",t.oclifPerf["oclif.userPluginsLoadMs"].toFixed(4)),e("Linked Plugin Load Time: %sms",t.oclifPerf["oclif.linkedPluginsLoadMs"].toFixed(4)),e("Plugin Load Times:");for(let[i,o]of Object.entries(t.oclifPerf.pluginLoadTimes))o.details.hasManifest?e(` ${i}: ${o.duration.toFixed(4)}ms`):e(` ${i}: ${o.duration.toFixed(4)}ms (no manifest!)`);e("Hook Run Times:");for(let[i,o]of Object.entries(t.oclifPerf.hookRunTimes)){e(` ${i}:`);for(let[a,u]of Object.entries(o))e(` ${a}: ${u.toFixed(4)}ms`)}e("Command Load Time: %sms",t.oclifPerf["oclif.commandLoadMs"].toFixed(4)),e("Command Run Time: %sms",t.oclifPerf["oclif.commandRunMs"].toFixed(4)),t.oclifPerf["oclif.configLoadMs"]>t.oclifPerf["oclif.runMs"]&&e("! Config load time is greater than total oclif time. This might mean that Config was instantiated before oclif was run.");let s=(0,Qu.makeDebug)("non-oclif-perf"),r=t.results;if(r.size>0){s("Non-Core Performance Measurements:");for(let[i,o]of r){s(` ${i}:`);for(let a of o)s(` ${a.name}: ${a.duration.toFixed(4)}ms`)}}}static getResult(e,n){return t._results.get(e)?.find(s=>s.name===n)}static mark(e,n,s={}){if(!t.enabled)return;let r=new _i(e,n,s);return t.markers.set(r.name,r),r}static get enabled(){return Qg.settings.performanceEnabled??!1}static get oclifPerf(){if(!t.enabled)return{};if(t._oclifPerf)return t._oclifPerf;throw new Error("Perf results not available. Did you forget to call await Performance.collect()?")}static get results(){return t.enabled?new Map([...t._results.entries()].filter(([e])=>e!==fe.OCLIF_MARKER_OWNER)):new Map}};fe.Performance=yi});var Zu=C(bi=>{"use strict";p();Object.defineProperty(bi,"__esModule",{value:!0});bi.determinePriority=Zg;function Zg(t,e){return e.sort((s,r)=>{let i=s.pluginAlias??"A-Cannot-Find-This",o=r.pluginAlias??"B-Cannot-Find-This",a=t.indexOf(i),u=t.indexOf(o);return s.pluginType==="core"&&r.pluginType==="core"?a-u:r.pluginType==="core"&&s.pluginType!=="core"?1:s.pluginType==="core"&&r.pluginType!=="core"?-1:s.pluginType==="jit"&&r.pluginType!=="jit"?1:r.pluginType==="jit"&&s.pluginType!=="jit"?-1:0})[0]}});var tc=C(As=>{"use strict";p();Object.defineProperty(As,"__esModule",{value:!0});As.getHomeDir=em;As.getPlatform=tm;var ec=w("node:os");function em(){return(0,ec.homedir)()}function tm(){return(0,ec.platform)()}});var sc=C(pt=>{"use strict";p();Object.defineProperty(pt,"__esModule",{value:!0});pt.range=pt.balanced=void 0;var nm=(t,e,n)=>{let s=t instanceof RegExp?nc(t,n):t,r=e instanceof RegExp?nc(e,n):e,i=s!==null&&r!=null&&(0,pt.range)(s,r,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+s.length,i[1]),post:n.slice(i[1]+r.length)}};pt.balanced=nm;var nc=(t,e)=>{let n=e.match(t);return n?n[0]:null},sm=(t,e,n)=>{let s,r,i,o,a,u=n.indexOf(t),l=n.indexOf(e,u+1),f=u;if(u>=0&&l>0){if(t===e)return[u,l];for(s=[],i=n.length;f>=0&&!a;){if(f===u)s.push(f),u=n.indexOf(t,f+1);else if(s.length===1){let c=s.pop();c!==void 0&&(a=[c,l])}else r=s.pop(),r!==void 0&&r<i&&(i=r,o=l),l=n.indexOf(e,f+1);f=u<l&&u>=0?u:l}s.length&&o!==void 0&&(a=[i,o])}return a};pt.range=sm});var lc=C(Ht=>{"use strict";p();Object.defineProperty(Ht,"__esModule",{value:!0});Ht.EXPANSION_MAX=void 0;Ht.expand=mm;var rc=sc(),ic="\0SLASH"+Math.random()+"\0",oc="\0OPEN"+Math.random()+"\0",Ci="\0CLOSE"+Math.random()+"\0",ac="\0COMMA"+Math.random()+"\0",uc="\0PERIOD"+Math.random()+"\0",rm=new RegExp(ic,"g"),im=new RegExp(oc,"g"),om=new RegExp(Ci,"g"),am=new RegExp(ac,"g"),um=new RegExp(uc,"g"),cm=/\\\\/g,lm=/\\{/g,fm=/\\}/g,hm=/\\,/g,dm=/\\./g;Ht.EXPANSION_MAX=1e5;function Ei(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function pm(t){return t.replace(cm,ic).replace(lm,oc).replace(fm,Ci).replace(hm,ac).replace(dm,uc)}function gm(t){return t.replace(rm,"\\").replace(im,"{").replace(om,"}").replace(am,",").replace(um,".")}function cc(t){if(!t)return[""];let e=[],n=(0,rc.balanced)("{","}",t);if(!n)return t.split(",");let{pre:s,body:r,post:i}=n,o=s.split(",");o[o.length-1]+="{"+r+"}";let a=cc(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function mm(t,e={}){if(!t)return[];let{max:n=Ht.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),En(pm(t),n,!0).map(gm)}function Dm(t){return"{"+t+"}"}function _m(t){return/^-?0\d/.test(t)}function ym(t,e){return t<=e}function bm(t,e){return t>=e}function En(t,e,n){let s=[],r=(0,rc.balanced)("{","}",t);if(!r)return[t];let i=r.pre,o=r.post.length?En(r.post,e,!1):[""];if(/\$$/.test(r.pre))for(let a=0;a<o.length&&a<e;a++){let u=i+"{"+r.body+"}"+o[a];s.push(u)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),l=a||u,f=r.body.indexOf(",")>=0;if(!l&&!f)return r.post.match(/,(?!,).*\}/)?(t=r.pre+"{"+r.body+Ci+r.post,En(t,e,!0)):[t];let c;if(l)c=r.body.split(/\.\./);else if(c=cc(r.body),c.length===1&&c[0]!==void 0&&(c=En(c[0],e,!1).map(Dm),c.length===1))return o.map(d=>r.pre+c[0]+d);let h;if(l&&c[0]!==void 0&&c[1]!==void 0){let d=Ei(c[0]),g=Ei(c[1]),m=Math.max(c[0].length,c[1].length),D=c.length===3&&c[2]!==void 0?Math.abs(Ei(c[2])):1,y=ym;g<d&&(D*=-1,y=bm);let x=c.some(_m);h=[];for(let L=d;y(L,g);L+=D){let P;if(u)P=String.fromCharCode(L),P==="\\"&&(P="");else if(P=String(L),x){let q=m-P.length;if(q>0){let V=new Array(q+1).join("0");L<0?P="-"+V+P.slice(1):P=V+P}}h.push(P)}}else{h=[];for(let d=0;d<c.length;d++)h.push.apply(h,En(c[d],e,!1))}for(let d=0;d<h.length;d++)for(let g=0;g<o.length&&s.length<e;g++){let m=i+h[d]+o[g];(!n||l||m)&&s.push(m)}}return s}});var fc=C(Os=>{"use strict";p();Object.defineProperty(Os,"__esModule",{value:!0});Os.assertValidPattern=void 0;var Em=1024*64,Cm=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Em)throw new TypeError("pattern is too long")};Os.assertValidPattern=Cm});var dc=C(xs=>{"use strict";p();Object.defineProperty(xs,"__esModule",{value:!0});xs.parseClass=void 0;var vm={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Cn=t=>t.replace(/[[\]\\-]/g,"\\$&"),Fm=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hc=t=>t.join(""),wm=(t,e)=>{let n=e;if(t.charAt(n)!=="[")throw new Error("not in a brace expression");let s=[],r=[],i=n+1,o=!1,a=!1,u=!1,l=!1,f=n,c="";e:for(;i<t.length;){let m=t.charAt(i);if((m==="!"||m==="^")&&i===n+1){l=!0,i++;continue}if(m==="]"&&o&&!u){f=i+1;break}if(o=!0,m==="\\"&&!u){u=!0,i++;continue}if(m==="["&&!u){for(let[D,[y,_,x]]of Object.entries(vm))if(t.startsWith(D,i)){if(c)return["$.",!1,t.length-n,!0];i+=D.length,x?r.push(y):s.push(y),a=a||_;continue e}}if(u=!1,c){m>c?s.push(Cn(c)+"-"+Cn(m)):m===c&&s.push(Cn(m)),c="",i++;continue}if(t.startsWith("-]",i+1)){s.push(Cn(m+"-")),i+=2;continue}if(t.startsWith("-",i+1)){c=m,i+=2;continue}s.push(Cn(m)),i++}if(f<i)return["",!1,0,!1];if(!s.length&&!r.length)return["$.",!1,t.length-n,!0];if(r.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!l){let m=s[0].length===2?s[0].slice(-1):s[0];return[Fm(m),!1,f-n,!1]}let h="["+(l?"^":"")+hc(s)+"]",d="["+(l?"":"^")+hc(r)+"]";return[s.length&&r.length?"("+h+"|"+d+")":s.length?h:d,a,f-n,!0]};xs.parseClass=wm});var js=C(Ss=>{"use strict";p();Object.defineProperty(Ss,"__esModule",{value:!0});Ss.unescape=void 0;var Am=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");Ss.unescape=Am});var wi=C(Ls=>{"use strict";p();var me;Object.defineProperty(Ls,"__esModule",{value:!0});Ls.AST=void 0;var Om=dc(),Ps=js(),xm=new Set(["!","?","+","*","@"]),vi=t=>xm.has(t),pc=t=>vi(t.type),Sm=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),jm=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Pm=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),gc=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),$m="(?!(?:^|/)\\.\\.?(?:$|/))",$s="(?!\\.)",Rm=new Set(["[","."]),Lm=new Set(["..","."]),Tm=new Set("().*{}+?[]^$\\!"),km=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Fi="[^/]",mc=Fi+"*?",Dc=Fi+"+?",Rs=class{type;#n;#s;#r=!1;#e=[];#t;#a;#c;#u=!1;#i;#o;#l=!1;constructor(e,n,s={}){this.type=e,e&&(this.#s=!0),this.#t=n,this.#n=this.#t?this.#t.#n:this,this.#i=this.#n===this?s:this.#n.#i,this.#c=this.#n===this?[]:this.#n.#c,e==="!"&&!this.#n.#u&&this.#c.push(this),this.#a=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#s!==void 0)return this.#s;for(let e of this.#e)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#s=!0;return this.#s}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#e.map(e=>String(e)).join("|")+")":this.#o=this.#e.map(e=>String(e)).join("")}#D(){if(this!==this.#n)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let e;for(;e=this.#c.pop();){if(e.type!=="!")continue;let n=e,s=n.#t;for(;s;){for(let r=n.#a+1;!s.type&&r<s.#e.length;r++)for(let i of e.#e){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(s.#e[r])}n=s,s=n.#t}}return this}push(...e){for(let n of e)if(n!==""){if(typeof n!="string"&&!(n instanceof me&&n.#t===this))throw new Error("invalid part: "+n);this.#e.push(n)}}toJSON(){let e=this.type===null?this.#e.slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...this.#e.map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#n||this.#n.#u&&this.#t?.type==="!")&&e.push({}),e}isStart(){if(this.#n===this)return!0;if(!this.#t?.isStart())return!1;if(this.#a===0)return!0;let e=this.#t;for(let n=0;n<this.#a;n++){let s=e.#e[n];if(!(s instanceof me&&s.type==="!"))return!1}return!0}isEnd(){if(this.#n===this||this.#t?.type==="!")return!0;if(!this.#t?.isEnd())return!1;if(!this.type)return this.#t?.isEnd();let e=this.#t?this.#t.#e.length:0;return this.#a===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let n=new me(this.type,e);for(let s of this.#e)n.copyIn(s);return n}static#f(e,n,s,r,i){let o=r.maxExtglobRecursion??2,a=!1,u=!1,l=-1,f=!1;if(n.type===null){let m=s,D="";for(;m<e.length;){let y=e.charAt(m++);if(a||y==="\\"){a=!a,D+=y;continue}if(u){m===l+1?(y==="^"||y==="!")&&(f=!0):y==="]"&&!(m===l+2&&f)&&(u=!1),D+=y;continue}else if(y==="["){u=!0,l=m,f=!1,D+=y;continue}if(!r.noext&&vi(y)&&e.charAt(m)==="("&&i<=o){n.push(D),D="";let x=new me(y,n);m=me.#f(e,x,m,r,i+1),n.push(x);continue}D+=y}return n.push(D),m}let c=s+1,h=new me(null,n),d=[],g="";for(;c<e.length;){let m=e.charAt(c++);if(a||m==="\\"){a=!a,g+=m;continue}if(u){c===l+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(c===l+2&&f)&&(u=!1),g+=m;continue}else if(m==="["){u=!0,l=c,f=!1,g+=m;continue}if(vi(m)&&e.charAt(c)==="("&&(i<=o||n&&n.#h(m))){let y=n&&n.#h(m)?0:1;h.push(g),g="";let _=new me(m,h);h.push(_),c=me.#f(e,_,c,r,i+y);continue}if(m==="|"){h.push(g),g="",d.push(h),h=new me(null,n);continue}if(m===")")return g===""&&n.#e.length===0&&(n.#l=!0),h.push(g),g="",n.push(...d,h),c;g+=m}return n.type=null,n.#s=void 0,n.#e=[e.substring(s-1)],c}#_(e){return this.#p(e,jm)}#p(e,n=Sm){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null)return!1;let s=e.#e[0];return!s||typeof s!="object"||s.type===null?!1:this.#h(s.type,n)}#h(e,n=Pm){return!!n.get(this.type)?.includes(e)}#y(e,n){let s=e.#e[0],r=new me(null,s,this.options);r.#e.push(""),s.push(r),this.#g(e,n)}#g(e,n){let s=e.#e[0];this.#e.splice(n,1,...s.#e);for(let r of s.#e)typeof r=="object"&&(r.#t=this);this.#o=void 0}#b(e){return!!gc.get(this.type)?.has(e)}#E(e){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let n=e.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#b(n.type)}#C(e){let n=gc.get(this.type),s=e.#e[0],r=n?.get(s.type);if(!r)return!1;this.#e=s.#e;for(let i of this.#e)typeof i=="object"&&(i.#t=this);this.type=r,this.#o=void 0,this.#l=!1}#d(){if(pc(this)){let e=0,n=!1;do{n=!0;for(let s=0;s<this.#e.length;s++){let r=this.#e[s];typeof r=="object"&&(r.#d(),this.#p(r)?(n=!1,this.#g(r,s)):this.#_(r)?(n=!1,this.#y(r,s)):this.#E(r)&&(n=!1,this.#C(r)))}}while(!n&&++e<10)}else for(let e of this.#e)typeof e=="object"&&e.#d();this.#o=void 0}static fromGlob(e,n={}){let s=new me(null,void 0,n);return me.#f(e,s,0,n,0),s}toMMPattern(){if(this!==this.#n)return this.#n.toMMPattern();let e=this.toString(),[n,s,r,i]=this.toRegExpSource();if(!(r||this.#s||this.#i.nocase&&!this.#i.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return s;let a=(this.#i.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${n}$`,a),{_src:n,_glob:e})}get options(){return this.#i}toRegExpSource(e){let n=e??!!this.#i.dot;if(this.#n===this&&(this.#d(),this.#D()),!pc(this)){let u=this.isStart()&&this.isEnd(),l=this.#e.map(d=>{let[g,m,D,y]=typeof d=="string"?me.#v(d,this.#s,u):d.toRegExpSource(e);return this.#s=this.#s||D,this.#r=this.#r||y,g}).join(""),f="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&Lm.has(this.#e[0]))){let g=Rm,m=n&&g.has(l.charAt(0))||l.startsWith("\\.")&&g.has(l.charAt(2))||l.startsWith("\\.\\.")&&g.has(l.charAt(4)),D=!n&&!e&&g.has(l.charAt(0));f=m?$m:D?$s:""}let c="";return this.isEnd()&&this.#n.#u&&this.#t?.type==="!"&&(c="(?:$|\\/)"),[f+l+c,(0,Ps.unescape)(l),this.#s=!!this.#s,this.#r]}let s=this.type==="*"||this.type==="+",r=this.type==="!"?"(?:(?!(?:":"(?:",i=this.#m(n);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){let u=this.toString(),l=this;return l.#e=[u],l.type=null,l.#s=void 0,[u,(0,Ps.unescape)(this.toString()),!1,!1]}let o=!s||e||n||!$s?"":this.#m(!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&this.#l)a=(this.isStart()&&!n?$s:"")+Dc;else{let u=this.type==="!"?"))"+(this.isStart()&&!n&&!e?$s:"")+mc+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=r+i+u}return[a,(0,Ps.unescape)(i),this.#s=!!this.#s,this.#r]}#m(e){return this.#e.map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");let[s,r,i,o]=n.toRegExpSource(e);return this.#r=this.#r||o,s}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")}static#v(e,n,s=!1){let r=!1,i="",o=!1,a=!1;for(let u=0;u<e.length;u++){let l=e.charAt(u);if(r){r=!1,i+=(Tm.has(l)?"\\":"")+l,a=!1;continue}if(l==="\\"){u===e.length-1?i+="\\\\":r=!0;continue}if(l==="["){let[f,c,h,d]=(0,Om.parseClass)(e,u);if(h){i+=f,o=o||c,u+=h-1,n=n||d,a=!1;continue}}if(l==="*"){if(a)continue;a=!0,i+=s&&/^[*]+$/.test(e)?Dc:mc,n=!0;continue}else a=!1;if(l==="?"){i+=Fi,n=!0;continue}i+=km(l)}return[i,(0,Ps.unescape)(e),!!n,o]}};Ls.AST=Rs;me=Rs});var Ai=C(Ts=>{"use strict";p();Object.defineProperty(Ts,"__esModule",{value:!0});Ts.escape=void 0;var Mm=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");Ts.escape=Mm});var Fc=C(O=>{"use strict";p();Object.defineProperty(O,"__esModule",{value:!0});O.unescape=O.escape=O.AST=O.Minimatch=O.match=O.makeRe=O.braceExpand=O.defaults=O.filter=O.GLOBSTAR=O.sep=O.minimatch=void 0;var qm=lc(),ks=fc(),bc=wi(),Bm=Ai(),Im=js(),Nm=(t,e,n={})=>((0,ks.assertValidPattern)(e),!n.nocomment&&e.charAt(0)==="#"?!1:new gt(e,n).match(t));O.minimatch=Nm;var Hm=/^\*+([^+@!?\*\[\(]*)$/,Wm=t=>e=>!e.startsWith(".")&&e.endsWith(t),zm=t=>e=>e.endsWith(t),Gm=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Um=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Vm=/^\*+\.\*+$/,Km=t=>!t.startsWith(".")&&t.includes("."),Jm=t=>t!=="."&&t!==".."&&t.includes("."),Xm=/^\.\*+$/,Ym=t=>t!=="."&&t!==".."&&t.startsWith("."),Qm=/^\*+$/,Zm=t=>t.length!==0&&!t.startsWith("."),eD=t=>t.length!==0&&t!=="."&&t!=="..",tD=/^\?+([^+@!?\*\[\(]*)?$/,nD=([t,e=""])=>{let n=Ec([t]);return e?(e=e.toLowerCase(),s=>n(s)&&s.toLowerCase().endsWith(e)):n},sD=([t,e=""])=>{let n=Cc([t]);return e?(e=e.toLowerCase(),s=>n(s)&&s.toLowerCase().endsWith(e)):n},rD=([t,e=""])=>{let n=Cc([t]);return e?s=>n(s)&&s.endsWith(e):n},iD=([t,e=""])=>{let n=Ec([t]);return e?s=>n(s)&&s.endsWith(e):n},Ec=([t])=>{let e=t.length;return n=>n.length===e&&!n.startsWith(".")},Cc=([t])=>{let e=t.length;return n=>n.length===e&&n!=="."&&n!==".."},vc=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",_c={win32:{sep:"\\"},posix:{sep:"/"}};O.sep=vc==="win32"?_c.win32.sep:_c.posix.sep;O.minimatch.sep=O.sep;O.GLOBSTAR=Symbol("globstar **");O.minimatch.GLOBSTAR=O.GLOBSTAR;var oD="[^/]",aD=oD+"*?",uD="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",cD="(?:(?!(?:\\/|^)\\.).)*?",lD=(t,e={})=>n=>(0,O.minimatch)(n,t,e);O.filter=lD;O.minimatch.filter=O.filter;var Fe=(t,e={})=>Object.assign({},t,e),fD=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return O.minimatch;let e=O.minimatch;return Object.assign((s,r,i={})=>e(s,r,Fe(t,i)),{Minimatch:class extends e.Minimatch{constructor(r,i={}){super(r,Fe(t,i))}static defaults(r){return e.defaults(Fe(t,r)).Minimatch}},AST:class extends e.AST{constructor(r,i,o={}){super(r,i,Fe(t,o))}static fromGlob(r,i={}){return e.AST.fromGlob(r,Fe(t,i))}},unescape:(s,r={})=>e.unescape(s,Fe(t,r)),escape:(s,r={})=>e.escape(s,Fe(t,r)),filter:(s,r={})=>e.filter(s,Fe(t,r)),defaults:s=>e.defaults(Fe(t,s)),makeRe:(s,r={})=>e.makeRe(s,Fe(t,r)),braceExpand:(s,r={})=>e.braceExpand(s,Fe(t,r)),match:(s,r,i={})=>e.match(s,r,Fe(t,i)),sep:e.sep,GLOBSTAR:O.GLOBSTAR})};O.defaults=fD;O.minimatch.defaults=O.defaults;var hD=(t,e={})=>((0,ks.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,qm.expand)(t));O.braceExpand=hD;O.minimatch.braceExpand=O.braceExpand;var dD=(t,e={})=>new gt(t,e).makeRe();O.makeRe=dD;O.minimatch.makeRe=O.makeRe;var pD=(t,e,n={})=>{let s=new gt(e,n);return t=t.filter(r=>s.match(r)),s.options.nonull&&!t.length&&t.push(e),t};O.match=pD;O.minimatch.match=O.match;var yc=/[?*]|[+@!]\(.*?\)|\[|\]/,gD=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),gt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,n={}){(0,ks.assertValidPattern)(e),n=n||{},this.options=n,this.maxGlobstarRecursion=n.maxGlobstarRecursion??200,this.pattern=e,this.platform=n.platform||vc,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let n of e)if(typeof n!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);let s=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(s),this.debug(this.pattern,this.globParts);let r=this.globParts.map((i,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=i[0]===""&&i[1]===""&&(i[2]==="?"||!yc.test(i[2]))&&!yc.test(i[3]),l=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(f=>this.parse(f))];if(l)return[i[0],...i.slice(1).map(f=>this.parse(f))]}return i.map(u=>this.parse(u))});if(this.debug(this.pattern,r),this.set=r.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){let o=this.set[i];o[0]===""&&o[1]===""&&this.globParts[i][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let s=0;s<e.length;s++)for(let r=0;r<e[s].length;r++)e[s][r]==="**"&&(e[s][r]="*");let{optimizationLevel:n=1}=this.options;return n>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):n>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(n=>{let s=-1;for(;(s=n.indexOf("**",s+1))!==-1;){let r=s;for(;n[r+1]==="**";)r++;r!==s&&n.splice(s,r-s)}return n})}levelOneOptimize(e){return e.map(n=>(n=n.reduce((s,r)=>{let i=s[s.length-1];return r==="**"&&i==="**"?s:r===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(s.pop(),s):(s.push(r),s)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let r=1;r<e.length-1;r++){let i=e[r];r===1&&i===""&&e[0]===""||(i==="."||i==="")&&(n=!0,e.splice(r,1),r--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(n=!0,e.pop())}let s=0;for(;(s=e.indexOf("..",s+1))!==-1;){let r=e[s-1];r&&r!=="."&&r!==".."&&r!=="**"&&(n=!0,e.splice(s-1,2),s-=2)}}while(n);return e.length===0?[""]:e}firstPhasePreProcess(e){let n=!1;do{n=!1;for(let s of e){let r=-1;for(;(r=s.indexOf("**",r+1))!==-1;){let o=r;for(;s[o+1]==="**";)o++;o>r&&s.splice(r+1,o-r);let a=s[r+1],u=s[r+2],l=s[r+3];if(a!==".."||!u||u==="."||u===".."||!l||l==="."||l==="..")continue;n=!0,s.splice(r,1);let f=s.slice(0);f[r]="**",e.push(f),r--}if(!this.preserveMultipleSlashes){for(let o=1;o<s.length-1;o++){let a=s[o];o===1&&a===""&&s[0]===""||(a==="."||a==="")&&(n=!0,s.splice(o,1),o--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(n=!0,s.pop())}let i=0;for(;(i=s.indexOf("..",i+1))!==-1;){let o=s[i-1];if(o&&o!=="."&&o!==".."&&o!=="**"){n=!0;let u=i===1&&s[i+1]==="**"?["."]:[];s.splice(i-1,2,...u),s.length===0&&s.push(""),i-=2}}}}while(n);return e}secondPhasePreProcess(e){for(let n=0;n<e.length-1;n++)for(let s=n+1;s<e.length;s++){let r=this.partsMatch(e[n],e[s],!this.preserveMultipleSlashes);if(r){e[n]=[],e[s]=r;break}}return e.filter(n=>n.length)}partsMatch(e,n,s=!1){let r=0,i=0,o=[],a="";for(;r<e.length&&i<n.length;)if(e[r]===n[i])o.push(a==="b"?n[i]:e[r]),r++,i++;else if(s&&e[r]==="**"&&n[i]===e[r+1])o.push(e[r]),r++;else if(s&&n[i]==="**"&&e[r]===n[i+1])o.push(n[i]),i++;else if(e[r]==="*"&&n[i]&&(this.options.dot||!n[i].startsWith("."))&&n[i]!=="**"){if(a==="b")return!1;a="a",o.push(e[r]),r++,i++}else if(n[i]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(a==="a")return!1;a="b",o.push(n[i]),r++,i++}else return!1;return e.length===n.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,n=!1,s=0;for(let r=0;r<e.length&&e.charAt(r)==="!";r++)n=!n,s++;s&&(this.pattern=e.slice(s)),this.negate=n}matchOne(e,n,s=!1){let r=0,i=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),u=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),l=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),f=!l&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]),c=u?3:a?0:void 0,h=f?3:l?0:void 0;if(typeof c=="number"&&typeof h=="number"){let[d,g]=[e[c],n[h]];d.toLowerCase()===g.toLowerCase()&&(n[h]=d,i=h,r=c)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),n.includes(O.GLOBSTAR)?this.#n(e,n,s,r,i):this.#r(e,n,s,r,i)}#n(e,n,s,r,i){let o=n.indexOf(O.GLOBSTAR,i),a=n.lastIndexOf(O.GLOBSTAR),[u,l,f]=s?[n.slice(i,o),n.slice(o+1),[]]:[n.slice(i,o),n.slice(o+1,a),n.slice(a+1)];if(u.length){let _=e.slice(r,r+u.length);if(!this.#r(_,u,s,0,0))return!1;r+=u.length}let c=0;if(f.length){if(f.length+r>e.length)return!1;let _=e.length-f.length;if(this.#r(e,f,s,_,0))c=f.length;else{if(e[e.length-1]!==""||r+f.length===e.length||(_--,!this.#r(e,f,s,_,0)))return!1;c=f.length+1}}if(!l.length){let _=!!c;for(let x=r;x<e.length-c;x++){let L=String(e[x]);if(_=!0,L==="."||L===".."||!this.options.dot&&L.startsWith("."))return!1}return s||_}let h=[[[],0]],d=h[0],g=0,m=[0];for(let _ of l)_===O.GLOBSTAR?(m.push(g),d=[[],0],h.push(d)):(d[0].push(_),g++);let D=h.length-1,y=e.length-c;for(let _ of h)_[1]=y-(m[D--]+_[0].length);return!!this.#s(e,h,r,0,s,0,!!c)}#s(e,n,s,r,i,o,a){let u=n[r];if(!u){for(let c=s;c<e.length;c++){a=!0;let h=e[c];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return a}let[l,f]=u;for(;s<=f;){if(this.#r(e.slice(0,s+l.length),l,i,s,0)&&o<this.maxGlobstarRecursion){let d=this.#s(e,n,s+l.length,r+1,i,o+1,a);if(d!==!1)return d}let h=e[s];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;s++}return i||null}#r(e,n,s,r,i){let o,a,u,l;for(o=r,a=i,l=e.length,u=n.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");let f=n[a],c=e[o];if(this.debug(n,f,c),f===!1||f===O.GLOBSTAR)return!1;let h;if(typeof f=="string"?(h=c===f,this.debug("string match",f,c,h)):(h=f.test(c),this.debug("pattern match",f,c,h)),!h)return!1}if(o===l&&a===u)return!0;if(o===l)return s;if(a===u)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,O.braceExpand)(this.pattern,this.options)}parse(e){(0,ks.assertValidPattern)(e);let n=this.options;if(e==="**")return O.GLOBSTAR;if(e==="")return"";let s,r=null;(s=e.match(Qm))?r=n.dot?eD:Zm:(s=e.match(Hm))?r=(n.nocase?n.dot?Um:Gm:n.dot?zm:Wm)(s[1]):(s=e.match(tD))?r=(n.nocase?n.dot?sD:nD:n.dot?rD:iD)(s):(s=e.match(Vm))?r=n.dot?Jm:Km:(s=e.match(Xm))&&(r=Ym);let i=bc.AST.fromGlob(e,this.options).toMMPattern();return r&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let n=this.options,s=n.noglobstar?aD:n.dot?uD:cD,r=new Set(n.nocase?["i"]:[]),i=e.map(u=>{let l=u.map(f=>{if(f instanceof RegExp)for(let c of f.flags.split(""))r.add(c);return typeof f=="string"?gD(f):f===O.GLOBSTAR?O.GLOBSTAR:f._src});return l.forEach((f,c)=>{let h=l[c+1],d=l[c-1];f!==O.GLOBSTAR||d===O.GLOBSTAR||(d===void 0?h!==void 0&&h!==O.GLOBSTAR?l[c+1]="(?:\\/|"+s+"\\/)?"+h:l[c]=s:h===void 0?l[c-1]=d+"(?:\\/|"+s+")?":h!==O.GLOBSTAR&&(l[c-1]=d+"(?:\\/|\\/"+s+"\\/)"+h,l[c+1]=O.GLOBSTAR))}),l.filter(f=>f!==O.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...r].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;let s=this.options;this.isWindows&&(e=e.split("\\").join("/"));let r=this.slashSplit(e);this.debug(this.pattern,"split",r);let i=this.set;this.debug(this.pattern,"set",i);let o=r[r.length-1];if(!o)for(let a=r.length-2;!o&&a>=0;a--)o=r[a];for(let a=0;a<i.length;a++){let u=i[a],l=r;if(s.matchBase&&u.length===1&&(l=[o]),this.matchOne(l,u,n))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(e){return O.minimatch.defaults(e).Minimatch}};O.Minimatch=gt;var mD=wi();Object.defineProperty(O,"AST",{enumerable:!0,get:function(){return mD.AST}});var DD=Ai();Object.defineProperty(O,"escape",{enumerable:!0,get:function(){return DD.escape}});var _D=js();Object.defineProperty(O,"unescape",{enumerable:!0,get:function(){return _D.unescape}});O.minimatch.AST=bc.AST;O.minimatch.Minimatch=gt;O.minimatch.escape=Bm.escape;O.minimatch.unescape=Im.unescape});var vn=C((PC,Sc)=>{"use strict";p();var wc="[^\\\\/]",yD="(?=.)",Ac="[^/]",Oi="(?:\\/|$)",Oc="(?:^|\\/)",xi=`\\.{1,2}${Oi}`,bD="(?!\\.)",ED=`(?!${Oc}${xi})`,CD=`(?!\\.{0,1}${Oi})`,vD=`(?!${xi})`,FD="[^.\\/]",wD=`${Ac}*?`,AD="/",xc={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:yD,QMARK:Ac,END_ANCHOR:Oi,DOTS_SLASH:xi,NO_DOT:bD,NO_DOTS:ED,NO_DOT_SLASH:CD,NO_DOTS_SLASH:vD,QMARK_NO_DOT:FD,STAR:wD,START_ANCHOR:Oc,SEP:AD},OD={...xc,SLASH_LITERAL:"[\\\\/]",QMARK:wc,STAR:`${wc}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},xD={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Sc.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:xD,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?OD:xc}}});var Fn=C(De=>{"use strict";p();var{REGEX_BACKSLASH:SD,REGEX_REMOVE_BACKSLASH:jD,REGEX_SPECIAL_CHARS:PD,REGEX_SPECIAL_CHARS_GLOBAL:$D}=vn();De.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);De.hasRegexChars=t=>PD.test(t);De.isRegexChar=t=>t.length===1&&De.hasRegexChars(t);De.escapeRegex=t=>t.replace($D,"\\$1");De.toPosixSlashes=t=>t.replace(SD,"/");De.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let t=navigator.platform.toLowerCase();return t==="win32"||t==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};De.removeBackslashes=t=>t.replace(jD,e=>e==="\\"?"":e);De.escapeLast=(t,e,n)=>{let s=t.lastIndexOf(e,n);return s===-1?t:t[s-1]==="\\"?De.escapeLast(t,e,s-1):`${t.slice(0,s)}\\${t.slice(s)}`};De.removePrefix=(t,e={})=>{let n=t;return n.startsWith("./")&&(n=n.slice(2),e.prefix="./"),n};De.wrapOutput=(t,e={},n={})=>{let s=n.contains?"":"^",r=n.contains?"":"$",i=`${s}(?:${t})${r}`;return e.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};De.basename=(t,{windows:e}={})=>{let n=t.split(e?/[\\/]/:"/"),s=n[n.length-1];return s===""?n[n.length-2]:s}});var Mc=C((TC,kc)=>{"use strict";p();var jc=Fn(),{CHAR_ASTERISK:Si,CHAR_AT:RD,CHAR_BACKWARD_SLASH:wn,CHAR_COMMA:LD,CHAR_DOT:ji,CHAR_EXCLAMATION_MARK:Pi,CHAR_FORWARD_SLASH:Tc,CHAR_LEFT_CURLY_BRACE:$i,CHAR_LEFT_PARENTHESES:Ri,CHAR_LEFT_SQUARE_BRACKET:TD,CHAR_PLUS:kD,CHAR_QUESTION_MARK:Pc,CHAR_RIGHT_CURLY_BRACE:MD,CHAR_RIGHT_PARENTHESES:$c,CHAR_RIGHT_SQUARE_BRACKET:qD}=vn(),Rc=t=>t===Tc||t===wn,Lc=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},BD=(t,e)=>{let n=e||{},s=t.length-1,r=n.parts===!0||n.scanToEnd===!0,i=[],o=[],a=[],u=t,l=-1,f=0,c=0,h=!1,d=!1,g=!1,m=!1,D=!1,y=!1,_=!1,x=!1,L=!1,P=!1,q=0,V,$,R={value:"",depth:0,isGlob:!1},v=()=>l>=s,he=()=>u.charCodeAt(l+1),Z=()=>(V=$,u.charCodeAt(++l));for(;l<s;){$=Z();let H;if($===wn){_=R.backslashes=!0,$=Z(),$===$i&&(y=!0);continue}if(y===!0||$===$i){for(q++;v()!==!0&&($=Z());){if($===wn){_=R.backslashes=!0,Z();continue}if($===$i){q++;continue}if(y!==!0&&$===ji&&($=Z())===ji){if(h=R.isBrace=!0,g=R.isGlob=!0,P=!0,r===!0)continue;break}if(y!==!0&&$===LD){if(h=R.isBrace=!0,g=R.isGlob=!0,P=!0,r===!0)continue;break}if($===MD&&(q--,q===0)){y=!1,h=R.isBrace=!0,P=!0;break}}if(r===!0)continue;break}if($===Tc){if(i.push(l),o.push(R),R={value:"",depth:0,isGlob:!1},P===!0)continue;if(V===ji&&l===f+1){f+=2;continue}c=l+1;continue}if(n.noext!==!0&&($===kD||$===RD||$===Si||$===Pc||$===Pi)===!0&&he()===Ri){if(g=R.isGlob=!0,m=R.isExtglob=!0,P=!0,$===Pi&&l===f&&(L=!0),r===!0){for(;v()!==!0&&($=Z());){if($===wn){_=R.backslashes=!0,$=Z();continue}if($===$c){g=R.isGlob=!0,P=!0;break}}continue}break}if($===Si){if(V===Si&&(D=R.isGlobstar=!0),g=R.isGlob=!0,P=!0,r===!0)continue;break}if($===Pc){if(g=R.isGlob=!0,P=!0,r===!0)continue;break}if($===TD){for(;v()!==!0&&(H=Z());){if(H===wn){_=R.backslashes=!0,Z();continue}if(H===qD){d=R.isBracket=!0,g=R.isGlob=!0,P=!0;break}}if(r===!0)continue;break}if(n.nonegate!==!0&&$===Pi&&l===f){x=R.negated=!0,f++;continue}if(n.noparen!==!0&&$===Ri){if(g=R.isGlob=!0,r===!0){for(;v()!==!0&&($=Z());){if($===Ri){_=R.backslashes=!0,$=Z();continue}if($===$c){P=!0;break}}continue}break}if(g===!0){if(P=!0,r===!0)continue;break}}n.noext===!0&&(m=!1,g=!1);let J=u,b="",E="";f>0&&(b=u.slice(0,f),u=u.slice(f),c-=f),J&&g===!0&&c>0?(J=u.slice(0,c),E=u.slice(c)):g===!0?(J="",E=u):J=u,J&&J!==""&&J!=="/"&&J!==u&&Rc(J.charCodeAt(J.length-1))&&(J=J.slice(0,-1)),n.unescape===!0&&(E&&(E=jc.removeBackslashes(E)),J&&_===!0&&(J=jc.removeBackslashes(J)));let be={prefix:b,input:t,start:f,base:J,glob:E,isBrace:h,isBracket:d,isGlob:g,isExtglob:m,isGlobstar:D,negated:x,negatedExtglob:L};if(n.tokens===!0&&(be.maxDepth=0,Rc($)||o.push(R),be.tokens=o),n.parts===!0||n.tokens===!0){let H;for(let z=0;z<i.length;z++){let Ne=H?H+1:f,Ee=i[z],Ve=t.slice(Ne,Ee);n.tokens&&(z===0&&f!==0?(o[z].isPrefix=!0,o[z].value=b):o[z].value=Ve,Lc(o[z]),be.maxDepth+=o[z].depth),(z!==0||Ve!=="")&&a.push(Ve),H=Ee}if(H&&H+1<t.length){let z=t.slice(H+1);a.push(z),n.tokens&&(o[o.length-1].value=z,Lc(o[o.length-1]),be.maxDepth+=o[o.length-1].depth)}be.slashes=i,be.parts=a}return be};kc.exports=BD});var Ic=C((MC,Bc)=>{"use strict";p();var Ms=vn(),qe=Fn(),{MAX_LENGTH:qs,POSIX_REGEX_SOURCE:ID,REGEX_NON_SPECIAL_CHARS:ND,REGEX_SPECIAL_CHARS_BACKREF:HD,REPLACEMENTS:qc}=Ms,WD=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let n=`[${t.join("-")}]`;try{new RegExp(n)}catch{return t.map(r=>qe.escapeRegex(r)).join("..")}return n},Wt=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Li=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=qc[t]||t;let n={...e},s=typeof n.maxLength=="number"?Math.min(qs,n.maxLength):qs,r=t.length;if(r>s)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${s}`);let i={type:"bos",value:"",output:n.prepend||""},o=[i],a=n.capture?"":"?:",u=Ms.globChars(n.windows),l=Ms.extglobChars(u),{DOT_LITERAL:f,PLUS_LITERAL:c,SLASH_LITERAL:h,ONE_CHAR:d,DOTS_SLASH:g,NO_DOT:m,NO_DOT_SLASH:D,NO_DOTS_SLASH:y,QMARK:_,QMARK_NO_DOT:x,STAR:L,START_ANCHOR:P}=u,q=A=>`(${a}(?:(?!${P}${A.dot?g:f}).)*?)`,V=n.dot?"":m,$=n.dot?_:x,R=n.bash===!0?q(n):L;n.capture&&(R=`(${R})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let v={input:t,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=qe.removePrefix(t,v),r=t.length;let he=[],Z=[],J=[],b=i,E,be=()=>v.index===r-1,H=v.peek=(A=1)=>t[v.index+A],z=v.advance=()=>t[++v.index]||"",Ne=()=>t.slice(v.index+1),Ee=(A="",W=0)=>{v.consumed+=A,v.index+=W},Ve=A=>{v.output+=A.output!=null?A.output:A.value,Ee(A.value)},yf=()=>{let A=1;for(;H()==="!"&&(H(2)!=="("||H(3)==="?");)z(),v.start++,A++;return A%2===0?!1:(v.negated=!0,v.start++,!0)},qn=A=>{v[A]++,J.push(A)},tt=A=>{v[A]--,J.pop()},k=A=>{if(b.type==="globstar"){let W=v.braces>0&&(A.type==="comma"||A.type==="brace"),F=A.extglob===!0||he.length&&(A.type==="pipe"||A.type==="paren");A.type!=="slash"&&A.type!=="paren"&&!W&&!F&&(v.output=v.output.slice(0,-b.output.length),b.type="star",b.value="*",b.output=R,v.output+=b.output)}if(he.length&&A.type!=="paren"&&(he[he.length-1].inner+=A.value),(A.value||A.output)&&Ve(A),b&&b.type==="text"&&A.type==="text"){b.output=(b.output||b.value)+A.value,b.value+=A.value;return}A.prev=b,o.push(A),b=A},Bn=(A,W)=>{let F={...l[W],conditions:1,inner:""};F.prev=b,F.parens=v.parens,F.output=v.output;let T=(n.capture?"(":"")+F.open;qn("parens"),k({type:A,value:W,output:v.output?"":d}),k({type:"paren",extglob:!0,value:z(),output:T}),he.push(F)},bf=A=>{let W=A.close+(n.capture?")":""),F;if(A.type==="negate"){let T=R;if(A.inner&&A.inner.length>1&&A.inner.includes("/")&&(T=q(n)),(T!==R||be()||/^\)+$/.test(Ne()))&&(W=A.close=`)$))${T}`),A.inner.includes("*")&&(F=Ne())&&/^\.[^\\/.]+$/.test(F)){let G=Li(F,{...e,fastpaths:!1}).output;W=A.close=`)${G})${T})`}A.prev.type==="bos"&&(v.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:E,output:W}),tt("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let A=!1,W=t.replace(HD,(F,T,G,ce,ne,sr)=>ce==="\\"?(A=!0,F):ce==="?"?T?T+ce+(ne?_.repeat(ne.length):""):sr===0?$+(ne?_.repeat(ne.length):""):_.repeat(G.length):ce==="."?f.repeat(G.length):ce==="*"?T?T+ce+(ne?R:""):R:T?F:`\\${F}`);return A===!0&&(n.unescape===!0?W=W.replace(/\\/g,""):W=W.replace(/\\+/g,F=>F.length%2===0?"\\\\":F?"\\":"")),W===t&&n.contains===!0?(v.output=t,v):(v.output=qe.wrapOutput(W,v,e),v)}for(;!be();){if(E=z(),E==="\0")continue;if(E==="\\"){let F=H();if(F==="/"&&n.bash!==!0||F==="."||F===";")continue;if(!F){E+="\\",k({type:"text",value:E});continue}let T=/^\\+/.exec(Ne()),G=0;if(T&&T[0].length>2&&(G=T[0].length,v.index+=G,G%2!==0&&(E+="\\")),n.unescape===!0?E=z():E+=z(),v.brackets===0){k({type:"text",value:E});continue}}if(v.brackets>0&&(E!=="]"||b.value==="["||b.value==="[^")){if(n.posix!==!1&&E===":"){let F=b.value.slice(1);if(F.includes("[")&&(b.posix=!0,F.includes(":"))){let T=b.value.lastIndexOf("["),G=b.value.slice(0,T),ce=b.value.slice(T+2),ne=ID[ce];if(ne){b.value=G+ne,v.backtrack=!0,z(),!i.output&&o.indexOf(b)===1&&(i.output=d);continue}}}(E==="["&&H()!==":"||E==="-"&&H()==="]")&&(E=`\\${E}`),E==="]"&&(b.value==="["||b.value==="[^")&&(E=`\\${E}`),n.posix===!0&&E==="!"&&b.value==="["&&(E="^"),b.value+=E,Ve({value:E});continue}if(v.quotes===1&&E!=='"'){E=qe.escapeRegex(E),b.value+=E,Ve({value:E});continue}if(E==='"'){v.quotes=v.quotes===1?0:1,n.keepQuotes===!0&&k({type:"text",value:E});continue}if(E==="("){qn("parens"),k({type:"paren",value:E});continue}if(E===")"){if(v.parens===0&&n.strictBrackets===!0)throw new SyntaxError(Wt("opening","("));let F=he[he.length-1];if(F&&v.parens===F.parens+1){bf(he.pop());continue}k({type:"paren",value:E,output:v.parens?")":"\\)"}),tt("parens");continue}if(E==="["){if(n.nobracket===!0||!Ne().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(Wt("closing","]"));E=`\\${E}`}else qn("brackets");k({type:"bracket",value:E});continue}if(E==="]"){if(n.nobracket===!0||b&&b.type==="bracket"&&b.value.length===1){k({type:"text",value:E,output:`\\${E}`});continue}if(v.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(Wt("opening","["));k({type:"text",value:E,output:`\\${E}`});continue}tt("brackets");let F=b.value.slice(1);if(b.posix!==!0&&F[0]==="^"&&!F.includes("/")&&(E=`/${E}`),b.value+=E,Ve({value:E}),n.literalBrackets===!1||qe.hasRegexChars(F))continue;let T=qe.escapeRegex(b.value);if(v.output=v.output.slice(0,-b.value.length),n.literalBrackets===!0){v.output+=T,b.value=T;continue}b.value=`(${a}${T}|${b.value})`,v.output+=b.value;continue}if(E==="{"&&n.nobrace!==!0){qn("braces");let F={type:"brace",value:E,output:"(",outputIndex:v.output.length,tokensIndex:v.tokens.length};Z.push(F),k(F);continue}if(E==="}"){let F=Z[Z.length-1];if(n.nobrace===!0||!F){k({type:"text",value:E,output:E});continue}let T=")";if(F.dots===!0){let G=o.slice(),ce=[];for(let ne=G.length-1;ne>=0&&(o.pop(),G[ne].type!=="brace");ne--)G[ne].type!=="dots"&&ce.unshift(G[ne].value);T=WD(ce,n),v.backtrack=!0}if(F.comma!==!0&&F.dots!==!0){let G=v.output.slice(0,F.outputIndex),ce=v.tokens.slice(F.tokensIndex);F.value=F.output="\\{",E=T="\\}",v.output=G;for(let ne of ce)v.output+=ne.output||ne.value}k({type:"brace",value:E,output:T}),tt("braces"),Z.pop();continue}if(E==="|"){he.length>0&&he[he.length-1].conditions++,k({type:"text",value:E});continue}if(E===","){let F=E,T=Z[Z.length-1];T&&J[J.length-1]==="braces"&&(T.comma=!0,F="|"),k({type:"comma",value:E,output:F});continue}if(E==="/"){if(b.type==="dot"&&v.index===v.start+1){v.start=v.index+1,v.consumed="",v.output="",o.pop(),b=i;continue}k({type:"slash",value:E,output:h});continue}if(E==="."){if(v.braces>0&&b.type==="dot"){b.value==="."&&(b.output=f);let F=Z[Z.length-1];b.type="dots",b.output+=E,b.value+=E,F.dots=!0;continue}if(v.braces+v.parens===0&&b.type!=="bos"&&b.type!=="slash"){k({type:"text",value:E,output:f});continue}k({type:"dot",value:E,output:f});continue}if(E==="?"){if(!(b&&b.value==="(")&&n.noextglob!==!0&&H()==="("&&H(2)!=="?"){Bn("qmark",E);continue}if(b&&b.type==="paren"){let T=H(),G=E;(b.value==="("&&!/[!=<:]/.test(T)||T==="<"&&!/<([!=]|\w+>)/.test(Ne()))&&(G=`\\${E}`),k({type:"text",value:E,output:G});continue}if(n.dot!==!0&&(b.type==="slash"||b.type==="bos")){k({type:"qmark",value:E,output:x});continue}k({type:"qmark",value:E,output:_});continue}if(E==="!"){if(n.noextglob!==!0&&H()==="("&&(H(2)!=="?"||!/[!=<:]/.test(H(3)))){Bn("negate",E);continue}if(n.nonegate!==!0&&v.index===0){yf();continue}}if(E==="+"){if(n.noextglob!==!0&&H()==="("&&H(2)!=="?"){Bn("plus",E);continue}if(b&&b.value==="("||n.regex===!1){k({type:"plus",value:E,output:c});continue}if(b&&(b.type==="bracket"||b.type==="paren"||b.type==="brace")||v.parens>0){k({type:"plus",value:E});continue}k({type:"plus",value:c});continue}if(E==="@"){if(n.noextglob!==!0&&H()==="("&&H(2)!=="?"){k({type:"at",extglob:!0,value:E,output:""});continue}k({type:"text",value:E});continue}if(E!=="*"){(E==="$"||E==="^")&&(E=`\\${E}`);let F=ND.exec(Ne());F&&(E+=F[0],v.index+=F[0].length),k({type:"text",value:E});continue}if(b&&(b.type==="globstar"||b.star===!0)){b.type="star",b.star=!0,b.value+=E,b.output=R,v.backtrack=!0,v.globstar=!0,Ee(E);continue}let A=Ne();if(n.noextglob!==!0&&/^\([^?]/.test(A)){Bn("star",E);continue}if(b.type==="star"){if(n.noglobstar===!0){Ee(E);continue}let F=b.prev,T=F.prev,G=F.type==="slash"||F.type==="bos",ce=T&&(T.type==="star"||T.type==="globstar");if(n.bash===!0&&(!G||A[0]&&A[0]!=="/")){k({type:"star",value:E,output:""});continue}let ne=v.braces>0&&(F.type==="comma"||F.type==="brace"),sr=he.length&&(F.type==="pipe"||F.type==="paren");if(!G&&F.type!=="paren"&&!ne&&!sr){k({type:"star",value:E,output:""});continue}for(;A.slice(0,3)==="/**";){let In=t[v.index+4];if(In&&In!=="/")break;A=A.slice(3),Ee("/**",3)}if(F.type==="bos"&&be()){b.type="globstar",b.value+=E,b.output=q(n),v.output=b.output,v.globstar=!0,Ee(E);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&!ce&&be()){v.output=v.output.slice(0,-(F.output+b.output).length),F.output=`(?:${F.output}`,b.type="globstar",b.output=q(n)+(n.strictSlashes?")":"|$)"),b.value+=E,v.globstar=!0,v.output+=F.output+b.output,Ee(E);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&A[0]==="/"){let In=A[1]!==void 0?"|$":"";v.output=v.output.slice(0,-(F.output+b.output).length),F.output=`(?:${F.output}`,b.type="globstar",b.output=`${q(n)}${h}|${h}${In})`,b.value+=E,v.output+=F.output+b.output,v.globstar=!0,Ee(E+z()),k({type:"slash",value:"/",output:""});continue}if(F.type==="bos"&&A[0]==="/"){b.type="globstar",b.value+=E,b.output=`(?:^|${h}|${q(n)}${h})`,v.output=b.output,v.globstar=!0,Ee(E+z()),k({type:"slash",value:"/",output:""});continue}v.output=v.output.slice(0,-b.output.length),b.type="globstar",b.output=q(n),b.value+=E,v.output+=b.output,v.globstar=!0,Ee(E);continue}let W={type:"star",value:E,output:R};if(n.bash===!0){W.output=".*?",(b.type==="bos"||b.type==="slash")&&(W.output=V+W.output),k(W);continue}if(b&&(b.type==="bracket"||b.type==="paren")&&n.regex===!0){W.output=E,k(W);continue}(v.index===v.start||b.type==="slash"||b.type==="dot")&&(b.type==="dot"?(v.output+=D,b.output+=D):n.dot===!0?(v.output+=y,b.output+=y):(v.output+=V,b.output+=V),H()!=="*"&&(v.output+=d,b.output+=d)),k(W)}for(;v.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(Wt("closing","]"));v.output=qe.escapeLast(v.output,"["),tt("brackets")}for(;v.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(Wt("closing",")"));v.output=qe.escapeLast(v.output,"("),tt("parens")}for(;v.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(Wt("closing","}"));v.output=qe.escapeLast(v.output,"{"),tt("braces")}if(n.strictSlashes!==!0&&(b.type==="star"||b.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${h}?`}),v.backtrack===!0){v.output="";for(let A of v.tokens)v.output+=A.output!=null?A.output:A.value,A.suffix&&(v.output+=A.suffix)}return v};Li.fastpaths=(t,e)=>{let n={...e},s=typeof n.maxLength=="number"?Math.min(qs,n.maxLength):qs,r=t.length;if(r>s)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${s}`);t=qc[t]||t;let{DOT_LITERAL:i,SLASH_LITERAL:o,ONE_CHAR:a,DOTS_SLASH:u,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:c,STAR:h,START_ANCHOR:d}=Ms.globChars(n.windows),g=n.dot?f:l,m=n.dot?c:l,D=n.capture?"":"?:",y={negated:!1,prefix:""},_=n.bash===!0?".*?":h;n.capture&&(_=`(${_})`);let x=V=>V.noglobstar===!0?_:`(${D}(?:(?!${d}${V.dot?u:i}).)*?)`,L=V=>{switch(V){case"*":return`${g}${a}${_}`;case".*":return`${i}${a}${_}`;case"*.*":return`${g}${_}${i}${a}${_}`;case"*/*":return`${g}${_}${o}${a}${m}${_}`;case"**":return g+x(n);case"**/*":return`(?:${g}${x(n)}${o})?${m}${a}${_}`;case"**/*.*":return`(?:${g}${x(n)}${o})?${m}${_}${i}${a}${_}`;case"**/.*":return`(?:${g}${x(n)}${o})?${i}${a}${_}`;default:{let $=/^(.*?)\.(\w+)$/.exec(V);if(!$)return;let R=L($[1]);return R?R+i+$[2]:void 0}}},P=qe.removePrefix(t,y),q=L(P);return q&&n.strictSlashes!==!0&&(q+=`${o}?`),q};Bc.exports=Li});var Wc=C((BC,Hc)=>{"use strict";p();var zD=Mc(),Ti=Ic(),Nc=Fn(),GD=vn(),UD=t=>t&&typeof t=="object"&&!Array.isArray(t),Q=(t,e,n=!1)=>{if(Array.isArray(t)){let f=t.map(h=>Q(h,e,n));return h=>{for(let d of f){let g=d(h);if(g)return g}return!1}}let s=UD(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");let r=e||{},i=r.windows,o=s?Q.compileRe(t,e):Q.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(r.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};u=Q(r.ignore,f,n)}let l=(f,c=!1)=>{let{isMatch:h,match:d,output:g}=Q.test(f,o,e,{glob:t,posix:i}),m={glob:t,state:a,regex:o,posix:i,input:f,output:g,match:d,isMatch:h};return typeof r.onResult=="function"&&r.onResult(m),h===!1?(m.isMatch=!1,c?m:!1):u(f)?(typeof r.onIgnore=="function"&&r.onIgnore(m),m.isMatch=!1,c?m:!1):(typeof r.onMatch=="function"&&r.onMatch(m),c?m:!0)};return n&&(l.state=a),l};Q.test=(t,e,n,{glob:s,posix:r}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let i=n||{},o=i.format||(r?Nc.toPosixSlashes:null),a=t===s,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===s),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=Q.matchBase(t,e,n,r):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};Q.matchBase=(t,e,n)=>(e instanceof RegExp?e:Q.makeRe(e,n)).test(Nc.basename(t));Q.isMatch=(t,e,n)=>Q(e,n)(t);Q.parse=(t,e)=>Array.isArray(t)?t.map(n=>Q.parse(n,e)):Ti(t,{...e,fastpaths:!1});Q.scan=(t,e)=>zD(t,e);Q.compileRe=(t,e,n=!1,s=!1)=>{if(n===!0)return t.output;let r=e||{},i=r.contains?"":"^",o=r.contains?"":"$",a=`${i}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=Q.toRegex(a,e);return s===!0&&(u.state=t),u};Q.makeRe=(t,e={},n=!1,s=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let r={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(r.output=Ti.fastpaths(t,e)),r.output||(r=Ti(t,e)),Q.compileRe(r,e,n,s)};Q.toRegex=(t,e)=>{try{let n=e||{};return new RegExp(t,n.flags||(n.nocase?"i":""))}catch(n){if(e&&e.debug===!0)throw n;return/$^/}};Q.constants=GD;Hc.exports=Q});var ki=C((NC,Uc)=>{"use strict";p();var zc=Wc(),VD=Fn();function Gc(t,e,n=!1){return e&&(e.windows===null||e.windows===void 0)&&(e={...e,windows:VD.isWindows()}),zc(t,e,n)}Object.assign(Gc,zc);Uc.exports=Gc});var rl=C(sl=>{p();var KD=Object.create,Kc=Object.defineProperty,JD=Object.getOwnPropertyDescriptor,XD=Object.getOwnPropertyNames,YD=Object.getPrototypeOf,QD=Object.prototype.hasOwnProperty,ZD=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(var r=XD(e),i=0,o=r.length,a;i<o;i++)a=r[i],!QD.call(t,a)&&a!==n&&Kc(t,a,{get:(u=>e[u]).bind(null,a),enumerable:!(s=JD(e,a))||s.enumerable});return t},Jc=(t,e,n)=>(n=t!=null?KD(YD(t)):{},ZD(e||!t||!t.__esModule?Kc(n,"default",{value:t,enumerable:!0}):n,t)),Ue=Jc(w("path")),e0=Jc(w("fs"));function t0(t){let e=(0,Ue.normalize)(t);return e.length>1&&e[e.length-1]===Ue.sep&&(e=e.substring(0,e.length-1)),e}var n0=/[\\/]/g;function Xc(t,e){return t.replace(n0,e)}var s0=/^[a-z]:[\\/]$/i;function r0(t){return t==="/"||s0.test(t)}function Mi(t,e){let{resolvePaths:n,normalizePath:s,pathSeparator:r}=e,i=process.platform==="win32"&&t.includes("/")||t.startsWith(".");if(n&&(t=(0,Ue.resolve)(t)),(s||i)&&(t=t0(t)),t===".")return"";let o=t[t.length-1]!==r;return Xc(o?t+r:t,r)}function Yc(t,e){return e+t}function i0(t,e){return function(n,s){return s.startsWith(t)?s.slice(t.length)+n:Xc((0,Ue.relative)(t,s),e.pathSeparator)+e.pathSeparator+n}}function o0(t){return t}function a0(t,e,n){return e+t+n}function u0(t,e){let{relativePaths:n,includeBasePath:s}=e;return n&&t?i0(t,e):s?Yc:o0}function c0(t){return function(e,n){n.push(e.substring(t.length)||".")}}function l0(t){return function(e,n,s){let r=e.substring(t.length)||".";s.every(i=>i(r,!0))&&n.push(r)}}var f0=(t,e)=>{e.push(t||".")},h0=(t,e,n)=>{let s=t||".";n.every(r=>r(s,!0))&&e.push(s)},d0=()=>{};function p0(t,e){let{includeDirs:n,filters:s,relativePaths:r}=e;return n?r?s&&s.length?l0(t):c0(t):s&&s.length?h0:f0:d0}var g0=(t,e,n,s)=>{s.every(r=>r(t,!1))&&n.files++},m0=(t,e,n,s)=>{s.every(r=>r(t,!1))&&e.push(t)},D0=(t,e,n,s)=>{n.files++},_0=(t,e)=>{e.push(t)},y0=()=>{};function b0(t){let{excludeFiles:e,filters:n,onlyCounts:s}=t;return e?y0:n&&n.length?s?g0:m0:s?D0:_0}var E0=t=>t,C0=()=>[""].slice(0,0);function v0(t){return t.group?C0:E0}var F0=(t,e,n)=>{t.push({directory:e,files:n,dir:e})},w0=()=>{};function A0(t){return t.group?F0:w0}var O0=function(t,e,n){let{queue:s,fs:r,options:{suppressErrors:i}}=e;s.enqueue(),r.realpath(t,(o,a)=>{if(o)return s.dequeue(i?null:o,e);r.stat(a,(u,l)=>{if(u)return s.dequeue(i?null:u,e);if(l.isDirectory()&&Qc(t,a,e))return s.dequeue(null,e);n(l,a),s.dequeue(null,e)})})},x0=function(t,e,n){let{queue:s,fs:r,options:{suppressErrors:i}}=e;s.enqueue();try{let o=r.realpathSync(t),a=r.statSync(o);if(a.isDirectory()&&Qc(t,o,e))return;n(a,o)}catch(o){if(!i)throw o}};function S0(t,e){return!t.resolveSymlinks||t.excludeSymlinks?null:e?x0:O0}function Qc(t,e,n){if(n.options.useRealPaths)return j0(e,n);let s=(0,Ue.dirname)(t),r=1;for(;s!==n.root&&r<2;){let i=n.symlinks.get(s);!!i&&(i===e||i.startsWith(e)||e.startsWith(i))?r++:s=(0,Ue.dirname)(s)}return n.symlinks.set(t,e),r>1}function j0(t,e){return e.visited.includes(t+e.options.pathSeparator)}var P0=t=>t.counts,$0=t=>t.groups,R0=t=>t.paths,L0=t=>t.paths.slice(0,t.options.maxFiles),T0=(t,e,n)=>(Bs(e,n,t.counts,t.options.suppressErrors),null),k0=(t,e,n)=>(Bs(e,n,t.paths,t.options.suppressErrors),null),M0=(t,e,n)=>(Bs(e,n,t.paths.slice(0,t.options.maxFiles),t.options.suppressErrors),null),q0=(t,e,n)=>(Bs(e,n,t.groups,t.options.suppressErrors),null);function Bs(t,e,n,s){e(t&&!s?t:null,n)}function B0(t,e){let{onlyCounts:n,group:s,maxFiles:r}=t;return n?e?P0:T0:s?e?$0:q0:r?e?L0:M0:e?R0:k0}var Zc={withFileTypes:!0},I0=(t,e,n,s,r)=>{if(t.queue.enqueue(),s<0)return t.queue.dequeue(null,t);let{fs:i}=t;t.visited.push(e),t.counts.directories++,i.readdir(e||".",Zc,(o,a=[])=>{r(a,n,s),t.queue.dequeue(t.options.suppressErrors?null:o,t)})},N0=(t,e,n,s,r)=>{let{fs:i}=t;if(s<0)return;t.visited.push(e),t.counts.directories++;let o=[];try{o=i.readdirSync(e||".",Zc)}catch(a){if(!t.options.suppressErrors)throw a}r(o,n,s)};function H0(t){return t?N0:I0}var W0=class{count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,e){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,e),t&&(e.controller.abort(),this.onQueueEmpty=void 0))}},z0=class{_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}},G0=class{aborted=!1;abort(){this.aborted=!0}},el=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(t,e,n){this.isSynchronous=!n,this.callbackInvoker=B0(e,this.isSynchronous),this.root=Mi(t,e),this.state={root:r0(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new z0,options:e,queue:new W0((s,r)=>this.callbackInvoker(r,s,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new G0,fs:e.fs||e0},this.joinPath=u0(this.root,e),this.pushDirectory=p0(this.root,e),this.pushFile=b0(e),this.getArray=v0(e),this.groupFiles=A0(e),this.resolveSymlink=S0(e,this.isSynchronous),this.walkDirectory=H0(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(t,e,n)=>{let{paths:s,options:{filters:r,resolveSymlinks:i,excludeSymlinks:o,exclude:a,maxFiles:u,signal:l,useRealPaths:f,pathSeparator:c},controller:h}=this.state;if(h.aborted||l&&l.aborted||u&&s.length>u)return;let d=this.getArray(this.state.paths);for(let g=0;g<t.length;++g){let m=t[g];if(m.isFile()||m.isSymbolicLink()&&!i&&!o){let D=this.joinPath(m.name,e);this.pushFile(D,d,this.state.counts,r)}else if(m.isDirectory()){let D=a0(m.name,e,this.state.options.pathSeparator);if(a&&a(m.name,D))continue;this.pushDirectory(D,s,r),this.walkDirectory(this.state,D,D,n-1,this.walk)}else if(this.resolveSymlink&&m.isSymbolicLink()){let D=Yc(m.name,e);this.resolveSymlink(D,this.state,(y,_)=>{if(y.isDirectory()){if(_=Mi(_,this.state.options),a&&a(m.name,f?_:D+c))return;this.walkDirectory(this.state,_,f?_:D+c,n-1,this.walk)}else{_=f?_:D;let x=(0,Ue.basename)(_),L=Mi((0,Ue.dirname)(_),this.state.options);_=this.joinPath(x,L),this.pushFile(_,d,this.state.counts,r)}})}}this.groupFiles(this.state.groups,e,d)}};function U0(t,e){return new Promise((n,s)=>{tl(t,e,(r,i)=>{if(r)return s(r);n(i)})})}function tl(t,e,n){new el(t,e,n).start()}function V0(t,e){return new el(t,e).start()}var Vc=class{constructor(t,e){this.root=t,this.options=e}withPromise(){return U0(this.root,this.options)}withCallback(t){tl(this.root,this.options,t)}sync(){return V0(this.root,this.options)}},nl=null;try{w.resolve("picomatch"),nl=ki()}catch{}var K0=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:Ue.sep,filters:[]};globFunction;constructor(t){this.options={...this.options,...t},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(t){return this.options.pathSeparator=t,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(t){return this.options.maxDepth=t,this}withMaxFiles(t){return this.options.maxFiles=t,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:t=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=t,this.withFullPaths()}withAbortSignal(t){return this.options.signal=t,this}normalize(){return this.options.normalizePath=!0,this}filter(t){return this.options.filters.push(t),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(t){return this.options.exclude=t,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(t){return new Vc(t||".",this.options)}withGlobFunction(t){return this.globFunction=t,this}crawlWithOptions(t,e){return this.options={...this.options,...e},new Vc(t||".",this.options)}glob(...t){return this.globFunction?this.globWithOptions(t):this.globWithOptions(t,{dot:!0})}globWithOptions(t,...e){let n=this.globFunction||nl;if(!n)throw new Error("Please specify a glob function to use glob matching.");var s=this.globCache[t.join("\0")];return s||(s=n(t,...e),this.globCache[t.join("\0")]=s),this.options.filters.push(r=>s(r)),this}};sl.fdir=K0});var gl=C(Gt=>{p();var J0=Object.create,ol=Object.defineProperty,X0=Object.getOwnPropertyDescriptor,Y0=Object.getOwnPropertyNames,Q0=Object.getPrototypeOf,Z0=Object.prototype.hasOwnProperty,e_=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(var r=Y0(e),i=0,o=r.length,a;i<o;i++)a=r[i],!Z0.call(t,a)&&a!==n&&ol(t,a,{get:(u=>e[u]).bind(null,a),enumerable:!(s=X0(e,a))||s.enumerable});return t},An=(t,e,n)=>(n=t!=null?J0(Q0(t)):{},e_(e||!t||!t.__esModule?ol(n,"default",{value:t,enumerable:!0}):n,t)),Xe=w("fs");Xe=An(Xe);var je=w("path");je=An(je);var Bi=w("url");Bi=An(Bi);var Ii=rl();Ii=An(Ii);var mt=ki();mt=An(mt);var al=Array.isArray,Ni=process.platform==="win32",t_=/^(\/?\.\.)+$/;function n_(t,e={}){let n=t.length,s=Array(n),r=Array(n),i=!e.noglobstar;for(let o=0;o<n;o++){let a=ul(t[o]);s[o]=a;let u=a.length,l=Array(u);for(let f=0;f<u;f++)l[f]=(0,mt.default)(a[f],e);r[o]=l}return o=>{let a=o.split("/");if(a[0]===".."&&t_.test(o))return!0;for(let u=0;u<t.length;u++){let l=s[u],f=r[u],c=a.length,h=Math.min(c,l.length),d=0;for(;d<h;){let g=l[d];if(g.includes("/"))return!0;if(!f[d](a[d]))break;if(i&&g==="**")return!0;d++}if(d===c)return!0}return!1}}var s_=/^[A-Z]:\/$/i,r_=Ni?t=>s_.test(t):t=>t==="/";function il(t,e,n){if(t===e||e.startsWith(`${t}/`)){if(n){let r=r_(t)?t.length:t.length+1;return(i,o)=>i.slice(r,o?-1:void 0)||"."}let s=e.slice(t.length+1);return s?(r,i)=>{if(r===".")return s;let o=`${s}/${r}`;return i?o.slice(0,-1):o}:(r,i)=>i&&r!=="."?r.slice(0,-1):r}return n?s=>je.posix.relative(t,s)||".":s=>je.posix.relative(t,`${e}/${s}`)||"."}function i_(t,e){if(e.startsWith(`${t}/`)){let n=e.slice(t.length+1);return s=>`${n}/${s}`}return n=>{let s=je.posix.relative(t,`${e}/${n}`);return n.endsWith("/")&&s!==""?`${s}/`:s||"."}}var o_={parts:!0};function ul(t){var e;let n=mt.default.scan(t,o_);return!((e=n.parts)===null||e===void 0)&&e.length?n.parts:[t]}var a_=/\\(?![()[\]{}!+@])/g;function u_(t){return cl(t)}function c_(t){return ll(t).replace(a_,"/")}var l_=Ni?c_:u_,f_=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,h_=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,cl=t=>t.replace(f_,"\\$&"),ll=t=>t.replace(h_,"\\$&"),fl=Ni?ll:cl;function hl(t,e){if(e?.caseSensitiveMatch===!1)return!0;let n=mt.default.scan(t);return n.isGlob||n.negated}function zt(...t){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...t)}var d_=/^(\/?\.\.)+/,p_=/\\(?=[()[\]{}!*+?@|])/g,Is=/\\/g;function qi(t,e,n,s,r){let i=t;t.endsWith("/")&&(i=t.slice(0,-1)),!i.endsWith("*")&&e&&(i+="/**");let o=fl(n);je.default.isAbsolute(i.replace(p_,""))?i=je.posix.relative(o,i):i=je.posix.normalize(i);let a=d_.exec(i),u=ul(i);if(a?.[0]){let f=(a[0].length+1)/3,c=0,h=o.split("/");for(;c<f&&u[c+f]===h[h.length+c-f];)i=i.slice(0,(f-c-1)*3)+i.slice((f-c)*3+u[c+f].length+1)||".",c++;let d=je.posix.join(n,a[0].slice(c*3));!d.startsWith(".")&&s.root.length>d.length&&(s.root=d,s.depthOffset=-f+c)}if(!r&&s.depthOffset>=0){var l;(l=s.commonPath)!==null&&l!==void 0||(s.commonPath=u);let f=[],c=Math.min(s.commonPath.length,u.length);for(let h=0;h<c;h++){let d=u[h];if(d==="**"&&!u[h+1]){f.pop();break}if(d!==s.commonPath[h]||hl(d)||h===u.length-1)break;f.push(d)}s.depthOffset=f.length,s.commonPath=f,s.root=f.length>0?je.posix.join(n,...f):n}return i}function g_({patterns:t=["**/*"],ignore:e=[],expandDirectories:n=!0},s,r){typeof t=="string"&&(t=[t]),typeof e=="string"&&(e=[e]);let i=[],o=[];for(let a of e)a&&(a[0]!=="!"||a[1]==="(")&&o.push(qi(a,n,s,r,!0));for(let a of t)a&&(a[0]!=="!"||a[1]==="("?i.push(qi(a,n,s,r,!1)):(a[1]!=="!"||a[2]==="(")&&o.push(qi(a.slice(1),n,s,r,!0)));return{match:i,ignore:o}}function dl(t,e){for(let n=t.length-1;n>=0;n--){let s=t[n];t[n]=e(s)}return t}function m_(t){return t?t instanceof URL?(0,Bi.fileURLToPath)(t).replace(Is,"/"):je.default.resolve(t).replace(Is,"/"):process.cwd().replace(Is,"/")}function pl(t,e={}){let n=process.env.TINYGLOBBY_DEBUG?{...e,debug:!0}:e,s=m_(n.cwd);if(n.debug&&zt("globbing with:",{patterns:t,options:n,cwd:s}),Array.isArray(t)&&t.length===0)return[{sync:()=>[],withPromise:async()=>[]},!1];let r={root:s,commonPath:null,depthOffset:0},i=g_({...n,patterns:t},s,r);n.debug&&zt("internal processing patterns:",i);let o={dot:n.dot,nobrace:n.braceExpansion===!1,nocase:n.caseSensitiveMatch===!1,noextglob:n.extglob===!1,noglobstar:n.globstar===!1,posix:!0},a=(0,mt.default)(i.match,{...o,ignore:i.ignore}),u=(0,mt.default)(i.ignore,o),l=n_(i.match,o),f=il(s,r.root,n.absolute),c=n.absolute?f:il(s,r.root,!0),h={filters:[n.debug?(m,D)=>{let y=f(m,D),_=a(y);return _&&zt(`matched ${y}`),_}:(m,D)=>a(f(m,D))],exclude:n.debug?(m,D)=>{let y=c(D,!0),_=y!=="."&&!l(y)||u(y);return zt(_?`skipped ${D}`:`crawling ${D}`),_}:(m,D)=>{let y=c(D,!0);return y!=="."&&!l(y)||u(y)},fs:n.fs?{readdir:n.fs.readdir||Xe.default.readdir,readdirSync:n.fs.readdirSync||Xe.default.readdirSync,realpath:n.fs.realpath||Xe.default.realpath,realpathSync:n.fs.realpathSync||Xe.default.realpathSync,stat:n.fs.stat||Xe.default.stat,statSync:n.fs.statSync||Xe.default.statSync}:void 0,pathSeparator:"/",relativePaths:!0,resolveSymlinks:!0,signal:n.signal};n.deep!==void 0&&(h.maxDepth=Math.round(n.deep-r.depthOffset)),n.absolute&&(h.relativePaths=!1,h.resolvePaths=!0,h.includeBasePath=!0),n.followSymbolicLinks===!1&&(h.resolveSymlinks=!1,h.excludeSymlinks=!0),n.onlyDirectories?(h.excludeFiles=!0,h.includeDirs=!0):n.onlyFiles===!1&&(h.includeDirs=!0),r.root=r.root.replace(Is,"");let d=r.root;n.debug&&zt("internal properties:",r);let g=s!==d&&!n.absolute&&i_(s,r.root);return[new Ii.fdir(h).crawl(d),g]}async function D_(t,e){if(t&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");let n=al(t)||typeof t=="string",s=n?e:t,r=n?t:t.patterns,[i,o]=pl(r,s);return o?dl(await i.withPromise(),o):i.withPromise()}function __(t,e){if(t&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");let n=al(t)||typeof t=="string",s=n?e:t,r=n?t:t.patterns,[i,o]=pl(r,s);return o?dl(i.sync(),o):i.sync()}Gt.convertPathToPattern=l_;Gt.escapePath=fl;Gt.glob=D_;Gt.globSync=__;Gt.isDynamicPattern=hl});var Wi=C(ie=>{"use strict";p();Object.defineProperty(ie,"__esModule",{value:!0});ie.help=ie.version=ie.string=ie.url=ie.file=ie.directory=ie.integer=void 0;ie.custom=Ut;ie.boolean=Hi;ie.option=v_;var y_=w("node:url"),Ns=Ge(),b_=yn(),ml=Le();function Ut(t){return(e={})=>({parse:async(n,s,r)=>n,...t,...e,input:[],multiple:!!(e.multiple===void 0?t?.multiple??!1:e.multiple),type:"option"})}function Hi(t={}){return{parse:async(e,n)=>e,...t,allowNo:!!t.allowNo,type:"boolean"}}ie.integer=Ut({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Ns.CLIError(`Expected an integer but received: ${t}`);let s=Number.parseInt(t,10);if(n.min!==void 0&&s<n.min)throw new Ns.CLIError(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&s>n.max)throw new Ns.CLIError(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return s}});ie.directory=Ut({async parse(t,e,n){return n.exists?(0,ml.dirExists)(t):t}});ie.file=Ut({async parse(t,e,n){return n.exists?(0,ml.fileExists)(t):t}});ie.url=Ut({async parse(t){try{return new y_.URL(t)}catch{throw new Ns.CLIError(`Expected a valid url but received: ${t}`)}}});ie.string=Ut();var E_=(t={})=>Hi({description:"Show CLI version.",...t,async parse(e,n){n.log(n.config.userAgent),n.exit(0)}});ie.version=E_;var C_=(t={})=>Hi({description:"Show CLI help.",...t,async parse(e,n){let s=await(0,b_.loadHelpClass)(n.config);await new s(n.config,n.config.pjson.oclif.helpOptions??n.config.pjson.helpOptions).showHelp(n.id?[n.id,...n.argv]:n.argv),n.exit(0)}});ie.help=C_;function v_(t){return(e={})=>({parse:async(n,s,r)=>n,...t,...e,input:[],multiple:!!(e.multiple===void 0?t.multiple:e.multiple),type:"option"})}});var Gi=C(zi=>{"use strict";p();Object.defineProperty(zi,"__esModule",{value:!0});zi.aggregateFlags=A_;var F_=Wi(),w_=(0,F_.boolean)({description:"Format output as json.",helpGroup:"GLOBAL"});function A_(t,e,n){let s={...e,...t};return n?{json:w_,...s}:s}});var yl=C(Ui=>{"use strict";p();Object.defineProperty(Ui,"__esModule",{value:!0});Ui.cacheCommand=$_;var O_=Gi(),Dl=Qr(),x_=bs(),S_=ee();function _l(t,e){let n=Object.getPrototypeOf(e),s=(0,S_.pickBy)(n,r=>r!==void 0);return Object.keys(n).length>0?_l({...s,...t},n):t}async function j_(t,e){let n=Object.entries(t).map(async([s,r])=>[s,{aliases:r.aliases,char:r.char,charAliases:r.charAliases,dependsOn:r.dependsOn,deprecateAliases:r.deprecateAliases,deprecated:r.deprecated,description:r.description,env:r.env,exclusive:r.exclusive,helpGroup:r.helpGroup,helpLabel:r.helpLabel,hidden:r.hidden,name:s,noCacheDefault:r.noCacheDefault,relationships:r.relationships,required:r.required,summary:r.summary,...r.type==="boolean"?{allowNo:r.allowNo,type:r.type}:{default:await(0,Dl.cacheDefaultValue)(r,e),delimiter:r.delimiter,hasDynamicHelp:typeof r.defaultHelp=="function",helpValue:r.helpValue,multiple:r.multiple,options:r.options,type:r.type}}]);return Object.fromEntries(await Promise.all(n))}async function P_(t,e){let n=Object.entries(t).map(async([s,r])=>[s,{default:await(0,Dl.cacheDefaultValue)(r,e),description:r.description,hidden:r.hidden,name:s,noCacheDefault:r.noCacheDefault,options:r.options,required:r.required}]);return Object.fromEntries(await Promise.all(n))}async function $_(t,e,n=!1){let s=_l(t,t),r=s.flags??s._flags,i=s.baseFlags??s._baseFlags,[o,a]=await Promise.all([j_((0,O_.aggregateFlags)(r,i,s.enableJsonFlag),n),P_((0,x_.ensureArgObject)(s.args),n)]),u={aliases:(s.aliases??[]).map(d=>d.replaceAll(" ",":")),args:a,deprecateAliases:s.deprecateAliases,deprecationOptions:s.deprecationOptions,description:s.description,examples:s.examples??s.example,flags:o,hasDynamicHelp:Object.values(o).some(d=>d.hasDynamicHelp),hidden:s.hidden,hiddenAliases:s.hiddenAliases??[],id:s.id,pluginAlias:e&&e.alias,pluginName:e&&e.name,pluginType:e&&e.type,state:s.state,strict:s.strict,summary:s.summary,usage:s.usage},l=["plugin","_flags","_enableJsonFlag","_globalFlags","_baseFlags","baseFlags","_--","_base"],f=new Set([...l,...Object.keys(u)]),c=Object.keys(s).filter(d=>!f.has(d)),h=Object.fromEntries(c.map(d=>[d,s[d]]));return{...u,...h}}});var El=C(Ws=>{"use strict";p();Object.defineProperty(Ws,"__esModule",{value:!0});Ws.debug=_e;Ws.findRoot=q_;var ye=w("node:path"),R_=de(),Hs=Le();function _e(...t){return(e,...n)=>(0,R_.getLogger)(["find-root",...t].join(":")).debug(e,...n)}function*Vi(t){for(;(0,ye.dirname)(t)!==t;)yield t,t=(0,ye.dirname)(t);yield t}async function bl(t,e){if(_e(e??"root-plugin")(`Finding root starting at ${t}`),e){for(let n of Vi(t))if(n.endsWith((0,ye.basename)(e)))return _e(e)("Found root based on plugin name!"),n}for(let n of Vi(t))if(!((0,ye.basename)((0,ye.dirname)(n))==="bin"&&["dev","dev.cmd","dev.js","run","run.cmd","run.js"].includes((0,ye.basename)(n))))try{let s=(0,ye.join)(n,"package.json");if(_e(e??"root-plugin")(`Checking ${s}`),await(0,Hs.safeReadJson)(s))return _e(e??"root-plugin")("Found root by traversing up from starting point!"),(0,ye.dirname)(s)}catch{}}async function L_(t,e){_e(t??"root-plugin")("Finding root using legacy method");for(let n of Vi(e)){let s;if(t){if(s=(0,ye.join)(n,"node_modules",t,"package.json"),await(0,Hs.safeReadJson)(s))return(0,ye.dirname)(s);if((await(0,Hs.safeReadJson)((0,ye.join)(n,"package.json")))?.name===t)return n}else if(s=(0,ye.join)(n,"package.json"),await(0,Hs.safeReadJson)(s))return(0,ye.dirname)(s)}}var Ye;function T_(t){if(Ye)return Ye;try{return Ye=w(w.resolve("pnpapi",{paths:[t]})),Ye}catch{}}var Ki=t=>JSON.stringify(t),k_=(t,e,n)=>Ki(t?.packageDependencies.get(n))===Ki(e?.packageDependencies.get(n));function M_(t,e){if(T_(e),!Ye)return;_e(t)("Finding root for using pnp method");let n=new Set,s=(r,i)=>{let o=Ki(r);if(n.has(o))return;let a=Ye.getPackageInformation(r);if(r.name===t)return a.packageLocation;n.add(o);for(let[u,l]of a.packageDependencies){if(l===null||i!==null&&k_(a,i,u))continue;let f=Ye.getLocator(u,l),c=s(f,a);if(c)return c}n.delete(o)};for(let r of Ye.getDependencyTreeRoots()){let i=s(r);if(i)return i}}async function q_(t,e){if(t){_e(t)(`Finding root using ${e}`);let s;try{s=w.resolve(t,{paths:[e]}),_e(t)("Found starting point with require.resolve")}catch{_e(t)("require.resolve could not find plugin starting point")}if(s){let i=await bl((0,ye.dirname)(s),t);if(i)return _e(t)(`Found root at ${i}`),i}let r=process.versions.pnp?M_(t,e):await L_(t,e);return _e(t)(r?`Found root at ${r}`:"No root found!"),r}_e("root-plugin")(`Finding root plugin using ${e}`);let n=await bl(e);return _e("root-plugin")(n?`Found root at ${n}`:"No root found!"),n}});var xl=C((cv,xn)=>{p();var Pe=w("path"),On=w("fs"),B_=w("os"),I_=w("url"),Cl=On.promises.readFile;function N_(t,e){return["package.json",`.${t}rc.json`,`.${t}rc.js`,`.${t}rc.cjs`,...e?[]:[`.${t}rc.mjs`],`.config/${t}rc`,`.config/${t}rc.json`,`.config/${t}rc.js`,`.config/${t}rc.cjs`,...e?[]:[`.config/${t}rc.mjs`],`${t}.config.js`,`${t}.config.cjs`,...e?[]:[`${t}.config.mjs`]]}function Gs(t){return Pe.dirname(t)||Pe.sep}var Xi=(t,e)=>JSON.parse(e),zs=typeof __webpack_require__=="function"?__non_webpack_require__:w,vl=Object.freeze({".js":zs,".json":zs,".cjs":zs,noExt:Xi});xn.exports.defaultLoadersSync=vl;var Ji=async t=>{try{return(await import(I_.pathToFileURL(t).href)).default}catch(e){try{return zs(t)}catch(n){throw n.code==="ERR_REQUIRE_ESM"||n instanceof SyntaxError&&n.toString().includes("Cannot use import statement outside a module")?e:n}}},Fl=Object.freeze({".js":Ji,".mjs":Ji,".cjs":Ji,".json":Xi,noExt:Xi});xn.exports.defaultLoaders=Fl;function wl(t,e,n){let s={stopDir:B_.homedir(),searchPlaces:N_(t,n),ignoreEmptySearchPlaces:!0,cache:!0,transform:r=>r,packageProp:[t],...e,loaders:{...n?vl:Fl,...e.loaders}};return s.searchPlaces.forEach(r=>{let i=Pe.extname(r)||"noExt",o=s.loaders[i];if(!o)throw new Error(`Missing loader for extension "${r}"`);if(typeof o!="function")throw new Error(`Loader for extension "${r}" is not a function: Received ${typeof o}.`)}),s}function Us(t,e){return typeof t=="string"&&t in e?e[t]:(Array.isArray(t)?t:t.split(".")).reduce((n,s)=>n===void 0?n:n[s],e)||null}function Al(t){if(!t)throw new Error("load must pass a non-empty string")}function Vs(t,e){if(!t)throw new Error(`No loader specified for extension "${e}"`);if(typeof t!="function")throw new Error("loader is not a function")}var Ol=t=>(e,n,s)=>(t&&e.set(n,s),s);xn.exports.lilconfig=function(e,n){let{ignoreEmptySearchPlaces:s,loaders:r,packageProp:i,searchPlaces:o,stopDir:a,transform:u,cache:l}=wl(e,n??{},!1),f=new Map,c=new Map,h=Ol(l);return{async search(d=process.cwd()){let g={config:null,filepath:""},m=new Set,D=d;e:for(;;){if(l){let _=f.get(D);if(_!==void 0){for(let x of m)f.set(x,_);return _}m.add(D)}for(let _ of o){let x=Pe.join(D,_);try{await On.promises.access(x)}catch{continue}let L=String(await Cl(x)),P=Pe.extname(_)||"noExt",q=r[P];if(_==="package.json"){let $=await q(x,L),R=Us(i,$);if(R!=null){g.config=R,g.filepath=x;break e}continue}let V=L.trim()==="";if(!(V&&s)){V?(g.isEmpty=!0,g.config=void 0):(Vs(q,P),g.config=await q(x,L)),g.filepath=x;break e}}if(D===a||D===Gs(D))break e;D=Gs(D)}let y=g.filepath===""&&g.config===null?u(null):u(g);if(l)for(let _ of m)f.set(_,y);return y},async load(d){Al(d);let g=Pe.resolve(process.cwd(),d);if(l&&c.has(g))return c.get(g);let{base:m,ext:D}=Pe.parse(g),y=D||"noExt",_=r[y];Vs(_,y);let x=String(await Cl(g));if(m==="package.json"){let q=await _(g,x);return h(c,g,u({config:Us(i,q),filepath:g}))}let L={config:null,filepath:g},P=x.trim()==="";return P&&s?h(c,g,u({config:void 0,filepath:g,isEmpty:!0})):(L.config=P?void 0:await _(g,x),h(c,g,u(P?{...L,isEmpty:P,config:void 0}:L)))},clearLoadCache(){l&&c.clear()},clearSearchCache(){l&&f.clear()},clearCaches(){l&&(c.clear(),f.clear())}}};xn.exports.lilconfigSync=function(e,n){let{ignoreEmptySearchPlaces:s,loaders:r,packageProp:i,searchPlaces:o,stopDir:a,transform:u,cache:l}=wl(e,n??{},!0),f=new Map,c=new Map,h=Ol(l);return{search(d=process.cwd()){let g={config:null,filepath:""},m=new Set,D=d;e:for(;;){if(l){let _=f.get(D);if(_!==void 0){for(let x of m)f.set(x,_);return _}m.add(D)}for(let _ of o){let x=Pe.join(D,_);try{On.accessSync(x)}catch{continue}let L=Pe.extname(_)||"noExt",P=r[L],q=String(On.readFileSync(x));if(_==="package.json"){let $=P(x,q),R=Us(i,$);if(R!=null){g.config=R,g.filepath=x;break e}continue}let V=q.trim()==="";if(!(V&&s)){V?(g.isEmpty=!0,g.config=void 0):(Vs(P,L),g.config=P(x,q)),g.filepath=x;break e}}if(D===a||D===Gs(D))break e;D=Gs(D)}let y=g.filepath===""&&g.config===null?u(null):u(g);if(l)for(let _ of m)f.set(_,y);return y},load(d){Al(d);let g=Pe.resolve(process.cwd(),d);if(l&&c.has(g))return c.get(g);let{base:m,ext:D}=Pe.parse(g),y=D||"noExt",_=r[y];Vs(_,y);let x=String(On.readFileSync(g));if(m==="package.json"){let q=_(g,x);return u({config:Us(i,q),filepath:g})}let L={config:null,filepath:g},P=x.trim()==="";return P&&s?h(c,g,u({filepath:g,config:void 0,isEmpty:!0})):(L.config=P?void 0:_(g,x),h(c,g,u(P?{...L,isEmpty:P,config:void 0}:L)))},clearLoadCache(){l&&c.clear()},clearSearchCache(){l&&f.clear()},clearCaches(){l&&(c.clear(),f.clear())}}}});var jl=C(Yi=>{"use strict";p();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.readPjson=G_;var H_=xl(),W_=w("node:path"),z_=de(),Sl=Le(),Sn=(0,z_.makeDebug)("read-pjson");async function G_(t){let e=(0,W_.join)(t,"package.json");if(process.env.OCLIF_DISABLE_RC)return Sn("OCLIF_DISABLE_RC is set, skipping rc search"),(0,Sl.readJson)(e);let n=await(0,Sl.readJson)(e);if(n.oclif)return Sn(`found oclif config in ${e}`),n;Sn(`searching for oclif config in ${t}`);let r=await(0,H_.lilconfig)("oclif",{searchPlaces:[".oclifrc",".oclifrc.json",".oclifrc.js",".oclifrc.mjs",".oclifrc.cjs","oclif.config.js","oclif.config.mjs","oclif.config.cjs"],stopDir:t}).search(t);return r?.config?(Sn(`found oclif config for ${t}: %O`,r),{...n,oclif:r?.config??{}}):(Sn(`no oclif config found in ${t}`),n)}});var to=C(Kt=>{"use strict";p();var U_=Kt&&Kt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.Plugin=void 0;var jn=w("node:path"),Pl=w("node:util"),V_=gl(),K_=U_(Oe()),Pn=Ge(),Ks=cn(),Vt=Nt(),kl=ds(),J_=yl(),X_=El(),Y_=Le(),Q_=jl(),$l=ee(),Qi=Rt(),Js=$t(),Rl=K_.default.getInstance().get("@oclif/core");function Zi(t,e){return t?(e=e?`${e}:`:"",Array.isArray(t)?[...t,t.flatMap(n=>Zi(n.subtopics,`${e}${n.name}`))]:Object.keys(t).flatMap(n=>(t[n].name=n,[{...t[n],name:`${e}${n}`},...Zi(t[n].subtopics,`${e}${t[n].name}`)]))):[]}var Z_=(t,e)=>!!(t?.commands[e]&&"isESM"in t.commands[e]&&"relativePath"in t.commands[e]),Ll=t=>typeof t.run=="function"?t:t.default&&t.default.run?t.default:Object.values(t).find(e=>typeof e.run=="function"),Tl=t=>{if(t&&typeof t.run=="function")return t},Ml=["**/*.+(js|cjs|mjs|ts|tsx|mts|cts)","!**/*.+(d.ts|test.ts|test.js|spec.ts|spec.js|d.mts|d.cts)?(x)"];function ey(t){return t.map(e=>{let n=(0,jn.parse)(e),s=n.dir.split("/"),r=n.name!=="index"&&n.name,i=[...s,r].filter(Boolean).join(":");return i===""?kl.SINGLE_COMMAND_CLI_SYMBOL:i})}function ty(t){if(t){if(typeof t=="string")return{globPatterns:Ml,strategy:"pattern",target:t};if(!t.target)throw new Pn.CLIError("`oclif.commandDiscovery.target` is required.");if(!t.strategy)throw new Pn.CLIError("`oclif.commandDiscovery.strategy` is required.");return t.strategy==="explicit"&&!t.identifier&&(t.identifier="default"),t}}function ny(t){return typeof t=="string"?{identifier:"default",target:t}:t.identifier?t:{...t,identifier:"default"}}var eo=class{options;_base=`${Rl.name}@${Rl.version}`;_debug=(0,Js.makeDebug)();alias;alreadyLoaded=!1;children=[];commandIDs=[];commands;commandsDir;hasManifest=!1;hooks;isRoot=!1;manifest;moduleType;name;parent;pjson;root;tag;type;valid=!1;version;commandCache;commandDiscoveryOpts;flexibleTaxonomy;constructor(e){this.options=e}get topics(){return Zi(this.pjson.oclif.topics||{})}async findCommand(e,n={}){let s=Vt.Performance.mark(Vt.OCLIF_MARKER_OWNER,`plugin.findCommand#${this.name}.${e}`,{id:e,plugin:this.name}),i=await(async()=>{if(this.commandDiscoveryOpts?.strategy==="pattern"){let o=await this.getCommandsDir();if(!o)return;let a,u,l;try{({filePath:l,isESM:u,module:a}=Z_(this.manifest,e)?await(0,Ks.loadWithDataFromManifest)(this.manifest.commands[e],this.root):await(0,Ks.loadWithData)(this,(0,jn.join)(o??this.pjson.oclif.commands,...e.split(":")))),this._debug(u?"(import)":"(require)",l)}catch(c){if(!n.must&&c.code==="MODULE_NOT_FOUND")return;throw c}let f=Ll(a);return f?(f.id=e,f.plugin=this,f.isESM=u,f.relativePath=(0,jn.relative)(this.root,l||"").split(jn.sep),f):void 0}if(this.commandDiscoveryOpts?.strategy==="single"||this.commandDiscoveryOpts?.strategy==="explicit"){let o=await this.loadCommandsFromTarget(),a=Tl(o?.[e]);return a?(a.id=e,a.plugin=this,a):void 0}})();return!i&&n.must&&(0,Pn.error)(`command ${e} not found`),s?.stop(),i}async load(){this.type=this.options.type??"core",this.tag=this.options.tag,this.isRoot=this.options.isRoot??!1,this.options.parent&&(this.parent=this.options.parent);let e=this.options.pjson&&this.options.isRoot?this.options.root:this.type==="link"&&!this.parent?this.options.root:await(0,X_.findRoot)(this.options.name,this.options.root);if(!e)throw new Pn.CLIError(`could not find package.json with ${(0,Pl.inspect)(this.options)}`);if(this.root=e,this._debug(`loading ${this.type} plugin from ${e}`),this.pjson=this.options.pjson??await(0,Q_.readPjson)(e),this.flexibleTaxonomy=this.options?.flexibleTaxonomy||this.pjson.oclif?.flexibleTaxonomy||!1,this.moduleType=this.pjson.type==="module"?"module":"commonjs",this.name=this.pjson.name,this.alias=this.options.name??this.pjson.name,!this.name)throw new Pn.CLIError(`no name in package.json (${e})`);this._debug=(0,Js.makeDebug)(this.name),this.version=this.pjson.version,this.pjson.oclif?this.valid=!0:this.pjson.oclif=this.pjson["cli-engine"]||{},this.hooks=Object.fromEntries(Object.entries(this.pjson.oclif.hooks??{}).map(([n,s])=>[n,(0,$l.castArray)(s).map(r=>ny(r))])),this.commandDiscoveryOpts=ty(this.pjson.oclif?.commands),this._debug("command discovery options",this.commandDiscoveryOpts),this.manifest=await this._manifest(),this.commands=Object.entries(this.manifest.commands).map(([n,s])=>({...s,load:async()=>this.findCommand(n,{must:!0}),pluginAlias:this.alias,pluginType:s.pluginType==="jit"?"jit":this.type})).sort((n,s)=>n.id.localeCompare(s.id))}async _manifest(){let e=!!this.options.ignoreManifest,n=!!this.options.errorOnManifestCreate,s=!!this.options.respectNoCacheDefault,r=async(a=!1)=>{try{let u=(0,jn.join)(this.root,`${a?".":""}oclif.manifest.json`),l=await(0,Y_.readJson)(u);if(!process.env.OCLIF_NEXT_VERSION&&l.version.split("-")[0]!==this.version.split("-")[0])process.emitWarning(`Mismatched version in ${this.name} plugin manifest. Expected: ${this.version} Received: ${l.version}
|
|
132
|
+
This usually means you have an oclif.manifest.json file that should be deleted in development. This file should be automatically generated when publishing.`);else return this._debug("using manifest from",u),this.hasManifest=!0,l}catch(u){if(u.code==="ENOENT"){if(!a)return r(!0)}else this.warn(u,"readManifest")}},i=Vt.Performance.mark(Vt.OCLIF_MARKER_OWNER,`plugin.manifest#${this.name}`,{plugin:this.name});if(!e){let a=await r();if(a)return i?.addDetails({commandCount:Object.keys(a.commands).length,fromCache:!0}),i?.stop(),this.commandIDs=Object.keys(a.commands),a}this.commandIDs=await this.getCommandIDs();let o={commands:(await Promise.all(this.commandIDs.map(async a=>{try{let u=await this.findCommand(a,{must:!0}),l=await(0,J_.cacheCommand)(u,this,s);if(l.id=a,this.flexibleTaxonomy){let f=(0,Js.getCommandIdPermutations)(a),c=l.aliases.flatMap(h=>(0,Js.getCommandIdPermutations)(h));return[a,{...l,aliasPermutations:c,permutations:f}]}return[a,l]}catch(u){let l=`findCommand (${a})`;if(!n)this.warn(u,l);else throw this.addErrorScope(u,l)}}))).filter(a=>!!a).reduce((a,[u,l])=>(a[u]=l,a),{}),version:this.version};return i?.addDetails({commandCount:Object.keys(o.commands).length,fromCache:!1}),i?.stop(),o}addErrorScope(e,n){return e.name=e.name??(0,Pl.inspect)(e).trim(),e.detail=(0,$l.compact)([e.detail,`module: ${this._base}`,n&&`task: ${n}`,`plugin: ${this.name}`,`root: ${this.root}`,...e.code?[`code: ${e.code}`]:[],...e.message?[`message: ${e.message}`]:[],"See more details with DEBUG=*"]).join(`
|
|
133
|
+
`),e}async getCommandIDs(){let e=Vt.Performance.mark(Vt.OCLIF_MARKER_OWNER,`plugin.getCommandIDs#${this.name}`,{plugin:this.name}),n;switch(this.commandDiscoveryOpts?.strategy){case"explicit":{n=await this.getCommandIdsFromTarget()??[];break}case"pattern":{n=await this.getCommandIdsFromPattern();break}case"single":{n=await this.getCommandIdsFromTarget()??[];break}default:n=[]}return this._debug("found commands",n),e?.addDetails({count:n.length}),e?.stop(),n}async getCommandIdsFromPattern(){let e=await this.getCommandsDir();if(!e)return[];this._debug(`loading IDs from ${e}`);let n=await(0,V_.glob)(this.commandDiscoveryOpts?.globPatterns??Ml,{cwd:e});return ey(n)}async getCommandIdsFromTarget(){if(await this.loadCommandsFromTarget())return Object.entries(await this.loadCommandsFromTarget()??[]).filter(([,n])=>Tl(n)).map(([n])=>n)}async getCommandsDir(){return this.commandsDir?this.commandsDir:(this.commandsDir=await(0,Qi.tsPath)(this.root,this.commandDiscoveryOpts?.target,this),this.commandsDir)}async loadCommandsFromTarget(){if(this.commandCache)return this.commandCache;if(this.commandDiscoveryOpts?.strategy==="explicit"&&this.commandDiscoveryOpts.target){let e=await(0,Qi.tsPath)(this.root,this.commandDiscoveryOpts.target,this),n=await(0,Ks.load)(this,e);return this.commandCache=n[this.commandDiscoveryOpts?.identifier??"default"]??{},this.commandCache}if(this.commandDiscoveryOpts?.strategy==="single"&&this.commandDiscoveryOpts.target){let e=await(0,Qi.tsPath)(this.root,this.commandDiscoveryOpts?.target??this.root,this),n=await(0,Ks.load)(this,e);return this.commandCache={[kl.SINGLE_COMMAND_CLI_SYMBOL]:Ll(n)},this.commandCache}}warn(e,n){typeof e=="string"&&(e=new Error(e));let s=this.addErrorScope(e,n);process.emitWarning(s.name,s)}};Kt.Plugin=eo});var Il=C(io=>{"use strict";p();Object.defineProperty(io,"__esModule",{value:!0});var sy=Fc(),no=w("node:path"),Jt=Nt(),so=Le(),ry=ee(),ql=to(),iy=$t(),Bl=(0,iy.makeDebug)();function Dt(t,e){return Object.keys(t).filter(n=>e.some(s=>(0,sy.minimatch)(n,s)))}var ro=class{options;errors=[];plugins=new Map;pluginsProvided=!1;constructor(e){this.options=e,e.plugins&&(this.pluginsProvided=!0,this.plugins=Array.isArray(e.plugins)?new Map(e.plugins.map(n=>[n.name,n])):e.plugins)}async loadChildren(e){return(!this.pluginsProvided||e.force)&&(await this.loadUserPlugins(e),await this.loadDevPlugins(e),await this.loadCorePlugins(e)),{errors:this.errors,plugins:this.plugins}}async loadRoot({pjson:e}){let n;if(this.pluginsProvided){let s=[...this.plugins.values()];n=s.find(r=>r.root===this.options.root)??s[0]}else{let s=Jt.Performance.mark(Jt.OCLIF_MARKER_OWNER,"plugin.load#root");n=new ql.Plugin({isRoot:!0,pjson:e,root:this.options.root}),await n.load(),s?.addDetails({commandCount:n.commands.length,hasManifest:n.hasManifest??!1,name:n.name,topicCount:n.topics.length,type:n.type,usesMain:!!n.pjson.main}),s?.stop()}return this.plugins.set(n.name,n),n}async loadCorePlugins(e){let{plugins:n}=e.rootPlugin.pjson.oclif;if(n){let i=Dt(e.rootPlugin.pjson.dependencies??{},n);await this.loadPlugins(e.rootPlugin.root,"core",i)}let{core:s,path:r}=e.pluginAdditions??{core:[]};if(s)if(r){let i=await(0,so.readJson)((0,no.join)(r,"package.json")),o=Dt(i.dependencies??{},s);await this.loadPlugins(r,"core",o)}else{let i=Dt(e.rootPlugin.pjson.dependencies??{},s);await this.loadPlugins(e.rootPlugin.root,"core",i)}}async loadDevPlugins(e){if(e.devPlugins!==!1){if((0,ry.isProd)())return;try{let{devPlugins:n}=e.rootPlugin.pjson.oclif;if(n){let i={...e.rootPlugin.pjson.dependencies,...e.rootPlugin.pjson.devDependencies},o=Dt(i??{},n);await this.loadPlugins(e.rootPlugin.root,"dev",o)}let{dev:s,path:r}=e.pluginAdditions??{core:[]};if(s)if(r){let i=await(0,so.readJson)((0,no.join)(r,"package.json")),o={...i.dependencies,...i.devDependencies},a=Dt(o??{},s);await this.loadPlugins(r,"dev",a)}else{let i={...e.rootPlugin.pjson.dependencies,...e.rootPlugin.pjson.devDependencies},o=Dt(i??{},s);await this.loadPlugins(e.rootPlugin.root,"dev",o)}}catch(n){process.emitWarning(n)}}}async loadPlugins(e,n,s,r){if(!s||s.length===0)return;let i=Jt.Performance.mark(Jt.OCLIF_MARKER_OWNER,`config.loadPlugins#${n}`);Bl("loading plugins",s),await Promise.all((s||[]).map(async o=>{try{let a=typeof o=="string"?o:o.name,u={name:a,root:e,type:n};if(typeof o!="string"&&(u.tag=o.tag||u.tag,u.root=o.root||u.root,u.url=o.url),r&&(u.parent=r),this.plugins.has(a))return;let l=Jt.Performance.mark(Jt.OCLIF_MARKER_OWNER,`plugin.load#${a}`),f=new ql.Plugin(u);if(await f.load(),l?.addDetails({commandCount:f.commands.length,hasManifest:f.hasManifest,name:f.name,topicCount:f.topics.length,type:f.type,usesMain:!!f.pjson.main}),l?.stop(),this.plugins.set(f.name,f),r&&(f.parent=r,r.children||(r.children=[]),r.children.push(f)),f.pjson.oclif.plugins){let c=n==="dev"?{...f.pjson.dependencies,...f.pjson.devDependencies}:f.pjson.dependencies,h=Dt(c??{},f.pjson.oclif.plugins);await this.loadPlugins(f.root,n,h,f)}}catch(a){this.errors.push(a)}})),i?.addDetails({pluginCount:s.length}),i?.stop()}async loadUserPlugins(e){if(e.userPlugins!==!1)try{let n=(0,no.join)(e.dataDir,"package.json");Bl("reading user plugins pjson %s",n);let s=await(0,so.readJson)(n,!1);s.oclif||(s.oclif={schema:1}),s.oclif.plugins||(s.oclif.plugins=[]),await this.loadPlugins(n,"user",s.oclif.plugins.filter(r=>r.type==="user")),await this.loadPlugins(n,"link",s.oclif.plugins.filter(r=>r.type==="link"))}catch(n){n.code!=="ENOENT"&&process.emitWarning(n)}}};io.default=ro});var Jl=C((we,Kl)=>{"use strict";p();var oy=we&&we.__createBinding||(Object.create?(function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}):(function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]})),ay=we&&we.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uy=we&&we.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var s=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(s[s.length]=r);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var s=t(e),r=0;r<s.length;r++)s[r]!=="default"&&oy(n,e,s[r]);return ay(n,e),n}})(),co=we&&we.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(we,"__esModule",{value:!0});we.Config=void 0;var cy=uy(dr()),ly=co(Cf()),Xt=w("node:os"),Qe=w("node:path"),Nl=w("node:url"),Vl=co(Oe()),Yt=Ge(),fy=kt(),oo=de(),hy=cn(),ue=Nt(),$n=ze(),Hl=Zu(),Wl=Le(),dy=ft(),zl=tc(),Xs=ee(),py=ht(),gy=ve(),my=co(Il()),Dy=Rt(),Ln=$t(),Rn=(0,Ln.makeDebug)(),Gl=Vl.default.getInstance().get("@oclif/core"),ao=`${Gl.name}@${Gl.version}`,_y=new Set(["preparse"]);function Ul(){process.listenerCount("warning")>1||process.on("warning",t=>{console.error(t.stack),t.detail&&console.error(t.detail)})}function yy(t){let e=t.match(/[^-]+(?:-([^.]+))?/);return e&&e[1]||"stable"}function by(t){return t&&!!t._base}var Ys=class extends Map{validPermutations=new Map;add(e,n){this.validPermutations.set(e,n);for(let s of(0,Ln.collectUsableIds)([e]))this.has(s)?this.set(s,this.get(s).add(n)):this.set(s,new Set([n]))}get(e){return super.get(e)??new Set}getAllValid(){return[...this.validPermutations.keys()]}getValid(e){return this.validPermutations.get(e)}hasValid(e){return this.validPermutations.has(e)}},uo=class t{options;arch;bin;binAliases;binPath;cacheDir;channel;configDir;dataDir;dirname;flexibleTaxonomy;home;isSingleCommandCLI=!1;name;npmRegistry;nsisCustomization;pjson;platform;plugins=new Map;root;shell;theme;topicSeparator=":";updateConfig;userAgent;userPJSON;valid;version;warned=!1;windows;_base=ao;_commandIDs;_commands=new Map;_topics=new Map;commandPermutations=new Ys;pluginLoader;rootPlugin;topicPermutations=new Ys;constructor(e){this.options=e}static async load(e=Kl.filename||__dirname){if((0,oo.setLogger)(e),typeof e=="string"&&e.startsWith("file://")&&(e=(0,Nl.fileURLToPath)(e)),typeof e=="string"&&(e={root:e}),by(e)){if(ao!==e._base){Rn(`reloading config from ${e._base} to ${ao}`);let s=new t({...e.options,plugins:e.plugins});return await s.load(),s}return e}let n=new t(e);return await n.load(),n}get commandIDs(){return this._commandIDs?this._commandIDs:(this._commandIDs=this.commands.map(e=>e.id),this._commandIDs)}get commands(){return[...this._commands.values()]}get isProd(){return(0,Xs.isProd)()}static get rootPlugin(){return this.rootPlugin}get topics(){return[...this._topics.values()]}get versionDetails(){let[e,n,s]=this.userAgent.split(" ");return{architecture:n,cliVersion:e,nodeVersion:s,osVersion:`${(0,Xt.type)()} ${(0,Xt.release)()}`,pluginVersions:Object.fromEntries([...this.plugins.values()].map(r=>[r.name,{root:r.root,type:r.type,version:r.version}])),rootPath:this.root,shell:this.shell}}_shell(){let e,{COMSPEC:n}=process.env,s=process.env.SHELL??(0,Xt.userInfo)().shell?.split(Qe.sep)?.pop();return s?e=s.split("/"):this.windows&&process.title.toLowerCase().includes("powershell")?e=["powershell"]:this.windows&&process.title.toLowerCase().includes("command prompt")?e=["cmd.exe"]:this.windows&&n?e=n.split(/\\|\//):e=["unknown"],e.at(-1)??"unknown"}dir(e){let n=process.env[`XDG_${e.toUpperCase()}_HOME`]||this.windows&&process.env.LOCALAPPDATA||(0,Qe.join)(this.home,e==="data"?".local/share":"."+e);return(0,Qe.join)(n,this.dirname)}findCommand(e,n={}){let s=this.getCmdLookupId(e),r=this._commands.get(s);return n.must&&!r&&(0,Yt.error)(`command ${s} not found`),r}findMatches(e,n){let s=n.filter(o=>!(0,fy.getHelpFlagAdditions)(this).includes(o)&&o.startsWith("-")).map(o=>o.replaceAll("-",""));return[...this.commandPermutations.get(e)].map(o=>this._commands.get(o)).filter(o=>{let a=Object.entries(o.flags).flatMap(([u,l])=>l.char?[l.char,u]:[u]);return s.every(u=>a.includes(u))})}findTopic(e,n={}){let s=this.getTopicLookupId(e),r=this._topics.get(s);if(r)return r;if(n.must)throw new Error(`topic ${e} not found`)}getAllCommandIDs(){return this.getAllCommands().map(e=>e.id)}getAllCommands(){let e=[...this._commands.values()],n=[...this.commandPermutations.getAllValid()];for(let s of n)if(!this._commands.has(s)){let r=this._commands.get(this.getCmdLookupId(s));e.push({...r,id:s})}return e}getPluginsList(){return[...this.plugins.values()]}async load(){$n.settings.performanceEnabled=($n.settings.performanceEnabled===void 0?this.options.enablePerf:$n.settings.performanceEnabled)??!1,$n.settings.debug&&Ul(),(0,oo.setLogger)(this.options);let e=ue.Performance.mark(ue.OCLIF_MARKER_OWNER,"config.load");this.pluginLoader=new my.default({plugins:this.options.plugins,root:this.options.root}),this.rootPlugin=await this.pluginLoader.loadRoot({pjson:this.options.pjson});let n=Vl.default.getInstance();n.set("rootPlugin",this.rootPlugin),n.set("exitCodes",this.rootPlugin.pjson.oclif.exitCodes??{}),this.root=this.rootPlugin.root,this.pjson=this.rootPlugin.pjson,this.plugins.set(this.rootPlugin.name,this.rootPlugin),this.root=this.rootPlugin.root,this.pjson=this.rootPlugin.pjson,this.name=this.pjson.name,this.version=this.options.version||this.pjson.version||"0.0.0",this.channel=this.options.channel||yy(this.version),this.valid=this.rootPlugin.valid,this.arch=(0,Xt.arch)()==="ia32"?"x86":(0,Xt.arch)(),this.platform=ly.default?"wsl":(0,zl.getPlatform)(),this.windows=this.platform==="win32",this.bin=this.pjson.oclif.bin||this.name,this.binAliases=this.pjson.oclif.binAliases,this.nsisCustomization=this.pjson.oclif.nsisCustomization,this.dirname=this.pjson.oclif.dirname||this.name,this.flexibleTaxonomy=this.pjson.oclif.flexibleTaxonomy||!1,this.pjson.oclif.topicSeparator&&[" ",":"].includes(this.pjson.oclif.topicSeparator)&&(this.topicSeparator=this.pjson.oclif.topicSeparator),this.platform==="win32"&&(this.dirname=this.dirname.replace("/","\\")),this.userAgent=`${this.name}/${this.version} ${this.platform}-${this.arch} node-${process.version}`,this.shell=this._shell(),this.home=process.env.HOME||this.windows&&this.windowsHome()||(0,zl.getHomeDir)()||(0,Xt.tmpdir)(),this.cacheDir=this.scopedEnvVar("CACHE_DIR")||this.macosCacheDir()||this.dir("cache"),this.configDir=this.scopedEnvVar("CONFIG_DIR")||this.dir("config"),this.dataDir=this.scopedEnvVar("DATA_DIR")||this.dir("data"),this.binPath=this.scopedEnvVar("BINPATH"),this.npmRegistry=this.scopedEnvVar("NPM_REGISTRY")||this.pjson.oclif.npmRegistry,this.theme=await this.loadTheme(),this.updateConfig={...this.pjson.oclif.update,node:this.pjson.oclif.update?.node??{},s3:this.buildS3Config()},this.isSingleCommandCLI=!!(typeof this.pjson.oclif.commands!="string"&&this.pjson.oclif.commands?.strategy==="single"&&this.pjson.oclif.commands?.target),this.maybeAdjustDebugSetting(),await this.loadPluginsAndCommands(),Rn("config done"),e?.addDetails({commandPermutations:this.commands.length,commands:[...this.plugins.values()].reduce((s,r)=>s+r.commands.length,0),plugins:this.plugins.size,topics:this.topics.length}),e?.stop()}async loadPluginsAndCommands(e){let n=ue.Performance.mark(ue.OCLIF_MARKER_OWNER,"config.loadAllPlugins"),{errors:s,plugins:r}=await this.pluginLoader.loadChildren({dataDir:this.dataDir,devPlugins:this.options.devPlugins,force:e?.force??!1,pluginAdditions:this.options.pluginAdditions,rootPlugin:this.rootPlugin,userPlugins:this.options.userPlugins});this.plugins=r,n?.stop();let i=ue.Performance.mark(ue.OCLIF_MARKER_OWNER,"config.loadAllCommands");for(let o of this.plugins.values())this.loadCommands(o),this.loadTopics(o);i?.stop();for(let o of s)this.warn(o)}async loadTheme(){if(this.scopedEnvVarTrue("DISABLE_THEME"))return;let e=(0,Qe.resolve)(this.configDir,"theme.json"),n=async()=>{if(this.pjson.oclif.theme)return typeof this.pjson.oclif.theme=="string"?(0,Wl.safeReadJson)((0,Qe.resolve)(this.root,this.pjson.oclif.theme)):this.pjson.oclif.theme},[s,r]=await Promise.all([n(),(0,Wl.safeReadJson)(e)]),i={...s,...r};return Object.keys(i).length>0?(0,gy.parseTheme)(i):void 0}macosCacheDir(){return this.platform==="darwin"&&(0,Qe.join)(this.home,"Library","Caches",this.dirname)||void 0}async runCommand(e,n=[],s=null){let r=ue.Performance.mark(ue.OCLIF_MARKER_OWNER,`config.runCommand#${e}`);Rn("runCommand %s %o",e,n);let i=s??this.findCommand(e);if(!i){let u=this.flexibleTaxonomy?this.findMatches(e,n):[],l=this.flexibleTaxonomy&&u.length>0?await this.runHook("command_incomplete",{argv:n,id:e,matches:u}):await this.runHook("command_not_found",{argv:n,id:e});if(l.successes[0])return l.successes[0].result;throw l.failures[0]?l.failures[0].error:new Yt.CLIError(`command ${e} not found`)}if(this.isJitPluginCommand(i)){let u=i.pluginName,l=this.pjson.oclif.jitPlugins[u],f=await this.runHook("jit_plugin_not_installed",{argv:n,command:i,id:e,pluginName:u,pluginVersion:l});if(f.failures[0])throw f.failures[0].error;if(f.successes[0])await this.loadPluginsAndCommands({force:!0}),i=this.findCommand(e)??i;else{let c=await this.runHook("command_not_found",{argv:n,id:e});if(c.successes[0])return c.successes[0].result;throw c.failures[0]?c.failures[0].error:new Yt.CLIError(`command ${e} not found`)}}let o=await i.load();await this.runHook("prerun",{argv:n,Command:o});let a=await o.run(n,this);if(i.id==="plugins:uninstall")for(let u of n)this.plugins.delete(u);return await this.runHook("postrun",{argv:n,Command:o,result:a}),r?.addDetails({command:e,plugin:i.pluginName}),r?.stop(),a}async runHook(e,n,s,r){let i=ue.Performance.mark(ue.OCLIF_MARKER_OWNER,`config.runHook#${e}`);Rn("start %s hook",e);let o=c=>typeof c=="function"?c:c.default&&typeof c.default=="function"?c.default:Object.values(c).find(h=>typeof h=="function"),a=async(c,h)=>{let d,g=new Promise((m,D)=>{d=setTimeout(()=>{D(new Error(`Timed out after ${c} ms.`))},c).unref()});return Promise.race([h,g]).then(m=>(clearTimeout(d),m))},u={failures:[],successes:[]},f=(_y.has(e)?[this.rootPlugin]:[...this.plugins.values()]).map(async c=>{let h=(0,oo.makeDebug)([c.name,"hooks",e].join(":")),d={config:this,debug:h,error(m,D={}){(0,Yt.error)(m,D)},exit(m=0){(0,Yt.exit)(m)},log(m,...D){py.ux.stdout(m,...D)},warn(m){(0,Yt.warn)(m)}},g=c.hooks[e]||[];for(let m of g){let D=ue.Performance.mark(ue.OCLIF_MARKER_OWNER,`config.runHook#${c.name}(${m.target})`);try{let{filePath:y,isESM:_,module:x}=await(0,hy.loadWithData)(c,await(0,Dy.tsPath)(c.root,m.target,c));h("start",_?"(import)":"(require)",y);let L=x[m.identifier]??(m.identifier==="default"?o(x):void 0);if(!L){h("No hook found for hook definition:",m);continue}let P=s?await a(s,L.call(d,{...n,config:this,context:d})):await L.call(d,{...n,config:this,context:d});u.successes.push({plugin:c,result:P}),c.name==="@oclif/plugin-legacy"&&e==="init"&&this.insertLegacyPlugins(P),h("done")}catch(y){if(u.failures.push({error:y,plugin:c}),h(y),!r&&y.oclif?.exit!==void 0&&y.oclif?.exit!==0&&y.code!=="MODULE_NOT_FOUND")throw y}D?.addDetails({event:e,hook:m.target,plugin:c.name}),D?.stop()}});return await Promise.all(f),Rn("%s hook done",e),i?.stop(),u}s3Key(e,n,s={}){typeof n=="object"?s=n:n&&(s.ext=n);let r=this.updateConfig.s3?.templates?.[s.platform?"target":"vanilla"][e]??"";return cy.render(r,{...this,...s})}s3Url(e){let{host:n}=this.updateConfig.s3??{host:void 0};if(!n)throw new Error("no s3 host is set");let s=new Nl.URL(n);return s.pathname=(0,Qe.join)(s.pathname,e),s.toString()}scopedEnvVar(e){return process.env[this.scopedEnvVarKeys(e).find(n=>process.env[n])]}scopedEnvVarKey(e){return[this.bin,e].map(n=>n.replaceAll("@","").replaceAll(/[/-]/g,"_")).join("_").toUpperCase()}scopedEnvVarKeys(e){return[this.bin,...this.binAliases??[]].filter(Boolean).map(n=>[n.replaceAll("@","").replaceAll(/[/-]/g,"_"),e].join("_").toUpperCase())}scopedEnvVarTrue(e){let n=this.scopedEnvVar(e);return n==="1"||n==="true"}windowsHome(){return this.windowsHomedriveHome()||this.windowsUserprofileHome()}windowsHomedriveHome(){return process.env.HOMEDRIVE&&process.env.HOMEPATH&&(0,Qe.join)(process.env.HOMEDRIVE,process.env.HOMEPATH)}windowsUserprofileHome(){return process.env.USERPROFILE}buildS3Config(){let e=this.pjson.oclif.update?.s3,n=this.scopedEnvVar("S3_BUCKET")??e?.bucket,s=e?.host??(n&&`https://${n}.s3.amazonaws.com`),r={...e?.templates,target:{baseDir:"<%- bin %>",manifest:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- platform %>-<%- arch %>",unversioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-<%- platform %>-<%- arch %><%- ext %>",versioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %>-<%- platform %>-<%- arch %><%- ext %>",...e?.templates&&e?.templates.target},vanilla:{baseDir:"<%- bin %>",manifest:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %>version",unversioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %><%- ext %>",versioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %><%- ext %>",...e?.templates&&e?.templates.vanilla}};return{bucket:n,host:s,templates:r}}getCmdLookupId(e){return this._commands.has(e)?e:this.commandPermutations.hasValid(e)?this.commandPermutations.getValid(e):e}getTopicLookupId(e){return this._topics.has(e)?e:this.topicPermutations.hasValid(e)?this.topicPermutations.getValid(e):e}insertLegacyPlugins(e){for(let n of e){this.plugins.set(n.name,n);for(let s of n.commands??[]){this._commands.delete(s.id);for(let r of[...s.aliases??[],...s.hiddenAliases??[]])this._commands.delete(r)}this.loadCommands(n)}}isJitPluginCommand(e){return Object.keys(this.pjson.oclif.jitPlugins??{}).includes(e.pluginName??"")&&!!(e?.pluginName&&!this.plugins.has(e.pluginName))}loadCommands(e){let n=ue.Performance.mark(ue.OCLIF_MARKER_OWNER,`config.loadCommands#${e.name}`,{plugin:e.name});for(let s of e.commands){if(this._commands.has(s.id)){let o=(0,Hl.determinePriority)(this.pjson.oclif.plugins??[],[this._commands.get(s.id),s]);this._commands.set(o.id,o)}else this._commands.set(s.id,s);let r=this.flexibleTaxonomy&&s.permutations===void 0?(0,Ln.getCommandIdPermutations)(s.id):s.permutations??[s.id];for(let o of r)this.commandPermutations.add(o,s.id);let i=(o,a=!1)=>{let u=(0,dy.toStandardizedId)(o,this);if(this._commands.has(u)){let f=(0,Hl.determinePriority)(this.pjson.oclif.plugins??[],[this._commands.get(u),s]);this._commands.set(u,{...f,id:u})}else this._commands.set(u,{...s,hidden:a,id:u});let l=this.flexibleTaxonomy&&s.aliasPermutations===void 0?(0,Ln.getCommandIdPermutations)(u):s.permutations??[u];for(let f of l)this.commandPermutations.add(f,s.id)};for(let o of s.aliases??[])i(o);for(let o of s.hiddenAliases??[])i(o,!0)}n?.addDetails({commandCount:e.commands.length}),n?.stop()}loadTopics(e){let n=ue.Performance.mark(ue.OCLIF_MARKER_OWNER,`config.loadTopics#${e.name}`,{plugin:e.name});for(let s of(0,Xs.compact)(e.topics)){let r=this._topics.get(s.name);r?(r.description=s.description||r.description,r.hidden=r.hidden||s.hidden):this._topics.set(s.name,s);let i=this.flexibleTaxonomy?(0,Ln.getCommandIdPermutations)(s.name):[s.name];for(let o of i)this.topicPermutations.add(o,s.name)}for(let s of e.commands.filter(r=>!r.hidden)){let r=s.id.split(":");for(;r.length>0;){let i=r.join(":");i&&!this._topics.has(i)&&this._topics.set(i,{description:s.summary||s.description,name:i}),r.pop()}}n?.stop()}maybeAdjustDebugSetting(){this.scopedEnvVarTrue("DEBUG")&&($n.settings.debug=!0,Ul())}warn(e,n){if(!this.warned){if(typeof e=="string"){process.emitWarning(e);return}if(e instanceof Error){let s=e;s.name=`${e.name} Plugin: ${this.name}`,s.detail=(0,Xs.compact)([e.detail,`module: ${this._base}`,n&&`task: ${n}`,`plugin: ${this.name}`,`root: ${this.root}`,"See more details with DEBUG=*"]).join(`
|
|
134
|
+
`),process.emitWarning(e);return}process.emitWarning("Config.warn expected either a string or Error, but instead received an object"),e.name=`${e.name} Plugin: ${this.name}`,e.detail=(0,Xs.compact)([e.detail,`module: ${this._base}`,n&&`task: ${n}`,`plugin: ${this.name}`,`root: ${this.root}`,"See more details with DEBUG=*"]).join(`
|
|
135
|
+
`),process.emitWarning(JSON.stringify(e))}}};we.Config=uo});var Qs=C(Ze=>{"use strict";p();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.tsPath=Ze.Plugin=Ze.Config=void 0;var Ey=Jl();Object.defineProperty(Ze,"Config",{enumerable:!0,get:function(){return Ey.Config}});var Cy=to();Object.defineProperty(Ze,"Plugin",{enumerable:!0,get:function(){return Cy.Plugin}});var vy=Rt();Object.defineProperty(Ze,"tsPath",{enumerable:!0,get:function(){return vy.tsPath}})});var Yl=C((Ev,Xl)=>{p();var Zs=Xl.exports=function(t,e,n){typeof t=="object"&&(n=t,t=n.start,e=n.stop),typeof e=="object"&&(n=e,t=t||n.start,e=void 0),e||(e=t,t=0),n||(n={});var s=n.mode||"soft",r=s==="hard"?/\b/:/(\S+\s+)/;return function(i){var o=i.toString().split(r).reduce(function(a,u){if(s==="hard")for(var l=0;l<u.length;l+=e-t)a.push(u.slice(l,l+e-t));else a.push(u);return a},[]);return o.reduce(function(a,u){if(u==="")return a;var l=u.replace(/\t/g," "),f=a.length-1;if(a[f].length+l.length>e)a[f]=a[f].replace(/\s+$/,""),l.split(/\n/).forEach(function(h){a.push(new Array(t+1).join(" ")+h.replace(/^\s+/,""))});else if(l.match(/\n/)){var c=l.split(/\n/);a[f]+=c.shift(),c.forEach(function(h){a.push(new Array(t+1).join(" ")+h.replace(/^\s+/,""))})}else a[f]+=l;return a},[new Array(t+1).join(" ")]).join(`
|
|
136
|
+
`)}};Zs.soft=Zs;Zs.hard=function(t,e){return Zs(t,e,{mode:"hard"})}});var Ql=C(lo=>{"use strict";p();Object.defineProperty(lo,"__esModule",{value:!0});lo.default=xy;var Fy=Yl(),wy=Ot(),Ay=ee();function Oy(t,e){return Fy(t,wy.stdtermwidth,{skipScheme:"ansi-color"})(e).trim()}function xy(t){if(t.length===0)return"";let e=(0,Ay.maxBy)(t,s=>s[0].length)?.[0].length??0;return t.map(s=>{let r=s[0],i=s[1];return i?(r=r.padEnd(e),i=Oy(e+2,i),`${r} ${i}`):r}).join(`
|
|
137
|
+
`)}});var yo=C(K=>{"use strict";p();var Zl=K&&K.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(K,"__esModule",{value:!0});K.FailedFlagValidationError=K.ArgInvalidOptionError=K.FlagInvalidOptionError=K.NonExistentFlagsError=K.UnexpectedArgsError=K.RequiredArgsError=K.InvalidArgsSpecError=K.CLIParseError=K.CLIError=void 0;var Tn=Zl(Oe()),Sy=Ge(),jy=ee(),ef=Zl(Ql()),Py=ve(),$y=Ge();Object.defineProperty(K,"CLIError",{enumerable:!0,get:function(){return $y.CLIError}});var Be=class extends Sy.CLIError{parse;showHelp=!1;constructor(e){e.message+=`
|
|
138
|
+
See more help with --help`,super(e.message,{exit:e.exit}),this.parse=e.parse}};K.CLIParseError=Be;var fo=class extends Be{args;constructor({args:e,exit:n,parse:s}){let r="Invalid argument spec",i=Object.values(e).filter(o=>o.name);if(i.length>0){let o=(0,ef.default)(i.map(a=>[`${a.name} (${a.required?"required":"optional"})`,a.description]));r+=`:
|
|
139
|
+
${o}`}super({exit:Tn.default.getInstance().get("exitCodes")?.invalidArgsSpec??n,message:r,parse:s}),this.args=e}};K.InvalidArgsSpecError=fo;var ho=class extends Be{args;constructor({args:e,exit:n,flagsWithMultiple:s,parse:r}){let i=`Missing ${e.length} required arg${e.length===1?"":"s"}`,o=e.filter(a=>a.name);if(o.length>0){let a=(0,ef.default)(o.map(u=>{let l=u.options?`(${u.options.join("|")}) ${u.description}`:u.description;return[u.name,l]}));i+=`:
|
|
140
|
+
${a}`}if(s?.length){let a=s.map(u=>`--${u}`).join(", ");i+=`
|
|
141
|
+
|
|
142
|
+
Note: ${a} allow${s.length===1?"s":""} multiple values. Because of this you need to provide all arguments before providing ${s.length===1?"that flag":"those flags"}.`,i+=`
|
|
143
|
+
Alternatively, you can use "--" to signify the end of the flags and the beginning of arguments.`}super({exit:Tn.default.getInstance().get("exitCodes")?.requiredArgs??n,message:i,parse:r}),this.args=e,this.showHelp=!0}};K.RequiredArgsError=ho;var po=class extends Be{args;constructor({args:e,exit:n,parse:s}){let r=`Unexpected argument${e.length===1?"":"s"}: ${e.join(", ")}`;super({exit:Tn.default.getInstance().get("exitCodes")?.unexpectedArgs??n,message:r,parse:s}),this.args=e,this.showHelp=!0}};K.UnexpectedArgsError=po;var go=class extends Be{flags;constructor({exit:e,flags:n,parse:s}){let r=`Nonexistent flag${n.length===1?"":"s"}: ${n.join(", ")}`;super({exit:Tn.default.getInstance().get("exitCodes")?.nonExistentFlag??e,message:r,parse:s}),this.flags=n,this.showHelp=!0}};K.NonExistentFlagsError=go;var mo=class extends Be{constructor(e,n){let s=`Expected --${e.name}=${n} to be one of: ${e.options.join(", ")}`;super({message:s,parse:{}})}};K.FlagInvalidOptionError=mo;var Do=class extends Be{constructor(e,n){let s=`Expected ${n} to be one of: ${e.options.join(", ")}`;super({message:s,parse:{}})}};K.ArgInvalidOptionError=Do;var _o=class extends Be{constructor({exit:e,failed:n,parse:s}){let r=n.map(u=>u.reason),i=(0,jy.uniq)(r),a=`The following ${i.length===1?"error":"errors"} occurred:
|
|
144
|
+
${(0,Py.colorize)("dim",i.join(`
|
|
145
|
+
`))}`;super({exit:Tn.default.getInstance().get("exitCodes")?.failedFlagValidation??e,message:a,parse:s})}};K.FailedFlagValidationError=_o});var nf=C(Ie=>{"use strict";p();var Ry=Ie&&Ie.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Parser=Ie.readStdin=void 0;var Ly=w("node:os"),Ty=w("node:readline"),tf=Ry(Oe()),ky=de(),et=ee(),_t=yo(),$e;try{$e=process.env.CLI_FLAGS_DEBUG==="1"?(0,ky.makeDebug)("parser"):()=>{}}catch{$e=()=>{}}var My=async()=>{let{stdin:t,stdout:e}=process;return t.isTTY?null:globalThis.oclif?.stdinCache?($e("resolved stdin from global cache",globalThis.oclif.stdinCache),globalThis.oclif.stdinCache):new Promise(n=>{let s=[],r=new AbortController,{signal:i}=r,o=setTimeout(()=>r.abort(),10),a=(0,Ty.createInterface)({input:t,output:e,terminal:!1});a.on("line",u=>{s.push(u)}),a.once("close",()=>{let u=s.join(Ly.EOL);clearTimeout(o),$e("resolved from stdin",u),globalThis.oclif={...globalThis.oclif,stdinCache:u},n(u)}),i.addEventListener("abort",()=>{$e("stdin aborted"),clearTimeout(o),a.close(),n(null)},{once:!0})})};Ie.readStdin=My;function qy(t){return/^-\d/g.test(t)}var er=(t,e)=>{if(t.options&&!t.options.includes(e))throw new _t.FlagInvalidOptionError(t,e);return e},bo=class{input;argv;booleanFlags;context;currentFlag;flagAliases;raw=[];constructor(e){this.input=e,this.context=e.context??{},this.argv=[...e.argv],this._setNames(),this.booleanFlags=(0,et.pickBy)(e.flags,n=>n.type==="boolean"),this.flagAliases=Object.fromEntries(Object.values(e.flags).flatMap(n=>[...n.aliases??[],...n.charAliases??[]].map(s=>[s,n])))}get _argTokens(){return this.raw.filter(e=>e.type==="arg")}async parse(){this._debugInput();let e=async c=>{let{isLong:h,name:d}=this.findFlag(c);if(!d){let m=c.indexOf("=");if(m!==-1){let D=c.slice(m+1);this.argv.unshift(D);let y=await e(c.slice(0,m));return y||this.argv.shift(),y}return!1}let g=this.input.flags[d];if(g.type==="option"){if(!g.multiple&&this.raw.some(D=>D.type==="flag"&&D.flag===d))throw new _t.CLIError(`Flag --${d} can only be specified once`);this.currentFlag=g;let m=h||c.length<3?this.argv.shift():c.slice(c[2]==="="?3:2);if(g.allowStdin==="only"&&m!=="-"&&m!==void 0&&!this.findFlag(m).name)throw new _t.CLIError(`Flag --${d} can only be read from stdin. The value must be "-" or not provided at all.`);if(g.allowStdin&&m==="-"||g.allowStdin==="only"){let D=await(0,Ie.readStdin)();D&&(m=D.trim())}if(typeof m!="string"||this.findFlag(m).name)throw g.options?new _t.CLIError(`Flag --${d} expects one of these values: ${g.options.join(", ")}`):new _t.CLIError(`Flag --${d} expects a value`);this.raw.push({flag:g.name,input:m,type:"flag"})}else this.raw.push({flag:g.name,input:c,type:"flag"}),!h&&c.length>2&&this.argv.unshift(`-${c.slice(2)}`);return!0},n=!0,s=[],r=!1,i=[...this.argv];for(;this.argv.length>0;){let c=this.argv.shift();if(n&&c.startsWith("-")&&c!=="-"){if(this.input["--"]!==!1&&c==="--"){n=!1;continue}if(await e(c))continue;if(c==="--"){r=!0;continue}if(this.input["--"]!==!1&&!qy(c)){s.push(c);continue}}if(n&&this.currentFlag&&this.currentFlag.multiple&&!this.currentFlag.multipleNonGreedy){this.raw.push({flag:this.currentFlag.name,input:c,type:"flag"});continue}let h=Object.keys(this.input.args)[this._argTokens.length];this.raw.push({arg:h,input:c,type:"arg"})}let[{args:o,argv:a},{flags:u,metadata:l}]=await Promise.all([this._args(),this._flags()]);this._debugOutput(a,o,u);let f=r?[...a,...s,"--"]:[...a,...s];return{args:o,argv:f.sort((c,h)=>i.indexOf(c)-i.indexOf(h)),flags:u,metadata:l,nonExistentFlags:s,raw:this.raw}}async _args(){let e=[],n={},s=this._argTokens,r=!1,i=this.context;for(let[o,a]of Object.entries(this.input.args)){let u=s.find(l=>l.arg===o);if(i.token=u,u){if(a.options&&!a.options.includes(u.input))throw new _t.ArgInvalidOptionError(a,u.input);let l=await a.parse(u.input,i,a);e.push(l),n[u.arg]=l}else if(!a.ignoreStdin&&!r){let l=await(0,Ie.readStdin)();if(l){l=l.trim();let f=await a.parse(l,i,a);e.push(f),n[o]=f}r=!0}if(!n[o]&&(a.default||a.default===!1))if(typeof a.default=="function"){let l=await a.default();e.push(l),n[o]=l}else e.push(a.default),n[o]=a.default}for(let o of s)n[o.arg]===void 0&&e.push(o.input);return{args:n,argv:e}}_debugInput(){$e("input: %s",this.argv.join(" "));let e=Object.keys(this.input.args);e.length>0&&$e("available args: %s",e.join(" ")),Object.keys(this.input.flags).length!==0&&$e("available flags: %s",Object.keys(this.input.flags).map(n=>`--${n}`).join(" "))}_debugOutput(e,n,s){s.length>0&&$e("argv: %o",s),Object.keys(e).length>0&&$e("args: %o",e),Object.keys(n).length>0&&$e("flags: %o",n)}async _flags(){let e=async(c,h,d,g)=>{if(!h.parse)return c;let m={...d,error:d?.error,exit:d?.exit,jsonEnabled:d?.jsonEnabled,log:d?.log,logToStderr:d?.logToStderr,token:g,warn:d?.warn};try{return h.type==="boolean"?await h.parse(c,m,h):await h.parse(c,m,h)}catch(D){throw D.message=`Parsing --${h.name}
|
|
146
|
+
${D.message}
|
|
147
|
+
See more help with --help`,tf.default.getInstance().get("exitCodes")?.failedFlagParsing&&(D.oclif={exit:tf.default.getInstance().get("exitCodes")?.failedFlagParsing}),D}},n=c=>{if(c.tokens?.length){if(c.inputFlag.flag.type==="boolean"&&(0,et.last)(c.tokens)?.input)return{...c,valueFunction:async d=>e((0,et.last)(d.tokens)?.input!==`--no-${d.inputFlag.name}`,d.inputFlag.flag,this.context,(0,et.last)(d.tokens))};if(c.inputFlag.flag.type==="option"&&c.inputFlag.flag.delimiter&&c.inputFlag.flag.multiple){let d=g=>new RegExp(`(?<!\\\\)${g}`);return{...c,valueFunction:async g=>(await Promise.all((g.tokens??[]).flatMap(m=>m.input.split(d(g.inputFlag.flag.delimiter??","))).map(m=>m.trim().replaceAll(new RegExp(`\\\\${g.inputFlag.flag.delimiter}`,"g"),g.inputFlag.flag.delimiter??",").replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1")).map(async m=>e(m,g.inputFlag.flag,this.context,{...(0,et.last)(g.tokens),input:m})))).map(m=>er(g.inputFlag.flag,m))}}if(c.inputFlag.flag.type==="option"&&c.inputFlag.flag.multiple)return{...c,valueFunction:async d=>Promise.all((c.tokens??[]).map(g=>e(er(d.inputFlag.flag,g.input),d.inputFlag.flag,this.context,g)))};if(c.inputFlag.flag.type==="option")return{...c,valueFunction:async d=>e(er(d.inputFlag.flag,(0,et.last)(c.tokens)?.input),d.inputFlag.flag,this.context,(0,et.last)(c.tokens))}}if(c.inputFlag.flag.env&&process.env[c.inputFlag.flag.env]){let d=process.env[c.inputFlag.flag.env];if(c.inputFlag.flag.type==="option"&&d)return{...c,valueFunction:async g=>e(er(g.inputFlag.flag,d),g.inputFlag.flag,this.context)};if(c.inputFlag.flag.type==="boolean")return{...c,valueFunction:async g=>(0,et.isTruthy)(process.env[g.inputFlag.flag.env]??"false")}}return typeof c.inputFlag.flag.default!==void 0?{...c,metadata:{setFromDefault:!0},valueFunction:typeof c.inputFlag.flag.default=="function"?(d,g={})=>c.inputFlag.flag.default({flags:g,options:d.inputFlag.flag}):async()=>c.inputFlag.flag.default}:c},s=c=>c.inputFlag.flag.type==="option"&&c.inputFlag.flag.defaultHelp?{...c,helpFunction:typeof c.inputFlag.flag.defaultHelp=="function"?(h,d,...g)=>h.inputFlag.flag.defaultHelp({flags:d,options:h.inputFlag},...g):h=>h.inputFlag.flag.defaultHelp}:c,r=async c=>{let h=i(l.filter(d=>!d.metadata?.setFromDefault));return Promise.all(c.map(async d=>{try{if(d.helpFunction)return{...d,metadata:{...d.metadata,defaultHelp:await d.helpFunction?.(d,h,this.context)}}}catch{}return d}))},i=c=>Object.fromEntries(c.filter(h=>h.value!==void 0).map(h=>[h.inputFlag.name,h.value])),o=this.mapAndValidateFlags(),a=await Promise.all(Object.entries(this.input.flags).filter(([c,h])=>h.type==="boolean"||h.env||h.default!==void 0||"defaultHelp"in h||o.has(c)).map(([c,h])=>({inputFlag:{flag:h,name:c},tokens:o.get(c)})).map(c=>n(c)).filter(c=>c.valueFunction!==void 0).map(c=>s(c)).map(async c=>c.metadata?.setFromDefault?c:{...c,value:await c.valueFunction?.(c)})),u=i(a.filter(c=>!c.metadata?.setFromDefault)),l=await Promise.all(a.map(async c=>c.metadata?.setFromDefault?{...c,value:await c.valueFunction?.(c,u)}:c)),f=l.some(c=>typeof c.helpFunction=="function")?await r(l):l;return{flags:i(f),metadata:{flags:Object.fromEntries(f.filter(c=>c.metadata).map(c=>[c.inputFlag.name,c.metadata]))}}}_setNames(){for(let e of Object.keys(this.input.flags))this.input.flags[e].name=e;for(let e of Object.keys(this.input.args))this.input.args[e].name=e}findFlag(e){let n=e.startsWith("--"),s=n?!1:e.startsWith("-"),r=n?this.findLongFlag(e):s?this.findShortFlag(e):void 0;return{isLong:n,name:r}}findLongFlag(e){let n=e.slice(2);if(this.input.flags[n])return n;if(this.flagAliases[n])return this.flagAliases[n].name;if(e.startsWith("--no-")){let s=this.booleanFlags[e.slice(5)];if(s&&s.allowNo)return s.name}}findShortFlag([e,n]){return this.flagAliases[n]?this.flagAliases[n].name:Object.keys(this.input.flags).find(s=>this.input.flags[s].char===n&&n!==void 0&&this.input.flags[s].char!==void 0)}mapAndValidateFlags(){let e=new Map;for(let n of this.raw.filter(s=>s.type==="flag")){if(!(n.flag in this.input.flags))throw new _t.CLIError(`Unexpected flag ${n.flag}`);let s=e.get(n.flag)??[];e.set(n.flag,[...s,n])}return e}};Ie.Parser=bo});var Co=C(Eo=>{"use strict";p();Object.defineProperty(Eo,"__esModule",{value:!0});Eo.validate=By;var sf=ee(),kn=yo();async function By(t){let e;function n(){if(t.output.nonExistentFlags?.length>0)throw new kn.NonExistentFlagsError({flags:t.output.nonExistentFlags,parse:t});let d=Object.keys(t.input.args).length;if(t.input.strict&&t.output.argv.length>d){let D=t.output.argv.slice(d);throw new kn.UnexpectedArgsError({args:D,parse:t})}let g=[],m=!1;for(let[D,y]of Object.entries(t.input.args)){if(!y.required)m=!0;else if(m)throw new kn.InvalidArgsSpecError({args:t.input.args,parse:t});y.required&&t.output.args[D]===void 0&&g.push(y)}if(g.length>0){let D=Object.entries(t.input.flags).filter(([y,_])=>_.type==="option"&&!!_.multiple).map(([y])=>y);throw new kn.RequiredArgsError({args:g,flagsWithMultiple:D,parse:t})}}async function s(){let d=Object.entries(t.input.flags).flatMap(([D,y])=>t.output.flags[D]!==void 0?[...y.relationships?h(D,y):[],...y.dependsOn?[f(D,y.dependsOn)]:[],...y.exclusive?[u(D,y.exclusive)]:[],...y.exactlyOne?[l(D,y.exactlyOne)]:[]]:y.required?[{name:D,reason:`Missing required flag ${D}`,status:"failed",validationFn:"required"}]:y.exactlyOne&&y.exactlyOne.length>0?[o(y)]:y.atLeastOne&&y.atLeastOne.length>0?[a(y)]:[]),m=(await Promise.all(d)).filter(D=>D.status==="failed");if(m.length>0)throw new kn.FailedFlagValidationError({failed:m,parse:t})}async function r(d){if(e)return e;let g=d.map(async D=>typeof D=="string"?[D,t.output.flags[D]]:await D.when(t.output.flags)?[D.name,t.output.flags[D.name]]:null),m=await Promise.all(g);return e=Object.fromEntries(m.filter(D=>D!==null)),e}let i=d=>Object.keys(d).filter(g=>g!==void 0);function o(d){let g={name:d.name,validationFn:"validateExactlyOneAcrossFlags"};if(Object.entries(t.input.flags).map(D=>D[0]).filter(D=>t.output.flags[D]!==void 0).filter(D=>d.exactlyOne&&d.exactlyOne.includes(D)).length===0){let y=`Exactly one of the following must be provided: ${(0,sf.uniq)(d.exactlyOne?.map(_=>`--${_}`)??[]).join(", ")}`;return{...g,reason:y,status:"failed"}}return{...g,status:"success"}}function a(d){let g={name:d.name,validationFn:"validateAtLeastOneAcrossFlags"};if(Object.entries(t.input.flags).map(D=>D[0]).filter(D=>t.output.flags[D]!==void 0).filter(D=>d.atLeastOne&&d.atLeastOne.includes(D)).length===0){let y=`At least one of the following must be provided: ${(0,sf.uniq)(d.atLeastOne?.map(_=>`--${_}`)??[]).join(", ")}`;return{...g,reason:y,status:"failed"}}return{...g,status:"success"}}async function u(d,g){let m={name:d,validationFn:"validateExclusive"},D=await r(g),y=i(D);for(let _ of y)if(!(t.output.metadata.flags&&t.output.metadata.flags[_]?.setFromDefault)&&!(t.output.metadata.flags&&t.output.metadata.flags[d]?.setFromDefault)&&t.output.flags[_]!==void 0){let x=t.output.metadata.flags?.[_]?.defaultHelp??t.output.flags[_];return{...m,reason:`--${_}=${x} cannot also be provided when using --${d}`,status:"failed"}}return{...m,status:"success"}}async function l(d,g){let m={name:d,validationFn:"validateExactlyOne"},D=await r(g),y=i(D);for(let _ of y)if(_!==d&&t.output.flags[_]!==void 0)return{...m,reason:`--${_} cannot also be provided when using --${d}`,status:"failed"};return{...m,status:"success"}}async function f(d,g){let m={name:d,validationFn:"validateDependsOn"},D=await r(g);if(!Object.values(D).every(_=>_!==void 0)){let _=Object.keys(D).map(x=>`--${x}`).join(", ");return{...m,reason:`All of the following must be provided when using --${d}: ${_}`,status:"failed"}}return{...m,status:"success"}}async function c(d,g){let m={name:d,validationFn:"validateSome"},D=await r(g);if(!Object.values(D).some(Boolean)){let _=Object.keys(D).map(x=>`--${x}`).join(", ");return{...m,reason:`One of the following must be provided when using --${d}: ${_}`,status:"failed"}}return{...m,status:"success"}}function h(d,g){return(g.relationships??[]).map(m=>{switch(m.type){case"all":return f(d,m.flags);case"none":return u(d,m.flags);case"some":return c(d,m.flags);default:throw new Error(`Unknown relationship type: ${m.type}`)}})}return n(),s()}});var of=C(tr=>{"use strict";p();Object.defineProperty(tr,"__esModule",{value:!0});tr.flagUsage=rf;tr.flagUsages=Hy;var Iy=ee(),Ny=ht();function rf(t,e={}){let n=[];t.helpLabel?n.push(t.helpLabel):(t.char&&n.push(`-${t.char}`),t.name&&n.push(` --${t.name}`));let s=t.type==="option"?` ${t.name.toUpperCase()}`:"",r=t.summary||t.description||"";return e.displayRequired&&t.required&&(r=`(required) ${r}`),r=r?(0,Ny.colorize)("dim",r):void 0,[` ${n.join(",").trim()}${s}`,r]}function Hy(t,e={}){return t.length===0?[]:(0,Iy.sortBy)(t,n=>[n.char?-1:1,n.char,n.name]).map(n=>rf(n,e))}});var vo=C(yt=>{"use strict";p();Object.defineProperty(yt,"__esModule",{value:!0});yt.validate=yt.flagUsages=void 0;yt.parse=Vy;var Wy=nf(),zy=Co(),Gy=of();Object.defineProperty(yt,"flagUsages",{enumerable:!0,get:function(){return Gy.flagUsages}});var Uy=Co();Object.defineProperty(yt,"validate",{enumerable:!0,get:function(){return Uy.validate}});async function Vy(t,e){let n={"--":e["--"],args:e.args??{},argv:t,context:e.context,flags:e.flags??{},strict:e.strict!==!1},r=await new Wy.Parser(n).parse();return await(0,zy.validate)({input:n,output:r}),r}});var ff=C(Ae=>{"use strict";p();var Ky=Ae&&Ae.__createBinding||(Object.create?(function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}):(function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]})),Jy=Ae&&Ae.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lf=Ae&&Ae.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var s=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(s[s.length]=r);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var s=t(e),r=0;r<s.length;r++)s[r]!=="default"&&Ky(n,e,s[r]);return Jy(n,e),n}})(),Xy=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Command=void 0;var Yy=w("node:url"),af=w("node:util"),Ao=Xy(Oe()),Qy=Qs(),Fo=lf(Ge()),Mn=kt(),Zy=de(),e1=lf(vo()),uf=Gi(),wo=ft(),t1=ee(),bt=ht(),cf=Ao.default.getInstance().get("@oclif/core");process.stdout.on("error",t=>{if(!(t&&t.code==="EPIPE"))throw t});var Oo=class{argv;config;static _base=`${cf.name}@${cf.version}`;static aliases=[];static args={};static baseFlags;static deprecateAliases;static deprecationOptions;static description;static enableJsonFlag=!1;static examples;static flags;static hasDynamicHelp=!1;static help;static hidden;static hiddenAliases=[];static id;static plugin;static pluginAlias;static pluginName;static pluginType;static state;static strict=!0;static summary;static usage;debug;id;constructor(e,n){this.argv=e,this.config=n,this.id=this.ctor.id;try{this.debug=(0,Zy.makeDebug)(this.id?`${this.config.bin}:${this.id}`:this.config.bin)}catch{this.debug=()=>{}}}static async run(e,n){e||(e=process.argv.slice(2)),typeof n=="string"&&n.startsWith("file://")&&(n=(0,Yy.fileURLToPath)(n));let s=await Qy.Config.load(n||w.main?.filename||__dirname),r=Ao.default.getInstance();r.has("config")||r.set("config",s);let i=new this(e,s);if(!i.id){let o=i.constructor.name.toLowerCase();i.id=o,i.ctor.id=o}return i._run()}get ctor(){return this.constructor}async _run(){let e,n;try{this.removeEnvVar("REDIRECTED"),await this.init(),n=await this.run()}catch(s){e=s,await this.catch(s)}finally{await this.finally(e)}return n&&this.jsonEnabled()&&this.logJson(this.toSuccessJson(n)),n}async catch(e){if(process.exitCode=process.exitCode??e.exitCode??1,this.jsonEnabled())this.logJson(this.toErrorJson(e));else{if(!e.message)throw e;try{bt.ux.action.stop(bt.ux.colorize("bold",bt.ux.colorize("red","!")))}catch{}throw e}}error(e,n={}){return Fo.error(e,n)}exit(e=0){Fo.exit(e)}async finally(e){}async init(){this.debug("init version: %s argv: %o",this.ctor._base,this.argv);let e=globalThis;e["http-call"]=e["http-call"]||{},e["http-call"].userAgent=this.config.userAgent,this.warnIfCommandDeprecated()}jsonEnabled(){if(!this.ctor?.enableJsonFlag)return!1;if(this.config.scopedEnvVar?.("CONTENT_TYPE")?.toLowerCase()==="json")return!0;let e=this.argv.indexOf("--"),n=this.argv.indexOf("--json");return e===-1?n!==-1:n!==-1&&n<e}log(e="",...n){this.jsonEnabled()||(e=typeof e=="string"?e:(0,af.inspect)(e),bt.ux.stdout(e,...n))}logJson(e){bt.ux.stdout(bt.ux.colorizeJson(e,{pretty:!0,theme:this.config.theme?.json}))}logToStderr(e="",...n){this.jsonEnabled()||(e=typeof e=="string"?e:(0,af.inspect)(e),bt.ux.stderr(e,...n))}async parse(e,n=this.argv){e||(e=this.ctor);let s={context:this,...e,flags:(0,uf.aggregateFlags)(e.flags,e.baseFlags,e.enableJsonFlag)},r=await this.config.runHook("preparse",{argv:[...n],options:s}),i=r.successes?.length?r.successes.find(a=>a.plugin.root===Ao.default.getInstance().get("rootPlugin")?.root)?.result??n:n;this.argv=[...i];let o=await e1.parse(i,s);return this.warnIfFlagDeprecated(o.flags??{}),o}toErrorJson(e){return{error:e}}toSuccessJson(e){return e}warn(e){return this.jsonEnabled()||Fo.warn(e),e}warnIfCommandDeprecated(){let[e]=(0,Mn.normalizeArgv)(this.config);if(this.ctor.deprecateAliases&&this.ctor.aliases.includes(e)){let n=(0,wo.toConfiguredId)(this.ctor.id,this.config),s=(0,wo.toConfiguredId)(e,this.config);this.warn((0,Mn.formatCommandDeprecationWarning)(s,{to:n}))}if(this.ctor.state==="deprecated"){let n=(0,wo.toConfiguredId)(this.ctor.id,this.config);this.warn((0,Mn.formatCommandDeprecationWarning)(n,this.ctor.deprecationOptions))}}warnIfFlagDeprecated(e){let n=(0,uf.aggregateFlags)(this.ctor.flags,this.ctor.baseFlags,this.ctor.enableJsonFlag);for(let s of Object.keys(e)){let r=n[s],i=r?.deprecated;if(i&&this.warn((0,Mn.formatFlagDeprecationWarning)(s,i)),r?.deprecateAliases){let a=(0,t1.uniq)([...r?.aliases??[],...r?.charAliases??[]]).map(l=>l.length===1?`-${l}`:`--${l}`);if(a.length===0)return;let u=a.filter(l=>this.argv.includes(l));for(let l of u){let f=`--${r?.name}`;r?.char&&(f+=` | -${r?.char}`),this.warn((0,Mn.formatFlagDeprecationWarning)(l,{to:f}))}}}}removeEnvVar(e){let n=[];try{n.push(...this.config.scopedEnvVarKeys(e))}catch{n.push(this.config.scopedEnvVarKey(e))}n.map(s=>delete process.env[s])}};Ae.Command=Oo});var So=C(xo=>{"use strict";p();Object.defineProperty(xo,"__esModule",{value:!0});xo.flush=i1;var n1=jt();function s1(t,e){function n(s,r=!1){return new Promise(i=>{let o=setTimeout(()=>i(null),s);r&&o.unref()})}return Promise.race([t,n(e,!0).then(()=>(0,n1.error)("timed out"))])}async function r1(){let t=new Promise(n=>{process.stdout.once("drain",()=>n(null))});if(!process.stdout.write(""))return t}async function i1(t=1e4){await s1(r1(),t)}});var Po=C(Re=>{"use strict";p();var o1=Re&&Re.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Re,"__esModule",{value:!0});Re.versionAddition=Re.helpAddition=void 0;Re.run=d1;var hf=w("node:url"),a1=o1(Oe()),u1=Qs(),jo=yn(),df=de(),Qt=Nt(),c1=ds(),l1=ht(),f1=(t,e)=>{if(t.length===0&&!e.isSingleCommandCLI)return!0;let n=(0,jo.getHelpFlagAdditions)(e);for(let s of t){if(n.includes(s))return!0;if(s==="--")return!1}return!1};Re.helpAddition=f1;var h1=(t,e)=>{let n=e?.pjson.oclif.additionalVersionFlags??[];return!![...new Set(["--version",...n]).values()].includes(t[0])};Re.versionAddition=h1;async function d1(t,e){let n=Qt.Performance.mark(Qt.OCLIF_MARKER_OWNER,"main.run"),s=Qt.Performance.mark(Qt.OCLIF_MARKER_OWNER,"main.run#init"),r=async h=>{let d=await(0,jo.loadHelpClass)(o);await new d(o,o.pjson.oclif.helpOptions??o.pjson.helpOptions).showHelp(h)};(0,df.setLogger)(e);let{debug:i}=(0,df.getLogger)("main");i(`process.execPath: ${process.execPath}`),i(`process.execArgv: ${process.execArgv}`),i("process.argv: %O",process.argv),t=t??process.argv.slice(2),e&&(typeof e=="string"&&e.startsWith("file://")||e instanceof hf.URL)&&(e=(0,hf.fileURLToPath)(e));let o=await u1.Config.load(e??w.main?.filename??__dirname);a1.default.getInstance().set("config",o),o.isSingleCommandCLI&&(t=[c1.SINGLE_COMMAND_CLI_SYMBOL,...t]);let[a,...u]=(0,jo.normalizeArgv)(o,t),l=async(h,d)=>{n?.stop(),s?.stopped||s?.stop(),await Qt.Performance.collect(),Qt.Performance.debug(),await o.runHook("finally",{argv:u,Command:h,error:d,id:a})};if(await o.runHook("init",{argv:u,id:a}),(0,Re.versionAddition)(t,o)){l1.ux.stdout(o.userAgent),await l();return}if((0,Re.helpAddition)(t,o)){await r(t),await l();return}let f=o.findCommand(a);if(!f&&(o.flexibleTaxonomy?null:o.findTopic(a))){await r([a]),await l();return}s?.stop();let c;try{return await o.runCommand(a,u,f)}catch(h){throw c=h,h}finally{await l(f,c)}}});var pf=C($o=>{"use strict";p();Object.defineProperty($o,"__esModule",{value:!0});$o.execute=y1;var p1=Ge(),g1=ws(),m1=So(),D1=Po(),_1=ze();async function y1(t){if(!t.dir&&!t.loadOptions)throw new p1.CLIError("dir or loadOptions is required.");return t.development&&(process.env.NODE_ENV="development",_1.settings.debug=!0),(0,D1.run)(t.args??process.argv.slice(2),t.loadOptions??t.dir).then(async e=>((0,m1.flush)(),e)).catch(async e=>(0,g1.handle)(e))}});var mf=C(gf=>{"use strict";p();Object.defineProperty(gf,"__esModule",{value:!0})});var L1=C(j=>{p();var b1=j&&j.__createBinding||(Object.create?(function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}):(function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]})),E1=j&&j.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zt=j&&j.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var s=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(s[s.length]=r);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var s=t(e),r=0;r<s.length;r++)s[r]!=="default"&&b1(n,e,s[r]);return E1(n,e),n}})();Object.defineProperty(j,"__esModule",{value:!0});j.ux=j.toStandardizedId=j.toConfiguredId=j.settings=j.Performance=j.Parser=j.ModuleLoader=j.getLogger=j.Interfaces=j.loadHelpClass=j.HelpBase=j.Help=j.CommandHelp=j.flush=j.Flags=j.execute=j.handle=j.Errors=j.Plugin=j.Config=j.Command=j.Args=void 0;var C1=ee();function v1(){try{process.cwd()}catch(t){t.code==="ENOENT"&&process.stderr.write(`WARNING: current directory does not exist
|
|
148
|
+
`)}}function F1(){if(!(process.env.OCLIF_DISABLE_ENGINE_WARNING&&(0,C1.isTruthy)(process.env.OCLIF_DISABLE_ENGINE_WARNING)))try{let t=w("node:path"),e=Ef(),n=t.join(__dirname,".."),s=w(t.join(n,"package.json"));e.satisfies(process.versions.node,s.engines.node)||process.emitWarning(`Node version must be ${s.engines.node} to use this CLI. Current node version: ${process.versions.node}`)}catch{}}v1();F1();j.Args=Zt(To());var w1=ff();Object.defineProperty(j,"Command",{enumerable:!0,get:function(){return w1.Command}});var Df=Qs();Object.defineProperty(j,"Config",{enumerable:!0,get:function(){return Df.Config}});Object.defineProperty(j,"Plugin",{enumerable:!0,get:function(){return Df.Plugin}});j.Errors=Zt(Ge());var A1=ws();Object.defineProperty(j,"handle",{enumerable:!0,get:function(){return A1.handle}});var O1=pf();Object.defineProperty(j,"execute",{enumerable:!0,get:function(){return O1.execute}});j.Flags=Zt(Wi());var x1=So();Object.defineProperty(j,"flush",{enumerable:!0,get:function(){return x1.flush}});var nr=yn();Object.defineProperty(j,"CommandHelp",{enumerable:!0,get:function(){return nr.CommandHelp}});Object.defineProperty(j,"Help",{enumerable:!0,get:function(){return nr.Help}});Object.defineProperty(j,"HelpBase",{enumerable:!0,get:function(){return nr.HelpBase}});Object.defineProperty(j,"loadHelpClass",{enumerable:!0,get:function(){return nr.loadHelpClass}});j.Interfaces=Zt(mf());var S1=de();Object.defineProperty(j,"getLogger",{enumerable:!0,get:function(){return S1.getLogger}});var j1=Po();Object.defineProperty(j,"run",{enumerable:!0,get:function(){return j1.run}});j.ModuleLoader=Zt(cn());j.Parser=Zt(vo());var P1=Nt();Object.defineProperty(j,"Performance",{enumerable:!0,get:function(){return P1.Performance}});var $1=ze();Object.defineProperty(j,"settings",{enumerable:!0,get:function(){return $1.settings}});var _f=ft();Object.defineProperty(j,"toConfiguredId",{enumerable:!0,get:function(){return _f.toConfiguredId}});Object.defineProperty(j,"toStandardizedId",{enumerable:!0,get:function(){return _f.toStandardizedId}});var R1=ht();Object.defineProperty(j,"ux",{enumerable:!0,get:function(){return R1.ux}})});export{dr as a,Xo as b,mr as c,Hn as d,Dr as e,ia as f,Wn as g,la as h,ma as i,Ca as j,Vn as k,at as l,yu as m,xu as n,Hu as o,sc as p,Yl as q,L1 as r};
|
|
149
|
+
/*! Bundled license information:
|
|
150
|
+
|
|
151
|
+
ejs/lib/ejs.js:
|
|
152
|
+
(**
|
|
153
|
+
* @file Embedded JavaScript templating engine. {@link http://ejs.co}
|
|
154
|
+
* @author Matthew Eernisse <mde@fleegix.org>
|
|
155
|
+
* @author Tiancheng "Timothy" Gu <timothygu99@gmail.com>
|
|
156
|
+
* @project EJS
|
|
157
|
+
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
158
|
+
*)
|
|
159
|
+
*/
|