zx-packed
Version:
A leightweight version of zx - a tool for writing better scripts
23 lines • 398 kB
JavaScript
"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__esm=(o,u)=>function(){return o&&(u=(0,o[__getOwnPropNames(o)[0]])(o=0)),u},__commonJS=(o,u)=>function(){return u||(0,o[__getOwnPropNames(o)[0]])((u={exports:{}}).exports,u),u.exports},__export=(o,u)=>{for(var c in u)__defProp(o,c,{get:u[c],enumerable:!0})},__copyProps=(o,u,c,p)=>{if(u&&typeof u=="object"||typeof u=="function")for(let g of __getOwnPropNames(u))!__hasOwnProp.call(o,g)&&g!==c&&__defProp(o,g,{get:()=>u[g],enumerable:!(p=__getOwnPropDesc(u,g))||p.enumerable});return o},__toESM=(o,u,c)=>(c=o!=null?__create(__getProtoOf(o)):{},__copyProps(u||!o||!o.__esModule?__defProp(c,"default",{value:o,enumerable:!0}):c,o));function assembleStyles(){const o=new Map;for(const[u,c]of Object.entries(styles)){for(const[p,g]of Object.entries(c))styles[p]={open:`\x1B[${g[0]}m`,close:`\x1B[${g[1]}m`},c[p]=styles[p],o.set(g[0],g[1]);Object.defineProperty(styles,u,{value:c,enumerable:!1})}return Object.defineProperty(styles,"codes",{value:o,enumerable:!1}),styles.color.close="\x1B[39m",styles.bgColor.close="\x1B[49m",styles.color.ansi=wrapAnsi16(),styles.color.ansi256=wrapAnsi256(),styles.color.ansi16m=wrapAnsi16m(),styles.bgColor.ansi=wrapAnsi16(ANSI_BACKGROUND_OFFSET),styles.bgColor.ansi256=wrapAnsi256(ANSI_BACKGROUND_OFFSET),styles.bgColor.ansi16m=wrapAnsi16m(ANSI_BACKGROUND_OFFSET),Object.defineProperties(styles,{rgbToAnsi256:{value(u,c,p){return u===c&&c===p?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(c/255*5)+Math.round(p/255*5)},enumerable:!1},hexToRgb:{value(u){const c=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!c)return[0,0,0];let[p]=c;p.length===3&&(p=[...p].map(b=>b+b).join(""));const g=Number.parseInt(p,16);return[g>>16&255,g>>8&255,g&255]},enumerable:!1},hexToAnsi256:{value:u=>styles.rgbToAnsi256(...styles.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value(u){if(u<8)return 30+u;if(u<16)return 90+(u-8);let c,p,g;if(u>=232)c=((u-232)*10+8)/255,p=c,g=c;else{u-=16;const a=u%36;c=Math.floor(u/36)/5,p=Math.floor(a/6)/5,g=a%6/5}const b=Math.max(c,p,g)*2;if(b===0)return 30;let R=30+(Math.round(g)<<2|Math.round(p)<<1|Math.round(c));return b===2&&(R+=60),R},enumerable:!1},rgbToAnsi:{value:(u,c,p)=>styles.ansi256ToAnsi(styles.rgbToAnsi256(u,c,p)),enumerable:!1},hexToAnsi:{value:u=>styles.ansi256ToAnsi(styles.hexToAnsi256(u)),enumerable:!1}}),styles}var ANSI_BACKGROUND_OFFSET,wrapAnsi16,wrapAnsi256,wrapAnsi16m,styles,modifierNames,foregroundColorNames,backgroundColorNames,colorNames,ansiStyles,ansi_styles_default,init_ansi_styles=__esm({"node_modules/chalk/source/vendor/ansi-styles/index.js"(){ANSI_BACKGROUND_OFFSET=10,wrapAnsi16=(o=0)=>u=>`\x1B[${u+o}m`,wrapAnsi256=(o=0)=>u=>`\x1B[${38+o};5;${u}m`,wrapAnsi16m=(o=0)=>(u,c,p)=>`\x1B[${38+o};2;${u};${c};${p}m`,styles={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},modifierNames=Object.keys(styles.modifier),foregroundColorNames=Object.keys(styles.color),backgroundColorNames=Object.keys(styles.bgColor),colorNames=[...foregroundColorNames,...backgroundColorNames],ansiStyles=assembleStyles(),ansi_styles_default=ansiStyles}});function hasFlag(o,u=globalThis.Deno?globalThis.Deno.args:import_node_process.default.argv){const c=o.startsWith("-")?"":o.length===1?"-":"--",p=u.indexOf(c+o),g=u.indexOf("--");return p!==-1&&(g===-1||p<g)}function envForceColor(){if("FORCE_COLOR"in env)return env.FORCE_COLOR==="true"?1:env.FORCE_COLOR==="false"?0:env.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(env.FORCE_COLOR,10),3)}function translateLevel(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}}function _supportsColor(o,{streamIsTTY:u,sniffFlags:c=!0}={}){const p=envForceColor();p!==void 0&&(flagForceColor=p);const g=c?flagForceColor:p;if(g===0)return 0;if(c){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor"))return 3;if(hasFlag("color=256"))return 2}if("TF_BUILD"in env&&"AGENT_NAME"in env)return 1;if(o&&!u&&g===void 0)return 0;const b=g||0;if(env.TERM==="dumb")return b;if(import_node_process.default.platform==="win32"){const R=import_node_os.default.release().split(".");return Number(R[0])>=10&&Number(R[2])>=10586?Number(R[2])>=14931?3:2:1}if("CI"in env)return"GITHUB_ACTIONS"in env||"GITEA_ACTIONS"in env?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(R=>R in env)||env.CI_NAME==="codeship"?1:b;if("TEAMCITY_VERSION"in env)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION)?1:0;if(env.COLORTERM==="truecolor"||env.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in env){const R=Number.parseInt((env.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(env.TERM_PROGRAM){case"iTerm.app":return R>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(env.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)||"COLORTERM"in env?1:b}function createSupportsColor(o,u={}){const c=_supportsColor(o,{streamIsTTY:o&&o.isTTY,...u});return translateLevel(c)}var import_node_process,import_node_os,import_node_tty,env,flagForceColor,supportsColor,supports_color_default,init_supports_color=__esm({"node_modules/chalk/source/vendor/supports-color/index.js"(){import_node_process=__toESM(require("node:process"),1),import_node_os=__toESM(require("node:os"),1),import_node_tty=__toESM(require("node:tty"),1),{env}=import_node_process.default,hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")?flagForceColor=0:(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always"))&&(flagForceColor=1),supportsColor={stdout:createSupportsColor({isTTY:import_node_tty.default.isatty(1)}),stderr:createSupportsColor({isTTY:import_node_tty.default.isatty(2)})},supports_color_default=supportsColor}});function stringReplaceAll(o,u,c){let p=o.indexOf(u);if(p===-1)return o;const g=u.length;let b=0,R="";do R+=o.slice(b,p)+u+c,b=p+g,p=o.indexOf(u,b);while(p!==-1);return R+=o.slice(b),R}function stringEncaseCRLFWithFirstIndex(o,u,c,p){let g=0,b="";do{const R=o[p-1]==="\r";b+=o.slice(g,R?p-1:p)+u+(R?`\r
`:`
`)+c,g=p+1,p=o.indexOf(`
`,g)}while(p!==-1);return b+=o.slice(g),b}var init_utilities=__esm({"node_modules/chalk/source/utilities.js"(){}});function createChalk(o){return chalkFactory(o)}var stdoutColor,stderrColor,GENERATOR,STYLER,IS_EMPTY,levelMapping,styles2,applyOptions,chalkFactory,getModelAnsi,usedModels,proto,createStyler,createBuilder,applyStyle,chalk,chalkStderr,source_default,init_source=__esm({"node_modules/chalk/source/index.js"(){init_ansi_styles(),init_supports_color(),init_utilities(),{stdout:stdoutColor,stderr:stderrColor}=supports_color_default,GENERATOR=Symbol("GENERATOR"),STYLER=Symbol("STYLER"),IS_EMPTY=Symbol("IS_EMPTY"),levelMapping=["ansi","ansi","ansi256","ansi16m"],styles2=Object.create(null),applyOptions=(o,u={})=>{if(u.level&&!(Number.isInteger(u.level)&&u.level>=0&&u.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const c=stdoutColor?stdoutColor.level:0;o.level=u.level===void 0?c:u.level},chalkFactory=o=>{const u=(...c)=>c.join(" ");return applyOptions(u,o),Object.setPrototypeOf(u,createChalk.prototype),u},Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[o,u]of Object.entries(ansi_styles_default))styles2[o]={get(){const c=createBuilder(this,createStyler(u.open,u.close,this[STYLER]),this[IS_EMPTY]);return Object.defineProperty(this,o,{value:c}),c}};styles2.visible={get(){const o=createBuilder(this,this[STYLER],!0);return Object.defineProperty(this,"visible",{value:o}),o}},getModelAnsi=(o,u,c,...p)=>o==="rgb"?u==="ansi16m"?ansi_styles_default[c].ansi16m(...p):u==="ansi256"?ansi_styles_default[c].ansi256(ansi_styles_default.rgbToAnsi256(...p)):ansi_styles_default[c].ansi(ansi_styles_default.rgbToAnsi(...p)):o==="hex"?getModelAnsi("rgb",u,c,...ansi_styles_default.hexToRgb(...p)):ansi_styles_default[c][o](...p),usedModels=["rgb","hex","ansi256"];for(const o of usedModels){styles2[o]={get(){const{level:c}=this;return function(...p){const g=createStyler(getModelAnsi(o,levelMapping[c],"color",...p),ansi_styles_default.color.close,this[STYLER]);return createBuilder(this,g,this[IS_EMPTY])}}};const u="bg"+o[0].toUpperCase()+o.slice(1);styles2[u]={get(){const{level:c}=this;return function(...p){const g=createStyler(getModelAnsi(o,levelMapping[c],"bgColor",...p),ansi_styles_default.bgColor.close,this[STYLER]);return createBuilder(this,g,this[IS_EMPTY])}}}}proto=Object.defineProperties(()=>{},{...styles2,level:{enumerable:!0,get(){return this[GENERATOR].level},set(o){this[GENERATOR].level=o}}}),createStyler=(o,u,c)=>{let p,g;return c===void 0?(p=o,g=u):(p=c.openAll+o,g=u+c.closeAll),{open:o,close:u,openAll:p,closeAll:g,parent:c}},createBuilder=(o,u,c)=>{const p=(...g)=>applyStyle(p,g.length===1?""+g[0]:g.join(" "));return Object.setPrototypeOf(p,proto),p[GENERATOR]=o,p[STYLER]=u,p[IS_EMPTY]=c,p},applyStyle=(o,u)=>{if(o.level<=0||!u)return o[IS_EMPTY]?"":u;let c=o[STYLER];if(c===void 0)return u;const{openAll:p,closeAll:g}=c;if(u.includes("\x1B"))for(;c!==void 0;)u=stringReplaceAll(u,c.close,c.open),c=c.parent;const b=u.indexOf(`
`);return b!==-1&&(u=stringEncaseCRLFWithFirstIndex(u,g,p,b)),p+u+g},Object.defineProperties(createChalk.prototype,styles2),chalk=createChalk(),chalkStderr=createChalk({level:stderrColor?stderrColor.level:0}),source_default=chalk}}),require_windows=__commonJS({"node_modules/isexe/windows.js"(o,u){u.exports=b,b.sync=R;var c=require("fs");function p(a,y){var l=y.pathExt!==void 0?y.pathExt:process.env.PATHEXT;if(!l||(l=l.split(";"),l.indexOf("")!==-1))return!0;for(var d=0;d<l.length;d++){var n=l[d].toLowerCase();if(n&&a.substr(-n.length).toLowerCase()===n)return!0}return!1}function g(a,y,l){return!a.isSymbolicLink()&&!a.isFile()?!1:p(y,l)}function b(a,y,l){c.stat(a,function(d,n){l(d,d?!1:g(n,a,y))})}function R(a,y){return g(c.statSync(a),a,y)}}}),require_mode=__commonJS({"node_modules/isexe/mode.js"(o,u){u.exports=p,p.sync=g;var c=require("fs");function p(a,y,l){c.stat(a,function(d,n){l(d,d?!1:b(n,y))})}function g(a,y){return b(c.statSync(a),y)}function b(a,y){return a.isFile()&&R(a,y)}function R(a,y){var l=a.mode,d=a.uid,n=a.gid,_=y.uid!==void 0?y.uid:process.getuid&&process.getuid(),w=y.gid!==void 0?y.gid:process.getgid&&process.getgid(),E=parseInt("100",8),P=parseInt("010",8),C=parseInt("001",8),O=E|P,k=l&C||l&P&&n===w||l&E&&d===_||l&O&&_===0;return k}}}),require_isexe=__commonJS({"node_modules/isexe/index.js"(o,u){var c=require("fs"),p;process.platform==="win32"||global.TESTING_WINDOWS?p=require_windows():p=require_mode(),u.exports=g,g.sync=b;function g(R,a,y){if(typeof a=="function"&&(y=a,a={}),!y){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(l,d){g(R,a||{},function(n,_){n?d(n):l(_)})})}p(R,a||{},function(l,d){l&&(l.code==="EACCES"||a&&a.ignoreErrors)&&(l=null,d=!1),y(l,d)})}function b(R,a){try{return p.sync(R,a||{})}catch(y){if(a&&a.ignoreErrors||y.code==="EACCES")return!1;throw y}}}}),require_lib=__commonJS({"node_modules/which/lib/index.js"(o,u){var c=require_isexe(),{join:p,delimiter:g,sep:b,posix:R}=require("path"),a=process.platform==="win32",y=new RegExp(`[${R.sep}${b===R.sep?"":b}]`.replace(/(\\)/g,"\\$1")),l=new RegExp(`^\\.${y.source}`),d=P=>Object.assign(new Error(`not found: ${P}`),{code:"ENOENT"}),n=(P,{path:C=process.env.PATH,pathExt:O=process.env.PATHEXT,delimiter:k=g})=>{const N=P.match(y)?[""]:[...a?[process.cwd()]:[],...(C||"").split(k)];if(a){const I=O||[".EXE",".CMD",".BAT",".COM"].join(k),L=I.split(k).reduce((D,j)=>(D.push(j),D.push(j.toLowerCase()),D),[]);return P.includes(".")&&L[0]!==""&&L.unshift(""),{pathEnv:N,pathExt:L,pathExtExe:I}}return{pathEnv:N,pathExt:[""]}},_=(P,C)=>{const O=/^".*"$/.test(P)?P.slice(1,-1):P;return(!O&&l.test(C)?C.slice(0,2):"")+p(O,C)},w=async(P,C={})=>{const{pathEnv:O,pathExt:k,pathExtExe:N}=n(P,C),I=[];for(const L of O){const D=_(L,P);for(const j of k){const M=D+j;if(await c(M,{pathExt:N,ignoreErrors:!0})){if(!C.all)return M;I.push(M)}}}if(C.all&&I.length)return I;if(C.nothrow)return null;throw d(P)},E=(P,C={})=>{const{pathEnv:O,pathExt:k,pathExtExe:N}=n(P,C),I=[];for(const L of O){const D=_(L,P);for(const j of k){const M=D+j;if(c.sync(M,{pathExt:N,ignoreErrors:!0})){if(!C.all)return M;I.push(M)}}}if(C.all&&I.length)return I;if(C.nothrow)return null;throw d(P)};u.exports=w,w.sync=E}}),require_through=__commonJS({"node_modules/through/index.js"(o,u){var c=require("stream");o=u.exports=p,p.through=p;function p(g,b,R){g=g||function(E){this.queue(E)},b=b||function(){this.queue(null)};var a=!1,y=!1,l=[],d=!1,n=new c;n.readable=n.writable=!0,n.paused=!1,n.autoDestroy=!(R&&R.autoDestroy===!1),n.write=function(E){return g.call(this,E),!n.paused};function _(){for(;l.length&&!n.paused;){var E=l.shift();if(E===null)return n.emit("end");n.emit("data",E)}}n.queue=n.push=function(E){return d||(E===null&&(d=!0),l.push(E),_()),n},n.on("end",function(){n.readable=!1,!n.writable&&n.autoDestroy&&process.nextTick(function(){n.destroy()})});function w(){n.writable=!1,b.call(n),!n.readable&&n.autoDestroy&&n.destroy()}return n.end=function(E){if(!a)return a=!0,arguments.length&&n.write(E),w(),n},n.destroy=function(){if(!y)return y=!0,a=!0,l.length=0,n.writable=n.readable=!1,n.emit("close"),n},n.pause=function(){if(!n.paused)return n.paused=!0,n},n.resume=function(){return n.paused&&(n.paused=!1,n.emit("resume")),_(),n.paused||n.emit("drain"),n},n}}}),require_from=__commonJS({"node_modules/from/index.js"(o,u){"use strict";var c=require("stream");u.exports=function p(g){if(Array.isArray(g)){var b=0,R=g.length;return p(function(d){return b<R?this.emit("data",g[b++]):this.emit("end"),!0})}var a=new c,y=0;a.ended=!1,a.started=!1,a.readable=!0,a.writable=!1,a.paused=!1,a.ended=!1,a.pause=function(){a.started=!0,a.paused=!0};function l(){if(a.started=!0,!a.ended)for(;!a.ended&&!a.paused&&g.call(a,y++,function(){!a.ended&&!a.paused&&process.nextTick(l)}););}return a.resume=function(){a.started=!0,a.paused=!1,l()},a.on("end",function(){a.ended=!0,a.readable=!1,process.nextTick(a.destroy)}),a.destroy=function(){a.ended=!0,a.emit("close")},process.nextTick(function(){a.started||a.resume()}),a}}}),require_duplexer=__commonJS({"node_modules/duplexer/index.js"(o,u){var c=require("stream"),p=["write","end","destroy"],g=["resume","pause"],b=["data","close"],R=Array.prototype.slice;u.exports=y;function a(l,d){if(l.forEach)return l.forEach(d);for(var n=0;n<l.length;n++)d(l[n],n)}function y(l,d){var n=new c,_=!1;return a(p,w),a(g,E),a(b,P),d.on("end",C),l.on("drain",function(){n.emit("drain")}),l.on("error",O),d.on("error",O),n.writable=l.writable,n.readable=d.readable,n;function w(k){n[k]=N;function N(){return l[k].apply(l,arguments)}}function E(k){n[k]=N;function N(){n.emit(k);var I=d[k];if(I)return I.apply(d,arguments);d.emit(k)}}function P(k){d.on(k,N);function N(){var I=R.call(arguments);I.unshift(k),n.emit.apply(n,I)}}function C(){if(!_){_=!0;var k=R.call(arguments);k.unshift("end"),n.emit.apply(n,k)}}function O(k){n.emit("error",k)}}}}),require_map_stream=__commonJS({"node_modules/map-stream/index.js"(o,u){var c=require("stream").Stream;u.exports=function(p,g){var b=new c,R=this,a=0,y=0,l=!1,d=!1,n=!1,_=0,w=!1;this.opts=g||{};var E=this.opts.failures?"failure":"error",P={};b.writable=!0,b.readable=!0;function C(I,L){var D=_+1;if(L===D?(I!==void 0&&b.emit.apply(b,["data",I]),_++,D++):P[L]=I,P.hasOwnProperty(D)){var j=P[D];return delete P[D],C(j,D)}y++,a===y&&(d&&(d=!1,b.emit("drain")),l&&N())}function O(I,L,D){n||(w=!0,(!I||R.opts.failures)&&C(L,D),I&&b.emit.apply(b,[E,I]),w=!1)}function k(I,L,D){return p.call(null,I,function(j,M){D(j,M,L)})}b.write=function(I){if(l)throw new Error("map stream is not writable");w=!1,a++;try{var L=k(I,a,O);return d=L===!1,!d}catch(D){if(w)throw D;return O(D),!d}};function N(I){if(l=!0,b.writable=!1,I!==void 0)return C(I,a);a==y&&(b.readable=!1,b.emit("end"),b.destroy())}return b.end=function(I){l||N()},b.destroy=function(){l=n=!0,b.writable=b.readable=d=!1,process.nextTick(function(){b.emit("close")})},b.pause=function(){d=!0},b.resume=function(){d=!1},b}}}),require_pause_stream=__commonJS({"node_modules/pause-stream/index.js"(o,u){u.exports=require_through()}}),require_split=__commonJS({"node_modules/split/index.js"(o,u){var c=require_through(),p=require("string_decoder").StringDecoder;u.exports=g;function g(b,R,a){var y=new p,l="",d=a&&a.maxLength;typeof b=="function"&&(R=b,b=null),b||(b=/\r?\n/);function n(w,E){if(R){try{E=R(E)}catch(P){return w.emit("error",P)}typeof E<"u"&&w.queue(E)}else w.queue(E)}function _(w,E){var P=((l??"")+E).split(b);l=P.pop(),d&&l.length>d&&w.emit("error",new Error("maximum buffer reached"));for(var C=0;C<P.length;C++){var O=P[C];n(w,O)}}return c(function(w){_(this,y.write(w))},function(){y.end&&_(this,y.end()),l!=null&&n(this,l),this.queue(null)})}}}),require_stream_combiner=__commonJS({"node_modules/stream-combiner/index.js"(o,u){var c=require_duplexer();u.exports=function(){var p=[].slice.call(arguments),g=p[0],b=p[p.length-1],R=c(g,b);if(p.length==1)return p[0];if(!p.length)throw new Error("connect called with empty args");function a(d){d.length<2||(d[0].pipe(d[1]),a(d.slice(1)))}a(p);function y(){var d=[].slice.call(arguments);d.unshift("error"),R.emit.apply(R,d)}for(var l=1;l<p.length-1;l++)p[l].on("error",y);return R}}}),require_event_stream=__commonJS({"node_modules/event-stream/index.js"(o){var u=require("stream").Stream,c=o,p=require_through(),g=require_from(),b=require_duplexer(),R=require_map_stream(),a=require_pause_stream(),y=require_split(),l=require_stream_combiner(),d=global.setImmediate||process.nextTick;c.Stream=u,c.through=p,c.from=g,c.duplex=b,c.map=R,c.pause=a,c.split=y,c.pipeline=c.connect=c.pipe=l,c.concat=c.merge=function(){var n=[].slice.call(arguments);n.length===1&&n[0]instanceof Array&&(n=n[0]);var _=new u;_.setMaxListeners(0);var w=0;return _.writable=_.readable=!0,n.length?n.forEach(function(E){E.pipe(_,{end:!1});var P=!1;E.on("end",function(){P||(P=!0,w++,w==n.length&&_.emit("end"))})}):process.nextTick(function(){_.emit("end")}),_.write=function(E){this.emit("data",E)},_.destroy=function(){n.forEach(function(E){E.destroy&&E.destroy()})},_},c.writeArray=function(n){if(typeof n!="function")throw new Error("function writeArray (done): done must be function");var _=new u,w=[],E=!1;return _.write=function(P){w.push(P)},_.end=function(){E=!0,n(null,w)},_.writable=!0,_.readable=!1,_.destroy=function(){_.writable=_.readable=!1,!E&&n(new Error("destroyed before end"),w)},_},c.readArray=function(n){var _=new u,w=0,E=!1,P=!1;if(_.readable=!0,_.writable=!1,!Array.isArray(n))throw new Error("event-stream.read expects an array");return _.resume=function(){if(!P){E=!1;for(var C=n.length;w<C&&!E&&!P;)_.emit("data",n[w++]);w==C&&!P&&(P=!0,_.readable=!1,_.emit("end"))}},process.nextTick(_.resume),_.pause=function(){E=!0},_.destroy=function(){P=!0,_.emit("close")},_},c.readable=function(n,_){var w=new u,E=0,P=!1,C=!1,O=!1;if(w.readable=!0,w.writable=!1,typeof n!="function")throw new Error("event-stream.readable expects async function");w.on("end",function(){C=!0});function k(N,I){N?(w.emit("error",N),_||w.emit("end")):arguments.length>1&&w.emit("data",I),d(function(){if(!(C||P||O))try{O=!0,n.call(w,E++,function(){O=!1,k.apply(null,arguments)})}catch(L){w.emit("error",L)}})}return w.resume=function(){P=!1,k()},process.nextTick(k),w.pause=function(){P=!0},w.destroy=function(){w.emit("end"),w.emit("close"),C=!0},w},c.mapSync=function(n){return c.through(function(w){var E;try{E=n(w)}catch(P){return this.emit("error",P)}E!==void 0&&this.emit("data",E)})},c.log=function(n){return c.through(function(_){var w=[].slice.call(arguments);n?console.error(n,_):console.error(_),this.emit("data",_)})},c.child=function(n){return c.duplex(n.stdin,n.stdout)},c.parse=function(n){var _=!!(n&&n.error);return c.through(function(w){var E;try{w&&(E=JSON.parse(w.toString()))}catch(P){return _?this.emit("error",P):console.error(P,"attempting to parse:",w)}E!==void 0&&this.emit("data",E)})},c.stringify=function(){var n=require("buffer").Buffer;return c.mapSync(function(_){return JSON.stringify(n.isBuffer(_)?_.toString():_)+`
`})},c.replace=function(n,_){return c.pipeline(c.split(n),c.join(_))},c.join=function(n){if(typeof n=="function")return c.wait(n);var _=!0;return c.through(function(w){return _||this.emit("data",n),_=!1,this.emit("data",w),!0})},c.wait=function(n){var _=[];return c.through(function(w){_.push(w)},function(){var w=Buffer.isBuffer(_[0])?Buffer.concat(_):_.join("");this.emit("data",w),this.emit("end"),n&&n(null,w)})},c.pipeable=function(){throw new Error("[EVENT-STREAM] es.pipeable is deprecated")}}}),require_ps_tree=__commonJS({"node_modules/ps-tree/index.js"(o,u){"use strict";var c=require("child_process").spawn,p=require_event_stream();u.exports=function(R,a){var y=null;if(typeof a!="function")throw new Error("childrenOfPid(pid, callback) expects callback");typeof R=="number"&&(R=R.toString());var l;process.platform==="win32"?l=c("wmic.exe",["PROCESS","GET","Name,ProcessId,ParentProcessId,Status"]):l=c("ps",["-A","-o","ppid,pid,stat,comm"]),p.connect(l.stdout,p.split(),p.map(function(d,n){var _=d.trim().split(/\s+/);if(!y)return y=_,y=y.map(g),n();for(var w={},E=y.slice();E.length;)w[E.shift()]=E.length?_.shift():_.join(" ");return n(null,w)}),p.writeArray(function(d,n){var _={},w=[];_[R]=!0,n.forEach(function(E){_[E.PPID]&&(_[E.PID]=!0,w.push(E))}),a(null,w)})).on("error",a)};function g(b){if(process.platform!=="win32")return b;switch(b){case"Name":return"COMMAND";case"ParentProcessId":return"PPID";case"ProcessId":return"PID";case"Status":return"STAT";default:throw new Error("Unknown process listing header: "+b)}}}});function noop(){}function randomId(){return Math.random().toString(36).slice(2)}function isString(o){return typeof o=="string"}function quote(o){return/^[a-z0-9/_.\-@:=]+$/i.test(o)||o===""?o:"$'"+o.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0")+"'"}function quotePowerShell(o){return/^[a-z0-9/_.\-]+$/i.test(o)||o===""?o:"'"+o.replace(/'/g,"''")+"'"}function exitCodeInfo(o){return{2:"Misuse of shell builtins",126:"Invoked command cannot execute",127:"Command not found",128:"Invalid exit argument",129:"Hangup",130:"Interrupt",131:"Quit and dump core",132:"Illegal instruction",133:"Trace/breakpoint trap",134:"Process aborted",135:'Bus error: "access to undefined portion of memory object"',136:'Floating point exception: "erroneous arithmetic operation"',137:"Kill (terminate immediately)",138:"User-defined 1",139:"Segmentation violation",140:"User-defined 2",141:"Write to pipe with no one reading",142:"Signal raised by alarm",143:"Termination (request to terminate)",145:"Child process terminated, stopped (or continued*)",146:"Continue if stopped",147:"Stop executing temporarily",148:"Terminal stop signal",149:'Background process attempting to read from tty ("in")',150:'Background process attempting to write to tty ("out")',151:"Urgent data available on socket",152:"CPU time limit exceeded",153:"File size limit exceeded",154:'Signal raised by timer counting virtual time: "virtual timer expired"',155:"Profiling timer expired",157:"Pollable event",159:"Bad syscall"}[o||-1]}function errnoMessage(o){return o===void 0?"Unknown error":{0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"}[-o]||"Unknown error"}function parseDuration(o){if(typeof o=="number"){if(isNaN(o)||o<0)throw new Error(`Invalid duration: "${o}".`);return o}else{if(/\d+s/.test(o))return+o.slice(0,-1)*1e3;if(/\d+ms/.test(o))return+o.slice(0,-2)}throw new Error(`Unknown duration: "${o}".`)}function formatCmd(o){if(o==null)return source_default.grey("undefined");const u=[...o];let c="$ ",p="",g,b=l,R=0;for(;b;){if(g=u.shift()||"EOF",g==`
`){c+=a(b,p)+`
> `,p="";continue}const I=g=="EOF"?void 0:b();I!=b&&(c+=a(b,p),p=""),b=I==l?I():I,p+=g}function a(I,L){return L==""?"":reservedWords.includes(L)?source_default.cyanBright(L):I==n&&R==0?(R++,source_default.greenBright(L)):I==_?(R=0,source_default.cyanBright(L)):I==w||I?.name.startsWith("str")?source_default.yellowBright(L):L}function y(I){return"()[]{}<>;:+|&=".includes(I)}function l(){return/\s/.test(g)?d:y(g)?_:/[$]/.test(g)?w:/["]/.test(g)?O:/[']/.test(g)?k:n}function d(){return/\s/.test(g)?d:l}function n(){return/[0-9a-z/_.]/i.test(g)?n:l}function _(){return y(g)?_:l}function w(){return/[']/.test(g)?E:l}function E(){return/[']/.test(g)?N:/[\\]/.test(g)?P:E}function P(){return C}function C(){return E}function O(){return/["]/.test(g)?N:O}function k(){return/[']/.test(g)?N:k}function N(){return l}return c+`
`}var import_node_util,import_ps_tree,psTree,reservedWords,init_util=__esm({"node_modules/zx/build/util.js"(){init_source(),import_node_util=require("node:util"),import_ps_tree=__toESM(require_ps_tree(),1),psTree=(0,import_node_util.promisify)(import_ps_tree.default),reservedWords=["if","then","else","elif","fi","case","esac","for","select","while","until","do","done","in"]}});function getStore(){return storage.getStore()||defaults}function substitute(o){return o?.stdout?o.stdout.replace(/\n$/,""):`${o}`}function within(o){return storage.run({...getStore()},o)}function syncCwd(){$[processCwd]!=process.cwd()&&process.chdir($[processCwd])}function cd(o){o instanceof ProcessOutput&&(o=o.toString().replace(/\n+$/,"")),$.log({kind:"cd",dir:o}),process.chdir(o),$[processCwd]=process.cwd()}function log(o){switch(o.kind){case"cmd":if(!o.verbose)return;process.stderr.write(formatCmd(o.cmd));break;case"stdout":case"stderr":if(!o.verbose)return;process.stderr.write(o.data);break;case"cd":if(!$.verbose)return;process.stderr.write("$ "+source_default.greenBright("cd")+` ${o.dir}
`);break;case"fetch":if(!$.verbose)return;const u=o.init?" "+(0,import_node_util2.inspect)(o.init):"";process.stderr.write("$ "+source_default.greenBright("fetch")+` ${o.url}${u}
`);break;case"retry":if(!$.verbose)return;process.stderr.write(o.error+`
`)}}var import_node_assert,import_node_child_process,import_node_async_hooks,import_node_util2,import_which,processCwd,storage,hook,defaults,$,ProcessPromise,ProcessOutput,init_core=__esm({"node_modules/zx/build/core.js"(){import_node_assert=__toESM(require("node:assert"),1),import_node_child_process=require("node:child_process"),import_node_async_hooks=require("node:async_hooks"),import_node_util2=require("node:util"),init_source(),import_which=__toESM(require_lib(),1),init_util(),processCwd=Symbol("processCwd"),storage=new import_node_async_hooks.AsyncLocalStorage,hook=(0,import_node_async_hooks.createHook)({init:syncCwd,before:syncCwd,promiseResolve:syncCwd,after:syncCwd,destroy:syncCwd}),hook.enable(),defaults={[processCwd]:process.cwd(),verbose:!0,env:process.env,shell:!0,prefix:"",quote:()=>{throw new Error("No quote function is defined: https://\xEF.at/no-quote-func")},spawn:import_node_child_process.spawn,log};try{defaults.shell=import_which.default.sync("bash"),defaults.prefix="set -euo pipefail;",defaults.quote=quote}catch{process.platform=="win32"&&(defaults.shell=import_which.default.sync("powershell.exe"),defaults.quote=quotePowerShell)}$=new Proxy(function(o,...u){const c=new Error().stack.split(/^\s*at\s/m)[2].trim();if(o.some(y=>y==null))throw new Error(`Malformed command at ${c}`);let p,g;const b=new ProcessPromise((...y)=>[p,g]=y);let R=o[0],a=0;for(;a<u.length;){let y;Array.isArray(u[a])?y=u[a].map(l=>$.quote(substitute(l))).join(" "):y=$.quote(substitute(u[a])),R+=y+o[++a]}return b._bind(R,c,p,g,getStore()),setImmediate(()=>b.isHalted||b.run()),b},{set(o,u,c){const p=u in Function.prototype?o:getStore();return Reflect.set(p,u,c),!0},get(o,u){const c=u in Function.prototype?o:getStore();return Reflect.get(c,u)}}),ProcessPromise=class qr extends Promise{constructor(){super(...arguments),this._command="",this._from="",this._resolve=noop,this._reject=noop,this._snapshot=getStore(),this._stdio=["inherit","pipe","pipe"],this._nothrow=!1,this._quiet=!1,this._resolved=!1,this._halted=!1,this._piped=!1,this._prerun=noop,this._postrun=noop}_bind(u,c,p,g,b){this._command=u,this._from=c,this._resolve=p,this._reject=g,this._snapshot={...b}}run(){const u=this._snapshot;if(this.child)return this;this._prerun(),u.log({kind:"cmd",cmd:this._command,verbose:u.verbose&&!this._quiet}),this.child=u.spawn(u.prefix+this._command,{cwd:u.cwd??u[processCwd],shell:typeof u.shell=="string"?u.shell:!0,stdio:this._stdio,windowsHide:!0,env:u.env}),this.child.on("close",(a,y)=>{let l=`exit code: ${a}`;(a!=0||y!=null)&&(l=`${p||`
`} at ${this._from}`,l+=`
exit code: ${a}${exitCodeInfo(a)?" ("+exitCodeInfo(a)+")":""}`,y!=null&&(l+=`
signal: ${y}`));let d=new ProcessOutput(a,y,c,p,g,l);a===0||this._nothrow?this._resolve(d):this._reject(d),this._resolved=!0}),this.child.on("error",a=>{const y=`${a.message}
errno: ${a.errno} (${errnoMessage(a.errno)})
code: ${a.code}
at ${this._from}`;this._reject(new ProcessOutput(null,null,c,p,g,y)),this._resolved=!0});let c="",p="",g="",b=a=>{u.log({kind:"stdout",data:a,verbose:u.verbose&&!this._quiet}),c+=a,g+=a},R=a=>{u.log({kind:"stderr",data:a,verbose:u.verbose&&!this._quiet}),p+=a,g+=a};if(this._piped||this.child.stdout?.on("data",b),this.child.stderr?.on("data",R),this._postrun(),this._timeout&&this._timeoutSignal){const a=setTimeout(()=>this.kill(this._timeoutSignal),this._timeout);this.finally(()=>clearTimeout(a)).catch(noop)}return this}get stdin(){if(this.stdio("pipe"),this.run(),(0,import_node_assert.default)(this.child),this.child.stdin==null)throw new Error("The stdin of subprocess is null.");return this.child.stdin}get stdout(){if(this.run(),(0,import_node_assert.default)(this.child),this.child.stdout==null)throw new Error("The stdout of subprocess is null.");return this.child.stdout}get stderr(){if(this.run(),(0,import_node_assert.default)(this.child),this.child.stderr==null)throw new Error("The stderr of subprocess is null.");return this.child.stderr}get exitCode(){return this.then(u=>u.exitCode,u=>u.exitCode)}then(u,c){if(this.isHalted&&!this.child)throw new Error("The process is halted!");return super.then(u,c)}catch(u){return super.catch(u)}pipe(u){if(typeof u=="string")throw new Error("The pipe() method does not take strings. Forgot $?");if(this._resolved)throw u instanceof qr&&u.stdin.end(),new Error("The pipe() method shouldn't be called after promise is already resolved!");return this._piped=!0,u instanceof qr?(u.stdio("pipe"),u._prerun=this.run.bind(this),u._postrun=()=>{if(!u.child)throw new Error("Access to stdin of pipe destination without creation a subprocess.");this.stdout.pipe(u.stdin)},u):(this._postrun=()=>this.stdout.pipe(u),this)}async kill(u="SIGTERM"){if(!this.child)throw new Error("Trying to kill a process without creating one.");if(!this.child.pid)throw new Error("The process pid is undefined.");let c=await psTree(this.child.pid);for(const p of c)try{process.kill(+p.PID,u)}catch{}try{process.kill(this.child.pid,u)}catch{}}stdio(u,c="pipe",p="pipe"){return this._stdio=[u,c,p],this}nothrow(){return this._nothrow=!0,this}quiet(){return this._quiet=!0,this}timeout(u,c="SIGTERM"){return this._timeout=parseDuration(u),this._timeoutSignal=c,this}halt(){return this._halted=!0,this}get isHalted(){return this._halted}},ProcessOutput=class extends Error{constructor(o,u,c,p,g,b){super(b),this._code=o,this._signal=u,this._stdout=c,this._stderr=p,this._combined=g}toString(){return this._combined}get stdout(){return this._stdout}get stderr(){return this._stderr}get exitCode(){return this._code}get signal(){return this._signal}[import_node_util2.inspect.custom](){let o=(u,c)=>u.length===0?"''":c((0,import_node_util2.inspect)(u));return`ProcessOutput {
stdout: ${o(this.stdout,source_default.green)},
stderr: ${o(this.stderr,source_default.red)},
signal: ${(0,import_node_util2.inspect)(this.signal)},
exitCode: ${(this.exitCode===0?source_default.green:source_default.red)(this.exitCode)}${exitCodeInfo(this.exitCode)?source_default.grey(" ("+exitCodeInfo(this.exitCode)+")"):""}
}`}}}}),require_merge2=__commonJS({"node_modules/merge2/index.js"(o,u){"use strict";var c=require("stream"),p=c.PassThrough,g=Array.prototype.slice;u.exports=b;function b(){const a=[],y=g.call(arguments);let l=!1,d=y[y.length-1];d&&!Array.isArray(d)&&d.pipe==null?y.pop():d={};const n=d.end!==!1,_=d.pipeError===!0;d.objectMode==null&&(d.objectMode=!0),d.highWaterMark==null&&(d.highWaterMark=64*1024);const w=p(d);function E(){for(let O=0,k=arguments.length;O<k;O++)a.push(R(arguments[O],d));return P(),this}function P(){if(l)return;l=!0;let O=a.shift();if(!O){process.nextTick(C);return}Array.isArray(O)||(O=[O]);let k=O.length+1;function N(){--k>0||(l=!1,P())}function I(L){function D(){L.removeListener("merge2UnpipeEnd",D),L.removeListener("end",D),_&&L.removeListener("error",j),N()}function j(M){w.emit("error",M)}if(L._readableState.endEmitted)return N();L.on("merge2UnpipeEnd",D),L.on("end",D),_&&L.on("error",j),L.pipe(w,{end:!1}),L.resume()}for(let L=0;L<O.length;L++)I(O[L]);N()}function C(){l=!1,w.emit("queueDrain"),n&&w.end()}return w.setMaxListeners(0),w.add=E,w.on("unpipe",function(O){O.emit("merge2UnpipeEnd")}),y.length&&E.apply(null,y),w}function R(a,y){if(Array.isArray(a))for(let l=0,d=a.length;l<d;l++)a[l]=R(a[l],y);else{if(!a._readableState&&a.pipe&&(a=a.pipe(p(y))),!a._readableState||!a.pause||!a.pipe)throw new Error("Only readable stream can be merged.");a.pause()}return a}}}),require_array=__commonJS({"node_modules/fast-glob/out/utils/array.js"(o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.splitWhen=o.flatten=void 0;function u(p){return p.reduce((g,b)=>[].concat(g,b),[])}o.flatten=u;function c(p,g){const b=[[]];let R=0;for(const a of p)g(a)?(R++,b[R]=[]):b[R].push(a);return b}o.splitWhen=c}}),require_errno=__commonJS({"node_modules/fast-glob/out/utils/errno.js"(o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isEnoentCodeError=void 0;function u(c){return c.code==="ENOENT"}o.isEnoentCodeError=u}}),require_fs=__commonJS({"node_modules/fast-glob/out/utils/fs.js"(o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createDirentFromStats=void 0;var u=class{constructor(p,g){this.name=p,this.isBlockDevice=g.isBlockDevice.bind(g),this.isCharacterDevice=g.isCharacterDevice.bind(g),this.isDirectory=g.isDirectory.bind(g),this.isFIFO=g.isFIFO.bind(g),this.isFile=g.isFile.bind(g),this.isSocket=g.isSocket.bind(g),this.isSymbolicLink=g.isSymbolicLink.bind(g)}};function c(p,g){return new u(p,g)}o.createDirentFromStats=c}}),require_path=__commonJS({"node_modules/fast-glob/out/utils/path.js"(o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.convertPosixPathToPattern=o.convertWindowsPathToPattern=o.convertPathToPattern=o.escapePosixPath=o.escapeWindowsPath=o.escape=o.removeLeadingDotSegment=o.makeAbsolute=o.unixify=void 0;var u=require("os"),c=require("path"),p=u.platform()==="win32",g=2,b=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,R=/(\\?)([(){}]|^!|[!+@](?=\())/g,a=/^\\\\([.?])/,y=/\\(?![!()+@{}])/g;function l(C){return C.replace(/\\/g,"/")}o.unixify=l;function d(C,O){return c.resolve(C,O)}o.makeAbsolute=d;function n(C){if(C.charAt(0)==="."){const O=C.charAt(1);if(O==="/"||O==="\\")return C.slice(g)}return C}o.removeLeadingDotSegment=n,o.escape=p?_:w;function _(C){return C.replace(R,"\\$2")}o.escapeWindowsPath=_;function w(C){return C.replace(b,"\\$2")}o.escapePosixPath=w,o.convertPathToPattern=p?E:P;function E(C){return _(C).replace(a,"//$1").replace(y,"/")}o.convertWindowsPathToPattern=E;function P(C){return w(C)}o.convertPosixPathToPattern=P}}),require_is_extglob=__commonJS({"node_modules/is-extglob/index.js"(o,u){u.exports=function(p){if(typeof p!="string"||p==="")return!1;for(var g;g=/(\\).|([@?!+*]\(.*\))/g.exec(p);){if(g[2])return!0;p=p.slice(g.index+g[0].length)}return!1}}}),require_is_glob=__commonJS({"node_modules/is-glob/index.js"(o,u){var c=require_is_extglob(),p={"{":"}","(":")","[":"]"},g=function(R){if(R[0]==="!")return!0;for(var a=0,y=-2,l=-2,d=-2,n=-2,_=-2;a<R.length;){if(R[a]==="*"||R[a+1]==="?"&&/[\].+)]/.test(R[a])||l!==-1&&R[a]==="["&&R[a+1]!=="]"&&(l<a&&(l=R.indexOf("]",a)),l>a&&(_===-1||_>l||(_=R.indexOf("\\",a),_===-1||_>l)))||d!==-1&&R[a]==="{"&&R[a+1]!=="}"&&(d=R.indexOf("}",a),d>a&&(_=R.indexOf("\\",a),_===-1||_>d))||n!==-1&&R[a]==="("&&R[a+1]==="?"&&/[:!=]/.test(R[a+2])&&R[a+3]!==")"&&(n=R.indexOf(")",a),n>a&&(_=R.indexOf("\\",a),_===-1||_>n))||y!==-1&&R[a]==="("&&R[a+1]!=="|"&&(y<a&&(y=R.indexOf("|",a)),y!==-1&&R[y+1]!==")"&&(n=R.indexOf(")",y),n>y&&(_=R.indexOf("\\",y),_===-1||_>n))))return!0;if(R[a]==="\\"){var w=R[a+1];a+=2;var E=p[w];if(E){var P=R.indexOf(E,a);P!==-1&&(a=P+1)}if(R[a]==="!")return!0}else a++}return!1},b=function(R){if(R[0]==="!")return!0;for(var a=0;a<R.length;){if(/[*?{}()[\]]/.test(R[a]))return!0;if(R[a]==="\\"){var y=R[a+1];a+=2;var l=p[y];if(l){var d=R.indexOf(l,a);d!==-1&&(a=d+1)}if(R[a]==="!")return!0}else a++}return!1};u.exports=function(a,y){if(typeof a!="string"||a==="")return!1;if(c(a))return!0;var l=g;return y&&y.strict===!1&&(l=b),l(a)}}}),require_glob_parent=__commonJS({"node_modules/glob-parent/index.js"(o,u){"use strict";var c=require_is_glob(),p=require("path").posix.dirname,g=require("os").platform()==="win32",b="/",R=/\\/g,a=/[\{\[].*[\}\]]$/,y=/(^|[^\\])([\{\[]|\([^\)]+$)/,l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;u.exports=function(n,_){var w=Object.assign({flipBackslashes:!0},_);w.flipBackslashes&&g&&n.indexOf(b)<0&&(n=n.replace(R,b)),a.test(n)&&(n+=b),n+="a";do n=p(n);while(c(n)||y.test(n));return n.replace(l,"$1")}}}),require_utils=__commonJS({"node_modules/braces/lib/utils.js"(o){"use strict";o.isInteger=u=>typeof u=="number"?Number.isInteger(u):typeof u=="string"&&u.trim()!==""?Number.isInteger(Number(u)):!1,o.find=(u,c)=>u.nodes.find(p=>p.type===c),o.exceedsLimit=(u,c,p=1,g)=>g===!1||!o.isInteger(u)||!o.isInteger(c)?!1:(Number(c)-Number(u))/Number(p)>=g,o.escapeNode=(u,c=0,p)=>{let g=u.nodes[c];g&&(p&&g.type===p||g.type==="open"||g.type==="close")&&g.escaped!==!0&&(g.value="\\"+g.value,g.escaped=!0)},o.encloseBrace=u=>u.type!=="brace"||u.commas>>0+u.ranges>>0?!1:(u.invalid=!0,!0),o.isInvalidBrace=u=>u.type!=="brace"?!1:u.invalid===!0||u.dollar?!0:!(u.commas>>0+u.ranges>>0)||u.open!==!0||u.close!==!0?(u.invalid=!0,!0):!1,o.isOpenOrClose=u=>u.type==="open"||u.type==="close"?!0:u.open===!0||u.close===!0,o.reduce=u=>u.reduce((c,p)=>(p.type==="text"&&c.push(p.value),p.type==="range"&&(p.type="text"),c),[]),o.flatten=(...u)=>{const c=[],p=g=>{for(let b=0;b<g.length;b++){let R=g[b];Array.isArray(R)?p(R,c):R!==void 0&&c.push(R)}return c};return p(u),c}}}),require_stringify=__commonJS({"node_modules/braces/lib/stringify.js"(o,u){"use strict";var c=require_utils();u.exports=(p,g={})=>{let b=(R,a={})=>{let y=g.escapeInvalid&&c.isInvalidBrace(a),l=R.invalid===!0&&g.escapeInvalid===!0,d="";if(R.value)return(y||l)&&c.isOpenOrClose(R)?"\\"+R.value:R.value;if(R.value)return R.value;if(R.nodes)for(let n of R.nodes)d+=b(n);return d};return b(p)}}}),require_is_number=__commonJS({"node_modules/is-number/index.js"(o,u){"use strict";u.exports=function(c){return typeof c=="number"?c-c===0:typeof c=="string"&&c.trim()!==""?Number.isFinite?Number.isFinite(+c):isFinite(+c):!1}}}),require_to_regex_range=__commonJS({"node_modules/to-regex-range/index.js"(o,u){"use strict";var c=require_is_number(),p=(k,N,I)=>{if(c(k)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(N===void 0||k===N)return String(k);if(c(N)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let L={relaxZeros:!0,...I};typeof L.strictZeros=="boolean"&&(L.relaxZeros=L.strictZeros===!1);let D=String(L.relaxZeros),j=String(L.shorthand),M=String(L.capture),B=String(L.wrap),U=k+":"+N+"="+D+j+M+B;if(p.cache.hasOwnProperty(U))return p.cache[U].result;let Q=Math.min(k,N),W=Math.max(k,N);if(Math.abs(Q-W)===1){let ae=k+"|"+N;return L.capture?`(${ae})`:L.wrap===!1?ae:`(?:${ae})`}let G=C(k)||C(N),V={min:k,max:N,a:Q,b:W},K=[],ne=[];if(G&&(V.isPadded=G,V.maxLen=String(V.max).length),Q<0){let ae=W<0?Math.abs(W):1;ne=a(ae,Math.abs(Q),V,L),Q=V.a=0}return W>=0&&(K=a(Q,W,V,L)),V.negatives=ne,V.positives=K,V.result=g(ne,K,L),L.capture===!0?V.result=`(${V.result})`:L.wrap!==!1&&K.length+ne.length>1&&(V.result=`(?:${V.result})`),p.cache[U]=V,V.result};function g(k,N,I){let L=y(k,N,"-",!1,I)||[],D=y(N,k,"",!1,I)||[],j=y(k,N,"-?",!0,I)||[];return L.concat(j).concat(D).join("|")}function b(k,N){let I=1,L=1,D=_(k,I),j=new Set([N]);for(;k<=D&&D<=N;)j.add(D),I+=1,D=_(k,I);for(D=w(N+1,L)-1;k<D&&D<=N;)j.add(D),L+=1,D=w(N+1,L)-1;return j=[...j],j.sort(d),j}function R(k,N,I){if(k===N)return{pattern:k,count:[],digits:0};let L=l(k,N),D=L.length,j="",M=0;for(let B=0;B<D;B++){let[U,Q]=L[B];U===Q?j+=U:U!=="0"||Q!=="9"?j+=P(U,Q,I):M++}return M&&(j+=I.shorthand===!0?"\\d":"[0-9]"),{pattern:j,count:[M],digits:D}}function a(k,N,I,L){let D=b(k,N),j=[],M=k,B;for(let U=0;U<D.length;U++){let Q=D[U],W=R(String(M),String(Q),L),G="";if(!I.isPadded&&B&&B.pattern===W.pattern){B.count.length>1&&B.count.pop(),B.count.push(W.count[0]),B.string=B.pattern+E(B.count),M=Q+1;continue}I.isPadded&&(G=O(Q,I,L)),W.string=G+W.pattern+E(W.count),j.push(W),M=Q+1,B=W}return j}function y(k,N,I,L,D){let j=[];for(let M of k){let{string:B}=M;!L&&!n(N,"string",B)&&j.push(I+B),L&&n(N,"string",B)&&j.push(I+B)}return j}function l(k,N){let I=[];for(let L=0;L<k.length;L++)I.push([k[L],N[L]]);return I}function d(k,N){return k>N?1:N>k?-1:0}function n(k,N,I){return k.some(L=>L[N]===I)}function _(k,N){return Number(String(k).slice(0,-N)+"9".repeat(N))}function w(k,N){return k-k%Math.pow(10,N)}function E(k){let[N=0,I=""]=k;return I||N>1?`{${N+(I?","+I:"")}}`:""}function P(k,N,I){return`[${k}${N-k===1?"":"-"}${N}]`}function C(k){return/^-?(0+)\d/.test(k)}function O(k,N,I){if(!N.isPadded)return k;let L=Math.abs(N.maxLen-String(k).length),D=I.relaxZeros!==!1;switch(L){case 0:return"";case 1:return D?"0?":"0";case 2:return D?"0{0,2}":"00";default:return D?`0{0,${L}}`:`0{${L}}`}}p.cache={},p.clearCache=()=>p.cache={},u.exports=p}}),require_fill_range=__commonJS({"node_modules/fill-range/index.js"(o,u){"use strict";var c=require("util"),p=require_to_regex_range(),g=L=>L!==null&&typeof L=="object"&&!Array.isArray(L),b=L=>D=>L===!0?Number(D):String(D),R=L=>typeof L=="number"||typeof L=="string"&&L!=="",a=L=>Number.isInteger(+L),y=L=>{let D=`${L}`,j=-1;if(D[0]==="-"&&(D=D.slice(1)),D==="0")return!1;for(;D[++j]==="0";);return j>0},l=(L,D,j)=>typeof L=="string"||typeof D=="string"?!0:j.stringify===!0,d=(L,D,j)=>{if(D>0){let M=L[0]==="-"?"-":"";M&&(L=L.slice(1)),L=M+L.padStart(M?D-1:D,"0")}return j===!1?String(L):L},n=(L,D)=>{let j=L[0]==="-"?"-":"";for(j&&(L=L.slice(1),D--);L.length<D;)L="0"+L;return j?"-"+L:L},_=(L,D)=>{L.negatives.sort((Q,W)=>Q<W?-1:Q>W?1:0),L.positives.sort((Q,W)=>Q<W?-1:Q>W?1:0);let j=D.capture?"":"?:",M="",B="",U;return L.positives.length&&(M=L.positives.join("|")),L.negatives.length&&(B=`-(${j}${L.negatives.join("|")})`),M&&B?U=`${M}|${B}`:U=M||B,D.wrap?`(${j}${U})`:U},w=(L,D,j,M)=>{if(j)return p(L,D,{wrap:!1,...M});let B=String.fromCharCode(L);if(L===D)return B;let U=String.fromCharCode(D);return`[${B}-${U}]`},E=(L,D,j)=>{if(Array.isArray(L)){let M=j.wrap===!0,B=j.capture?"":"?:";return M?`(${B}${L.join("|")})`:L.join("|")}return p(L,D,j)},P=(...L)=>new RangeError("Invalid range arguments: "+c.inspect(...L)),C=(L,D,j)=>{if(j.strictRanges===!0)throw P([L,D]);return[]},O=(L,D)=>{if(D.strictRanges===!0)throw new TypeError(`Expected step "${L}" to be a number`);return[]},k=(L,D,j=1,M={})=>{let B=Number(L),U=Number(D);if(!Number.isInteger(B)||!Number.isInteger(U)){if(M.strictRanges===!0)throw P([L,D]);return[]}B===0&&(B=0),U===0&&(U=0);let Q=B>U,W=String(L),G=String(D),V=String(j);j=Math.max(Math.abs(j),1);let K=y(W)||y(G)||y(V),ne=K?Math.max(W.length,G.length,V.length):0,ae=K===!1&&l(L,D,M)===!1,Y=M.transform||b(ae);if(M.toRegex&&j===1)return w(n(L,ne),n(D,ne),!0,M);let z={negatives:[],positives:[]},te=re=>z[re<0?"negatives":"positives"].push(Math.abs(re)),se=[],he=0;for(;Q?B>=U:B<=U;)M.toRegex===!0&&j>1?te(B):se.push(d(Y(B,he),ne,ae)),B=Q?B-j:B+j,he++;return M.toRegex===!0?j>1?_(z,M):E(se,null,{wrap:!1,...M}):se},N=(L,D,j=1,M={})=>{if(!a(L)&&L.length>1||!a(D)&&D.length>1)return C(L,D,M);let B=M.transform||(ae=>String.fromCharCode(ae)),U=`${L}`.charCodeAt(0),Q=`${D}`.charCodeAt(0),W=U>Q,G=Math.min(U,Q),V=Math.max(U,Q);if(M.toRegex&&j===1)return w(G,V,!1,M);let K=[],ne=0;for(;W?U>=Q:U<=Q;)K.push(B(U,ne)),U=W?U-j:U+j,ne++;return M.toRegex===!0?E(K,null,{wrap:!1,options:M}):K},I=(L,D,j,M={})=>{if(D==null&&R(L))return[L];if(!R(L)||!R(D))return C(L,D,M);if(typeof j=="function")return I(L,D,1,{transform:j});if(g(j))return I(L,D,0,j);let B={...M};return B.capture===!0&&(B.wrap=!0),j=j||B.step||1,a(j)?a(L)&&a(D)?k(L,D,j,B):N(L,D,Math.max(Math.abs(j),1),B):j!=null&&!g(j)?O(j,B):I(L,D,1,j)};u.exports=I}}),require_compile=__commonJS({"node_modules/braces/lib/compile.js"(o,u){"use strict";var c=require_fill_range(),p=require_utils(),g=(b,R={})=>{let a=(y,l={})=>{let d=p.isInvalidBrace(l),n=y.invalid===!0&&R.escapeInvalid===!0,_=d===!0||n===!0,w=R.escapeInvalid===!0?"\\":"",E="";if(y.isOpen===!0||y.isClose===!0)return w+y.value;if(y.type==="open")return _?w+y.value:"(";if(y.type==="close")return _?w+y.value:")";if(y.type==="comma")return y.prev.type==="comma"?"":_?y.value:"|";if(y.value)return y.value;if(y.nodes&&y.ranges>0){let P=p.reduce(y.nodes),C=c(...P,{...R,wrap:!1,toRegex:!0});if(C.length!==0)return P.length>1&&C.length>1?`(${C})`:C}if(y.nodes)for(let P of y.nodes)E+=a(P,y);return E};return a(b)};u.exports=g}}),require_expand=__commonJS({"node_modules/braces/lib/expand.js"(o,u){"use strict";var c=require_fill_range(),p=requi