forked from babel/babel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.js
More file actions
4 lines (4 loc) · 196 KB
/
Makefile.js
File metadata and controls
4 lines (4 loc) · 196 KB
1
2
3
4
// source hash: becc932164d47c98835c2967ee8680a74e49b6c3
/* eslint-disable */
// prettier-ignore
import e from"os";import t from"fs";import r from"path";import n from"events";import o from"assert";import i from"util";import s from"child_process";import a,{resolve as c,basename as l}from"node:path";import u from"node:module";import{writeFileSync as d,statSync as f,readFileSync as p,appendFileSync as h,createWriteStream as m,createReadStream as b,readdirSync as y,existsSync as g,mkdirSync as v}from"node:fs";import{fileURLToPath as w}from"node:url";import{ChildProcess as S,spawnSync as E,spawn as x}from"node:child_process";import{StringDecoder as O}from"node:string_decoder";import{debuglog as j,stripVTControlCharacters as k,inspect as T,promisify as D,callbackify as I,aborted as A}from"node:util";import N,{platform as C,hrtime as M,execPath as L,execArgv as P}from"node:process";import R from"node:tty";import{setTimeout as _,scheduler as $,setImmediate as B}from"node:timers/promises";import{constants as F}from"node:os";import{once as U,addAbortListener as G,EventEmitter as W,on as z,setMaxListeners as V}from"node:events";import{serialize as H}from"node:v8";import{Transform as q,getDefaultHighWaterMark as K,Duplex as X,Writable as Y,Readable as Q,PassThrough as J}from"node:stream";import{Buffer as Z}from"node:buffer";import{finished as ee}from"node:stream/promises";var te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ne=function(e){return e&&e.Math===Math&&e},oe=ne("object"==typeof globalThis&&globalThis)||ne("object"==typeof window&&window)||ne("object"==typeof self&&self)||ne("object"==typeof te&&te)||ne("object"==typeof te&&te)||function(){return this}()||Function("return this")(),ie={},se=function(e){try{return!!e()}catch(e){return!0}},ae=!se(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),ce=!se(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),le=ce,ue=Function.prototype.call,de=le?ue.bind(ue):function(){return ue.apply(ue,arguments)},fe={},pe={}.propertyIsEnumerable,he=Object.getOwnPropertyDescriptor,me=he&&!pe.call({1:2},1);fe.f=me?function(e){var t=he(this,e);return!!t&&t.enumerable}:pe;var be,ye,ge=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ve=ce,we=Function.prototype,Se=we.call,Ee=ve&&we.bind.bind(Se,Se),xe=ve?Ee:function(e){return function(){return Se.apply(e,arguments)}},Oe=xe,je=Oe({}.toString),ke=Oe("".slice),Te=function(e){return ke(je(e),8,-1)},De=se,Ie=Te,Ae=Object,Ne=xe("".split),Ce=De(function(){return!Ae("z").propertyIsEnumerable(0)})?function(e){return"String"===Ie(e)?Ne(e,""):Ae(e)}:Ae,Me=function(e){return null==e},Le=Me,Pe=TypeError,Re=function(e){if(Le(e))throw new Pe("Can't call method on "+e);return e},_e=Ce,$e=Re,Be=function(e){return _e($e(e))},Fe="object"==typeof document&&document.all,Ue=void 0===Fe&&void 0!==Fe?function(e){return"function"==typeof e||e===Fe}:function(e){return"function"==typeof e},Ge=Ue,We=function(e){return"object"==typeof e?null!==e:Ge(e)},ze=oe,Ve=Ue,He=function(e,t){return arguments.length<2?(r=ze[e],Ve(r)?r:void 0):ze[e]&&ze[e][t];var r},qe=xe({}.isPrototypeOf),Ke=oe.navigator,Xe=Ke&&Ke.userAgent,Ye=oe,Qe=Xe?String(Xe):"",Je=Ye.process,Ze=Ye.Deno,et=Je&&Je.versions||Ze&&Ze.version,tt=et&&et.v8;tt&&(ye=(be=tt.split("."))[0]>0&&be[0]<4?1:+(be[0]+be[1])),!ye&&Qe&&(!(be=Qe.match(/Edge\/(\d+)/))||be[1]>=74)&&(be=Qe.match(/Chrome\/(\d+)/))&&(ye=+be[1]);var rt=ye,nt=se,ot=oe.String,it=!!Object.getOwnPropertySymbols&&!nt(function(){var e=Symbol("symbol detection");return!ot(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&rt&&rt<41}),st=it&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=He,ct=Ue,lt=qe,ut=Object,dt=st?function(e){return"symbol"==typeof e}:function(e){var t=at("Symbol");return ct(t)&<(t.prototype,ut(e))},ft=String,pt=Ue,ht=function(e){try{return ft(e)}catch(e){return"Object"}},mt=TypeError,bt=function(e){if(pt(e))return e;throw new mt(ht(e)+" is not a function")},yt=bt,gt=Me,vt=function(e,t){var r=e[t];return gt(r)?void 0:yt(r)},wt=de,St=Ue,Et=We,xt=TypeError,Ot={exports:{}},jt=oe,kt=Object.defineProperty,Tt=function(e,t){try{kt(jt,e,{value:t,configurable:!0,writable:!0})}catch(r){jt[e]=t}return t},Dt=oe,It=Tt,At="__core-js_shared__",Nt=Ot.exports=Dt[At]||It(At,{});(Nt.versions||(Nt.versions=[])).push({version:"3.48.0",mode:"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ct=Ot.exports,Mt=Ct,Lt=function(e,t){return Mt[e]||(Mt[e]=t||{})},Pt=Re,Rt=Object,_t=function(e){return Rt(Pt(e))},$t=_t,Bt=xe({}.hasOwnProperty),Ft=Object.hasOwn||function(e,t){return Bt($t(e),t)},Ut=xe,Gt=0,Wt=Math.random(),zt=Ut(1.1.toString),Vt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+zt(++Gt+Wt,36)},Ht=Lt,qt=Ft,Kt=Vt,Xt=it,Yt=st,Qt=oe.Symbol,Jt=Ht("wks"),Zt=Yt?Qt.for||Qt:Qt&&Qt.withoutSetter||Kt,er=function(e){return qt(Jt,e)||(Jt[e]=Xt&&qt(Qt,e)?Qt[e]:Zt("Symbol."+e)),Jt[e]},tr=de,rr=We,nr=dt,or=vt,ir=function(e,t){var r,n;if("string"===t&&St(r=e.toString)&&!Et(n=wt(r,e)))return n;if(St(r=e.valueOf)&&!Et(n=wt(r,e)))return n;if("string"!==t&&St(r=e.toString)&&!Et(n=wt(r,e)))return n;throw new xt("Can't convert object to primitive value")},sr=TypeError,ar=er("toPrimitive"),cr=function(e,t){if(!rr(e)||nr(e))return e;var r,n=or(e,ar);if(n){if(void 0===t&&(t="default"),r=tr(n,e,t),!rr(r)||nr(r))return r;throw new sr("Can't convert object to primitive value")}return void 0===t&&(t="number"),ir(e,t)},lr=dt,ur=function(e){var t=cr(e,"string");return lr(t)?t:t+""},dr=We,fr=oe.document,pr=dr(fr)&&dr(fr.createElement),hr=function(e){return pr?fr.createElement(e):{}},mr=hr,br=!ae&&!se(function(){return 7!==Object.defineProperty(mr("div"),"a",{get:function(){return 7}}).a}),yr=ae,gr=de,vr=fe,wr=ge,Sr=Be,Er=ur,xr=Ft,Or=br,jr=Object.getOwnPropertyDescriptor;ie.f=yr?jr:function(e,t){if(e=Sr(e),t=Er(t),Or)try{return jr(e,t)}catch(e){}if(xr(e,t))return wr(!gr(vr.f,e,t),e[t])};var kr={},Tr=ae&&se(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Dr=We,Ir=String,Ar=TypeError,Nr=function(e){if(Dr(e))return e;throw new Ar(Ir(e)+" is not an object")},Cr=ae,Mr=br,Lr=Tr,Pr=Nr,Rr=ur,_r=TypeError,$r=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,Fr="enumerable",Ur="configurable",Gr="writable";kr.f=Cr?Lr?function(e,t,r){if(Pr(e),t=Rr(t),Pr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Gr in r&&!r[Gr]){var n=Br(e,t);n&&n[Gr]&&(e[t]=r.value,r={configurable:Ur in r?r[Ur]:n[Ur],enumerable:Fr in r?r[Fr]:n[Fr],writable:!1})}return $r(e,t,r)}:$r:function(e,t,r){if(Pr(e),t=Rr(t),Pr(r),Mr)try{return $r(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new _r("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Wr=kr,zr=ge,Vr=ae?function(e,t,r){return Wr.f(e,t,zr(1,r))}:function(e,t,r){return e[t]=r,e},Hr={exports:{}},qr=ae,Kr=Ft,Xr=Function.prototype,Yr=qr&&Object.getOwnPropertyDescriptor,Qr={CONFIGURABLE:Kr(Xr,"name")&&(!qr||qr&&Yr(Xr,"name").configurable)},Jr=Ue,Zr=Ct,en=xe(Function.toString);Jr(Zr.inspectSource)||(Zr.inspectSource=function(e){return en(e)});var tn,rn,nn,on=Zr.inspectSource,sn=Ue,an=oe.WeakMap,cn=sn(an)&&/native code/.test(String(an)),ln=Vt,un=Lt("keys"),dn=function(e){return un[e]||(un[e]=ln(e))},fn={},pn=cn,hn=oe,mn=We,bn=Vr,yn=Ft,gn=Ct,vn=dn,wn=fn,Sn="Object already initialized",En=hn.TypeError,xn=hn.WeakMap;if(pn||gn.state){var On=gn.state||(gn.state=new xn);On.get=On.get,On.has=On.has,On.set=On.set,tn=function(e,t){if(On.has(e))throw new En(Sn);return t.facade=e,On.set(e,t),t},rn=function(e){return On.get(e)||{}},nn=function(e){return On.has(e)}}else{var jn=vn("state");wn[jn]=!0,tn=function(e,t){if(yn(e,jn))throw new En(Sn);return t.facade=e,bn(e,jn,t),t},rn=function(e){return yn(e,jn)?e[jn]:{}},nn=function(e){return yn(e,jn)}}var kn={set:tn,get:rn,has:nn,enforce:function(e){return nn(e)?rn(e):tn(e,{})},getterFor:function(e){return function(t){var r;if(!mn(t)||(r=rn(t)).type!==e)throw new En("Incompatible receiver, "+e+" required");return r}}},Tn=xe,Dn=se,In=Ue,An=Ft,Nn=ae,Cn=Qr.CONFIGURABLE,Mn=on,Ln=kn.enforce,Pn=kn.get,Rn=String,_n=Object.defineProperty,$n=Tn("".slice),Bn=Tn("".replace),Fn=Tn([].join),Un=Nn&&!Dn(function(){return 8!==_n(function(){},"length",{value:8}).length}),Gn=String(String).split("String"),Wn=Hr.exports=function(e,t,r){"Symbol("===$n(Rn(t),0,7)&&(t="["+Bn(Rn(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!An(e,"name")||Cn&&e.name!==t)&&(Nn?_n(e,"name",{value:t,configurable:!0}):e.name=t),Un&&r&&An(r,"arity")&&e.length!==r.arity&&_n(e,"length",{value:r.arity});try{r&&An(r,"constructor")&&r.constructor?Nn&&_n(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Ln(e);return An(n,"source")||(n.source=Fn(Gn,"string"==typeof t?t:"")),e};Function.prototype.toString=Wn(function(){return In(this)&&Pn(this).source||Mn(this)},"toString");var zn,Vn=Hr.exports,Hn=Ue,qn=kr,Kn=Vn,Xn=Tt,Yn=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(Hn(r)&&Kn(r,i,n),n.global)o?e[t]=r:Xn(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:qn.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Qn={},Jn=Math.ceil,Zn=Math.floor,eo=Math.trunc||function(e){var t=+e;return(t>0?Zn:Jn)(t)},to=eo,ro=function(e){var t=+e;return t!=t||0===t?0:to(t)},no=ro,oo=Math.max,io=Math.min,so=ro,ao=Math.min,co=function(e){var t=so(e);return t>0?ao(t,9007199254740991):0},lo=function(e){return co(e.length)},uo=Be,fo=function(e,t){var r=no(e);return r<0?oo(r+t,0):io(r,t)},po=lo,ho={indexOf:(zn=!1,function(e,t,r){var n=uo(e),o=po(n);if(0===o)return!zn&&-1;var i,s=fo(r,o);if(zn&&t!=t){for(;o>s;)if((i=n[s++])!=i)return!0}else for(;o>s;s++)if((zn||s in n)&&n[s]===t)return zn||s||0;return!zn&&-1})},mo=Ft,bo=Be,yo=ho.indexOf,go=fn,vo=xe([].push),wo=function(e,t){var r,n=bo(e),o=0,i=[];for(r in n)!mo(go,r)&&mo(n,r)&&vo(i,r);for(;t.length>o;)mo(n,r=t[o++])&&(~yo(i,r)||vo(i,r));return i},So=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Eo=wo,xo=So.concat("length","prototype");Qn.f=Object.getOwnPropertyNames||function(e){return Eo(e,xo)};var Oo={};Oo.f=Object.getOwnPropertySymbols;var jo=He,ko=Qn,To=Oo,Do=Nr,Io=xe([].concat),Ao=jo("Reflect","ownKeys")||function(e){var t=ko.f(Do(e)),r=To.f;return r?Io(t,r(e)):t},No=Ft,Co=Ao,Mo=ie,Lo=kr,Po=se,Ro=Ue,_o=/#|\.prototype\./,$o=function(e,t){var r=Fo[Bo(e)];return r===Go||r!==Uo&&(Ro(t)?Po(t):!!t)},Bo=$o.normalize=function(e){return String(e).replace(_o,".").toLowerCase()},Fo=$o.data={},Uo=$o.NATIVE="N",Go=$o.POLYFILL="P",Wo=$o,zo=oe,Vo=ie.f,Ho=Vr,qo=Yn,Ko=Tt,Xo=function(e,t,r){for(var n=Co(t),o=Lo.f,i=Mo.f,s=0;s<n.length;s++){var a=n[s];No(e,a)||r&&No(r,a)||o(e,a,i(t,a))}},Yo=Wo,Qo=function(e,t){var r,n,o,i,s,a=e.target,c=e.global,l=e.stat;if(r=c?zo:l?zo[a]||Ko(a,{}):zo[a]&&zo[a].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(s=Vo(r,n))&&s.value:r[n],!Yo(c?n:a+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Xo(i,o)}(e.sham||o&&o.sham)&&Ho(i,"sham",!0),qo(r,n,i,e)}},Jo=Te,Zo=ae,ei=Array.isArray||function(e){return"Array"===Jo(e)},ti=TypeError,ri=Object.getOwnPropertyDescriptor,ni=Zo&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),oi=TypeError,ii=_t,si=lo,ai=ni?function(e,t){if(ei(e)&&!ri(e,"length").writable)throw new ti("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},ci=function(e){if(e>9007199254740991)throw oi("Maximum allowed index exceeded");return e};Qo({target:"Array",proto:!0,arity:1,forced:se(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=ii(this),r=si(t),n=arguments.length;ci(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return ai(t,r),r}});var li=qe,ui=TypeError,di=!se(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),fi=Ft,pi=Ue,hi=_t,mi=di,bi=dn("IE_PROTO"),yi=Object,gi=yi.prototype,vi=mi?yi.getPrototypeOf:function(e){var t=hi(e);if(fi(t,bi))return t[bi];var r=t.constructor;return pi(r)&&t instanceof r?r.prototype:t instanceof yi?gi:null},wi=Vn,Si=kr,Ei=ae,xi=kr,Oi=ge,ji={},ki=wo,Ti=So,Di=Object.keys||function(e){return ki(e,Ti)},Ii=ae,Ai=Tr,Ni=kr,Ci=Nr,Mi=Be,Li=Di;ji.f=Ii&&!Ai?Object.defineProperties:function(e,t){Ci(e);for(var r,n=Mi(t),o=Li(t),i=o.length,s=0;i>s;)Ni.f(e,r=o[s++],n[r]);return e};var Pi,Ri=He("document","documentElement"),_i=Nr,$i=ji,Bi=So,Fi=fn,Ui=Ri,Gi=hr,Wi="prototype",zi="script",Vi=dn("IE_PROTO"),Hi=function(){},qi=function(e){return"<"+zi+">"+e+"</"+zi+">"},Ki=function(e){e.write(qi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Xi=function(){try{Pi=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Xi="undefined"!=typeof document?document.domain&&Pi?Ki(Pi):(t=Gi("iframe"),r="java"+zi+":",t.style.display="none",Ui.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(qi("document.F=Object")),e.close(),e.F):Ki(Pi);for(var n=Bi.length;n--;)delete Xi[Wi][Bi[n]];return Xi()};Fi[Vi]=!0;var Yi,Qi,Ji,Zi=Object.create||function(e,t){var r;return null!==e?(Hi[Wi]=_i(e),r=new Hi,Hi[Wi]=null,r[Vi]=e):r=Xi(),void 0===t?r:$i.f(r,t)},es=se,ts=Ue,rs=We,ns=vi,os=Yn,is=er("iterator");[].keys&&"next"in(Ji=[].keys())&&(Qi=ns(ns(Ji)))!==Object.prototype&&(Yi=Qi);var ss=!rs(Yi)||es(function(){var e={};return Yi[is].call(e)!==e});ss&&(Yi={}),ts(Yi[is])||os(Yi,is,function(){return this});var as={IteratorPrototype:Yi},cs=Qo,ls=oe,us=function(e,t){if(li(t,e))return e;throw new ui("Incorrect invocation")},ds=Nr,fs=Ue,ps=vi,hs=function(e,t,r){return r.get&&wi(r.get,t,{getter:!0}),r.set&&wi(r.set,t,{setter:!0}),Si.f(e,t,r)},ms=function(e,t,r){Ei?xi.f(e,t,Oi(0,r)):e[t]=r},bs=se,ys=Ft,gs=as.IteratorPrototype,vs=ae,ws="constructor",Ss="Iterator",Es=er("toStringTag"),xs=TypeError,Os=ls[Ss],js=!fs(Os)||Os.prototype!==gs||!bs(function(){Os({})}),ks=function(){if(us(this,gs),ps(this)===gs)throw new xs("Abstract class Iterator not directly constructable")},Ts=function(e,t){vs?hs(gs,e,{configurable:!0,get:function(){return t},set:function(t){if(ds(this),this===gs)throw new xs("You can't redefine this property");ys(this,e)?this[e]=t:ms(this,e,t)}}):gs[e]=t};ys(gs,Es)||Ts(Es,Ss),!js&&ys(gs,ws)&&gs[ws]!==Object||Ts(ws,ks),ks.prototype=gs,cs({global:!0,constructor:!0,forced:js},{Iterator:ks});var Ds=Yn,Is=de,As=Nr,Ns=vt,Cs=function(e,t,r){var n,o;As(e);try{if(!(n=Ns(e,"return"))){if("throw"===t)throw r;return r}n=Is(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return As(n),r},Ms=Cs,Ls=de,Ps=Zi,Rs=Vr,_s=function(e,t,r){for(var n in t)Ds(e,n,t[n],r);return e},$s=kn,Bs=vt,Fs=as.IteratorPrototype,Us=function(e,t){return{value:e,done:t}},Gs=Cs,Ws=function(e,t,r){for(var n=e.length-1;n>=0;n--)if(void 0!==e[n])try{r=Ms(e[n].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r},zs=er("toStringTag"),Vs="IteratorHelper",Hs="WrapForValidIterator",qs="normal",Ks="throw",Xs=$s.set,Ys=function(e){var t=$s.getterFor(e?Hs:Vs);return _s(Ps(Fs),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return Us(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:Us(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var o=Bs(n,"return");return o?Ls(o,n):Us(void 0,!0)}if(r.inner)try{Gs(r.inner.iterator,qs)}catch(e){return Gs(n,Ks,e)}if(r.openIters)try{Ws(r.openIters,qs)}catch(e){return Gs(n,Ks,e)}return n&&Gs(n,qs),Us(void 0,!0)}})},Qs=Ys(!0),Js=Ys(!1);Rs(Js,zs,"Iterator Helper");var Zs=Nr,ea=Cs,ta=oe,ra=Qo,na=de,oa=bt,ia=Nr,sa=function(e){return{iterator:e,next:e.next,done:!1}},aa=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?Hs:Vs,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,Xs(this,o)};return n.prototype=t?Qs:Js,n},ca=function(e,t,r,n){try{return n?t(Zs(r)[0],r[1]):t(r)}catch(t){ea(e,"throw",t)}},la=Cs,ua=function(e,t){var r=ta.Iterator,n=r&&r.prototype,o=n&&n[e],i=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(e){e instanceof t||(i=!1)}if(!i)return o},da=!function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}("filter",function(){}),fa=!da&&ua("filter",TypeError),pa=da||fa,ha=aa(function(){for(var e,t,r=this.iterator,n=this.predicate,o=this.next;;){if(e=ia(na(o,r)),this.done=!!e.done)return;if(t=e.value,ca(r,n,[t,this.counter++],!0))return t}});ra({target:"Iterator",proto:!0,real:!0,forced:pa},{filter:function(e){ia(this);try{oa(e)}catch(e){la(this,"throw",e)}return fa?na(fa,this,e):new ha(sa(this),{predicate:e})}});var ma,ba,ya,ga,va,wa,Sa,Ea,xa,Oa,ja,ka={},Ta={};function Da(){if(ma)return Ta;ma=1;var e=r,n="win32"===process.platform,o=t,i=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(e){return"function"==typeof e?e:function(){var e;if(i){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}if(e.normalize,n)var a=/(.*?)(?:[\/\\]+|$)/g;else a=/(.*?)(?:[\/]+|$)/g;if(n)var c=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else c=/^[\/]*/;return Ta.realpathSync=function(t,r){if(t=e.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var i,s,l,u,d=t,f={},p={};function h(){var e=c.exec(t);i=e[0].length,s=e[0],l=e[0],u="",n&&!p[l]&&(o.lstatSync(l),p[l]=!0)}for(h();i<t.length;){a.lastIndex=i;var m=a.exec(t);if(u=s,s+=m[0],l=u+m[1],i=a.lastIndex,!(p[l]||r&&r[l]===l)){var b;if(r&&Object.prototype.hasOwnProperty.call(r,l))b=r[l];else{var y=o.lstatSync(l);if(!y.isSymbolicLink()){p[l]=!0,r&&(r[l]=l);continue}var g=null;if(!n){var v=y.dev.toString(32)+":"+y.ino.toString(32);f.hasOwnProperty(v)&&(g=f[v])}null===g&&(o.statSync(l),g=o.readlinkSync(l)),b=e.resolve(u,g),r&&(r[l]=b),n||(f[v]=g)}t=e.resolve(b,t.slice(i)),h()}}return r&&(r[d]=t),t},Ta.realpath=function(t,r,i){if("function"!=typeof i&&(i=s(r),r=null),t=e.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(i.bind(null,null,r[t]));var l,u,d,f,p=t,h={},m={};function b(){var e=c.exec(t);l=e[0].length,u=e[0],d=e[0],f="",n&&!m[d]?o.lstat(d,function(e){if(e)return i(e);m[d]=!0,y()}):process.nextTick(y)}function y(){if(l>=t.length)return r&&(r[p]=t),i(null,t);a.lastIndex=l;var e=a.exec(t);return f=u,u+=e[0],d=f+e[1],l=a.lastIndex,m[d]||r&&r[d]===d?process.nextTick(y):r&&Object.prototype.hasOwnProperty.call(r,d)?w(r[d]):o.lstat(d,g)}function g(e,t){if(e)return i(e);if(!t.isSymbolicLink())return m[d]=!0,r&&(r[d]=d),process.nextTick(y);if(!n){var s=t.dev.toString(32)+":"+t.ino.toString(32);if(h.hasOwnProperty(s))return v(null,h[s],d)}o.stat(d,function(e){if(e)return i(e);o.readlink(d,function(e,t){n||(h[s]=t),v(e,t)})})}function v(t,n,o){if(t)return i(t);var s=e.resolve(f,n);r&&(r[o]=s),w(s)}function w(r){t=e.resolve(r,t.slice(l)),b()}b()},Ta}function Ia(){if(ya)return ba;ya=1,ba=c,c.realpath=c,c.sync=l,c.realpathSync=l,c.monkeypatch=function(){e.realpath=c,e.realpathSync=l},c.unmonkeypatch=function(){e.realpath=r,e.realpathSync=n};var e=t,r=e.realpath,n=e.realpathSync,o=process.version,i=/^v[0-5]\./.test(o),s=Da();function a(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function c(e,t,n){if(i)return r(e,t,n);"function"==typeof t&&(n=t,t=null),r(e,t,function(r,o){a(r)?s.realpath(e,t,n):n(r,o)})}function l(e,t){if(i)return n(e,t);try{return n(e,t)}catch(r){if(a(r))return s.realpathSync(e,t);throw r}}return ba}function Aa(){if(va)return ga;va=1,ga=function(t,r){for(var n=[],o=0;o<t.length;o++){var i=r(t[o],o);e(i)?n.push.apply(n,i):n.push(i)}return n};var e=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};return ga}function Na(){if(xa)return Ea;xa=1;var e=Aa(),t=function(){if(Sa)return wa;function e(e,n,o){e instanceof RegExp&&(e=t(e,o)),n instanceof RegExp&&(n=t(n,o));var i=r(e,n,o);return i&&{start:i[0],end:i[1],pre:o.slice(0,i[0]),body:o.slice(i[0]+e.length,i[1]),post:o.slice(i[1]+n.length)}}function t(e,t){var r=t.match(e);return r?r[0]:null}function r(e,t,r){var n,o,i,s,a,c=r.indexOf(e),l=r.indexOf(t,c+1),u=c;if(c>=0&&l>0){for(n=[],i=r.length;u>=0&&!a;)u==c?(n.push(u),c=r.indexOf(e,u+1)):1==n.length?a=[n.pop(),l]:((o=n.pop())<i&&(i=o,s=l),l=r.indexOf(t,u+1)),u=c<l&&c>=0?c:l;n.length&&(a=[i,s])}return a}return Sa=1,wa=e,e.range=r,wa}();Ea=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return h(function(e){return e.split("\\\\").join(r).split("\\{").join(n).split("\\}").join(o).split("\\,").join(i).split("\\.").join(s)}(e),!0).map(c)};var r="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",s="\0PERIOD"+Math.random()+"\0";function a(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function c(e){return e.split(r).join("\\").split(n).join("{").split(o).join("}").split(i).join(",").split(s).join(".")}function l(e){if(!e)return[""];var r=[],n=t("{","}",e);if(!n)return e.split(",");var o=n.pre,i=n.body,s=n.post,a=o.split(",");a[a.length-1]+="{"+i+"}";var c=l(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),r.push.apply(r,a),r}function u(e){return"{"+e+"}"}function d(e){return/^-?0\d/.test(e)}function f(e,t){return e<=t}function p(e,t){return e>=t}function h(r,n){var i=[],s=t("{","}",r);if(!s||/\$$/.test(s.pre))return[r];var c,m=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),b=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=m||b,g=s.body.indexOf(",")>=0;if(!y&&!g)return s.post.match(/,.*\}/)?h(r=s.pre+"{"+s.body+o+s.post):[r];if(y)c=s.body.split(/\.\./);else if(1===(c=l(s.body)).length&&1===(c=h(c[0],!1).map(u)).length)return(S=s.post.length?h(s.post,!1):[""]).map(function(e){return s.pre+c[0]+e});var v,w=s.pre,S=s.post.length?h(s.post,!1):[""];if(y){var E=a(c[0]),x=a(c[1]),O=Math.max(c[0].length,c[1].length),j=3==c.length?Math.abs(a(c[2])):1,k=f;x<E&&(j*=-1,k=p);var T=c.some(d);v=[];for(var D=E;k(D,x);D+=j){var I;if(b)"\\"===(I=String.fromCharCode(D))&&(I="");else if(I=String(D),T){var A=O-I.length;if(A>0){var N=new Array(A+1).join("0");I=D<0?"-"+N+I.slice(1):N+I}}v.push(I)}}else v=e(c,function(e){return h(e,!1)});for(var C=0;C<v.length;C++)for(var M=0;M<S.length;M++){var L=w+v[C]+S[M];(!n||y||L)&&i.push(L)}return i}return Ea}function Ca(){if(ja)return Oa;ja=1,Oa=l,l.Minimatch=u;var e=function(){try{return require("path")}catch(e){}}()||{sep:"/"};l.sep=e.sep;var t=l.GLOBSTAR=u.GLOBSTAR={},r=Na(),n={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},o="[^/]",i=o+"*?",s="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{});var a=/\/+/;function c(e,t){t=t||{};var r={};return Object.keys(e).forEach(function(t){r[t]=e[t]}),Object.keys(t).forEach(function(e){r[e]=t[e]}),r}function l(e,t,r){return f(t),r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&new u(t,r).match(e)}function u(t,r){if(!(this instanceof u))return new u(t,r);f(t),r||(r={}),t=t.trim(),r.allowWindowsEscape||"/"===e.sep||(t=t.split(e.sep).join("/")),this.options=r,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}function d(e,t){return t||(t=this instanceof u?this.options:{}),e=void 0===e?this.pattern:e,f(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:r(e)}l.filter=function(e,t){return t=t||{},function(r,n,o){return l(r,e,t)}},l.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return l;var t=l,r=function(r,n,o){return t(r,n,c(e,o))};return(r.Minimatch=function(r,n){return new t.Minimatch(r,c(e,n))}).defaults=function(r){return t.defaults(c(e,r)).Minimatch},r.filter=function(r,n){return t.filter(r,c(e,n))},r.defaults=function(r){return t.defaults(c(e,r))},r.makeRe=function(r,n){return t.makeRe(r,c(e,n))},r.braceExpand=function(r,n){return t.braceExpand(r,c(e,n))},r.match=function(r,n,o){return t.match(r,n,c(e,o))},r},u.defaults=function(e){return l.defaults(e).Minimatch},u.prototype.debug=function(){},u.prototype.make=function(){var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)});this.debug(this.pattern,r),r=this.globParts=r.map(function(e){return e.split(a)}),this.debug(this.pattern,r),r=r.map(function(e,t,r){return e.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(e){return-1===e.indexOf(!1)}),this.debug(this.pattern,r),this.set=r},u.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var o=0,i=e.length;o<i&&"!"===e.charAt(o);o++)t=!t,n++;n&&(this.pattern=e.substr(n));this.negate=t},l.braceExpand=function(e,t){return d(e,t)},u.prototype.braceExpand=d;var f=function(e){if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};u.prototype.parse=function(e,r){f(e);var a=this.options;if("**"===e){if(!a.noglobstar)return t;e="*"}if(""===e)return"";var c,l="",u=!!a.nocase,d=!1,h=[],m=[],b=!1,y=-1,g=-1,v="."===e.charAt(0)?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=this;function S(){if(c){switch(c){case"*":l+=i,u=!0;break;case"?":l+=o,u=!0;break;default:l+="\\"+c}w.debug("clearStateChar %j %j",c,l),c=!1}}for(var E,x=0,O=e.length;x<O&&(E=e.charAt(x));x++)if(this.debug("%s\t%s %s %j",e,x,l,E),d&&s[E])l+="\\"+E,d=!1;else switch(E){case"/":return!1;case"\\":S(),d=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,x,l,E),b){this.debug(" in class"),"!"===E&&x===g+1&&(E="^"),l+=E;continue}w.debug("call clearStateChar %j",c),S(),c=E,a.noext&&S();continue;case"(":if(b){l+="(";continue}if(!c){l+="\\(";continue}h.push({type:c,start:x-1,reStart:l.length,open:n[c].open,close:n[c].close}),l+="!"===c?"(?:(?!(?:":"(?:",this.debug("plType %j %j",c,l),c=!1;continue;case")":if(b||!h.length){l+="\\)";continue}S(),u=!0;var j=h.pop();l+=j.close,"!"===j.type&&m.push(j),j.reEnd=l.length;continue;case"|":if(b||!h.length||d){l+="\\|",d=!1;continue}S(),l+="|";continue;case"[":if(S(),b){l+="\\"+E;continue}b=!0,g=x,y=l.length,l+=E;continue;case"]":if(x===g+1||!b){l+="\\"+E,d=!1;continue}var k=e.substring(g+1,x);try{RegExp("["+k+"]")}catch(e){var T=this.parse(k,p);l=l.substr(0,y)+"\\["+T[0]+"\\]",u=u||T[1],b=!1;continue}u=!0,b=!1,l+=E;continue;default:S(),d?d=!1:!s[E]||"^"===E&&b||(l+="\\"),l+=E}b&&(k=e.substr(g+1),T=this.parse(k,p),l=l.substr(0,y)+"\\["+T[0],u=u||T[1]);for(j=h.pop();j;j=h.pop()){var D=l.slice(j.reStart+j.open.length);this.debug("setting tail",l,j),D=D.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,r){return r||(r="\\"),t+t+r+"|"}),this.debug("tail=%j\n %s",D,D,j,l);var I="*"===j.type?i:"?"===j.type?o:"\\"+j.type;u=!0,l=l.slice(0,j.reStart)+I+"\\("+D}S(),d&&(l+="\\\\");var A=!1;switch(l.charAt(0)){case"[":case".":case"(":A=!0}for(var N=m.length-1;N>-1;N--){var C=m[N],M=l.slice(0,C.reStart),L=l.slice(C.reStart,C.reEnd-8),P=l.slice(C.reEnd-8,C.reEnd),R=l.slice(C.reEnd);P+=R;var _=M.split("(").length-1,$=R;for(x=0;x<_;x++)$=$.replace(/\)[+*?]?/,"");var B="";""===(R=$)&&r!==p&&(B="$"),l=M+L+R+B+P}""!==l&&u&&(l="(?=.)"+l);A&&(l=v+l);if(r===p)return[l,u];if(!u)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var F=a.nocase?"i":"";try{var U=new RegExp("^"+l+"$",F)}catch(e){return new RegExp("$.")}return U._glob=e,U._src=l,U};var p={};return l.makeRe=function(e,t){return new u(e,t||{}).makeRe()},u.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var r=this.options,n=r.noglobstar?i:r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=r.nocase?"i":"",s=e.map(function(e){return e.map(function(e){return e===t?n:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,o)}catch(e){this.regexp=!1}return this.regexp},l.match=function(e,t,r){var n=new u(t,r=r||{});return e=e.filter(function(e){return n.match(e)}),n.options.nonull&&!e.length&&e.push(t),e},u.prototype.match=function(t,r){if(void 0===r&&(r=this.partial),this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&r)return!0;var n=this.options;"/"!==e.sep&&(t=t.split(e.sep).join("/")),t=t.split(a),this.debug(this.pattern,"split",t);var o,i,s=this.set;for(this.debug(this.pattern,"set",s),i=t.length-1;i>=0&&!(o=t[i]);i--);for(i=0;i<s.length;i++){var c=s[i],l=t;if(n.matchBase&&1===c.length&&(l=[o]),this.matchOne(l,c,r))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},u.prototype.matchOne=function(e,r,n){var o=this.options;this.debug("matchOne",{this:this,file:e,pattern:r}),this.debug("matchOne",e.length,r.length);for(var i=0,s=0,a=e.length,c=r.length;i<a&&s<c;i++,s++){this.debug("matchOne loop");var l,u=r[s],d=e[i];if(this.debug(r,u,d),!1===u)return!1;if(u===t){this.debug("GLOBSTAR",[r,u,d]);var f=i,p=s+1;if(p===c){for(this.debug("** at the end");i<a;i++)if("."===e[i]||".."===e[i]||!o.dot&&"."===e[i].charAt(0))return!1;return!0}for(;f<a;){var h=e[f];if(this.debug("\nglobstar while",e,f,r,p,h),this.matchOne(e.slice(f),r.slice(p),n))return this.debug("globstar found match!",f,a,h),!0;if("."===h||".."===h||!o.dot&&"."===h.charAt(0)){this.debug("dot detected!",e,f,r,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!n||(this.debug("\n>>> no match, partial?",e,f,r,p),f!==a))}if("string"==typeof u?(l=d===u,this.debug("string match",u,d,l)):(l=d.match(u),this.debug("pattern match",u,d,l)),!l)return!1}if(i===a&&s===c)return!0;if(i===a)return n;if(s===c)return i===a-1&&""===e[i];throw new Error("wtf?")},Oa}var Ma,La,Pa={exports:{}},Ra={exports:{}};function _a(){if(La)return Pa.exports;La=1;try{var e=require("util");if("function"!=typeof e.inherits)throw"";Pa.exports=e.inherits}catch(e){Pa.exports=(Ma||(Ma=1,"function"==typeof Object.create?Ra.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ra.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}),Ra.exports)}return Pa.exports}var $a,Ba={exports:{}};function Fa(){if($a)return Ba.exports;function e(e){return"/"===e.charAt(0)}function t(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}return $a=1,Ba.exports="win32"===process.platform?t:e,Ba.exports.posix=e,Ba.exports.win32=t,Ba.exports}var Ua,Ga,Wa,za,Va,Ha={};function qa(){if(Ua)return Ha;function e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Ua=1,Ha.setopts=function(t,r,i){i||(i={});if(i.matchBase&&-1===r.indexOf("/")){if(i.noglobstar)throw new Error("base matching requires globstar");r="**/"+r}t.silent=!!i.silent,t.pattern=r,t.strict=!1!==i.strict,t.realpath=!!i.realpath,t.realpathCache=i.realpathCache||Object.create(null),t.follow=!!i.follow,t.dot=!!i.dot,t.mark=!!i.mark,t.nodir=!!i.nodir,t.nodir&&(t.mark=!0);t.sync=!!i.sync,t.nounique=!!i.nounique,t.nonull=!!i.nonull,t.nosort=!!i.nosort,t.nocase=!!i.nocase,t.stat=!!i.stat,t.noprocess=!!i.noprocess,t.absolute=!!i.absolute,t.fs=i.fs||n,t.maxLength=i.maxLength||1/0,t.cache=i.cache||Object.create(null),t.statCache=i.statCache||Object.create(null),t.symlinks=i.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(l))}(t,i),t.changedCwd=!1;var c=process.cwd();e(i,"cwd")?(t.cwd=o.resolve(i.cwd),t.changedCwd=t.cwd!==c):t.cwd=c;t.root=i.root||o.resolve(t.cwd,"/"),t.root=o.resolve(t.root),"win32"===process.platform&&(t.root=t.root.replace(/\\/g,"/"));t.cwdAbs=s(t.cwd)?t.cwd:u(t,t.cwd),"win32"===process.platform&&(t.cwdAbs=t.cwdAbs.replace(/\\/g,"/"));t.nomount=!!i.nomount,i.nonegate=!0,i.nocomment=!0,i.allowWindowsEscape=!1,t.minimatch=new a(r,i),t.options=t.minimatch.options},Ha.ownProp=e,Ha.makeAbs=u,Ha.finish=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,o=e.matches.length;n<o;n++){var i=e.matches[n];if(i&&0!==Object.keys(i).length){var s=Object.keys(i);t?r.push.apply(r,s):s.forEach(function(e){r[e]=!0})}else if(e.nonull){var a=e.minimatch.globSet[n];t?r.push(a):r[a]=!0}}t||(r=Object.keys(r));e.nosort||(r=r.sort(c));if(e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter(function(t){var r=!/\/$/.test(t),n=e.cache[t]||e.cache[u(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r}))}e.ignore.length&&(r=r.filter(function(t){return!d(e,t)}));e.found=r},Ha.mark=function(e,t){var r=u(e,t),n=e.cache[r],o=t;if(n){var i="DIR"===n||Array.isArray(n),s="/"===t.slice(-1);if(i&&!s?o+="/":!i&&s&&(o=o.slice(0,-1)),o!==t){var a=u(e,o);e.statCache[a]=e.statCache[r],e.cache[a]=e.cache[r]}}return o},Ha.isIgnored=d,Ha.childrenIgnored=function(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return!(!e.gmatcher||!e.gmatcher.match(t))})};var n=t,o=r,i=Ca(),s=Fa(),a=i.Minimatch;function c(e,t){return e.localeCompare(t,"en")}function l(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new a(r,{dot:!0})}return{matcher:new a(e,{dot:!0}),gmatcher:t}}function u(e,t){var r=t;return r="/"===t.charAt(0)?o.join(e.root,t):s(t)||""===t?t:e.changedCwd?o.resolve(e.cwd,t):o.resolve(t),"win32"===process.platform&&(r=r.replace(/\\/g,"/")),r}function d(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))})}return Ha}function Ka(){if(Va)return za;return Va=1,za=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){n[e]=t[e]}),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),o=e[e.length-1];return"function"==typeof n&&n!==o&&Object.keys(o).forEach(function(e){n[e]=o[e]}),n}},za}var Xa,Ya,Qa,Ja,Za,ec,tc,rc,nc,oc,ic,sc,ac,cc,lc={exports:{}};function uc(){if(Xa)return lc.exports;Xa=1;var e=Ka();function t(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function r(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}return lc.exports=e(t),lc.exports.strict=e(r),t.proto=t(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return t(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return r(this)},configurable:!0})}),lc.exports}function dc(){if(Qa)return Ya;Qa=1;var e=Ka(),t=Object.create(null),r=uc();return Ya=e(function(e,n){return t[e]?(t[e].push(n),null):(t[e]=[n],function(e){return r(function r(){var n=t[e],o=n.length,i=function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}(arguments);try{for(var s=0;s<o;s++)n[s].apply(null,i)}finally{n.length>o?(n.splice(0,o),process.nextTick(function(){r.apply(null,i)})):delete t[e]}})}(e))}),Ya}function fc(){if(Za)return Ja;Za=1,Ja=g;var e=Ia(),t=Ca();t.Minimatch;var i=_a(),s=n.EventEmitter,a=r,c=o,l=Fa(),u=function(){if(Wa)return Ga;Wa=1,Ga=f,f.GlobSync=p;var e=Ia(),t=Ca();t.Minimatch,fc().Glob;var n=r,i=o,s=Fa(),a=qa(),c=a.setopts,l=a.ownProp,u=a.childrenIgnored,d=a.isIgnored;function f(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new p(e,t).found}function p(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof p))return new p(e,t);if(c(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}return p.prototype._finish=function(){if(i.ok(this instanceof p),this.realpath){var t=this;this.matches.forEach(function(r,n){var o=t.matches[n]=Object.create(null);for(var i in r)try{i=t._makeAbs(i),o[e.realpathSync(i,t.realpathCache)]=!0}catch(e){if("stat"!==e.syscall)throw e;o[t._makeAbs(i)]=!0}})}a.finish(this)},p.prototype._process=function(e,r,n){i.ok(this instanceof p);for(var o,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),r);case 0:o=null;break;default:o=e.slice(0,a).join("/")}var c,l=e.slice(a);null===o?c=".":s(o)||s(e.map(function(e){return"string"==typeof e?e:"[*]"}).join("/"))?(o&&s(o)||(o="/"+o),c=o):c=o;var d=this._makeAbs(c);u(this,c)||(l[0]===t.GLOBSTAR?this._processGlobStar(o,c,d,l,r,n):this._processReaddir(o,c,d,l,r,n))},p.prototype._processReaddir=function(e,t,r,o,i,s){var a=this._readdir(r,s);if(a){for(var c=o[0],l=!!this.minimatch.negate,u=c._glob,d=this.dot||"."===u.charAt(0),f=[],p=0;p<a.length;p++)("."!==(b=a[p]).charAt(0)||d)&&(l&&!e?!b.match(c):b.match(c))&&f.push(b);var h=f.length;if(0!==h)if(1!==o.length||this.mark||this.stat)for(o.shift(),p=0;p<h;p++){var m;b=f[p],m=e?[e,b]:[b],this._process(m.concat(o),i,s)}else{this.matches[i]||(this.matches[i]=Object.create(null));for(p=0;p<h;p++){var b=f[p];e&&(b="/"!==e.slice(-1)?e+"/"+b:e+b),"/"!==b.charAt(0)||this.nomount||(b=n.join(this.root,b)),this._emitMatch(i,b)}}}},p.prototype._emitMatch=function(e,t){if(!d(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},p.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=this.fs.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},p.prototype._readdir=function(e,t){if(t&&!l(this.symlinks,e))return this._readdirInGlobStar(e);if(l(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},p.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},p.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},p.prototype._processGlobStar=function(e,t,r,n,o,i){var s=this._readdir(r,i);if(s){var a=n.slice(1),c=e?[e]:[],l=c.concat(a);this._process(l,o,!1);var u=s.length;if(!this.symlinks[r]||!i)for(var d=0;d<u;d++)if("."!==s[d].charAt(0)||this.dot){var f=c.concat(s[d],a);this._process(f,o,!0);var p=c.concat(s[d],n);this._process(p,o,!0)}}},p.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&s(e)&&!this.nomount){var o=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=n.join(this.root,e):(e=n.resolve(this.root,e),o&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},p.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&l(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var o=this.statCache[t];if(!o){var i;try{i=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(i&&i.isSymbolicLink())try{o=this.fs.statSync(t)}catch(e){o=i}else o=i}return this.statCache[t]=o,n=!0,o&&(n=o.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},p.prototype._mark=function(e){return a.mark(this,e)},p.prototype._makeAbs=function(e){return a.makeAbs(this,e)},Ga}(),d=qa(),f=d.setopts,p=d.ownProp,h=dc(),m=d.childrenIgnored,b=d.isIgnored,y=uc();function g(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return u(e,t)}return new w(e,t,r)}g.sync=u;var v=g.GlobSync=u.GlobSync;function w(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new v(e,t)}if(!(this instanceof w))return new w(e,t,r);f(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=y(r),this.on("error",r),this.on("end",function(e){r(null,e)}));var o=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return a();for(var i=!0,s=0;s<n;s++)this._process(this.minimatch.set[s],s,!1,a);function a(){--o._processing,o._processing<=0&&(i?process.nextTick(function(){o._finish()}):o._finish())}i=!1}return g.glob=g,g.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new w(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var o=0;o<n[0].length;o++)if("string"!=typeof n[0][o])return!0;return!1},g.Glob=w,i(w,s),w.prototype._finish=function(){if(c(this instanceof w),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit("end",this.found)}},w.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0===--e&&t._finish()}},w.prototype._realpathSet=function(t,r){var n=this.matches[t];if(!n)return r();var o=Object.keys(n),i=this,s=o.length;if(0===s)return r();var a=this.matches[t]=Object.create(null);o.forEach(function(n,o){n=i._makeAbs(n),e.realpath(n,i.realpathCache,function(e,o){e?"stat"===e.syscall?a[n]=!0:i.emit("error",e):a[o]=!0,0===--s&&(i.matches[t]=a,r())})})},w.prototype._mark=function(e){return d.mark(this,e)},w.prototype._makeAbs=function(e){return d.makeAbs(this,e)},w.prototype.abort=function(){this.aborted=!0,this.emit("abort")},w.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},w.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<n.length;t++){var o=n[t];this._processing--,this._process(o[0],o[1],o[2],o[3])}}}},w.prototype._process=function(e,r,n,o){if(c(this instanceof w),c("function"==typeof o),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,r,n,o]);else{for(var i,s=0;"string"==typeof e[s];)s++;switch(s){case e.length:return void this._processSimple(e.join("/"),r,o);case 0:i=null;break;default:i=e.slice(0,s).join("/")}var a,u=e.slice(s);null===i?a=".":l(i)||l(e.map(function(e){return"string"==typeof e?e:"[*]"}).join("/"))?(i&&l(i)||(i="/"+i),a=i):a=i;var d=this._makeAbs(a);if(m(this,a))return o();u[0]===t.GLOBSTAR?this._processGlobStar(i,a,d,u,r,n,o):this._processReaddir(i,a,d,u,r,n,o)}},w.prototype._processReaddir=function(e,t,r,n,o,i,s){var a=this;this._readdir(r,i,function(c,l){return a._processReaddir2(e,t,r,n,o,i,l,s)})},w.prototype._processReaddir2=function(e,t,r,n,o,i,s,c){if(!s)return c();for(var l=n[0],u=!!this.minimatch.negate,d=l._glob,f=this.dot||"."===d.charAt(0),p=[],h=0;h<s.length;h++){if("."!==(b=s[h]).charAt(0)||f)(u&&!e?!b.match(l):b.match(l))&&p.push(b)}var m=p.length;if(0===m)return c();if(1===n.length&&!this.mark&&!this.stat){this.matches[o]||(this.matches[o]=Object.create(null));for(h=0;h<m;h++){var b=p[h];e&&(b="/"!==e?e+"/"+b:e+b),"/"!==b.charAt(0)||this.nomount||(b=a.join(this.root,b)),this._emitMatch(o,b)}return c()}n.shift();for(h=0;h<m;h++){b=p[h];e&&(b="/"!==e?e+"/"+b:e+b),this._process([b].concat(n),o,i,c)}c()},w.prototype._emitMatch=function(e,t){if(!this.aborted&&!b(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=l(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var o=this.statCache[r];o&&this.emit("stat",t,o),this.emit("match",t)}}},w.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=h("lstat\0"+e,function(n,o){if(n&&"ENOENT"===n.code)return t();var i=o&&o.isSymbolicLink();r.symlinks[e]=i,i||!o||o.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())});n&&r.fs.lstat(e,n)}},w.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=h("readdir\0"+e+"\0"+t,r))){if(t&&!p(this.symlinks,e))return this._readdirInGlobStar(e,r);if(p(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}this.fs.readdir(e,function(e,t,r){return function(n,o){n?e._readdirError(t,n,r):e._readdirEntries(t,o,r)}}(this,e,r))}},w.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var o=t[n];o="/"===e?e+o:e+"/"+o,this.cache[o]=!0}return this.cache[e]=t,r(null,t)}},w.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var o=new Error(t.code+" invalid cwd "+this.cwd);o.path=this.cwd,o.code=t.code,this.emit("error",o),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},w.prototype._processGlobStar=function(e,t,r,n,o,i,s){var a=this;this._readdir(r,i,function(c,l){a._processGlobStar2(e,t,r,n,o,i,l,s)})},w.prototype._processGlobStar2=function(e,t,r,n,o,i,s,a){if(!s)return a();var c=n.slice(1),l=e?[e]:[],u=l.concat(c);this._process(u,o,!1,a);var d=this.symlinks[r],f=s.length;if(d&&i)return a();for(var p=0;p<f;p++){if("."!==s[p].charAt(0)||this.dot){var h=l.concat(s[p],c);this._process(h,o,!0,a);var m=l.concat(s[p],n);this._process(m,o,!0,a)}}a()},w.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(o,i){n._processSimple2(e,t,o,i,r)})},w.prototype._processSimple2=function(e,t,r,n,o){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return o();if(e&&l(e)&&!this.nomount){var i=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=a.join(this.root,e):(e=a.resolve(this.root,e),i&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),o()},w.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&p(this.cache,r)){var o=this.cache[r];if(Array.isArray(o)&&(o="DIR"),!n||"DIR"===o)return t(null,o);if(n&&"FILE"===o)return t()}var i=this.statCache[r];if(void 0!==i){if(!1===i)return t(null,i);var s=i.isDirectory()?"DIR":"FILE";return n&&"FILE"===s?t():t(null,s,i)}var a=this,c=h("stat\0"+r,function(n,o){if(o&&o.isSymbolicLink())return a.fs.stat(r,function(n,i){n?a._stat2(e,r,null,o,t):a._stat2(e,r,n,i,t)});a._stat2(e,r,n,o,t)});c&&a.fs.lstat(r,c)},w.prototype._stat2=function(e,t,r,n,o){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,o();var i="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return o(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,i&&"FILE"===s?o():o(null,s,n)},Ja}function pc(){if(ec)return ka;ec=1;var r=e,n=t,o=fc(),i=Jl(),s=Object.create(i);ka.extend=Object.assign;var a=Boolean(process.versions.electron),c={fatal:!1,globOptions:{},maxdepth:255,noglob:!1,silent:!1,verbose:!1,execPath:null,bufLength:65536},l={reset:function(){Object.assign(this,c),a||(this.execPath=process.execPath)},resetForTesting:function(){this.reset(),this.silent=!0}};l.reset(),ka.config=l;var u={error:null,errorCode:0,currentCmd:"shell.js"};function d(e){return"object"==typeof e&&null!==e}function f(){l.silent||console.error.apply(console,arguments)}function p(e){if("string"!=typeof e)throw new TypeError("input must be a string");return e.replace(/\\/g,"/")}function h(e,t,r){if("string"!=typeof e)throw new Error("msg must be a string");var n={continue:!1,code:1,prefix:u.currentCmd+": ",silent:!1};"number"==typeof t&&d(r)?r.code=t:d(t)?r=t:"number"==typeof t?r={code:t}:"number"!=typeof t&&(r={}),r=Object.assign({},n,r),u.errorCode||(u.errorCode=r.code);var o=p(r.prefix+e);if(u.error=u.error?u.error+"\n":"",u.error+=o,l.fatal)throw new Error(o);if(e.length>0&&!r.silent&&f(o),!r.continue)throw{msg:"earlyExit",retValue:new m("",u.error,u.errorCode)}}function m(e,t,r){var n;return e instanceof Array?((n=e).stdout=e.join("\n"),e.length>0&&(n.stdout+="\n")):(n=new String(e)).stdout=e,n.stderr=t,n.code=r,S.forEach(function(e){n[e]=s[e].bind(n)}),n}function b(e,t,r){if("string"!=typeof e&&!d(e))throw new Error("options must be strings or key-value pairs");if(!d(t))throw new Error("parseOptions() internal error: map must be an object");if(r&&!d(r))throw new Error("parseOptions() internal error: errorOptions must be object");if("--"===e)return{};var n={};if(Object.keys(t).forEach(function(e){var r=t[e];"!"!==r[0]&&(n[r]=!1)}),""===e)return n;if("string"==typeof e){if("-"!==e[0])throw new Error("Options string must start with a '-'");e.slice(1).split("").forEach(function(e){if(e in t){var o=t[e];"!"===o[0]?n[o.slice(1)]=!1:n[o]=!0}else h("option not recognized: "+e,r||{})})}else Object.keys(e).forEach(function(o){var i=o[1];if(i in t){var s=t[i];n[s]=e[o]}else h("option not recognized: "+i,r||{})});return n}function y(e){if(!Array.isArray(e))throw new TypeError("must be an array");var t=[];return e.forEach(function(e){if("string"!=typeof e)t.push(e);else{var r;try{r=(r=o.sync(e,l.globOptions)).length>0?r:[e]}catch(t){r=[e]}t=t.concat(r)}}),t}ka.state=u,delete process.env.OLDPWD,ka.isObject=d,ka.log=f,ka.convertErrorOutput=p,ka.error=h,ka.ShellString=m,ka.parseOptions=b,ka.expand=y;var g="function"==typeof Buffer.alloc?function(e){return Buffer.alloc(e||l.bufLength)}:function(e){return new Buffer(e||l.bufLength)};function v(e,t,n){return n=n||{},function(){var o=null;u.currentCmd=e,u.error=null,u.errorCode=0;try{var i=[].slice.call(arguments,0);if(l.verbose&&console.error.apply(console,[e].concat(i)),u.pipedValue=this&&"string"==typeof this.stdout?this.stdout:"",!1===n.unix)o=t.apply(this,i);else{d(i[0])&&"Object"===i[0].constructor.name||(0===i.length||"string"!=typeof i[0]||i[0].length<=1||"-"!==i[0][0])&&i.unshift(""),i=(i=i.reduce(function(e,t){return Array.isArray(t)?e.concat(t):(e.push(t),e)},[])).map(function(e){return d(e)&&"String"===e.constructor.name?e.toString():e});var s=r.homedir();i=i.map(function(e){return"string"==typeof e&&"~/"===e.slice(0,2)||"~"===e?e.replace(/^~/,s):e}),l.noglob||!0!==n.allowGlobbing||(i=i.slice(0,n.globStart).concat(y(i.slice(n.globStart))));try{d(n.cmdOptions)&&(i[0]=b(i[0],n.cmdOptions)),o=t.apply(this,i)}catch(e){if("earlyExit"!==e.msg)throw e;o=e.retValue}}}catch(e){if(!u.error)throw e.name="ShellJSInternalError",e;if(l.fatal)throw e}return n.wrapOutput&&("string"==typeof o||Array.isArray(o))&&(o=new m(o,u.error,u.errorCode)),u.currentCmd="shell.js",o}}ka.buffer=g,ka.unlinkSync=function(e){try{n.unlinkSync(e)}catch(t){if("EPERM"!==t.code)throw t;n.chmodSync(e,"0666"),n.unlinkSync(e)}},ka.statFollowLinks=function(){return n.statSync.apply(n,arguments)},ka.statNoFollowLinks=function(){return n.lstatSync.apply(n,arguments)},ka.randomFileName=function(){return"shelljs_"+function e(t){if(1===t)return parseInt(16*Math.random(),10).toString(16);for(var r="",n=0;n<t;n++)r+=e(1);return r}(20)},ka.wrap=v,ka.readFromPipe=function(){return u.pipedValue};var w={allowGlobbing:!0,canReceivePipe:!1,cmdOptions:null,globStart:1,pipeOnly:!1,wrapOutput:!0,unix:!0},S=[];return ka.register=function(e,t,r){if(r=r||{},Object.keys(r).forEach(function(e){if(!w.hasOwnProperty(e))throw new Error("Unknown option '"+e+"'");if(typeof r[e]!=typeof w[e])throw new TypeError("Unsupported type '"+typeof r[e]+"' for option '"+e+"'")}),r=Object.assign({},w,r),i.hasOwnProperty(e))throw new Error("Command `"+e+"` already exists");r.pipeOnly?(r.canReceivePipe=!0,s[e]=v(e,t,r)):i[e]=v(e,t,r),r.canReceivePipe&&S.push(e)},ka}function hc(){if(rc)return tc;rc=1;var e=pc(),r=t;function n(t,n){var i=e.readFromPipe();return n||i||e.error("no paths given"),(n=[].slice.call(arguments,1)).forEach(function(t){r.existsSync(t)?e.statFollowLinks(t).isDirectory()&&e.error(t+": Is a directory"):e.error("no such file or directory: "+t),i+=r.readFileSync(t,"utf8")}),t.number&&(i=function(e){var t=e.split("\n"),r=t.pop();t=t.map(function(e,t){return o(t+1,e)}),r.length&&(r=o(t.length+1,r));return t.push(r),t.join("\n")}(i)),i}function o(e,t){return(" "+e).slice(-6)+"\t"+t}return e.register("cat",n,{canReceivePipe:!0,cmdOptions:{n:"number"}}),tc=n}function mc(){if(oc)return nc;oc=1;var t=e,r=pc();function n(e,n){n||(n=t.homedir()),"-"===n&&(process.env.OLDPWD?n=process.env.OLDPWD:r.error("could not find previous directory"));try{var o=process.cwd();process.chdir(n),process.env.OLDPWD=o}catch(e){var i;try{r.statFollowLinks(n),i="not a directory: "+n}catch(e){i="no such file or directory: "+n}i&&r.error(i)}return""}return r.register("cd",n,{}),nc=n}function bc(){if(sc)return ic;sc=1;var e,n=pc(),o=t,i=r,s={OTHER_EXEC:(e={EXEC:1,WRITE:2,READ:4}).EXEC,OTHER_WRITE:e.WRITE,OTHER_READ:e.READ,GROUP_EXEC:e.EXEC<<3,GROUP_WRITE:e.WRITE<<3,GROUP_READ:e.READ<<3,OWNER_EXEC:e.EXEC<<6,OWNER_WRITE:e.WRITE<<6,OWNER_READ:e.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)};function a(e,t,r){var a;return r||(e.length>0&&"-"===e.charAt(0)?[].unshift.call(arguments,""):n.error("You must specify a file.")),e=n.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"}),r=[].slice.call(arguments,2),e.recursive?(a=[],r.forEach(function e(t){var r=n.statNoFollowLinks(t);r.isSymbolicLink()||(a.push(t),r.isDirectory()&&o.readdirSync(t).forEach(function(r){e(t+"/"+r)}))})):a=r,a.forEach(function(r){if(r=i.resolve(r),o.existsSync(r)||n.error("File not found: "+r),!e.recursive||!n.statNoFollowLinks(r).isSymbolicLink()){var a=n.statFollowLinks(r),c=a.isDirectory(),l=a.mode,u=l&s.TYPE_MASK,d=l;isNaN(parseInt(t,8))?t.split(",").forEach(function(t){var i=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(i){var a=i[1],f=i[2],p=i[3],h=-1!==a.indexOf("u")||"a"===a||""===a,m=-1!==a.indexOf("g")||"a"===a||""===a,b=-1!==a.indexOf("o")||"a"===a||""===a,y=-1!==p.indexOf("r"),g=-1!==p.indexOf("w"),v=-1!==p.indexOf("x"),w=-1!==p.indexOf("X"),S=-1!==p.indexOf("t"),E=-1!==p.indexOf("s");w&&c&&(v=!0);var x=0;switch(h&&(x|=(y?s.OWNER_READ:0)+(g?s.OWNER_WRITE:0)+(v?s.OWNER_EXEC:0)+(E?s.SETUID:0)),m&&(x|=(y?s.GROUP_READ:0)+(g?s.GROUP_WRITE:0)+(v?s.GROUP_EXEC:0)+(E?s.SETGID:0)),b&&(x|=(y?s.OTHER_READ:0)+(g?s.OTHER_WRITE:0)+(v?s.OTHER_EXEC:0)),S&&(x|=s.STICKY),f){case"+":d|=x;break;case"-":d&=~x;break;case"=":d=u+x,n.statFollowLinks(r).isDirectory()&&(d|=s.SETUID+s.SETGID&l);break;default:n.error("Could not recognize operator: `"+f+"`")}e.verbose&&console.log(r+" -> "+d.toString(8)),l!==d&&(!e.verbose&&e.changes&&console.log(r+" -> "+d.toString(8)),o.chmodSync(r,d),l=d)}else n.error("Invalid symbolic mode change: "+t)}):(d=u+parseInt(t,8),n.statFollowLinks(r).isDirectory()&&(d|=s.SETUID+s.SETGID&l),o.chmodSync(r,d))}}),""}return n.register("chmod",a,{}),ic=a}function yc(){if(cc)return ac;cc=1;var e=t,n=r,o=pc();function i(t,r,n){e.existsSync(t)||o.error("copyFileSync: no such file or directory: "+t);var i="win32"===process.platform;try{if(n.update&&o.statFollowLinks(t).mtime<e.statSync(r).mtime)return}catch(e){}if(o.statNoFollowLinks(t).isSymbolicLink()&&!n.followsymlink){try{o.statNoFollowLinks(r),o.unlinkSync(r)}catch(e){}var s=e.readlinkSync(t);e.symlinkSync(s,r,i?"junction":null)}else{var a=o.buffer(),c=a.length,l=c,u=0,d=null,f=null;try{d=e.openSync(t,"r")}catch(e){o.error("copyFileSync: could not read src file ("+t+")")}try{f=e.openSync(r,"w")}catch(e){o.error("copyFileSync: could not write to dest file (code="+e.code+"):"+r)}for(;l===c;)l=e.readSync(d,a,0,c,u),e.writeSync(f,a,0,l),u+=l;e.closeSync(d),e.closeSync(f),e.chmodSync(r,o.statFollowLinks(t).mode)}}function s(t,r,n,c){if(c||(c={}),!(n>=o.config.maxdepth)){n++;var l="win32"===process.platform;try{e.mkdirSync(r)}catch(e){if("EEXIST"!==e.code)throw e}for(var u=e.readdirSync(t),d=0;d<u.length;d++){var f,p=t+"/"+u[d],h=r+"/"+u[d],m=o.statNoFollowLinks(p);if(c.followsymlink&&a(t,p))console.error("Cycle link found."),f=e.readlinkSync(p),e.symlinkSync(f,h,l?"junction":null);else if(m.isDirectory())s(p,h,n,c);else if(m.isSymbolicLink()&&!c.followsymlink){f=e.readlinkSync(p);try{o.statNoFollowLinks(h),o.unlinkSync(h)}catch(e){}e.symlinkSync(f,h,l?"junction":null)}else m.isSymbolicLink()&&c.followsymlink?(m=o.statFollowLinks(p)).isDirectory()?s(p,h,n,c):i(p,h,c):e.existsSync(h)&&c.no_force?o.log("skipping existing file: "+u[d]):i(p,h,c)}var b=o.statFollowLinks(t);e.chmodSync(r,b.mode)}}function a(t,r){if(o.statNoFollowLinks(r).isSymbolicLink()&&o.statFollowLinks(r).isDirectory()){var n=e.realpathSync(t),i=e.realpathSync(r);if(new RegExp(i).test(n))return!0}return!1}function c(t,r,a){t.followsymlink&&(t.noFollowsymlink=!1),t.recursive||t.noFollowsymlink||(t.followsymlink=!0),arguments.length<3?o.error("missing <source> and/or <dest>"):(r=[].slice.call(arguments,1,arguments.length-1),a=arguments[arguments.length-1]);var c=e.existsSync(a),l=c&&o.statFollowLinks(a);return c&&l.isDirectory()||!(r.length>1)||o.error("dest is not a directory (too many sources)"),c&&l.isFile()&&t.no_force?new o.ShellString("","",0):(r.forEach(function(c,u){if(!e.existsSync(c))return""===c&&(c="''"),void o.error("no such file or directory: "+c,{continue:!0});var d=o.statFollowLinks(c);if(!t.noFollowsymlink&&d.isDirectory())if(t.recursive){var f=l&&l.isDirectory()?n.join(a,n.basename(c)):a;try{o.statFollowLinks(n.dirname(a)),s(c,f,0,{no_force:t.no_force,followsymlink:t.followsymlink})}catch(e){o.error("cannot create directory '"+a+"': No such file or directory")}}else o.error("omitting directory '"+c+"'",{continue:!0});else{var p=a;l&&l.isDirectory()&&(p=n.normalize(a+"/"+n.basename(c)));var h=e.existsSync(p);if(h&&function(e,t){var r=e[t];return e.slice(0,t).some(function(e){return n.basename(e)===n.basename(r)})}(r,u))return void(t.no_force||o.error("will not overwrite just-created '"+p+"' with '"+c+"'",{continue:!0}));if(h&&t.no_force)return;if(""===n.relative(c,p))return void o.error("'"+p+"' and '"+c+"' are the same file",{continue:!0});i(c,p,t)}}),new o.ShellString("",o.state.error,o.state.errorCode))}return o.register("cp",c,{cmdOptions:{f:"!no_force",n:"no_force",u:"update",R:"recursive",r:"recursive",L:"followsymlink",P:"noFollowsymlink"},wrapOutput:!1}),ac=c}var gc,vc,wc,Sc,Ec,xc={};function Oc(){if(gc)return xc;gc=1;var e=pc(),t=mc(),n=r;e.register("dirs",u,{wrapOutput:!1}),e.register("pushd",c,{wrapOutput:!1}),e.register("popd",l,{wrapOutput:!1});var o=[];function i(e){return/^[\-+]\d+$/.test(e)}function s(t){if(i(t)){if(Math.abs(t)<o.length+1)return/^-/.test(t)?Number(t)-1:Number(t);e.error(t+": directory stack index out of range")}else e.error(t+": invalid number")}function a(){return[process.cwd()].concat(o)}function c(r,c){i(r)&&(c=r,r=""),r=e.parseOptions(r,{n:"no-cd",q:"quiet"});var l=a();if("+0"===c)return l;if(c)if(i(c)){var d=s(c);l=l.slice(d).concat(l.slice(0,d))}else r["no-cd"]?l.splice(1,0,c):l.unshift(c);else{if(!(l.length>1))return e.error("no other directory");l=l.splice(1,1).concat(l)}return r["no-cd"]?l=l.slice(1):(c=n.resolve(l.shift()),t("",c)),o=l,u(r.quiet?"-q":"")}function l(r,a){if(i(r)&&(a=r,r=""),r=e.parseOptions(r,{n:"no-cd",q:"quiet"}),!o.length)return e.error("directory stack empty");if(a=s(a||"+0"),r["no-cd"]||a>0||o.length+a===0)a=a>0?a-1:a,o.splice(a,1);else{var c=n.resolve(o.shift());t("",c)}return u(r.quiet?"-q":"")}function u(t,r){if(i(t)&&(r=t,t=""),(t=e.parseOptions(t,{c:"clear",q:"quiet"})).clear)return o=[];var n=a();return r?((r=s(r))<0&&(r=n.length+r),t.quiet||e.log(n[r]),n[r]):(t.quiet||e.log(n.join(" ")),n)}return xc.pushd=c,xc.popd=l,xc.dirs=u,xc}function jc(){if(wc)return vc;wc=1;var e=i.format,t=pc();function r(r){var n=[].slice.call(arguments,r?0:1),o={};try{o=t.parseOptions(n[0],{e:"escapes",n:"no_newline"},{silent:!0}),n[0]&&n.shift()}catch(e){t.state.error=null}var i=e.apply(null,n);return o.no_newline||(i+="\n"),process.stdout.write(i),i}return t.register("echo",r,{allowGlobbing:!1}),vc=r}function kc(){if(Ec)return Sc;Ec=1;var e=pc();return Sc=function(){return e.state.error}}var Tc,Dc={exports:{}};function Ic(){return Tc||(Tc=1,function(e){if(require.main!==e)throw new Error("This file should not be required");var r=s,n=t,o=process.argv[2],i=n.readFileSync(o,"utf8"),a=JSON.parse(i),c=a.command,l=a.execOptions,u=a.pipe,d=a.stdoutFile,f=a.stderrFile,p=r.exec(c,l,function(e){e?void 0===e.code?process.exitCode=1:process.exitCode=e.code:process.exitCode=0}),h=n.createWriteStream(d),m=n.createWriteStream(f);p.stdout.pipe(h),p.stderr.pipe(m),p.stdout.pipe(process.stdout),p.stderr.pipe(process.stderr),u&&p.stdin.end(u)}(Dc)),Dc.exports}var Ac,Nc,Cc,Mc,Lc,Pc,Rc,_c,$c,Bc,Fc,Uc,Gc,Wc,zc,Vc,Hc,qc,Kc,Xc,Yc,Qc={};function Jc(){if(Ac)return Qc;Ac=1;var r,n=pc(),o=e,i=t;function s(e){if(!e||!i.existsSync(e))return!1;if(!n.statFollowLinks(e).isDirectory())return!1;var t=e+"/"+n.randomFileName();try{return i.writeFileSync(t," "),n.unlinkSync(t),e}catch(e){return!1}}function a(){return r||(r=s(o.tmpdir())||s(process.env.TMPDIR)||s(process.env.TEMP)||s(process.env.TMP)||s(process.env.Wimp$ScrapDir)||s("C:\\TEMP")||s("C:\\TMP")||s("\\TEMP")||s("\\TMP")||s("/tmp")||s("/var/tmp")||s("/usr/tmp")||s("."))}return n.register("tempdir",a,{allowGlobbing:!1,wrapOutput:!1}),Qc.tempDir=a,Qc.isCached=function(){return r},Qc.clearCache=function(){r=void 0},Qc}function Zc(){if(Cc)return Nc;Cc=1;var e=r;function t(){return e.resolve(process.cwd())}return pc().register("pwd",t,{allowGlobbing:!1}),Nc=t}function el(){if(Lc)return Mc;Lc=1;var e=pc(),n=Jc().tempDir,o=Zc(),i=r,a=t,c=s,l=20971520;function u(t,r,s){r=r||{},t||e.error("must specify command");var u=e.readFromPipe();return"function"==typeof r&&(s=r,r={async:!0}),"object"==typeof r&&"function"==typeof s&&(r.async=!0),(r=e.extend({silent:e.config.silent,async:!1},r)).async?function(t,r,n,i){r=e.extend({silent:e.config.silent,cwd:o().toString(),env:process.env,maxBuffer:l,encoding:"utf8"},r);var s=c.exec(t,r,function(e,t,r){i&&(e?void 0===e.code?i(1,t,r):i(e.code,t,r):i(0,t,r))});return n&&s.stdin.end(n),r.silent||(s.stdout.pipe(process.stdout),s.stderr.pipe(process.stderr)),s}(t,r,u,s):function(t,r,s){e.config.execPath||e.error("Unable to find a path to the node binary. Please manually set config.execPath");var u=n(),d=i.resolve(u+"/"+e.randomFileName()),f=i.resolve(u+"/"+e.randomFileName()),p=i.resolve(u+"/"+e.randomFileName());r=e.extend({silent:e.config.silent,cwd:o().toString(),env:process.env,maxBuffer:l,encoding:"utf8"},r),a.existsSync(d)&&e.unlinkSync(d),a.existsSync(f)&&e.unlinkSync(f),a.existsSync(p)&&e.unlinkSync(p),r.cwd=i.resolve(r.cwd);var h={command:t,execOptions:r,pipe:s,stdoutFile:p,stderrFile:f};function m(e,t){a.writeFileSync(e,t,{encoding:"utf8",mode:parseInt("600",8)})}m(p,""),m(f,""),m(d,JSON.stringify(h));var b=[i.join(__dirname,"exec-child.js"),d];r.silent?r.stdio="ignore":r.stdio=[0,1,2];var y=0;try{delete r.shell,c.execFileSync(e.config.execPath,b,r)}catch(e){y=e.status||1}var g="",v="";"buffer"===r.encoding?(g=a.readFileSync(p),v=a.readFileSync(f)):(g=a.readFileSync(p,r.encoding),v=a.readFileSync(f,r.encoding));try{e.unlinkSync(d)}catch(e){}try{e.unlinkSync(f)}catch(e){}try{e.unlinkSync(p)}catch(e){}return 0!==y&&e.error(v,y,{continue:!0,silent:!0}),e.ShellString(g,v,y)}(t,r,u)}return e.register("exec",u,{unix:!1,canReceivePipe:!0,wrapOutput:!1}),Mc=u}function tl(){if(Rc)return Pc;Rc=1;var e=r,n=t,o=pc(),i=fc(),s=e.sep+"**";function a(t,r){t.all_deprecated&&(o.log("ls: Option -a is deprecated. Use -A instead"),t.all=!0),r=r?[].slice.call(arguments,1):["."];var a=[];function c(e,r,n){var i,s;"win32"===process.platform&&(r=r.replace(/\\/g,"/")),t.long?(n=n||(t.link?o.statFollowLinks(e):o.statNoFollowLinks(e)),a.push((i=r,(s=n).name=i,s.toString=function(){return[this.mode,this.nlink,this.uid,this.gid,this.size,this.mtime,this.name].join(" ")},s))):a.push(r)}return r.forEach(function(r){var a;try{if((a=t.link?o.statFollowLinks(r):o.statNoFollowLinks(r)).isSymbolicLink())try{var l=o.statFollowLinks(r);l.isDirectory()&&(a=l)}catch(e){}}catch(e){return void o.error("no such file or directory: "+r,2,{continue:!0})}a.isDirectory()&&!t.directory?t.recursive?i.sync(r+s,{dot:t.all,follow:t.link}).forEach(function(t){e.relative(r,t)&&c(t,e.relative(r,t))}):t.all?n.readdirSync(r).forEach(function(t){c(e.join(r,t),t)}):n.readdirSync(r).forEach(function(t){"."!==t[0]&&c(e.join(r,t),t)}):c(r,r,a)}),a}return o.register("ls",a,{cmdOptions:{R:"recursive",A:"all",L:"link",a:"all_deprecated",d:"directory",l:"long"}}),Pc=a}function rl(){if($c)return _c;$c=1;var e=r,t=pc(),n=tl();function o(r,o){o?"string"==typeof o&&(o=[].slice.call(arguments,1)):t.error("no path specified");var i=[];function s(e){"win32"===process.platform&&(e=e.replace(/\\/g,"/")),i.push(e)}return o.forEach(function(r){var o;try{o=t.statFollowLinks(r)}catch(e){t.error("no such file or directory: "+r)}s(r),o.isDirectory()&&n({recursive:!0,all:!0},r).forEach(function(t){s(e.join(r,t))})}),i}return t.register("find",o,{}),_c=o}function nl(){if(Fc)return Bc;Fc=1;var e=pc(),r=t;function n(t,n,o){var i=e.readFromPipe();o||i||e.error("no paths given",2),o=[].slice.call(arguments,2),i&&o.unshift("-");var s=[];return t.ignoreCase&&(n=new RegExp(n,"i")),o.forEach(function(o){if(r.existsSync(o)||"-"===o){var a="-"===o?i:r.readFileSync(o,"utf8");if(t.nameOnly)a.match(n)&&s.push(o);else a.split("\n").forEach(function(e){var r=e.match(n);(t.inverse&&!r||!t.inverse&&r)&&s.push(e)})}else e.error("no such file or directory: "+o,2,{continue:!0})}),s.join("\n")+"\n"}return e.register("grep",n,{globStart:2,canReceivePipe:!0,cmdOptions:{v:"inverse",l:"nameOnly",i:"ignoreCase"}}),Bc=n}function ol(){if(Gc)return Uc;Gc=1;var e=pc(),r=t;function n(t,n){var o=[],i=e.readFromPipe();n||i||e.error("no paths given");var s=1;!0===t.numLines?(s=2,t.numLines=Number(arguments[1])):!1===t.numLines&&(t.numLines=10),n=[].slice.call(arguments,s),i&&n.unshift("-");var a=!1;return n.forEach(function(n){if("-"!==n){if(!r.existsSync(n))return void e.error("no such file or directory: "+n,{continue:!0});if(e.statFollowLinks(n).isDirectory())return void e.error("error reading '"+n+"': Is a directory",{continue:!0})}var s;s="-"===n?i:t.numLines<0?r.readFileSync(n,"utf8"):function(t,n){for(var o=e.buffer(),i=o.length,s=i,a=0,c=r.openSync(t,"r"),l=0,u="";s===i&&l<n;){s=r.readSync(c,o,0,i,a);var d=o.toString("utf8",0,s);l+=d.split("\n").length-1,u+=d,a+=s}return r.closeSync(c),u}(n,t.numLines);var c=s.split("\n"),l=""===c[c.length-1];l&&c.pop(),a=l||t.numLines<c.length,o=o.concat(c.slice(0,t.numLines))}),a&&o.push(""),o.join("\n")}return e.register("head",n,{canReceivePipe:!0,cmdOptions:{n:"numLines"}}),Uc=n}function il(){if(zc)return Wc;zc=1;var e=t,n=r,o=pc();function i(t,r,i){r&&i||o.error("Missing <source> and/or <dest>"),r=String(r);var s=n.normalize(r).replace(RegExp(n.sep+"$"),""),a=n.resolve(r)===s;if(i=n.resolve(process.cwd(),String(i)),e.existsSync(i)&&(t.force||o.error("Destination file exists",{continue:!0}),e.unlinkSync(i)),t.symlink){var c="win32"===process.platform,l=c?"file":null,u=a?s:n.resolve(process.cwd(),n.dirname(i),r);e.existsSync(u)?c&&o.statFollowLinks(u).isDirectory()&&(l="junction"):o.error("Source file does not exist",{continue:!0});try{e.symlinkSync("junction"===l?u:r,i,l)}catch(e){o.error(e.message)}}else{e.existsSync(r)||o.error("Source file does not exist",{continue:!0});try{e.linkSync(r,i)}catch(e){o.error(e.message)}}return""}return o.register("ln",i,{cmdOptions:{s:"symlink",f:"force"}}),Wc=i}function sl(){if(Hc)return Vc;Hc=1;var e=pc(),n=t,o=r;function i(t){var r=o.dirname(t);r===t&&e.error("dirname() failed: ["+t+"]"),n.existsSync(r)||i(r),n.mkdirSync(t,parseInt("0777",8))}function s(t,r){return r||e.error("no paths given"),"string"==typeof r&&(r=[].slice.call(arguments,1)),r.forEach(function(r){try{var s=e.statNoFollowLinks(r);return void(t.fullpath?s.isFile()&&e.error("cannot create directory "+r+": File exists",{continue:!0}):e.error("path already exists: "+r,{continue:!0}))}catch(e){}var a=o.dirname(r);if(n.existsSync(a)||t.fullpath)try{t.fullpath?i(o.resolve(r)):n.mkdirSync(r,parseInt("0777",8))}catch(t){var c;if("EACCES"===t.code)c="Permission denied";else{if("ENOTDIR"!==t.code&&"ENOENT"!==t.code)throw t;c="Not a directory"}e.error("cannot create directory "+r+": "+c,{continue:!0})}else e.error("no such file or directory: "+a,{continue:!0})}),""}return e.register("mkdir",s,{cmdOptions:{p:"fullpath"}}),Vc=s}function al(){if(Kc)return qc;Kc=1;var e=pc(),r=t;function n(t,i,s){var a;a=r.readdirSync(t);for(var c=0;c<a.length;c++){var l=t+"/"+a[c];if(e.statNoFollowLinks(l).isDirectory())n(l,i);else if(i||o(l))try{e.unlinkSync(l)}catch(t){e.error("could not remove file (code "+t.code+"): "+l,{continue:!0})}}if(!s){var u;try{for(var d=Date.now();;)try{if(u=r.rmdirSync(t),r.existsSync(t))throw{code:"EAGAIN"};break}catch(e){if("win32"!==process.platform||"ENOTEMPTY"!==e.code&&"EBUSY"!==e.code&&"EPERM"!==e.code&&"EAGAIN"!==e.code){if("ENOENT"===e.code)break;throw e}if(Date.now()-d>1e3)throw e}}catch(r){e.error("could not remove directory (code "+r.code+"): "+t,{continue:!0})}return u}}function o(e){var t=!0;try{var n=r.openSync(e,"a");r.closeSync(n)}catch(e){t=!1}return t}function i(t,r){return r||e.error("no paths given"),(r=[].slice.call(arguments,1)).forEach(function(r){var i;try{var s="/"===r[r.length-1]?r.slice(0,-1):r;i=e.statNoFollowLinks(s)}catch(n){return void(t.force||e.error("no such file or directory: "+r,{continue:!0}))}i.isFile()?function(t,r){r.force||o(t)?e.unlinkSync(t):e.error("permission denied: "+t,{continue:!0})}(r,t):i.isDirectory()?function(t,r){r.recursive?n(t,r.force):e.error("path is a directory",{continue:!0})}(r,t):i.isSymbolicLink()?function(t,r){var o;try{o=e.statFollowLinks(t)}catch(r){return void e.unlinkSync(t)}o.isFile()?e.unlinkSync(t):o.isDirectory()&&("/"===t[t.length-1]?r.recursive?n(t,r.force,!0):e.error("path is a directory",{continue:!0}):e.unlinkSync(t))}(r,t):i.isFIFO()&&function(t){e.unlinkSync(t)}(r)}),""}return e.register("rm",i,{cmdOptions:{f:"force",r:"recursive",R:"recursive"}}),qc=i}function cl(){if(Yc)return Xc;Yc=1;var e=t,n=r,o=pc(),i=yc(),s=al();function a(t,r,a){arguments.length<3?o.error("missing <source> and/or <dest>"):arguments.length>3?(r=[].slice.call(arguments,1,arguments.length-1),a=arguments[arguments.length-1]):"string"==typeof r?r=[r]:o.error("invalid arguments");var c=e.existsSync(a),l=c&&o.statFollowLinks(a);return c&&l.isDirectory()||!(r.length>1)||o.error("dest is not a directory (too many sources)"),c&&l.isFile()&&t.no_force&&o.error("dest file already exists: "+a),r.forEach(function(c,l){if(e.existsSync(c)){var u=a;if(e.existsSync(a)&&o.statFollowLinks(a).isDirectory()&&(u=n.normalize(a+"/"+n.basename(c))),e.existsSync(u)&&function(e,t){var r=e[t];return e.slice(0,t).some(function(e){return n.basename(e)===n.basename(r)})}(r,l))t.no_force||o.error("will not overwrite just-created '"+u+"' with '"+c+"'",{continue:!0});else if(e.existsSync(u)&&t.no_force)o.error("dest file already exists: "+u,{continue:!0});else if(n.resolve(c)!==n.dirname(n.resolve(u)))try{e.renameSync(c,u)}catch(e){"EXDEV"===e.code&&(i("-r",c,u),s("-rf",c))}else o.error("cannot move to self: "+c,{continue:!0})}else o.error("no such file or directory: "+c,{continue:!0})}),""}return o.register("mv",a,{cmdOptions:{f:"!no_force",n:"no_force"}}),Xc=a}var ll,ul={};function dl(){return ll||(ll=1),ul}var fl,pl,hl,ml,bl,yl,gl,vl,wl,Sl,El,xl,Ol,jl,kl,Tl,Dl,Il,Al,Nl,Cl,Ml,Ll={};function Pl(){return fl||(fl=1),Ll}function Rl(){if(hl)return pl;hl=1;var e=pc(),r=t;function n(t,n,o,i){var s=e.readFromPipe();"string"!=typeof o&&"function"!=typeof o&&("number"==typeof o?o=o.toString():e.error("invalid replacement string")),"string"==typeof n&&(n=RegExp(n)),i||s||e.error("no files given"),i=[].slice.call(arguments,3),s&&i.unshift("-");var a=[];return i.forEach(function(i){if(r.existsSync(i)||"-"===i){var c=("-"===i?s:r.readFileSync(i,"utf8")).split("\n").map(function(e){return e.replace(n,o)}).join("\n");a.push(c),t.inplace&&r.writeFileSync(i,c,"utf8")}else e.error("no such file or directory: "+i,2,{continue:!0})}),a.join("\n")}return e.register("sed",n,{globStart:3,canReceivePipe:!0,cmdOptions:{i:"inplace"}}),pl=n}function _l(){if(bl)return ml;bl=1;var e=pc();function t(t){if(!t){var r=[].slice.call(arguments,0);r.length<2&&e.error("must provide an argument"),t=r[1]}var n="+"===t[0];n&&(t="-"+t.slice(1)),t=e.parseOptions(t,{e:"fatal",v:"verbose",f:"noglob"}),n&&Object.keys(t).forEach(function(e){t[e]=!t[e]}),Object.keys(t).forEach(function(r){n!==t[r]&&(e.config[r]=t[r])})}return e.register("set",t,{allowGlobbing:!1,wrapOutput:!1}),ml=t}function $l(){if(gl)return yl;gl=1;var e=pc(),r=t;function n(e){var t=e.match(/^\s*(\d*)\s*(.*)$/);return{num:Number(t[1]),value:t[2]}}function o(e,t){var r=e.toLowerCase(),n=t.toLowerCase();return r===n?-1*e.localeCompare(t):r.localeCompare(n)}function i(e,t){var r=n(e),i=n(t);return r.hasOwnProperty("num")&&i.hasOwnProperty("num")&&r.num!==i.num?r.num-i.num:o(r.value,i.value)}function s(t,n){var s=e.readFromPipe();n||s||e.error("no files given"),n=[].slice.call(arguments,1),s&&n.unshift("-");var a=n.reduce(function(t,n){if("-"!==n){if(!r.existsSync(n))return e.error("no such file or directory: "+n,{continue:!0}),t;if(e.statFollowLinks(n).isDirectory())return e.error("read failed: "+n+": Is a directory",{continue:!0}),t}var o="-"===n?s:r.readFileSync(n,"utf8");return t.concat(o.trimRight().split("\n"))},[]).sort(t.numerical?i:o);return t.reverse&&(a=a.reverse()),a.join("\n")+"\n"}return e.register("sort",s,{canReceivePipe:!0,cmdOptions:{r:"reverse",n:"numerical"}}),yl=s}function Bl(){if(wl)return vl;wl=1;var e=pc(),r=t;function n(t,n){var o=[],i=e.readFromPipe();n||i||e.error("no paths given");var s=1;!0===t.numLines?(s=2,t.numLines=Number(arguments[1])):!1===t.numLines&&(t.numLines=10),t.numLines=-1*Math.abs(t.numLines),n=[].slice.call(arguments,s),i&&n.unshift("-");var a=!1;return n.forEach(function(n){if("-"!==n){if(!r.existsSync(n))return void e.error("no such file or directory: "+n,{continue:!0});if(e.statFollowLinks(n).isDirectory())return void e.error("error reading '"+n+"': Is a directory",{continue:!0})}var s=("-"===n?i:r.readFileSync(n,"utf8")).split("\n");""===s[s.length-1]?(s.pop(),a=!0):a=!1,o=o.concat(s.slice(t.numLines))}),a&&o.push(""),o.join("\n")}return e.register("tail",n,{canReceivePipe:!0,cmdOptions:{n:"numLines"}}),vl=n}function Fl(){if(El)return Sl;El=1;var e=pc(),r=t;function n(t,n){n||e.error("no path given");var o=!1;if(Object.keys(t).forEach(function(e){!0===t[e]&&(o=!0)}),o||e.error("could not interpret expression"),t.link)try{return e.statNoFollowLinks(n).isSymbolicLink()}catch(e){return!1}if(!r.existsSync(n))return!1;if(t.exists)return!0;var i=e.statFollowLinks(n);return t.block?i.isBlockDevice():t.character?i.isCharacterDevice():t.directory?i.isDirectory():t.file?i.isFile():t.pipe?i.isFIFO():!!t.socket&&i.isSocket()}return e.register("test",n,{cmdOptions:{b:"block",c:"character",d:"directory",e:"exists",f:"file",L:"link",p:"pipe",S:"socket"},wrapOutput:!1,allowGlobbing:!1}),Sl=n}function Ul(){if(Ol)return xl;Ol=1;var e=pc(),n=t,o=r;function i(t,r){r||e.error("wrong arguments"),n.existsSync(o.dirname(r))||e.error("no such file or directory: "+o.dirname(r));try{return n.writeFileSync(r,this.stdout||this.toString(),"utf8"),this}catch(t){e.error("could not write to file (code "+t.code+"): "+r,{continue:!0})}}return e.register("to",i,{pipeOnly:!0,wrapOutput:!1}),xl=i}function Gl(){if(kl)return jl;kl=1;var e=pc(),n=t,o=r;function i(t,r){r||e.error("wrong arguments"),n.existsSync(o.dirname(r))||e.error("no such file or directory: "+o.dirname(r));try{return n.appendFileSync(r,this.stdout||this.toString(),"utf8"),this}catch(t){e.error("could not append to file (code "+t.code+"): "+r,{continue:!0})}}return e.register("toEnd",i,{pipeOnly:!0,wrapOutput:!1}),jl=i}function Wl(){if(Dl)return Tl;Dl=1;var e=pc(),r=t;function n(t,n){return n?"string"==typeof n?n=[].slice.call(arguments,1):e.error("file arg should be a string file path or an Array of string file paths"):e.error("no files given"),n.forEach(function(n){!function(t,n){var i=o(n);if(i&&i.isDirectory())return;if(!i&&t.no_create)return;r.closeSync(r.openSync(n,"a"));var s=new Date,a=t.date||s,c=t.date||s;if(t.reference){var l=o(t.reference);l||e.error("failed to get attributess of "+t.reference),a=l.mtime,c=l.atime}else t.date&&(a=t.date,c=t.date);t.atime_only&&t.mtime_only||(t.atime_only?a=i.mtime:t.mtime_only&&(c=i.atime));r.utimesSync(n,c,a)}(t,n)}),""}function o(t){try{return e.statFollowLinks(t)}catch(e){return null}}return e.register("touch",n,{cmdOptions:{a:"atime_only",c:"no_create",d:"date",m:"mtime_only",r:"reference"}}),Tl=n}function zl(){if(Al)return Il;Al=1;var e=pc(),r=t;function n(t,n,o){var i=e.readFromPipe();i||(n||e.error("no input given"),r.existsSync(n)?e.statFollowLinks(n).isDirectory()&&e.error("error reading '"+n+"'"):e.error(n+": No such file or directory")),o&&r.existsSync(o)&&e.statFollowLinks(o).isDirectory()&&e.error(o+": Is a directory");var s=(n?r.readFileSync(n,"utf8"):i).trimRight().split("\n"),a=s.reduceRight(function(e,r){return 0===e.length?[{count:1,ln:r}]:0===function(e,r){return t.ignoreCase?e.toLocaleLowerCase().localeCompare(r.toLocaleLowerCase()):e.localeCompare(r)}(e[0].ln,r)?[{count:e[0].count+1,ln:r}].concat(e.slice(1)):[{count:1,ln:r}].concat(e)},[]).filter(function(e){return!t.duplicates||e.count>1}).map(function(e){return(t.count?function(e,t){var r=""+t;return r.length<e&&(r=Array(e-r.length+1).join(" ")+r),r}(7,e.count)+" ":"")+e.ln}).join("\n")+"\n";return o?(new e.ShellString(a).to(o),""):a}return e.register("uniq",n,{canReceivePipe:!0,cmdOptions:{i:"ignoreCase",c:"count",d:"duplicates"}}),Il=n}function Vl(){if(Cl)return Nl;Cl=1;var e=pc(),n=t,o=r;e.register("which",u,{allowGlobbing:!1,cmdOptions:{a:"all"}});var i=".com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh",s=1;function a(){return"win32"===process.platform}function c(e){return e?e.split(o.delimiter):[]}function l(t){return n.existsSync(t)&&!e.statFollowLinks(t).isDirectory()&&(a()||function(e){try{n.accessSync(e,s)}catch(e){return!1}return!0}(t))}function u(t,r){r||e.error("must specify command");var n=a(),s=c(process.env.PATH),u=[];if(-1===r.indexOf("/")){var d=[""];if(n)d=c((process.env.PATHEXT||i).toUpperCase());for(var f=0;f<s.length&&(!(u.length>0)||t.all);f++){var p=o.resolve(s[f],r);n&&(p=p.toUpperCase());var h=p.match(/\.[^<>:"/\|?*.]+$/);if(h&&d.indexOf(h[0])>=0){if(l(p)){u.push(p);break}}else for(var m=0;m<d.length;m++){var b=p+d[m];if(l(b)){u.push(b);break}}}}else l(r)&&u.push(o.resolve(r));return u.length>0?t.all?u:u[0]:t.all?[]:null}return Nl=u}function Hl(){return Ml||(Ml={"/node_modules/shelljs/src/cat.js":hc,"/node_modules/shelljs/src/cd.js":mc,"/node_modules/shelljs/src/chmod.js":bc,"/node_modules/shelljs/src/common.js":pc,"/node_modules/shelljs/src/cp.js":yc,"/node_modules/shelljs/src/dirs.js":Oc,"/node_modules/shelljs/src/echo.js":jc,"/node_modules/shelljs/src/error.js":kc,"/node_modules/shelljs/src/exec-child.js":Ic,"/node_modules/shelljs/src/exec.js":el,"/node_modules/shelljs/src/find.js":rl,"/node_modules/shelljs/src/grep.js":nl,"/node_modules/shelljs/src/head.js":ol,"/node_modules/shelljs/src/ln.js":il,"/node_modules/shelljs/src/ls.js":tl,"/node_modules/shelljs/src/mkdir.js":sl,"/node_modules/shelljs/src/mv.js":cl,"/node_modules/shelljs/src/popd.js":dl,"/node_modules/shelljs/src/pushd.js":Pl,"/node_modules/shelljs/src/pwd.js":Zc,"/node_modules/shelljs/src/rm.js":al,"/node_modules/shelljs/src/sed.js":Rl,"/node_modules/shelljs/src/set.js":_l,"/node_modules/shelljs/src/sort.js":$l,"/node_modules/shelljs/src/tail.js":Bl,"/node_modules/shelljs/src/tempdir.js":Jc,"/node_modules/shelljs/src/test.js":Fl,"/node_modules/shelljs/src/to.js":Ul,"/node_modules/shelljs/src/toEnd.js":Gl,"/node_modules/shelljs/src/touch.js":Wl,"/node_modules/shelljs/src/uniq.js":zl,"/node_modules/shelljs/src/which.js":Vl})}function ql(e,t){var r,n=function(e){var t=e[0];if("/"===t||"\\"===t)return!1;var r=e[1],n=e[2];return!(!("."!==t||r&&"/"!==r&&"\\"!==r)||!("."!==t||"."!==r||n&&"/"!==n&&"\\"!==n))&&(":"!==r||"/"!==n&&"\\"!==n)}(e);"/"===(e=Kl(e))[0]&&(t="");for(var o=Hl(),i=["",".js",".json"];!(r=Kl(n?t+"/node_modules/"+e:t+"/"+e)).endsWith("/..");){for(var s=0;s<i.length;s++){var a=r+i[s];if(o[a])return a}if(!n)break;var c=Kl(t+"/..");if(c===t)break;t=c}return null}function Kl(e){for(var t=(e=e.replace(/\\/g,"/")).split("/"),r=""===t[0],n=1;n<t.length;n++)"."!==t[n]&&""!==t[n]||t.splice(n--,1);for(n=1;n<t.length;n++)".."===t[n]&&n>0&&".."!==t[n-1]&&"."!==t[n-1]&&(t.splice(--n,2),n--);return e=t.join("/"),r&&"/"!==e[0]?e="/"+e:0===e.length&&(e="."),e}var Xl,Yl={},Ql=["cat","cd","chmod","cp","dirs","echo","exec","find","grep","head","ln","ls","mkdir","mv","pwd","rm","sed","set","sort","tail","tempdir","test","to","toEnd","touch","uniq","which"];function Jl(){if(Xl)return Yl;Xl=1;var e=pc();return Ql.forEach(function(e){!function(e){function t(t){var r=ql(t,e);if(null!==r)return Hl()[r]();throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(t){var r=ql(t,e);return null!==r?r:require.resolve(t)},t}("/node_modules/shelljs")("./src/"+e)}),Yl.exit=process.exit,Yl.error=kc(),Yl.ShellString=e.ShellString,Yl.env=process.env,Yl.config=e.config,Yl}var Zl=Jl(),eu=pc();Object.keys(Zl).forEach(function(e){te[e]=Zl[e]});var tu=Ul();String.prototype.to=eu.wrap("to",tu);var ru=Gl();String.prototype.toEnd=eu.wrap("toEnd",ru),te.config.fatal=!0,te.target={};var nu,ou=process.argv.slice(2),iu=ou.indexOf("--");function su(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}iu>-1&&(nu=ou.slice(iu+1,ou.length),ou=ou.slice(0,iu)),setTimeout(function(){var e;if(1!==ou.length||"--help"!==ou[0]){for(e in te.target)(function(e,t){te.target[e]=function(){return t.done||(t.done=!0,t.result=t.apply(t,arguments)),t.result}})(e,te.target[e]);ou.length>0?ou.forEach(function(e){e in te.target?te.target[e](nu):console.log("no such target: "+e)}):"all"in te.target&&te.target.all(nu)}else for(e in console.log("Available targets:"),te.target)console.log(" "+e)},0);const au=(e,t)=>{const r=cu(e);if("string"!=typeof r)throw new TypeError(`${t} must be a string or a file URL: ${r}.`);return r},cu=e=>e instanceof URL?w(e):e,lu=(e,t=[],r={})=>{const n=au(e,"First argument"),[o,i]=su(t)?[[],t]:[t,r];if(!Array.isArray(o))throw new TypeError(`Second argument must be either an array of arguments or an options object: ${o}`);if(o.some(e=>"object"==typeof e&&null!==e))throw new TypeError(`Second argument must be an array of strings: ${o}`);const s=o.map(String),a=s.find(e=>e.includes("\0"));if(void 0!==a)throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${a}`);if(!su(i))throw new TypeError(`Last argument must be an options object: ${i}`);return[n,s,i]},{toString:uu}=Object.prototype,du=e=>"[object Uint8Array]"===uu.call(e),fu=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),pu=new TextEncoder,hu=e=>pu.encode(e),mu=new TextDecoder,bu=e=>mu.decode(e),yu=(e,t)=>{if("utf8"===t&&e.every(e=>"string"==typeof e))return e;const r=new O(t),n=e.map(e=>"string"==typeof e?hu(e):e).map(e=>r.write(e)),o=r.end();return""===o?n:[...n,o]},gu=e=>1===e.length&&du(e[0])?e[0]:wu(vu(e)),vu=e=>e.map(e=>"string"==typeof e?hu(e):e),wu=e=>{const t=new Uint8Array(Su(e));let r=0;for(const n of e)t.set(n,r),r+=n.length;return t},Su=e=>{let t=0;for(const r of e)t+=r.length;return t},Eu=({templates:e,expressions:t,tokens:r,index:n,template:o})=>{if(void 0===o)throw new TypeError(`Invalid backslash sequence: ${e.raw[n]}`);const{nextTokens:i,leadingWhitespaces:s,trailingWhitespaces:a}=xu(o,e.raw[n]),c=ku(r,i,s);if(n===t.length)return c;const l=t[n],u=Array.isArray(l)?l.map(e=>Tu(e)):[Tu(l)];return ku(c,u,a)},xu=(e,t)=>{if(0===t.length)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};const r=[];let n=0;const o=Ou.has(t[0]);for(let o=0,i=0;o<e.length;o+=1,i+=1){const s=t[i];if(Ou.has(s))n!==o&&r.push(e.slice(n,o)),n=o+1;else if("\\"===s){const e=t[i+1];"u"===e&&"{"===t[i+2]?i=t.indexOf("}",i+3):i+=ju[e]??1}}const i=n===e.length;return i||r.push(e.slice(n)),{nextTokens:r,leadingWhitespaces:o,trailingWhitespaces:i}},Ou=new Set([" ","\t","\r","\n"]),ju={x:3,u:5},ku=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],Tu=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if(su(e)&&("stdout"in e||"isMaxBuffer"in e))return Du(e);if(e instanceof S||"[object Promise]"===Object.prototype.toString.call(e))throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");throw new TypeError(`Unexpected "${t}" in template expression`)},Du=({stdout:e})=>{if("string"==typeof e)return e;if(du(e))return bu(e);if(void 0===e)throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.');throw new TypeError(`Unexpected "${typeof e}" stdout in template expression`)},Iu=e=>Au.includes(e),Au=[N.stdin,N.stdout,N.stderr],Nu=["stdin","stdout","stderr"],Cu=e=>Nu[e]??`stdio[${e}]`,Mu=(e,t)=>{const r=Array.from({length:Lu(e)+1}),n=Pu(e[t],r,t);return Gu(n,t)},Lu=({stdio:e})=>Array.isArray(e)?Math.max(e.length,Nu.length):Nu.length,Pu=(e,t,r)=>su(e)?Ru(e,t,r):t.fill(e),Ru=(e,t,r)=>{for(const n of Object.keys(e).sort(_u))for(const o of Bu(n,r,t))t[o]=e[n];return t},_u=(e,t)=>$u(e)<$u(t)?1:-1,$u=e=>"stdout"===e||"stderr"===e?0:"all"===e?2:1,Bu=(e,t,r)=>{if("ipc"===e)return[r.length-1];const n=Fu(e);if(void 0===n||0===n)throw new TypeError(`"${t}.${e}" is invalid.\nIt must be "${t}.stdout", "${t}.stderr", "${t}.all", "${t}.ipc", or "${t}.fd3", "${t}.fd4" (and so on).`);if(n>=r.length)throw new TypeError(`"${t}.${e}" is invalid: that file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);return"all"===n?[1,2]:[n]},Fu=e=>{if("all"===e)return e;if(Nu.includes(e))return Nu.indexOf(e);const t=Uu.exec(e);return null!==t?Number(t[1]):void 0},Uu=/^fd(\d+)$/,Gu=(e,t)=>e.map(e=>void 0===e?Wu[t]:e),Wu={lines:!1,buffer:!0,maxBuffer:1e8,verbose:j("execa").enabled?"full":"none",stripFinalNewline:!0},zu=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],Vu=(e,t)=>"ipc"===t?e.at(-1):e[t],Hu=({verbose:e},t)=>"none"!==Ku(e,t),qu=({verbose:e},t)=>!["none","short"].includes(Ku(e,t)),Ku=(e,t)=>void 0===t?Xu(e):Vu(e,t),Xu=e=>e.find(e=>Yu(e))??Qu.findLast(t=>e.includes(t)),Yu=e=>"function"==typeof e,Qu=["none","short","full"],Ju=e=>k(e).split("\n").map(e=>Zu(e)).join("\n"),Zu=e=>e.replaceAll(td,e=>ed(e)),ed=e=>{const t=rd[e];if(void 0!==t)return t;const r=e.codePointAt(0),n=r.toString(16);return r<=nd?`\\u${n.padStart(4,"0")}`:`\\U${n}`},td=/\p{Separator}|\p{Other}/gu,rd={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},nd=65535,od=e=>id.test(e)?e:"win32"===C?`"${e.replaceAll('"','""')}"`:`'${e.replaceAll("'","'\\''")}'`,id=/^[\w./-]+$/;const sd={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},ad={...sd,tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},cd={...sd,tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},ld=("win32"!==N.platform?"linux"!==N.env.TERM:Boolean(N.env.WT_SESSION)||Boolean(N.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===N.env.ConEmuTask||"Terminus-Sublime"===N.env.TERM_PROGRAM||"vscode"===N.env.TERM_PROGRAM||"xterm-256color"===N.env.TERM||"alacritty"===N.env.TERM||"JetBrains-JediTerm"===N.env.TERMINAL_EMULATOR)?ad:cd,ud=R?.WriteStream?.prototype?.hasColors?.()??!1,dd=(e,t)=>{if(!ud)return e=>e;const r=`[${e}m`,n=`[${t}m`;return e=>{const t=e+"";let o=t.indexOf(n);if(-1===o)return r+t+n;let i=r,s=0;for(;-1!==o;)i+=t.slice(s,o)+r,s=o+n.length,o=t.indexOf(n,s);return i+=t.slice(s)+n,i}},fd=dd(1,22),pd=dd(90,39),hd=dd(91,39),md=dd(93,39),bd=e=>`${yd(e.getHours(),2)}:${yd(e.getMinutes(),2)}:${yd(e.getSeconds(),2)}.${yd(e.getMilliseconds(),3)}`,yd=(e,t)=>String(e).padStart(t,"0"),gd=({failed:e,reject:t})=>e?t?ld.cross:ld.warning:ld.tick,vd={command:({piped:e})=>e?"|":"$",output:()=>" ",ipc:()=>"*",error:gd,duration:gd},wd=e=>e,Sd={command:()=>fd,output:()=>wd,ipc:()=>wd,error:({reject:e})=>e?hd:md,duration:()=>pd},Ed=(e,t,r)=>{const n=(({verbose:e},t)=>{const r=Ku(e,t);return Yu(r)?r:void 0})(t,r);return e.map(({verboseLine:e,verboseObject:t})=>xd(e,t,n)).filter(e=>void 0!==e).map(e=>Od(e)).join("")},xd=(e,t,r)=>{if(void 0===r)return e;const n=r(e,t);return"string"==typeof n?n:void 0},Od=e=>e.endsWith("\n")?e:`${e}\n`,jd=({type:e,verboseMessage:t,fdNumber:r,verboseInfo:n,result:o})=>{const i=kd({type:e,result:o,verboseInfo:n}),s=Td(t,i),a=Ed(s,n,r);d(Id,a)},kd=({type:e,result:t,verboseInfo:{escapedCommand:r,commandId:n,rawOptions:{piped:o=!1,...i}}})=>({type:e,escapedCommand:r,commandId:`${n}`,timestamp:new Date,piped:o,result:t,options:i}),Td=(e,t)=>e.split("\n").map(e=>Dd({...t,message:e})),Dd=e=>({verboseLine:(({type:e,message:t,timestamp:r,piped:n,commandId:o,result:{failed:i=!1}={},options:{reject:s=!0}})=>{const a=bd(r),c=vd[e]({failed:i,reject:s,piped:n}),l=Sd[e]({reject:s});return`${pd(`[${a}]`)} ${pd(`[${o}]`)} ${l(c)} ${l(t)}`})(e),verboseObject:e}),Id=2,Ad=e=>{const t="string"==typeof e?e:T(e);return Ju(t).replaceAll("\t"," ".repeat(Nd))},Nd=2,Cd=e=>Hu({verbose:e})?Md++:void 0;let Md=0n;const Ld=e=>{for(const t of e){if(!1===t)throw new TypeError('The "verbose: false" option was renamed to "verbose: \'none\'".');if(!0===t)throw new TypeError('The "verbose: true" option was renamed to "verbose: \'short\'".');if(!Qu.includes(t)&&!Yu(t)){const e=Qu.map(e=>`'${e}'`).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e} or a function.`)}}},Pd=()=>M.bigint(),Rd=e=>Number(M.bigint()-e)/1e6,_d=(e,t,r)=>{const n=Pd(),{command:o,escapedCommand:i}=((e,t)=>{const r=[e,...t];return{command:r.join(" "),escapedCommand:r.map(e=>od(Zu(e))).join(" ")}})(e,t),s=((e,t,r)=>(Ld(e),{verbose:e,escapedCommand:t,commandId:Cd(e),rawOptions:r}))(Mu(r,"verbose"),i,{...r});return((e,t)=>{Hu(t)&&jd({type:"command",verboseMessage:e,verboseInfo:t})})(i,s),{command:o,escapedCommand:i,startTime:n,verboseInfo:s}};var $d,Bd,Fd,Ud,Gd,Wd={exports:{}};Gd="win32"===process.platform||te.TESTING_WINDOWS?function(){if(Bd)return $d;Bd=1,$d=n,n.sync=function(t,n){return r(e.statSync(t),t,n)};var e=t;function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}(t,r)}function n(t,n,o){e.stat(t,function(e,i){o(e,!e&&r(i,t,n))})}return $d}():function(){if(Ud)return Fd;Ud=1,Fd=r,r.sync=function(t,r){return n(e.statSync(t),r)};var e=t;function r(t,r,o){e.stat(t,function(e,t){o(e,!e&&n(t,r))})}function n(e,t){return e.isFile()&&function(e,t){var r=e.mode,n=e.uid,o=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8);return r&parseInt("001",8)||r&c&&o===s||r&a&&n===i||r&(a|c)&&0===i}(e,t)}return Fd}();var zd=Vd;function Vd(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(function(r,n){Vd(e,t||{},function(e,t){e?n(e):r(t)})})}Gd(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)})}Vd.sync=function(e,t){try{return Gd.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Hd="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,qd=r,Kd=Hd?";":":",Xd=zd,Yd=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Qd=(e,t)=>{const r=t.colon||Kd,n=e.match(/\//)||Hd&&e.match(/\\/)?[""]:[...Hd?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=Hd?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=Hd?o.split(r):[""];return Hd&&-1!==e.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},Jd=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:o,pathExtExe:i}=Qd(e,t),s=[],a=r=>new Promise((o,i)=>{if(r===n.length)return t.all&&s.length?o(s):i(Yd(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=qd.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(c(d,r,0))}),c=(e,r,n)=>new Promise((l,u)=>{if(n===o.length)return l(a(r+1));const d=o[n];Xd(e+d,{pathExt:i},(o,i)=>{if(!o&&i){if(!t.all)return l(e+d);s.push(e+d)}return l(c(e,r,n+1))})});return r?a(0).then(e=>r(null,e),r):a(0)};var Zd=Jd;Jd.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=Qd(e,t),i=[];for(let s=0;s<r.length;s++){const a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=qd.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;e<n.length;e++){const r=u+n[e];try{if(Xd.sync(r,{pathExt:o})){if(!t.all)return r;i.push(r)}}catch(e){}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw Yd(e)};var ef={exports:{}};const tf=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"};ef.exports=tf,ef.exports.default=tf;var rf=ef.exports;const nf=r,of=Zd,sf=rf;function af(e,t){const r=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void 0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch(e){}let s;try{s=of.sync(e.command,{path:r[sf({env:r})],pathExt:t?nf.delimiter:void 0})}catch(e){}finally{i&&process.chdir(n)}return s&&(s=nf.resolve(o?e.options.cwd:"",s)),s}var cf=function(e){return af(e)||af(e,!0)},lf={};const uf=/([()\][%!^"`<>&|;, *?])/g;lf.command=function(e){return e=e.replace(uf,"^$1")},lf.argument=function(e,t){return e=(e=`"${e=(e=(e=`${e}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(uf,"^$1"),t&&(e=e.replace(uf,"^$1")),e};const df=/^#!(.*)/;const ff=t,pf=(e="")=>{const t=e.match(df);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?n:n?`${o} ${n}`:o};const hf=r,mf=cf,bf=lf,yf=function(e){const t=Buffer.alloc(150);let r;try{r=ff.openSync(e,"r"),ff.readSync(r,t,0,150,0),ff.closeSync(r)}catch(e){}return pf(t.toString())},gf="win32"===process.platform,vf=/\.(?:com|exe)$/i,wf=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Sf(e){if(!gf)return e;const t=function(e){e.file=mf(e);const t=e.file&&yf(e.file);return t?(e.args.unshift(e.file),e.command=t,mf(e)):e.file}(e),r=!vf.test(t);if(e.options.forceShell||r){const r=wf.test(t);e.command=hf.normalize(e.command),e.command=bf.command(e.command),e.args=e.args.map(e=>bf.argument(e,r));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}var Ef=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:Sf(n)};const xf="win32"===process.platform;function Of(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function jf(e,t){return xf&&1===e&&!t.file?Of(t.original,"spawn"):null}var kf={hookChildProcess:function(e,t){if(!xf)return;const r=e.emit;e.emit=function(n,o){if("exit"===n){const n=jf(o,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:jf,verifyENOENTSync:function(e,t){return xf&&1===e&&!t.file?Of(t.original,"spawnSync"):null},notFoundError:Of};const Tf=s,Df=Ef,If=kf;function Af(e,t,r){const n=Df(e,t,r),o=Tf.spawn(n.command,n.args,n.options);return If.hookChildProcess(o,n),o}Wd.exports=Af,Wd.exports.spawn=Af,Wd.exports.sync=function(e,t,r){const n=Df(e,t,r),o=Tf.spawnSync(n.command,n.args,n.options);return o.error=o.error||If.verifyENOENTSync(o.status,n),o},Wd.exports._parse=Df,Wd.exports._enoent=If;var Nf=re(Wd.exports);function Cf(e={}){const{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"}const Mf=(e,t)=>{let r;for(;r!==t;)e.push(a.join(t,"node_modules/.bin")),r=t,t=a.resolve(t,"..")},Lf=(e,t,r)=>{const n=t instanceof URL?w(t):t;e.push(a.resolve(r,n,".."))},Pf=({env:e=N.env,...t}={})=>{const r=Cf({env:e={...e}});return t.path=e[r],e[r]=(({cwd:e=N.cwd(),path:t=N.env[Cf()],preferLocal:r=!0,execPath:n=N.execPath,addExecPath:o=!0}={})=>{const i=e instanceof URL?w(e):e,s=a.resolve(i),c=[];return r&&Mf(c,s),o&&Lf(c,n,s),[...c,t].join(a.delimiter)})(t),e};class Rf extends Error{}const _f=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,$f,{value:!0,writable:!1,enumerable:!1,configurable:!1})},$f=Symbol("isExecaError"),Bf=e=>"[object Error]"===Object.prototype.toString.call(e);class Ff extends Error{}_f(Ff,Ff.name);class Uf extends Error{}_f(Uf,Uf.name);const Gf=(e,t)=>({name:`SIGRT${t+1}`,number:Wf+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Wf=34,zf=64,Vf=[{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"}],Hf=()=>{const e=(()=>{const e=zf-Wf+1;return Array.from({length:e},Gf)})();return[...Vf,...e].map(qf)},qf=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=F,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:o,standard:i}},Kf=({name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s}],Xf=(()=>{const e=Hf();return Object.fromEntries(e.map(Kf))})(),Yf=(e,t)=>{const r=Qf(e,t);if(void 0===r)return{};const{name:n,description:o,supported:i,action:s,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:s,forced:a,standard:c}}},Qf=(e,t)=>{const r=t.find(({name:t})=>F.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e)};(()=>{const e=Hf(),t=zf+1,r=Array.from({length:t},(t,r)=>Yf(r,e));Object.assign({},...r)})();const Jf=e=>0===e?e:Zf(e,"`subprocess.kill()`'s argument"),Zf=(e,t)=>{if(Number.isInteger(e))return ep(e,t);if("string"==typeof e)return rp(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${np()}`)},ep=(e,t)=>{if(tp.has(e))return tp.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${np()}`)},tp=new Map(Object.entries(F.signals).reverse().map(([e,t])=>[t,e])),rp=(e,t)=>{if(e in F.signals)return e;if(e.toUpperCase()in F.signals)throw new TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`);throw new TypeError(`Invalid ${t} '${e}': this signal name does not exist.\n${np()}`)},np=()=>`Available signal names: ${op()}.\nAvailable signal numbers: ${ip()}.`,op=()=>Object.keys(F.signals).sort().map(e=>`'${e}'`).join(", "),ip=()=>[...new Set(Object.values(F.signals).sort((e,t)=>e-t))].join(", "),sp=e=>Xf[e].description,ap=5e3,cp=({kill:e,options:{forceKillAfterDelay:t,killSignal:r},onInternalError:n,context:o,controller:i},s,a)=>{const{signal:c,error:l}=lp(s,a,r);up(l,n);const u=e(c);return dp({kill:e,signal:c,forceKillAfterDelay:t,killSignal:r,killResult:u,context:o,controller:i}),u},lp=(e,t,r)=>{const[n=r,o]=Bf(e)?[void 0,e]:[e,t];if("string"!=typeof n&&!Number.isInteger(n))throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(n)}`);if(void 0!==o&&!Bf(o))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${o}`);return{signal:Jf(n),error:o}},up=(e,t)=>{void 0!==e&&t.reject(e)},dp=async({kill:e,signal:t,forceKillAfterDelay:r,killSignal:n,killResult:o,context:i,controller:s})=>{t===n&&o&&fp({kill:e,forceKillAfterDelay:r,context:i,controllerSignal:s.signal})},fp=async({kill:e,forceKillAfterDelay:t,context:r,controllerSignal:n})=>{if(!1!==t)try{await _(t,void 0,{signal:n}),e("SIGKILL")&&(r.isForcefullyTerminated??=!0)}catch{}},pp=async(e,t)=>{e.aborted||await U(e,"abort",{signal:t})},hp=({subprocess:e,cancelSignal:t,gracefulCancel:r,context:n,controller:o})=>void 0===t||r?[]:[mp(e,t,n,o)],mp=async(e,t,r,{signal:n})=>{throw await pp(t,n),r.terminationReason??="cancel",e.kill(),t.reason},bp=({methodName:e,isSubprocess:t,ipc:r,isConnected:n})=>{yp(e,t,r),gp(e,t,n)},yp=(e,t,r)=>{if(!r)throw new Error(`${xp(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},gp=(e,t,r)=>{if(!r)throw new Error(`${xp(e,t)} cannot be used: the ${jp(t)} has already exited or disconnected.`)},vp=(e,t)=>new Error(`${xp("sendMessage",t)} failed when sending an acknowledgment response to the ${jp(t)}.`,{cause:e}),wp=({code:e,message:t})=>Sp.has(e)||Ep.some(e=>t.includes(e)),Sp=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),Ep=["could not be cloned","circular structure","call stack size exceeded"],xp=(e,t,r="")=>"cancelSignal"===e?"`cancelSignal`'s `controller.abort()`":`${Op(t)}${e}(${r})`,Op=e=>e?"":"subprocess.",jp=e=>e?"parent process":"subprocess",kp=e=>{e.connected&&e.disconnect()},Tp=()=>{const e={},t=new Promise((t,r)=>{Object.assign(e,{resolve:t,reject:r})});return Object.assign(t,e)},Dp=(e,t="stdin")=>{const r=!0,{options:n,fileDescriptors:o}=Ap.get(e),i=Np(o,t,r),s=e.stdio[i];if(null===s)throw new TypeError(Lp(i,t,n,r));return s},Ip=(e,t="stdout")=>{const r=!1,{options:n,fileDescriptors:o}=Ap.get(e),i=Np(o,t,r),s="all"===i?e.all:e.stdio[i];if(null==s)throw new TypeError(Lp(i,t,n,r));return s},Ap=new WeakMap,Np=(e,t,r)=>{const n=Cp(t,r);return Mp(n,t,r,e),n},Cp=(e,t)=>{const r=Fu(e);if(void 0!==r)return r;const{validOptions:n,defaultValue:o}=t?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${_p(t)}" must not be "${e}".\nIt must be ${n} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${o}".`)},Mp=(e,t,r,n)=>{const o=n[Rp(e)];if(void 0===o)throw new TypeError(`"${_p(r)}" must not be ${t}. That file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);if("input"===o.direction&&!r)throw new TypeError(`"${_p(r)}" must not be ${t}. It must be a readable stream, not writable.`);if("input"!==o.direction&&r)throw new TypeError(`"${_p(r)}" must not be ${t}. It must be a writable stream, not readable.`)},Lp=(e,t,r,n)=>{if("all"===e&&!r.all)return'The "all" option must be true to use "from: \'all\'".';const{optionName:o,optionValue:i}=Pp(e,r);return`The "${o}: ${$p(i)}" option is incompatible with using "${_p(n)}: ${$p(t)}".\nPlease set this option with "pipe" instead.`},Pp=(e,{stdin:t,stdout:r,stderr:n,stdio:o})=>{const i=Rp(e);return 0===i&&void 0!==t?{optionName:"stdin",optionValue:t}:1===i&&void 0!==r?{optionName:"stdout",optionValue:r}:2===i&&void 0!==n?{optionName:"stderr",optionValue:n}:{optionName:`stdio[${i}]`,optionValue:o[i]}},Rp=e=>"all"===e?1:e,_p=e=>e?"to":"from",$p=e=>"string"==typeof e?`'${e}'`:"number"==typeof e?`${e}`:"Stream",Bp=(e,t,r)=>{const n=e.getMaxListeners();0!==n&&n!==Number.POSITIVE_INFINITY&&(e.setMaxListeners(n+t),G(r,()=>{e.setMaxListeners(e.getMaxListeners()-t)}))},Fp=(e,t)=>{t&&Up(e)},Up=e=>{e.refCounted()},Gp=(e,t)=>{t&&Wp(e)},Wp=e=>{e.unrefCounted()},zp=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n},o)=>{if(eh(o)||gh(o))return;Hp.has(e)||Hp.set(e,[]);const i=Hp.get(e);if(i.push(o),!(i.length>1))for(;i.length>0;){await sh(e,n,o),await $.yield();const s=await Zp({wrappedMessage:i[0],anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n});i.shift(),n.emit("message",s),n.emit("message:done")}},Vp=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n,boundOnMessage:o})=>{wh();const i=Hp.get(e);for(;i?.length>0;)await U(n,"message:done");e.removeListener("message",o),((e,t)=>{t&&(Up(e),Up(e))})(t,r),n.connected=!1,n.emit("disconnect")},Hp=new WeakMap,qp=(e,t,r)=>{if(Kp.has(e))return Kp.get(e);const n=new W;return n.connected=!0,Kp.set(e,n),Xp({ipcEmitter:n,anyProcess:e,channel:t,isSubprocess:r}),n},Kp=new WeakMap,Xp=({ipcEmitter:e,anyProcess:t,channel:r,isSubprocess:n})=>{const o=zp.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e});t.on("message",o),t.once("disconnect",Vp.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e,boundOnMessage:o})),((e,t)=>{t&&(Wp(e),Wp(e))})(r,n)},Yp=e=>{const t=Kp.get(e);return void 0===t?null!==e.channel:t.connected};let Qp=0n;const Jp=(e,t)=>{if(t?.type===oh&&!t.hasListeners)for(const{id:t}of e)void 0!==t&&rh[t].resolve({isDeadlock:!0,hasListeners:!1})},Zp=async({wrappedMessage:e,anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:o})=>{if(e?.type!==oh||!t.connected)return e;const{id:i,message:s}=e,a={id:i,type:ih,message:ch(t,o)};try{await uh({anyProcess:t,channel:r,isSubprocess:n,ipc:!0},a)}catch(e){o.emit("strict:error",e)}return s},eh=e=>{if(e?.type!==ih)return!1;const{id:t,message:r}=e;return rh[t]?.resolve({isDeadlock:!1,hasListeners:r}),!0},th=async(e,t,r)=>{if(e?.type!==oh)return;const n=Tp();rh[e.id]=n;const o=new AbortController;try{const{isDeadlock:e,hasListeners:i}=await Promise.race([n,nh(t,r,o)]);e&&(e=>{throw new Error(`${xp("sendMessage",e)} failed: the ${jp(e)} is sending a message too, instead of listening to incoming messages.\nThis can be fixed by both sending a message and listening to incoming messages at the same time:\n\nconst [receivedMessage] = await Promise.all([\n\t${xp("getOneMessage",e)},\n\t${xp("sendMessage",e,"message, {strict: true}")},\n]);`)})(r),i||(e=>{throw new Error(`${xp("sendMessage",e)} failed: the ${jp(e)} is not listening to incoming messages.`)})(r)}finally{o.abort(),delete rh[e.id]}},rh={},nh=async(e,t,{signal:r})=>{Bp(e,1,r),await U(e,"disconnect",{signal:r}),(e=>{throw new Error(`${xp("sendMessage",e)} failed: the ${jp(e)} exited without listening to incoming messages.`)})(t)},oh="execa:ipc:request",ih="execa:ipc:response",sh=async(e,t,r)=>{for(;!ch(e,t)&&ah.get(e)?.size>0;){const t=[...ah.get(e)];Jp(t,r),await Promise.all(t.map(({onMessageSent:e})=>e))}},ah=new WeakMap,ch=(e,t)=>t.listenerCount("message")>lh(e),lh=e=>Ap.has(e)&&!Vu(Ap.get(e).options.buffer,"ipc")?1:0,uh=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},o,{strict:i=!1}={})=>{const s="sendMessage";return bp({methodName:s,isSubprocess:r,ipc:n,isConnected:e.connected}),dh({anyProcess:e,channel:t,methodName:s,isSubprocess:r,message:o,strict:i})},dh=async({anyProcess:e,channel:t,methodName:r,isSubprocess:n,message:o,strict:i})=>{const s=(({anyProcess:e,channel:t,isSubprocess:r,message:n,strict:o})=>{if(!o)return n;const i=qp(e,t,r),s=ch(e,i);return{id:Qp++,type:oh,message:n,hasListeners:s}})({anyProcess:e,channel:t,isSubprocess:n,message:o,strict:i}),a=((e,t,r)=>{ah.has(e)||ah.set(e,new Set);const n=ah.get(e),o={onMessageSent:Tp(),id:r?t.id:void 0};return n.add(o),{outgoingMessages:n,outgoingMessage:o}})(e,s,i);try{await fh({anyProcess:e,methodName:r,isSubprocess:n,wrappedMessage:s,message:o})}catch(t){throw kp(e),t}finally{(({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()})(a)}},fh=async({anyProcess:e,methodName:t,isSubprocess:r,wrappedMessage:n,message:o})=>{const i=ph(e);try{await Promise.all([th(n,e,r),i(n)])}catch(e){throw(({error:e,methodName:t,isSubprocess:r})=>{if("EPIPE"===e.code)throw new Error(`${xp(t,r)} cannot be used: the ${jp(r)} is disconnecting.`,{cause:e})})({error:e,methodName:t,isSubprocess:r}),(({error:e,methodName:t,isSubprocess:r,message:n})=>{if(wp(e))throw new Error(`${xp(t,r)}'s argument type is invalid: the message cannot be serialized: ${String(n)}.`,{cause:e})})({error:e,methodName:t,isSubprocess:r,message:o}),e}},ph=e=>{if(hh.has(e))return hh.get(e);const t=D(e.send.bind(e));return hh.set(e,t),t},hh=new WeakMap,mh=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>(await bh({anyProcess:e,channel:t,isSubprocess:r,ipc:n}),Sh.signal),bh=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>{yh||(yh=!0,n?null!==t?(qp(e,t,r),await $.yield()):wh():(()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")})())};let yh=!1;const gh=e=>e?.type===vh&&(Sh.abort(e.message),!0),vh="execa:ipc:cancel",wh=()=>{Sh.abort(new Error(`\`cancelSignal\` aborted: the ${jp(!0)} disconnected.`))},Sh=new AbortController,Eh=({subprocess:e,cancelSignal:t,gracefulCancel:r,forceKillAfterDelay:n,context:o,controller:i})=>r?[xh({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:o,controller:i})]:[],xh=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:n,controller:{signal:o}})=>{await pp(t,o);const i=Oh(t);throw await((e,t)=>{const r="cancelSignal";return gp(r,!1,e.connected),fh({anyProcess:e,methodName:r,isSubprocess:!1,wrappedMessage:{type:vh,message:t},message:t})})(e,i),fp({kill:e.kill,forceKillAfterDelay:r,context:n,controllerSignal:o}),n.terminationReason??="gracefulCancel",t.reason},Oh=({reason:e})=>{if(!(e instanceof DOMException))return e;const t=new Error(e.message);return Object.defineProperty(t,"stack",{value:e.stack,enumerable:!1,configurable:!0,writable:!0}),t},jh=(e,t,r,n)=>0===t||void 0===t?[]:[kh(e,t,r,n)],kh=async(e,t,r,{signal:n})=>{throw await _(t,void 0,{signal:n}),r.terminationReason??="timeout",e.kill(),new Rf},Th={advanced:e=>{try{H(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:e})}},json:e=>{try{JSON.stringify(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:e})}}},Dh=async(e,t)=>{void 0!==t&&await e.sendMessage(t)},Ih=new Set(["utf8","utf16le"]),Ah=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),Nh=new Set([...Ih,...Ah]),Ch=e=>{if(null===e)return"buffer";if("string"!=typeof e)return;const t=e.toLowerCase();return t in Mh?Mh[t]:Nh.has(t)?t:void 0},Mh={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},Lh=e=>"string"==typeof e?`"${e}"`:String(e),Ph=()=>{try{return N.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},Rh=(e,t,r)=>{r.cwd=((e=Ph())=>{const t=au(e,'The "cwd" option');return c(t)})(r.cwd);const[n,o,i]=((e,t,{node:r=!1,nodePath:n=L,nodeOptions:o=P.filter(e=>!e.startsWith("--inspect")),cwd:i,execPath:s,...a})=>{if(void 0!==s)throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');const u=au(n,'The "nodePath" option'),d=c(i,u),f={...a,nodePath:d,node:r,cwd:i};if(!r)return[e,t,f];if("node"===l(e,".exe"))throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');return[d,[...o,e,...t],{ipc:!0,...f,shell:!1}]})(e,t,r),{command:s,args:a,options:u}=Nf._parse(n,o,i),d=(e=>{const t={...e};for(const r of zu)t[r]=Mu(e,r);return t})(u),f=_h(d);return(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(f),(({encoding:e})=>{if(Nh.has(e))return;const t=Ch(e);if(void 0!==t)throw new TypeError(`Invalid option \`encoding: ${Lh(e)}\`.\nPlease rename it to ${Lh(t)}.`);const r=[...Nh].map(e=>Lh(e)).join(", ");throw new TypeError(`Invalid option \`encoding: ${Lh(e)}\`.\nPlease rename it to one of: ${r}.`)})(f),(({ipcInput:e,ipc:t,serialization:r})=>{if(void 0!==e){if(!t)throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");Th[r](e)}})(f),(({cancelSignal:e})=>{if(void 0!==e&&"[object AbortSignal]"!==Object.prototype.toString.call(e))throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)})(f),(({gracefulCancel:e,cancelSignal:t,ipc:r,serialization:n})=>{if(e){if(void 0===t)throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!r)throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if("json"===n)throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}})(f),f.shell=cu(f.shell),f.env=$h(f),f.killSignal=(e=>{const t="option `killSignal`";if(0===e)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return Zf(e,t)})(f.killSignal),f.forceKillAfterDelay=(e=>{if(!1===e)return e;if(!0===e)return ap;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(f.forceKillAfterDelay),f.lines=f.lines.map((e,t)=>e&&!Ah.has(f.encoding)&&f.buffer[t]),"win32"===N.platform&&"cmd"===l(s,".exe")&&a.unshift("/q"),{file:s,commandArguments:a,options:f}},_h=({extendEnv:e=!0,preferLocal:t=!1,cwd:r,localDir:n=r,encoding:o="utf8",reject:i=!0,cleanup:s=!0,all:a=!1,windowsHide:c=!0,killSignal:l="SIGTERM",forceKillAfterDelay:u=!0,gracefulCancel:d=!1,ipcInput:f,ipc:p=void 0!==f||d,serialization:h="advanced",...m})=>({...m,extendEnv:e,preferLocal:t,cwd:r,localDirectory:n,encoding:o,reject:i,cleanup:s,all:a,windowsHide:c,killSignal:l,forceKillAfterDelay:u,gracefulCancel:d,ipcInput:f,ipc:p,serialization:h}),$h=({env:e,extendEnv:t,preferLocal:r,node:n,localDirectory:o,nodePath:i})=>{const s=t?{...N.env,...e}:e;return r||n?Pf({env:s,cwd:o,execPath:i,preferLocal:r,addExecPath:n}):s};function Bh(e){if("string"==typeof e)return Fh(e);if(!ArrayBuffer.isView(e)||1!==e.BYTES_PER_ELEMENT)throw new Error("Input must be a string or a Uint8Array");return Uh(e)}const Fh=e=>e.at(-1)===Gh?e.slice(0,e.at(-2)===zh?-2:-1):e,Uh=e=>e.at(-1)===Wh?e.subarray(0,e.at(-2)===Vh?-2:-1):e,Gh="\n",Wh=Gh.codePointAt(0),zh="\r",Vh=zh.codePointAt(0);function Hh(e,{checkOpen:t=!0}={}){return null!==e&&"object"==typeof e&&(e.writable||e.readable||!t||void 0===e.writable&&void 0===e.readable)&&"function"==typeof e.pipe}function qh(e,{checkOpen:t=!0}={}){return Hh(e,{checkOpen:t})&&(e.writable||!t)&&"function"==typeof e.write&&"function"==typeof e.end&&"boolean"==typeof e.writable&&"boolean"==typeof e.writableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function Kh(e,{checkOpen:t=!0}={}){return Hh(e,{checkOpen:t})&&(e.readable||!t)&&"function"==typeof e.read&&"boolean"==typeof e.readable&&"boolean"==typeof e.readableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function Xh(e,t){return qh(e,t)&&Kh(e,t)}const Yh=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class Qh{#e;#t;#r=!1;#n=void 0;constructor(e,t){this.#e=e,this.#t=t}next(){const e=()=>this.#o();return this.#n=this.#n?this.#n.then(e,e):e(),this.#n}return(e){const t=()=>this.#i(e);return this.#n?this.#n.then(t,t):t()}async#o(){if(this.#r)return{done:!0,value:void 0};let e;try{e=await this.#e.read()}catch(e){throw this.#n=void 0,this.#r=!0,this.#e.releaseLock(),e}return e.done&&(this.#n=void 0,this.#r=!0,this.#e.releaseLock()),e}async#i(e){if(this.#r)return{done:!0,value:e};if(this.#r=!0,!this.#t){const t=this.#e.cancel(e);return this.#e.releaseLock(),await t,{done:!0,value:e}}return this.#e.releaseLock(),{done:!0,value:e}}}const Jh=Symbol();function Zh(){return this[Jh].next()}function em(e){return this[Jh].return(e)}Object.defineProperty(Zh,"name",{value:"next"}),Object.defineProperty(em,"name",{value:"return"});const tm=Object.create(Yh,{next:{enumerable:!0,configurable:!0,writable:!0,value:Zh},return:{enumerable:!0,configurable:!0,writable:!0,value:em}});function rm({preventCancel:e=!1}={}){const t=this.getReader(),r=new Qh(t,e),n=Object.create(tm);return n[Jh]=r,n}const nm=e=>{if(Kh(e,{checkOpen:!1})&&void 0!==am.on)return im(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===om.call(e))return rm.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:om}=Object.prototype,im=async function*(e){const t=new AbortController,r={};sm(e,t,r);try{for await(const[r]of am.on(e,"data",{signal:t.signal}))yield r}catch(e){if(void 0!==r.error)throw r.error;if(!t.signal.aborted)throw e}finally{e.destroy()}},sm=async(e,t,r)=>{try{await am.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){r.error=e}finally{t.abort()}},am={},cm=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,finalize:a},{maxBuffer:c=Number.POSITIVE_INFINITY}={})=>{const l=nm(e),u=t();u.length=0;try{for await(const e of l){const t=r[fm(e)](e,u);um({convertedChunk:t,state:u,getSize:n,truncateChunk:o,addChunk:i,maxBuffer:c})}return lm({state:u,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,maxBuffer:c}),a(u)}catch(e){const t="object"==typeof e&&null!==e?e:new Error(e);throw t.bufferedData=a(u),t}},lm=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:o,maxBuffer:i})=>{const s=o(e);void 0!==s&&um({convertedChunk:s,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:i})},um=({convertedChunk:e,state:t,getSize:r,truncateChunk:n,addChunk:o,maxBuffer:i})=>{const s=r(e),a=t.length+s;if(a<=i)return void dm(e,t,o,a);const c=n(e,i-t.length);throw void 0!==c&&dm(c,t,o,i),new hm},dm=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},fm=e=>{const t=typeof e;if("string"===t)return"string";if("object"!==t||null===e)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";const r=pm.call(e);return"[object ArrayBuffer]"===r?"arrayBuffer":"[object DataView]"===r?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===pm.call(e.buffer)?"typedArray":"others"},{toString:pm}=Object.prototype;class hm extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const mm=e=>e,bm=()=>{},ym=({contents:e})=>e,gm=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},vm=e=>e.length;const wm={init:()=>({contents:[]}),convertChunk:{string:mm,buffer:mm,arrayBuffer:mm,dataView:mm,typedArray:mm,others:mm},getSize:()=>1,truncateChunk:bm,addChunk:(e,{contents:t})=>(t.push(e),t),getFinalChunk:bm,finalize:ym};const Sm=new TextEncoder,Em=e=>new Uint8Array(e),xm=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Om=(e,t)=>{if(t<=e.byteLength)return e;const r=new ArrayBuffer(km(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},jm=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;const r=new ArrayBuffer(t,{maxByteLength:km(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},km=e=>Tm**Math.ceil(Math.log(e)/Math.log(Tm)),Tm=2,Dm=()=>"resize"in ArrayBuffer.prototype,Im={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:e=>Sm.encode(e),buffer:Em,arrayBuffer:Em,dataView:xm,typedArray:xm,others:gm},getSize:vm,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t,length:r},n)=>{const o=Dm()?jm(t,n):Om(t,n);return new Uint8Array(o).set(e,r),o},getFinalChunk:bm,finalize:({contents:e,length:t})=>Dm()?e:e.slice(0,t)};const Am=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),Nm={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:mm,buffer:Am,arrayBuffer:Am,dataView:Am,typedArray:Am,others:gm},getSize:vm,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t})=>t+e,getFinalChunk:({textDecoder:e})=>{const t=e.decode();return""===t?void 0:t},finalize:ym},Cm=(e,t,r)=>e?"objects":t?"lines":"buffer"===r?"bytes":"characters",Mm=(e,t,r)=>{if(t.length!==r)return;const n=new hm;throw n.maxBufferInfo={fdNumber:"ipc"},n},Lm=(e,t)=>{if(void 0===e?.maxBufferInfo)return{streamName:"output",threshold:t[1],unit:"bytes"};const{maxBufferInfo:{fdNumber:r,unit:n}}=e;delete e.maxBufferInfo;const o=Vu(t,r);return"ipc"===r?{streamName:"IPC output",threshold:o,unit:"messages"}:{streamName:Cu(r),threshold:o,unit:n}},Pm=([,e])=>e,Rm=({originalError:e,timedOut:t,timeout:r,isMaxBuffer:n,maxBuffer:o,errorCode:i,signal:s,signalDescription:a,exitCode:c,isCanceled:l,isGracefullyCanceled:u,isForcefullyTerminated:d,forceKillAfterDelay:f,killSignal:p})=>{const h=_m(d,f);return t?`Command timed out after ${r} milliseconds${h}`:u?void 0===s?`Command was gracefully canceled with exit code ${c}`:d?`Command was gracefully canceled${h}`:`Command was gracefully canceled with ${s} (${a})`:l?`Command was canceled${h}`:n?`${((e,t)=>{const{streamName:r,threshold:n,unit:o}=Lm(e,t);return`Command's ${r} was larger than ${n} ${o}`})(e,o)}${h}`:void 0!==i?`Command failed with ${i}${h}`:d?`Command was killed with ${p} (${sp(p)})${h}`:void 0!==s?`Command was killed with ${s} (${a})`:void 0!==c?`Command failed with exit code ${c}`:"Command failed"},_m=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",$m=(e,t)=>{if(e instanceof Rf)return;const r=Bf(n=e)&&$f in n?e.originalMessage:String(e?.message??e);var n;const o=Ju(((e,t)=>{if(t===Ph())return e;let r;try{r=f(t)}catch(r){return`The "cwd" option is invalid: ${t}.\n${r.message}\n${e}`}return r.isDirectory()?e:`The "cwd" option is not a directory: ${t}.\n${e}`})(r,t));return""===o?void 0:o},Bm=e=>"string"==typeof e?e:T(e),Fm=e=>Array.isArray(e)?e.map(e=>Bh(Um(e))).filter(Boolean).join("\n"):Um(e),Um=e=>"string"==typeof e?e:du(e)?bu(e):"",Gm=({command:e,escapedCommand:t,stdio:r,all:n,ipcOutput:o,options:{cwd:i},startTime:s})=>Hm({command:e,escapedCommand:t,cwd:i,durationMs:Rd(s),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:r[1],stderr:r[2],all:n,stdio:r,ipcOutput:o,pipedFrom:[]}),Wm=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,isSync:s})=>zm({error:e,command:t,escapedCommand:r,startTime:i,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:n.length}),ipcOutput:[],options:o,isSync:s}),zm=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:l,signal:u,stdio:d,all:f,ipcOutput:p,options:{timeoutDuration:h,timeout:m=h,forceKillAfterDelay:b,killSignal:y,cwd:g,maxBuffer:v},isSync:w})=>{const{exitCode:S,signal:E,signalDescription:x}=qm(l,u),{originalMessage:O,shortMessage:j,message:k}=(({stdio:e,all:t,ipcOutput:r,originalError:n,signal:o,signalDescription:i,exitCode:s,escapedCommand:a,timedOut:c,isCanceled:l,isGracefullyCanceled:u,isMaxBuffer:d,isForcefullyTerminated:f,forceKillAfterDelay:p,killSignal:h,maxBuffer:m,timeout:b,cwd:y})=>{const g=n?.code,v=Rm({originalError:n,timedOut:c,timeout:b,isMaxBuffer:d,maxBuffer:m,errorCode:g,signal:o,signalDescription:i,exitCode:s,isCanceled:l,isGracefullyCanceled:u,isForcefullyTerminated:f,forceKillAfterDelay:p,killSignal:h}),w=$m(n,y),S=`${v}: ${a}${void 0===w?"":`\n${w}`}`,E=[S,...void 0===t?[e[2],e[1]]:[t],...e.slice(3),r.map(e=>Bm(e)).join("\n")].map(e=>Ju(Bh(Fm(e)))).filter(Boolean).join("\n\n");return{originalMessage:w,shortMessage:S,message:E}})({stdio:d,all:f,ipcOutput:p,originalError:e,signal:E,signalDescription:x,exitCode:S,escapedCommand:r,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,forceKillAfterDelay:b,killSignal:y,maxBuffer:v,timeout:m,cwd:g}),T=((e,t,r)=>new(r?Uf:Ff)(t,e instanceof Rf?{}:{cause:e}))(e,k,w);return Object.assign(T,Vm({error:T,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:S,signal:E,signalDescription:x,stdio:d,all:f,ipcOutput:p,cwd:g,originalMessage:O,shortMessage:j})),T},Vm=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:l,signal:u,signalDescription:d,stdio:f,all:p,ipcOutput:h,cwd:m,originalMessage:b,shortMessage:y})=>Hm({shortMessage:y,originalMessage:b,command:t,escapedCommand:r,cwd:m,durationMs:Rd(n),failed:!0,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isTerminated:void 0!==u,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:l,signal:u,signalDescription:d,code:e.cause?.code,stdout:f[1],stderr:f[2],all:p,stdio:f,ipcOutput:h,pipedFrom:[]}),Hm=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e)),qm=(e,t)=>{const r=null===t?void 0:t;return{exitCode:null===e?void 0:e,signal:r,signalDescription:void 0===r?void 0:sp(t)}},Km=e=>Number.isFinite(e)?e:0;function Xm(e){switch(typeof e){case"number":if(Number.isFinite(e))return function(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(Km(1e3*e)%1e3),nanoseconds:Math.trunc(Km(1e6*e)%1e3)}}(e);break;case"bigint":return function(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}(e)}throw new TypeError("Expected a finite number or bigint")}function Ym(e,t){const r="bigint"==typeof e;if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");(t={...t}).colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let n=[];const o=(e,r,o,i)=>{if(0!==n.length&&t.colonNotation||!(e=>0===e||0n===e)(e)||t.colonNotation&&"m"===o){if(i=i??String(e),t.colonNotation){const e=i.includes(".")?i.split(".")[0].length:i.length,t=n.length>0?2:1;i="0".repeat(Math.max(0,t-e))+i}else i+=t.verbose?" "+((e,t)=>1===t||1n===t?e:`${e}s`)(r,e):o;n.push(i)}},i=Xm(e),s=BigInt(i.days);if(o(s/365n,"year","y"),o(s%365n,"day","d"),o(Number(i.hours),"hour","h"),o(Number(i.minutes),"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){const e=Number(i.seconds),r=Number(i.milliseconds),n=Number(i.microseconds),s=Number(i.nanoseconds);if(o(e,"second","s"),t.formatSubMilliseconds)o(r,"millisecond","ms"),o(n,"microsecond","µs"),o(s,"nanosecond","ns");else{const e=r+n/1e3+s/1e6,i="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,a=e>=1?Math.round(e):Math.ceil(e),c=i?e.toFixed(i):a;o(Number.parseFloat(c),"millisecond","ms",c)}}else{const n=((e,t)=>{const r=Math.floor(e*10**t+1e-7);return(Math.round(r)/10**t).toFixed(t)})((r?Number(e%86400000n):e)/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),i=t.keepDecimalsOnWholeSeconds?n:n.replace(/\.0+$/,"");o(Number.parseFloat(i),"second","s",i)}if(0===n.length)return"0"+(t.verbose?" milliseconds":"ms");const a=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(n=n.slice(0,Math.max(t.unitCount,1))),n.join(a)}const Qm=(e,t)=>{Hu(t)&&(((e,t)=>{e.failed&&jd({type:"error",verboseMessage:e.shortMessage,verboseInfo:t,result:e})})(e,t),Jm(e,t))},Jm=(e,t)=>{const r=`(done in ${Ym(e.durationMs)})`;jd({type:"duration",verboseMessage:r,verboseInfo:t,result:e})},Zm=(e,t,{reject:r})=>{if(Qm(e,t),e.failed&&r)throw e;return e},eb=(e,t)=>lb(e)?"asyncGenerator":ub(e)?"generator":fb(e)?"fileUrl":pb(e)?"filePath":gb(e)?"webStream":Hh(e,{checkOpen:!1})?"native":du(e)?"uint8Array":wb(e)?"asyncIterable":Sb(e)?"iterable":vb(e)?nb({},t):db(e)?tb(e,t):"native",tb=(e,t)=>Xh(e.transform,{checkOpen:!1})?rb(e,t):vb(e.transform)?nb(e,t):sb(e,t),rb=(e,t)=>(ob(e,t,"Duplex stream"),"duplex"),nb=(e,t)=>(ob(e,t,"web TransformStream"),"webTransform"),ob=({final:e,binary:t,objectMode:r},n,o)=>{ib(e,`${n}.final`,o),ib(t,`${n}.binary`,o),ab(r,`${n}.objectMode`)},ib=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${r}.`)},sb=({transform:e,final:t,binary:r,objectMode:n},o)=>{if(void 0!==e&&!cb(e))throw new TypeError(`The \`${o}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(Xh(t,{checkOpen:!1}))throw new TypeError(`The \`${o}.final\` option must not be a Duplex stream.`);if(vb(t))throw new TypeError(`The \`${o}.final\` option must not be a web TransformStream.`);if(void 0!==t&&!cb(t))throw new TypeError(`The \`${o}.final\` option must be a generator.`);return ab(r,`${o}.binary`),ab(n,`${o}.objectMode`),lb(e)||lb(t)?"asyncGenerator":"generator"},ab=(e,t)=>{if(void 0!==e&&"boolean"!=typeof e)throw new TypeError(`The \`${t}\` option must use a boolean.`)},cb=e=>lb(e)||ub(e),lb=e=>"[object AsyncGeneratorFunction]"===Object.prototype.toString.call(e),ub=e=>"[object GeneratorFunction]"===Object.prototype.toString.call(e),db=e=>su(e)&&(void 0!==e.transform||void 0!==e.final),fb=e=>"[object URL]"===Object.prototype.toString.call(e),pb=e=>su(e)&&1===Object.keys(e).length&&hb(e.file),hb=e=>"string"==typeof e,mb=new Set(["ipc","ignore","inherit","overlapped","pipe"]),bb=e=>"[object ReadableStream]"===Object.prototype.toString.call(e),yb=e=>"[object WritableStream]"===Object.prototype.toString.call(e),gb=e=>bb(e)||yb(e),vb=e=>bb(e?.readable)&&yb(e?.writable),wb=e=>Eb(e)&&"function"==typeof e[Symbol.asyncIterator],Sb=e=>Eb(e)&&"function"==typeof e[Symbol.iterator],Eb=e=>"object"==typeof e&&null!==e,xb=new Set(["generator","asyncGenerator","duplex","webTransform"]),Ob=new Set(["fileUrl","filePath","fileNumber"]),jb=new Set(["fileUrl","filePath"]),kb=new Set([...jb,"webStream","nodeStream"]),Tb=new Set(["webTransform","duplex"]),Db={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"},Ib=(e,t,r,n)=>"output"===n?Ab(e,t,r):Nb(e,t,r),Ab=(e,t,r)=>{const n=0!==t&&r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:e??n}},Nb=(e,t,r)=>{const n=0===t?!0===e:r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:t!==r.length-1&&(e??n)}},Cb=(e,t,r,{encoding:n})=>{const o=e.filter(({type:e})=>xb.has(e)),i=Array.from({length:o.length});for(const[e,s]of Object.entries(o))i[e]=Mb({stdioItem:s,index:Number(e),newTransforms:i,optionName:t,direction:r,encoding:n});return _b(i,r)},Mb=({stdioItem:e,stdioItem:{type:t},index:r,newTransforms:n,optionName:o,direction:i,encoding:s})=>"duplex"===t?Lb({stdioItem:e,optionName:o}):"webTransform"===t?Pb({stdioItem:e,index:r,newTransforms:n,direction:i}):Rb({stdioItem:e,index:r,newTransforms:n,direction:i,encoding:s}),Lb=({stdioItem:e,stdioItem:{value:{transform:t,transform:{writableObjectMode:r,readableObjectMode:n},objectMode:o=n}},optionName:i})=>{if(o&&!n)throw new TypeError(`The \`${i}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!o&&n)throw new TypeError(`The \`${i}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return{...e,value:{transform:t,writableObjectMode:r,readableObjectMode:n}}},Pb=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:o})=>{const{transform:i,objectMode:s}=su(t)?t:{transform:t},{writableObjectMode:a,readableObjectMode:c}=Ib(s,r,n,o);return{...e,value:{transform:i,writableObjectMode:a,readableObjectMode:c}}},Rb=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:o,encoding:i})=>{const{transform:s,final:a,binary:c=!1,preserveNewlines:l=!1,objectMode:u}=su(t)?t:{transform:t},d=c||Ah.has(i),{writableObjectMode:f,readableObjectMode:p}=Ib(u,r,n,o);return{...e,value:{transform:s,final:a,binary:d,preserveNewlines:l,writableObjectMode:f,readableObjectMode:p}}},_b=(e,t)=>"input"===t?e.reverse():e,$b=({type:e,value:t},r)=>Bb[r]??Gb[e](t),Bb=["input","output","output"],Fb=()=>{},Ub=()=>"input",Gb={generator:Fb,asyncGenerator:Fb,fileUrl:Fb,filePath:Fb,iterable:Ub,asyncIterable:Ub,uint8Array:Ub,webStream:e=>yb(e)?"output":"input",nodeStream:e=>Kh(e,{checkOpen:!1})?qh(e,{checkOpen:!1})?void 0:"input":"output",webTransform:Fb,duplex:Fb,native(e){const t=Wb(e);return void 0!==t?t:Hh(e,{checkOpen:!1})?Gb.nodeStream(e):void 0}},Wb=e=>[0,N.stdin].includes(e)?"input":[1,2,N.stdout,N.stderr].includes(e)?"output":void 0,zb="output",Vb=(e,t)=>{if(void 0===e)return Nu.map(e=>t[e]);if(Hb(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Nu.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeof e)return[e,e,e];if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);const r=Math.max(e.length,Nu.length);return Array.from({length:r},(t,r)=>e[r])},Hb=e=>Nu.some(t=>void 0!==e[t]),qb=(e,t)=>Array.isArray(e)?e.map(e=>qb(e,t)):null==e?t>=Nu.length?"ignore":"pipe":e,Kb=(e,t,r)=>e.map((e,n)=>t[n]||0===n||qu(r,n)||!Xb(e)?e:"ignore"),Xb=e=>"pipe"===e||Array.isArray(e)&&e.every(e=>"pipe"===e),Yb=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n,direction:o})=>{const i=Qb({value:t,optionName:r,fdNumber:n,direction:o});if(void 0!==i)return i;if(Hh(t,{checkOpen:!1}))throw new TypeError(`The \`${r}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e},Qb=({value:e,optionName:t,fdNumber:r,direction:n})=>{const o=Jb(e,r);if(void 0!==o){if("output"===n)return{type:"fileNumber",value:o,optionName:t};if(R.isatty(o))throw new TypeError(`The \`${t}: ${$p(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:fu(p(o)),optionName:t}}},Jb=(e,t)=>{if("inherit"===e)return t;if("number"==typeof e)return e;const r=Au.indexOf(e);return-1!==r?r:void 0},Zb=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n})=>"inherit"===t?{type:"nodeStream",value:ey(n,t,r),optionName:r}:"number"==typeof t?{type:"nodeStream",value:ey(t,t,r),optionName:r}:Hh(t,{checkOpen:!1})?{type:"nodeStream",value:t,optionName:r}:e,ey=(e,t,r)=>{const n=Au[e];if(void 0===n)throw new TypeError(`The \`${r}: ${t}\` option is invalid: no such standard stream.`);return n},ty=({input:e,inputFile:t},r)=>0===r?[...ry(e),...oy(t)]:[],ry=e=>void 0===e?[]:[{type:ny(e),value:e,optionName:"input"}],ny=e=>{if(Kh(e,{checkOpen:!1}))return"nodeStream";if("string"==typeof e)return"string";if(du(e))return"uint8Array";throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},oy=e=>void 0===e?[]:[{...iy(e),optionName:"inputFile"}],iy=e=>{if(fb(e))return{type:"fileUrl",value:e};if(hb(e))return{type:"filePath",value:{file:e}};throw new Error("The `inputFile` option must be a file path string or a file URL.")},sy=(e,t)=>e.flatMap(({direction:e,stdioItems:r})=>r.filter(e=>e.type===t).map(t=>({...t,direction:e}))),ay=({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})=>{jb.has(t)&&cy({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})},cy=({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})=>{const i=e.filter(e=>ly(e,r));if(0===i.length)return;const s=i.find(e=>e.direction!==o);return dy(s,n,t),"output"===o?i[0].stream:void 0},ly=({type:e,value:t},r)=>"filePath"===e?t.file===r.file:"fileUrl"===e?t.href===r.href:t===r,uy=({otherStdioItems:e,type:t,value:r,optionName:n})=>{const o=e.find(({value:{transform:e}})=>e===r.transform);dy(o,n,t)},dy=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${Db[r]} that is the same.`)},fy=(e,t,r,n)=>{const o=(({stdio:e,ipc:t,buffer:r,...n},o,i)=>{const s=Vb(e,n).map((e,t)=>qb(e,t));return i?Kb(s,r,o):((e,t)=>t&&!e.includes("ipc")?[...e,"ipc"]:e)(s,t)})(t,r,n),i=o.map((e,r)=>py({stdioOption:e,fdNumber:r,options:t,isSync:n})),s=Sy({initialFileDescriptors:i,addProperties:e,options:t,isSync:n});return t.stdio=s.map(({stdioItems:e})=>jy(e)),s},py=({stdioOption:e,fdNumber:t,options:r,isSync:n})=>{const o=Cu(t),{stdioItems:i,isStdioArray:s}=hy({stdioOption:e,fdNumber:t,options:r,optionName:o}),a=((e,t,r)=>{const n=e.map(e=>$b(e,t));if(n.includes("input")&&n.includes("output"))throw new TypeError(`The \`${r}\` option must not be an array of both readable and writable values.`);return n.find(Boolean)??zb})(i,t,o),c=i.map(e=>(({stdioItem:e,stdioItem:{type:t},isStdioArray:r,fdNumber:n,direction:o,isSync:i})=>r&&"native"===t?i?Yb({stdioItem:e,fdNumber:n,direction:o}):Zb({stdioItem:e,fdNumber:n}):e)({stdioItem:e,isStdioArray:s,fdNumber:t,direction:a,isSync:n})),l=((e,t,r,n)=>[...e.filter(({type:e})=>!xb.has(e)),...Cb(e,t,r,n)])(c,o,a,r),u=((e,t)=>{const r=e.findLast(({type:e})=>xb.has(e));return void 0!==r&&("input"===t?r.value.writableObjectMode:r.value.readableObjectMode)})(l,a);return wy(l,u),{direction:a,objectMode:u,stdioItems:l}},hy=({stdioOption:e,fdNumber:t,options:r,optionName:n})=>{const o=(e=>e.filter((t,r)=>e.every((e,n)=>t.value!==e.value||r>=n||"generator"===t.type||"asyncGenerator"===t.type)))([...(Array.isArray(e)?e:[e]).map(e=>my(e,n)),...ty(r,t)]),i=o.length>1;return by(o,i,n),gy(o),{stdioItems:o,isStdioArray:i}},my=(e,t)=>({type:eb(e,t),value:e,optionName:t}),by=(e,t,r)=>{if(0===e.length)throw new TypeError(`The \`${r}\` option must not be an empty array.`);if(t)for(const{value:t,optionName:r}of e)if(yy.has(t))throw new Error(`The \`${r}\` option must not include \`${t}\`.`)},yy=new Set(["ignore","ipc"]),gy=e=>{for(const t of e)vy(t)},vy=({type:e,value:t,optionName:r})=>{if((e=>fb(e)&&"file:"!==e.protocol)(t))throw new TypeError(`The \`${r}: URL\` option must use the \`file:\` scheme.\nFor example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(((e,t)=>"native"===e&&"string"==typeof t&&!mb.has(t))(e,t))throw new TypeError(`The \`${r}: { file: '...' }\` option must be used instead of \`${r}: '...'\`.`)},wy=(e,t)=>{if(!t)return;const r=e.find(({type:e})=>Ob.has(e));if(void 0!==r)throw new TypeError(`The \`${r.optionName}\` option cannot use both files and transforms in objectMode.`)},Sy=({initialFileDescriptors:e,addProperties:t,options:r,isSync:n})=>{const o=[];try{for(const i of e)o.push(Ey({fileDescriptor:i,fileDescriptors:o,addProperties:t,options:r,isSync:n}));return o}catch(e){throw Oy(o),e}},Ey=({fileDescriptor:{direction:e,objectMode:t,stdioItems:r},fileDescriptors:n,addProperties:o,options:i,isSync:s})=>{const a=r.map(t=>xy({stdioItem:t,addProperties:o,direction:e,options:i,fileDescriptors:n,isSync:s}));return{direction:e,objectMode:t,stdioItems:a}},xy=({stdioItem:e,addProperties:t,direction:r,options:n,fileDescriptors:o,isSync:i})=>{const s=(({stdioItem:{type:e,value:t,optionName:r},direction:n,fileDescriptors:o,isSync:i})=>{const s=sy(o,e);if(0!==s.length){if(!i)return kb.has(e)?cy({otherStdioItems:s,type:e,value:t,optionName:r,direction:n}):void(Tb.has(e)&&uy({otherStdioItems:s,type:e,value:t,optionName:r}));ay({otherStdioItems:s,type:e,value:t,optionName:r,direction:n})}})({stdioItem:e,direction:r,fileDescriptors:o,isSync:i});return void 0!==s?{...e,stream:s}:{...e,...t[r][e.type](e,n)}},Oy=e=>{for(const{stdioItems:t}of e)for(const{stream:e}of t)void 0===e||Iu(e)||e.destroy()},jy=e=>{if(e.length>1)return e.some(({value:e})=>"overlapped"===e)?"overlapped":"pipe";const[{type:t,value:r}]=e;return"native"===t?r:"pipe"},ky=({type:e,optionName:t})=>{Ty(t,Db[e])},Ty=(e,t)=>{throw new TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},Dy={generator(){},asyncGenerator:ky,webStream:ky,nodeStream:ky,webTransform:ky,duplex:ky,asyncIterable:ky,native:({optionName:e,value:t})=>("ipc"!==t&&"overlapped"!==t||Ty(e,`"${t}"`),{})},Iy={input:{...Dy,fileUrl:({value:e})=>({contents:[fu(p(e))]}),filePath:({value:{file:e}})=>({contents:[fu(p(e))]}),fileNumber:ky,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...Dy,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e}})=>({path:e}),fileNumber:({value:e})=>({path:e}),iterable:ky,string:ky,uint8Array:ky}},Ay=(e,{stripFinalNewline:t},r)=>Ny(t,r)&&void 0!==e&&!Array.isArray(e)?Bh(e):e,Ny=(e,t)=>"all"===t?e[1]||e[2]:e[t],Cy=(e,t,r,n)=>e||r?void 0:Py(t,n),My=(e,t,r)=>r?e.flatMap(e=>Ly(e,t)):Ly(e,t),Ly=(e,t)=>{const{transform:r,final:n}=Py(t,{});return[...r(e),...n()]},Py=(e,t)=>(t.previousChunks="",{transform:Ry.bind(void 0,t,e),final:$y.bind(void 0,t)}),Ry=function*(e,t,r){if("string"!=typeof r)return void(yield r);let{previousChunks:n}=e,o=-1;for(let i=0;i<r.length;i+=1)if("\n"===r[i]){const s=_y(r,i,t,e);let a=r.slice(o+1,i+1-s);n.length>0&&(a=Uy(n,a),n=""),yield a,o=i}o!==r.length-1&&(n=Uy(n,r.slice(o+1))),e.previousChunks=n},_y=(e,t,r,n)=>r?0:(n.isWindowsNewline=0!==t&&"\r"===e[t-1],n.isWindowsNewline?2:1),$y=function*({previousChunks:e}){e.length>0&&(yield e)},By=({binary:e,preserveNewlines:t,readableObjectMode:r,state:n})=>e||t||r?void 0:{transform:Fy.bind(void 0,n)},Fy=function*({isWindowsNewline:e=!1},t){const{unixNewline:r,windowsNewline:n,LF:o,concatBytes:i}="string"==typeof t?Gy:Wy;if(t.at(-1)===o)return void(yield t);const s=e?n:r;yield i(t,s)},Uy=(e,t)=>`${e}${t}`,Gy={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:Uy},Wy={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:(e,t)=>{const r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r}},zy=(e,t)=>e?void 0:Vy.bind(void 0,t),Vy=function*(e,t){if("string"!=typeof t&&!du(t)&&!Z.isBuffer(t))throw new TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},Hy=(e,t)=>e?qy.bind(void 0,t):Ky.bind(void 0,t),qy=function*(e,t){Xy(e,t),yield t},Ky=function*(e,t){if(Xy(e,t),"string"!=typeof t&&!du(t))throw new TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},Xy=(e,t)=>{if(null==t)throw new TypeError(`The \`${e}\` option's function must not call \`yield ${t}\`.\nInstead, \`yield\` should either be called with a value, or not be called at all. For example:\n if (condition) { yield value; }`)},Yy=(e,t,r)=>{if(r)return;if(e)return{transform:Qy.bind(void 0,new TextEncoder)};const n=new O(t);return{transform:Jy.bind(void 0,n),final:Zy.bind(void 0,n)}},Qy=function*(e,t){Z.isBuffer(t)?yield fu(t):"string"==typeof t?yield e.encode(t):yield t},Jy=function*(e,t){yield du(t)?e.write(t):t},Zy=function*(e){const t=e.end();""!==t&&(yield t)},eg=I(async(e,t,r,n)=>{t.currentIterable=e(...r);try{for await(const e of t.currentIterable)n.push(e)}finally{delete t.currentIterable}}),tg=async function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=ig}=t[r];for await(const o of n(e))yield*tg(o,t,r+1)},rg=async function*(e){for(const[t,{final:r}]of Object.entries(e))yield*ng(r,Number(t),e)},ng=async function*(e,t,r){if(void 0!==e)for await(const n of e())yield*tg(n,r,t+1)},og=I(async({currentIterable:e},t)=>{if(void 0===e){if(t)throw t}else await(t?e.throw(t):e.return())}),ig=function*(e){yield e},sg=(e,t,r,n)=>{try{for(const n of e(...t))r.push(n);n()}catch(e){n(e)}},ag=(e,t)=>[...t.flatMap(t=>[...cg(t,e,0)]),...lg(e)],cg=function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=dg}=t[r];for(const o of n(e))yield*cg(o,t,r+1)},lg=function*(e){for(const[t,{final:r}]of Object.entries(e))yield*ug(r,Number(t),e)},ug=function*(e,t,r){if(void 0!==e)for(const n of e())yield*cg(n,r,t+1)},dg=function*(e){yield e},fg=({value:e,value:{transform:t,final:r,writableObjectMode:n,readableObjectMode:o},optionName:i},{encoding:s})=>{const a={},c=hg(e,s,i),l=lb(t),u=lb(r),d=l?eg.bind(void 0,tg,a):sg.bind(void 0,cg),f=l||u?eg.bind(void 0,rg,a):sg.bind(void 0,lg),p=l||u?og.bind(void 0,a):void 0;return{stream:new q({writableObjectMode:n,writableHighWaterMark:K(n),readableObjectMode:o,readableHighWaterMark:K(o),transform(e,t,r){d([e,c,0],this,r)},flush(e){f([c],this,e)},destroy:p})}},pg=(e,t,r,n)=>{const o=t.filter(({type:e})=>"generator"===e),i=n?o.reverse():o;for(const{value:t,optionName:n}of i){const o=hg(t,r,n);e=ag(o,e)}return e},hg=({transform:e,final:t,binary:r,writableObjectMode:n,readableObjectMode:o,preserveNewlines:i},s,a)=>{const c={};return[{transform:zy(n,a)},Yy(r,s,n),Cy(r,i,n,c),{transform:e,final:t},{transform:Hy(o,a)},By({binary:r,preserveNewlines:i,readableObjectMode:o,state:c})].filter(Boolean)},mg=e=>new Set(Object.entries(e).filter(([,{direction:e}])=>"input"===e).map(([e])=>Number(e))),bg=(e,t,r)=>{const{stdioItems:n}=e[t],o=n.filter(({contents:e})=>void 0!==e);if(0===o.length)return;if(0!==t){const[{type:e,optionName:t}]=o;throw new TypeError(`Only the \`stdin\` option, not \`${t}\`, can be ${Db[e]} with synchronous methods.`)}const i=o.map(({contents:e})=>e).map(e=>yg(e,n));r.input=gu(i)},yg=(e,t)=>{const r=pg(e,t,"utf8",!0);return gg(r),gu(r)},gg=e=>{const t=e.find(e=>"string"!=typeof e&&!du(e));if(void 0!==t)throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${t}.`)},vg=({stdioItems:e,encoding:t,verboseInfo:r,fdNumber:n})=>"all"!==n&&qu(r,n)&&!Ah.has(t)&&wg(n)&&(e.some(({type:e,value:t})=>"native"===e&&Sg.has(t))||e.every(({type:e})=>xb.has(e))),wg=e=>1===e||2===e,Sg=new Set(["pipe","overlapped"]),Eg=e=>e._readableState.pipes.length>0,xg=(e,t,r)=>{const n=Ad(e);jd({type:"output",verboseMessage:n,fdNumber:t,verboseInfo:r})},Og=({result:e,fileDescriptors:t,fdNumber:r,state:n,outputFiles:o,isMaxBuffer:i,verboseInfo:s},{buffer:a,encoding:c,lines:l,stripFinalNewline:u,maxBuffer:d})=>{if(null===e)return;const f=((e,t,r)=>{if(!t)return e;const n=Pm(r);return e.length>n?e.slice(0,n):e})(e,i,d),p=fu(f),{stdioItems:h,objectMode:m}=t[r],b=jg([p],h,c,n),{serializedResult:y,finalResult:g=y}=kg({chunks:b,objectMode:m,encoding:c,lines:l,stripFinalNewline:u,fdNumber:r});Tg({serializedResult:y,fdNumber:r,state:n,verboseInfo:s,encoding:c,stdioItems:h,objectMode:m});const v=a[r]?g:void 0;try{return void 0===n.error&&Dg(y,h,o),v}catch(e){return n.error=e,v}},jg=(e,t,r,n)=>{try{return pg(e,t,r,!1)}catch(t){return n.error=t,e}},kg=({chunks:e,objectMode:t,encoding:r,lines:n,stripFinalNewline:o,fdNumber:i})=>{if(t)return{serializedResult:e};if("buffer"===r)return{serializedResult:gu(e)};const s=((e,t)=>yu(e,t).join(""))(e,r);return n[i]?{serializedResult:s,finalResult:My(s,!o[i],t)}:{serializedResult:s}},Tg=({serializedResult:e,fdNumber:t,state:r,verboseInfo:n,encoding:o,stdioItems:i,objectMode:s})=>{if(!vg({stdioItems:i,encoding:o,verboseInfo:n,fdNumber:t}))return;const a=My(e,!1,s);try{((e,t,r)=>{for(const n of e)xg(n,t,r)})(a,t,n)}catch(e){r.error??=e}},Dg=(e,t,r)=>{for(const{path:n}of t.filter(({type:e})=>Ob.has(e))){const t="string"==typeof n?n:n.toString();r.has(t)?h(n,e):(r.add(t),d(n,e))}},Ig=async e=>{const[t,r]=await Promise.allSettled([U(e,"spawn"),U(e,"exit")]);return"rejected"===t.status?[]:"rejected"===r.status?Ag(e):r.value},Ag=async e=>{try{return await U(e,"exit")}catch{return Ag(e)}},Ng=async e=>{const[t,r]=await e;if(!Cg(t,r)&&Mg(t,r))throw new Rf;return[t,r]},Cg=(e,t)=>void 0===e&&void 0===t,Mg=(e,t)=>0!==e||null!==t,Lg=({error:e,status:t,signal:r,output:n},{maxBuffer:o})=>{const i=Pg(e,t,r),s="ETIMEDOUT"===i?.code,a=((e,t,r)=>"ENOBUFS"===e?.code&&null!==t&&t.some(e=>null!==e&&e.length>Pm(r)))(i,n,o);return{resultError:i,exitCode:t,signal:r,timedOut:s,isMaxBuffer:a}},Pg=(e,t,r)=>void 0!==e?e:Mg(t,r)?new Rf:void 0,Rg=(e,t,r)=>{const{command:n,escapedCommand:o,startTime:i,verboseInfo:s}=_d(e,t,r),a=_g(r),{file:c,commandArguments:l,options:u}=Rh(e,t,a);$g(u);const d=((e,t)=>fy(Iy,e,t,!0))(u,s);return{file:c,commandArguments:l,command:n,escapedCommand:o,startTime:i,verboseInfo:s,options:u,fileDescriptors:d}},_g=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,$g=({ipc:e,ipcInput:t,detached:r,cancelSignal:n})=>{t&&Bg("ipcInput"),e&&Bg("ipc: true"),r&&Bg("detached: true"),n&&Bg("cancelSignal")},Bg=e=>{throw new TypeError(`The "${e}" option cannot be used with synchronous methods.`)},Fg=({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,verboseInfo:i,fileDescriptors:s,startTime:a})=>{const c=Ug({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,fileDescriptors:s,startTime:a});if(c.failed)return c;const{resultError:l,exitCode:u,signal:d,timedOut:f,isMaxBuffer:p}=Lg(c,r),{output:h,error:m=l}=(({fileDescriptors:e,syncResult:{output:t},options:r,isMaxBuffer:n,verboseInfo:o})=>{if(null===t)return{output:Array.from({length:3})};const i={},s=new Set([]);return{output:t.map((t,a)=>Og({result:t,fileDescriptors:e,fdNumber:a,state:i,outputFiles:s,isMaxBuffer:n,verboseInfo:o},r)),...i}})({fileDescriptors:s,syncResult:c,options:r,isMaxBuffer:p,verboseInfo:i}),b=h.map((e,t)=>Ay(e,r,t)),y=Ay((([,e,t],r)=>{if(r.all)return void 0===e?t:void 0===t?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,Ay(t,r,"all")]:Array.isArray(t)?[Ay(e,r,"all"),...t]:du(e)&&du(t)?wu([e,t]):`${e}${t}`})(h,r),r,"all");return Wg({error:m,exitCode:u,signal:d,timedOut:f,isMaxBuffer:p,stdio:b,all:y,options:r,command:n,escapedCommand:o,startTime:a})},Ug=({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,fileDescriptors:i,startTime:s})=>{try{((e,t)=>{for(const r of mg(e))bg(e,r,t)})(i,r);const n=Gg(r);return E(e,t,n)}catch(e){return Wm({error:e,command:n,escapedCommand:o,fileDescriptors:i,options:r,startTime:s,isSync:!0})}},Gg=({encoding:e,maxBuffer:t,...r})=>({...r,encoding:"buffer",maxBuffer:Pm(t)}),Wg=({error:e,exitCode:t,signal:r,timedOut:n,isMaxBuffer:o,stdio:i,all:s,options:a,command:c,escapedCommand:l,startTime:u})=>void 0===e?Gm({command:c,escapedCommand:l,stdio:i,all:s,ipcOutput:[],options:a,startTime:u}):zm({error:e,command:c,escapedCommand:l,timedOut:n,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:o,isForcefullyTerminated:!1,exitCode:t,signal:r,stdio:i,all:s,ipcOutput:[],options:a,startTime:u,isSync:!0}),zg=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:o=!0,filter:i}={})=>(bp({methodName:"getOneMessage",isSubprocess:r,ipc:n,isConnected:Yp(e)}),Vg({anyProcess:e,channel:t,isSubprocess:r,filter:i,reference:o})),Vg=async({anyProcess:e,channel:t,isSubprocess:r,filter:n,reference:o})=>{Fp(t,o);const i=qp(e,t,r),s=new AbortController;try{return await Promise.race([Hg(i,n,s),qg(i,r,s),Kg(i,r,s)])}catch(t){throw kp(e),t}finally{s.abort(),Gp(t,o)}},Hg=async(e,t,{signal:r})=>{if(void 0===t){const[t]=await U(e,"message",{signal:r});return t}for await(const[n]of z(e,"message",{signal:r}))if(t(n))return n},qg=async(e,t,{signal:r})=>{await U(e,"disconnect",{signal:r}),(e=>{throw new Error(`${xp("getOneMessage",e)} could not complete: the ${jp(e)} exited or disconnected.`)})(t)},Kg=async(e,t,{signal:r})=>{const[n]=await U(e,"strict:error",{signal:r});throw vp(n,t)},Xg=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:o=!0}={})=>Yg({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:!r,reference:o}),Yg=({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:o,reference:i})=>{bp({methodName:"getEachMessage",isSubprocess:r,ipc:n,isConnected:Yp(e)}),Fp(t,i);const s=qp(e,t,r),a=new AbortController,c={};return Qg(e,s,a),Jg({ipcEmitter:s,isSubprocess:r,controller:a,state:c}),Zg({anyProcess:e,channel:t,ipcEmitter:s,isSubprocess:r,shouldAwait:o,controller:a,state:c,reference:i})},Qg=async(e,t,r)=>{try{await U(t,"disconnect",{signal:r.signal}),r.abort()}catch{}},Jg=async({ipcEmitter:e,isSubprocess:t,controller:r,state:n})=>{try{const[o]=await U(e,"strict:error",{signal:r.signal});n.error=vp(o,t),r.abort()}catch{}},Zg=async function*({anyProcess:e,channel:t,ipcEmitter:r,isSubprocess:n,shouldAwait:o,controller:i,state:s,reference:a}){try{for await(const[e]of z(r,"message",{signal:i.signal}))ev(s),yield e}catch{ev(s)}finally{i.abort(),Gp(t,a),n||kp(e),o&&await e}},ev=({error:e})=>{if(e)throw e},tv=(e,t,r)=>({sendMessage:uh.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getOneMessage:zg.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getEachMessage:Xg.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}),rv=(e,t)=>{const r=nv(),n=nv(),o=nv(),i=Array.from({length:t.length-3},nv),s=nv(),a=[r,n,o,...i];Object.assign(e,{stdin:r,stdout:n,stderr:o,all:s,stdio:a})},nv=()=>{const e=new J;return e.end(),e},ov=()=>new Q({read(){}}),iv=()=>new Y({write(){}}),sv=()=>new X({read(){},write(){}}),av=async(e,t,r)=>Zm(e,t,r),cv=({type:e,optionName:t})=>{throw new TypeError(`The \`${t}\` option cannot be ${Db[e]}.`)},lv={fileNumber:cv,generator:fg,asyncGenerator:fg,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:r}}){const n=t||r;return{stream:X.fromWeb(e,{objectMode:n})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},uv={input:{...lv,fileUrl:({value:e})=>({stream:b(e)}),filePath:({value:{file:e}})=>({stream:b(e)}),webStream:({value:e})=>({stream:Q.fromWeb(e)}),iterable:({value:e})=>({stream:Q.from(e)}),asyncIterable:({value:e})=>({stream:Q.from(e)}),string:({value:e})=>({stream:Q.from(e)}),uint8Array:({value:e})=>({stream:Q.from(Z.from(e))})},output:{...lv,fileUrl:({value:e})=>({stream:m(e)}),filePath:({value:{file:e}})=>({stream:m(e)}),webStream:({value:e})=>({stream:Y.fromWeb(e)}),iterable:cv,asyncIterable:cv,string:cv,uint8Array:cv}};function dv(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(const t of e)yv(t);const t=e.some(({readableObjectMode:e})=>e),r=fv(e,t),n=new pv({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(const t of e)n.add(t);return n}const fv=(e,t)=>{if(0===e.length)return K(t);const r=e.filter(({readableObjectMode:e})=>e===t).map(({readableHighWaterMark:e})=>e);return Math.max(...r)};class pv extends J{#s=new Set([]);#a=new Set([]);#c=new Set([]);#l;#u=Symbol("unpipe");#d=new WeakMap;add(e){if(yv(e),this.#s.has(e))return;this.#s.add(e),this.#l??=hv(this,this.#s,this.#u);const t=gv({passThroughStream:this,stream:e,streams:this.#s,ended:this.#a,aborted:this.#c,onFinished:this.#l,unpipeEvent:this.#u});this.#d.set(e,t),e.pipe(this,{end:!1})}async remove(e){if(yv(e),!this.#s.has(e))return!1;const t=this.#d.get(e);return void 0!==t&&(this.#d.delete(e),e.unpipe(this),await t,!0)}}const hv=async(e,t,r)=>{Dv(e,Iv);const n=new AbortController;try{await Promise.race([mv(e,n),bv(e,t,r,n)])}finally{n.abort(),Dv(e,-Iv)}},mv=async(e,{signal:t})=>{try{await ee(e,{signal:t,cleanup:!0})}catch(t){throw xv(e,t),t}},bv=async(e,t,r,{signal:n})=>{for await(const[o]of z(e,"unpipe",{signal:n}))t.has(o)&&o.emit(r)},yv=e=>{if("function"!=typeof e?.pipe)throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},gv=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,onFinished:i,unpipeEvent:s})=>{Dv(e,Av);const a=new AbortController;try{await Promise.race([vv(i,t,a),wv({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:a}),Sv({stream:t,streams:r,ended:n,aborted:o,unpipeEvent:s,controller:a})])}finally{a.abort(),Dv(e,-Av)}r.size>0&&r.size===n.size+o.size&&(0===n.size&&o.size>0?jv(e):Ev(e))},vv=async(e,t,{signal:r})=>{try{await e,r.aborted||jv(t)}catch(e){r.aborted||xv(t,e)}},wv=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:{signal:i}})=>{try{await ee(t,{signal:i,cleanup:!0,readable:!0,writable:!1}),r.has(t)&&n.add(t)}catch(n){if(i.aborted||!r.has(t))return;Ov(n)?o.add(t):kv(e,n)}},Sv=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:o,controller:{signal:i}})=>{if(await U(e,o,{signal:i}),!e.readable)return U(i,"abort",{signal:i});t.delete(e),r.delete(e),n.delete(e)},Ev=e=>{e.writable&&e.end()},xv=(e,t)=>{Ov(t)?jv(e):kv(e,t)},Ov=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,jv=e=>{(e.readable||e.writable)&&e.destroy()},kv=(e,t)=>{e.destroyed||(e.once("error",Tv),e.destroy(t))},Tv=()=>{},Dv=(e,t)=>{const r=e.getMaxListeners();0!==r&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},Iv=2,Av=1,Nv=(e,t)=>{e.pipe(t),Cv(e,t),Lv(e,t)},Cv=async(e,t)=>{if(!Iu(e)&&!Iu(t)){try{await ee(e,{cleanup:!0,readable:!0,writable:!1})}catch{}Mv(t)}},Mv=e=>{e.writable&&e.end()},Lv=async(e,t)=>{if(!Iu(e)&&!Iu(t)){try{await ee(t,{cleanup:!0,readable:!1,writable:!0})}catch{}Pv(e)}},Pv=e=>{e.readable&&e.destroy()},Rv=(e,t,r,n)=>{"output"===r?Nv(e.stdio[n],t):Nv(t,e.stdio[n]);const o=_v[n];void 0!==o&&(e[o]=t),e.stdio[n]=t},_v=["stdin","stdout","stderr"],$v=({subprocess:e,stream:t,direction:r,fdNumber:n,pipeGroups:o,controller:i})=>{if(void 0===t)return;Bv(t,i);const[s,a]="output"===r?[t,e.stdio[n]]:[e.stdio[n],t],c=o.get(s)??[];o.set(s,[...c,a])},Bv=(e,{signal:t})=>{Iu(e)&&Bp(e,Fv,t)},Fv=2,Uv=[];Uv.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&Uv.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&Uv.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const Gv=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,Wv=Symbol.for("signal-exit emitter"),zv=globalThis,Vv=Object.defineProperty.bind(Object);class Hv{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(zv[Wv])return zv[Wv];Vv(zv,Wv,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const r=this.listeners[e],n=r.indexOf(t);-1!==n&&(0===n&&1===r.length?r.length=0:r.splice(n,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(const o of this.listeners[e])n=!0===o(t,r)||n;return"exit"===e&&(n=this.emit("afterExit",t,r)||n),n}}class qv{}const Kv=globalThis.process,{onExit:Xv}=(Yv=Gv(Kv)?new class extends qv{#f="win32"===Kv.platform?"SIGINT":"SIGHUP";#p=new Hv;#h;#m;#b;#y={};#g=!1;constructor(e){super(),this.#h=e,this.#y={};for(const t of Uv)this.#y[t]=()=>{const r=this.#h.listeners(t);let{count:n}=this.#p;const o=e;if("object"==typeof o.__signal_exit_emitter__&&"number"==typeof o.__signal_exit_emitter__.count&&(n+=o.__signal_exit_emitter__.count),r.length===n){this.unload();const r=this.#p.emit("exit",null,t),n="SIGHUP"===t?this.#f:t;r||e.kill(e.pid,n)}};this.#b=e.reallyExit,this.#m=e.emit}onExit(e,t){if(!Gv(this.#h))return()=>{};!1===this.#g&&this.load();const r=t?.alwaysLast?"afterExit":"exit";return this.#p.on(r,e),()=>{this.#p.removeListener(r,e),0===this.#p.listeners.exit.length&&0===this.#p.listeners.afterExit.length&&this.unload()}}load(){if(!this.#g){this.#g=!0,this.#p.count+=1;for(const e of Uv)try{const t=this.#y[e];t&&this.#h.on(e,t)}catch(e){}this.#h.emit=(e,...t)=>this.#v(e,...t),this.#h.reallyExit=e=>this.#w(e)}}unload(){this.#g&&(this.#g=!1,Uv.forEach(e=>{const t=this.#y[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#h.removeListener(e,t)}catch(e){}}),this.#h.emit=this.#m,this.#h.reallyExit=this.#b,this.#p.count-=1)}#w(e){return Gv(this.#h)?(this.#h.exitCode=e||0,this.#p.emit("exit",this.#h.exitCode,null),this.#b.call(this.#h,this.#h.exitCode)):0}#v(e,...t){const r=this.#m;if("exit"===e&&Gv(this.#h)){"number"==typeof t[0]&&(this.#h.exitCode=t[0]);const n=r.call(this.#h,e,...t);return this.#p.emit("exit",this.#h.exitCode,null),n}return r.call(this.#h,e,...t)}}(Kv):new class extends qv{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>Yv.onExit(e,t),load:()=>Yv.load(),unload:()=>Yv.unload()});var Yv;const Qv=(e,t,r)=>{try{const{destination:n,pipeOptions:{from:o,to:i,unpipeSignal:s}={}}=Jv(e,t,...r);return{destination:n,destinationStream:Dp(n,i),from:o,unpipeSignal:s}}catch(e){return{destinationError:e}}},Jv=(e,t,r,...n)=>{if(Array.isArray(r)){return{destination:t(Zv,e)(r,...n),pipeOptions:e}}if("string"==typeof r||r instanceof URL){if(Object.keys(e).length>0)throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');const[o,i,s]=lu(r,...n);return{destination:t(Zv)(o,i,s),pipeOptions:s}}if(Ap.has(r)){if(Object.keys(e).length>0)throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:r,pipeOptions:n[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${r}`)},Zv=({options:e})=>({options:{...e,stdin:"pipe",piped:!0}}),ew=(e,t)=>{try{return{sourceStream:Ip(e,t)}}catch(e){return{sourceError:e}}},tw=({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n})=>void 0!==t&&void 0!==n?n:void 0!==n?(Pv(e),n):void 0!==t?(Mv(r),t):void 0,rw=({error:e,fileDescriptors:t,sourceOptions:r,startTime:n})=>Wm({error:e,command:nw,escapedCommand:nw,fileDescriptors:t,options:r,startTime:n,isSync:!1}),nw="source.pipe(destination)",ow=async e=>{const[{status:t,reason:r,value:n=r},{status:o,reason:i,value:s=i}]=await e;if(s.pipedFrom.includes(n)||s.pipedFrom.push(n),"rejected"===o)throw s;if("rejected"===t)throw n;return s},iw=(e,t)=>{const r=dv([e]);return Nv(r,t),cw.set(t,r),r},sw=(e,t)=>{const r=cw.get(t);return r.add(e),r},aw=async e=>{try{await ee(e,{cleanup:!0,readable:!1,writable:!0})}catch{}cw.delete(e)},cw=new WeakMap,lw=2,uw=1,dw=(e,t)=>void 0===e?[]:[fw(e,t)],fw=async(e,{sourceStream:t,mergedStream:r,fileDescriptors:n,sourceOptions:o,startTime:i})=>{await A(e,t),await r.remove(t);const s=new Error("Pipe canceled by `unpipeSignal` option.");throw rw({error:s,fileDescriptors:n,sourceOptions:o,startTime:i})},pw=(e,...t)=>{if(su(t[0]))return pw.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});const{destination:r,...n}=(({source:e,sourcePromise:t,boundOptions:r,createNested:n},...o)=>{const i=Pd(),{destination:s,destinationStream:a,destinationError:c,from:l,unpipeSignal:u}=Qv(r,n,o),{sourceStream:d,sourceError:f}=ew(e,l),{options:p,fileDescriptors:h}=Ap.get(e);return{sourcePromise:t,sourceStream:d,sourceOptions:p,sourceError:f,destination:s,destinationStream:a,destinationError:c,unpipeSignal:u,fileDescriptors:h,startTime:i}})(e,...t),o=hw({...n,destination:r});return o.pipe=pw.bind(void 0,{...e,source:r,sourcePromise:o,boundOptions:{}}),o},hw=async({sourcePromise:e,sourceStream:t,sourceOptions:r,sourceError:n,destination:o,destinationStream:i,destinationError:s,unpipeSignal:a,fileDescriptors:c,startTime:l})=>{const u=mw(e,o);(({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n,fileDescriptors:o,sourceOptions:i,startTime:s})=>{const a=tw({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n});if(void 0!==a)throw rw({error:a,fileDescriptors:o,sourceOptions:i,startTime:s})})({sourceStream:t,sourceError:n,destinationStream:i,destinationError:s,fileDescriptors:c,sourceOptions:r,startTime:l});const d=new AbortController;try{const e=((e,t,r)=>{const n=cw.has(t)?sw(e,t):iw(e,t);return Bp(e,lw,r.signal),Bp(t,uw,r.signal),aw(t),n})(t,i,d);return await Promise.race([ow(u),...dw(a,{sourceStream:t,mergedStream:e,sourceOptions:r,fileDescriptors:c,startTime:l})])}finally{d.abort()}},mw=(e,t)=>Promise.allSettled([e,t]),bw=({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:n,encoding:o,preserveNewlines:i})=>{const s=new AbortController;return yw(t,s),ww({stream:e,controller:s,binary:r,shouldEncode:!e.readableObjectMode&&n,encoding:o,shouldSplit:!e.readableObjectMode,preserveNewlines:i})},yw=async(e,t)=>{try{await e}catch{}finally{t.abort()}},gw=({stream:e,onStreamEnd:t,lines:r,encoding:n,stripFinalNewline:o,allMixed:i})=>{const s=new AbortController;vw(t,s,e);const a=e.readableObjectMode&&!i;return ww({stream:e,controller:s,binary:"buffer"===n,shouldEncode:!a,encoding:n,shouldSplit:!a&&r,preserveNewlines:!o})},vw=async(e,t,r)=>{try{await e}catch{r.destroy()}finally{t.abort()}},ww=({stream:e,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s})=>{const a=z(e,"data",{signal:t.signal,highWaterMark:Ew,highWatermark:Ew});return xw({onStdoutChunk:a,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s})},Sw=K(!0),Ew=Sw,xw=async function*({onStdoutChunk:e,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s}){const a=Ow({binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s});try{for await(const[t]of e)yield*cg(t,a,0)}catch(e){if(!t.signal.aborted)throw e}finally{yield*lg(a)}},Ow=({binary:e,shouldEncode:t,encoding:r,shouldSplit:n,preserveNewlines:o})=>[Yy(e,r,!t),Cy(e,o,!n,{})].filter(Boolean),jw=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,buffer:o,maxBuffer:i,lines:s,allMixed:a,stripFinalNewline:c,verboseInfo:l,streamInfo:u})=>{const d=kw({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:a,verboseInfo:l,streamInfo:u});if(!o)return void await Promise.all([Tw(e),d]);const f=Ny(c,r),p=gw({stream:e,onStreamEnd:t,lines:s,encoding:n,stripFinalNewline:f,allMixed:a}),[h]=await Promise.all([Dw({stream:e,iterable:p,fdNumber:r,encoding:n,maxBuffer:i,lines:s}),d]);return h},kw=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:o,verboseInfo:i,streamInfo:{fileDescriptors:s}})=>{if(!vg({stdioItems:s[r]?.stdioItems,encoding:n,verboseInfo:i,fdNumber:r}))return;const a=gw({stream:e,onStreamEnd:t,lines:!0,encoding:n,stripFinalNewline:!0,allMixed:o});await(async(e,t,r,n)=>{for await(const o of e)Eg(t)||xg(o,r,n)})(a,e,r,i)},Tw=async e=>{await B(),null===e.readableFlowing&&e.resume()},Dw=async({stream:e,stream:{readableObjectMode:t},iterable:r,fdNumber:n,encoding:o,maxBuffer:i,lines:s})=>{try{return t||s?await async function(e,t){return cm(e,wm,t)}(r,{maxBuffer:i}):"buffer"===o?new Uint8Array(await async function(e,t){return cm(e,Im,t)}(r,{maxBuffer:i})):await async function(e,t){return cm(e,Nm,t)}(r,{maxBuffer:i})}catch(r){return Aw((({error:e,stream:t,readableObjectMode:r,lines:n,encoding:o,fdNumber:i})=>{if(!(e instanceof hm))throw e;if("all"===i)return e;const s=Cm(r,n,o);throw e.maxBufferInfo={fdNumber:i,unit:s},t.destroy(),e})({error:r,stream:e,readableObjectMode:t,lines:s,encoding:o,fdNumber:n}))}},Iw=async e=>{try{return await e}catch(e){return Aw(e)}},Aw=({bufferedData:e})=>{return t=e,"[object ArrayBuffer]"===uu.call(t)?new Uint8Array(e):e;var t},Nw=async(e,t,r,{isSameDirection:n,stopOnExit:o=!1}={})=>{const i=Cw(e,r),s=new AbortController;try{await Promise.race([...o?[r.exitPromise]:[],ee(e,{cleanup:!0,signal:s.signal})])}catch(e){i.stdinCleanedUp||Pw(e,t,r,n)}finally{s.abort()}},Cw=(e,{originalStreams:[t],subprocess:r})=>{const n={stdinCleanedUp:!1};return e===t&&Mw(e,r,n),n},Mw=(e,t,r)=>{const{_destroy:n}=e;e._destroy=(...o)=>{Lw(t,r),n.call(e,...o)}},Lw=({exitCode:e,signalCode:t},r)=>{null===e&&null===t||(r.stdinCleanedUp=!0)},Pw=(e,t,r,n)=>{if(!Rw(e,t,r,n))throw e},Rw=(e,t,r,n=!0)=>r.propagating?Bw(e)||$w(e):(r.propagating=!0,_w(r,t)===n?Bw(e):$w(e)),_w=({fileDescriptors:e},t)=>"all"!==t&&"input"===e[t].direction,$w=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,Bw=e=>"EPIPE"===e?.code,Fw=async({stream:e,fdNumber:t,encoding:r,buffer:n,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:c,streamInfo:l})=>{if(!e)return;const u=Nw(e,t,l);if(_w(l,t))return void await u;const[d]=await Promise.all([jw({stream:e,onStreamEnd:u,fdNumber:t,encoding:r,buffer:n,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:c,streamInfo:l}),u]);return d},Uw=({stdout:e,stderr:t,all:r},[,n,o])=>{const i=n||o;return i?n?o?{stream:r,buffer:i}:{stream:e,buffer:i}:{stream:t,buffer:i}:{stream:r,buffer:i}},Gw=({all:e,stdout:t,stderr:r})=>e&&t&&r&&t.readableObjectMode!==r.readableObjectMode,Ww=(e,t)=>{const r=Ad(e);jd({type:"ipc",verboseMessage:r,fdNumber:"ipc",verboseInfo:t})},zw=async({subprocess:e,buffer:t,maxBuffer:r,ipc:n,ipcOutput:o,verboseInfo:i})=>{if(!n)return o;const s=(e=>qu(e,"ipc"))(i),a=Vu(t,"ipc"),c=Vu(r,"ipc");for await(const t of Yg({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:n,shouldAwait:!1,reference:!0}))a&&(Mm(0,o,c),o.push(t)),s&&Ww(t,i);return o},Vw=async(e,t)=>(await Promise.allSettled([e]),t),Hw=async({subprocess:e,options:{encoding:t,buffer:r,maxBuffer:n,lines:o,timeoutDuration:i,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:c,stripFinalNewline:l,ipc:u,ipcInput:d},context:f,verboseInfo:p,fileDescriptors:h,originalStreams:m,onInternalError:b,controller:y})=>{const g=(async(e,t)=>{const[r,n]=await Ig(e);return t.isForcefullyTerminated??=!1,[r,n]})(e,f),v={originalStreams:m,fileDescriptors:h,subprocess:e,exitPromise:g,propagating:!1},w=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>e.stdio.map((e,c)=>Fw({stream:e,fdNumber:c,encoding:t,buffer:r[c],maxBuffer:n[c],lines:o[c],allMixed:!1,stripFinalNewline:i,verboseInfo:s,streamInfo:a})))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:l,verboseInfo:p,streamInfo:v}),S=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>Fw({...Uw(e,r),fdNumber:"all",encoding:t,maxBuffer:n[1]+n[2],lines:o[1]||o[2],allMixed:Gw(e),stripFinalNewline:i,verboseInfo:s,streamInfo:a}))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:l,verboseInfo:p,streamInfo:v}),E=[],x=zw({subprocess:e,buffer:r,maxBuffer:n,ipc:u,ipcOutput:E,verboseInfo:p}),O=qw(m,e,v),j=Kw(h,v);try{return await Promise.race([Promise.all([{},Ng(g),Promise.all(w),S,x,Dh(e,d),...O,...j]),b,Xw(e,y),...jh(e,i,f,y),...hp({subprocess:e,cancelSignal:s,gracefulCancel:a,context:f,controller:y}),...Eh({subprocess:e,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:c,context:f,controller:y})])}catch(e){return f.terminationReason??="other",Promise.all([{error:e},g,Promise.all(w.map(e=>Iw(e))),Iw(S),Vw(x,E),Promise.allSettled(O),Promise.allSettled(j)])}},qw=(e,t,r)=>e.map((e,n)=>e===t.stdio[n]?void 0:Nw(e,n,r)),Kw=(e,t)=>e.flatMap(({stdioItems:e},r)=>e.filter(({value:e,stream:t=e})=>Hh(t,{checkOpen:!1})&&!Iu(t)).map(({type:e,value:n,stream:o=n})=>Nw(o,r,t,{isSameDirection:xb.has(e),stopOnExit:"native"===e}))),Xw=async(e,{signal:t})=>{const[r]=await U(e,"error",{signal:t});throw r},Yw=(e,t,r)=>{const n=e[r];n.has(t)||n.set(t,[]);const o=n.get(t),i=Tp();o.push(i);return{resolve:i.resolve.bind(i),promises:o}},Qw=async({resolve:e,promises:t},r)=>{e();const[n]=await Promise.race([Promise.allSettled([!0,r]),Promise.all([!1,...t])]);return!n},Jw=async e=>{if(void 0!==e)try{await Zw(e)}catch{}},Zw=async e=>{await ee(e,{cleanup:!0,readable:!1,writable:!0})},eS=async e=>{await ee(e,{cleanup:!0,readable:!0,writable:!1})},tS=async(e,t)=>{if(await e,t)throw t},rS=(e,t,r)=>{r&&!$w(r)?e.destroy(r):t&&e.destroy()},nS=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,binary:o=!0,preserveNewlines:i=!0}={})=>{const s=o||Ah.has(r),{subprocessStdout:a,waitReadableDestroy:c}=oS(e,n,t),{readableEncoding:l,readableObjectMode:u,readableHighWaterMark:d}=iS(a,s),{read:f,onStdoutDataDone:p}=sS({subprocessStdout:a,subprocess:e,binary:s,encoding:r,preserveNewlines:i}),h=new Q({read:f,destroy:I(lS.bind(void 0,{subprocessStdout:a,subprocess:e,waitReadableDestroy:c})),highWaterMark:d,objectMode:u,encoding:l});return cS({subprocessStdout:a,onStdoutDataDone:p,readable:h,subprocess:e}),h},oS=(e,t,r)=>{const n=Ip(e,t);return{subprocessStdout:n,waitReadableDestroy:Yw(r,n,"readableDestroy")}},iS=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r},n)=>n?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:Sw},sS=({subprocessStdout:e,subprocess:t,binary:r,encoding:n,preserveNewlines:o})=>{const i=Tp(),s=bw({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:!r,encoding:n,preserveNewlines:o});return{read(){aS(this,s,i)},onStdoutDataDone:i}},aS=async(e,t,r)=>{try{const{value:n,done:o}=await t.next();o?r.resolve():e.push(n)}catch{}},cS=async({subprocessStdout:e,onStdoutDataDone:t,readable:r,subprocess:n,subprocessStdin:o})=>{try{await eS(e),await n,await Jw(o),await t,r.readable&&r.push(null)}catch(e){await Jw(o),uS(r,e)}},lS=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:r},n)=>{await Qw(r,t)&&(uS(e,n),await tS(t,n))},uS=(e,t)=>{rS(e,e.readable,t)},dS=({subprocess:e,concurrentStreams:t},{to:r}={})=>{const{subprocessStdin:n,waitWritableFinal:o,waitWritableDestroy:i}=fS(e,r,t),s=new Y({...pS(n,e,o),destroy:I(yS.bind(void 0,{subprocessStdin:n,subprocess:e,waitWritableFinal:o,waitWritableDestroy:i})),highWaterMark:n.writableHighWaterMark,objectMode:n.writableObjectMode});return bS(n,s),s},fS=(e,t,r)=>{const n=Dp(e,t);return{subprocessStdin:n,waitWritableFinal:Yw(r,n,"writableFinal"),waitWritableDestroy:Yw(r,n,"writableDestroy")}},pS=(e,t,r)=>({write:hS.bind(void 0,e),final:I(mS.bind(void 0,e,t,r))}),hS=(e,t,r,n)=>{e.write(t,r)?n():e.once("drain",n)},mS=async(e,t,r)=>{await Qw(r,t)&&(e.writable&&e.end(),await t)},bS=async(e,t,r)=>{try{await Zw(e),t.writable&&t.end()}catch(e){await(async e=>{if(void 0!==e)try{await eS(e)}catch{}})(r),gS(t,e)}},yS=async({subprocessStdin:e,subprocess:t,waitWritableFinal:r,waitWritableDestroy:n},o)=>{await Qw(r,t),await Qw(n,t)&&(gS(e,o),await tS(t,o))},gS=(e,t)=>{rS(e,e.writable,t)},vS=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,to:o,binary:i=!0,preserveNewlines:s=!0}={})=>{const a=i||Ah.has(r),{subprocessStdout:c,waitReadableDestroy:l}=oS(e,n,t),{subprocessStdin:u,waitWritableFinal:d,waitWritableDestroy:f}=fS(e,o,t),{readableEncoding:p,readableObjectMode:h,readableHighWaterMark:m}=iS(c,a),{read:b,onStdoutDataDone:y}=sS({subprocessStdout:c,subprocess:e,binary:a,encoding:r,preserveNewlines:s}),g=new X({read:b,...pS(u,e,d),destroy:I(wS.bind(void 0,{subprocessStdout:c,subprocessStdin:u,subprocess:e,waitReadableDestroy:l,waitWritableFinal:d,waitWritableDestroy:f})),readableHighWaterMark:m,writableHighWaterMark:u.writableHighWaterMark,readableObjectMode:h,writableObjectMode:u.writableObjectMode,encoding:p});return cS({subprocessStdout:c,onStdoutDataDone:y,readable:g,subprocess:e,subprocessStdin:u}),bS(u,g,c),g},wS=async({subprocessStdout:e,subprocessStdin:t,subprocess:r,waitReadableDestroy:n,waitWritableFinal:o,waitWritableDestroy:i},s)=>{await Promise.all([lS({subprocessStdout:e,subprocess:r,waitReadableDestroy:n},s),yS({subprocessStdin:t,subprocess:r,waitWritableFinal:o,waitWritableDestroy:i},s)])},SS=(e,t,{from:r,binary:n=!1,preserveNewlines:o=!1}={})=>{const i=n||Ah.has(t),s=Ip(e,r),a=bw({subprocessStdout:s,subprocess:e,binary:i,shouldEncode:!0,encoding:t,preserveNewlines:o});return ES(a,s,e)},ES=async function*(e,t,r){try{yield*e}finally{t.readable&&t.destroy(),await r}},xS=(e,{encoding:t})=>{const r={readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap};e.readable=nS.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.writable=dS.bind(void 0,{subprocess:e,concurrentStreams:r}),e.duplex=vS.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.iterable=SS.bind(void 0,e,t),e[Symbol.asyncIterator]=SS.bind(void 0,e,t,{})},OS=(async()=>{})().constructor.prototype,jS=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(OS,e)]),kS=(e,t,r,n)=>{const{file:o,commandArguments:i,command:s,escapedCommand:a,startTime:c,verboseInfo:l,options:u,fileDescriptors:d}=TS(e,t,r),{subprocess:f,promise:p}=IS({file:o,commandArguments:i,options:u,startTime:c,verboseInfo:l,command:s,escapedCommand:a,fileDescriptors:d});return f.pipe=pw.bind(void 0,{source:f,sourcePromise:p,boundOptions:{},createNested:n}),((e,t)=>{for(const[r,n]of jS){const o=n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}})(f,p),Ap.set(f,{options:u,fileDescriptors:d}),f},TS=(e,t,r)=>{const{command:n,escapedCommand:o,startTime:i,verboseInfo:s}=_d(e,t,r),{file:a,commandArguments:c,options:l}=Rh(e,t,r),u=DS(l),d=((e,t)=>fy(uv,e,t,!1))(u,s);return{file:a,commandArguments:c,command:n,escapedCommand:o,startTime:i,verboseInfo:s,options:u,fileDescriptors:d}},DS=({timeout:e,signal:t,...r})=>{if(void 0!==t)throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.');return{...r,timeoutDuration:e}},IS=({file:e,commandArguments:t,options:r,startTime:n,verboseInfo:o,command:i,escapedCommand:s,fileDescriptors:a})=>{let c;try{c=x(e,t,r)}catch(e){return(({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,verboseInfo:s})=>{Oy(n);const a=new S;rv(a,n),Object.assign(a,{readable:ov,writable:iv,duplex:sv});const c=Wm({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,isSync:!1});return{subprocess:a,promise:av(c,s,o)}})({error:e,command:i,escapedCommand:s,fileDescriptors:a,options:r,startTime:n,verboseInfo:o})}const l=new AbortController;V(Number.POSITIVE_INFINITY,l.signal);const u=[...c.stdio];((e,t,r)=>{const n=new Map;for(const[o,{stdioItems:i,direction:s}]of Object.entries(t)){for(const{stream:t}of i.filter(({type:e})=>xb.has(e)))Rv(e,t,s,o);for(const{stream:t}of i.filter(({type:e})=>!xb.has(e)))$v({subprocess:e,stream:t,direction:s,fdNumber:o,pipeGroups:n,controller:r})}for(const[e,t]of n.entries()){const r=1===t.length?t[0]:dv(t);Nv(r,e)}})(c,a,l),((e,{cleanup:t,detached:r},{signal:n})=>{if(!t||r)return;const o=Xv(()=>{e.kill()});G(n,()=>{o()})})(c,r,l);const d={},f=Tp();c.kill=cp.bind(void 0,{kill:c.kill.bind(c),options:r,onInternalError:f,context:d,controller:l}),c.all=(({stdout:e,stderr:t},{all:r})=>r&&(e||t)?dv([e,t].filter(Boolean)):void 0)(c,r),xS(c,r),((e,{ipc:t})=>{Object.assign(e,tv(e,!1,t))})(c,r);return{subprocess:c,promise:AS({subprocess:c,options:r,startTime:n,verboseInfo:o,fileDescriptors:a,originalStreams:u,command:i,escapedCommand:s,context:d,onInternalError:f,controller:l})}},AS=async({subprocess:e,options:t,startTime:r,verboseInfo:n,fileDescriptors:o,originalStreams:i,command:s,escapedCommand:a,context:c,onInternalError:l,controller:u})=>{const[d,[f,p],h,m,b]=await Hw({subprocess:e,options:t,context:c,verboseInfo:n,fileDescriptors:o,originalStreams:i,onInternalError:l,controller:u});u.abort(),l.resolve();const y=h.map((e,r)=>Ay(e,t,r)),g=Ay(m,t,"all"),v=NS({errorInfo:d,exitCode:f,signal:p,stdio:y,all:g,ipcOutput:b,context:c,options:t,command:s,escapedCommand:a,startTime:r});return Zm(v,n,t)},NS=({errorInfo:e,exitCode:t,signal:r,stdio:n,all:o,ipcOutput:i,context:s,options:a,command:c,escapedCommand:l,startTime:u})=>"error"in e?zm({error:e.error,command:c,escapedCommand:l,timedOut:"timeout"===s.terminationReason,isCanceled:"cancel"===s.terminationReason||"gracefulCancel"===s.terminationReason,isGracefullyCanceled:"gracefulCancel"===s.terminationReason,isMaxBuffer:e.error instanceof hm,isForcefullyTerminated:s.isForcefullyTerminated,exitCode:t,signal:r,stdio:n,all:o,ipcOutput:i,options:a,startTime:u,isSync:!1}):Gm({command:c,escapedCommand:l,stdio:n,all:o,ipcOutput:i,options:a,startTime:u}),CS=(e,t)=>{const r=Object.fromEntries(Object.entries(t).map(([t,r])=>[t,MS(t,e[t],r)]));return{...e,...r}},MS=(e,t,r)=>LS.has(e)&&su(t)&&su(r)?{...t,...r}:r,LS=new Set(["env",...zu]),PS=(e,t,r,n)=>{const o=(e,t,n)=>PS(e,t,r,n),i=(...i)=>RS({mapArguments:e,deepOptions:r,boundOptions:t,setBoundExeca:n,createNested:o},...i);return void 0!==n&&n(i,o,t),i},RS=({mapArguments:e,deepOptions:t={},boundOptions:r={},setBoundExeca:n,createNested:o},i,...s)=>{if(su(i))return o(e,CS(r,i),n);const{file:a,commandArguments:c,options:l,isSync:u}=_S({mapArguments:e,firstArgument:i,nextArguments:s,deepOptions:t,boundOptions:r});return u?((e,t,r)=>{const{file:n,commandArguments:o,command:i,escapedCommand:s,startTime:a,verboseInfo:c,options:l,fileDescriptors:u}=Rg(e,t,r),d=Fg({file:n,commandArguments:o,options:l,command:i,escapedCommand:s,verboseInfo:c,fileDescriptors:u,startTime:a});return Zm(d,c,l)})(a,c,l):kS(a,c,l,o)},_S=({mapArguments:e,firstArgument:t,nextArguments:r,deepOptions:n,boundOptions:o})=>{const i=(s=t,Array.isArray(s)&&Array.isArray(s.raw)?((e,t)=>{let r=[];for(const[n,o]of e.entries())r=Eu({templates:e,expressions:t,tokens:r,index:n,template:o});if(0===r.length)throw new TypeError("Template script must not be empty");const[n,...o]=r;return[n,o,{}]})(t,r):[t,...r]);var s;const[a,c,l]=lu(...i),u=CS(CS(n,o),l),{file:d=a,commandArguments:f=c,options:p=u,isSync:h=!1}=e({file:a,commandArguments:c,options:u});return{file:d,commandArguments:f,options:p,isSync:h}},$S=(e,t)=>{if(t.length>0)throw new TypeError(`The command and its arguments must be passed as a single string: ${e} ${t}.`);const[r,...n]=BS(e);return{file:r,commandArguments:n}},BS=e=>{if("string"!=typeof e)throw new TypeError(`The command must be a string: ${String(e)}.`);const t=e.trim();if(""===t)return[];const r=[];for(const e of t.split(FS)){const t=r.at(-1);t&&t.endsWith("\\")?r[r.length-1]=`${t.slice(0,-1)} ${e}`:r.push(e)}return r},FS=/ +/g,US=({options:e})=>({...GS(e),isSync:!0}),GS=e=>({options:{...WS(e),...e}}),WS=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{};PS(()=>({}));const zS=PS(()=>({isSync:!0}));PS(({file:e,commandArguments:t})=>$S(e,t)),PS(({file:e,commandArguments:t})=>({...$S(e,t),isSync:!0})),PS(({options:e})=>{if(!1===e.node)throw new TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}}),PS(({options:e})=>GS(e),{},{preferLocal:!0},(e,t,r)=>{e.sync=t(US,r),e.s=e.sync}),(()=>{const e=N,t=!0,r=void 0!==N.channel;tv(e,t,r),mh.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})})(),u.enableCompileCache?.();const VS=global,HS=new Proxy(global.target,{set:function(e,t,r,n){return Reflect.set(e,t,r,n)},get:function(e,t,r){return console.log(`make ${t}`),Reflect.get(e,t,r)}}),qS=["packages","codemods","eslint"],KS=VS.which("yarn").stdout,XS=process.execPath;function YS(e,t,r,n=!0,o=!1){console.log(`${e.replaceAll(KS,"yarn").replaceAll(XS,"node")} ${t.join(" ")}`);try{return zS(e,t,{stdio:n?"inherit":void 0,cwd:r&&a.resolve(r),env:process.env}).stdout}catch(r){throw n&&0!==r.exitCode&&(console.error(new Error(`\ncommand: ${e} ${t.join(" ")}\ncode: ${r.exitCode}`)),o||process.exit(r.exitCode)),r}}function QS(e,t,r,n){return YS(KS,e,t,r,n)}function JS(e,t,r){return YS(XS,e,t,r)}function ZS(e,t){const r=process.env;process.env={...r,...t},e(),process.env=r}function eE(...e){const t=["--format","codeframe","--flag","unstable_native_nodejs_ts_config",...e.filter(Boolean)],r=y("packages").filter(e=>g(`packages/${e}/package.json`)),n=[];for(let e=0,t=40;e<r.length;e+=t)r.length-e===1?n.push([`packages/${r[e]}/**/*`]):n.push([`packages/{${r.slice(e,e+t)}}/**/*`]);const o=["eslint","codemods","scripts","benchmark","*.{js,cjs,mjs,ts}"];if(n.push(o),process.env.ESLINT_GO_BRRRR)ZS(()=>QS(["eslint","packages",...o,...t]),{BABEL_ENV:"test",NODE_OPTIONS:"--max-old-space-size=16384"});else{let e=null;for(const r of n)try{ZS(()=>QS(["eslint",...r,...t],void 0,void 0,!0),{BABEL_ENV:"test"})}catch(t){e=t}e&&process.exit(e.exitCode)}}function tE(e,t,r){const n="./build/"+e.toLowerCase();VS.rm("-rf",n),console.log("mkdir -p build"),v("build",{recursive:!0}),YS("git",["clone","--filter=blob:none","--sparse","--depth","1","--revision="+function(e){const t=p("./Makefile","utf8"),r=new RegExp(`${e}_COMMIT = (\\w{40})`).exec(t)[1];if(!r)throw new Error(`Could not find ${e}_COMMIT in Makefile`);return r}(e),t,n]),YS("git",["sparse-checkout","set",...r],n)}VS.config.verbose=!0,HS["clean-all"]=function(){VS.rm("-rf",["package-lock.json",".changelog"]),qS.forEach(e=>{VS.rm("-rf",`${e}/*/test/tmp`),VS.rm("-rf",`${e}/*/package-lock.json`)}),HS.clean(),HS["clean-lib"](),HS["clean-node-modules"](),HS["clean-ts"]()},HS["clean-node-modules"]=function(){VS.rm("-rf","node_modules"),qS.forEach(e=>{VS.rm("-rf",`${e}/*/node_modules`)})},HS.clean=function(){HS["test-clean"](),VS.rm("-rf",[".npmrc","coverage","packages/*/npm-debug*","node_modules/.cache"])},HS["test-clean"]=function(){qS.forEach(e=>{VS.rm("-rf",`${e}/*/test/tmp`),VS.rm("-rf",`${e}/*/test-fixtures.json`)})},HS["clean-lib"]=function(){VS.rm("-rf",qS.map(e=>`${e}/*/lib`))},HS["clean-runtime-helpers"]=function(){VS.rm("-rf",["packages/babel-runtime/helpers/**/*.js","packages/babel-runtime-corejs2/helpers/**/*.js","packages/babel-runtime-corejs3/helpers/**/*.js","packages/babel-runtime/helpers/**/*.mjs","packages/babel-runtime-corejs2/helpers/**/*.mjs","packages/babel-runtime-corejs3/helpers/**/*.mjs","packages/babel-runtime-corejs2/core-js","packages/babel-runtime-corejs3/core-js","packages/babel-runtime-corejs3/core-js-stable"])},HS["bootstrap-only"]=function(){HS["clean-all"](),QS(["install"])},HS.bootstrap=function(){HS["bootstrap-only"](),HS["generate-tsconfig"](),HS.build()},HS.build=function(){HS["build-no-bundle"](),"true"!==process.env.BABEL_COVERAGE&&HS["build-standalone"]()},HS["build-standalone"]=function(){QS(["gulp","build-babel-standalone"])},HS["build-bundle"]=function(){HS.clean(),HS["clean-lib"](),HS["bundle-babel-parser-dts"](),QS(["gulp","build"]),HS["build-dist"]()},HS["build-no-bundle"]=function(){HS.clean(),HS["clean-lib"](),HS["bundle-babel-parser-dts"](),ZS(()=>{QS(["gulp","build-dev"])},{BABEL_ENV:"development"}),HS["build-dist"]()},HS["build-flow-typings"]=function(){d("packages/babel-types/lib/index.js.flow",JS(["packages/babel-types/scripts/generators/flow.ts"],void 0,!1))},HS["build-dist"]=function(){HS["build-plugin-transform-runtime-dist"]()},HS["build-plugin-transform-runtime-dist"]=function(){JS(["scripts/build-dist.ts"],"packages/babel-plugin-transform-runtime")},HS.prepublish=function(){HS["bootstrap-only"](),ZS(()=>{HS["prepublish-build"](),HS.test()},{IS_PUBLISH:"true"})},HS["prepublish-build"]=function(){HS["clean-lib"](),HS["clean-runtime-helpers"](),JS(["scripts/generators/npm-ignore.ts"]),ZS(()=>{HS["build-bundle"]()},{NODE_ENV:"production",BABEL_ENV:"production",STRIP_BABEL_VERSION_FLAG:"true",IS_PUBLISH:"true"}),ZS(()=>{HS["prepublish-build-standalone"](),HS["clone-license"](),HS["prepublish-prepare-dts"](),HS["build-flow-typings"]()},{NODE_ENV:"production",STRIP_BABEL_VERSION_FLAG:"true"})},HS["prepublish-build-standalone"]=function(){ZS(()=>{HS["build-standalone"]()},{BABEL_ENV:"production",IS_PUBLISH:"true"})},HS["prepublish-prepare-dts"]=function(){HS["clean-ts"](),HS.tscheck(),HS["prepublish-prepare-dts-no-clean"]()},HS["bundle-babel-parser-dts"]=function(){HS["tscheck-babel-parser"](),QS(["gulp","bundle-babel-parser-dts"])},HS["prepublish-prepare-dts-no-clean"]=function(){QS(["gulp","bundle-dts"]),HS["build-typescript-legacy-typings"](),QS(["tsc","-p","tsconfig.dts-bundles.json"])},HS.tscheck=function(){HS["generate-tsconfig"](),JS(["scripts/parallel-tsc/tsc.ts","."]),HS["tscheck-helpers"]()},HS["tscheck-babel-parser"]=function(){JS(["scripts/parallel-tsc/tsc.ts","./packages/babel-parser"])},HS["tscheck-helpers"]=function(){QS(["tsc","-p","./packages/babel-helpers/src/helpers/tsconfig.json"])},HS["clean-ts"]=function(){VS.rm("-rf","tsconfig.tsbuildinfo"),VS.rm("-rf","*/*/tsconfig.tsbuildinfo"),VS.rm("-rf","dts")},HS["generate-tsconfig"]=function(){JS(["scripts/generators/tsconfig.ts"]),JS(["scripts/generators/archived-libs-typings.ts"])},HS["generate-type-helpers"]=function(){QS(["gulp","generate-type-helpers"])},HS["build-typescript-legacy-typings"]=function(){d("packages/babel-types/lib/index-legacy.d.ts",JS(["packages/babel-types/scripts/generators/typescript-legacy.ts"],void 0,!1))},HS["clone-license"]=function(){JS(["scripts/clone-license.ts"])},HS.lint=function(){ZS(()=>HS.tscheck(),{TSCHECK_SILENT:"true"}),eE(),QS(["tstyche"]),HS["lint-prettier"]()},HS["lint-ci"]=function(){HS.tscheck(),eE(),QS(["tstyche"]),HS["lint-prettier"](),HS["prepublish-prepare-dts-no-clean"]()},HS["lint-prettier"]=function(){QS(["prettier",".","--check"])},HS.fix=function(){HS["fix-js"](),HS["fix-prettier"]()},HS["fix-js"]=function(){ZS(()=>HS.tscheck(),{TSCHECK_SILENT:"true"}),eE("--fix")},HS["fix-prettier"]=function(){QS(["prettier",".","--write"])},HS.watch=function(){HS["build-no-bundle"](),ZS(()=>{QS(["gulp","watch"])},{BABEL_ENV:"development",WATCH_SKIP_BUILD:"true"})},HS.test=function(){HS.lint(),HS["test-only"]()},HS["test-only"]=function(e=[]){QS(["jest",...e])},HS["test-cov"]=function(){HS.build(),ZS(()=>{QS(["c8","jest"])},{BABEL_ENV:"test",BABEL_COVERAGE:"true"})},HS["bootstrap-test262"]=function(){tE("TEST262","https://github.com/tc39/test262.git",["test","harness"])},HS["bootstrap-typescript"]=function(){tE("TYPESCRIPT","https://github.com/microsoft/TypeScript.git",["tests"])},HS["bootstrap-flow"]=function(){tE("FLOW","https://github.com/facebook/flow.git",["src/parser/test/flow"])},HS["new-version-checklist"]=function(){},HS["new-version"]=function(){HS["new-version-checklist"](),YS("git",["pull","--rebase"]),QS(["release-tool","version","-f","@babel/standalone"])};