@turbo/codemod 1.10.16-canary.1 → 1.10.16

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.
@@ -3,7 +3,7 @@
3
3
  `.charCodeAt(),i=typeof n=="string"?"\r":"\r".charCodeAt();return n[n.length-1]===s&&(n=n.slice(0,n.length-1)),n[n.length-1]===i&&(n=n.slice(0,n.length-1)),n}}),lo=N((t,l)=>{"use strict";B();var n=Z("path"),s=Sn(),i=p=>{p={cwd:process.cwd(),path:process.env[s()],execPath:process.execPath,...p};let u,r=n.resolve(p.cwd),e=[];for(;u!==r;)e.push(n.join(r,"node_modules/.bin")),u=r,r=n.resolve(r,"..");let f=n.resolve(p.cwd,p.execPath,"..");return e.push(f),e.concat(p.path).join(n.delimiter)};l.exports=i,l.exports.default=i,l.exports.env=p=>{p={env:process.env,...p};let u={...p.env},r=s({env:u});return p.path=u[r],u[r]=l.exports(p),u}}),co=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;var l=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=l}),An=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;var l=function(){let p=i-s+1;return Array.from({length:p},n)};t.getRealtimeSignals=l;var n=function(p,u){return{name:`SIGRT${u+1}`,number:s+u,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},s=34,i=64;t.SIGRTMAX=i}),ho=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var l=Z("os"),n=co(),s=An(),i=function(){let u=(0,s.getRealtimeSignals)();return[...n.SIGNALS,...u].map(p)};t.getSignals=i;var p=function({name:u,number:r,description:e,action:f,forced:a=!1,standard:c}){let{signals:{[u]:o}}=l.constants,d=o!==void 0;return{name:u,number:d?o:r,description:e,supported:d,action:f,forced:a,standard:c}}}),fo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var l=Z("os"),n=ho(),s=An(),i=function(){return(0,n.getSignals)().reduce(p,{})},p=function(c,{name:o,number:d,description:h,supported:y,action:b,forced:_,standard:g}){return{...c,[o]:{name:o,number:d,description:h,supported:y,action:b,forced:_,standard:g}}},u=i();t.signalsByName=u;var r=function(){let c=(0,n.getSignals)(),o=s.SIGRTMAX+1,d=Array.from({length:o},(h,y)=>e(y,c));return Object.assign({},...d)},e=function(c,o){let d=f(c,o);if(d===void 0)return{};let{name:h,description:y,supported:b,action:_,forced:g,standard:D}=d;return{[c]:{name:h,number:c,description:y,supported:b,action:_,forced:g,standard:D}}},f=function(c,o){let d=o.find(({name:h})=>l.constants.signals[h]===c);return d!==void 0?d:o.find(h=>h.number===c)},a=r();t.signalsByNumber=a}),po=N((t,l)=>{"use strict";B();var{signalsByName:n}=fo(),s=({timedOut:p,timeout:u,errorCode:r,signal:e,signalDescription:f,exitCode:a,isCanceled:c})=>p?`timed out after ${u} milliseconds`:c?"was canceled":r!==void 0?`failed with ${r}`:e!==void 0?`was killed with ${e} (${f})`:a!==void 0?`failed with exit code ${a}`:"failed",i=({stdout:p,stderr:u,all:r,error:e,signal:f,exitCode:a,command:c,escapedCommand:o,timedOut:d,isCanceled:h,killed:y,parsed:{options:{timeout:b}}})=>{a=a===null?void 0:a,f=f===null?void 0:f;let _=f===void 0?void 0:n[f].description,g=e&&e.code,D=`Command ${s({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:_,exitCode:a,isCanceled:h})}: ${c}`,w=Object.prototype.toString.call(e)==="[object Error]",v=w?`${D}
4
4
  ${e.message}`:D,m=[v,u,p].filter(Boolean).join(`
5
5
  `);return w?(e.originalMessage=e.message,e.message=m):e=new Error(m),e.shortMessage=v,e.command=c,e.escapedCommand=o,e.exitCode=a,e.signal=f,e.signalDescription=_,e.stdout=p,e.stderr=u,r!==void 0&&(e.all=r),"bufferedData"in e&&delete e.bufferedData,e.failed=!0,e.timedOut=!!d,e.isCanceled=h,e.killed=y&&!d,e};l.exports=i}),mo=N((t,l)=>{"use strict";B();var n=["stdin","stdout","stderr"],s=p=>n.some(u=>p[u]!==void 0),i=p=>{if(!p)return;let{stdio:u}=p;if(u===void 0)return n.map(e=>p[e]);if(s(p))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(e=>`\`${e}\``).join(", ")}`);if(typeof u=="string")return u;if(!Array.isArray(u))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``);let r=Math.max(u.length,n.length);return Array.from({length:r},(e,f)=>u[f])};l.exports=i,l.exports.node=p=>{let u=i(p);return u==="ipc"?"ipc":u===void 0||typeof u=="string"?[u,u,u,"ipc"]:u.includes("ipc")?u:[...u,"ipc"]}}),yo=N((t,l)=>{"use strict";B();var n=Z("os"),s=Xe(),i=1e3*5,p=(y,b="SIGTERM",_={})=>{let g=y(b);return u(y,b,_,g),g},u=(y,b,_,g)=>{if(!r(b,_,g))return;let D=f(_),w=setTimeout(()=>{y("SIGKILL")},D);w.unref&&w.unref()},r=(y,{forceKillAfterTimeout:b},_)=>e(y)&&b!==!1&&_,e=y=>y===n.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},a=(y,b)=>{y.kill()&&(b.isCanceled=!0)},c=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},o=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let D,w=new Promise((m,E)=>{D=setTimeout(()=>{c(y,_,E)},b)}),v=g.finally(()=>{clearTimeout(D)});return Promise.race([w,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},h=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let D=s(()=>{y.kill()});return g.finally(()=>{D()})};l.exports={spawnedKill:p,spawnedCancel:a,setupTimeout:o,validateTimeout:d,setExitHandler:h}}),go=N((t,l)=>{"use strict";B();var n=s=>s!==null&&typeof s=="object"&&typeof s.pipe=="function";n.writable=s=>n(s)&&s.writable!==!1&&typeof s._write=="function"&&typeof s._writableState=="object",n.readable=s=>n(s)&&s.readable!==!1&&typeof s._read=="function"&&typeof s._readableState=="object",n.duplex=s=>n.writable(s)&&n.readable(s),n.transform=s=>n.duplex(s)&&typeof s._transform=="function",l.exports=n}),bo=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=s=>{s={...s};let{array:i}=s,{encoding:p}=s,u=p==="buffer",r=!1;i?r=!(p||u):p=p||"utf8",u&&(p=null);let e=new n({objectMode:r});p&&e.setEncoding(p);let f=0,a=[];return e.on("data",c=>{a.push(c),r?f=a.length:f+=c.length}),e.getBufferedValue=()=>i?a:u?Buffer.concat(a,f):a.join(""),e.getBufferedLength=()=>f,e}}),vo=N((t,l)=>{"use strict";B();var{constants:n}=Z("buffer"),s=Z("stream"),{promisify:i}=Z("util"),p=bo(),u=i(s.pipeline),r=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function e(f,a){if(!f)throw new Error("Expected a stream");a={maxBuffer:1/0,...a};let{maxBuffer:c}=a,o=p(a);return await new Promise((d,h)=>{let y=b=>{b&&o.getBufferedLength()<=n.MAX_LENGTH&&(b.bufferedData=o.getBufferedValue()),h(b)};(async()=>{try{await u(f,o),d()}catch(b){y(b)}})(),o.on("data",()=>{o.getBufferedLength()>c&&y(new r)})}),o.getBufferedValue()}l.exports=e,l.exports.buffer=(f,a)=>e(f,{...a,encoding:"buffer"}),l.exports.array=(f,a)=>e(f,{...a,array:!0}),l.exports.MaxBufferError=r}),_o=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=function(){var s=[],i=new n({objectMode:!0});return i.setMaxListeners(0),i.add=p,i.isEmpty=u,i.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(p),i;function p(e){return Array.isArray(e)?(e.forEach(p),this):(s.push(e),e.once("end",r.bind(null,e)),e.once("error",i.emit.bind(i,"error")),e.pipe(i,{end:!1}),this)}function u(){return s.length==0}function r(e){s=s.filter(function(f){return f!==e}),!s.length&&i.readable&&i.end()}}}),Eo=N((t,l)=>{"use strict";B();var n=go(),s=vo(),i=_o(),p=(c,o)=>{o===void 0||c.stdin===void 0||(n(o)?o.pipe(c.stdin):c.stdin.end(o))},u=(c,{all:o})=>{if(!o||!c.stdout&&!c.stderr)return;let d=i();return c.stdout&&d.add(c.stdout),c.stderr&&d.add(c.stderr),d},r=async(c,o)=>{if(c){c.destroy();try{return await o}catch(d){return d.bufferedData}}},e=(c,{encoding:o,buffer:d,maxBuffer:h})=>{if(!(!c||!d))return o?s(c,{encoding:o,maxBuffer:h}):s.buffer(c,{maxBuffer:h})},f=async({stdout:c,stderr:o,all:d},{encoding:h,buffer:y,maxBuffer:b},_)=>{let g=e(c,{encoding:h,buffer:y,maxBuffer:b}),D=e(o,{encoding:h,buffer:y,maxBuffer:b}),w=e(d,{encoding:h,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,D,w])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},r(c,g),r(o,D),r(d,w)])}},a=({input:c})=>{if(n(c))throw new TypeError("The `input` option cannot be a stream in sync mode")};l.exports={handleInput:p,makeAllStream:u,getSpawnedResult:f,validateInputSync:a}}),wo=N((t,l)=>{"use strict";B();var n=(async()=>{})().constructor.prototype,s=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(n,u)]),i=(u,r)=>{for(let[e,f]of s){let a=typeof r=="function"?(...c)=>Reflect.apply(f.value,r(),c):f.value.bind(r);Reflect.defineProperty(u,e,{...f,value:a})}return u},p=u=>new Promise((r,e)=>{u.on("exit",(f,a)=>{r({exitCode:f,signal:a})}),u.on("error",f=>{e(f)}),u.stdin&&u.stdin.on("error",f=>{e(f)})});l.exports={mergePromise:i,getSpawnedPromise:p}}),Do=N((t,l)=>{"use strict";B();var n=(a,c=[])=>Array.isArray(c)?[a,...c]:[a],s=/^[\w.-]+$/,i=/"/g,p=a=>typeof a!="string"||s.test(a)?a:`"${a.replace(i,'\\"')}"`,u=(a,c)=>n(a,c).join(" "),r=(a,c)=>n(a,c).map(o=>p(o)).join(" "),e=/ +/g,f=a=>{let c=[];for(let o of a.trim().split(e)){let d=c[c.length-1];d&&d.endsWith("\\")?c[c.length-1]=`${d.slice(0,-1)} ${o}`:c.push(o)}return c};l.exports={joinCommand:u,getEscapedCommand:r,parseCommand:f}}),So=N((t,l)=>{"use strict";B();var n=Z("path"),s=Z("child_process"),i=uo(),p=ao(),u=lo(),r=Ze(),e=po(),f=mo(),{spawnedKill:a,spawnedCancel:c,setupTimeout:o,validateTimeout:d,setExitHandler:h}=yo(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=Eo(),{mergePromise:D,getSpawnedPromise:w}=wo(),{joinCommand:v,parseCommand:m,getEscapedCommand:E}=Do(),S=1e3*1e3*100,A=({env:F,extendEnv:R,preferLocal:I,localDir:$,execPath:O})=>{let q=R?{...process.env,...F}:F;return I?u.env({env:q,cwd:$,execPath:O}):q},x=(F,R,I={})=>{let $=i._parse(F,R,I);return F=$.command,R=$.args,I=$.options,I={maxBuffer:S,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:I.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...I},I.env=A(I),I.stdio=f(I),process.platform==="win32"&&n.basename(F,".exe")==="cmd"&&R.unshift("/q"),{file:F,args:R,options:I,parsed:$}},L=(F,R,I)=>typeof R!="string"&&!Buffer.isBuffer(R)?I===void 0?void 0:"":F.stripFinalNewline?p(R):R,T=(F,R,I)=>{let $=x(F,R,I),O=v(F,R),q=E(F,R);d($.options);let W;try{W=s.spawn($.file,$.args,$.options)}catch(G){let tt=new s.ChildProcess,M=Promise.reject(e({error:G,stdout:"",stderr:"",all:"",command:O,escapedCommand:q,parsed:$,timedOut:!1,isCanceled:!1,killed:!1}));return D(tt,M)}let Q=w(W),P=o(W,$.options,Q),j=h(W,$.options,P),k={isCanceled:!1};W.kill=a.bind(null,W.kill.bind(W)),W.cancel=c.bind(null,W,k);let J=r(async()=>{let[{error:G,exitCode:tt,signal:M,timedOut:K},et,ot,ct]=await b(W,$.options,j),gt=L($.options,et),mt=L($.options,ot),H=L($.options,ct);if(G||tt!==0||M!==null){let V=e({error:G,exitCode:tt,signal:M,stdout:gt,stderr:mt,all:H,command:O,escapedCommand:q,parsed:$,timedOut:K,isCanceled:k.isCanceled,killed:W.killed});if(!$.options.reject)return V;throw V}return{command:O,escapedCommand:q,exitCode:0,stdout:gt,stderr:mt,all:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(W,$.options.input),W.all=_(W,$.options),D(W,J)};l.exports=T,l.exports.sync=(F,R,I)=>{let $=x(F,R,I),O=v(F,R),q=E(F,R);g($.options);let W;try{W=s.spawnSync($.file,$.args,$.options)}catch(j){throw e({error:j,stdout:"",stderr:"",all:"",command:O,escapedCommand:q,parsed:$,timedOut:!1,isCanceled:!1,killed:!1})}let Q=L($.options,W.stdout,W.error),P=L($.options,W.stderr,W.error);if(W.error||W.status!==0||W.signal!==null){let j=e({stdout:Q,stderr:P,error:W.error,signal:W.signal,exitCode:W.status,command:O,escapedCommand:q,parsed:$,timedOut:W.error&&W.error.code==="ETIMEDOUT",isCanceled:!1,killed:W.signal!==null});if(!$.options.reject)return j;throw j}return{command:O,escapedCommand:q,exitCode:0,stdout:Q,stderr:P,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},l.exports.command=(F,R)=>{let[I,...$]=m(F);return T(I,$,R)},l.exports.commandSync=(F,R)=>{let[I,...$]=m(F);return T.sync(I,$,R)},l.exports.node=(F,R,I={})=>{R&&!Array.isArray(R)&&typeof R=="object"&&(I=R,R=[]);let $=f.node(I),O=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:q=process.execPath,nodeOptions:W=O}=I;return T(q,[...W,F,...Array.isArray(R)?R:[]],{...I,stdin:void 0,stdout:void 0,stderr:void 0,stdio:$,shell:!1})}});B();var Mp=Rt(So());B();var Ao=N((t,l)=>{"use strict";B();var n=/[|\\{}()[\]^$+*?.]/g;l.exports=function(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(n,"\\$&")}}),Co=N((t,l)=>{"use strict";B(),l.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]}}),Cn=N((t,l)=>{B();var n=Co(),s={};for(i in n)n.hasOwnProperty(i)&&(s[n[i]]=i);var i,p=l.exports={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"]}};for(e in p)if(p.hasOwnProperty(e)){if(!("channels"in p[e]))throw new Error("missing channels property: "+e);if(!("labels"in p[e]))throw new Error("missing channel labels property: "+e);if(p[e].labels.length!==p[e].channels)throw new Error("channel and label counts mismatch: "+e);u=p[e].channels,r=p[e].labels,delete p[e].channels,delete p[e].labels,Object.defineProperty(p[e],"channels",{value:u}),Object.defineProperty(p[e],"labels",{value:r})}var u,r,e;p.rgb.hsl=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h=Math.min(c,o,d),y=Math.max(c,o,d),b=y-h,_,g,D;return y===h?_=0:c===y?_=(o-d)/b:o===y?_=2+(d-c)/b:d===y&&(_=4+(c-o)/b),_=Math.min(_*60,360),_<0&&(_+=360),D=(h+y)/2,y===h?g=0:D<=.5?g=b/(y+h):g=b/(2-y-h),[_,g*100,D*100]},p.rgb.hsv=function(a){var c,o,d,h,y,b=a[0]/255,_=a[1]/255,g=a[2]/255,D=Math.max(b,_,g),w=D-Math.min(b,_,g),v=function(m){return(D-m)/6/w+1/2};return w===0?h=y=0:(y=w/D,c=v(b),o=v(_),d=v(g),b===D?h=d-o:_===D?h=1/3+c-d:g===D&&(h=2/3+o-c),h<0?h+=1:h>1&&(h-=1)),[h*360,y*100,D*100]},p.rgb.hwb=function(a){var c=a[0],o=a[1],d=a[2],h=p.rgb.hsl(a)[0],y=1/255*Math.min(c,Math.min(o,d));return d=1-1/255*Math.max(c,Math.max(o,d)),[h,y*100,d*100]},p.rgb.cmyk=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h,y,b,_;return _=Math.min(1-c,1-o,1-d),h=(1-c-_)/(1-_)||0,y=(1-o-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[h*100,y*100,b*100,_*100]};function f(a,c){return Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)+Math.pow(a[2]-c[2],2)}p.rgb.keyword=function(a){var c=s[a];if(c)return c;var o=1/0,d;for(var h in n)if(n.hasOwnProperty(h)){var y=n[h],b=f(a,y);b<o&&(o=b,d=h)}return d},p.keyword.rgb=function(a){return n[a]},p.rgb.xyz=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255;c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var h=c*.4124+o*.3576+d*.1805,y=c*.2126+o*.7152+d*.0722,b=c*.0193+o*.1192+d*.9505;return[h*100,y*100,b*100]},p.rgb.lab=function(a){var c=p.rgb.xyz(a),o=c[0],d=c[1],h=c[2],y,b,_;return o/=95.047,d/=100,h/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,y=116*d-16,b=500*(o-d),_=200*(d-h),[y,b,_]},p.hsl.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100,h,y,b,_,g;if(o===0)return g=d*255,[g,g,g];d<.5?y=d*(1+o):y=d+o-d*o,h=2*d-y,_=[0,0,0];for(var D=0;D<3;D++)b=c+1/3*-(D-1),b<0&&b++,b>1&&b--,6*b<1?g=h+(y-h)*6*b:2*b<1?g=y:3*b<2?g=h+(y-h)*(2/3-b)*6:g=h,_[D]=g*255;return _},p.hsl.hsv=function(a){var c=a[0],o=a[1]/100,d=a[2]/100,h=o,y=Math.max(d,.01),b,_;return d*=2,o*=d<=1?d:2-d,h*=y<=1?y:2-y,_=(d+o)/2,b=d===0?2*h/(y+h):2*o/(d+o),[c,b*100,_*100]},p.hsv.rgb=function(a){var c=a[0]/60,o=a[1]/100,d=a[2]/100,h=Math.floor(c)%6,y=c-Math.floor(c),b=255*d*(1-o),_=255*d*(1-o*y),g=255*d*(1-o*(1-y));switch(d*=255,h){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},p.hsv.hsl=function(a){var c=a[0],o=a[1]/100,d=a[2]/100,h=Math.max(d,.01),y,b,_;return _=(2-o)*d,y=(2-o)*h,b=o*h,b/=y<=1?y:2-y,b=b||0,_/=2,[c,b*100,_*100]},p.hwb.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100,h=o+d,y,b,_,g;h>1&&(o/=h,d/=h),y=Math.floor(6*c),b=1-d,_=6*c-y,y&1&&(_=1-_),g=o+_*(b-o);var D,w,v;switch(y){default:case 6:case 0:D=b,w=g,v=o;break;case 1:D=g,w=b,v=o;break;case 2:D=o,w=b,v=g;break;case 3:D=o,w=g,v=b;break;case 4:D=g,w=o,v=b;break;case 5:D=b,w=o,v=g;break}return[D*255,w*255,v*255]},p.cmyk.rgb=function(a){var c=a[0]/100,o=a[1]/100,d=a[2]/100,h=a[3]/100,y,b,_;return y=1-Math.min(1,c*(1-h)+h),b=1-Math.min(1,o*(1-h)+h),_=1-Math.min(1,d*(1-h)+h),[y*255,b*255,_*255]},p.xyz.rgb=function(a){var c=a[0]/100,o=a[1]/100,d=a[2]/100,h,y,b;return h=c*3.2406+o*-1.5372+d*-.4986,y=c*-.9689+o*1.8758+d*.0415,b=c*.0557+o*-.204+d*1.057,h=h>.0031308?1.055*Math.pow(h,1/2.4)-.055:h*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,h=Math.min(Math.max(0,h),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[h*255,y*255,b*255]},p.xyz.lab=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return c/=95.047,o/=100,d/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=116*o-16,y=500*(c-o),b=200*(o-d),[h,y,b]},p.lab.xyz=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;y=(c+16)/116,h=o/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(h,3),D=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,h=g>.008856?g:(h-16/116)/7.787,b=D>.008856?D:(b-16/116)/7.787,h*=95.047,y*=100,b*=108.883,[h,y,b]},p.lab.lch=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return h=Math.atan2(d,o),y=h*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(o*o+d*d),[c,b,y]},p.lch.lab=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return b=d/360*2*Math.PI,h=o*Math.cos(b),y=o*Math.sin(b),[c,h,y]},p.rgb.ansi16=function(a){var c=a[0],o=a[1],d=a[2],h=1 in arguments?arguments[1]:p.rgb.hsv(a)[2];if(h=Math.round(h/50),h===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(o/255)<<1|Math.round(c/255));return h===2&&(y+=60),y},p.hsv.ansi16=function(a){return p.rgb.ansi16(p.hsv.rgb(a),a[2])},p.rgb.ansi256=function(a){var c=a[0],o=a[1],d=a[2];if(c===o&&o===d)return c<8?16:c>248?231:Math.round((c-8)/247*24)+232;var h=16+36*Math.round(c/255*5)+6*Math.round(o/255*5)+Math.round(d/255*5);return h},p.ansi16.rgb=function(a){var c=a%10;if(c===0||c===7)return a>50&&(c+=3.5),c=c/10.5*255,[c,c,c];var o=(~~(a>50)+1)*.5,d=(c&1)*o*255,h=(c>>1&1)*o*255,y=(c>>2&1)*o*255;return[d,h,y]},p.ansi256.rgb=function(a){if(a>=232){var c=(a-232)*10+8;return[c,c,c]}a-=16;var o,d=Math.floor(a/36)/5*255,h=Math.floor((o=a%36)/6)/5*255,y=o%6/5*255;return[d,h,y]},p.rgb.hex=function(a){var c=((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255),o=c.toString(16).toUpperCase();return"000000".substring(o.length)+o},p.hex.rgb=function(a){var c=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var o=c[0];c[0].length===3&&(o=o.split("").map(function(_){return _+_}).join(""));var d=parseInt(o,16),h=d>>16&255,y=d>>8&255,b=d&255;return[h,y,b]},p.rgb.hcg=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h=Math.max(Math.max(c,o),d),y=Math.min(Math.min(c,o),d),b=h-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:h===c?g=(o-d)/b%6:h===o?g=2+(d-c)/b:g=4+(c-o)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},p.hsl.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=1,h=0;return o<.5?d=2*c*o:d=2*c*(1-o),d<1&&(h=(o-.5*d)/(1-d)),[a[0],d*100,h*100]},p.hsv.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=c*o,h=0;return d<1&&(h=(o-d)/(1-d)),[a[0],d*100,h*100]},p.hcg.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100;if(o===0)return[d*255,d*255,d*255];var h=[0,0,0],y=c%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:h[0]=1,h[1]=b,h[2]=0;break;case 1:h[0]=_,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=b;break;case 3:h[0]=0,h[1]=_,h[2]=1;break;case 4:h[0]=b,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=_}return g=(1-o)*d,[(o*h[0]+g)*255,(o*h[1]+g)*255,(o*h[2]+g)*255]},p.hcg.hsv=function(a){var c=a[1]/100,o=a[2]/100,d=c+o*(1-c),h=0;return d>0&&(h=c/d),[a[0],h*100,d*100]},p.hcg.hsl=function(a){var c=a[1]/100,o=a[2]/100,d=o*(1-c)+.5*c,h=0;return d>0&&d<.5?h=c/(2*d):d>=.5&&d<1&&(h=c/(2*(1-d))),[a[0],h*100,d*100]},p.hcg.hwb=function(a){var c=a[1]/100,o=a[2]/100,d=c+o*(1-c);return[a[0],(d-c)*100,(1-d)*100]},p.hwb.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=1-o,h=d-c,y=0;return h<1&&(y=(d-h)/(1-h)),[a[0],h*100,y*100]},p.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},p.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},p.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},p.gray.hsl=p.gray.hsv=function(a){return[0,0,a[0]]},p.gray.hwb=function(a){return[0,100,a[0]]},p.gray.cmyk=function(a){return[0,0,0,a[0]]},p.gray.lab=function(a){return[a[0],0,0]},p.gray.hex=function(a){var c=Math.round(a[0]/100*255)&255,o=(c<<16)+(c<<8)+c,d=o.toString(16).toUpperCase();return"000000".substring(d.length)+d},p.rgb.gray=function(a){var c=(a[0]+a[1]+a[2])/3;return[c/255*100]}}),xo=N((t,l)=>{B();var n=Cn();function s(){for(var r={},e=Object.keys(n),f=e.length,a=0;a<f;a++)r[e[a]]={distance:-1,parent:null};return r}function i(r){var e=s(),f=[r];for(e[r].distance=0;f.length;)for(var a=f.pop(),c=Object.keys(n[a]),o=c.length,d=0;d<o;d++){var h=c[d],y=e[h];y.distance===-1&&(y.distance=e[a].distance+1,y.parent=a,f.unshift(h))}return e}function p(r,e){return function(f){return e(r(f))}}function u(r,e){for(var f=[e[r].parent,r],a=n[e[r].parent][r],c=e[r].parent;e[c].parent;)f.unshift(e[c].parent),a=p(n[e[c].parent][c],a),c=e[c].parent;return a.conversion=f,a}l.exports=function(r){for(var e=i(r),f={},a=Object.keys(e),c=a.length,o=0;o<c;o++){var d=a[o],h=e[d];h.parent!==null&&(f[d]=u(d,e))}return f}}),Fo=N((t,l)=>{B();var n=Cn(),s=xo(),i={},p=Object.keys(n);function u(e){var f=function(a){return a==null?a:(arguments.length>1&&(a=Array.prototype.slice.call(arguments)),e(a))};return"conversion"in e&&(f.conversion=e.conversion),f}function r(e){var f=function(a){if(a==null)return a;arguments.length>1&&(a=Array.prototype.slice.call(arguments));var c=e(a);if(typeof c=="object")for(var o=c.length,d=0;d<o;d++)c[d]=Math.round(c[d]);return c};return"conversion"in e&&(f.conversion=e.conversion),f}p.forEach(function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});var f=s(e),a=Object.keys(f);a.forEach(function(c){var o=f[c];i[e][c]=r(o),i[e][c].raw=u(o)})}),l.exports=i}),ko=N((t,l)=>{"use strict";B();var n=Fo(),s=(r,e)=>function(){return`\x1B[${r.apply(n,arguments)+e}m`},i=(r,e)=>function(){let f=r.apply(n,arguments);return`\x1B[${38+e};5;${f}m`},p=(r,e)=>function(){let f=r.apply(n,arguments);return`\x1B[${38+e};2;${f[0]};${f[1]};${f[2]}m`};function u(){let r=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],gray:[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.grey=e.color.gray;for(let c of Object.keys(e)){let o=e[c];for(let d of Object.keys(o)){let h=o[d];e[d]={open:`\x1B[${h[0]}m`,close:`\x1B[${h[1]}m`},o[d]=e[d],r.set(h[0],h[1])}Object.defineProperty(e,c,{value:o,enumerable:!1}),Object.defineProperty(e,"codes",{value:r,enumerable:!1})}let f=c=>c,a=(c,o,d)=>[c,o,d];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:s(f,0)},e.color.ansi256={ansi256:i(f,0)},e.color.ansi16m={rgb:p(a,0)},e.bgColor.ansi={ansi:s(f,10)},e.bgColor.ansi256={ansi256:i(f,10)},e.bgColor.ansi16m={rgb:p(a,10)};for(let c of Object.keys(n)){if(typeof n[c]!="object")continue;let o=n[c];c==="ansi16"&&(c="ansi"),"ansi16"in o&&(e.color.ansi[c]=s(o.ansi16,0),e.bgColor.ansi[c]=s(o.ansi16,10)),"ansi256"in o&&(e.color.ansi256[c]=i(o.ansi256,0),e.bgColor.ansi256[c]=i(o.ansi256,10)),"rgb"in o&&(e.color.ansi16m[c]=p(o.rgb,0),e.bgColor.ansi16m[c]=p(o.rgb,10))}return e}Object.defineProperty(l,"exports",{enumerable:!0,get:u})}),Ro=N((t,l)=>{"use strict";B(),l.exports=(n,s)=>{s=s||process.argv;let i=n.startsWith("-")?"":n.length===1?"-":"--",p=s.indexOf(i+n),u=s.indexOf("--");return p!==-1&&(u===-1?!0:p<u)}}),Oo=N((t,l)=>{"use strict";B();var n=Z("os"),s=Ro(),i=process.env,p;s("no-color")||s("no-colors")||s("color=false")?p=!1:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(p=!0),"FORCE_COLOR"in i&&(p=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function u(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function r(f){if(p===!1)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(f&&!f.isTTY&&p!==!0)return 0;let a=p?1:0;if(process.platform==="win32"){let c=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(c=>c in i)||i.CI_NAME==="codeship"?1:a;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let c=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,a)}function e(f){let a=r(f);return u(a)}l.exports={supportsColor:e,stdout:e(process.stdout),stderr:e(process.stderr)}}),To=N((t,l)=>{"use strict";B();var n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,s=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,u=new Map([["n",`
6
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){return c[0]==="u"&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),y;for(let b of h)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(p,(_,g,D)=>g?r(g):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`);return d}function f(c){s.lastIndex=0;let o=[],d;for(;(d=s.exec(c))!==null;){let h=d[1];if(d[2]){let y=e(h,d[2]);o.push([h].concat(y))}else o.push([h])}return o}function a(c,o){let d={};for(let y of o)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let h=c;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in h))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?h=h[y].apply(h,d[y]):h=h[y]}return h}l.exports=(c,o)=>{let d=[],h=[],y=[];if(o.replace(n,(b,_,g,D,w,v)=>{if(_)y.push(r(_));else if(D){let m=y.join("");y=[],h.push(d.length===0?m:a(c,d)(m)),d.push({inverse:g,styles:f(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(a(c,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),h.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return h.join("")}}),pe=N((t,l)=>{"use strict";B();var n=Ao(),s=ko(),i=Oo().stdout,p=To(),u=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],e=new Set(["gray"]),f=Object.create(null);function a(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function c(b){if(!this||!(this instanceof c)||this.template){let _={};return a(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,c.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=c,_.template}a(this,b)}u&&(s.blue.open="\x1B[94m");for(let b of Object.keys(s))s[b].closeRe=new RegExp(n(s[b].close),"g"),f[b]={get(){let _=s[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(n(s.color.close),"g");for(let b of Object.keys(s.color.ansi))e.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:s.color[r[_]][b].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(let b of Object.keys(s.bgColor.ansi)){if(e.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let D={open:s.bgColor[r[g]][b].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var o=Object.defineProperties(()=>{},f);function d(b,_,g){let D=function(){return h.apply(D,arguments)};D._styles=b,D._empty=_;let w=this;return Object.defineProperty(D,"level",{enumerable:!0,get(){return w.level},set(v){w.level=v}}),Object.defineProperty(D,"enabled",{enumerable:!0,get(){return w.enabled},set(v){w.enabled=v}}),D.hasGrey=this.hasGrey||g==="gray"||g==="grey",D.__proto__=o,D}function h(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let w=1;w<_;w++)g+=" "+b[w];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let D=s.dim.open;u&&this.hasGrey&&(s.dim.open="");for(let w of this._styles.slice().reverse())g=w.open+g.replace(w.closeRe,w.open)+w.close,g=g.replace(/\r?\n/g,`${w.close}$&${w.open}`);return s.dim.open=D,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),D=[_.raw[0]];for(let w=1;w<_.length;w++)D.push(String(g[w-1]).replace(/[{}\\]/g,"\\$&")),D.push(String(_.raw[w]));return p(b,D.join(""))}Object.defineProperties(c.prototype,f),l.exports=c(),l.exports.supportsColor=i,l.exports.default=l.exports});var Bo=N((t,l)=>{B();var n=Z("constants"),s=process.cwd,i=null,p=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=s.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(e){i=null,u.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;l.exports=r;function r(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(e),e.lutimes||a(e),e.chown=d(e.chown),e.fchown=d(e.fchown),e.lchown=d(e.lchown),e.chmod=c(e.chmod),e.fchmod=c(e.fchmod),e.lchmod=c(e.lchmod),e.chownSync=h(e.chownSync),e.fchownSync=h(e.fchownSync),e.lchownSync=h(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=y(e.stat),e.fstat=y(e.fstat),e.lstat=y(e.lstat),e.statSync=b(e.statSync),e.fstatSync=b(e.fstatSync),e.lstatSync=b(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(g,D,w){w&&process.nextTick(w)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(g,D,w,v){v&&process.nextTick(v)},e.lchownSync=function(){}),p==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(g){function D(w,v,m){var E=Date.now(),S=0;g(w,v,function A(x){if(x&&(x.code==="EACCES"||x.code==="EPERM")&&Date.now()-E<6e4){setTimeout(function(){e.stat(v,function(L,T){L&&L.code==="ENOENT"?g(w,v,A):m(x)})},S),S<100&&(S+=10);return}m&&m(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.rename)),e.read=typeof e.read!="function"?e.read:function(g){function D(w,v,m,E,S,A){var x;if(A&&typeof A=="function"){var L=0;x=function(T,F,R){if(T&&T.code==="EAGAIN"&&L<10)return L++,g.call(e,w,v,m,E,S,x);A.apply(this,arguments)}}return g.call(e,w,v,m,E,S,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(g){return function(D,w,v,m,E){for(var S=0;;)try{return g.call(e,D,w,v,m,E)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(e.readSync);function f(g){g.lchmod=function(D,w,v){g.open(D,n.O_WRONLY|n.O_SYMLINK,w,function(m,E){if(m){v&&v(m);return}g.fchmod(E,w,function(S){g.close(E,function(A){v&&v(S||A)})})})},g.lchmodSync=function(D,w){var v=g.openSync(D,n.O_WRONLY|n.O_SYMLINK,w),m=!0,E;try{E=g.fchmodSync(v,w),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return E}}function a(g){n.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(D,w,v,m){g.open(D,n.O_SYMLINK,function(E,S){if(E){m&&m(E);return}g.futimes(S,w,v,function(A){g.close(S,function(x){m&&m(A||x)})})})},g.lutimesSync=function(D,w,v){var m=g.openSync(D,n.O_SYMLINK),E,S=!0;try{E=g.futimesSync(m,w,v),S=!1}finally{if(S)try{g.closeSync(m)}catch{}else g.closeSync(m)}return E}):g.futimes&&(g.lutimes=function(D,w,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function c(g){return g&&function(D,w,v){return g.call(e,D,w,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function o(g){return g&&function(D,w){try{return g.call(e,D,w)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(D,w,v,m){return g.call(e,D,w,v,function(E){_(E)&&(E=null),m&&m.apply(this,arguments)})}}function h(g){return g&&function(D,w,v){try{return g.call(e,D,w,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(D,w,v){typeof w=="function"&&(v=w,w=null);function m(E,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),v&&v.apply(this,arguments)}return w?g.call(e,D,w,m):g.call(e,D,m)}}function b(g){return g&&function(D,w){var v=w?g.call(e,D,w):g.call(e,D);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),Po=N((t,l)=>{B();var n=Z("stream").Stream;l.exports=s;function s(i){return{ReadStream:p,WriteStream:u};function p(r,e){if(!(this instanceof p))return new p(r,e);n.call(this);var f=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,e=e||{};for(var a=Object.keys(e),c=0,o=a.length;c<o;c++){var d=a[c];this[d]=e[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(h,y){if(h){f.emit("error",h),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function u(r,e){if(!(this instanceof u))return new u(r,e);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,e=e||{};for(var f=Object.keys(e),a=0,c=f.length;a<c;a++){var o=f[a];this[o]=e[o]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Lo=N((t,l)=>{"use strict";B(),l.exports=s;var n=Object.getPrototypeOf||function(i){return i.__proto__};function s(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var p={__proto__:n(i)};else var p=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(p,u,Object.getOwnPropertyDescriptor(i,u))}),p}}),Ct=N((t,l)=>{B();var n=Z("fs"),s=Bo(),i=Po(),p=Lo(),u=Z("util"),r,e;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),e=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",e="___graceful-fs.previous");function f(){}function a(g,D){Object.defineProperty(g,r,{get:function(){return D}})}var c=f;u.debuglog?c=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var g=u.format.apply(u,arguments);g="GFS4: "+g.split(/\n/).join(`
6
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){return c[0]==="u"&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),y;for(let b of h)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(p,(_,g,D)=>g?r(g):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`);return d}function f(c){s.lastIndex=0;let o=[],d;for(;(d=s.exec(c))!==null;){let h=d[1];if(d[2]){let y=e(h,d[2]);o.push([h].concat(y))}else o.push([h])}return o}function a(c,o){let d={};for(let y of o)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let h=c;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in h))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?h=h[y].apply(h,d[y]):h=h[y]}return h}l.exports=(c,o)=>{let d=[],h=[],y=[];if(o.replace(n,(b,_,g,D,w,v)=>{if(_)y.push(r(_));else if(D){let m=y.join("");y=[],h.push(d.length===0?m:a(c,d)(m)),d.push({inverse:g,styles:f(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(a(c,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),h.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return h.join("")}}),pe=N((t,l)=>{"use strict";B();var n=Ao(),s=ko(),i=Oo().stdout,p=To(),u=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],e=new Set(["gray"]),f=Object.create(null);function a(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function c(b){if(!this||!(this instanceof c)||this.template){let _={};return a(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,c.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=c,_.template}a(this,b)}u&&(s.blue.open="\x1B[94m");for(let b of Object.keys(s))s[b].closeRe=new RegExp(n(s[b].close),"g"),f[b]={get(){let _=s[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(n(s.color.close),"g");for(let b of Object.keys(s.color.ansi))e.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:s.color[r[_]][b].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(let b of Object.keys(s.bgColor.ansi)){if(e.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let D={open:s.bgColor[r[g]][b].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var o=Object.defineProperties(()=>{},f);function d(b,_,g){let D=function(){return h.apply(D,arguments)};D._styles=b,D._empty=_;let w=this;return Object.defineProperty(D,"level",{enumerable:!0,get(){return w.level},set(v){w.level=v}}),Object.defineProperty(D,"enabled",{enumerable:!0,get(){return w.enabled},set(v){w.enabled=v}}),D.hasGrey=this.hasGrey||g==="gray"||g==="grey",D.__proto__=o,D}function h(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let w=1;w<_;w++)g+=" "+b[w];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let D=s.dim.open;u&&this.hasGrey&&(s.dim.open="");for(let w of this._styles.slice().reverse())g=w.open+g.replace(w.closeRe,w.open)+w.close,g=g.replace(/\r?\n/g,`${w.close}$&${w.open}`);return s.dim.open=D,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),D=[_.raw[0]];for(let w=1;w<_.length;w++)D.push(String(g[w-1]).replace(/[{}\\]/g,"\\$&")),D.push(String(_.raw[w]));return p(b,D.join(""))}Object.defineProperties(c.prototype,f),l.exports=c(),l.exports.supportsColor=i,l.exports.default=l.exports});var Bo=N((t,l)=>{B();var n=Z("constants"),s=process.cwd,i=null,p=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=s.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(e){i=null,u.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;l.exports=r;function r(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(e),e.lutimes||a(e),e.chown=d(e.chown),e.fchown=d(e.fchown),e.lchown=d(e.lchown),e.chmod=c(e.chmod),e.fchmod=c(e.fchmod),e.lchmod=c(e.lchmod),e.chownSync=h(e.chownSync),e.fchownSync=h(e.fchownSync),e.lchownSync=h(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=y(e.stat),e.fstat=y(e.fstat),e.lstat=y(e.lstat),e.statSync=b(e.statSync),e.fstatSync=b(e.fstatSync),e.lstatSync=b(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(g,D,w){w&&process.nextTick(w)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(g,D,w,v){v&&process.nextTick(v)},e.lchownSync=function(){}),p==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(g){function D(w,v,m){var E=Date.now(),S=0;g(w,v,function A(x){if(x&&(x.code==="EACCES"||x.code==="EPERM"||x.code==="EBUSY")&&Date.now()-E<6e4){setTimeout(function(){e.stat(v,function(L,T){L&&L.code==="ENOENT"?g(w,v,A):m(x)})},S),S<100&&(S+=10);return}m&&m(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.rename)),e.read=typeof e.read!="function"?e.read:function(g){function D(w,v,m,E,S,A){var x;if(A&&typeof A=="function"){var L=0;x=function(T,F,R){if(T&&T.code==="EAGAIN"&&L<10)return L++,g.call(e,w,v,m,E,S,x);A.apply(this,arguments)}}return g.call(e,w,v,m,E,S,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(g){return function(D,w,v,m,E){for(var S=0;;)try{return g.call(e,D,w,v,m,E)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(e.readSync);function f(g){g.lchmod=function(D,w,v){g.open(D,n.O_WRONLY|n.O_SYMLINK,w,function(m,E){if(m){v&&v(m);return}g.fchmod(E,w,function(S){g.close(E,function(A){v&&v(S||A)})})})},g.lchmodSync=function(D,w){var v=g.openSync(D,n.O_WRONLY|n.O_SYMLINK,w),m=!0,E;try{E=g.fchmodSync(v,w),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return E}}function a(g){n.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(D,w,v,m){g.open(D,n.O_SYMLINK,function(E,S){if(E){m&&m(E);return}g.futimes(S,w,v,function(A){g.close(S,function(x){m&&m(A||x)})})})},g.lutimesSync=function(D,w,v){var m=g.openSync(D,n.O_SYMLINK),E,S=!0;try{E=g.futimesSync(m,w,v),S=!1}finally{if(S)try{g.closeSync(m)}catch{}else g.closeSync(m)}return E}):g.futimes&&(g.lutimes=function(D,w,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function c(g){return g&&function(D,w,v){return g.call(e,D,w,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function o(g){return g&&function(D,w){try{return g.call(e,D,w)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(D,w,v,m){return g.call(e,D,w,v,function(E){_(E)&&(E=null),m&&m.apply(this,arguments)})}}function h(g){return g&&function(D,w,v){try{return g.call(e,D,w,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(D,w,v){typeof w=="function"&&(v=w,w=null);function m(E,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),v&&v.apply(this,arguments)}return w?g.call(e,D,w,m):g.call(e,D,m)}}function b(g){return g&&function(D,w){var v=w?g.call(e,D,w):g.call(e,D);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),Po=N((t,l)=>{B();var n=Z("stream").Stream;l.exports=s;function s(i){return{ReadStream:p,WriteStream:u};function p(r,e){if(!(this instanceof p))return new p(r,e);n.call(this);var f=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,e=e||{};for(var a=Object.keys(e),c=0,o=a.length;c<o;c++){var d=a[c];this[d]=e[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(h,y){if(h){f.emit("error",h),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function u(r,e){if(!(this instanceof u))return new u(r,e);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,e=e||{};for(var f=Object.keys(e),a=0,c=f.length;a<c;a++){var o=f[a];this[o]=e[o]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Lo=N((t,l)=>{"use strict";B(),l.exports=s;var n=Object.getPrototypeOf||function(i){return i.__proto__};function s(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var p={__proto__:n(i)};else var p=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(p,u,Object.getOwnPropertyDescriptor(i,u))}),p}}),Ct=N((t,l)=>{B();var n=Z("fs"),s=Bo(),i=Po(),p=Lo(),u=Z("util"),r,e;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),e=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",e="___graceful-fs.previous");function f(){}function a(g,D){Object.defineProperty(g,r,{get:function(){return D}})}var c=f;u.debuglog?c=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var g=u.format.apply(u,arguments);g="GFS4: "+g.split(/\n/).join(`
7
7
  GFS4: `),console.error(g)}),n[r]||(o=global[r]||[],a(n,o),n.close=function(g){function D(w,v){return g.call(n,w,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(D,e,{value:g}),D}(n.close),n.closeSync=function(g){function D(w){g.apply(n,arguments),b()}return Object.defineProperty(D,e,{value:g}),D}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){c(n[r]),Z("assert").equal(n[r].length,0)}));var o;global[r]||a(global,n[r]),l.exports=d(p(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(l.exports=d(n),n.__patched=!0);function d(g){s(g),g.gracefulify=d,g.createReadStream=k,g.createWriteStream=J;var D=g.readFile;g.readFile=w;function w(M,K,et){return typeof K=="function"&&(et=K,K=null),ot(M,K,et);function ot(ct,gt,mt,H){return D(ct,gt,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?h([ot,[ct,gt,mt],V,H||Date.now(),Date.now()]):typeof mt=="function"&&mt.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(M,K,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return v(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var E=g.appendFile;E&&(g.appendFile=S);function S(M,K,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return E(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var A=g.copyFile;A&&(g.copyFile=x);function x(M,K,et,ot){return typeof et=="function"&&(ot=et,et=0),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return A(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var L=g.readdir;g.readdir=F;var T=/^v[0-5]\./;function F(M,K,et){typeof K=="function"&&(et=K,K=null);var ot=T.test(process.version)?function(gt,mt,H,V){return L(gt,ct(gt,mt,H,V))}:function(gt,mt,H,V){return L(gt,mt,ct(gt,mt,H,V))};return ot(M,K,et);function ct(gt,mt,H,V){return function(C,z){C&&(C.code==="EMFILE"||C.code==="ENFILE")?h([ot,[gt,mt,H],C,V||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof H=="function"&&H.call(this,C,z))}}}if(process.version.substr(0,4)==="v0.8"){var R=i(g);W=R.ReadStream,P=R.WriteStream}var I=g.ReadStream;I&&(W.prototype=Object.create(I.prototype),W.prototype.open=Q);var $=g.WriteStream;$&&(P.prototype=Object.create($.prototype),P.prototype.open=j),Object.defineProperty(g,"ReadStream",{get:function(){return W},set:function(M){W=M},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return P},set:function(M){P=M},enumerable:!0,configurable:!0});var O=W;Object.defineProperty(g,"FileReadStream",{get:function(){return O},set:function(M){O=M},enumerable:!0,configurable:!0});var q=P;Object.defineProperty(g,"FileWriteStream",{get:function(){return q},set:function(M){q=M},enumerable:!0,configurable:!0});function W(M,K){return this instanceof W?(I.apply(this,arguments),this):W.apply(Object.create(W.prototype),arguments)}function Q(){var M=this;tt(M.path,M.flags,M.mode,function(K,et){K?(M.autoClose&&M.destroy(),M.emit("error",K)):(M.fd=et,M.emit("open",et),M.read())})}function P(M,K){return this instanceof P?($.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function j(){var M=this;tt(M.path,M.flags,M.mode,function(K,et){K?(M.destroy(),M.emit("error",K)):(M.fd=et,M.emit("open",et))})}function k(M,K){return new g.ReadStream(M,K)}function J(M,K){return new g.WriteStream(M,K)}var G=g.open;g.open=tt;function tt(M,K,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return G(gt,mt,H,function(z,X){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return g}function h(g){c("ENQUEUE",g[0].name,g[1]),n[r].push(g),_()}var y;function b(){for(var g=Date.now(),D=0;D<n[r].length;++D)n[r][D].length>2&&(n[r][D][3]=g,n[r][D][4]=g);_()}function _(){if(clearTimeout(y),y=void 0,n[r].length!==0){var g=n[r].shift(),D=g[0],w=g[1],v=g[2],m=g[3],E=g[4];if(m===void 0)c("RETRY",D.name,w),D.apply(null,w);else if(Date.now()-m>=6e4){c("TIMEOUT",D.name,w);var S=w.pop();typeof S=="function"&&S.call(null,v)}else{var A=Date.now()-E,x=Math.max(E-m,1),L=Math.min(x*1.2,100);A>=L?(c("RETRY",D.name,w),D.apply(null,w.concat([m]))):n[r].push(g)}y===void 0&&(y=setTimeout(_,0))}}});var Wt=N(t=>{"use strict";B(),t.fromCallback=function(l){return Object.defineProperty(function(...n){if(typeof n[n.length-1]=="function")l.apply(this,n);else return new Promise((s,i)=>{l.call(this,...n,(p,u)=>p!=null?i(p):s(u))})},"name",{value:l.name})},t.fromPromise=function(l){return Object.defineProperty(function(...n){let s=n[n.length-1];if(typeof s!="function")return l.apply(this,n);l.apply(this,n.slice(0,-1)).then(i=>s(null,i),s)},"name",{value:l.name})}}),_e=N(t=>{"use strict";B();var l=Wt().fromCallback,n=Ct(),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof n[i]=="function");Object.assign(t,n),s.forEach(i=>{t[i]=l(n[i])}),t.exists=function(i,p){return typeof p=="function"?n.exists(i,p):new Promise(u=>n.exists(i,u))},t.read=function(i,p,u,r,e,f){return typeof f=="function"?n.read(i,p,u,r,e,f):new Promise((a,c)=>{n.read(i,p,u,r,e,(o,d,h)=>{if(o)return c(o);a({bytesRead:d,buffer:h})})})},t.write=function(i,p,...u){return typeof u[u.length-1]=="function"?n.write(i,p,...u):new Promise((r,e)=>{n.write(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffer:c})})})},t.readv=function(i,p,...u){return typeof u[u.length-1]=="function"?n.readv(i,p,...u):new Promise((r,e)=>{n.readv(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesRead:a,buffers:c})})})},t.writev=function(i,p,...u){return typeof u[u.length-1]=="function"?n.writev(i,p,...u):new Promise((r,e)=>{n.writev(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffers:c})})})},typeof n.realpath.native=="function"?t.realpath.native=l(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),Io=N((t,l)=>{"use strict";B();var n=Z("path");l.exports.checkPath=function(s){if(process.platform==="win32"&&/[<>:"|?*]/.test(s.replace(n.parse(s).root,""))){let i=new Error(`Path contains invalid characters: ${s}`);throw i.code="EINVAL",i}}}),No=N((t,l)=>{"use strict";B();var n=_e(),{checkPath:s}=Io(),i=p=>typeof p=="number"?p:{...{mode:511},...p}.mode;l.exports.makeDir=async(p,u)=>(s(p),n.mkdir(p,{mode:i(u),recursive:!0})),l.exports.makeDirSync=(p,u)=>(s(p),n.mkdirSync(p,{mode:i(u),recursive:!0}))}),Xt=N((t,l)=>{"use strict";B();var n=Wt().fromPromise,{makeDir:s,makeDirSync:i}=No(),p=n(s);l.exports={mkdirs:p,mkdirsSync:i,mkdirp:p,mkdirpSync:i,ensureDir:p,ensureDirSync:i}}),de=N((t,l)=>{"use strict";B();var n=Wt().fromPromise,s=_e();function i(p){return s.access(p).then(()=>!0).catch(()=>!1)}l.exports={pathExists:n(i),pathExistsSync:s.existsSync}}),xn=N((t,l)=>{"use strict";B();var n=Ct();function s(p,u,r,e){n.open(p,"r+",(f,a)=>{if(f)return e(f);n.futimes(a,u,r,c=>{n.close(a,o=>{e&&e(c||o)})})})}function i(p,u,r){let e=n.openSync(p,"r+");return n.futimesSync(e,u,r),n.closeSync(e)}l.exports={utimesMillis:s,utimesMillisSync:i}}),Ee=N((t,l)=>{"use strict";B();var n=_e(),s=Z("path"),i=Z("util");function p(h,y,b){let _=b.dereference?g=>n.stat(g,{bigint:!0}):g=>n.lstat(g,{bigint:!0});return Promise.all([_(h),_(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,D])=>({srcStat:g,destStat:D}))}function u(h,y,b){let _,g=b.dereference?w=>n.statSync(w,{bigint:!0}):w=>n.lstatSync(w,{bigint:!0}),D=g(h);try{_=g(y)}catch(w){if(w.code==="ENOENT")return{srcStat:D,destStat:null};throw w}return{srcStat:D,destStat:_}}function r(h,y,b,_,g){i.callbackify(p)(h,y,_,(D,w)=>{if(D)return g(D);let{srcStat:v,destStat:m}=w;if(m){if(c(v,m)){let E=s.basename(h),S=s.basename(y);return b==="move"&&E!==S&&E.toLowerCase()===S.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${h}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${h}'.`))}return v.isDirectory()&&o(h,y)?g(new Error(d(h,y,b))):g(null,{srcStat:v,destStat:m})})}function e(h,y,b,_){let{srcStat:g,destStat:D}=u(h,y,_);if(D){if(c(g,D)){let w=s.basename(h),v=s.basename(y);if(b==="move"&&w!==v&&w.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:D,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!D.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${h}'.`);if(!g.isDirectory()&&D.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${h}'.`)}if(g.isDirectory()&&o(h,y))throw new Error(d(h,y,b));return{srcStat:g,destStat:D}}function f(h,y,b,_,g){let D=s.resolve(s.dirname(h)),w=s.resolve(s.dirname(b));if(w===D||w===s.parse(w).root)return g();n.stat(w,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):c(y,m)?g(new Error(d(h,b,_))):f(h,y,w,_,g))}function a(h,y,b,_){let g=s.resolve(s.dirname(h)),D=s.resolve(s.dirname(b));if(D===g||D===s.parse(D).root)return;let w;try{w=n.statSync(D,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(c(y,w))throw new Error(d(h,b,_));return a(h,y,D,_)}function c(h,y){return y.ino&&y.dev&&y.ino===h.ino&&y.dev===h.dev}function o(h,y){let b=s.resolve(h).split(s.sep).filter(g=>g),_=s.resolve(y).split(s.sep).filter(g=>g);return b.reduce((g,D,w)=>g&&_[w]===D,!0)}function d(h,y,b){return`Cannot ${b} '${h}' to a subdirectory of itself, '${y}'.`}l.exports={checkPaths:r,checkPathsSync:e,checkParentPaths:f,checkParentPathsSync:a,isSrcSubdir:o,areIdentical:c}}),jo=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Xt().mkdirs,p=de().pathExists,u=xn().utimesMillis,r=Ee();function e(T,F,R,I){typeof R=="function"&&!I?(I=R,R={}):typeof R=="function"&&(R={filter:R}),I=I||function(){},R=R||{},R.clobber="clobber"in R?!!R.clobber:!0,R.overwrite="overwrite"in R?!!R.overwrite:R.clobber,R.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
8
8
 
9
9
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),r.checkPaths(T,F,"copy",R,($,O)=>{if($)return I($);let{srcStat:q,destStat:W}=O;r.checkParentPaths(T,q,F,"copy",Q=>{if(Q)return I(Q);a(T,F,R,(P,j)=>{if(P)return I(P);if(!j)return I();f(W,T,F,R,I)})})})}function f(T,F,R,I,$){let O=s.dirname(R);p(O,(q,W)=>{if(q)return $(q);if(W)return c(T,F,R,I,$);i(O,Q=>Q?$(Q):c(T,F,R,I,$))})}function a(T,F,R,I){if(!R.filter)return I(null,!0);Promise.resolve(R.filter(T,F)).then($=>I(null,$),$=>I($))}function c(T,F,R,I,$){(I.dereference?n.stat:n.lstat)(F,(O,q)=>O?$(O):q.isDirectory()?v(q,T,F,R,I,$):q.isFile()||q.isCharacterDevice()||q.isBlockDevice()?o(q,T,F,R,I,$):q.isSymbolicLink()?x(T,F,R,I,$):q.isSocket()?$(new Error(`Cannot copy a socket file: ${F}`)):q.isFIFO()?$(new Error(`Cannot copy a FIFO pipe: ${F}`)):$(new Error(`Unknown file: ${F}`)))}function o(T,F,R,I,$,O){return F?d(T,R,I,$,O):h(T,R,I,$,O)}function d(T,F,R,I,$){if(I.overwrite)n.unlink(R,O=>O?$(O):h(T,F,R,I,$));else return I.errorOnExist?$(new Error(`'${R}' already exists`)):$()}function h(T,F,R,I,$){n.copyFile(F,R,O=>O?$(O):I.preserveTimestamps?y(T.mode,F,R,$):D(R,T.mode,$))}function y(T,F,R,I){return b(T)?_(R,T,$=>$?I($):g(T,F,R,I)):g(T,F,R,I)}function b(T){return(T&128)===0}function _(T,F,R){return D(T,F|128,R)}function g(T,F,R,I){w(F,R,$=>$?I($):D(R,T,I))}function D(T,F,R){return n.chmod(T,F,R)}function w(T,F,R){n.stat(T,(I,$)=>I?R(I):u(F,$.atime,$.mtime,R))}function v(T,F,R,I,$,O){return F?E(R,I,$,O):m(T.mode,R,I,$,O)}function m(T,F,R,I,$){n.mkdir(R,O=>{if(O)return $(O);E(F,R,I,q=>q?$(q):D(R,T,$))})}function E(T,F,R,I){n.readdir(T,($,O)=>$?I($):S(O,T,F,R,I))}function S(T,F,R,I,$){let O=T.pop();return O?A(T,O,F,R,I,$):$()}function A(T,F,R,I,$,O){let q=s.join(R,F),W=s.join(I,F);a(q,W,$,(Q,P)=>{if(Q)return O(Q);if(!P)return S(T,R,I,$,O);r.checkPaths(q,W,"copy",$,(j,k)=>{if(j)return O(j);let{destStat:J}=k;c(J,q,W,$,G=>G?O(G):S(T,R,I,$,O))})})}function x(T,F,R,I,$){n.readlink(F,(O,q)=>{if(O)return $(O);if(I.dereference&&(q=s.resolve(process.cwd(),q)),T)n.readlink(R,(W,Q)=>W?W.code==="EINVAL"||W.code==="UNKNOWN"?n.symlink(q,R,$):$(W):(I.dereference&&(Q=s.resolve(process.cwd(),Q)),r.isSrcSubdir(q,Q)?$(new Error(`Cannot copy '${q}' to a subdirectory of itself, '${Q}'.`)):r.isSrcSubdir(Q,q)?$(new Error(`Cannot overwrite '${Q}' with '${q}'.`)):L(q,R,$)));else return n.symlink(q,R,$)})}function L(T,F,R){n.unlink(F,I=>I?R(I):n.symlink(T,F,R))}l.exports=e}),Mo=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Xt().mkdirsSync,p=xn().utimesMillisSync,u=Ee();function r(E,S,A){typeof A=="function"&&(A={filter:A}),A=A||{},A.clobber="clobber"in A?!!A.clobber:!0,A.overwrite="overwrite"in A?!!A.overwrite:A.clobber,A.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
@@ -3,7 +3,7 @@
3
3
  `.charCodeAt(),i=typeof n=="string"?"\r":"\r".charCodeAt();return n[n.length-1]===s&&(n=n.slice(0,n.length-1)),n[n.length-1]===i&&(n=n.slice(0,n.length-1)),n}}),lo=N((t,l)=>{"use strict";B();var n=Z("path"),s=Sn(),i=p=>{p={cwd:process.cwd(),path:process.env[s()],execPath:process.execPath,...p};let u,r=n.resolve(p.cwd),e=[];for(;u!==r;)e.push(n.join(r,"node_modules/.bin")),u=r,r=n.resolve(r,"..");let f=n.resolve(p.cwd,p.execPath,"..");return e.push(f),e.concat(p.path).join(n.delimiter)};l.exports=i,l.exports.default=i,l.exports.env=p=>{p={env:process.env,...p};let u={...p.env},r=s({env:u});return p.path=u[r],u[r]=l.exports(p),u}}),co=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;var l=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=l}),An=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;var l=function(){let p=i-s+1;return Array.from({length:p},n)};t.getRealtimeSignals=l;var n=function(p,u){return{name:`SIGRT${u+1}`,number:s+u,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},s=34,i=64;t.SIGRTMAX=i}),ho=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var l=Z("os"),n=co(),s=An(),i=function(){let u=(0,s.getRealtimeSignals)();return[...n.SIGNALS,...u].map(p)};t.getSignals=i;var p=function({name:u,number:r,description:e,action:f,forced:a=!1,standard:c}){let{signals:{[u]:o}}=l.constants,d=o!==void 0;return{name:u,number:d?o:r,description:e,supported:d,action:f,forced:a,standard:c}}}),fo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var l=Z("os"),n=ho(),s=An(),i=function(){return(0,n.getSignals)().reduce(p,{})},p=function(c,{name:o,number:d,description:h,supported:y,action:b,forced:E,standard:g}){return{...c,[o]:{name:o,number:d,description:h,supported:y,action:b,forced:E,standard:g}}},u=i();t.signalsByName=u;var r=function(){let c=(0,n.getSignals)(),o=s.SIGRTMAX+1,d=Array.from({length:o},(h,y)=>e(y,c));return Object.assign({},...d)},e=function(c,o){let d=f(c,o);if(d===void 0)return{};let{name:h,description:y,supported:b,action:E,forced:g,standard:D}=d;return{[c]:{name:h,number:c,description:y,supported:b,action:E,forced:g,standard:D}}},f=function(c,o){let d=o.find(({name:h})=>l.constants.signals[h]===c);return d!==void 0?d:o.find(h=>h.number===c)},a=r();t.signalsByNumber=a}),po=N((t,l)=>{"use strict";B();var{signalsByName:n}=fo(),s=({timedOut:p,timeout:u,errorCode:r,signal:e,signalDescription:f,exitCode:a,isCanceled:c})=>p?`timed out after ${u} milliseconds`:c?"was canceled":r!==void 0?`failed with ${r}`:e!==void 0?`was killed with ${e} (${f})`:a!==void 0?`failed with exit code ${a}`:"failed",i=({stdout:p,stderr:u,all:r,error:e,signal:f,exitCode:a,command:c,escapedCommand:o,timedOut:d,isCanceled:h,killed:y,parsed:{options:{timeout:b}}})=>{a=a===null?void 0:a,f=f===null?void 0:f;let E=f===void 0?void 0:n[f].description,g=e&&e.code,D=`Command ${s({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:E,exitCode:a,isCanceled:h})}: ${c}`,w=Object.prototype.toString.call(e)==="[object Error]",v=w?`${D}
4
4
  ${e.message}`:D,m=[v,u,p].filter(Boolean).join(`
5
5
  `);return w?(e.originalMessage=e.message,e.message=m):e=new Error(m),e.shortMessage=v,e.command=c,e.escapedCommand=o,e.exitCode=a,e.signal=f,e.signalDescription=E,e.stdout=p,e.stderr=u,r!==void 0&&(e.all=r),"bufferedData"in e&&delete e.bufferedData,e.failed=!0,e.timedOut=!!d,e.isCanceled=h,e.killed=y&&!d,e};l.exports=i}),mo=N((t,l)=>{"use strict";B();var n=["stdin","stdout","stderr"],s=p=>n.some(u=>p[u]!==void 0),i=p=>{if(!p)return;let{stdio:u}=p;if(u===void 0)return n.map(e=>p[e]);if(s(p))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(e=>`\`${e}\``).join(", ")}`);if(typeof u=="string")return u;if(!Array.isArray(u))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``);let r=Math.max(u.length,n.length);return Array.from({length:r},(e,f)=>u[f])};l.exports=i,l.exports.node=p=>{let u=i(p);return u==="ipc"?"ipc":u===void 0||typeof u=="string"?[u,u,u,"ipc"]:u.includes("ipc")?u:[...u,"ipc"]}}),yo=N((t,l)=>{"use strict";B();var n=Z("os"),s=Xe(),i=1e3*5,p=(y,b="SIGTERM",E={})=>{let g=y(b);return u(y,b,E,g),g},u=(y,b,E,g)=>{if(!r(b,E,g))return;let D=f(E),w=setTimeout(()=>{y("SIGKILL")},D);w.unref&&w.unref()},r=(y,{forceKillAfterTimeout:b},E)=>e(y)&&b!==!1&&E,e=y=>y===n.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},a=(y,b)=>{y.kill()&&(b.isCanceled=!0)},c=(y,b,E)=>{y.kill(b),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},o=(y,{timeout:b,killSignal:E="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let D,w=new Promise((m,_)=>{D=setTimeout(()=>{c(y,E,_)},b)}),v=g.finally(()=>{clearTimeout(D)});return Promise.race([w,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},h=async(y,{cleanup:b,detached:E},g)=>{if(!b||E)return g;let D=s(()=>{y.kill()});return g.finally(()=>{D()})};l.exports={spawnedKill:p,spawnedCancel:a,setupTimeout:o,validateTimeout:d,setExitHandler:h}}),go=N((t,l)=>{"use strict";B();var n=s=>s!==null&&typeof s=="object"&&typeof s.pipe=="function";n.writable=s=>n(s)&&s.writable!==!1&&typeof s._write=="function"&&typeof s._writableState=="object",n.readable=s=>n(s)&&s.readable!==!1&&typeof s._read=="function"&&typeof s._readableState=="object",n.duplex=s=>n.writable(s)&&n.readable(s),n.transform=s=>n.duplex(s)&&typeof s._transform=="function",l.exports=n}),bo=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=s=>{s={...s};let{array:i}=s,{encoding:p}=s,u=p==="buffer",r=!1;i?r=!(p||u):p=p||"utf8",u&&(p=null);let e=new n({objectMode:r});p&&e.setEncoding(p);let f=0,a=[];return e.on("data",c=>{a.push(c),r?f=a.length:f+=c.length}),e.getBufferedValue=()=>i?a:u?Buffer.concat(a,f):a.join(""),e.getBufferedLength=()=>f,e}}),vo=N((t,l)=>{"use strict";B();var{constants:n}=Z("buffer"),s=Z("stream"),{promisify:i}=Z("util"),p=bo(),u=i(s.pipeline),r=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function e(f,a){if(!f)throw new Error("Expected a stream");a={maxBuffer:1/0,...a};let{maxBuffer:c}=a,o=p(a);return await new Promise((d,h)=>{let y=b=>{b&&o.getBufferedLength()<=n.MAX_LENGTH&&(b.bufferedData=o.getBufferedValue()),h(b)};(async()=>{try{await u(f,o),d()}catch(b){y(b)}})(),o.on("data",()=>{o.getBufferedLength()>c&&y(new r)})}),o.getBufferedValue()}l.exports=e,l.exports.buffer=(f,a)=>e(f,{...a,encoding:"buffer"}),l.exports.array=(f,a)=>e(f,{...a,array:!0}),l.exports.MaxBufferError=r}),Eo=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=function(){var s=[],i=new n({objectMode:!0});return i.setMaxListeners(0),i.add=p,i.isEmpty=u,i.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(p),i;function p(e){return Array.isArray(e)?(e.forEach(p),this):(s.push(e),e.once("end",r.bind(null,e)),e.once("error",i.emit.bind(i,"error")),e.pipe(i,{end:!1}),this)}function u(){return s.length==0}function r(e){s=s.filter(function(f){return f!==e}),!s.length&&i.readable&&i.end()}}}),_o=N((t,l)=>{"use strict";B();var n=go(),s=vo(),i=Eo(),p=(c,o)=>{o===void 0||c.stdin===void 0||(n(o)?o.pipe(c.stdin):c.stdin.end(o))},u=(c,{all:o})=>{if(!o||!c.stdout&&!c.stderr)return;let d=i();return c.stdout&&d.add(c.stdout),c.stderr&&d.add(c.stderr),d},r=async(c,o)=>{if(c){c.destroy();try{return await o}catch(d){return d.bufferedData}}},e=(c,{encoding:o,buffer:d,maxBuffer:h})=>{if(!(!c||!d))return o?s(c,{encoding:o,maxBuffer:h}):s.buffer(c,{maxBuffer:h})},f=async({stdout:c,stderr:o,all:d},{encoding:h,buffer:y,maxBuffer:b},E)=>{let g=e(c,{encoding:h,buffer:y,maxBuffer:b}),D=e(o,{encoding:h,buffer:y,maxBuffer:b}),w=e(d,{encoding:h,buffer:y,maxBuffer:b*2});try{return await Promise.all([E,g,D,w])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},r(c,g),r(o,D),r(d,w)])}},a=({input:c})=>{if(n(c))throw new TypeError("The `input` option cannot be a stream in sync mode")};l.exports={handleInput:p,makeAllStream:u,getSpawnedResult:f,validateInputSync:a}}),wo=N((t,l)=>{"use strict";B();var n=(async()=>{})().constructor.prototype,s=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(n,u)]),i=(u,r)=>{for(let[e,f]of s){let a=typeof r=="function"?(...c)=>Reflect.apply(f.value,r(),c):f.value.bind(r);Reflect.defineProperty(u,e,{...f,value:a})}return u},p=u=>new Promise((r,e)=>{u.on("exit",(f,a)=>{r({exitCode:f,signal:a})}),u.on("error",f=>{e(f)}),u.stdin&&u.stdin.on("error",f=>{e(f)})});l.exports={mergePromise:i,getSpawnedPromise:p}}),Do=N((t,l)=>{"use strict";B();var n=(a,c=[])=>Array.isArray(c)?[a,...c]:[a],s=/^[\w.-]+$/,i=/"/g,p=a=>typeof a!="string"||s.test(a)?a:`"${a.replace(i,'\\"')}"`,u=(a,c)=>n(a,c).join(" "),r=(a,c)=>n(a,c).map(o=>p(o)).join(" "),e=/ +/g,f=a=>{let c=[];for(let o of a.trim().split(e)){let d=c[c.length-1];d&&d.endsWith("\\")?c[c.length-1]=`${d.slice(0,-1)} ${o}`:c.push(o)}return c};l.exports={joinCommand:u,getEscapedCommand:r,parseCommand:f}}),So=N((t,l)=>{"use strict";B();var n=Z("path"),s=Z("child_process"),i=uo(),p=ao(),u=lo(),r=Ze(),e=po(),f=mo(),{spawnedKill:a,spawnedCancel:c,setupTimeout:o,validateTimeout:d,setExitHandler:h}=yo(),{handleInput:y,getSpawnedResult:b,makeAllStream:E,validateInputSync:g}=_o(),{mergePromise:D,getSpawnedPromise:w}=wo(),{joinCommand:v,parseCommand:m,getEscapedCommand:_}=Do(),S=1e3*1e3*100,A=({env:F,extendEnv:R,preferLocal:I,localDir:$,execPath:O})=>{let q=R?{...process.env,...F}:F;return I?u.env({env:q,cwd:$,execPath:O}):q},x=(F,R,I={})=>{let $=i._parse(F,R,I);return F=$.command,R=$.args,I=$.options,I={maxBuffer:S,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:I.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...I},I.env=A(I),I.stdio=f(I),process.platform==="win32"&&n.basename(F,".exe")==="cmd"&&R.unshift("/q"),{file:F,args:R,options:I,parsed:$}},L=(F,R,I)=>typeof R!="string"&&!Buffer.isBuffer(R)?I===void 0?void 0:"":F.stripFinalNewline?p(R):R,T=(F,R,I)=>{let $=x(F,R,I),O=v(F,R),q=_(F,R);d($.options);let W;try{W=s.spawn($.file,$.args,$.options)}catch(G){let tt=new s.ChildProcess,M=Promise.reject(e({error:G,stdout:"",stderr:"",all:"",command:O,escapedCommand:q,parsed:$,timedOut:!1,isCanceled:!1,killed:!1}));return D(tt,M)}let Q=w(W),P=o(W,$.options,Q),j=h(W,$.options,P),k={isCanceled:!1};W.kill=a.bind(null,W.kill.bind(W)),W.cancel=c.bind(null,W,k);let J=r(async()=>{let[{error:G,exitCode:tt,signal:M,timedOut:K},et,ot,ct]=await b(W,$.options,j),gt=L($.options,et),mt=L($.options,ot),H=L($.options,ct);if(G||tt!==0||M!==null){let V=e({error:G,exitCode:tt,signal:M,stdout:gt,stderr:mt,all:H,command:O,escapedCommand:q,parsed:$,timedOut:K,isCanceled:k.isCanceled,killed:W.killed});if(!$.options.reject)return V;throw V}return{command:O,escapedCommand:q,exitCode:0,stdout:gt,stderr:mt,all:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(W,$.options.input),W.all=E(W,$.options),D(W,J)};l.exports=T,l.exports.sync=(F,R,I)=>{let $=x(F,R,I),O=v(F,R),q=_(F,R);g($.options);let W;try{W=s.spawnSync($.file,$.args,$.options)}catch(j){throw e({error:j,stdout:"",stderr:"",all:"",command:O,escapedCommand:q,parsed:$,timedOut:!1,isCanceled:!1,killed:!1})}let Q=L($.options,W.stdout,W.error),P=L($.options,W.stderr,W.error);if(W.error||W.status!==0||W.signal!==null){let j=e({stdout:Q,stderr:P,error:W.error,signal:W.signal,exitCode:W.status,command:O,escapedCommand:q,parsed:$,timedOut:W.error&&W.error.code==="ETIMEDOUT",isCanceled:!1,killed:W.signal!==null});if(!$.options.reject)return j;throw j}return{command:O,escapedCommand:q,exitCode:0,stdout:Q,stderr:P,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},l.exports.command=(F,R)=>{let[I,...$]=m(F);return T(I,$,R)},l.exports.commandSync=(F,R)=>{let[I,...$]=m(F);return T.sync(I,$,R)},l.exports.node=(F,R,I={})=>{R&&!Array.isArray(R)&&typeof R=="object"&&(I=R,R=[]);let $=f.node(I),O=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:q=process.execPath,nodeOptions:W=O}=I;return T(q,[...W,F,...Array.isArray(R)?R:[]],{...I,stdin:void 0,stdout:void 0,stderr:void 0,stdio:$,shell:!1})}});B();var Mp=Rt(So());B();var Ao=N((t,l)=>{"use strict";B();var n=/[|\\{}()[\]^$+*?.]/g;l.exports=function(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(n,"\\$&")}}),Co=N((t,l)=>{"use strict";B(),l.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]}}),Cn=N((t,l)=>{B();var n=Co(),s={};for(i in n)n.hasOwnProperty(i)&&(s[n[i]]=i);var i,p=l.exports={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"]}};for(e in p)if(p.hasOwnProperty(e)){if(!("channels"in p[e]))throw new Error("missing channels property: "+e);if(!("labels"in p[e]))throw new Error("missing channel labels property: "+e);if(p[e].labels.length!==p[e].channels)throw new Error("channel and label counts mismatch: "+e);u=p[e].channels,r=p[e].labels,delete p[e].channels,delete p[e].labels,Object.defineProperty(p[e],"channels",{value:u}),Object.defineProperty(p[e],"labels",{value:r})}var u,r,e;p.rgb.hsl=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h=Math.min(c,o,d),y=Math.max(c,o,d),b=y-h,E,g,D;return y===h?E=0:c===y?E=(o-d)/b:o===y?E=2+(d-c)/b:d===y&&(E=4+(c-o)/b),E=Math.min(E*60,360),E<0&&(E+=360),D=(h+y)/2,y===h?g=0:D<=.5?g=b/(y+h):g=b/(2-y-h),[E,g*100,D*100]},p.rgb.hsv=function(a){var c,o,d,h,y,b=a[0]/255,E=a[1]/255,g=a[2]/255,D=Math.max(b,E,g),w=D-Math.min(b,E,g),v=function(m){return(D-m)/6/w+1/2};return w===0?h=y=0:(y=w/D,c=v(b),o=v(E),d=v(g),b===D?h=d-o:E===D?h=1/3+c-d:g===D&&(h=2/3+o-c),h<0?h+=1:h>1&&(h-=1)),[h*360,y*100,D*100]},p.rgb.hwb=function(a){var c=a[0],o=a[1],d=a[2],h=p.rgb.hsl(a)[0],y=1/255*Math.min(c,Math.min(o,d));return d=1-1/255*Math.max(c,Math.max(o,d)),[h,y*100,d*100]},p.rgb.cmyk=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h,y,b,E;return E=Math.min(1-c,1-o,1-d),h=(1-c-E)/(1-E)||0,y=(1-o-E)/(1-E)||0,b=(1-d-E)/(1-E)||0,[h*100,y*100,b*100,E*100]};function f(a,c){return Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)+Math.pow(a[2]-c[2],2)}p.rgb.keyword=function(a){var c=s[a];if(c)return c;var o=1/0,d;for(var h in n)if(n.hasOwnProperty(h)){var y=n[h],b=f(a,y);b<o&&(o=b,d=h)}return d},p.keyword.rgb=function(a){return n[a]},p.rgb.xyz=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255;c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var h=c*.4124+o*.3576+d*.1805,y=c*.2126+o*.7152+d*.0722,b=c*.0193+o*.1192+d*.9505;return[h*100,y*100,b*100]},p.rgb.lab=function(a){var c=p.rgb.xyz(a),o=c[0],d=c[1],h=c[2],y,b,E;return o/=95.047,d/=100,h/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,y=116*d-16,b=500*(o-d),E=200*(d-h),[y,b,E]},p.hsl.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100,h,y,b,E,g;if(o===0)return g=d*255,[g,g,g];d<.5?y=d*(1+o):y=d+o-d*o,h=2*d-y,E=[0,0,0];for(var D=0;D<3;D++)b=c+1/3*-(D-1),b<0&&b++,b>1&&b--,6*b<1?g=h+(y-h)*6*b:2*b<1?g=y:3*b<2?g=h+(y-h)*(2/3-b)*6:g=h,E[D]=g*255;return E},p.hsl.hsv=function(a){var c=a[0],o=a[1]/100,d=a[2]/100,h=o,y=Math.max(d,.01),b,E;return d*=2,o*=d<=1?d:2-d,h*=y<=1?y:2-y,E=(d+o)/2,b=d===0?2*h/(y+h):2*o/(d+o),[c,b*100,E*100]},p.hsv.rgb=function(a){var c=a[0]/60,o=a[1]/100,d=a[2]/100,h=Math.floor(c)%6,y=c-Math.floor(c),b=255*d*(1-o),E=255*d*(1-o*y),g=255*d*(1-o*(1-y));switch(d*=255,h){case 0:return[d,g,b];case 1:return[E,d,b];case 2:return[b,d,g];case 3:return[b,E,d];case 4:return[g,b,d];case 5:return[d,b,E]}},p.hsv.hsl=function(a){var c=a[0],o=a[1]/100,d=a[2]/100,h=Math.max(d,.01),y,b,E;return E=(2-o)*d,y=(2-o)*h,b=o*h,b/=y<=1?y:2-y,b=b||0,E/=2,[c,b*100,E*100]},p.hwb.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100,h=o+d,y,b,E,g;h>1&&(o/=h,d/=h),y=Math.floor(6*c),b=1-d,E=6*c-y,y&1&&(E=1-E),g=o+E*(b-o);var D,w,v;switch(y){default:case 6:case 0:D=b,w=g,v=o;break;case 1:D=g,w=b,v=o;break;case 2:D=o,w=b,v=g;break;case 3:D=o,w=g,v=b;break;case 4:D=g,w=o,v=b;break;case 5:D=b,w=o,v=g;break}return[D*255,w*255,v*255]},p.cmyk.rgb=function(a){var c=a[0]/100,o=a[1]/100,d=a[2]/100,h=a[3]/100,y,b,E;return y=1-Math.min(1,c*(1-h)+h),b=1-Math.min(1,o*(1-h)+h),E=1-Math.min(1,d*(1-h)+h),[y*255,b*255,E*255]},p.xyz.rgb=function(a){var c=a[0]/100,o=a[1]/100,d=a[2]/100,h,y,b;return h=c*3.2406+o*-1.5372+d*-.4986,y=c*-.9689+o*1.8758+d*.0415,b=c*.0557+o*-.204+d*1.057,h=h>.0031308?1.055*Math.pow(h,1/2.4)-.055:h*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,h=Math.min(Math.max(0,h),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[h*255,y*255,b*255]},p.xyz.lab=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return c/=95.047,o/=100,d/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=116*o-16,y=500*(c-o),b=200*(o-d),[h,y,b]},p.lab.xyz=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;y=(c+16)/116,h=o/500+y,b=y-d/200;var E=Math.pow(y,3),g=Math.pow(h,3),D=Math.pow(b,3);return y=E>.008856?E:(y-16/116)/7.787,h=g>.008856?g:(h-16/116)/7.787,b=D>.008856?D:(b-16/116)/7.787,h*=95.047,y*=100,b*=108.883,[h,y,b]},p.lab.lch=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return h=Math.atan2(d,o),y=h*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(o*o+d*d),[c,b,y]},p.lch.lab=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return b=d/360*2*Math.PI,h=o*Math.cos(b),y=o*Math.sin(b),[c,h,y]},p.rgb.ansi16=function(a){var c=a[0],o=a[1],d=a[2],h=1 in arguments?arguments[1]:p.rgb.hsv(a)[2];if(h=Math.round(h/50),h===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(o/255)<<1|Math.round(c/255));return h===2&&(y+=60),y},p.hsv.ansi16=function(a){return p.rgb.ansi16(p.hsv.rgb(a),a[2])},p.rgb.ansi256=function(a){var c=a[0],o=a[1],d=a[2];if(c===o&&o===d)return c<8?16:c>248?231:Math.round((c-8)/247*24)+232;var h=16+36*Math.round(c/255*5)+6*Math.round(o/255*5)+Math.round(d/255*5);return h},p.ansi16.rgb=function(a){var c=a%10;if(c===0||c===7)return a>50&&(c+=3.5),c=c/10.5*255,[c,c,c];var o=(~~(a>50)+1)*.5,d=(c&1)*o*255,h=(c>>1&1)*o*255,y=(c>>2&1)*o*255;return[d,h,y]},p.ansi256.rgb=function(a){if(a>=232){var c=(a-232)*10+8;return[c,c,c]}a-=16;var o,d=Math.floor(a/36)/5*255,h=Math.floor((o=a%36)/6)/5*255,y=o%6/5*255;return[d,h,y]},p.rgb.hex=function(a){var c=((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255),o=c.toString(16).toUpperCase();return"000000".substring(o.length)+o},p.hex.rgb=function(a){var c=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var o=c[0];c[0].length===3&&(o=o.split("").map(function(E){return E+E}).join(""));var d=parseInt(o,16),h=d>>16&255,y=d>>8&255,b=d&255;return[h,y,b]},p.rgb.hcg=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h=Math.max(Math.max(c,o),d),y=Math.min(Math.min(c,o),d),b=h-y,E,g;return b<1?E=y/(1-b):E=0,b<=0?g=0:h===c?g=(o-d)/b%6:h===o?g=2+(d-c)/b:g=4+(c-o)/b+4,g/=6,g%=1,[g*360,b*100,E*100]},p.hsl.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=1,h=0;return o<.5?d=2*c*o:d=2*c*(1-o),d<1&&(h=(o-.5*d)/(1-d)),[a[0],d*100,h*100]},p.hsv.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=c*o,h=0;return d<1&&(h=(o-d)/(1-d)),[a[0],d*100,h*100]},p.hcg.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100;if(o===0)return[d*255,d*255,d*255];var h=[0,0,0],y=c%1*6,b=y%1,E=1-b,g=0;switch(Math.floor(y)){case 0:h[0]=1,h[1]=b,h[2]=0;break;case 1:h[0]=E,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=b;break;case 3:h[0]=0,h[1]=E,h[2]=1;break;case 4:h[0]=b,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=E}return g=(1-o)*d,[(o*h[0]+g)*255,(o*h[1]+g)*255,(o*h[2]+g)*255]},p.hcg.hsv=function(a){var c=a[1]/100,o=a[2]/100,d=c+o*(1-c),h=0;return d>0&&(h=c/d),[a[0],h*100,d*100]},p.hcg.hsl=function(a){var c=a[1]/100,o=a[2]/100,d=o*(1-c)+.5*c,h=0;return d>0&&d<.5?h=c/(2*d):d>=.5&&d<1&&(h=c/(2*(1-d))),[a[0],h*100,d*100]},p.hcg.hwb=function(a){var c=a[1]/100,o=a[2]/100,d=c+o*(1-c);return[a[0],(d-c)*100,(1-d)*100]},p.hwb.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=1-o,h=d-c,y=0;return h<1&&(y=(d-h)/(1-h)),[a[0],h*100,y*100]},p.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},p.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},p.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},p.gray.hsl=p.gray.hsv=function(a){return[0,0,a[0]]},p.gray.hwb=function(a){return[0,100,a[0]]},p.gray.cmyk=function(a){return[0,0,0,a[0]]},p.gray.lab=function(a){return[a[0],0,0]},p.gray.hex=function(a){var c=Math.round(a[0]/100*255)&255,o=(c<<16)+(c<<8)+c,d=o.toString(16).toUpperCase();return"000000".substring(d.length)+d},p.rgb.gray=function(a){var c=(a[0]+a[1]+a[2])/3;return[c/255*100]}}),xo=N((t,l)=>{B();var n=Cn();function s(){for(var r={},e=Object.keys(n),f=e.length,a=0;a<f;a++)r[e[a]]={distance:-1,parent:null};return r}function i(r){var e=s(),f=[r];for(e[r].distance=0;f.length;)for(var a=f.pop(),c=Object.keys(n[a]),o=c.length,d=0;d<o;d++){var h=c[d],y=e[h];y.distance===-1&&(y.distance=e[a].distance+1,y.parent=a,f.unshift(h))}return e}function p(r,e){return function(f){return e(r(f))}}function u(r,e){for(var f=[e[r].parent,r],a=n[e[r].parent][r],c=e[r].parent;e[c].parent;)f.unshift(e[c].parent),a=p(n[e[c].parent][c],a),c=e[c].parent;return a.conversion=f,a}l.exports=function(r){for(var e=i(r),f={},a=Object.keys(e),c=a.length,o=0;o<c;o++){var d=a[o],h=e[d];h.parent!==null&&(f[d]=u(d,e))}return f}}),Fo=N((t,l)=>{B();var n=Cn(),s=xo(),i={},p=Object.keys(n);function u(e){var f=function(a){return a==null?a:(arguments.length>1&&(a=Array.prototype.slice.call(arguments)),e(a))};return"conversion"in e&&(f.conversion=e.conversion),f}function r(e){var f=function(a){if(a==null)return a;arguments.length>1&&(a=Array.prototype.slice.call(arguments));var c=e(a);if(typeof c=="object")for(var o=c.length,d=0;d<o;d++)c[d]=Math.round(c[d]);return c};return"conversion"in e&&(f.conversion=e.conversion),f}p.forEach(function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});var f=s(e),a=Object.keys(f);a.forEach(function(c){var o=f[c];i[e][c]=r(o),i[e][c].raw=u(o)})}),l.exports=i}),ko=N((t,l)=>{"use strict";B();var n=Fo(),s=(r,e)=>function(){return`\x1B[${r.apply(n,arguments)+e}m`},i=(r,e)=>function(){let f=r.apply(n,arguments);return`\x1B[${38+e};5;${f}m`},p=(r,e)=>function(){let f=r.apply(n,arguments);return`\x1B[${38+e};2;${f[0]};${f[1]};${f[2]}m`};function u(){let r=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],gray:[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.grey=e.color.gray;for(let c of Object.keys(e)){let o=e[c];for(let d of Object.keys(o)){let h=o[d];e[d]={open:`\x1B[${h[0]}m`,close:`\x1B[${h[1]}m`},o[d]=e[d],r.set(h[0],h[1])}Object.defineProperty(e,c,{value:o,enumerable:!1}),Object.defineProperty(e,"codes",{value:r,enumerable:!1})}let f=c=>c,a=(c,o,d)=>[c,o,d];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:s(f,0)},e.color.ansi256={ansi256:i(f,0)},e.color.ansi16m={rgb:p(a,0)},e.bgColor.ansi={ansi:s(f,10)},e.bgColor.ansi256={ansi256:i(f,10)},e.bgColor.ansi16m={rgb:p(a,10)};for(let c of Object.keys(n)){if(typeof n[c]!="object")continue;let o=n[c];c==="ansi16"&&(c="ansi"),"ansi16"in o&&(e.color.ansi[c]=s(o.ansi16,0),e.bgColor.ansi[c]=s(o.ansi16,10)),"ansi256"in o&&(e.color.ansi256[c]=i(o.ansi256,0),e.bgColor.ansi256[c]=i(o.ansi256,10)),"rgb"in o&&(e.color.ansi16m[c]=p(o.rgb,0),e.bgColor.ansi16m[c]=p(o.rgb,10))}return e}Object.defineProperty(l,"exports",{enumerable:!0,get:u})}),Ro=N((t,l)=>{"use strict";B(),l.exports=(n,s)=>{s=s||process.argv;let i=n.startsWith("-")?"":n.length===1?"-":"--",p=s.indexOf(i+n),u=s.indexOf("--");return p!==-1&&(u===-1?!0:p<u)}}),Oo=N((t,l)=>{"use strict";B();var n=Z("os"),s=Ro(),i=process.env,p;s("no-color")||s("no-colors")||s("color=false")?p=!1:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(p=!0),"FORCE_COLOR"in i&&(p=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function u(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function r(f){if(p===!1)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(f&&!f.isTTY&&p!==!0)return 0;let a=p?1:0;if(process.platform==="win32"){let c=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(c=>c in i)||i.CI_NAME==="codeship"?1:a;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let c=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,a)}function e(f){let a=r(f);return u(a)}l.exports={supportsColor:e,stdout:e(process.stdout),stderr:e(process.stderr)}}),To=N((t,l)=>{"use strict";B();var n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,s=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,u=new Map([["n",`
6
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){return c[0]==="u"&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),y;for(let b of h)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(p,(E,g,D)=>g?r(g):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`);return d}function f(c){s.lastIndex=0;let o=[],d;for(;(d=s.exec(c))!==null;){let h=d[1];if(d[2]){let y=e(h,d[2]);o.push([h].concat(y))}else o.push([h])}return o}function a(c,o){let d={};for(let y of o)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let h=c;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in h))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?h=h[y].apply(h,d[y]):h=h[y]}return h}l.exports=(c,o)=>{let d=[],h=[],y=[];if(o.replace(n,(b,E,g,D,w,v)=>{if(E)y.push(r(E));else if(D){let m=y.join("");y=[],h.push(d.length===0?m:a(c,d)(m)),d.push({inverse:g,styles:f(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(a(c,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),h.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return h.join("")}}),pe=N((t,l)=>{"use strict";B();var n=Ao(),s=ko(),i=Oo().stdout,p=To(),u=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],e=new Set(["gray"]),f=Object.create(null);function a(b,E){E=E||{};let g=i?i.level:0;b.level=E.level===void 0?g:E.level,b.enabled="enabled"in E?E.enabled:b.level>0}function c(b){if(!this||!(this instanceof c)||this.template){let E={};return a(E,b),E.template=function(){let g=[].slice.call(arguments);return y.apply(null,[E.template].concat(g))},Object.setPrototypeOf(E,c.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=c,E.template}a(this,b)}u&&(s.blue.open="\x1B[94m");for(let b of Object.keys(s))s[b].closeRe=new RegExp(n(s[b].close),"g"),f[b]={get(){let E=s[b];return d.call(this,this._styles?this._styles.concat(E):[E],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(n(s.color.close),"g");for(let b of Object.keys(s.color.ansi))e.has(b)||(f[b]={get(){let E=this.level;return function(){let g={open:s.color[r[E]][b].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(let b of Object.keys(s.bgColor.ansi)){if(e.has(b))continue;let E="bg"+b[0].toUpperCase()+b.slice(1);f[E]={get(){let g=this.level;return function(){let D={open:s.bgColor[r[g]][b].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var o=Object.defineProperties(()=>{},f);function d(b,E,g){let D=function(){return h.apply(D,arguments)};D._styles=b,D._empty=E;let w=this;return Object.defineProperty(D,"level",{enumerable:!0,get(){return w.level},set(v){w.level=v}}),Object.defineProperty(D,"enabled",{enumerable:!0,get(){return w.enabled},set(v){w.enabled=v}}),D.hasGrey=this.hasGrey||g==="gray"||g==="grey",D.__proto__=o,D}function h(){let b=arguments,E=b.length,g=String(arguments[0]);if(E===0)return"";if(E>1)for(let w=1;w<E;w++)g+=" "+b[w];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let D=s.dim.open;u&&this.hasGrey&&(s.dim.open="");for(let w of this._styles.slice().reverse())g=w.open+g.replace(w.closeRe,w.open)+w.close,g=g.replace(/\r?\n/g,`${w.close}$&${w.open}`);return s.dim.open=D,g}function y(b,E){if(!Array.isArray(E))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),D=[E.raw[0]];for(let w=1;w<E.length;w++)D.push(String(g[w-1]).replace(/[{}\\]/g,"\\$&")),D.push(String(E.raw[w]));return p(b,D.join(""))}Object.defineProperties(c.prototype,f),l.exports=c(),l.exports.supportsColor=i,l.exports.default=l.exports});var Bo=N((t,l)=>{B();var n=Z("constants"),s=process.cwd,i=null,p=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=s.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(e){i=null,u.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;l.exports=r;function r(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(e),e.lutimes||a(e),e.chown=d(e.chown),e.fchown=d(e.fchown),e.lchown=d(e.lchown),e.chmod=c(e.chmod),e.fchmod=c(e.fchmod),e.lchmod=c(e.lchmod),e.chownSync=h(e.chownSync),e.fchownSync=h(e.fchownSync),e.lchownSync=h(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=y(e.stat),e.fstat=y(e.fstat),e.lstat=y(e.lstat),e.statSync=b(e.statSync),e.fstatSync=b(e.fstatSync),e.lstatSync=b(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(g,D,w){w&&process.nextTick(w)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(g,D,w,v){v&&process.nextTick(v)},e.lchownSync=function(){}),p==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(g){function D(w,v,m){var _=Date.now(),S=0;g(w,v,function A(x){if(x&&(x.code==="EACCES"||x.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(v,function(L,T){L&&L.code==="ENOENT"?g(w,v,A):m(x)})},S),S<100&&(S+=10);return}m&&m(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.rename)),e.read=typeof e.read!="function"?e.read:function(g){function D(w,v,m,_,S,A){var x;if(A&&typeof A=="function"){var L=0;x=function(T,F,R){if(T&&T.code==="EAGAIN"&&L<10)return L++,g.call(e,w,v,m,_,S,x);A.apply(this,arguments)}}return g.call(e,w,v,m,_,S,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(g){return function(D,w,v,m,_){for(var S=0;;)try{return g.call(e,D,w,v,m,_)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(e.readSync);function f(g){g.lchmod=function(D,w,v){g.open(D,n.O_WRONLY|n.O_SYMLINK,w,function(m,_){if(m){v&&v(m);return}g.fchmod(_,w,function(S){g.close(_,function(A){v&&v(S||A)})})})},g.lchmodSync=function(D,w){var v=g.openSync(D,n.O_WRONLY|n.O_SYMLINK,w),m=!0,_;try{_=g.fchmodSync(v,w),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return _}}function a(g){n.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(D,w,v,m){g.open(D,n.O_SYMLINK,function(_,S){if(_){m&&m(_);return}g.futimes(S,w,v,function(A){g.close(S,function(x){m&&m(A||x)})})})},g.lutimesSync=function(D,w,v){var m=g.openSync(D,n.O_SYMLINK),_,S=!0;try{_=g.futimesSync(m,w,v),S=!1}finally{if(S)try{g.closeSync(m)}catch{}else g.closeSync(m)}return _}):g.futimes&&(g.lutimes=function(D,w,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function c(g){return g&&function(D,w,v){return g.call(e,D,w,function(m){E(m)&&(m=null),v&&v.apply(this,arguments)})}}function o(g){return g&&function(D,w){try{return g.call(e,D,w)}catch(v){if(!E(v))throw v}}}function d(g){return g&&function(D,w,v,m){return g.call(e,D,w,v,function(_){E(_)&&(_=null),m&&m.apply(this,arguments)})}}function h(g){return g&&function(D,w,v){try{return g.call(e,D,w,v)}catch(m){if(!E(m))throw m}}}function y(g){return g&&function(D,w,v){typeof w=="function"&&(v=w,w=null);function m(_,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),v&&v.apply(this,arguments)}return w?g.call(e,D,w,m):g.call(e,D,m)}}function b(g){return g&&function(D,w){var v=w?g.call(e,D,w):g.call(e,D);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function E(g){if(!g||g.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),Po=N((t,l)=>{B();var n=Z("stream").Stream;l.exports=s;function s(i){return{ReadStream:p,WriteStream:u};function p(r,e){if(!(this instanceof p))return new p(r,e);n.call(this);var f=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,e=e||{};for(var a=Object.keys(e),c=0,o=a.length;c<o;c++){var d=a[c];this[d]=e[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(h,y){if(h){f.emit("error",h),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function u(r,e){if(!(this instanceof u))return new u(r,e);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,e=e||{};for(var f=Object.keys(e),a=0,c=f.length;a<c;a++){var o=f[a];this[o]=e[o]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Lo=N((t,l)=>{"use strict";B(),l.exports=s;var n=Object.getPrototypeOf||function(i){return i.__proto__};function s(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var p={__proto__:n(i)};else var p=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(p,u,Object.getOwnPropertyDescriptor(i,u))}),p}}),Ct=N((t,l)=>{B();var n=Z("fs"),s=Bo(),i=Po(),p=Lo(),u=Z("util"),r,e;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),e=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",e="___graceful-fs.previous");function f(){}function a(g,D){Object.defineProperty(g,r,{get:function(){return D}})}var c=f;u.debuglog?c=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var g=u.format.apply(u,arguments);g="GFS4: "+g.split(/\n/).join(`
6
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){return c[0]==="u"&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),y;for(let b of h)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(p,(E,g,D)=>g?r(g):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`);return d}function f(c){s.lastIndex=0;let o=[],d;for(;(d=s.exec(c))!==null;){let h=d[1];if(d[2]){let y=e(h,d[2]);o.push([h].concat(y))}else o.push([h])}return o}function a(c,o){let d={};for(let y of o)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let h=c;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in h))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?h=h[y].apply(h,d[y]):h=h[y]}return h}l.exports=(c,o)=>{let d=[],h=[],y=[];if(o.replace(n,(b,E,g,D,w,v)=>{if(E)y.push(r(E));else if(D){let m=y.join("");y=[],h.push(d.length===0?m:a(c,d)(m)),d.push({inverse:g,styles:f(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(a(c,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),h.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return h.join("")}}),pe=N((t,l)=>{"use strict";B();var n=Ao(),s=ko(),i=Oo().stdout,p=To(),u=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],e=new Set(["gray"]),f=Object.create(null);function a(b,E){E=E||{};let g=i?i.level:0;b.level=E.level===void 0?g:E.level,b.enabled="enabled"in E?E.enabled:b.level>0}function c(b){if(!this||!(this instanceof c)||this.template){let E={};return a(E,b),E.template=function(){let g=[].slice.call(arguments);return y.apply(null,[E.template].concat(g))},Object.setPrototypeOf(E,c.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=c,E.template}a(this,b)}u&&(s.blue.open="\x1B[94m");for(let b of Object.keys(s))s[b].closeRe=new RegExp(n(s[b].close),"g"),f[b]={get(){let E=s[b];return d.call(this,this._styles?this._styles.concat(E):[E],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(n(s.color.close),"g");for(let b of Object.keys(s.color.ansi))e.has(b)||(f[b]={get(){let E=this.level;return function(){let g={open:s.color[r[E]][b].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(let b of Object.keys(s.bgColor.ansi)){if(e.has(b))continue;let E="bg"+b[0].toUpperCase()+b.slice(1);f[E]={get(){let g=this.level;return function(){let D={open:s.bgColor[r[g]][b].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var o=Object.defineProperties(()=>{},f);function d(b,E,g){let D=function(){return h.apply(D,arguments)};D._styles=b,D._empty=E;let w=this;return Object.defineProperty(D,"level",{enumerable:!0,get(){return w.level},set(v){w.level=v}}),Object.defineProperty(D,"enabled",{enumerable:!0,get(){return w.enabled},set(v){w.enabled=v}}),D.hasGrey=this.hasGrey||g==="gray"||g==="grey",D.__proto__=o,D}function h(){let b=arguments,E=b.length,g=String(arguments[0]);if(E===0)return"";if(E>1)for(let w=1;w<E;w++)g+=" "+b[w];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let D=s.dim.open;u&&this.hasGrey&&(s.dim.open="");for(let w of this._styles.slice().reverse())g=w.open+g.replace(w.closeRe,w.open)+w.close,g=g.replace(/\r?\n/g,`${w.close}$&${w.open}`);return s.dim.open=D,g}function y(b,E){if(!Array.isArray(E))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),D=[E.raw[0]];for(let w=1;w<E.length;w++)D.push(String(g[w-1]).replace(/[{}\\]/g,"\\$&")),D.push(String(E.raw[w]));return p(b,D.join(""))}Object.defineProperties(c.prototype,f),l.exports=c(),l.exports.supportsColor=i,l.exports.default=l.exports});var Bo=N((t,l)=>{B();var n=Z("constants"),s=process.cwd,i=null,p=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=s.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(e){i=null,u.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;l.exports=r;function r(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(e),e.lutimes||a(e),e.chown=d(e.chown),e.fchown=d(e.fchown),e.lchown=d(e.lchown),e.chmod=c(e.chmod),e.fchmod=c(e.fchmod),e.lchmod=c(e.lchmod),e.chownSync=h(e.chownSync),e.fchownSync=h(e.fchownSync),e.lchownSync=h(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=y(e.stat),e.fstat=y(e.fstat),e.lstat=y(e.lstat),e.statSync=b(e.statSync),e.fstatSync=b(e.fstatSync),e.lstatSync=b(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(g,D,w){w&&process.nextTick(w)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(g,D,w,v){v&&process.nextTick(v)},e.lchownSync=function(){}),p==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(g){function D(w,v,m){var _=Date.now(),S=0;g(w,v,function A(x){if(x&&(x.code==="EACCES"||x.code==="EPERM"||x.code==="EBUSY")&&Date.now()-_<6e4){setTimeout(function(){e.stat(v,function(L,T){L&&L.code==="ENOENT"?g(w,v,A):m(x)})},S),S<100&&(S+=10);return}m&&m(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.rename)),e.read=typeof e.read!="function"?e.read:function(g){function D(w,v,m,_,S,A){var x;if(A&&typeof A=="function"){var L=0;x=function(T,F,R){if(T&&T.code==="EAGAIN"&&L<10)return L++,g.call(e,w,v,m,_,S,x);A.apply(this,arguments)}}return g.call(e,w,v,m,_,S,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(g){return function(D,w,v,m,_){for(var S=0;;)try{return g.call(e,D,w,v,m,_)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(e.readSync);function f(g){g.lchmod=function(D,w,v){g.open(D,n.O_WRONLY|n.O_SYMLINK,w,function(m,_){if(m){v&&v(m);return}g.fchmod(_,w,function(S){g.close(_,function(A){v&&v(S||A)})})})},g.lchmodSync=function(D,w){var v=g.openSync(D,n.O_WRONLY|n.O_SYMLINK,w),m=!0,_;try{_=g.fchmodSync(v,w),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return _}}function a(g){n.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(D,w,v,m){g.open(D,n.O_SYMLINK,function(_,S){if(_){m&&m(_);return}g.futimes(S,w,v,function(A){g.close(S,function(x){m&&m(A||x)})})})},g.lutimesSync=function(D,w,v){var m=g.openSync(D,n.O_SYMLINK),_,S=!0;try{_=g.futimesSync(m,w,v),S=!1}finally{if(S)try{g.closeSync(m)}catch{}else g.closeSync(m)}return _}):g.futimes&&(g.lutimes=function(D,w,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function c(g){return g&&function(D,w,v){return g.call(e,D,w,function(m){E(m)&&(m=null),v&&v.apply(this,arguments)})}}function o(g){return g&&function(D,w){try{return g.call(e,D,w)}catch(v){if(!E(v))throw v}}}function d(g){return g&&function(D,w,v,m){return g.call(e,D,w,v,function(_){E(_)&&(_=null),m&&m.apply(this,arguments)})}}function h(g){return g&&function(D,w,v){try{return g.call(e,D,w,v)}catch(m){if(!E(m))throw m}}}function y(g){return g&&function(D,w,v){typeof w=="function"&&(v=w,w=null);function m(_,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),v&&v.apply(this,arguments)}return w?g.call(e,D,w,m):g.call(e,D,m)}}function b(g){return g&&function(D,w){var v=w?g.call(e,D,w):g.call(e,D);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function E(g){if(!g||g.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),Po=N((t,l)=>{B();var n=Z("stream").Stream;l.exports=s;function s(i){return{ReadStream:p,WriteStream:u};function p(r,e){if(!(this instanceof p))return new p(r,e);n.call(this);var f=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,e=e||{};for(var a=Object.keys(e),c=0,o=a.length;c<o;c++){var d=a[c];this[d]=e[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(h,y){if(h){f.emit("error",h),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function u(r,e){if(!(this instanceof u))return new u(r,e);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,e=e||{};for(var f=Object.keys(e),a=0,c=f.length;a<c;a++){var o=f[a];this[o]=e[o]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Lo=N((t,l)=>{"use strict";B(),l.exports=s;var n=Object.getPrototypeOf||function(i){return i.__proto__};function s(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var p={__proto__:n(i)};else var p=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(p,u,Object.getOwnPropertyDescriptor(i,u))}),p}}),Ct=N((t,l)=>{B();var n=Z("fs"),s=Bo(),i=Po(),p=Lo(),u=Z("util"),r,e;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),e=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",e="___graceful-fs.previous");function f(){}function a(g,D){Object.defineProperty(g,r,{get:function(){return D}})}var c=f;u.debuglog?c=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var g=u.format.apply(u,arguments);g="GFS4: "+g.split(/\n/).join(`
7
7
  GFS4: `),console.error(g)}),n[r]||(o=global[r]||[],a(n,o),n.close=function(g){function D(w,v){return g.call(n,w,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(D,e,{value:g}),D}(n.close),n.closeSync=function(g){function D(w){g.apply(n,arguments),b()}return Object.defineProperty(D,e,{value:g}),D}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){c(n[r]),Z("assert").equal(n[r].length,0)}));var o;global[r]||a(global,n[r]),l.exports=d(p(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(l.exports=d(n),n.__patched=!0);function d(g){s(g),g.gracefulify=d,g.createReadStream=k,g.createWriteStream=J;var D=g.readFile;g.readFile=w;function w(M,K,et){return typeof K=="function"&&(et=K,K=null),ot(M,K,et);function ot(ct,gt,mt,H){return D(ct,gt,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?h([ot,[ct,gt,mt],V,H||Date.now(),Date.now()]):typeof mt=="function"&&mt.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(M,K,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return v(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var _=g.appendFile;_&&(g.appendFile=S);function S(M,K,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return _(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var A=g.copyFile;A&&(g.copyFile=x);function x(M,K,et,ot){return typeof et=="function"&&(ot=et,et=0),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return A(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var L=g.readdir;g.readdir=F;var T=/^v[0-5]\./;function F(M,K,et){typeof K=="function"&&(et=K,K=null);var ot=T.test(process.version)?function(gt,mt,H,V){return L(gt,ct(gt,mt,H,V))}:function(gt,mt,H,V){return L(gt,mt,ct(gt,mt,H,V))};return ot(M,K,et);function ct(gt,mt,H,V){return function(C,z){C&&(C.code==="EMFILE"||C.code==="ENFILE")?h([ot,[gt,mt,H],C,V||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof H=="function"&&H.call(this,C,z))}}}if(process.version.substr(0,4)==="v0.8"){var R=i(g);W=R.ReadStream,P=R.WriteStream}var I=g.ReadStream;I&&(W.prototype=Object.create(I.prototype),W.prototype.open=Q);var $=g.WriteStream;$&&(P.prototype=Object.create($.prototype),P.prototype.open=j),Object.defineProperty(g,"ReadStream",{get:function(){return W},set:function(M){W=M},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return P},set:function(M){P=M},enumerable:!0,configurable:!0});var O=W;Object.defineProperty(g,"FileReadStream",{get:function(){return O},set:function(M){O=M},enumerable:!0,configurable:!0});var q=P;Object.defineProperty(g,"FileWriteStream",{get:function(){return q},set:function(M){q=M},enumerable:!0,configurable:!0});function W(M,K){return this instanceof W?(I.apply(this,arguments),this):W.apply(Object.create(W.prototype),arguments)}function Q(){var M=this;tt(M.path,M.flags,M.mode,function(K,et){K?(M.autoClose&&M.destroy(),M.emit("error",K)):(M.fd=et,M.emit("open",et),M.read())})}function P(M,K){return this instanceof P?($.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function j(){var M=this;tt(M.path,M.flags,M.mode,function(K,et){K?(M.destroy(),M.emit("error",K)):(M.fd=et,M.emit("open",et))})}function k(M,K){return new g.ReadStream(M,K)}function J(M,K){return new g.WriteStream(M,K)}var G=g.open;g.open=tt;function tt(M,K,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return G(gt,mt,H,function(z,X){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return g}function h(g){c("ENQUEUE",g[0].name,g[1]),n[r].push(g),E()}var y;function b(){for(var g=Date.now(),D=0;D<n[r].length;++D)n[r][D].length>2&&(n[r][D][3]=g,n[r][D][4]=g);E()}function E(){if(clearTimeout(y),y=void 0,n[r].length!==0){var g=n[r].shift(),D=g[0],w=g[1],v=g[2],m=g[3],_=g[4];if(m===void 0)c("RETRY",D.name,w),D.apply(null,w);else if(Date.now()-m>=6e4){c("TIMEOUT",D.name,w);var S=w.pop();typeof S=="function"&&S.call(null,v)}else{var A=Date.now()-_,x=Math.max(_-m,1),L=Math.min(x*1.2,100);A>=L?(c("RETRY",D.name,w),D.apply(null,w.concat([m]))):n[r].push(g)}y===void 0&&(y=setTimeout(E,0))}}});var Wt=N(t=>{"use strict";B(),t.fromCallback=function(l){return Object.defineProperty(function(...n){if(typeof n[n.length-1]=="function")l.apply(this,n);else return new Promise((s,i)=>{l.call(this,...n,(p,u)=>p!=null?i(p):s(u))})},"name",{value:l.name})},t.fromPromise=function(l){return Object.defineProperty(function(...n){let s=n[n.length-1];if(typeof s!="function")return l.apply(this,n);l.apply(this,n.slice(0,-1)).then(i=>s(null,i),s)},"name",{value:l.name})}}),Ee=N(t=>{"use strict";B();var l=Wt().fromCallback,n=Ct(),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof n[i]=="function");Object.assign(t,n),s.forEach(i=>{t[i]=l(n[i])}),t.exists=function(i,p){return typeof p=="function"?n.exists(i,p):new Promise(u=>n.exists(i,u))},t.read=function(i,p,u,r,e,f){return typeof f=="function"?n.read(i,p,u,r,e,f):new Promise((a,c)=>{n.read(i,p,u,r,e,(o,d,h)=>{if(o)return c(o);a({bytesRead:d,buffer:h})})})},t.write=function(i,p,...u){return typeof u[u.length-1]=="function"?n.write(i,p,...u):new Promise((r,e)=>{n.write(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffer:c})})})},t.readv=function(i,p,...u){return typeof u[u.length-1]=="function"?n.readv(i,p,...u):new Promise((r,e)=>{n.readv(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesRead:a,buffers:c})})})},t.writev=function(i,p,...u){return typeof u[u.length-1]=="function"?n.writev(i,p,...u):new Promise((r,e)=>{n.writev(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffers:c})})})},typeof n.realpath.native=="function"?t.realpath.native=l(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),Io=N((t,l)=>{"use strict";B();var n=Z("path");l.exports.checkPath=function(s){if(process.platform==="win32"&&/[<>:"|?*]/.test(s.replace(n.parse(s).root,""))){let i=new Error(`Path contains invalid characters: ${s}`);throw i.code="EINVAL",i}}}),No=N((t,l)=>{"use strict";B();var n=Ee(),{checkPath:s}=Io(),i=p=>typeof p=="number"?p:{...{mode:511},...p}.mode;l.exports.makeDir=async(p,u)=>(s(p),n.mkdir(p,{mode:i(u),recursive:!0})),l.exports.makeDirSync=(p,u)=>(s(p),n.mkdirSync(p,{mode:i(u),recursive:!0}))}),Xt=N((t,l)=>{"use strict";B();var n=Wt().fromPromise,{makeDir:s,makeDirSync:i}=No(),p=n(s);l.exports={mkdirs:p,mkdirsSync:i,mkdirp:p,mkdirpSync:i,ensureDir:p,ensureDirSync:i}}),de=N((t,l)=>{"use strict";B();var n=Wt().fromPromise,s=Ee();function i(p){return s.access(p).then(()=>!0).catch(()=>!1)}l.exports={pathExists:n(i),pathExistsSync:s.existsSync}}),xn=N((t,l)=>{"use strict";B();var n=Ct();function s(p,u,r,e){n.open(p,"r+",(f,a)=>{if(f)return e(f);n.futimes(a,u,r,c=>{n.close(a,o=>{e&&e(c||o)})})})}function i(p,u,r){let e=n.openSync(p,"r+");return n.futimesSync(e,u,r),n.closeSync(e)}l.exports={utimesMillis:s,utimesMillisSync:i}}),_e=N((t,l)=>{"use strict";B();var n=Ee(),s=Z("path"),i=Z("util");function p(h,y,b){let E=b.dereference?g=>n.stat(g,{bigint:!0}):g=>n.lstat(g,{bigint:!0});return Promise.all([E(h),E(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,D])=>({srcStat:g,destStat:D}))}function u(h,y,b){let E,g=b.dereference?w=>n.statSync(w,{bigint:!0}):w=>n.lstatSync(w,{bigint:!0}),D=g(h);try{E=g(y)}catch(w){if(w.code==="ENOENT")return{srcStat:D,destStat:null};throw w}return{srcStat:D,destStat:E}}function r(h,y,b,E,g){i.callbackify(p)(h,y,E,(D,w)=>{if(D)return g(D);let{srcStat:v,destStat:m}=w;if(m){if(c(v,m)){let _=s.basename(h),S=s.basename(y);return b==="move"&&_!==S&&_.toLowerCase()===S.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${h}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${h}'.`))}return v.isDirectory()&&o(h,y)?g(new Error(d(h,y,b))):g(null,{srcStat:v,destStat:m})})}function e(h,y,b,E){let{srcStat:g,destStat:D}=u(h,y,E);if(D){if(c(g,D)){let w=s.basename(h),v=s.basename(y);if(b==="move"&&w!==v&&w.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:D,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!D.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${h}'.`);if(!g.isDirectory()&&D.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${h}'.`)}if(g.isDirectory()&&o(h,y))throw new Error(d(h,y,b));return{srcStat:g,destStat:D}}function f(h,y,b,E,g){let D=s.resolve(s.dirname(h)),w=s.resolve(s.dirname(b));if(w===D||w===s.parse(w).root)return g();n.stat(w,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):c(y,m)?g(new Error(d(h,b,E))):f(h,y,w,E,g))}function a(h,y,b,E){let g=s.resolve(s.dirname(h)),D=s.resolve(s.dirname(b));if(D===g||D===s.parse(D).root)return;let w;try{w=n.statSync(D,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(c(y,w))throw new Error(d(h,b,E));return a(h,y,D,E)}function c(h,y){return y.ino&&y.dev&&y.ino===h.ino&&y.dev===h.dev}function o(h,y){let b=s.resolve(h).split(s.sep).filter(g=>g),E=s.resolve(y).split(s.sep).filter(g=>g);return b.reduce((g,D,w)=>g&&E[w]===D,!0)}function d(h,y,b){return`Cannot ${b} '${h}' to a subdirectory of itself, '${y}'.`}l.exports={checkPaths:r,checkPathsSync:e,checkParentPaths:f,checkParentPathsSync:a,isSrcSubdir:o,areIdentical:c}}),jo=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Xt().mkdirs,p=de().pathExists,u=xn().utimesMillis,r=_e();function e(T,F,R,I){typeof R=="function"&&!I?(I=R,R={}):typeof R=="function"&&(R={filter:R}),I=I||function(){},R=R||{},R.clobber="clobber"in R?!!R.clobber:!0,R.overwrite="overwrite"in R?!!R.overwrite:R.clobber,R.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
8
8
 
9
9
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),r.checkPaths(T,F,"copy",R,($,O)=>{if($)return I($);let{srcStat:q,destStat:W}=O;r.checkParentPaths(T,q,F,"copy",Q=>{if(Q)return I(Q);a(T,F,R,(P,j)=>{if(P)return I(P);if(!j)return I();f(W,T,F,R,I)})})})}function f(T,F,R,I,$){let O=s.dirname(R);p(O,(q,W)=>{if(q)return $(q);if(W)return c(T,F,R,I,$);i(O,Q=>Q?$(Q):c(T,F,R,I,$))})}function a(T,F,R,I){if(!R.filter)return I(null,!0);Promise.resolve(R.filter(T,F)).then($=>I(null,$),$=>I($))}function c(T,F,R,I,$){(I.dereference?n.stat:n.lstat)(F,(O,q)=>O?$(O):q.isDirectory()?v(q,T,F,R,I,$):q.isFile()||q.isCharacterDevice()||q.isBlockDevice()?o(q,T,F,R,I,$):q.isSymbolicLink()?x(T,F,R,I,$):q.isSocket()?$(new Error(`Cannot copy a socket file: ${F}`)):q.isFIFO()?$(new Error(`Cannot copy a FIFO pipe: ${F}`)):$(new Error(`Unknown file: ${F}`)))}function o(T,F,R,I,$,O){return F?d(T,R,I,$,O):h(T,R,I,$,O)}function d(T,F,R,I,$){if(I.overwrite)n.unlink(R,O=>O?$(O):h(T,F,R,I,$));else return I.errorOnExist?$(new Error(`'${R}' already exists`)):$()}function h(T,F,R,I,$){n.copyFile(F,R,O=>O?$(O):I.preserveTimestamps?y(T.mode,F,R,$):D(R,T.mode,$))}function y(T,F,R,I){return b(T)?E(R,T,$=>$?I($):g(T,F,R,I)):g(T,F,R,I)}function b(T){return(T&128)===0}function E(T,F,R){return D(T,F|128,R)}function g(T,F,R,I){w(F,R,$=>$?I($):D(R,T,I))}function D(T,F,R){return n.chmod(T,F,R)}function w(T,F,R){n.stat(T,(I,$)=>I?R(I):u(F,$.atime,$.mtime,R))}function v(T,F,R,I,$,O){return F?_(R,I,$,O):m(T.mode,R,I,$,O)}function m(T,F,R,I,$){n.mkdir(R,O=>{if(O)return $(O);_(F,R,I,q=>q?$(q):D(R,T,$))})}function _(T,F,R,I){n.readdir(T,($,O)=>$?I($):S(O,T,F,R,I))}function S(T,F,R,I,$){let O=T.pop();return O?A(T,O,F,R,I,$):$()}function A(T,F,R,I,$,O){let q=s.join(R,F),W=s.join(I,F);a(q,W,$,(Q,P)=>{if(Q)return O(Q);if(!P)return S(T,R,I,$,O);r.checkPaths(q,W,"copy",$,(j,k)=>{if(j)return O(j);let{destStat:J}=k;c(J,q,W,$,G=>G?O(G):S(T,R,I,$,O))})})}function x(T,F,R,I,$){n.readlink(F,(O,q)=>{if(O)return $(O);if(I.dereference&&(q=s.resolve(process.cwd(),q)),T)n.readlink(R,(W,Q)=>W?W.code==="EINVAL"||W.code==="UNKNOWN"?n.symlink(q,R,$):$(W):(I.dereference&&(Q=s.resolve(process.cwd(),Q)),r.isSrcSubdir(q,Q)?$(new Error(`Cannot copy '${q}' to a subdirectory of itself, '${Q}'.`)):r.isSrcSubdir(Q,q)?$(new Error(`Cannot overwrite '${Q}' with '${q}'.`)):L(q,R,$)));else return n.symlink(q,R,$)})}function L(T,F,R){n.unlink(F,I=>I?R(I):n.symlink(T,F,R))}l.exports=e}),Mo=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Xt().mkdirsSync,p=xn().utimesMillisSync,u=_e();function r(_,S,A){typeof A=="function"&&(A={filter:A}),A=A||{},A.clobber="clobber"in A?!!A.clobber:!0,A.overwrite="overwrite"in A?!!A.overwrite:A.clobber,A.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
@@ -3,7 +3,7 @@
3
3
  `.charCodeAt(),i=typeof n=="string"?"\r":"\r".charCodeAt();return n[n.length-1]===s&&(n=n.slice(0,n.length-1)),n[n.length-1]===i&&(n=n.slice(0,n.length-1)),n}}),co=N((t,l)=>{"use strict";B();var n=Z("path"),s=An(),i=p=>{p={cwd:process.cwd(),path:process.env[s()],execPath:process.execPath,...p};let u,r=n.resolve(p.cwd),e=[];for(;u!==r;)e.push(n.join(r,"node_modules/.bin")),u=r,r=n.resolve(r,"..");let f=n.resolve(p.cwd,p.execPath,"..");return e.push(f),e.concat(p.path).join(n.delimiter)};l.exports=i,l.exports.default=i,l.exports.env=p=>{p={env:process.env,...p};let u={...p.env},r=s({env:u});return p.path=u[r],u[r]=l.exports(p),u}}),ho=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;var l=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=l}),Cn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;var l=function(){let p=i-s+1;return Array.from({length:p},n)};t.getRealtimeSignals=l;var n=function(p,u){return{name:`SIGRT${u+1}`,number:s+u,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},s=34,i=64;t.SIGRTMAX=i}),fo=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var l=Z("os"),n=ho(),s=Cn(),i=function(){let u=(0,s.getRealtimeSignals)();return[...n.SIGNALS,...u].map(p)};t.getSignals=i;var p=function({name:u,number:r,description:e,action:f,forced:a=!1,standard:c}){let{signals:{[u]:o}}=l.constants,d=o!==void 0;return{name:u,number:d?o:r,description:e,supported:d,action:f,forced:a,standard:c}}}),po=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var l=Z("os"),n=fo(),s=Cn(),i=function(){return(0,n.getSignals)().reduce(p,{})},p=function(c,{name:o,number:d,description:h,supported:y,action:b,forced:E,standard:g}){return{...c,[o]:{name:o,number:d,description:h,supported:y,action:b,forced:E,standard:g}}},u=i();t.signalsByName=u;var r=function(){let c=(0,n.getSignals)(),o=s.SIGRTMAX+1,d=Array.from({length:o},(h,y)=>e(y,c));return Object.assign({},...d)},e=function(c,o){let d=f(c,o);if(d===void 0)return{};let{name:h,description:y,supported:b,action:E,forced:g,standard:D}=d;return{[c]:{name:h,number:c,description:y,supported:b,action:E,forced:g,standard:D}}},f=function(c,o){let d=o.find(({name:h})=>l.constants.signals[h]===c);return d!==void 0?d:o.find(h=>h.number===c)},a=r();t.signalsByNumber=a}),mo=N((t,l)=>{"use strict";B();var{signalsByName:n}=po(),s=({timedOut:p,timeout:u,errorCode:r,signal:e,signalDescription:f,exitCode:a,isCanceled:c})=>p?`timed out after ${u} milliseconds`:c?"was canceled":r!==void 0?`failed with ${r}`:e!==void 0?`was killed with ${e} (${f})`:a!==void 0?`failed with exit code ${a}`:"failed",i=({stdout:p,stderr:u,all:r,error:e,signal:f,exitCode:a,command:c,escapedCommand:o,timedOut:d,isCanceled:h,killed:y,parsed:{options:{timeout:b}}})=>{a=a===null?void 0:a,f=f===null?void 0:f;let E=f===void 0?void 0:n[f].description,g=e&&e.code,D=`Command ${s({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:E,exitCode:a,isCanceled:h})}: ${c}`,w=Object.prototype.toString.call(e)==="[object Error]",v=w?`${D}
4
4
  ${e.message}`:D,m=[v,u,p].filter(Boolean).join(`
5
5
  `);return w?(e.originalMessage=e.message,e.message=m):e=new Error(m),e.shortMessage=v,e.command=c,e.escapedCommand=o,e.exitCode=a,e.signal=f,e.signalDescription=E,e.stdout=p,e.stderr=u,r!==void 0&&(e.all=r),"bufferedData"in e&&delete e.bufferedData,e.failed=!0,e.timedOut=!!d,e.isCanceled=h,e.killed=y&&!d,e};l.exports=i}),yo=N((t,l)=>{"use strict";B();var n=["stdin","stdout","stderr"],s=p=>n.some(u=>p[u]!==void 0),i=p=>{if(!p)return;let{stdio:u}=p;if(u===void 0)return n.map(e=>p[e]);if(s(p))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(e=>`\`${e}\``).join(", ")}`);if(typeof u=="string")return u;if(!Array.isArray(u))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``);let r=Math.max(u.length,n.length);return Array.from({length:r},(e,f)=>u[f])};l.exports=i,l.exports.node=p=>{let u=i(p);return u==="ipc"?"ipc":u===void 0||typeof u=="string"?[u,u,u,"ipc"]:u.includes("ipc")?u:[...u,"ipc"]}}),go=N((t,l)=>{"use strict";B();var n=Z("os"),s=Xe(),i=1e3*5,p=(y,b="SIGTERM",E={})=>{let g=y(b);return u(y,b,E,g),g},u=(y,b,E,g)=>{if(!r(b,E,g))return;let D=f(E),w=setTimeout(()=>{y("SIGKILL")},D);w.unref&&w.unref()},r=(y,{forceKillAfterTimeout:b},E)=>e(y)&&b!==!1&&E,e=y=>y===n.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},a=(y,b)=>{y.kill()&&(b.isCanceled=!0)},c=(y,b,E)=>{y.kill(b),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},o=(y,{timeout:b,killSignal:E="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let D,w=new Promise((m,_)=>{D=setTimeout(()=>{c(y,E,_)},b)}),v=g.finally(()=>{clearTimeout(D)});return Promise.race([w,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},h=async(y,{cleanup:b,detached:E},g)=>{if(!b||E)return g;let D=s(()=>{y.kill()});return g.finally(()=>{D()})};l.exports={spawnedKill:p,spawnedCancel:a,setupTimeout:o,validateTimeout:d,setExitHandler:h}}),bo=N((t,l)=>{"use strict";B();var n=s=>s!==null&&typeof s=="object"&&typeof s.pipe=="function";n.writable=s=>n(s)&&s.writable!==!1&&typeof s._write=="function"&&typeof s._writableState=="object",n.readable=s=>n(s)&&s.readable!==!1&&typeof s._read=="function"&&typeof s._readableState=="object",n.duplex=s=>n.writable(s)&&n.readable(s),n.transform=s=>n.duplex(s)&&typeof s._transform=="function",l.exports=n}),vo=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=s=>{s={...s};let{array:i}=s,{encoding:p}=s,u=p==="buffer",r=!1;i?r=!(p||u):p=p||"utf8",u&&(p=null);let e=new n({objectMode:r});p&&e.setEncoding(p);let f=0,a=[];return e.on("data",c=>{a.push(c),r?f=a.length:f+=c.length}),e.getBufferedValue=()=>i?a:u?Buffer.concat(a,f):a.join(""),e.getBufferedLength=()=>f,e}}),Eo=N((t,l)=>{"use strict";B();var{constants:n}=Z("buffer"),s=Z("stream"),{promisify:i}=Z("util"),p=vo(),u=i(s.pipeline),r=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function e(f,a){if(!f)throw new Error("Expected a stream");a={maxBuffer:1/0,...a};let{maxBuffer:c}=a,o=p(a);return await new Promise((d,h)=>{let y=b=>{b&&o.getBufferedLength()<=n.MAX_LENGTH&&(b.bufferedData=o.getBufferedValue()),h(b)};(async()=>{try{await u(f,o),d()}catch(b){y(b)}})(),o.on("data",()=>{o.getBufferedLength()>c&&y(new r)})}),o.getBufferedValue()}l.exports=e,l.exports.buffer=(f,a)=>e(f,{...a,encoding:"buffer"}),l.exports.array=(f,a)=>e(f,{...a,array:!0}),l.exports.MaxBufferError=r}),_o=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=function(){var s=[],i=new n({objectMode:!0});return i.setMaxListeners(0),i.add=p,i.isEmpty=u,i.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(p),i;function p(e){return Array.isArray(e)?(e.forEach(p),this):(s.push(e),e.once("end",r.bind(null,e)),e.once("error",i.emit.bind(i,"error")),e.pipe(i,{end:!1}),this)}function u(){return s.length==0}function r(e){s=s.filter(function(f){return f!==e}),!s.length&&i.readable&&i.end()}}}),wo=N((t,l)=>{"use strict";B();var n=bo(),s=Eo(),i=_o(),p=(c,o)=>{o===void 0||c.stdin===void 0||(n(o)?o.pipe(c.stdin):c.stdin.end(o))},u=(c,{all:o})=>{if(!o||!c.stdout&&!c.stderr)return;let d=i();return c.stdout&&d.add(c.stdout),c.stderr&&d.add(c.stderr),d},r=async(c,o)=>{if(c){c.destroy();try{return await o}catch(d){return d.bufferedData}}},e=(c,{encoding:o,buffer:d,maxBuffer:h})=>{if(!(!c||!d))return o?s(c,{encoding:o,maxBuffer:h}):s.buffer(c,{maxBuffer:h})},f=async({stdout:c,stderr:o,all:d},{encoding:h,buffer:y,maxBuffer:b},E)=>{let g=e(c,{encoding:h,buffer:y,maxBuffer:b}),D=e(o,{encoding:h,buffer:y,maxBuffer:b}),w=e(d,{encoding:h,buffer:y,maxBuffer:b*2});try{return await Promise.all([E,g,D,w])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},r(c,g),r(o,D),r(d,w)])}},a=({input:c})=>{if(n(c))throw new TypeError("The `input` option cannot be a stream in sync mode")};l.exports={handleInput:p,makeAllStream:u,getSpawnedResult:f,validateInputSync:a}}),Do=N((t,l)=>{"use strict";B();var n=(async()=>{})().constructor.prototype,s=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(n,u)]),i=(u,r)=>{for(let[e,f]of s){let a=typeof r=="function"?(...c)=>Reflect.apply(f.value,r(),c):f.value.bind(r);Reflect.defineProperty(u,e,{...f,value:a})}return u},p=u=>new Promise((r,e)=>{u.on("exit",(f,a)=>{r({exitCode:f,signal:a})}),u.on("error",f=>{e(f)}),u.stdin&&u.stdin.on("error",f=>{e(f)})});l.exports={mergePromise:i,getSpawnedPromise:p}}),So=N((t,l)=>{"use strict";B();var n=(a,c=[])=>Array.isArray(c)?[a,...c]:[a],s=/^[\w.-]+$/,i=/"/g,p=a=>typeof a!="string"||s.test(a)?a:`"${a.replace(i,'\\"')}"`,u=(a,c)=>n(a,c).join(" "),r=(a,c)=>n(a,c).map(o=>p(o)).join(" "),e=/ +/g,f=a=>{let c=[];for(let o of a.trim().split(e)){let d=c[c.length-1];d&&d.endsWith("\\")?c[c.length-1]=`${d.slice(0,-1)} ${o}`:c.push(o)}return c};l.exports={joinCommand:u,getEscapedCommand:r,parseCommand:f}}),Ao=N((t,l)=>{"use strict";B();var n=Z("path"),s=Z("child_process"),i=ao(),p=lo(),u=co(),r=Ze(),e=mo(),f=yo(),{spawnedKill:a,spawnedCancel:c,setupTimeout:o,validateTimeout:d,setExitHandler:h}=go(),{handleInput:y,getSpawnedResult:b,makeAllStream:E,validateInputSync:g}=wo(),{mergePromise:D,getSpawnedPromise:w}=Do(),{joinCommand:v,parseCommand:m,getEscapedCommand:_}=So(),S=1e3*1e3*100,A=({env:F,extendEnv:R,preferLocal:I,localDir:$,execPath:O})=>{let q=R?{...process.env,...F}:F;return I?u.env({env:q,cwd:$,execPath:O}):q},x=(F,R,I={})=>{let $=i._parse(F,R,I);return F=$.command,R=$.args,I=$.options,I={maxBuffer:S,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:I.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...I},I.env=A(I),I.stdio=f(I),process.platform==="win32"&&n.basename(F,".exe")==="cmd"&&R.unshift("/q"),{file:F,args:R,options:I,parsed:$}},L=(F,R,I)=>typeof R!="string"&&!Buffer.isBuffer(R)?I===void 0?void 0:"":F.stripFinalNewline?p(R):R,T=(F,R,I)=>{let $=x(F,R,I),O=v(F,R),q=_(F,R);d($.options);let W;try{W=s.spawn($.file,$.args,$.options)}catch(G){let tt=new s.ChildProcess,M=Promise.reject(e({error:G,stdout:"",stderr:"",all:"",command:O,escapedCommand:q,parsed:$,timedOut:!1,isCanceled:!1,killed:!1}));return D(tt,M)}let Q=w(W),P=o(W,$.options,Q),j=h(W,$.options,P),k={isCanceled:!1};W.kill=a.bind(null,W.kill.bind(W)),W.cancel=c.bind(null,W,k);let J=r(async()=>{let[{error:G,exitCode:tt,signal:M,timedOut:K},et,ot,ct]=await b(W,$.options,j),gt=L($.options,et),mt=L($.options,ot),H=L($.options,ct);if(G||tt!==0||M!==null){let V=e({error:G,exitCode:tt,signal:M,stdout:gt,stderr:mt,all:H,command:O,escapedCommand:q,parsed:$,timedOut:K,isCanceled:k.isCanceled,killed:W.killed});if(!$.options.reject)return V;throw V}return{command:O,escapedCommand:q,exitCode:0,stdout:gt,stderr:mt,all:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(W,$.options.input),W.all=E(W,$.options),D(W,J)};l.exports=T,l.exports.sync=(F,R,I)=>{let $=x(F,R,I),O=v(F,R),q=_(F,R);g($.options);let W;try{W=s.spawnSync($.file,$.args,$.options)}catch(j){throw e({error:j,stdout:"",stderr:"",all:"",command:O,escapedCommand:q,parsed:$,timedOut:!1,isCanceled:!1,killed:!1})}let Q=L($.options,W.stdout,W.error),P=L($.options,W.stderr,W.error);if(W.error||W.status!==0||W.signal!==null){let j=e({stdout:Q,stderr:P,error:W.error,signal:W.signal,exitCode:W.status,command:O,escapedCommand:q,parsed:$,timedOut:W.error&&W.error.code==="ETIMEDOUT",isCanceled:!1,killed:W.signal!==null});if(!$.options.reject)return j;throw j}return{command:O,escapedCommand:q,exitCode:0,stdout:Q,stderr:P,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},l.exports.command=(F,R)=>{let[I,...$]=m(F);return T(I,$,R)},l.exports.commandSync=(F,R)=>{let[I,...$]=m(F);return T.sync(I,$,R)},l.exports.node=(F,R,I={})=>{R&&!Array.isArray(R)&&typeof R=="object"&&(I=R,R=[]);let $=f.node(I),O=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:q=process.execPath,nodeOptions:W=O}=I;return T(q,[...W,F,...Array.isArray(R)?R:[]],{...I,stdin:void 0,stdout:void 0,stderr:void 0,stdio:$,shell:!1})}});B();var $p=Rt(Ao());B();var Co=N((t,l)=>{"use strict";B();var n=/[|\\{}()[\]^$+*?.]/g;l.exports=function(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(n,"\\$&")}}),xo=N((t,l)=>{"use strict";B(),l.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]}}),xn=N((t,l)=>{B();var n=xo(),s={};for(i in n)n.hasOwnProperty(i)&&(s[n[i]]=i);var i,p=l.exports={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"]}};for(e in p)if(p.hasOwnProperty(e)){if(!("channels"in p[e]))throw new Error("missing channels property: "+e);if(!("labels"in p[e]))throw new Error("missing channel labels property: "+e);if(p[e].labels.length!==p[e].channels)throw new Error("channel and label counts mismatch: "+e);u=p[e].channels,r=p[e].labels,delete p[e].channels,delete p[e].labels,Object.defineProperty(p[e],"channels",{value:u}),Object.defineProperty(p[e],"labels",{value:r})}var u,r,e;p.rgb.hsl=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h=Math.min(c,o,d),y=Math.max(c,o,d),b=y-h,E,g,D;return y===h?E=0:c===y?E=(o-d)/b:o===y?E=2+(d-c)/b:d===y&&(E=4+(c-o)/b),E=Math.min(E*60,360),E<0&&(E+=360),D=(h+y)/2,y===h?g=0:D<=.5?g=b/(y+h):g=b/(2-y-h),[E,g*100,D*100]},p.rgb.hsv=function(a){var c,o,d,h,y,b=a[0]/255,E=a[1]/255,g=a[2]/255,D=Math.max(b,E,g),w=D-Math.min(b,E,g),v=function(m){return(D-m)/6/w+1/2};return w===0?h=y=0:(y=w/D,c=v(b),o=v(E),d=v(g),b===D?h=d-o:E===D?h=1/3+c-d:g===D&&(h=2/3+o-c),h<0?h+=1:h>1&&(h-=1)),[h*360,y*100,D*100]},p.rgb.hwb=function(a){var c=a[0],o=a[1],d=a[2],h=p.rgb.hsl(a)[0],y=1/255*Math.min(c,Math.min(o,d));return d=1-1/255*Math.max(c,Math.max(o,d)),[h,y*100,d*100]},p.rgb.cmyk=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h,y,b,E;return E=Math.min(1-c,1-o,1-d),h=(1-c-E)/(1-E)||0,y=(1-o-E)/(1-E)||0,b=(1-d-E)/(1-E)||0,[h*100,y*100,b*100,E*100]};function f(a,c){return Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)+Math.pow(a[2]-c[2],2)}p.rgb.keyword=function(a){var c=s[a];if(c)return c;var o=1/0,d;for(var h in n)if(n.hasOwnProperty(h)){var y=n[h],b=f(a,y);b<o&&(o=b,d=h)}return d},p.keyword.rgb=function(a){return n[a]},p.rgb.xyz=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255;c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var h=c*.4124+o*.3576+d*.1805,y=c*.2126+o*.7152+d*.0722,b=c*.0193+o*.1192+d*.9505;return[h*100,y*100,b*100]},p.rgb.lab=function(a){var c=p.rgb.xyz(a),o=c[0],d=c[1],h=c[2],y,b,E;return o/=95.047,d/=100,h/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,y=116*d-16,b=500*(o-d),E=200*(d-h),[y,b,E]},p.hsl.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100,h,y,b,E,g;if(o===0)return g=d*255,[g,g,g];d<.5?y=d*(1+o):y=d+o-d*o,h=2*d-y,E=[0,0,0];for(var D=0;D<3;D++)b=c+1/3*-(D-1),b<0&&b++,b>1&&b--,6*b<1?g=h+(y-h)*6*b:2*b<1?g=y:3*b<2?g=h+(y-h)*(2/3-b)*6:g=h,E[D]=g*255;return E},p.hsl.hsv=function(a){var c=a[0],o=a[1]/100,d=a[2]/100,h=o,y=Math.max(d,.01),b,E;return d*=2,o*=d<=1?d:2-d,h*=y<=1?y:2-y,E=(d+o)/2,b=d===0?2*h/(y+h):2*o/(d+o),[c,b*100,E*100]},p.hsv.rgb=function(a){var c=a[0]/60,o=a[1]/100,d=a[2]/100,h=Math.floor(c)%6,y=c-Math.floor(c),b=255*d*(1-o),E=255*d*(1-o*y),g=255*d*(1-o*(1-y));switch(d*=255,h){case 0:return[d,g,b];case 1:return[E,d,b];case 2:return[b,d,g];case 3:return[b,E,d];case 4:return[g,b,d];case 5:return[d,b,E]}},p.hsv.hsl=function(a){var c=a[0],o=a[1]/100,d=a[2]/100,h=Math.max(d,.01),y,b,E;return E=(2-o)*d,y=(2-o)*h,b=o*h,b/=y<=1?y:2-y,b=b||0,E/=2,[c,b*100,E*100]},p.hwb.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100,h=o+d,y,b,E,g;h>1&&(o/=h,d/=h),y=Math.floor(6*c),b=1-d,E=6*c-y,y&1&&(E=1-E),g=o+E*(b-o);var D,w,v;switch(y){default:case 6:case 0:D=b,w=g,v=o;break;case 1:D=g,w=b,v=o;break;case 2:D=o,w=b,v=g;break;case 3:D=o,w=g,v=b;break;case 4:D=g,w=o,v=b;break;case 5:D=b,w=o,v=g;break}return[D*255,w*255,v*255]},p.cmyk.rgb=function(a){var c=a[0]/100,o=a[1]/100,d=a[2]/100,h=a[3]/100,y,b,E;return y=1-Math.min(1,c*(1-h)+h),b=1-Math.min(1,o*(1-h)+h),E=1-Math.min(1,d*(1-h)+h),[y*255,b*255,E*255]},p.xyz.rgb=function(a){var c=a[0]/100,o=a[1]/100,d=a[2]/100,h,y,b;return h=c*3.2406+o*-1.5372+d*-.4986,y=c*-.9689+o*1.8758+d*.0415,b=c*.0557+o*-.204+d*1.057,h=h>.0031308?1.055*Math.pow(h,1/2.4)-.055:h*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,h=Math.min(Math.max(0,h),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[h*255,y*255,b*255]},p.xyz.lab=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return c/=95.047,o/=100,d/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=116*o-16,y=500*(c-o),b=200*(o-d),[h,y,b]},p.lab.xyz=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;y=(c+16)/116,h=o/500+y,b=y-d/200;var E=Math.pow(y,3),g=Math.pow(h,3),D=Math.pow(b,3);return y=E>.008856?E:(y-16/116)/7.787,h=g>.008856?g:(h-16/116)/7.787,b=D>.008856?D:(b-16/116)/7.787,h*=95.047,y*=100,b*=108.883,[h,y,b]},p.lab.lch=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return h=Math.atan2(d,o),y=h*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(o*o+d*d),[c,b,y]},p.lch.lab=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return b=d/360*2*Math.PI,h=o*Math.cos(b),y=o*Math.sin(b),[c,h,y]},p.rgb.ansi16=function(a){var c=a[0],o=a[1],d=a[2],h=1 in arguments?arguments[1]:p.rgb.hsv(a)[2];if(h=Math.round(h/50),h===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(o/255)<<1|Math.round(c/255));return h===2&&(y+=60),y},p.hsv.ansi16=function(a){return p.rgb.ansi16(p.hsv.rgb(a),a[2])},p.rgb.ansi256=function(a){var c=a[0],o=a[1],d=a[2];if(c===o&&o===d)return c<8?16:c>248?231:Math.round((c-8)/247*24)+232;var h=16+36*Math.round(c/255*5)+6*Math.round(o/255*5)+Math.round(d/255*5);return h},p.ansi16.rgb=function(a){var c=a%10;if(c===0||c===7)return a>50&&(c+=3.5),c=c/10.5*255,[c,c,c];var o=(~~(a>50)+1)*.5,d=(c&1)*o*255,h=(c>>1&1)*o*255,y=(c>>2&1)*o*255;return[d,h,y]},p.ansi256.rgb=function(a){if(a>=232){var c=(a-232)*10+8;return[c,c,c]}a-=16;var o,d=Math.floor(a/36)/5*255,h=Math.floor((o=a%36)/6)/5*255,y=o%6/5*255;return[d,h,y]},p.rgb.hex=function(a){var c=((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255),o=c.toString(16).toUpperCase();return"000000".substring(o.length)+o},p.hex.rgb=function(a){var c=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var o=c[0];c[0].length===3&&(o=o.split("").map(function(E){return E+E}).join(""));var d=parseInt(o,16),h=d>>16&255,y=d>>8&255,b=d&255;return[h,y,b]},p.rgb.hcg=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h=Math.max(Math.max(c,o),d),y=Math.min(Math.min(c,o),d),b=h-y,E,g;return b<1?E=y/(1-b):E=0,b<=0?g=0:h===c?g=(o-d)/b%6:h===o?g=2+(d-c)/b:g=4+(c-o)/b+4,g/=6,g%=1,[g*360,b*100,E*100]},p.hsl.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=1,h=0;return o<.5?d=2*c*o:d=2*c*(1-o),d<1&&(h=(o-.5*d)/(1-d)),[a[0],d*100,h*100]},p.hsv.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=c*o,h=0;return d<1&&(h=(o-d)/(1-d)),[a[0],d*100,h*100]},p.hcg.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100;if(o===0)return[d*255,d*255,d*255];var h=[0,0,0],y=c%1*6,b=y%1,E=1-b,g=0;switch(Math.floor(y)){case 0:h[0]=1,h[1]=b,h[2]=0;break;case 1:h[0]=E,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=b;break;case 3:h[0]=0,h[1]=E,h[2]=1;break;case 4:h[0]=b,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=E}return g=(1-o)*d,[(o*h[0]+g)*255,(o*h[1]+g)*255,(o*h[2]+g)*255]},p.hcg.hsv=function(a){var c=a[1]/100,o=a[2]/100,d=c+o*(1-c),h=0;return d>0&&(h=c/d),[a[0],h*100,d*100]},p.hcg.hsl=function(a){var c=a[1]/100,o=a[2]/100,d=o*(1-c)+.5*c,h=0;return d>0&&d<.5?h=c/(2*d):d>=.5&&d<1&&(h=c/(2*(1-d))),[a[0],h*100,d*100]},p.hcg.hwb=function(a){var c=a[1]/100,o=a[2]/100,d=c+o*(1-c);return[a[0],(d-c)*100,(1-d)*100]},p.hwb.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=1-o,h=d-c,y=0;return h<1&&(y=(d-h)/(1-h)),[a[0],h*100,y*100]},p.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},p.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},p.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},p.gray.hsl=p.gray.hsv=function(a){return[0,0,a[0]]},p.gray.hwb=function(a){return[0,100,a[0]]},p.gray.cmyk=function(a){return[0,0,0,a[0]]},p.gray.lab=function(a){return[a[0],0,0]},p.gray.hex=function(a){var c=Math.round(a[0]/100*255)&255,o=(c<<16)+(c<<8)+c,d=o.toString(16).toUpperCase();return"000000".substring(d.length)+d},p.rgb.gray=function(a){var c=(a[0]+a[1]+a[2])/3;return[c/255*100]}}),Fo=N((t,l)=>{B();var n=xn();function s(){for(var r={},e=Object.keys(n),f=e.length,a=0;a<f;a++)r[e[a]]={distance:-1,parent:null};return r}function i(r){var e=s(),f=[r];for(e[r].distance=0;f.length;)for(var a=f.pop(),c=Object.keys(n[a]),o=c.length,d=0;d<o;d++){var h=c[d],y=e[h];y.distance===-1&&(y.distance=e[a].distance+1,y.parent=a,f.unshift(h))}return e}function p(r,e){return function(f){return e(r(f))}}function u(r,e){for(var f=[e[r].parent,r],a=n[e[r].parent][r],c=e[r].parent;e[c].parent;)f.unshift(e[c].parent),a=p(n[e[c].parent][c],a),c=e[c].parent;return a.conversion=f,a}l.exports=function(r){for(var e=i(r),f={},a=Object.keys(e),c=a.length,o=0;o<c;o++){var d=a[o],h=e[d];h.parent!==null&&(f[d]=u(d,e))}return f}}),ko=N((t,l)=>{B();var n=xn(),s=Fo(),i={},p=Object.keys(n);function u(e){var f=function(a){return a==null?a:(arguments.length>1&&(a=Array.prototype.slice.call(arguments)),e(a))};return"conversion"in e&&(f.conversion=e.conversion),f}function r(e){var f=function(a){if(a==null)return a;arguments.length>1&&(a=Array.prototype.slice.call(arguments));var c=e(a);if(typeof c=="object")for(var o=c.length,d=0;d<o;d++)c[d]=Math.round(c[d]);return c};return"conversion"in e&&(f.conversion=e.conversion),f}p.forEach(function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});var f=s(e),a=Object.keys(f);a.forEach(function(c){var o=f[c];i[e][c]=r(o),i[e][c].raw=u(o)})}),l.exports=i}),Ro=N((t,l)=>{"use strict";B();var n=ko(),s=(r,e)=>function(){return`\x1B[${r.apply(n,arguments)+e}m`},i=(r,e)=>function(){let f=r.apply(n,arguments);return`\x1B[${38+e};5;${f}m`},p=(r,e)=>function(){let f=r.apply(n,arguments);return`\x1B[${38+e};2;${f[0]};${f[1]};${f[2]}m`};function u(){let r=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],gray:[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.grey=e.color.gray;for(let c of Object.keys(e)){let o=e[c];for(let d of Object.keys(o)){let h=o[d];e[d]={open:`\x1B[${h[0]}m`,close:`\x1B[${h[1]}m`},o[d]=e[d],r.set(h[0],h[1])}Object.defineProperty(e,c,{value:o,enumerable:!1}),Object.defineProperty(e,"codes",{value:r,enumerable:!1})}let f=c=>c,a=(c,o,d)=>[c,o,d];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:s(f,0)},e.color.ansi256={ansi256:i(f,0)},e.color.ansi16m={rgb:p(a,0)},e.bgColor.ansi={ansi:s(f,10)},e.bgColor.ansi256={ansi256:i(f,10)},e.bgColor.ansi16m={rgb:p(a,10)};for(let c of Object.keys(n)){if(typeof n[c]!="object")continue;let o=n[c];c==="ansi16"&&(c="ansi"),"ansi16"in o&&(e.color.ansi[c]=s(o.ansi16,0),e.bgColor.ansi[c]=s(o.ansi16,10)),"ansi256"in o&&(e.color.ansi256[c]=i(o.ansi256,0),e.bgColor.ansi256[c]=i(o.ansi256,10)),"rgb"in o&&(e.color.ansi16m[c]=p(o.rgb,0),e.bgColor.ansi16m[c]=p(o.rgb,10))}return e}Object.defineProperty(l,"exports",{enumerable:!0,get:u})}),Oo=N((t,l)=>{"use strict";B(),l.exports=(n,s)=>{s=s||process.argv;let i=n.startsWith("-")?"":n.length===1?"-":"--",p=s.indexOf(i+n),u=s.indexOf("--");return p!==-1&&(u===-1?!0:p<u)}}),To=N((t,l)=>{"use strict";B();var n=Z("os"),s=Oo(),i=process.env,p;s("no-color")||s("no-colors")||s("color=false")?p=!1:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(p=!0),"FORCE_COLOR"in i&&(p=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function u(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function r(f){if(p===!1)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(f&&!f.isTTY&&p!==!0)return 0;let a=p?1:0;if(process.platform==="win32"){let c=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(c=>c in i)||i.CI_NAME==="codeship"?1:a;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let c=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,a)}function e(f){let a=r(f);return u(a)}l.exports={supportsColor:e,stdout:e(process.stdout),stderr:e(process.stderr)}}),Bo=N((t,l)=>{"use strict";B();var n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,s=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,u=new Map([["n",`
6
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){return c[0]==="u"&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),y;for(let b of h)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(p,(E,g,D)=>g?r(g):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`);return d}function f(c){s.lastIndex=0;let o=[],d;for(;(d=s.exec(c))!==null;){let h=d[1];if(d[2]){let y=e(h,d[2]);o.push([h].concat(y))}else o.push([h])}return o}function a(c,o){let d={};for(let y of o)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let h=c;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in h))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?h=h[y].apply(h,d[y]):h=h[y]}return h}l.exports=(c,o)=>{let d=[],h=[],y=[];if(o.replace(n,(b,E,g,D,w,v)=>{if(E)y.push(r(E));else if(D){let m=y.join("");y=[],h.push(d.length===0?m:a(c,d)(m)),d.push({inverse:g,styles:f(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(a(c,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),h.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return h.join("")}}),pe=N((t,l)=>{"use strict";B();var n=Co(),s=Ro(),i=To().stdout,p=Bo(),u=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],e=new Set(["gray"]),f=Object.create(null);function a(b,E){E=E||{};let g=i?i.level:0;b.level=E.level===void 0?g:E.level,b.enabled="enabled"in E?E.enabled:b.level>0}function c(b){if(!this||!(this instanceof c)||this.template){let E={};return a(E,b),E.template=function(){let g=[].slice.call(arguments);return y.apply(null,[E.template].concat(g))},Object.setPrototypeOf(E,c.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=c,E.template}a(this,b)}u&&(s.blue.open="\x1B[94m");for(let b of Object.keys(s))s[b].closeRe=new RegExp(n(s[b].close),"g"),f[b]={get(){let E=s[b];return d.call(this,this._styles?this._styles.concat(E):[E],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(n(s.color.close),"g");for(let b of Object.keys(s.color.ansi))e.has(b)||(f[b]={get(){let E=this.level;return function(){let g={open:s.color[r[E]][b].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(let b of Object.keys(s.bgColor.ansi)){if(e.has(b))continue;let E="bg"+b[0].toUpperCase()+b.slice(1);f[E]={get(){let g=this.level;return function(){let D={open:s.bgColor[r[g]][b].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var o=Object.defineProperties(()=>{},f);function d(b,E,g){let D=function(){return h.apply(D,arguments)};D._styles=b,D._empty=E;let w=this;return Object.defineProperty(D,"level",{enumerable:!0,get(){return w.level},set(v){w.level=v}}),Object.defineProperty(D,"enabled",{enumerable:!0,get(){return w.enabled},set(v){w.enabled=v}}),D.hasGrey=this.hasGrey||g==="gray"||g==="grey",D.__proto__=o,D}function h(){let b=arguments,E=b.length,g=String(arguments[0]);if(E===0)return"";if(E>1)for(let w=1;w<E;w++)g+=" "+b[w];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let D=s.dim.open;u&&this.hasGrey&&(s.dim.open="");for(let w of this._styles.slice().reverse())g=w.open+g.replace(w.closeRe,w.open)+w.close,g=g.replace(/\r?\n/g,`${w.close}$&${w.open}`);return s.dim.open=D,g}function y(b,E){if(!Array.isArray(E))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),D=[E.raw[0]];for(let w=1;w<E.length;w++)D.push(String(g[w-1]).replace(/[{}\\]/g,"\\$&")),D.push(String(E.raw[w]));return p(b,D.join(""))}Object.defineProperties(c.prototype,f),l.exports=c(),l.exports.supportsColor=i,l.exports.default=l.exports});var Po=N((t,l)=>{B();var n=Z("constants"),s=process.cwd,i=null,p=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=s.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(e){i=null,u.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;l.exports=r;function r(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(e),e.lutimes||a(e),e.chown=d(e.chown),e.fchown=d(e.fchown),e.lchown=d(e.lchown),e.chmod=c(e.chmod),e.fchmod=c(e.fchmod),e.lchmod=c(e.lchmod),e.chownSync=h(e.chownSync),e.fchownSync=h(e.fchownSync),e.lchownSync=h(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=y(e.stat),e.fstat=y(e.fstat),e.lstat=y(e.lstat),e.statSync=b(e.statSync),e.fstatSync=b(e.fstatSync),e.lstatSync=b(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(g,D,w){w&&process.nextTick(w)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(g,D,w,v){v&&process.nextTick(v)},e.lchownSync=function(){}),p==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(g){function D(w,v,m){var _=Date.now(),S=0;g(w,v,function A(x){if(x&&(x.code==="EACCES"||x.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(v,function(L,T){L&&L.code==="ENOENT"?g(w,v,A):m(x)})},S),S<100&&(S+=10);return}m&&m(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.rename)),e.read=typeof e.read!="function"?e.read:function(g){function D(w,v,m,_,S,A){var x;if(A&&typeof A=="function"){var L=0;x=function(T,F,R){if(T&&T.code==="EAGAIN"&&L<10)return L++,g.call(e,w,v,m,_,S,x);A.apply(this,arguments)}}return g.call(e,w,v,m,_,S,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(g){return function(D,w,v,m,_){for(var S=0;;)try{return g.call(e,D,w,v,m,_)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(e.readSync);function f(g){g.lchmod=function(D,w,v){g.open(D,n.O_WRONLY|n.O_SYMLINK,w,function(m,_){if(m){v&&v(m);return}g.fchmod(_,w,function(S){g.close(_,function(A){v&&v(S||A)})})})},g.lchmodSync=function(D,w){var v=g.openSync(D,n.O_WRONLY|n.O_SYMLINK,w),m=!0,_;try{_=g.fchmodSync(v,w),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return _}}function a(g){n.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(D,w,v,m){g.open(D,n.O_SYMLINK,function(_,S){if(_){m&&m(_);return}g.futimes(S,w,v,function(A){g.close(S,function(x){m&&m(A||x)})})})},g.lutimesSync=function(D,w,v){var m=g.openSync(D,n.O_SYMLINK),_,S=!0;try{_=g.futimesSync(m,w,v),S=!1}finally{if(S)try{g.closeSync(m)}catch{}else g.closeSync(m)}return _}):g.futimes&&(g.lutimes=function(D,w,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function c(g){return g&&function(D,w,v){return g.call(e,D,w,function(m){E(m)&&(m=null),v&&v.apply(this,arguments)})}}function o(g){return g&&function(D,w){try{return g.call(e,D,w)}catch(v){if(!E(v))throw v}}}function d(g){return g&&function(D,w,v,m){return g.call(e,D,w,v,function(_){E(_)&&(_=null),m&&m.apply(this,arguments)})}}function h(g){return g&&function(D,w,v){try{return g.call(e,D,w,v)}catch(m){if(!E(m))throw m}}}function y(g){return g&&function(D,w,v){typeof w=="function"&&(v=w,w=null);function m(_,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),v&&v.apply(this,arguments)}return w?g.call(e,D,w,m):g.call(e,D,m)}}function b(g){return g&&function(D,w){var v=w?g.call(e,D,w):g.call(e,D);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function E(g){if(!g||g.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),Lo=N((t,l)=>{B();var n=Z("stream").Stream;l.exports=s;function s(i){return{ReadStream:p,WriteStream:u};function p(r,e){if(!(this instanceof p))return new p(r,e);n.call(this);var f=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,e=e||{};for(var a=Object.keys(e),c=0,o=a.length;c<o;c++){var d=a[c];this[d]=e[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(h,y){if(h){f.emit("error",h),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function u(r,e){if(!(this instanceof u))return new u(r,e);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,e=e||{};for(var f=Object.keys(e),a=0,c=f.length;a<c;a++){var o=f[a];this[o]=e[o]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Io=N((t,l)=>{"use strict";B(),l.exports=s;var n=Object.getPrototypeOf||function(i){return i.__proto__};function s(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var p={__proto__:n(i)};else var p=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(p,u,Object.getOwnPropertyDescriptor(i,u))}),p}}),Ct=N((t,l)=>{B();var n=Z("fs"),s=Po(),i=Lo(),p=Io(),u=Z("util"),r,e;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),e=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",e="___graceful-fs.previous");function f(){}function a(g,D){Object.defineProperty(g,r,{get:function(){return D}})}var c=f;u.debuglog?c=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var g=u.format.apply(u,arguments);g="GFS4: "+g.split(/\n/).join(`
6
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){return c[0]==="u"&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),y;for(let b of h)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(p,(E,g,D)=>g?r(g):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`);return d}function f(c){s.lastIndex=0;let o=[],d;for(;(d=s.exec(c))!==null;){let h=d[1];if(d[2]){let y=e(h,d[2]);o.push([h].concat(y))}else o.push([h])}return o}function a(c,o){let d={};for(let y of o)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let h=c;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in h))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?h=h[y].apply(h,d[y]):h=h[y]}return h}l.exports=(c,o)=>{let d=[],h=[],y=[];if(o.replace(n,(b,E,g,D,w,v)=>{if(E)y.push(r(E));else if(D){let m=y.join("");y=[],h.push(d.length===0?m:a(c,d)(m)),d.push({inverse:g,styles:f(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(a(c,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),h.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return h.join("")}}),pe=N((t,l)=>{"use strict";B();var n=Co(),s=Ro(),i=To().stdout,p=Bo(),u=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],e=new Set(["gray"]),f=Object.create(null);function a(b,E){E=E||{};let g=i?i.level:0;b.level=E.level===void 0?g:E.level,b.enabled="enabled"in E?E.enabled:b.level>0}function c(b){if(!this||!(this instanceof c)||this.template){let E={};return a(E,b),E.template=function(){let g=[].slice.call(arguments);return y.apply(null,[E.template].concat(g))},Object.setPrototypeOf(E,c.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=c,E.template}a(this,b)}u&&(s.blue.open="\x1B[94m");for(let b of Object.keys(s))s[b].closeRe=new RegExp(n(s[b].close),"g"),f[b]={get(){let E=s[b];return d.call(this,this._styles?this._styles.concat(E):[E],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(n(s.color.close),"g");for(let b of Object.keys(s.color.ansi))e.has(b)||(f[b]={get(){let E=this.level;return function(){let g={open:s.color[r[E]][b].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(let b of Object.keys(s.bgColor.ansi)){if(e.has(b))continue;let E="bg"+b[0].toUpperCase()+b.slice(1);f[E]={get(){let g=this.level;return function(){let D={open:s.bgColor[r[g]][b].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var o=Object.defineProperties(()=>{},f);function d(b,E,g){let D=function(){return h.apply(D,arguments)};D._styles=b,D._empty=E;let w=this;return Object.defineProperty(D,"level",{enumerable:!0,get(){return w.level},set(v){w.level=v}}),Object.defineProperty(D,"enabled",{enumerable:!0,get(){return w.enabled},set(v){w.enabled=v}}),D.hasGrey=this.hasGrey||g==="gray"||g==="grey",D.__proto__=o,D}function h(){let b=arguments,E=b.length,g=String(arguments[0]);if(E===0)return"";if(E>1)for(let w=1;w<E;w++)g+=" "+b[w];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let D=s.dim.open;u&&this.hasGrey&&(s.dim.open="");for(let w of this._styles.slice().reverse())g=w.open+g.replace(w.closeRe,w.open)+w.close,g=g.replace(/\r?\n/g,`${w.close}$&${w.open}`);return s.dim.open=D,g}function y(b,E){if(!Array.isArray(E))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),D=[E.raw[0]];for(let w=1;w<E.length;w++)D.push(String(g[w-1]).replace(/[{}\\]/g,"\\$&")),D.push(String(E.raw[w]));return p(b,D.join(""))}Object.defineProperties(c.prototype,f),l.exports=c(),l.exports.supportsColor=i,l.exports.default=l.exports});var Po=N((t,l)=>{B();var n=Z("constants"),s=process.cwd,i=null,p=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=s.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(e){i=null,u.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;l.exports=r;function r(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(e),e.lutimes||a(e),e.chown=d(e.chown),e.fchown=d(e.fchown),e.lchown=d(e.lchown),e.chmod=c(e.chmod),e.fchmod=c(e.fchmod),e.lchmod=c(e.lchmod),e.chownSync=h(e.chownSync),e.fchownSync=h(e.fchownSync),e.lchownSync=h(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=y(e.stat),e.fstat=y(e.fstat),e.lstat=y(e.lstat),e.statSync=b(e.statSync),e.fstatSync=b(e.fstatSync),e.lstatSync=b(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(g,D,w){w&&process.nextTick(w)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(g,D,w,v){v&&process.nextTick(v)},e.lchownSync=function(){}),p==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(g){function D(w,v,m){var _=Date.now(),S=0;g(w,v,function A(x){if(x&&(x.code==="EACCES"||x.code==="EPERM"||x.code==="EBUSY")&&Date.now()-_<6e4){setTimeout(function(){e.stat(v,function(L,T){L&&L.code==="ENOENT"?g(w,v,A):m(x)})},S),S<100&&(S+=10);return}m&&m(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.rename)),e.read=typeof e.read!="function"?e.read:function(g){function D(w,v,m,_,S,A){var x;if(A&&typeof A=="function"){var L=0;x=function(T,F,R){if(T&&T.code==="EAGAIN"&&L<10)return L++,g.call(e,w,v,m,_,S,x);A.apply(this,arguments)}}return g.call(e,w,v,m,_,S,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(g){return function(D,w,v,m,_){for(var S=0;;)try{return g.call(e,D,w,v,m,_)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(e.readSync);function f(g){g.lchmod=function(D,w,v){g.open(D,n.O_WRONLY|n.O_SYMLINK,w,function(m,_){if(m){v&&v(m);return}g.fchmod(_,w,function(S){g.close(_,function(A){v&&v(S||A)})})})},g.lchmodSync=function(D,w){var v=g.openSync(D,n.O_WRONLY|n.O_SYMLINK,w),m=!0,_;try{_=g.fchmodSync(v,w),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return _}}function a(g){n.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(D,w,v,m){g.open(D,n.O_SYMLINK,function(_,S){if(_){m&&m(_);return}g.futimes(S,w,v,function(A){g.close(S,function(x){m&&m(A||x)})})})},g.lutimesSync=function(D,w,v){var m=g.openSync(D,n.O_SYMLINK),_,S=!0;try{_=g.futimesSync(m,w,v),S=!1}finally{if(S)try{g.closeSync(m)}catch{}else g.closeSync(m)}return _}):g.futimes&&(g.lutimes=function(D,w,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function c(g){return g&&function(D,w,v){return g.call(e,D,w,function(m){E(m)&&(m=null),v&&v.apply(this,arguments)})}}function o(g){return g&&function(D,w){try{return g.call(e,D,w)}catch(v){if(!E(v))throw v}}}function d(g){return g&&function(D,w,v,m){return g.call(e,D,w,v,function(_){E(_)&&(_=null),m&&m.apply(this,arguments)})}}function h(g){return g&&function(D,w,v){try{return g.call(e,D,w,v)}catch(m){if(!E(m))throw m}}}function y(g){return g&&function(D,w,v){typeof w=="function"&&(v=w,w=null);function m(_,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),v&&v.apply(this,arguments)}return w?g.call(e,D,w,m):g.call(e,D,m)}}function b(g){return g&&function(D,w){var v=w?g.call(e,D,w):g.call(e,D);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function E(g){if(!g||g.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),Lo=N((t,l)=>{B();var n=Z("stream").Stream;l.exports=s;function s(i){return{ReadStream:p,WriteStream:u};function p(r,e){if(!(this instanceof p))return new p(r,e);n.call(this);var f=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,e=e||{};for(var a=Object.keys(e),c=0,o=a.length;c<o;c++){var d=a[c];this[d]=e[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(h,y){if(h){f.emit("error",h),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function u(r,e){if(!(this instanceof u))return new u(r,e);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,e=e||{};for(var f=Object.keys(e),a=0,c=f.length;a<c;a++){var o=f[a];this[o]=e[o]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Io=N((t,l)=>{"use strict";B(),l.exports=s;var n=Object.getPrototypeOf||function(i){return i.__proto__};function s(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var p={__proto__:n(i)};else var p=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(p,u,Object.getOwnPropertyDescriptor(i,u))}),p}}),Ct=N((t,l)=>{B();var n=Z("fs"),s=Po(),i=Lo(),p=Io(),u=Z("util"),r,e;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),e=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",e="___graceful-fs.previous");function f(){}function a(g,D){Object.defineProperty(g,r,{get:function(){return D}})}var c=f;u.debuglog?c=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var g=u.format.apply(u,arguments);g="GFS4: "+g.split(/\n/).join(`
7
7
  GFS4: `),console.error(g)}),n[r]||(o=global[r]||[],a(n,o),n.close=function(g){function D(w,v){return g.call(n,w,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(D,e,{value:g}),D}(n.close),n.closeSync=function(g){function D(w){g.apply(n,arguments),b()}return Object.defineProperty(D,e,{value:g}),D}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){c(n[r]),Z("assert").equal(n[r].length,0)}));var o;global[r]||a(global,n[r]),l.exports=d(p(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(l.exports=d(n),n.__patched=!0);function d(g){s(g),g.gracefulify=d,g.createReadStream=k,g.createWriteStream=J;var D=g.readFile;g.readFile=w;function w(M,K,et){return typeof K=="function"&&(et=K,K=null),ot(M,K,et);function ot(ct,gt,mt,H){return D(ct,gt,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?h([ot,[ct,gt,mt],V,H||Date.now(),Date.now()]):typeof mt=="function"&&mt.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(M,K,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return v(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var _=g.appendFile;_&&(g.appendFile=S);function S(M,K,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return _(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var A=g.copyFile;A&&(g.copyFile=x);function x(M,K,et,ot){return typeof et=="function"&&(ot=et,et=0),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return A(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var L=g.readdir;g.readdir=F;var T=/^v[0-5]\./;function F(M,K,et){typeof K=="function"&&(et=K,K=null);var ot=T.test(process.version)?function(gt,mt,H,V){return L(gt,ct(gt,mt,H,V))}:function(gt,mt,H,V){return L(gt,mt,ct(gt,mt,H,V))};return ot(M,K,et);function ct(gt,mt,H,V){return function(C,z){C&&(C.code==="EMFILE"||C.code==="ENFILE")?h([ot,[gt,mt,H],C,V||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof H=="function"&&H.call(this,C,z))}}}if(process.version.substr(0,4)==="v0.8"){var R=i(g);W=R.ReadStream,P=R.WriteStream}var I=g.ReadStream;I&&(W.prototype=Object.create(I.prototype),W.prototype.open=Q);var $=g.WriteStream;$&&(P.prototype=Object.create($.prototype),P.prototype.open=j),Object.defineProperty(g,"ReadStream",{get:function(){return W},set:function(M){W=M},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return P},set:function(M){P=M},enumerable:!0,configurable:!0});var O=W;Object.defineProperty(g,"FileReadStream",{get:function(){return O},set:function(M){O=M},enumerable:!0,configurable:!0});var q=P;Object.defineProperty(g,"FileWriteStream",{get:function(){return q},set:function(M){q=M},enumerable:!0,configurable:!0});function W(M,K){return this instanceof W?(I.apply(this,arguments),this):W.apply(Object.create(W.prototype),arguments)}function Q(){var M=this;tt(M.path,M.flags,M.mode,function(K,et){K?(M.autoClose&&M.destroy(),M.emit("error",K)):(M.fd=et,M.emit("open",et),M.read())})}function P(M,K){return this instanceof P?($.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function j(){var M=this;tt(M.path,M.flags,M.mode,function(K,et){K?(M.destroy(),M.emit("error",K)):(M.fd=et,M.emit("open",et))})}function k(M,K){return new g.ReadStream(M,K)}function J(M,K){return new g.WriteStream(M,K)}var G=g.open;g.open=tt;function tt(M,K,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,K,et,ot);function ct(gt,mt,H,V,C){return G(gt,mt,H,function(z,X){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return g}function h(g){c("ENQUEUE",g[0].name,g[1]),n[r].push(g),E()}var y;function b(){for(var g=Date.now(),D=0;D<n[r].length;++D)n[r][D].length>2&&(n[r][D][3]=g,n[r][D][4]=g);E()}function E(){if(clearTimeout(y),y=void 0,n[r].length!==0){var g=n[r].shift(),D=g[0],w=g[1],v=g[2],m=g[3],_=g[4];if(m===void 0)c("RETRY",D.name,w),D.apply(null,w);else if(Date.now()-m>=6e4){c("TIMEOUT",D.name,w);var S=w.pop();typeof S=="function"&&S.call(null,v)}else{var A=Date.now()-_,x=Math.max(_-m,1),L=Math.min(x*1.2,100);A>=L?(c("RETRY",D.name,w),D.apply(null,w.concat([m]))):n[r].push(g)}y===void 0&&(y=setTimeout(E,0))}}});var Wt=N(t=>{"use strict";B(),t.fromCallback=function(l){return Object.defineProperty(function(...n){if(typeof n[n.length-1]=="function")l.apply(this,n);else return new Promise((s,i)=>{l.call(this,...n,(p,u)=>p!=null?i(p):s(u))})},"name",{value:l.name})},t.fromPromise=function(l){return Object.defineProperty(function(...n){let s=n[n.length-1];if(typeof s!="function")return l.apply(this,n);l.apply(this,n.slice(0,-1)).then(i=>s(null,i),s)},"name",{value:l.name})}}),Ee=N(t=>{"use strict";B();var l=Wt().fromCallback,n=Ct(),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof n[i]=="function");Object.assign(t,n),s.forEach(i=>{t[i]=l(n[i])}),t.exists=function(i,p){return typeof p=="function"?n.exists(i,p):new Promise(u=>n.exists(i,u))},t.read=function(i,p,u,r,e,f){return typeof f=="function"?n.read(i,p,u,r,e,f):new Promise((a,c)=>{n.read(i,p,u,r,e,(o,d,h)=>{if(o)return c(o);a({bytesRead:d,buffer:h})})})},t.write=function(i,p,...u){return typeof u[u.length-1]=="function"?n.write(i,p,...u):new Promise((r,e)=>{n.write(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffer:c})})})},t.readv=function(i,p,...u){return typeof u[u.length-1]=="function"?n.readv(i,p,...u):new Promise((r,e)=>{n.readv(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesRead:a,buffers:c})})})},t.writev=function(i,p,...u){return typeof u[u.length-1]=="function"?n.writev(i,p,...u):new Promise((r,e)=>{n.writev(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffers:c})})})},typeof n.realpath.native=="function"?t.realpath.native=l(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),No=N((t,l)=>{"use strict";B();var n=Z("path");l.exports.checkPath=function(s){if(process.platform==="win32"&&/[<>:"|?*]/.test(s.replace(n.parse(s).root,""))){let i=new Error(`Path contains invalid characters: ${s}`);throw i.code="EINVAL",i}}}),jo=N((t,l)=>{"use strict";B();var n=Ee(),{checkPath:s}=No(),i=p=>typeof p=="number"?p:{...{mode:511},...p}.mode;l.exports.makeDir=async(p,u)=>(s(p),n.mkdir(p,{mode:i(u),recursive:!0})),l.exports.makeDirSync=(p,u)=>(s(p),n.mkdirSync(p,{mode:i(u),recursive:!0}))}),Xt=N((t,l)=>{"use strict";B();var n=Wt().fromPromise,{makeDir:s,makeDirSync:i}=jo(),p=n(s);l.exports={mkdirs:p,mkdirsSync:i,mkdirp:p,mkdirpSync:i,ensureDir:p,ensureDirSync:i}}),de=N((t,l)=>{"use strict";B();var n=Wt().fromPromise,s=Ee();function i(p){return s.access(p).then(()=>!0).catch(()=>!1)}l.exports={pathExists:n(i),pathExistsSync:s.existsSync}}),Fn=N((t,l)=>{"use strict";B();var n=Ct();function s(p,u,r,e){n.open(p,"r+",(f,a)=>{if(f)return e(f);n.futimes(a,u,r,c=>{n.close(a,o=>{e&&e(c||o)})})})}function i(p,u,r){let e=n.openSync(p,"r+");return n.futimesSync(e,u,r),n.closeSync(e)}l.exports={utimesMillis:s,utimesMillisSync:i}}),_e=N((t,l)=>{"use strict";B();var n=Ee(),s=Z("path"),i=Z("util");function p(h,y,b){let E=b.dereference?g=>n.stat(g,{bigint:!0}):g=>n.lstat(g,{bigint:!0});return Promise.all([E(h),E(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,D])=>({srcStat:g,destStat:D}))}function u(h,y,b){let E,g=b.dereference?w=>n.statSync(w,{bigint:!0}):w=>n.lstatSync(w,{bigint:!0}),D=g(h);try{E=g(y)}catch(w){if(w.code==="ENOENT")return{srcStat:D,destStat:null};throw w}return{srcStat:D,destStat:E}}function r(h,y,b,E,g){i.callbackify(p)(h,y,E,(D,w)=>{if(D)return g(D);let{srcStat:v,destStat:m}=w;if(m){if(c(v,m)){let _=s.basename(h),S=s.basename(y);return b==="move"&&_!==S&&_.toLowerCase()===S.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${h}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${h}'.`))}return v.isDirectory()&&o(h,y)?g(new Error(d(h,y,b))):g(null,{srcStat:v,destStat:m})})}function e(h,y,b,E){let{srcStat:g,destStat:D}=u(h,y,E);if(D){if(c(g,D)){let w=s.basename(h),v=s.basename(y);if(b==="move"&&w!==v&&w.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:D,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!D.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${h}'.`);if(!g.isDirectory()&&D.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${h}'.`)}if(g.isDirectory()&&o(h,y))throw new Error(d(h,y,b));return{srcStat:g,destStat:D}}function f(h,y,b,E,g){let D=s.resolve(s.dirname(h)),w=s.resolve(s.dirname(b));if(w===D||w===s.parse(w).root)return g();n.stat(w,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):c(y,m)?g(new Error(d(h,b,E))):f(h,y,w,E,g))}function a(h,y,b,E){let g=s.resolve(s.dirname(h)),D=s.resolve(s.dirname(b));if(D===g||D===s.parse(D).root)return;let w;try{w=n.statSync(D,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(c(y,w))throw new Error(d(h,b,E));return a(h,y,D,E)}function c(h,y){return y.ino&&y.dev&&y.ino===h.ino&&y.dev===h.dev}function o(h,y){let b=s.resolve(h).split(s.sep).filter(g=>g),E=s.resolve(y).split(s.sep).filter(g=>g);return b.reduce((g,D,w)=>g&&E[w]===D,!0)}function d(h,y,b){return`Cannot ${b} '${h}' to a subdirectory of itself, '${y}'.`}l.exports={checkPaths:r,checkPathsSync:e,checkParentPaths:f,checkParentPathsSync:a,isSrcSubdir:o,areIdentical:c}}),Mo=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Xt().mkdirs,p=de().pathExists,u=Fn().utimesMillis,r=_e();function e(T,F,R,I){typeof R=="function"&&!I?(I=R,R={}):typeof R=="function"&&(R={filter:R}),I=I||function(){},R=R||{},R.clobber="clobber"in R?!!R.clobber:!0,R.overwrite="overwrite"in R?!!R.overwrite:R.clobber,R.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
8
8
 
9
9
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),r.checkPaths(T,F,"copy",R,($,O)=>{if($)return I($);let{srcStat:q,destStat:W}=O;r.checkParentPaths(T,q,F,"copy",Q=>{if(Q)return I(Q);a(T,F,R,(P,j)=>{if(P)return I(P);if(!j)return I();f(W,T,F,R,I)})})})}function f(T,F,R,I,$){let O=s.dirname(R);p(O,(q,W)=>{if(q)return $(q);if(W)return c(T,F,R,I,$);i(O,Q=>Q?$(Q):c(T,F,R,I,$))})}function a(T,F,R,I){if(!R.filter)return I(null,!0);Promise.resolve(R.filter(T,F)).then($=>I(null,$),$=>I($))}function c(T,F,R,I,$){(I.dereference?n.stat:n.lstat)(F,(O,q)=>O?$(O):q.isDirectory()?v(q,T,F,R,I,$):q.isFile()||q.isCharacterDevice()||q.isBlockDevice()?o(q,T,F,R,I,$):q.isSymbolicLink()?x(T,F,R,I,$):q.isSocket()?$(new Error(`Cannot copy a socket file: ${F}`)):q.isFIFO()?$(new Error(`Cannot copy a FIFO pipe: ${F}`)):$(new Error(`Unknown file: ${F}`)))}function o(T,F,R,I,$,O){return F?d(T,R,I,$,O):h(T,R,I,$,O)}function d(T,F,R,I,$){if(I.overwrite)n.unlink(R,O=>O?$(O):h(T,F,R,I,$));else return I.errorOnExist?$(new Error(`'${R}' already exists`)):$()}function h(T,F,R,I,$){n.copyFile(F,R,O=>O?$(O):I.preserveTimestamps?y(T.mode,F,R,$):D(R,T.mode,$))}function y(T,F,R,I){return b(T)?E(R,T,$=>$?I($):g(T,F,R,I)):g(T,F,R,I)}function b(T){return(T&128)===0}function E(T,F,R){return D(T,F|128,R)}function g(T,F,R,I){w(F,R,$=>$?I($):D(R,T,I))}function D(T,F,R){return n.chmod(T,F,R)}function w(T,F,R){n.stat(T,(I,$)=>I?R(I):u(F,$.atime,$.mtime,R))}function v(T,F,R,I,$,O){return F?_(R,I,$,O):m(T.mode,R,I,$,O)}function m(T,F,R,I,$){n.mkdir(R,O=>{if(O)return $(O);_(F,R,I,q=>q?$(q):D(R,T,$))})}function _(T,F,R,I){n.readdir(T,($,O)=>$?I($):S(O,T,F,R,I))}function S(T,F,R,I,$){let O=T.pop();return O?A(T,O,F,R,I,$):$()}function A(T,F,R,I,$,O){let q=s.join(R,F),W=s.join(I,F);a(q,W,$,(Q,P)=>{if(Q)return O(Q);if(!P)return S(T,R,I,$,O);r.checkPaths(q,W,"copy",$,(j,k)=>{if(j)return O(j);let{destStat:J}=k;c(J,q,W,$,G=>G?O(G):S(T,R,I,$,O))})})}function x(T,F,R,I,$){n.readlink(F,(O,q)=>{if(O)return $(O);if(I.dereference&&(q=s.resolve(process.cwd(),q)),T)n.readlink(R,(W,Q)=>W?W.code==="EINVAL"||W.code==="UNKNOWN"?n.symlink(q,R,$):$(W):(I.dereference&&(Q=s.resolve(process.cwd(),Q)),r.isSrcSubdir(q,Q)?$(new Error(`Cannot copy '${q}' to a subdirectory of itself, '${Q}'.`)):r.isSrcSubdir(Q,q)?$(new Error(`Cannot overwrite '${Q}' with '${q}'.`)):L(q,R,$)));else return n.symlink(q,R,$)})}function L(T,F,R){n.unlink(F,I=>I?R(I):n.symlink(T,F,R))}l.exports=e}),$o=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Xt().mkdirsSync,p=Fn().utimesMillisSync,u=_e();function r(_,S,A){typeof A=="function"&&(A={filter:A}),A=A||{},A.clobber="clobber"in A?!!A.clobber:!0,A.overwrite="overwrite"in A?!!A.overwrite:A.clobber,A.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turbo/codemod",
3
- "version": "1.10.16-canary.1",
3
+ "version": "1.10.16",
4
4
  "description": "Provides Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.",
5
5
  "homepage": "https://turbo.build/repo",
6
6
  "license": "MPL-2.0",
@@ -46,12 +46,12 @@
46
46
  "tsup": "^6.7.0",
47
47
  "typescript": "^4.5.5",
48
48
  "@turbo/eslint-config": "0.0.0",
49
- "@turbo/gen": "1.10.16-canary.1",
49
+ "@turbo/gen": "1.10.16",
50
50
  "@turbo/test-utils": "0.0.0",
51
51
  "@turbo/tsconfig": "0.0.0",
52
- "@turbo/types": "1.10.16-canary.1",
53
52
  "@turbo/utils": "0.0.0",
54
- "@turbo/workspaces": "1.10.16-canary.1"
53
+ "@turbo/workspaces": "1.10.16",
54
+ "@turbo/types": "1.10.16"
55
55
  },
56
56
  "files": [
57
57
  "dist"