Repository navigation
Expand file tree
/
Copy pathMakefile.js
More file actions
36 lines (36 loc) · 268 KB
/
Copy pathMakefile.js
File metadata and controls
36 lines (36 loc) · 268 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// source hash: 09b780a1c9f2e012dacfda8ac200ed4936ff9c45
/* eslint-disable */
// prettier-ignore
import e from"os";import t from"fs";import r from"path";import n from"util";import o from"stream";import i from"events";import s from"child_process";import a from"assert";import c from"buffer";import u from"node:path";import l from"node:module";import{statSync as d,readFileSync as f,appendFileSync as p,writeFileSync as m,createWriteStream as h,createReadStream as g,readdirSync as y,existsSync as b,mkdirSync as v}from"node:fs";import{fileURLToPath as w}from"node:url";import{ChildProcess as S,execFile as E,spawnSync as _,spawn as x}from"node:child_process";import{StringDecoder as O}from"node:string_decoder";import{debuglog as A,stripVTControlCharacters as T,inspect as R,promisify as C,callbackify as k,aborted as P}from"node:util";import I,{platform as D,hrtime as L,execPath as M,execArgv as N}from"node:process";import $ from"node:tty";import{setTimeout as j,scheduler as B,setImmediate as F}from"node:timers/promises";import{constants as H}from"node:os";import{once as G,addAbortListener as U,EventEmitter as W,on as V,setMaxListeners as K}from"node:events";import{serialize as q}from"node:v8";import{Transform as z,getDefaultHighWaterMark as X,Duplex as Y,Writable as Q,Readable as Z,PassThrough as J}from"node:stream";import{Buffer as ee}from"node:buffer";import{finished as te}from"node:stream/promises";var re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oe,ie,se={};function ae(){if(ie)return oe;ie=1;var e=function(e){return e&&e.Math===Math&&e};return oe=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof re&&re)||e("object"==typeof oe&&oe)||function(){return this}()||Function("return this")()}var ce,ue,le,de,fe,pe,me,he,ge={};function ye(){return ue||(ue=1,ce=function(e){try{return!!e()}catch(e){return!0}}),ce}function be(){if(de)return le;de=1;var e=ye();return le=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function ve(){if(pe)return fe;pe=1;var e=ye();return fe=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),fe}function we(){if(he)return me;he=1;var e=ve(),t=Function.prototype.call;return me=e?t.bind(t):function(){return t.apply(t,arguments)},me}var Se,Ee,_e,xe,Oe,Ae,Te,Re,Ce,ke,Pe,Ie,De,Le,Me,Ne,$e,je,Be,Fe,He,Ge,Ue,We,Ve,Ke,qe,ze,Xe,Ye,Qe,Ze,Je,et,tt,rt,nt,ot,it,st,at,ct={};function ut(){return _e?Ee:(_e=1,Ee=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function lt(){if(Oe)return xe;Oe=1;var e=ve(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return xe=e?n:function(e){return function(){return r.apply(e,arguments)}},xe}function dt(){if(Ce)return Re;Ce=1;var e=lt(),t=ye(),r=function(){if(Te)return Ae;Te=1;var e=lt(),t=e({}.toString),r=e("".slice);return Ae=function(e){return r(t(e),8,-1)}}(),n=Object,o=e("".split);return Re=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?o(e,""):n(e)}:n}function ft(){return Pe?ke:(Pe=1,ke=function(e){return null==e})}function pt(){if(De)return Ie;De=1;var e=ft(),t=TypeError;return Ie=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function mt(){if(Me)return Le;Me=1;var e=dt(),t=pt();return Le=function(r){return e(t(r))}}function ht(){if($e)return Ne;$e=1;var e="object"==typeof document&&document.all;return Ne=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function gt(){if(Be)return je;Be=1;var e=ht();return je=function(t){return"object"==typeof t?null!==t:e(t)}}function yt(){if(He)return Fe;He=1;var e=ae(),t=ht();return Fe=function(r,n){return arguments.length<2?(o=e[r],t(o)?o:void 0):e[r]&&e[r][n];var o},Fe}function bt(){if(qe)return Ke;qe=1;var e,t,r=ae(),n=function(){if(Ve)return We;Ve=1;var e=ae().navigator,t=e&&e.userAgent;return We=t?String(t):""}(),o=r.process,i=r.Deno,s=o&&o.versions||i&&i.version,a=s&&s.v8;return a&&(t=(e=a.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),Ke=t}function vt(){if(Xe)return ze;Xe=1;var e=bt(),t=ye(),r=ae().String;return ze=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function wt(){if(Qe)return Ye;Qe=1;var e=vt();return Ye=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function St(){if(Je)return Ze;Je=1;var e=yt(),t=ht(),r=function(){if(Ue)return Ge;Ue=1;var e=lt();return Ge=e({}.isPrototypeOf)}(),n=wt(),o=Object;return Ze=n?function(e){return"symbol"==typeof e}:function(n){var i=e("Symbol");return t(i)&&r(i.prototype,o(n))}}function Et(){if(tt)return et;tt=1;var e=String;return et=function(t){try{return e(t)}catch(e){return"Object"}}}function _t(){if(nt)return rt;nt=1;var e=ht(),t=Et(),r=TypeError;return rt=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function xt(){if(it)return ot;it=1;var e=_t(),t=ft();return ot=function(r,n){var o=r[n];return t(o)?void 0:e(o)}}function Ot(){if(at)return st;at=1;var e=we(),t=ht(),r=gt(),n=TypeError;return st=function(o,i){var s,a;if("string"===i&&t(s=o.toString)&&!r(a=e(s,o)))return a;if(t(s=o.valueOf)&&!r(a=e(s,o)))return a;if("string"!==i&&t(s=o.toString)&&!r(a=e(s,o)))return a;throw new n("Can't convert object to primitive value")}}var At,Tt,Rt,Ct,kt,Pt,It,Dt,Lt,Mt,Nt,$t,jt,Bt,Ft,Ht,Gt,Ut,Wt,Vt,Kt,qt,zt,Xt,Yt={exports:{}};function Qt(){return Tt?At:(Tt=1,At=!1)}function Zt(){if(Ct)return Rt;Ct=1;var e=ae(),t=Object.defineProperty;return Rt=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function Jt(){if(kt)return Yt.exports;kt=1;var e=Qt(),t=ae(),r=Zt(),n="__core-js_shared__",o=Yt.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:e?"pure":"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.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Yt.exports}function er(){if(It)return Pt;It=1;var e=Jt();return Pt=function(t,r){return e[t]||(e[t]=r||{})}}function tr(){if(Lt)return Dt;Lt=1;var e=pt(),t=Object;return Dt=function(r){return t(e(r))}}function rr(){if(Nt)return Mt;Nt=1;var e=lt(),t=tr(),r=e({}.hasOwnProperty);return Mt=Object.hasOwn||function(e,n){return r(t(e),n)}}function nr(){if(jt)return $t;jt=1;var e=lt(),t=0,r=Math.random(),n=e(1.1.toString);return $t=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function or(){if(Ft)return Bt;Ft=1;var e=ae(),t=er(),r=rr(),n=nr(),o=vt(),i=wt(),s=e.Symbol,a=t("wks"),c=i?s.for||s:s&&s.withoutSetter||n;return Bt=function(e){return r(a,e)||(a[e]=o&&r(s,e)?s[e]:c("Symbol."+e)),a[e]}}function ir(){if(Gt)return Ht;Gt=1;var e=we(),t=gt(),r=St(),n=xt(),o=Ot(),i=or(),s=TypeError,a=i("toPrimitive");return Ht=function(i,c){if(!t(i)||r(i))return i;var u,l=n(i,a);if(l){if(void 0===c&&(c="default"),u=e(l,i,c),!t(u)||r(u))return u;throw new s("Can't convert object to primitive value")}return void 0===c&&(c="number"),o(i,c)}}function sr(){if(Wt)return Ut;Wt=1;var e=ir(),t=St();return Ut=function(r){var n=e(r,"string");return t(n)?n:n+""}}function ar(){if(Kt)return Vt;Kt=1;var e=ae(),t=gt(),r=e.document,n=t(r)&&t(r.createElement);return Vt=function(e){return n?r.createElement(e):{}}}function cr(){if(zt)return qt;zt=1;var e=be(),t=ye(),r=ar();return qt=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function ur(){if(Xt)return ge;Xt=1;var e=be(),t=we(),r=function(){if(Se)return ct;Se=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return ct.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,ct}(),n=ut(),o=mt(),i=sr(),s=rr(),a=cr(),c=Object.getOwnPropertyDescriptor;return ge.f=e?c:function(e,u){if(e=o(e),u=i(u),a)try{return c(e,u)}catch(e){}if(s(e,u))return n(!t(r.f,e,u),e[u])},ge}var lr,dr,fr,pr,mr,hr,gr,yr={};function br(){if(dr)return lr;dr=1;var e=be(),t=ye();return lr=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function vr(){if(pr)return fr;pr=1;var e=gt(),t=String,r=TypeError;return fr=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function wr(){if(mr)return yr;mr=1;var e=be(),t=cr(),r=br(),n=vr(),o=sr(),i=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c="enumerable",u="configurable",l="writable";return yr.f=e?r?function(e,t,r){if(n(e),t=o(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&l in r&&!r[l]){var i=a(e,t);i&&i[l]&&(e[t]=r.value,r={configurable:u in r?r[u]:i[u],enumerable:c in r?r[c]:i[c],writable:!1})}return s(e,t,r)}:s:function(e,r,a){if(n(e),r=o(r),n(a),t)try{return s(e,r,a)}catch(e){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(e[r]=a.value),e},yr}function Sr(){if(gr)return hr;gr=1;var e=be(),t=wr(),r=ut();return hr=e?function(e,n,o){return t.f(e,n,r(1,o))}:function(e,t,r){return e[t]=r,e}}var Er,_r,xr,Or,Ar,Tr,Rr,Cr,kr,Pr,Ir,Dr,Lr,Mr,Nr,$r={exports:{}};function jr(){if(Or)return xr;Or=1;var e=lt(),t=ht(),r=Jt(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),xr=r.inspectSource}function Br(){if(Cr)return Rr;Cr=1;var e=er(),t=nr(),r=e("keys");return Rr=function(e){return r[e]||(r[e]=t(e))}}function Fr(){return Pr?kr:(Pr=1,kr={})}function Hr(){if(Dr)return Ir;Dr=1;var e,t,r,n=function(){if(Tr)return Ar;Tr=1;var e=ae(),t=ht(),r=e.WeakMap;return Ar=t(r)&&/native code/.test(String(r))}(),o=ae(),i=gt(),s=Sr(),a=rr(),c=Jt(),u=Br(),l=Fr(),d="Object already initialized",f=o.TypeError,p=o.WeakMap;if(n||c.state){var m=c.state||(c.state=new p);m.get=m.get,m.has=m.has,m.set=m.set,e=function(e,t){if(m.has(e))throw new f(d);return t.facade=e,m.set(e,t),t},t=function(e){return m.get(e)||{}},r=function(e){return m.has(e)}}else{var h=u("state");l[h]=!0,e=function(e,t){if(a(e,h))throw new f(d);return t.facade=e,s(e,h,t),t},t=function(e){return a(e,h)?e[h]:{}},r=function(e){return a(e,h)}}return Ir={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!i(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Gr(){if(Lr)return $r.exports;Lr=1;var e=lt(),t=ye(),r=ht(),n=rr(),o=be(),i=function(){if(_r)return Er;_r=1;var e=be(),t=rr(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),i=o&&"something"===function(){}.name,s=o&&(!e||e&&n(r,"name").configurable);return Er={EXISTS:o,PROPER:i,CONFIGURABLE:s}}().CONFIGURABLE,s=jr(),a=Hr(),c=a.enforce,u=a.get,l=String,d=Object.defineProperty,f=e("".slice),p=e("".replace),m=e([].join),h=o&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=$r.exports=function(e,t,r){"Symbol("===f(l(t),0,7)&&(t="["+p(l(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||i&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),h&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=c(e);return n(s,"source")||(s.source=m(g,"string"==typeof t?t:"")),e};return Function.prototype.toString=y(function(){return r(this)&&u(this).source||s(this)},"toString"),$r.exports}function Ur(){if(Nr)return Mr;Nr=1;var e=ht(),t=wr(),r=Gr(),n=Zt();return Mr=function(o,i,s,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:i;if(e(s)&&r(s,u,a),a.global)c?o[i]=s:n(i,s);else{try{a.unsafe?o[i]&&(c=!0):delete o[i]}catch(e){}c?o[i]=s:t.f(o,i,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return o}}var Wr,Vr,Kr,qr,zr,Xr,Yr,Qr,Zr,Jr,en,tn,rn,nn,on,sn,an,cn={};function un(){if(qr)return Kr;qr=1;var e=function(){if(Vr)return Wr;Vr=1;var e=Math.ceil,t=Math.floor;return Wr=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)},Wr}();return Kr=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function ln(){if(Xr)return zr;Xr=1;var e=un(),t=Math.max,r=Math.min;return zr=function(n,o){var i=e(n);return i<0?t(i+o,0):r(i,o)}}function dn(){if(Qr)return Yr;Qr=1;var e=un(),t=Math.min;return Yr=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function fn(){if(Jr)return Zr;Jr=1;var e=dn();return Zr=function(t){return e(t.length)}}function pn(){if(nn)return rn;nn=1;var e=lt(),t=rr(),r=mt(),n=function(){if(tn)return en;tn=1;var e=mt(),t=ln(),r=fn(),n=function(n){return function(o,i,s){var a=e(o),c=r(a);if(0===c)return!n&&-1;var u,l=t(s,c);if(n&&i!=i){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((n||l in a)&&a[l]===i)return n||l||0;return!n&&-1}};return en={includes:n(!0),indexOf:n(!1)}}().indexOf,o=Fr(),i=e([].push);return rn=function(e,s){var a,c=r(e),u=0,l=[];for(a in c)!t(o,a)&&t(c,a)&&i(l,a);for(;s.length>u;)t(c,a=s[u++])&&(~n(l,a)||i(l,a));return l},rn}function mn(){return sn?on:(sn=1,on=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var hn,gn,yn,bn,vn,wn,Sn,En,_n,xn,On,An={};function Tn(){if(yn)return gn;yn=1;var e=yt(),t=lt(),r=function(){if(an)return cn;an=1;var e=pn(),t=mn().concat("length","prototype");return cn.f=Object.getOwnPropertyNames||function(r){return e(r,t)},cn}(),n=(hn||(hn=1,An.f=Object.getOwnPropertySymbols),An),o=vr(),i=t([].concat);return gn=e("Reflect","ownKeys")||function(e){var t=r.f(o(e)),s=n.f;return s?i(t,s(e)):t}}function Rn(){if(vn)return bn;vn=1;var e=rr(),t=Tn(),r=ur(),n=wr();return bn=function(o,i,s){for(var a=t(i),c=n.f,u=r.f,l=0;l<a.length;l++){var d=a[l];e(o,d)||s&&e(s,d)||c(o,d,u(i,d))}},bn}function Cn(){if(_n)return En;_n=1;var e=ae(),t=ur().f,r=Sr(),n=Ur(),o=Zt(),i=Rn(),s=function(){if(Sn)return wn;Sn=1;var e=ye(),t=ht(),r=/#|\.prototype\./,n=function(r,n){var c=i[o(r)];return c===a||c!==s&&(t(n)?e(n):!!n)},o=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},i=n.data={},s=n.NATIVE="N",a=n.POLYFILL="P";return wn=n}();return En=function(a,c){var u,l,d,f,p,m=a.target,h=a.global,g=a.stat;if(u=h?e:g?e[m]||o(m,{}):e[m]&&e[m].prototype)for(l in c){if(f=c[l],d=a.dontCallGetSet?(p=t(u,l))&&p.value:u[l],!s(h?l:m+(g?".":"#")+l,a.forced)&&void 0!==d){if(typeof f==typeof d)continue;i(f,d)}(a.sham||d&&d.sham)&&r(f,"sham",!0),n(u,l,f,a)}},En}function kn(){return On?xn:(On=1,xn=function(e){return{iterator:e,next:e.next,done:!1}})}var Pn,In,Dn,Ln,Mn,Nn,$n,jn,Bn,Fn,Hn,Gn,Un,Wn,Vn,Kn,qn,zn,Xn,Yn,Qn,Zn,Jn,eo,to,ro,no,oo,io,so,ao={};function co(){if(In)return Pn;In=1;var e=pn(),t=mn();return Pn=Object.keys||function(r){return e(r,t)}}function uo(){if(Mn)return Ln;Mn=1;var e=yt();return Ln=e("document","documentElement")}function lo(){if($n)return Nn;$n=1;var e,t=vr(),r=function(){if(Dn)return ao;Dn=1;var e=be(),t=br(),r=wr(),n=vr(),o=mt(),i=co();return ao.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var s,a=o(t),c=i(t),u=c.length,l=0;u>l;)r.f(e,s=c[l++],a[s]);return e},ao}(),n=mn(),o=Fr(),i=uo(),s=ar(),a=Br(),c="prototype",u="script",l=a("IE_PROTO"),d=function(){},f=function(e){return"<"+u+">"+e+"</"+u+">"},p=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,o;m="undefined"!=typeof document?document.domain&&e?p(e):(r=s("iframe"),o="java"+u+":",r.style.display="none",i.appendChild(r),r.src=String(o),(t=r.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):p(e);for(var a=n.length;a--;)delete m[c][n[a]];return m()};return o[l]=!0,Nn=Object.create||function(e,n){var o;return null!==e?(d[c]=t(e),o=new d,d[c]=null,o[l]=e):o=m(),void 0===n?o:r.f(o,n)}}function fo(){if(Bn)return jn;Bn=1;var e=Ur();return jn=function(t,r,n){for(var o in r)e(t,o,r[o],n);return t},jn}function po(){if(Un)return Gn;Un=1;var e=rr(),t=ht(),r=tr(),n=Br(),o=function(){if(Hn)return Fn;Hn=1;var e=ye();return Fn=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),i=n("IE_PROTO"),s=Object,a=s.prototype;return Gn=o?s.getPrototypeOf:function(n){var o=r(n);if(e(o,i))return o[i];var c=o.constructor;return t(c)&&o instanceof c?c.prototype:o instanceof s?a:null}}function mo(){return qn?Kn:(qn=1,Kn=function(e,t){return{value:e,done:t}})}function ho(){if(Xn)return zn;Xn=1;var e=we(),t=vr(),r=xt();return zn=function(n,o,i){var s,a;t(n);try{if(!(s=r(n,"return"))){if("throw"===o)throw i;return i}s=e(s,n)}catch(e){a=!0,s=e}if("throw"===o)throw i;if(a)throw s;return t(s),i},zn}function go(){if(Qn)return Yn;Qn=1;var e=ho();return Yn=function(t,r,n){for(var o=t.length-1;o>=0;o--)if(void 0!==t[o])try{n=e(t[o].iterator,r,n)}catch(e){r="throw",n=e}if("throw"===r)throw n;return n},Yn}function yo(){if(Jn)return Zn;Jn=1;var e=we(),t=lo(),r=Sr(),n=fo(),o=or(),i=Hr(),s=xt(),a=function(){if(Vn)return Wn;Vn=1;var e,t,r,n=ye(),o=ht(),i=gt(),s=lo(),a=po(),c=Ur(),u=or(),l=Qt(),d=u("iterator"),f=!1;[].keys&&("next"in(r=[].keys())?(t=a(a(r)))!==Object.prototype&&(e=t):f=!0);var p=!i(e)||n(function(){var t={};return e[d].call(t)!==t});return p?e={}:l&&(e=s(e)),o(e[d])||c(e,d,function(){return this}),Wn={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}().IteratorPrototype,c=mo(),u=ho(),l=go(),d=o("toStringTag"),f="IteratorHelper",p="WrapForValidIterator",m="normal",h="throw",g=i.set,y=function(r){var o=i.getterFor(r?p:f);return n(t(a),{next:function(){var e=o(this);if(r)return e.nextHandler();if(e.done)return c(void 0,!0);try{var t=e.nextHandler();return e.returnHandlerResult?t:c(t,e.done)}catch(t){throw e.done=!0,t}},return:function(){var t=o(this),n=t.iterator,i=t.done;if(t.done=!0,r){var a=s(n,"return");return a?e(a,n):c(void 0,!0)}if(i)return c(void 0,!0);if(t.inner)try{u(t.inner.iterator,m)}catch(e){return u(n,h,e)}if(t.openIters)try{l(t.openIters,m)}catch(e){if(n)return u(n,h,e);throw e}return n&&u(n,m),c(void 0,!0)}})},b=y(!0),v=y(!1);return r(v,d,"Iterator Helper"),Zn=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?p:f,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,g(this,o)};return n.prototype=t?b:v,n}}function bo(){if(to)return eo;to=1;var e=vr(),t=ho();return eo=function(r,n,o,i){try{return i?n(e(o)[0],o[1]):n(o)}catch(e){t(r,"throw",e)}},eo}function vo(){return no?ro:(no=1,ro=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}})}function wo(){if(io)return oo;io=1;var e=ae();return oo=function(t,r){var n=e.Iterator,o=n&&n.prototype,i=o&&o[t],s=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(e){e instanceof r||(s=!1)}if(!s)return i},oo}!function(){if(so)return se;so=1;var e=Cn(),t=we(),r=_t(),n=vr(),o=kn(),i=yo(),s=bo(),a=Qt(),c=ho(),u=vo(),l=wo(),d=!a&&!u("filter",function(){}),f=!a&&!d&&l("filter",TypeError),p=a||d||f,m=i(function(){for(var e,r,o=this.iterator,i=this.predicate,a=this.next;;){if(e=n(t(a,o)),this.done=!!e.done)return;if(r=e.value,s(o,i,[r,this.counter++],!0))return r}});e({target:"Iterator",proto:!0,real:!0,forced:p},{filter:function(e){n(this);try{r(e)}catch(e){c(this,"throw",e)}return f?t(f,this,e):new m(o(this),{predicate:e})}})}();var So,Eo={},_o={},xo={exports:{}},Oo={},Ao={},To={},Ro={};function Co(){if(So)return Ro;return So=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.splitWhen=Ro.flatten=void 0,Ro.flatten=function(e){return e.reduce((e,t)=>[].concat(e,t),[])},Ro.splitWhen=function(e,t){const r=[[]];let n=0;for(const o of e)t(o)?(n++,r[n]=[]):r[n].push(o);return r},Ro}var ko,Po={};function Io(){if(ko)return Po;return ko=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.isEnoentCodeError=void 0,Po.isEnoentCodeError=function(e){return"ENOENT"===e.code},Po}var Do,Lo={};var Mo,No={};function $o(){if(Mo)return No;Mo=1,Object.defineProperty(No,"__esModule",{value:!0}),No.convertPosixPathToPattern=No.convertWindowsPathToPattern=No.convertPathToPattern=No.escapePosixPath=No.escapeWindowsPath=No.escape=No.removeLeadingDotSegment=No.makeAbsolute=No.unixify=void 0;const t=r,n="win32"===e.platform(),o=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,i=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,s=/^\\\\([.?])/,a=/\\(?![!()+@[\]{}])/g;function c(e){return e.replace(i,"\\$2")}function u(e){return e.replace(o,"\\$2")}function l(e){return c(e).replace(s,"//$1").replace(a,"/")}function d(e){return u(e)}return No.unixify=function(e){return e.replace(/\\/g,"/")},No.makeAbsolute=function(e,r){return t.resolve(e,r)},No.removeLeadingDotSegment=function(e){if("."===e.charAt(0)){const t=e.charAt(1);if("/"===t||"\\"===t)return e.slice(2)}return e},No.escape=n?c:u,No.escapeWindowsPath=c,No.escapePosixPath=u,No.convertPathToPattern=n?l:d,No.convertWindowsPathToPattern=l,No.convertPosixPathToPattern=d,No}var jo,Bo,Fo,Ho,Go,Uo,Wo={};
/*!
* is-extglob <https://github.com/jonschlinkert/is-extglob>
*
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.
*/function Vo(){return Bo?jo:(Bo=1,jo=function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1})}
/*!
* is-glob <https://github.com/jonschlinkert/is-glob>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function Ko(){if(Ho)return Fo;Ho=1;var e=Vo(),t={"{":"}","(":")","[":"]"},r=function(e){if("!"===e[0])return!0;for(var r=0,n=-2,o=-2,i=-2,s=-2,a=-2;r<e.length;){if("*"===e[r])return!0;if("?"===e[r+1]&&/[\].+)]/.test(e[r]))return!0;if(-1!==o&&"["===e[r]&&"]"!==e[r+1]&&(o<r&&(o=e.indexOf("]",r)),o>r)){if(-1===a||a>o)return!0;if(-1===(a=e.indexOf("\\",r))||a>o)return!0}if(-1!==i&&"{"===e[r]&&"}"!==e[r+1]&&(i=e.indexOf("}",r))>r&&(-1===(a=e.indexOf("\\",r))||a>i))return!0;if(-1!==s&&"("===e[r]&&"?"===e[r+1]&&/[:!=]/.test(e[r+2])&&")"!==e[r+3]&&(s=e.indexOf(")",r))>r&&(-1===(a=e.indexOf("\\",r))||a>s))return!0;if(-1!==n&&"("===e[r]&&"|"!==e[r+1]&&(n<r&&(n=e.indexOf("|",r)),-1!==n&&")"!==e[n+1]&&(s=e.indexOf(")",n))>n&&(-1===(a=e.indexOf("\\",n))||a>s)))return!0;if("\\"===e[r]){var c=e[r+1];r+=2;var u=t[c];if(u){var l=e.indexOf(u,r);-1!==l&&(r=l+1)}if("!"===e[r])return!0}else r++}return!1},n=function(e){if("!"===e[0])return!0;for(var r=0;r<e.length;){if(/[*?{}()[\]]/.test(e[r]))return!0;if("\\"===e[r]){var n=e[r+1];r+=2;var o=t[n];if(o){var i=e.indexOf(o,r);-1!==i&&(r=i+1)}if("!"===e[r])return!0}else r++}return!1};return Fo=function(t,o){if("string"!=typeof t||""===t)return!1;if(e(t))return!0;var i=r;return o&&!1===o.strict&&(i=n),i(t)}}function qo(){if(Uo)return Go;Uo=1;var t=Ko(),n=r.posix.dirname,o="win32"===e.platform(),i=/\\/g,s=/[\{\[].*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;return Go=function(e,r){Object.assign({flipBackslashes:!0},r).flipBackslashes&&o&&e.indexOf("/")<0&&(e=e.replace(i,"/")),s.test(e)&&(e+="/"),e+="a";do{e=n(e)}while(t(e)||a.test(e));return e.replace(c,"$1")}}var zo,Xo,Yo,Qo,Zo,Jo,ei,ti,ri,ni,oi,ii,si,ai,ci,ui,li,di,fi,pi={};function mi(){return zo||(zo=1,(e=pi).isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),e.find=(e,t)=>e.nodes.find(e=>e.type===t),e.exceedsLimit=(t,r,n=1,o)=>!1!==o&&!(!e.isInteger(t)||!e.isInteger(r))&&(Number(r)-Number(t))/Number(n)>=o,e.escapeNode=(e,t=0,r)=>{const n=e.nodes[t];n&&(r&&n.type===r||"open"===n.type||"close"===n.type)&&!0!==n.escaped&&(n.value="\\"+n.value,n.escaped=!0)},e.encloseBrace=e=>!("brace"!==e.type||e.commas>>0+e.ranges|0||(e.invalid=!0,0)),e.isInvalidBrace=e=>!("brace"!==e.type||!0!==e.invalid&&!e.dollar&&(e.commas>>0+e.ranges|0&&!0===e.open&&!0===e.close||(e.invalid=!0,0))),e.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,e.reduce=e=>e.reduce((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e),[]),e.flatten=(...e)=>{const t=[],r=e=>{for(let n=0;n<e.length;n++){const o=e[n];Array.isArray(o)?r(o):void 0!==o&&t.push(o)}return t};return r(e),t}),pi;var e}function hi(){if(Yo)return Xo;Yo=1;const e=mi();return Xo=(t,r={})=>{const n=(t,o={})=>{const i=r.escapeInvalid&&e.isInvalidBrace(o),s=!0===t.invalid&&!0===r.escapeInvalid;let a="";if(t.value)return(i||s)&&e.isOpenOrClose(t)?"\\"+t.value:t.value;if(t.value)return t.value;if(t.nodes)for(const e of t.nodes)a+=n(e);return a};return n(t)},Xo}
/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/function gi(){return Zo?Qo:(Zo=1,Qo=function(e){return"number"==typeof e?e-e===0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))})}
/*!
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/function yi(){if(ei)return Jo;ei=1;const e=gi(),t=(r,i,s)=>{if(!1===e(r))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===i||r===i)return String(r);if(!1===e(i))throw new TypeError("toRegexRange: expected the second argument to be a number.");let a={relaxZeros:!0,...s};"boolean"==typeof a.strictZeros&&(a.relaxZeros=!1===a.strictZeros);let c=r+":"+i+"="+String(a.relaxZeros)+String(a.shorthand)+String(a.capture)+String(a.wrap);if(t.cache.hasOwnProperty(c))return t.cache[c].result;let u=Math.min(r,i),l=Math.max(r,i);if(1===Math.abs(u-l)){let e=r+"|"+i;return a.capture?`(${e})`:!1===a.wrap?e:`(?:${e})`}let f=d(r)||d(i),p={min:r,max:i,a:u,b:l},m=[],h=[];if(f&&(p.isPadded=f,p.maxLen=String(p.max).length),u<0){h=n(l<0?Math.abs(l):1,Math.abs(u),p,a),u=p.a=0}return l>=0&&(m=n(u,l,p,a)),p.negatives=h,p.positives=m,p.result=function(e,t){let r=o(e,t,"-",!1)||[],n=o(t,e,"",!1)||[],i=o(e,t,"-?",!0)||[];return r.concat(i).concat(n).join("|")}(h,m),!0===a.capture?p.result=`(${p.result})`:!1!==a.wrap&&m.length+h.length>1&&(p.result=`(?:${p.result})`),t.cache[c]=p,p.result};function r(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=function(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}(e,t),o=n.length,i="",s=0;for(let e=0;e<o;e++){let[t,r]=n[e];t===r?i+=t:"0"!==t||"9"!==r?i+=l(t,r):s++}return s&&(i+=!0===r.shorthand?"\\d":"[0-9]"),{pattern:i,count:[s],digits:o}}function n(e,t,n,o){let s,l=function(e,t){let r=1,n=1,o=a(e,r),s=new Set([t]);for(;e<=o&&o<=t;)s.add(o),r+=1,o=a(e,r);for(o=c(t+1,n)-1;e<o&&o<=t;)s.add(o),n+=1,o=c(t+1,n)-1;return s=[...s],s.sort(i),s}(e,t),d=[],p=e;for(let e=0;e<l.length;e++){let t=l[e],i=r(String(p),String(t),o),a="";n.isPadded||!s||s.pattern!==i.pattern?(n.isPadded&&(a=f(t,n,o)),i.string=a+i.pattern+u(i.count),d.push(i),p=t+1,s=i):(s.count.length>1&&s.count.pop(),s.count.push(i.count[0]),s.string=s.pattern+u(s.count),p=t+1)}return d}function o(e,t,r,n,o){let i=[];for(let o of e){let{string:e}=o;n||s(t,"string",e)||i.push(r+e),n&&s(t,"string",e)&&i.push(r+e)}return i}function i(e,t){return e>t?1:t>e?-1:0}function s(e,t,r){return e.some(e=>e[t]===r)}function a(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function c(e,t){return e-e%Math.pow(10,t)}function u(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function l(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function d(e){return/^-?(0+)\d/.test(e)}function f(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),o=!1!==r.relaxZeros;switch(n){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${n}}`:`0{${n}}`}}return t.cache={},t.clearCache=()=>t.cache={},Jo=t}
/*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/function bi(){if(ri)return ti;ri=1;const e=n,t=yi(),r=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),o=e=>"number"==typeof e||"string"==typeof e&&""!==e,i=e=>Number.isInteger(+e),s=e=>{let t=`${e}`,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},a=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},c=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},u=(e,r,n,o)=>{if(n)return t(e,r,{wrap:!1,...o});let i=String.fromCharCode(e);return e===r?i:`[${i}-${String.fromCharCode(r)}]`},l=(e,r,n)=>{if(Array.isArray(e)){let t=!0===n.wrap,r=n.capture?"":"?:";return t?`(${r}${e.join("|")})`:e.join("|")}return t(e,r,n)},d=(...t)=>new RangeError("Invalid range arguments: "+e.inspect(...t)),f=(e,t,r)=>{if(!0===r.strictRanges)throw d([e,t]);return[]},p=(e,t,r=1,n={})=>{let o=Number(e),i=Number(t);if(!Number.isInteger(o)||!Number.isInteger(i)){if(!0===n.strictRanges)throw d([e,t]);return[]}0===o&&(o=0),0===i&&(i=0);let f=o>i,p=String(e),m=String(t),h=String(r);r=Math.max(Math.abs(r),1);let g=s(p)||s(m)||s(h),y=g?Math.max(p.length,m.length,h.length):0,b=!1===g&&!1===((e,t,r)=>"string"==typeof e||"string"==typeof t||!0===r.stringify)(e,t,n),v=n.transform||(e=>t=>!0===e?Number(t):String(t))(b);if(n.toRegex&&1===r)return u(c(e,y),c(t,y),!0,n);let w={negatives:[],positives:[]},S=e=>w[e<0?"negatives":"positives"].push(Math.abs(e)),E=[],_=0;for(;f?o>=i:o<=i;)!0===n.toRegex&&r>1?S(o):E.push(a(v(o,_),y,b)),o=f?o-r:o+r,_++;return!0===n.toRegex?r>1?((e,t,r)=>{e.negatives.sort((e,t)=>e<t?-1:e>t?1:0),e.positives.sort((e,t)=>e<t?-1:e>t?1:0);let n,o=t.capture?"":"?:",i="",s="";return e.positives.length&&(i=e.positives.map(e=>c(String(e),r)).join("|")),e.negatives.length&&(s=`-(${o}${e.negatives.map(e=>c(String(e),r)).join("|")})`),n=i&&s?`${i}|${s}`:i||s,t.wrap?`(${o}${n})`:n})(w,n,y):l(E,null,{wrap:!1,...n}):E},m=(e,t,n,s={})=>{if(null==t&&o(e))return[e];if(!o(e)||!o(t))return f(e,t,s);if("function"==typeof n)return m(e,t,1,{transform:n});if(r(n))return m(e,t,0,n);let a={...s};return!0===a.capture&&(a.wrap=!0),n=n||a.step||1,i(n)?i(e)&&i(t)?p(e,t,n,a):((e,t,r=1,n={})=>{if(!i(e)&&e.length>1||!i(t)&&t.length>1)return f(e,t,n);let o=n.transform||(e=>String.fromCharCode(e)),s=`${e}`.charCodeAt(0),a=`${t}`.charCodeAt(0),c=s>a,d=Math.min(s,a),p=Math.max(s,a);if(n.toRegex&&1===r)return u(d,p,!1,n);let m=[],h=0;for(;c?s>=a:s<=a;)m.push(o(s,h)),s=c?s-r:s+r,h++;return!0===n.toRegex?l(m,null,{wrap:!1,options:n}):m})(e,t,Math.max(Math.abs(n),1),a):null==n||r(n)?m(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(n,a)};return ti=m}function vi(){if(li)return ui;li=1;const e=hi(),{MAX_LENGTH:t,CHAR_BACKSLASH:r,CHAR_BACKTICK:n,CHAR_COMMA:o,CHAR_DOT:i,CHAR_LEFT_PARENTHESES:s,CHAR_RIGHT_PARENTHESES:a,CHAR_LEFT_CURLY_BRACE:c,CHAR_RIGHT_CURLY_BRACE:u,CHAR_LEFT_SQUARE_BRACKET:l,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:f,CHAR_SINGLE_QUOTE:p,CHAR_NO_BREAK_SPACE:m,CHAR_ZERO_WIDTH_NOBREAK_SPACE:h}=ci?ai:(ci=1,ai={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"});return ui=(g,y={})=>{if("string"!=typeof g)throw new TypeError("Expected a string");const b=y||{},v="number"==typeof b.maxLength?Math.min(t,b.maxLength):t;if(g.length>v)throw new SyntaxError(`Input length (${g.length}), exceeds max characters (${v})`);const w={type:"root",input:g,nodes:[]},S=[w];let E=w,_=w,x=0;const O=g.length;let A,T=0,R=0;const C=()=>g[T++],k=e=>{if("text"===e.type&&"dot"===_.type&&(_.type="text"),!_||"text"!==_.type||"text"!==e.type)return E.nodes.push(e),e.parent=E,e.prev=_,_=e,e;_.value+=e.value};for(k({type:"bos"});T<O;)if(E=S[S.length-1],A=C(),A!==h&&A!==m)if(A!==r)if(A!==d){if(A===l){let e;for(x++;T<O&&(e=C());)if(A+=e,e!==l)if(e!==r){if(e===d&&(x--,0===x))break}else A+=C();else x++;k({type:"text",value:A});continue}if(A!==s)if(A!==a){if(A===f||A===p||A===n){const e=A;let t;for(!0!==y.keepQuotes&&(A="");T<O&&(t=C());)if(t!==r){if(t===e){!0===y.keepQuotes&&(A+=t);break}A+=t}else A+=t+C();k({type:"text",value:A});continue}if(A===c){R++;const e=_.value&&"$"===_.value.slice(-1)||!0===E.dollar;E=k({type:"brace",open:!0,close:!1,dollar:e,depth:R,commas:0,ranges:0,nodes:[]}),S.push(E),k({type:"open",value:A});continue}if(A===u){if("brace"!==E.type){k({type:"text",value:A});continue}const e="close";E=S.pop(),E.close=!0,k({type:e,value:A}),R--,E=S[S.length-1];continue}if(A===o&&R>0){if(E.ranges>0){E.ranges=0;const t=E.nodes.shift();E.nodes=[t,{type:"text",value:e(E)}]}k({type:"comma",value:A}),E.commas++}else{if(A===i&&R>0&&0===E.commas){const e=E.nodes;if(0===R||0===e.length){k({type:"text",value:A});continue}if("dot"===_.type){if(E.range=[],_.value+=A,_.type="range",3!==E.nodes.length&&5!==E.nodes.length){E.invalid=!0,E.ranges=0,_.type="text";continue}E.ranges++,E.args=[];continue}if("range"===_.type){e.pop();const t=e[e.length-1];t.value+=_.value+A,_=t,E.ranges--;continue}k({type:"dot",value:A});continue}k({type:"text",value:A})}}else{if("paren"!==E.type){k({type:"text",value:A});continue}E=S.pop(),k({type:"text",value:A}),E=S[S.length-1]}else E=k({type:"paren",nodes:[]}),S.push(E),k({type:"text",value:A})}else k({type:"text",value:"\\"+A});else k({type:"text",value:(y.keepEscaping?A:"")+C()});do{if(E=S.pop(),"root"!==E.type){E.nodes.forEach(e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)});const e=S[S.length-1],t=e.nodes.indexOf(E);e.nodes.splice(t,1,...E.nodes)}}while(S.length>0);return k({type:"eos"}),w},ui}function wi(){if(fi)return di;fi=1;const e=hi(),t=function(){if(oi)return ni;oi=1;const e=bi(),t=mi();return ni=(r,n={})=>{const o=(r,i={})=>{const s=t.isInvalidBrace(i),a=!0===r.invalid&&!0===n.escapeInvalid,c=!0===s||!0===a,u=!0===n.escapeInvalid?"\\":"";let l="";if(!0===r.isOpen)return u+r.value;if(!0===r.isClose)return console.log("node.isClose",u,r.value),u+r.value;if("open"===r.type)return c?u+r.value:"(";if("close"===r.type)return c?u+r.value:")";if("comma"===r.type)return"comma"===r.prev.type?"":c?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){const o=t.reduce(r.nodes),i=e(...o,{...n,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==i.length)return o.length>1&&i.length>1?`(${i})`:i}if(r.nodes)for(const e of r.nodes)l+=o(e,r);return l};return o(r)},ni}(),r=function(){if(si)return ii;si=1;const e=bi(),t=hi(),r=mi(),n=(e="",t="",o=!1)=>{const i=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return o?r.flatten(t).map(e=>`{${e}}`):t;for(const r of e)if(Array.isArray(r))for(const e of r)i.push(n(e,t,o));else for(let e of t)!0===o&&"string"==typeof e&&(e=`{${e}}`),i.push(Array.isArray(e)?n(r,e,o):r+e);return r.flatten(i)};return ii=(o,i={})=>{const s=void 0===i.rangeLimit?1e3:i.rangeLimit,a=(o,c={})=>{o.queue=[];let u=c,l=c.queue;for(;"brace"!==u.type&&"root"!==u.type&&u.parent;)u=u.parent,l=u.queue;if(o.invalid||o.dollar)return void l.push(n(l.pop(),t(o,i)));if("brace"===o.type&&!0!==o.invalid&&2===o.nodes.length)return void l.push(n(l.pop(),["{}"]));if(o.nodes&&o.ranges>0){const a=r.reduce(o.nodes);if(r.exceedsLimit(...a,i.step,s))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=e(...a,i);return 0===c.length&&(c=t(o,i)),l.push(n(l.pop(),c)),void(o.nodes=[])}const d=r.encloseBrace(o);let f=o.queue,p=o;for(;"brace"!==p.type&&"root"!==p.type&&p.parent;)p=p.parent,f=p.queue;for(let e=0;e<o.nodes.length;e++){const t=o.nodes[e];"comma"!==t.type||"brace"!==o.type?"close"!==t.type?t.value&&"open"!==t.type?f.push(n(f.pop(),t.value)):t.nodes&&a(t,o):l.push(n(l.pop(),f,d)):(1===e&&f.push(""),f.push(""))}return f};return r.flatten(a(o))},ii}(),n=vi(),o=(e,t={})=>{let r=[];if(Array.isArray(e))for(const n of e){const e=o.create(n,t);Array.isArray(e)?r.push(...e):r.push(e)}else r=[].concat(o.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(r=[...new Set(r)]),r};return o.parse=(e,t={})=>n(e,t),o.stringify=(t,r={})=>e("string"==typeof t?o.parse(t,r):t,r),o.compile=(e,r={})=>("string"==typeof e&&(e=o.parse(e,r)),t(e,r)),o.expand=(e,t={})=>{"string"==typeof e&&(e=o.parse(e,t));let n=r(e,t);return!0===t.noempty&&(n=n.filter(Boolean)),!0===t.nodupes&&(n=[...new Set(n)]),n},o.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?o.compile(e,t):o.expand(e,t),di=o}var Si,Ei,_i,xi,Oi,Ai,Ti,Ri,Ci,ki,Pi,Ii,Di,Li,Mi={};function Ni(){if(Ei)return Si;Ei=1;const e=r,t="\\\\/",n=`[^${t}]`,o="\\.",i="\\/",s="[^/]",a=`(?:${i}|$)`,c=`(?:^|${i})`,u=`${o}{1,2}${a}`,l={DOT_LITERAL:o,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:i,ONE_CHAR:"(?=.)",QMARK:s,END_ANCHOR:a,DOTS_SLASH:u,NO_DOT:`(?!${o})`,NO_DOTS:`(?!${c}${u})`,NO_DOT_SLASH:`(?!${o}{0,1}${a})`,NO_DOTS_SLASH:`(?!${u})`,QMARK_NO_DOT:`[^.${i}]`,STAR:`${s}*?`,START_ANCHOR:c},d={...l,SLASH_LITERAL:`[${t}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${o}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${t}])${o}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`};return Si={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:e.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?d:l}}function $i(){return _i||(_i=1,function(e){const t=r,n="win32"===process.platform,{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:a}=Ni();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>s.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(a,"\\$1"),e.toPosixSlashes=e=>e.replace(o,"/"),e.removeBackslashes=e=>e.replace(i,e=>"\\"===e?"":e),e.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},e.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===n||"\\"===t.sep,e.escapeLast=(t,r,n)=>{const o=t.lastIndexOf(r,n);return-1===o?t:"\\"===t[o-1]?e.escapeLast(t,r,o-1):`${t.slice(0,o)}\\${t.slice(o)}`},e.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},e.wrapOutput=(e,t={},r={})=>{let n=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n}}(Mi)),Mi}function ji(){if(Ti)return Ai;Ti=1;const e=Ni(),t=$i(),{MAX_LENGTH:r,POSIX_REGEX_SOURCE:n,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:i,REPLACEMENTS:s}=e,a=(e,r)=>{if("function"==typeof r.expandRange)return r.expandRange(...e,r);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(r){return e.map(e=>t.escapeRegex(e)).join("..")}return n},c=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,u=e=>{const t=[];let r=0,n=0,o=0,i="",s=!1;for(const a of e)if(!0!==s)if("\\"!==a)if('"'!==a){if(0===o)if("["===a)r++;else if("]"===a&&r>0)r--;else if(0===r)if("("===a)n++;else if(")"===a&&n>0)n--;else if("|"===a&&0===n){t.push(i),i="";continue}i+=a}else o=1===o?0:1,i+=a;else i+=a,s=!0;else i+=a,s=!1;return t.push(i),t},l=e=>{let t=e.trim(),r=!0;for(;!0===r;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if((e=>{let t=!1;for(const r of e)if(!0!==t)if("\\"!==r){if(/[?*+@!()[\]{}]/.test(r))return!1}else t=!0;else t=!1;return!0})(t))return t.replace(/\\(.)/g,"$1")},d=(e,t=!0)=>{if("+"!==e[0]&&"*"!==e[0]||"("!==e[1])return;let r=0,n=0,o=0,i=!1;for(let s=1;s<e.length;s++){const a=e[s];if(!0!==i)if("\\"!==a)if('"'!==a){if(1!==o)if("["!==a){if("]"===a&&r>0)r--;else if(!(r>0))if("("!==a){if(")"===a&&(n--,0===n)){if(!0===t&&s!==e.length-1)return;return{type:e[0],body:e.slice(2,s),end:s}}}else n++}else r++}else o=1===o?0:1;else i=!0;else i=!1}},f=e=>{let r=0;const n=[];for(;r<e.length;){const t=d(e.slice(r),!1);if(!t||"*"!==t.type)return;const o=u(t.body).map(e=>e.trim());if(1!==o.length)return;const i=l(o[0]);if(!i||1!==i.length)return;n.push(i),r+=t.end+1}if(n.length<1)return;return`${1===n.length?t.escapeRegex(n[0]):`[${n.map(e=>t.escapeRegex(e)).join("")}]`}*`},p=e=>{let t=0,r=e.trim(),n=d(r);for(;n;)t++,r=n.body.trim(),n=d(r);return t},m=(t,r)=>{if(!1===r.maxExtglobRecursion)return{risky:!1};const n="number"==typeof r.maxExtglobRecursion?r.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,o=u(t).map(e=>e.trim());if(o.length>1&&(o.some(e=>""===e)||o.some(e=>/^[*?]+$/.test(e))||(e=>{const t=e.map(l).filter(Boolean);for(let e=0;e<t.length;e++)for(let r=e+1;r<t.length;r++){const n=t[e],o=t[r],i=n[0];if(i&&n===i.repeat(n.length)&&o===i.repeat(o.length)&&(n===o||n.startsWith(o)||o.startsWith(n)))return!0}return!1})(o)))return{risky:!0};for(const e of o){const t=f(e);if(t)return{risky:!0,safeOutput:t};if(p(e)>n)return{risky:!0}}return{risky:!1}},h=(u,l)=>{if("string"!=typeof u)throw new TypeError("Expected a string");u=s[u]||u;const d={...l},f="number"==typeof d.maxLength?Math.min(r,d.maxLength):r;let p=u.length;if(p>f)throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`);const g={type:"bos",value:"",output:d.prepend||""},y=[g],b=d.capture?"":"?:",v=t.isWindows(l),w=e.globChars(v),S=e.extglobChars(w),{DOT_LITERAL:E,PLUS_LITERAL:_,SLASH_LITERAL:x,ONE_CHAR:O,DOTS_SLASH:A,NO_DOT:T,NO_DOT_SLASH:R,NO_DOTS_SLASH:C,QMARK:k,QMARK_NO_DOT:P,STAR:I,START_ANCHOR:D}=w,L=e=>`(${b}(?:(?!${D}${e.dot?A:E}).)*?)`,M=d.dot?"":T,N=d.dot?k:P;let $=!0===d.bash?L(d):I;d.capture&&($=`(${$})`),"boolean"==typeof d.noext&&(d.noextglob=d.noext);const j={input:u,index:-1,start:0,dot:!0===d.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:y};u=t.removePrefix(u,j),p=u.length;const B=[],F=[],H=[];let G,U=g;const W=()=>j.index===p-1,V=j.peek=(e=1)=>u[j.index+e],K=j.advance=()=>u[++j.index]||"",q=()=>u.slice(j.index+1),z=(e="",t=0)=>{j.consumed+=e,j.index+=t},X=e=>{j.output+=null!=e.output?e.output:e.value,z(e.value)},Y=()=>{let e=1;for(;"!"===V()&&("("!==V(2)||"?"===V(3));)K(),j.start++,e++;return e%2!=0&&(j.negated=!0,j.start++,!0)},Q=e=>{j[e]++,H.push(e)},Z=e=>{j[e]--,H.pop()},J=e=>{if("globstar"===U.type){const t=j.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||B.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(j.output=j.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=$,j.output+=U.output)}if(B.length&&"paren"!==e.type&&(B[B.length-1].inner+=e.value),(e.value||e.output)&&X(e),U&&"text"===U.type&&"text"===e.type)return U.value+=e.value,void(U.output=(U.output||"")+e.value);e.prev=U,y.push(e),U=e},ee=(e,t)=>{const r={...S[t],conditions:1,inner:""};r.prev=U,r.parens=j.parens,r.output=j.output,r.startIndex=j.index,r.tokensIndex=y.length;const n=(d.capture?"(":"")+r.open;Q("parens"),J({type:e,value:t,output:j.output?"":O}),J({type:"paren",extglob:!0,value:K(),output:n}),B.push(r)},te=e=>{const r=u.slice(e.startIndex,j.index+1),n=u.slice(e.startIndex+2,j.index),o=m(n,d);if(("plus"===e.type||"star"===e.type)&&o.risky){const n=o.safeOutput?(e.output?"":O)+(d.capture?`(${o.safeOutput})`:o.safeOutput):void 0,i=y[e.tokensIndex];i.type="text",i.value=r,i.output=n||t.escapeRegex(r);for(let t=e.tokensIndex+1;t<y.length;t++)y[t].value="",y[t].output="",delete y[t].suffix;return j.output=e.output+i.output,j.backtrack=!0,J({type:"paren",extglob:!0,value:G,output:""}),void Z("parens")}let i,s=e.close+(d.capture?")":"");if("negate"===e.type){let t=$;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(t=L(d)),(t!==$||W()||/^\)+$/.test(q()))&&(s=e.close=`)$))${t}`),e.inner.includes("*")&&(i=q())&&/^\.[^\\/.]+$/.test(i)){const r=h(i,{...l,fastpaths:!1}).output;s=e.close=`)${r})${t})`}"bos"===e.prev.type&&(j.negatedExtglob=!0)}J({type:"paren",extglob:!0,value:G,output:s}),Z("parens")};if(!1!==d.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(u)){let e=!1,r=u.replace(i,(t,r,n,o,i,s)=>"\\"===o?(e=!0,t):"?"===o?r?r+o+(i?k.repeat(i.length):""):0===s?N+(i?k.repeat(i.length):""):k.repeat(n.length):"."===o?E.repeat(n.length):"*"===o?r?r+o+(i?$:""):$:r?t:`\\${t}`);return!0===e&&(r=!0===d.unescape?r.replace(/\\/g,""):r.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),r===u&&!0===d.contains?(j.output=u,j):(j.output=t.wrapOutput(r,j,l),j)}for(;!W();){if(G=K(),"\0"===G)continue;if("\\"===G){const e=V();if("/"===e&&!0!==d.bash)continue;if("."===e||";"===e)continue;if(!e){G+="\\",J({type:"text",value:G});continue}const t=/^\\+/.exec(q());let r=0;if(t&&t[0].length>2&&(r=t[0].length,j.index+=r,r%2!=0&&(G+="\\")),!0===d.unescape?G=K():G+=K(),0===j.brackets){J({type:"text",value:G});continue}}if(j.brackets>0&&("]"!==G||"["===U.value||"[^"===U.value)){if(!1!==d.posix&&":"===G){const e=U.value.slice(1);if(e.includes("[")&&(U.posix=!0,e.includes(":"))){const e=U.value.lastIndexOf("["),t=U.value.slice(0,e),r=U.value.slice(e+2),o=n[r];if(o){U.value=t+o,j.backtrack=!0,K(),g.output||1!==y.indexOf(U)||(g.output=O);continue}}}("["===G&&":"!==V()||"-"===G&&"]"===V())&&(G=`\\${G}`),"]"!==G||"["!==U.value&&"[^"!==U.value||(G=`\\${G}`),!0===d.posix&&"!"===G&&"["===U.value&&(G="^"),U.value+=G,X({value:G});continue}if(1===j.quotes&&'"'!==G){G=t.escapeRegex(G),U.value+=G,X({value:G});continue}if('"'===G){j.quotes=1===j.quotes?0:1,!0===d.keepQuotes&&J({type:"text",value:G});continue}if("("===G){Q("parens"),J({type:"paren",value:G});continue}if(")"===G){if(0===j.parens&&!0===d.strictBrackets)throw new SyntaxError(c("opening","("));const e=B[B.length-1];if(e&&j.parens===e.parens+1){te(B.pop());continue}J({type:"paren",value:G,output:j.parens?")":"\\)"}),Z("parens");continue}if("["===G){if(!0!==d.nobracket&&q().includes("]"))Q("brackets");else{if(!0!==d.nobracket&&!0===d.strictBrackets)throw new SyntaxError(c("closing","]"));G=`\\${G}`}J({type:"bracket",value:G});continue}if("]"===G){if(!0===d.nobracket||U&&"bracket"===U.type&&1===U.value.length){J({type:"text",value:G,output:`\\${G}`});continue}if(0===j.brackets){if(!0===d.strictBrackets)throw new SyntaxError(c("opening","["));J({type:"text",value:G,output:`\\${G}`});continue}Z("brackets");const e=U.value.slice(1);if(!0===U.posix||"^"!==e[0]||e.includes("/")||(G=`/${G}`),U.value+=G,X({value:G}),!1===d.literalBrackets||t.hasRegexChars(e))continue;const r=t.escapeRegex(U.value);if(j.output=j.output.slice(0,-U.value.length),!0===d.literalBrackets){j.output+=r,U.value=r;continue}U.value=`(${b}${r}|${U.value})`,j.output+=U.value;continue}if("{"===G&&!0!==d.nobrace){Q("braces");const e={type:"brace",value:G,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};F.push(e),J(e);continue}if("}"===G){const e=F[F.length-1];if(!0===d.nobrace||!e){J({type:"text",value:G,output:G});continue}let t=")";if(!0===e.dots){const e=y.slice(),r=[];for(let t=e.length-1;t>=0&&(y.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=a(r,d),j.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=j.output.slice(0,e.outputIndex),n=j.tokens.slice(e.tokensIndex);e.value=e.output="\\{",G=t="\\}",j.output=r;for(const e of n)j.output+=e.output||e.value}J({type:"brace",value:G,output:t}),Z("braces"),F.pop();continue}if("|"===G){B.length>0&&B[B.length-1].conditions++,J({type:"text",value:G});continue}if(","===G){let e=G;const t=F[F.length-1];t&&"braces"===H[H.length-1]&&(t.comma=!0,e="|"),J({type:"comma",value:G,output:e});continue}if("/"===G){if("dot"===U.type&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",y.pop(),U=g;continue}J({type:"slash",value:G,output:x});continue}if("."===G){if(j.braces>0&&"dot"===U.type){"."===U.value&&(U.output=E);const e=F[F.length-1];U.type="dots",U.output+=G,U.value+=G,e.dots=!0;continue}if(j.braces+j.parens===0&&"bos"!==U.type&&"slash"!==U.type){J({type:"text",value:G,output:E});continue}J({type:"dot",value:G,output:E});continue}if("?"===G){if(!(U&&"("===U.value)&&!0!==d.noextglob&&"("===V()&&"?"!==V(2)){ee("qmark",G);continue}if(U&&"paren"===U.type){const e=V();let r=G;if("<"===e&&!t.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===U.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(q()))&&(r=`\\${G}`),J({type:"text",value:G,output:r});continue}if(!0!==d.dot&&("slash"===U.type||"bos"===U.type)){J({type:"qmark",value:G,output:P});continue}J({type:"qmark",value:G,output:k});continue}if("!"===G){if(!0!==d.noextglob&&"("===V()&&("?"!==V(2)||!/[!=<:]/.test(V(3)))){ee("negate",G);continue}if(!0!==d.nonegate&&0===j.index){Y();continue}}if("+"===G){if(!0!==d.noextglob&&"("===V()&&"?"!==V(2)){ee("plus",G);continue}if(U&&"("===U.value||!1===d.regex){J({type:"plus",value:G,output:_});continue}if(U&&("bracket"===U.type||"paren"===U.type||"brace"===U.type)||j.parens>0){J({type:"plus",value:G});continue}J({type:"plus",value:_});continue}if("@"===G){if(!0!==d.noextglob&&"("===V()&&"?"!==V(2)){J({type:"at",extglob:!0,value:G,output:""});continue}J({type:"text",value:G});continue}if("*"!==G){"$"!==G&&"^"!==G||(G=`\\${G}`);const e=o.exec(q());e&&(G+=e[0],j.index+=e[0].length),J({type:"text",value:G});continue}if(U&&("globstar"===U.type||!0===U.star)){U.type="star",U.star=!0,U.value+=G,U.output=$,j.backtrack=!0,j.globstar=!0,z(G);continue}let e=q();if(!0!==d.noextglob&&/^\([^?]/.test(e)){ee("star",G);continue}if("star"===U.type){if(!0===d.noglobstar){z(G);continue}const t=U.prev,r=t.prev,n="slash"===t.type||"bos"===t.type,o=r&&("star"===r.type||"globstar"===r.type);if(!0===d.bash&&(!n||e[0]&&"/"!==e[0])){J({type:"star",value:G,output:""});continue}const i=j.braces>0&&("comma"===t.type||"brace"===t.type),s=B.length&&("pipe"===t.type||"paren"===t.type);if(!n&&"paren"!==t.type&&!i&&!s){J({type:"star",value:G,output:""});continue}for(;"/**"===e.slice(0,3);){const t=u[j.index+4];if(t&&"/"!==t)break;e=e.slice(3),z("/**",3)}if("bos"===t.type&&W()){U.type="globstar",U.value+=G,U.output=L(d),j.output=U.output,j.globstar=!0,z(G);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!o&&W()){j.output=j.output.slice(0,-(t.output+U.output).length),t.output=`(?:${t.output}`,U.type="globstar",U.output=L(d)+(d.strictSlashes?")":"|$)"),U.value+=G,j.globstar=!0,j.output+=t.output+U.output,z(G);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){const r=void 0!==e[1]?"|$":"";j.output=j.output.slice(0,-(t.output+U.output).length),t.output=`(?:${t.output}`,U.type="globstar",U.output=`${L(d)}${x}|${x}${r})`,U.value+=G,j.output+=t.output+U.output,j.globstar=!0,z(G+K()),J({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){U.type="globstar",U.value+=G,U.output=`(?:^|${x}|${L(d)}${x})`,j.output=U.output,j.globstar=!0,z(G+K()),J({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-U.output.length),U.type="globstar",U.output=L(d),U.value+=G,j.output+=U.output,j.globstar=!0,z(G);continue}const r={type:"star",value:G,output:$};!0!==d.bash?!U||"bracket"!==U.type&&"paren"!==U.type||!0!==d.regex?(j.index!==j.start&&"slash"!==U.type&&"dot"!==U.type||("dot"===U.type?(j.output+=R,U.output+=R):!0===d.dot?(j.output+=C,U.output+=C):(j.output+=M,U.output+=M),"*"!==V()&&(j.output+=O,U.output+=O)),J(r)):(r.output=G,J(r)):(r.output=".*?","bos"!==U.type&&"slash"!==U.type||(r.output=M+r.output),J(r))}for(;j.brackets>0;){if(!0===d.strictBrackets)throw new SyntaxError(c("closing","]"));j.output=t.escapeLast(j.output,"["),Z("brackets")}for(;j.parens>0;){if(!0===d.strictBrackets)throw new SyntaxError(c("closing",")"));j.output=t.escapeLast(j.output,"("),Z("parens")}for(;j.braces>0;){if(!0===d.strictBrackets)throw new SyntaxError(c("closing","}"));j.output=t.escapeLast(j.output,"{"),Z("braces")}if(!0===d.strictSlashes||"star"!==U.type&&"bracket"!==U.type||J({type:"maybe_slash",value:"",output:`${x}?`}),!0===j.backtrack){j.output="";for(const e of j.tokens)j.output+=null!=e.output?e.output:e.value,e.suffix&&(j.output+=e.suffix)}return j};return h.fastpaths=(n,o)=>{const i={...o},a="number"==typeof i.maxLength?Math.min(r,i.maxLength):r,c=n.length;if(c>a)throw new SyntaxError(`Input length: ${c}, exceeds maximum allowed length: ${a}`);n=s[n]||n;const u=t.isWindows(o),{DOT_LITERAL:l,SLASH_LITERAL:d,ONE_CHAR:f,DOTS_SLASH:p,NO_DOT:m,NO_DOTS:h,NO_DOTS_SLASH:g,STAR:y,START_ANCHOR:b}=e.globChars(u),v=i.dot?h:m,w=i.dot?g:m,S=i.capture?"":"?:";let E=!0===i.bash?".*?":y;i.capture&&(E=`(${E})`);const _=e=>!0===e.noglobstar?E:`(${S}(?:(?!${b}${e.dot?p:l}).)*?)`,x=e=>{switch(e){case"*":return`${v}${f}${E}`;case".*":return`${l}${f}${E}`;case"*.*":return`${v}${E}${l}${f}${E}`;case"*/*":return`${v}${E}${d}${f}${w}${E}`;case"**":return v+_(i);case"**/*":return`(?:${v}${_(i)}${d})?${w}${f}${E}`;case"**/*.*":return`(?:${v}${_(i)}${d})?${w}${E}${l}${f}${E}`;case"**/.*":return`(?:${v}${_(i)}${d})?${l}${f}${E}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=x(t[1]);if(!r)return;return r+l+t[2]}}},O=t.removePrefix(n,{negated:!1,prefix:""});let A=x(O);return A&&!0!==i.strictSlashes&&(A+=`${d}?`),A},Ai=h}function Bi(){if(Ci)return Ri;Ci=1;const e=r,t=function(){if(Oi)return xi;Oi=1;const e=$i(),{CHAR_ASTERISK:t,CHAR_AT:r,CHAR_BACKWARD_SLASH:n,CHAR_COMMA:o,CHAR_DOT:i,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:l,CHAR_PLUS:d,CHAR_QUESTION_MARK:f,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:m,CHAR_RIGHT_SQUARE_BRACKET:h}=Ni(),g=e=>e===a||e===n,y=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return xi=(b,v)=>{const w=v||{},S=b.length-1,E=!0===w.parts||!0===w.scanToEnd,_=[],x=[],O=[];let A,T,R=b,C=-1,k=0,P=0,I=!1,D=!1,L=!1,M=!1,N=!1,$=!1,j=!1,B=!1,F=!1,H=!1,G=0,U={value:"",depth:0,isGlob:!1};const W=()=>C>=S,V=()=>R.charCodeAt(C+1),K=()=>(A=T,R.charCodeAt(++C));for(;C<S;){let e;if(T=K(),T!==n){if(!0===$||T===c){for(G++;!0!==W()&&(T=K());)if(T!==n)if(T!==c){if(!0!==$&&T===i&&(T=K())===i){if(I=U.isBrace=!0,L=U.isGlob=!0,H=!0,!0===E)continue;break}if(!0!==$&&T===o){if(I=U.isBrace=!0,L=U.isGlob=!0,H=!0,!0===E)continue;break}if(T===p&&(G--,0===G)){$=!1,I=U.isBrace=!0,H=!0;break}}else G++;else j=U.backslashes=!0,K();if(!0===E)continue;break}if(T!==a){if(!0!==w.noext&&!0==(T===d||T===r||T===t||T===f||T===s)&&V()===u){if(L=U.isGlob=!0,M=U.isExtglob=!0,H=!0,T===s&&C===k&&(F=!0),!0===E){for(;!0!==W()&&(T=K());)if(T!==n){if(T===m){L=U.isGlob=!0,H=!0;break}}else j=U.backslashes=!0,T=K();continue}break}if(T===t){if(A===t&&(N=U.isGlobstar=!0),L=U.isGlob=!0,H=!0,!0===E)continue;break}if(T===f){if(L=U.isGlob=!0,H=!0,!0===E)continue;break}if(T===l){for(;!0!==W()&&(e=K());)if(e!==n){if(e===h){D=U.isBracket=!0,L=U.isGlob=!0,H=!0;break}}else j=U.backslashes=!0,K();if(!0===E)continue;break}if(!0===w.nonegate||T!==s||C!==k){if(!0!==w.noparen&&T===u){if(L=U.isGlob=!0,!0===E){for(;!0!==W()&&(T=K());)if(T!==u){if(T===m){H=!0;break}}else j=U.backslashes=!0,T=K();continue}break}if(!0===L){if(H=!0,!0===E)continue;break}}else B=U.negated=!0,k++}else{if(_.push(C),x.push(U),U={value:"",depth:0,isGlob:!1},!0===H)continue;if(A===i&&C===k+1){k+=2;continue}P=C+1}}else j=U.backslashes=!0,T=K(),T===c&&($=!0)}!0===w.noext&&(M=!1,L=!1);let q=R,z="",X="";k>0&&(z=R.slice(0,k),R=R.slice(k),P-=k),q&&!0===L&&P>0?(q=R.slice(0,P),X=R.slice(P)):!0===L?(q="",X=R):q=R,q&&""!==q&&"/"!==q&&q!==R&&g(q.charCodeAt(q.length-1))&&(q=q.slice(0,-1)),!0===w.unescape&&(X&&(X=e.removeBackslashes(X)),q&&!0===j&&(q=e.removeBackslashes(q)));const Y={prefix:z,input:b,start:k,base:q,glob:X,isBrace:I,isBracket:D,isGlob:L,isExtglob:M,isGlobstar:N,negated:B,negatedExtglob:F};if(!0===w.tokens&&(Y.maxDepth=0,g(T)||x.push(U),Y.tokens=x),!0===w.parts||!0===w.tokens){let e;for(let t=0;t<_.length;t++){const r=e?e+1:k,n=_[t],o=b.slice(r,n);w.tokens&&(0===t&&0!==k?(x[t].isPrefix=!0,x[t].value=z):x[t].value=o,y(x[t]),Y.maxDepth+=x[t].depth),0===t&&""===o||O.push(o),e=n}if(e&&e+1<b.length){const t=b.slice(e+1);O.push(t),w.tokens&&(x[x.length-1].value=t,y(x[x.length-1]),Y.maxDepth+=x[x.length-1].depth)}Y.slashes=_,Y.parts=O}return Y},xi}(),n=ji(),o=$i(),i=Ni(),s=(e,t,r=!1)=>{if(Array.isArray(e)){const n=e.map(e=>s(e,t,r)),o=e=>{for(const t of n){const r=t(e);if(r)return r}return!1};return o}const n=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!n)throw new TypeError("Expected pattern to be a non-empty string");const a=t||{},c=o.isWindows(t),u=n?s.compileRe(e,t):s.makeRe(e,t,!1,!0),l=u.state;delete u.state;let d=()=>!1;if(a.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};d=s(a.ignore,e,r)}const f=(r,n=!1)=>{const{isMatch:o,match:i,output:f}=s.test(r,u,t,{glob:e,posix:c}),p={glob:e,state:l,regex:u,posix:c,input:r,output:f,match:i,isMatch:o};return"function"==typeof a.onResult&&a.onResult(p),!1===o?(p.isMatch=!1,!!n&&p):d(r)?("function"==typeof a.onIgnore&&a.onIgnore(p),p.isMatch=!1,!!n&&p):("function"==typeof a.onMatch&&a.onMatch(p),!n||p)};return r&&(f.state=l),f};return s.test=(e,t,r,{glob:n,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const a=r||{},c=a.format||(i?o.toPosixSlashes:null);let u=e===n,l=u&&c?c(e):e;return!1===u&&(l=c?c(e):e,u=l===n),!1!==u&&!0!==a.capture||(u=!0===a.matchBase||!0===a.basename?s.matchBase(e,t,r,i):t.exec(l)),{isMatch:Boolean(u),match:u,output:l}},s.matchBase=(t,r,n,i=o.isWindows(n))=>(r instanceof RegExp?r:s.makeRe(r,n)).test(e.basename(t)),s.isMatch=(e,t,r)=>s(t,r)(e),s.parse=(e,t)=>Array.isArray(e)?e.map(e=>s.parse(e,t)):n(e,{...t,fastpaths:!1}),s.scan=(e,r)=>t(e,r),s.compileRe=(e,t,r=!1,n=!1)=>{if(!0===r)return e.output;const o=t||{},i=o.contains?"":"^",a=o.contains?"":"$";let c=`${i}(?:${e.output})${a}`;e&&!0===e.negated&&(c=`^(?!${c}).*$`);const u=s.toRegex(c,t);return!0===n&&(u.state=e),u},s.makeRe=(e,t={},r=!1,o=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(i.output=n.fastpaths(e,t)),i.output||(i=n(e,t)),s.compileRe(i,t,r,o)},s.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},s.constants=i,Ri=s}function Fi(){return Pi?ki:(Pi=1,ki=Bi())}function Hi(){if(Li)return Wo;Li=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.isAbsolute=Wo.partitionAbsoluteAndRelative=Wo.removeDuplicateSlashes=Wo.matchAny=Wo.convertPatternsToRe=Wo.makeRe=Wo.getPatternParts=Wo.expandBraceExpansion=Wo.expandPatternsWithBraceExpansion=Wo.isAffectDepthOfReadingPattern=Wo.endsWithSlashGlobStar=Wo.hasGlobStar=Wo.getBaseDirectory=Wo.isPatternRelatedToParentDirectory=Wo.getPatternsOutsideCurrentDirectory=Wo.getPatternsInsideCurrentDirectory=Wo.getPositivePatterns=Wo.getNegativePatterns=Wo.isPositivePattern=Wo.isNegativePattern=Wo.convertToNegativePattern=Wo.convertToPositivePattern=Wo.isDynamicPattern=Wo.isStaticPattern=void 0;const e=r,t=qo(),o=function(){if(Di)return Ii;Di=1;const e=n,t=wi(),r=Fi(),o=$i(),i=e=>""===e||"./"===e,s=e=>{const t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},a=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let o=new Set,i=new Set,s=new Set,a=0,c=e=>{s.add(e.output),n&&n.onResult&&n.onResult(e)};for(let s=0;s<t.length;s++){let u=r(String(t[s]),{...n,onResult:c},!0),l=u.state.negated||u.state.negatedExtglob;l&&a++;for(let t of e){let e=u(t,!0);(l?!e.isMatch:e.isMatch)&&(l?o.add(e.output):(o.delete(e.output),i.add(e.output)))}}let u=(a===t.length?[...s]:[...i]).filter(e=>!o.has(e));if(n&&0===u.length){if(!0===n.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)return n.unescape?t.map(e=>e.replace(/\\/g,"")):t}return u};return a.match=a,a.matcher=(e,t)=>r(e,t),a.any=a.isMatch=(e,t,n)=>r(t,n)(e),a.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,o=[],i=new Set(a(e,t,{...r,onResult:e=>{r.onResult&&r.onResult(e),o.push(e.output)}}));for(let e of o)i.has(e)||n.add(e);return[...n]},a.contains=(t,r,n)=>{if("string"!=typeof t)throw new TypeError(`Expected a string: "${e.inspect(t)}"`);if(Array.isArray(r))return r.some(e=>a.contains(t,e,n));if("string"==typeof r){if(i(t)||i(r))return!1;if(t.includes(r)||t.startsWith("./")&&t.slice(2).includes(r))return!0}return a.isMatch(t,r,{...n,contains:!0})},a.matchKeys=(e,t,r)=>{if(!o.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=a(Object.keys(e),t,r),i={};for(let t of n)i[t]=e[t];return i},a.some=(e,t,n)=>{let o=[].concat(e);for(let e of[].concat(t)){let t=r(String(e),n);if(o.some(e=>t(e)))return!0}return!1},a.every=(e,t,n)=>{let o=[].concat(e);for(let e of[].concat(t)){let t=r(String(e),n);if(!o.every(e=>t(e)))return!1}return!0},a.all=(t,n,o)=>{if("string"!=typeof t)throw new TypeError(`Expected a string: "${e.inspect(t)}"`);return[].concat(n).every(e=>r(e,o)(t))},a.capture=(e,t,n)=>{let i=o.isWindows(n),s=r.makeRe(String(e),{...n,capture:!0}).exec(i?o.toPosixSlashes(t):t);if(s)return s.slice(1).map(e=>void 0===e?"":e)},a.makeRe=(...e)=>r.makeRe(...e),a.scan=(...e)=>r.scan(...e),a.parse=(e,n)=>{let o=[];for(let i of[].concat(e||[]))for(let e of t(String(i),n))o.push(r.parse(e,n));return o},a.braces=(e,r)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return r&&!0===r.nobrace||!s(e)?[e]:t(e,r)},a.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return a.braces(e,{...t,expand:!0})},a.hasBraces=s,Ii=a}(),i=/[*?]|^!/,s=/\[[^[]*]/,a=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,u=/,|\.\./,l=/(?!^)\/{2,}/g;function d(e,t={}){return!f(e,t)}function f(e,t={}){return""!==e&&(!(!1!==t.caseSensitiveMatch&&!e.includes("\\"))||(!!(i.test(e)||s.test(e)||a.test(e))||(!(!1===t.extglob||!c.test(e))||!(!1===t.braceExpansion||!function(e){const t=e.indexOf("{");if(-1===t)return!1;const r=e.indexOf("}",t+1);if(-1===r)return!1;const n=e.slice(t,r);return u.test(n)}(e)))))}function p(e){return e.startsWith("!")&&"("!==e[1]}function m(e){return!p(e)}function h(e){return e.startsWith("..")||e.startsWith("./..")}function g(e){return e.endsWith("/**")}function y(e){const t=o.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((e,t)=>e.length-t.length),t.filter(e=>""!==e)}function b(e,t){return o.makeRe(e,t)}function v(t){return e.isAbsolute(t)}return Wo.isStaticPattern=d,Wo.isDynamicPattern=f,Wo.convertToPositivePattern=function(e){return p(e)?e.slice(1):e},Wo.convertToNegativePattern=function(e){return"!"+e},Wo.isNegativePattern=p,Wo.isPositivePattern=m,Wo.getNegativePatterns=function(e){return e.filter(p)},Wo.getPositivePatterns=function(e){return e.filter(m)},Wo.getPatternsInsideCurrentDirectory=function(e){return e.filter(e=>!h(e))},Wo.getPatternsOutsideCurrentDirectory=function(e){return e.filter(h)},Wo.isPatternRelatedToParentDirectory=h,Wo.getBaseDirectory=function(e){return t(e,{flipBackslashes:!1})},Wo.hasGlobStar=function(e){return e.includes("**")},Wo.endsWithSlashGlobStar=g,Wo.isAffectDepthOfReadingPattern=function(t){const r=e.basename(t);return g(t)||d(r)},Wo.expandPatternsWithBraceExpansion=function(e){return e.reduce((e,t)=>e.concat(y(t)),[])},Wo.expandBraceExpansion=y,Wo.getPatternParts=function(e,t){let{parts:r}=o.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return 0===r.length&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r},Wo.makeRe=b,Wo.convertPatternsToRe=function(e,t){return e.map(e=>b(e,t))},Wo.matchAny=function(e,t){return t.some(t=>t.test(e))},Wo.removeDuplicateSlashes=function(e){return e.replace(l,"/")},Wo.partitionAbsoluteAndRelative=function(e){const t=[],r=[];for(const n of e)v(n)?t.push(n):r.push(n);return[t,r]},Wo.isAbsolute=v,Wo}var Gi,Ui,Wi,Vi={};function Ki(){if(Ui)return Gi;Ui=1;const e=o.PassThrough,t=Array.prototype.slice;function r(t,n){if(Array.isArray(t))for(let e=0,o=t.length;e<o;e++)t[e]=r(t[e],n);else{if(!t._readableState&&t.pipe&&(t=t.pipe(e(n))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}return Gi=function(){const n=[],o=t.call(arguments);let i=!1,s=o[o.length-1];s&&!Array.isArray(s)&&null==s.pipe?o.pop():s={};const a=!1!==s.end,c=!0===s.pipeError;null==s.objectMode&&(s.objectMode=!0);null==s.highWaterMark&&(s.highWaterMark=65536);const u=e(s);function l(){for(let e=0,t=arguments.length;e<t;e++)n.push(r(arguments[e],s));return d(),this}function d(){if(i)return;i=!0;let e=n.shift();if(!e)return void process.nextTick(f);Array.isArray(e)||(e=[e]);let t=e.length+1;function r(){--t>0||(i=!1,d())}function o(e){function t(){e.removeListener("merge2UnpipeEnd",t),e.removeListener("end",t),c&&e.removeListener("error",n),r()}function n(e){u.emit("error",e)}if(e._readableState.endEmitted)return r();e.on("merge2UnpipeEnd",t),e.on("end",t),c&&e.on("error",n),e.pipe(u,{end:!1}),e.resume()}for(let t=0;t<e.length;t++)o(e[t]);r()}function f(){i=!1,u.emit("queueDrain"),a&&u.end()}u.setMaxListeners(0),u.add=l,u.on("unpipe",function(e){e.emit("merge2UnpipeEnd")}),o.length&&l.apply(null,o);return u},Gi}var qi,zi,Xi,Yi={};function Qi(){if(qi)return Yi;return qi=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.isEmpty=Yi.isString=void 0,Yi.isString=function(e){return"string"==typeof e},Yi.isEmpty=function(e){return""===e},Yi}function Zi(){if(zi)return To;zi=1,Object.defineProperty(To,"__esModule",{value:!0}),To.string=To.stream=To.pattern=To.path=To.fs=To.errno=To.array=void 0;const e=Co();To.array=e;const t=Io();To.errno=t;const r=function(){if(Do)return Lo;Do=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.createDirentFromStats=void 0;class e{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}return Lo.createDirentFromStats=function(t,r){return new e(t,r)},Lo}();To.fs=r;const n=$o();To.path=n;const o=Hi();To.pattern=o;const i=function(){if(Wi)return Vi;Wi=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.merge=void 0;const e=Ki();function t(e){e.forEach(e=>e.emit("close"))}return Vi.merge=function(r){const n=e(r);return r.forEach(e=>{e.once("error",e=>n.emit("error",e))}),n.once("close",()=>t(r)),n.once("end",()=>t(r)),n},Vi}();To.stream=i;const s=Qi();return To.string=s,To}var Ji,es={},ts={},rs={},ns={},os={},is={},ss={},as={},cs={};function us(){if(Ji)return cs;function e(e,t){e(t)}function t(e,t){e(null,t)}return Ji=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.read=void 0,cs.read=function(r,n,o){n.fs.lstat(r,(i,s)=>{null===i?s.isSymbolicLink()&&n.followSymbolicLink?n.fs.stat(r,(r,i)=>{if(null!==r)return n.throwErrorOnBrokenSymbolicLink?void e(o,r):void t(o,s);n.markSymbolicLink&&(i.isSymbolicLink=()=>!0),t(o,i)}):t(o,s):e(o,i)})},cs}var ls,ds={};var fs,ps,ms,hs,gs,ys,bs,vs={},ws={};function Ss(){if(ps)return vs;ps=1,Object.defineProperty(vs,"__esModule",{value:!0});const e=(fs||(fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const r=t;e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync},e.createFileSystemAdapter=function(t){return void 0===t?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}}(ws)),ws);return vs.default=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=e.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,t){return null!=e?e:t}},vs}function Es(){if(ms)return as;ms=1,Object.defineProperty(as,"__esModule",{value:!0}),as.statSync=as.stat=as.Settings=void 0;const e=us(),t=(ls||(ls=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.read=void 0,ds.read=function(e,t){const r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{const r=t.fs.statSync(e);return t.markSymbolicLink&&(r.isSymbolicLink=()=>!0),r}catch(e){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw e}}),ds),r=Ss();function n(e={}){return e instanceof r.default?e:new r.default(e)}return as.Settings=r.default,as.stat=function(t,r,o){"function"!=typeof r?e.read(t,n(r),o):e.read(t,n(),r)},as.statSync=function(e,r){const o=n(r);return t.read(e,o)},as}
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */function _s(){if(gs)return hs;let e;return gs=1,hs="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:re):t=>(e||(e=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))}
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var xs,Os={};function As(){if(xs)return Os;xs=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const e=process.versions.node.split(".");if(void 0===e[0]||void 0===e[1])throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);const t=Number.parseInt(e[0],10),r=Number.parseInt(e[1],10),n=t>10,o=10===t&&r>=10;return Os.IS_SUPPORT_READDIR_WITH_FILE_TYPES=n||o,Os}var Ts,Rs,Cs={},ks={};function Ps(){if(Rs)return Cs;Rs=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.fs=void 0;const e=function(){if(Ts)return ks;Ts=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.createDirentFromStats=void 0;class e{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}return ks.createDirentFromStats=function(t,r){return new e(t,r)},ks}();return Cs.fs=e,Cs}var Is,Ds,Ls={};function Ms(){if(Is)return Ls;return Is=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.joinPathSegments=void 0,Ls.joinPathSegments=function(e,t,r){return e.endsWith(r)?e+t:e+r+t},Ls}function Ns(){if(Ds)return ss;Ds=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.readdir=ss.readdirWithFileTypes=ss.read=void 0;const e=Es(),t=function(){if(bs)return ys;bs=1,ys=function(t,r){let n,o,i,s=!0;function a(t){function o(){r&&r(t,n),r=null}s?e(o):o()}function c(e,t,r){n[e]=r,(0===--o||t)&&a(t)}Array.isArray(t)?(n=[],o=t.length):(i=Object.keys(t),n={},o=i.length),o?i?i.forEach(function(e){t[e](function(t,r){c(e,t,r)})}):t.forEach(function(e,t){e(function(e,r){c(t,e,r)})}):a(null),s=!1};const e=_s();return ys}(),r=As(),n=Ps(),o=Ms();function i(e,r,i){r.fs.readdir(e,{withFileTypes:!0},(s,u)=>{if(null!==s)return void a(i,s);const l=u.map(t=>({dirent:t,name:t.name,path:o.joinPathSegments(e,t.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks)return void c(i,l);const d=l.map(e=>function(e,t){return r=>{e.dirent.isSymbolicLink()?t.fs.stat(e.path,(o,i)=>{if(null!==o)return t.throwErrorOnBrokenSymbolicLink?void r(o):void r(null,e);e.dirent=n.fs.createDirentFromStats(e.name,i),r(null,e)}):r(null,e)}}(e,r));t(d,(e,t)=>{null===e?c(i,t):a(i,e)})})}function s(r,i,s){i.fs.readdir(r,(u,l)=>{if(null!==u)return void a(s,u);const d=l.map(t=>{const s=o.joinPathSegments(r,t,i.pathSegmentSeparator);return r=>{e.stat(s,i.fsStatSettings,(e,o)=>{if(null!==e)return void r(e);const a={name:t,path:s,dirent:n.fs.createDirentFromStats(t,o)};i.stats&&(a.stats=o),r(null,a)})}});t(d,(e,t)=>{null===e?c(s,t):a(s,e)})})}function a(e,t){e(t)}function c(e,t){e(null,t)}return ss.read=function(e,t,n){t.stats||!r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(e,t,n):i(e,t,n)},ss.readdirWithFileTypes=i,ss.readdir=s,ss}var $s,js={};var Bs,Fs,Hs,Gs={},Us={};function Ws(){return Bs||(Bs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const r=t;e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync},e.createFileSystemAdapter=function(t){return void 0===t?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}}(Us)),Us}function Vs(){if(Hs)return is;Hs=1,Object.defineProperty(is,"__esModule",{value:!0}),is.Settings=is.scandirSync=is.scandir=void 0;const e=Ns(),t=function(){if($s)return js;$s=1,Object.defineProperty(js,"__esModule",{value:!0}),js.readdir=js.readdirWithFileTypes=js.read=void 0;const e=Es(),t=As(),r=Ps(),n=Ms();function o(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(o=>{const i={dirent:o,name:o.name,path:n.joinPathSegments(e,o.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{const e=t.fs.statSync(i.path);i.dirent=r.fs.createDirentFromStats(i.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink)throw e}return i})}function i(t,o){return o.fs.readdirSync(t).map(i=>{const s=n.joinPathSegments(t,i,o.pathSegmentSeparator),a=e.statSync(s,o.fsStatSettings),c={name:i,path:s,dirent:r.fs.createDirentFromStats(i,a)};return o.stats&&(c.stats=a),c})}return js.read=function(e,r){return!r.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?o(e,r):i(e,r)},js.readdirWithFileTypes=o,js.readdir=i,js}(),n=function(){if(Fs)return Gs;Fs=1,Object.defineProperty(Gs,"__esModule",{value:!0});const e=r,t=Es(),n=Ws();return Gs.default=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new t.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},Gs}();function o(e={}){return e instanceof n.default?e:new n.default(e)}return is.Settings=n.default,is.scandir=function(t,r,n){"function"!=typeof r?e.read(t,o(r),n):e.read(t,o(),r)},is.scandirSync=function(e,r){const n=o(r);return t.read(e,n)},is}var Ks,qs,zs,Xs={exports:{}};function Ys(){if(zs)return Xs.exports;zs=1;var e=(qs||(qs=1,Ks=function(e){var t=new e,r=t;return{get:function(){var n=t;return n.next?t=n.next:(t=new e,r=t),n.next=null,n},release:function(e){r.next=e,r=e}}}),Ks);function t(t,o,i){if("function"==typeof t&&(i=o,o=t,t=null),!(i>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var s=e(n),a=null,c=null,u=0,l=null,d={push:function(e,n){var p=s.get();p.context=t,p.release=f,p.value=e,p.callback=n||r,p.errorHandler=l,u>=i||d.paused?c?(c.next=p,c=p):(a=p,c=p,d.saturated()):(u++,o.call(t,p.value,p.worked))},drain:r,saturated:r,pause:function(){d.paused=!0},paused:!1,get concurrency(){return i},set concurrency(e){if(!(e>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(i=e,!d.paused)for(;a&&u<i;)u++,f()},running:function(){return u},resume:function(){if(!d.paused)return;if(d.paused=!1,null===a)return u++,void f();for(;a&&u<i;)u++,f()},idle:function(){return 0===u&&0===d.length()},length:function(){var e=a,t=0;for(;e;)e=e.next,t++;return t},getQueue:function(){var e=a,t=[];for(;e;)t.push(e.value),e=e.next;return t},unshift:function(e,n){var p=s.get();p.context=t,p.release=f,p.value=e,p.callback=n||r,p.errorHandler=l,u>=i||d.paused?a?(p.next=a,a=p):(a=p,c=p,d.saturated()):(u++,o.call(t,p.value,p.worked))},empty:r,kill:function(){a=null,c=null,d.drain=r},killAndDrain:function(){a=null,c=null,d.drain(),d.drain=r},error:function(e){l=e},abort:function(){var e=a;a=null,c=null;for(;e;){var t=e.next,n=e.callback,o=e.errorHandler,i=e.value,s=e.context;e.value=null,e.callback=r,e.errorHandler=null,o&&o(new Error("abort"),i),n.call(s,new Error("abort")),e.release(e),e=t}d.drain=r}};return d;function f(e){e&&s.release(e);var r=a;r&&u<=i?d.paused?u--:(c===a&&(c=null),a=r.next,r.next=null,o.call(t,r.value,r.worked),null===c&&d.empty()):0===--u&&d.drain()}}function r(){}function n(){this.value=null,this.callback=r,this.next=null,this.release=r,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var o=e.callback,i=e.errorHandler,s=e.value;e.value=null,e.callback=r,e.errorHandler&&i(t,s),o.call(e.context,t,n),e.release(e)}}return Xs.exports=t,Xs.exports.promise=function(e,n,o){"function"==typeof e&&(o=n,n=e,e=null);var i=t(e,function(e,t){n.call(this,e).then(function(e){t(null,e)},t)},o),s=i.push,a=i.unshift;return i.push=function(e){var t=new Promise(function(t,r){s(e,function(e,n){e?r(e):t(n)})});return t.catch(r),t},i.unshift=function(e){var t=new Promise(function(t,r){a(e,function(e,n){e?r(e):t(n)})});return t.catch(r),t},i.drained=function(){return new Promise(function(e){process.nextTick(function(){if(i.idle())e();else{var t=i.drain;i.drain=function(){"function"==typeof t&&t(),e(),i.drain=t}}})})},i},Xs.exports}var Qs,Zs={};function Js(){if(Qs)return Zs;return Qs=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.joinPathSegments=Zs.replacePathSegmentSeparator=Zs.isAppliedFilter=Zs.isFatalError=void 0,Zs.isFatalError=function(e,t){return null===e.errorFilter||!e.errorFilter(t)},Zs.isAppliedFilter=function(e,t){return null===e||e(t)},Zs.replacePathSegmentSeparator=function(e,t){return e.split(/[/\\]/).join(t)},Zs.joinPathSegments=function(e,t,r){return""===e?t:e.endsWith(r)?e+t:e+r+t},Zs}var ea,ta,ra,na={};function oa(){if(ea)return na;ea=1,Object.defineProperty(na,"__esModule",{value:!0});const e=Js();return na.default=class{constructor(t,r){this._root=t,this._settings=r,this._root=e.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}},na}function ia(){if(ta)return os;ta=1,Object.defineProperty(os,"__esModule",{value:!0});const e=i,t=Vs(),r=Ys(),n=Js(),o=oa();class s extends o.default{constructor(n,o){super(n,o),this._settings=o,this._scandir=t.scandir,this._emitter=new e.EventEmitter,this._queue=r(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const r={directory:e,base:t};this._queue.push(r,e=>{null!==e&&this._handleError(e)})}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,(r,n)=>{if(null===r){for(const t of n)this._handleEntry(t,e.base);t(null,void 0)}else t(r,void 0)})}_handleError(e){!this._isDestroyed&&n.isFatalError(this._settings,e)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;const r=e.path;void 0!==t&&(e.path=n.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,void 0===t?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}}return os.default=s,os}var sa,aa={};var ca,ua,la={},da={};function fa(){if(ua)return la;ua=1,Object.defineProperty(la,"__esModule",{value:!0});const e=function(){if(ca)return da;ca=1,Object.defineProperty(da,"__esModule",{value:!0});const e=Vs(),t=Js(),r=oa();class n extends r.default{constructor(){super(...arguments),this._scandir=e.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{const r=this._scandir(e,this._settings.fsScandirSettings);for(const e of r)this._handleEntry(e,t)}catch(e){this._handleError(e)}}_handleError(e){if(t.isFatalError(this._settings,e))throw e}_handleEntry(e,r){const n=e.path;void 0!==r&&(e.path=t.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,void 0===r?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}}return da.default=n,da}();return la.default=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new e.default(this._root,this._settings)}read(){return this._reader.read()}},la}var pa,ma,ha={};function ga(){if(ma)return rs;ma=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.Settings=rs.walkStream=rs.walkSync=rs.walk=void 0;const e=function(){if(ra)return ns;ra=1,Object.defineProperty(ns,"__esModule",{value:!0});const e=ia();return ns.default=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new e.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(t=>{!function(e,t){e(t)}(e,t)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{!function(e,t){e(null,t)}(e,this._storage)}),this._reader.read()}},ns}(),t=function(){if(sa)return aa;sa=1,Object.defineProperty(aa,"__esModule",{value:!0});const e=o,t=ia();return aa.default=class{constructor(r,n){this._root=r,this._settings=n,this._reader=new t.default(this._root,this._settings),this._stream=new e.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}},aa}(),n=fa(),i=function(){if(pa)return ha;pa=1,Object.defineProperty(ha,"__esModule",{value:!0});const e=r,t=Vs();return ha.default=class{constructor(r={}){this._options=r,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.fsScandirSettings=new t.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},ha}();function s(e={}){return e instanceof i.default?e:new i.default(e)}return rs.Settings=i.default,rs.walk=function(t,r,n){"function"!=typeof r?new e.default(t,s(r)).read(n):new e.default(t,s()).read(r)},rs.walkSync=function(e,t){const r=s(t);return new n.default(e,r).read()},rs.walkStream=function(e,r){const n=s(r);return new t.default(e,n).read()},rs}var ya,ba={};function va(){if(ya)return ba;ya=1,Object.defineProperty(ba,"__esModule",{value:!0});const e=r,t=Es(),n=Zi();return ba.default=class{constructor(e){this._settings=e,this._fsStatSettings=new t.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return e.resolve(this._settings.cwd,t)}_makeEntry(e,t){const r={name:t,path:t,dirent:n.fs.createDirentFromStats(t,e)};return this._settings.stats&&(r.stats=e),r}_isFatalError(e){return!n.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}},ba}var wa,Sa,Ea={};function _a(){if(wa)return Ea;wa=1,Object.defineProperty(Ea,"__esModule",{value:!0});const e=o,t=Es(),r=ga(),n=va();class i extends n.default{constructor(){super(...arguments),this._walkStream=r.walkStream,this._stat=t.stat}dynamic(e,t){return this._walkStream(e,t)}static(t,r){const n=t.map(this._getFullEntryPath,this),o=new e.PassThrough({objectMode:!0});o._write=(e,i,s)=>this._getEntry(n[e],t[e],r).then(t=>{null!==t&&r.entryFilter(t)&&o.push(t),e===n.length-1&&o.end(),s()}).catch(s);for(let e=0;e<n.length;e++)o.write(e);return o}_getEntry(e,t,r){return this._getStat(e).then(e=>this._makeEntry(e,t)).catch(e=>{if(r.errorFilter(e))return null;throw e})}_getStat(e){return new Promise((t,r)=>{this._stat(e,this._fsStatSettings,(e,n)=>null===e?t(n):r(e))})}}return Ea.default=i,Ea}var xa,Oa,Aa,Ta={},Ra={},Ca={},ka={};function Pa(){if(Oa)return Ca;Oa=1,Object.defineProperty(Ca,"__esModule",{value:!0});const e=function(){if(xa)return ka;xa=1,Object.defineProperty(ka,"__esModule",{value:!0});const e=Zi();return ka.default=class{constructor(e,t,r){this._patterns=e,this._settings=t,this._micromatchOptions=r,this._storage=[],this._fillStorage()}_fillStorage(){for(const e of this._patterns){const t=this._getPatternSegments(e),r=this._splitSegmentsIntoSections(t);this._storage.push({complete:r.length<=1,pattern:e,segments:t,sections:r})}}_getPatternSegments(t){return e.pattern.getPatternParts(t,this._micromatchOptions).map(t=>e.pattern.isDynamicPattern(t,this._settings)?{dynamic:!0,pattern:t,patternRe:e.pattern.makeRe(t,this._micromatchOptions)}:{dynamic:!1,pattern:t})}_splitSegmentsIntoSections(t){return e.array.splitWhen(t,t=>t.dynamic&&e.pattern.hasGlobStar(t.pattern))}},ka}();class t extends e.default{match(e){const t=e.split("/"),r=t.length,n=this._storage.filter(e=>!e.complete||e.segments.length>r);for(const e of n){const n=e.sections[0];if(!e.complete&&r>n.length)return!0;if(t.every((t,r)=>{const n=e.segments[r];return!(!n.dynamic||!n.patternRe.test(t))||!n.dynamic&&n.pattern===t}))return!0}return!1}}return Ca.default=t,Ca}var Ia,Da={};var La,Ma={};var Na,$a,ja,Ba={};function Fa(){if($a)return Ta;$a=1,Object.defineProperty(Ta,"__esModule",{value:!0});const e=r,t=function(){if(Aa)return Ra;Aa=1,Object.defineProperty(Ra,"__esModule",{value:!0});const e=Zi(),t=Pa();return Ra.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,r){const n=this._getMatcher(t),o=this._getNegativePatternsRe(r);return t=>this._filter(e,t,n,o)}_getMatcher(e){return new t.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){const r=t.filter(e.pattern.isAffectDepthOfReadingPattern);return e.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,o){if(this._isSkippedByDeep(t,r.path))return!1;if(this._isSkippedSymbolicLink(r))return!1;const i=e.path.removeLeadingDotSegment(r.path);return!this._isSkippedByPositivePatterns(i,n)&&this._isSkippedByNegativePatterns(i,o)}_isSkippedByDeep(e,t){return this._settings.deep!==1/0&&this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const r=t.split("/").length;return""===e?r:r-e.split("/").length}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(t,r){return!e.pattern.matchAny(t,r)}},Ra}(),n=function(){if(Ia)return Da;Ia=1,Object.defineProperty(Da,"__esModule",{value:!0});const e=Zi();return Da.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(t,r){const[n,o]=e.pattern.partitionAbsoluteAndRelative(r),i={positive:{all:e.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:e.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:e.pattern.convertPatternsToRe(o,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return e=>this._filter(e,i)}_filter(t,r){const n=e.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(n))return!1;if(this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;const o=this._isMatchToPatternsSet(n,r,t.dirent.isDirectory());return this._settings.unique&&o&&this._createIndexRecord(n),o}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,t,r){return!!this._isMatchToPatterns(e,t.positive.all,r)&&(!this._isMatchToPatterns(e,t.negative.relative,r)&&!this._isMatchToAbsoluteNegative(e,t.negative.absolute,r))}_isMatchToAbsoluteNegative(t,r,n){if(0===r.length)return!1;const o=e.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(o,r,n)}_isMatchToPatterns(t,r,n){if(0===r.length)return!1;const o=e.pattern.matchAny(t,r);return!o&&n?e.pattern.matchAny(t+"/",r):o}},Da}(),o=function(){if(La)return Ma;La=1,Object.defineProperty(Ma,"__esModule",{value:!0});const e=Zi();return Ma.default=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(t){return e.errno.isEnoentCodeError(t)||this._settings.suppressErrors}},Ma}(),i=function(){if(Na)return Ba;Na=1,Object.defineProperty(Ba,"__esModule",{value:!0});const e=Zi();return Ba.default=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(t){let r=t.path;return this._settings.absolute&&(r=e.path.makeAbsolute(this._settings.cwd,r),r=e.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}},Ba}();return Ta.default=class{constructor(e){this._settings=e,this.errorFilter=new o.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new t.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new i.default(this._settings)}_getRootDirectory(t){return e.resolve(this._settings.cwd,t.base)}_getReaderOptions(e){const t="."===e.base?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}},Ta}function Ha(){if(ja)return es;ja=1,Object.defineProperty(es,"__esModule",{value:!0});const e=function(){if(Sa)return ts;Sa=1,Object.defineProperty(ts,"__esModule",{value:!0});const e=ga(),t=va(),r=_a();class n extends t.default{constructor(){super(...arguments),this._walkAsync=e.walk,this._readerStream=new r.default(this._settings)}dynamic(e,t){return new Promise((r,n)=>{this._walkAsync(e,t,(e,t)=>{null===e?r(t):n(e)})})}async static(e,t){const r=[],n=this._readerStream.static(e,t);return new Promise((e,t)=>{n.once("error",t),n.on("data",e=>r.push(e)),n.once("end",()=>e(r))})}}return ts.default=n,ts}(),t=Fa();class r extends t.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}async read(e){const t=this._getRootDirectory(e),r=this._getReaderOptions(e);return(await this.api(t,e,r)).map(e=>r.transform(e))}api(e,t,r){return t.dynamic?this._reader.dynamic(e,r):this._reader.static(t.patterns,r)}}return es.default=r,es}var Ga,Ua={};var Wa,Va,Ka={},qa={};function za(){if(Va)return Ka;Va=1,Object.defineProperty(Ka,"__esModule",{value:!0});const e=function(){if(Wa)return qa;Wa=1,Object.defineProperty(qa,"__esModule",{value:!0});const e=Es(),t=ga(),r=va();class n extends r.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=e.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){const r=[];for(const n of e){const e=this._getFullEntryPath(n),o=this._getEntry(e,n,t);null!==o&&t.entryFilter(o)&&r.push(o)}return r}_getEntry(e,t,r){try{const r=this._getStat(e);return this._makeEntry(r,t)}catch(e){if(r.errorFilter(e))return null;throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}return qa.default=n,qa}(),t=Fa();class r extends t.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(e){const t=this._getRootDirectory(e),r=this._getReaderOptions(e);return this.api(t,e,r).map(r.transform)}api(e,t,r){return t.dynamic?this._reader.dynamic(e,r):this._reader.static(t.patterns,r)}}return Ka.default=r,Ka}var Xa,Ya,Qa,Za,Ja,ec,tc,rc,nc,oc,ic={};function sc(){if(Qa)return Ya;Qa=1;const r=function(){if(Xi)return Ao;Xi=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.convertPatternGroupToTask=Ao.convertPatternGroupsToTasks=Ao.groupPatternsByBaseDirectory=Ao.getNegativePatternsAsPositive=Ao.getPositivePatterns=Ao.convertPatternsToTasks=Ao.generate=void 0;const e=Zi();function t(t,r){let n=t;return r.braceExpansion&&(n=e.pattern.expandPatternsWithBraceExpansion(n)),r.baseNameMatch&&(n=n.map(e=>e.includes("/")?e:`**/${e}`)),n.map(t=>e.pattern.removeDuplicateSlashes(t))}function r(t,r,n){const o=[],c=e.pattern.getPatternsOutsideCurrentDirectory(t),u=e.pattern.getPatternsInsideCurrentDirectory(t),l=i(c),d=i(u);return o.push(...s(l,r,n)),"."in d?o.push(a(".",u,r,n)):o.push(...s(d,r,n)),o}function n(t){return e.pattern.getPositivePatterns(t)}function o(t,r){return e.pattern.getNegativePatterns(t).concat(r).map(e.pattern.convertToPositivePattern)}function i(t){return t.reduce((t,r)=>{const n=e.pattern.getBaseDirectory(r);return n in t?t[n].push(r):t[n]=[r],t},{})}function s(e,t,r){return Object.keys(e).map(n=>a(n,e[n],t,r))}function a(t,r,n,o){return{dynamic:o,positive:r,negative:n,base:t,patterns:[].concat(r,n.map(e.pattern.convertToNegativePattern))}}return Ao.generate=function(i,s){const a=t(i,s),c=t(s.ignore,s),u=n(a),l=o(a,c),d=u.filter(t=>e.pattern.isStaticPattern(t,s)),f=u.filter(t=>e.pattern.isDynamicPattern(t,s)),p=r(d,l,!1),m=r(f,l,!0);return p.concat(m)},Ao.convertPatternsToTasks=r,Ao.getPositivePatterns=n,Ao.getNegativePatternsAsPositive=o,Ao.groupPatternsByBaseDirectory=i,Ao.convertPatternGroupsToTasks=s,Ao.convertPatternGroupToTask=a,Ao}(),n=Ha(),i=function(){if(Ga)return Ua;Ga=1,Object.defineProperty(Ua,"__esModule",{value:!0});const e=o,t=_a(),r=Fa();class n extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(t){const r=this._getRootDirectory(t),n=this._getReaderOptions(t),o=this.api(r,t,n),i=new e.Readable({objectMode:!0,read:()=>{}});return o.once("error",e=>i.emit("error",e)).on("data",e=>i.emit("data",n.transform(e))).once("end",()=>i.emit("end")),i.once("close",()=>o.destroy()),i}api(e,t,r){return t.dynamic?this._reader.dynamic(e,r):this._reader.static(t.patterns,r)}}return Ua.default=n,Ua}(),s=za(),a=(Xa||(Xa=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const n=t,o=e,i=Math.max(o.cpus().length,1);r.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:n.lstat,lstatSync:n.lstatSync,stat:n.stat,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync},r.default=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,t){return void 0===e?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},r.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}}(ic)),ic),c=Zi();async function u(e,t){d(e);const r=l(e,n.default,t),o=await Promise.all(r);return c.array.flatten(o)}function l(e,t,n){const o=[].concat(e),i=new a.default(n),s=r.generate(o,i),c=new t(i);return s.map(c.read,c)}function d(e){if(![].concat(e).every(e=>c.string.isString(e)&&!c.string.isEmpty(e)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}return function(e){function t(e,t){d(e);const r=l(e,s.default,t);return c.array.flatten(r)}function n(e,t){d(e);const r=l(e,i.default,t);return c.stream.merge(r)}var o,u;e.glob=e,e.globSync=t,e.globStream=n,e.async=e,e.sync=t,e.stream=n,e.generateTasks=function(e,t){d(e);const n=[].concat(e),o=new a.default(t);return r.generate(n,o)},e.isDynamicPattern=function(e,t){d(e);const r=new a.default(t);return c.pattern.isDynamicPattern(e,r)},e.escapePath=function(e){return d(e),c.path.escape(e)},e.convertPathToPattern=function(e){return d(e),c.path.convertPathToPattern(e)},(o=e.posix||(e.posix={})).escapePath=function(e){return d(e),c.path.escapePosixPath(e)},o.convertPathToPattern=function(e){return d(e),c.path.convertPosixPathToPattern(e)},(u=e.win32||(e.win32={})).escapePath=function(e){return d(e),c.path.escapeWindowsPath(e)},u.convertPathToPattern=function(e){return d(e),c.path.convertWindowsPathToPattern(e)}}(u||(u={})),Ya=u}function ac(){if(Za)return Oo;Za=1;var r=e,n=t,o=sc(),i={};Oo.shell=i;var s=Object.create(i);Oo.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},u={reset(){Object.assign(this,c),a||(this.execPath=process.execPath)},resetForTesting(){this.reset(),this.silent=!0}};u.reset(),Oo.config=u;var l={error:null,errorCode:0,currentCmd:"shell.js"};function d(e){return"object"==typeof e&&null!==e}function f(){u.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,"/")}Oo.state=l,delete process.env.OLDPWD,Oo.isObject=d,Oo.log=f,Oo.convertErrorOutput=p;class m extends Error{constructor(e){super(e.toString()),this.returnValue=e}}function h(e,t,r){if("string"!=typeof e)throw new Error("msg must be a string");var n={continue:!1,code:1,prefix:l.currentCmd+": ",silent:!1,fatal:u.fatal};"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),l.errorCode||(l.errorCode=r.code);var o=p(r.prefix+e);if(l.error=l.error?l.error+"\n":"",l.error+=o,r.fatal){var i=new Error(o);throw i.code=r.code,i}if(e.length>0&&!r.silent&&f(o),!r.continue)throw new m(new g("",l.error,l.errorCode))}function g(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,_.forEach(function(e){n[e]=s[e].bind(n)}),n}function y(e,t,r){if(r=r||{},"string"!=typeof e&&!d(e))throw new TypeError("options must be strings or key-value pairs");if(!d(t))throw new TypeError("parseOptions() internal error: map must be an object");if(!d(r))throw new TypeError("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){if("-"===o[0]){var i=o[1];if(i in t){var s=t[i];n[s]=e[o]}else h("option not recognized: "+i,r)}else o in n?n[o]=e[o]:h("option not recognized: {"+o+":...}",r)});return n}function b(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,n=function(){var e=Object.assign({},u.globOptions),t={mark:"markDirectories",matchBase:"baseNameMatch"};Object.keys(t).forEach(function(r){var n=t[r];r in u.globOptions&&(e[n]=u.globOptions[r])});var r={nobrace:"braceExpansion",noglobstar:"globstar",noext:"extglob",nocase:"caseSensitiveMatch"};return Object.keys(r).forEach(function(t){var n=r[t];t in u.globOptions&&(e[n]=!u.globOptions[t])}),Object.assign({},{onlyFiles:!1,followSymbolicLinks:!1},e)}();try{r=o.sync(e,n)}catch(t){r=[e]}r=r.length>0?r.sort():[e],n.nodir&&(r=r.filter(function(e){return!w(e).isDirectory()})),t=t.concat(r)}}),t}Oo.CommandError=m,Oo.error=h,Oo.ShellString=g,Oo.parseOptions=y,Oo.expand=b;var v="function"==typeof Buffer.alloc?function(e){return Buffer.alloc(e||u.bufLength)}:function(e){return new Buffer(e||u.bufLength)};function w(){return n.lstatSync.apply(n,arguments)}function S(e,t,n){return n=n||{},function(){var o=null;l.currentCmd=e,l.error=null,l.errorCode=0;try{var i=[].slice.call(arguments,0);if(u.verbose&&console.error.apply(console,[e].concat(i)),l.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}),u.noglob||!0!==n.allowGlobbing||(i=i.slice(0,n.globStart).concat(b(i.slice(n.globStart))));try{d(n.cmdOptions)&&(i[0]=y(i[0],n.cmdOptions)),o=t.apply(this,i)}catch(e){if(!(e instanceof m))throw e;o=e.returnValue}}}catch(e){if(!l.error)throw e.name="ShellJSInternalError",e;if(u.fatal||n.handlesFatalDynamically)throw e}return n.wrapOutput&&("string"==typeof o||Array.isArray(o))&&(o=new g(o,l.error,l.errorCode)),l.currentCmd="shell.js",o}}Oo.buffer=v,Oo.unlinkSync=function(e){try{n.unlinkSync(e)}catch(t){if("EPERM"!==t.code)throw t;n.chmodSync(e,"0666"),n.unlinkSync(e)}},Oo.statFollowLinks=function(){return n.statSync.apply(n,arguments)},Oo.statNoFollowLinks=w,Oo.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)},Oo.wrap=S,Oo.readFromPipe=function(){return l.pipedValue};var E={allowGlobbing:!0,canReceivePipe:!1,cmdOptions:null,globStart:1,handlesFatalDynamically:!1,pipeOnly:!1,wrapOutput:!0,unix:!0},_=[];return Oo.register=function(e,t,r){if(r=r||{},Object.keys(r).forEach(function(e){if(!E.hasOwnProperty(e))throw new Error("Unknown option '"+e+"'");if(typeof r[e]!=typeof E[e])throw new TypeError("Unsupported type '"+typeof r[e]+"' for option '"+e+"'")}),r=Object.assign({},E,r),i.hasOwnProperty(e))throw new Error("Command `"+e+"` already exists");r.pipeOnly?(r.canReceivePipe=!0,s[e]=S(e,t,r)):i[e]=S(e,t,r),r.canReceivePipe&&_.push(e)},Oo}function cc(){if(ec)return Ja;ec=1;var e=t,r=ac();function n(t,n){var i=r.readFromPipe();return n||i||r.error("no paths given"),(n=[].slice.call(arguments,1)).forEach(function(t){e.existsSync(t)?r.statFollowLinks(t).isDirectory()&&r.error(t+": Is a directory"):r.error("no such file or directory: "+t),i+=e.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 r.register("cat",n,{canReceivePipe:!0,cmdOptions:{n:"number"}}),Ja=n}function uc(){if(rc)return tc;rc=1;var t=e,r=ac();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,{}),tc=n}var lc,dc,fc,pc,mc,hc,gc,yc,bc={exports:{}},vc={exports:{}};function wc(){if(dc)return lc;dc=1,lc=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 lc}function Sc(){if(pc)return fc;pc=1,fc=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),u=parseInt("001",8),l=a|c,d=r&u||r&c&&o===s||r&a&&n===i||r&l&&0===i;return d}(e,t)}return fc}function Ec(){if(yc)return gc;yc=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=r,n=e?";":":",o=function(){if(hc)return mc;var e;function t(r,n,o){if("function"==typeof n&&(o=n,n={}),!o){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(function(e,o){t(r,n||{},function(t,r){t?o(t):e(r)})})}e(r,n||{},function(e,t){e&&("EACCES"===e.code||n&&n.ignoreErrors)&&(e=null,t=!1),o(e,t)})}return hc=1,e="win32"===process.platform||re.TESTING_WINDOWS?wc():Sc(),mc=t,t.sync=function(t,r){try{return e.sync(t,r||{})}catch(e){if(r&&r.ignoreErrors||"EACCES"===e.code)return!1;throw e}},mc}(),i=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),s=(t,r)=>{const o=r.colon||n,i=t.match(/\//)||e&&t.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(o)],s=e?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=e?s.split(o):[""];return e&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:s}},a=(e,r,n)=>{"function"==typeof r&&(n=r,r={}),r||(r={});const{pathEnv:a,pathExt:c,pathExtExe:u}=s(e,r),l=[],d=n=>new Promise((o,s)=>{if(n===a.length)return r.all&&l.length?o(l):s(i(e));const c=a[n],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=t.join(u,e),p=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;o(f(p,n,0))}),f=(e,t,n)=>new Promise((i,s)=>{if(n===c.length)return i(d(t+1));const a=c[n];o(e+a,{pathExt:u},(o,s)=>{if(!o&&s){if(!r.all)return i(e+a);l.push(e+a)}return i(f(e,t,n+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};return gc=a,a.sync=(e,r)=>{r=r||{};const{pathEnv:n,pathExt:a,pathExtExe:c}=s(e,r),u=[];for(let i=0;i<n.length;i++){const s=n[i],l=/^".*"$/.test(s)?s.slice(1,-1):s,d=t.join(l,e),f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<a.length;e++){const t=f+a[e];try{if(o.sync(t,{pathExt:c})){if(!r.all)return t;u.push(t)}}catch(e){}}}if(r.all&&u.length)return u;if(r.nothrow)return null;throw i(e)},gc}var _c,xc,Oc,Ac={exports:{}};function Tc(){if(_c)return Ac.exports;_c=1;const e=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"};return Ac.exports=e,Ac.exports.default=e,Ac.exports}var Rc,Cc,kc,Pc,Ic,Dc,Lc,Mc,Nc,$c,jc,Bc,Fc,Hc,Gc={};function Uc(){return kc?Cc:(kc=1,Cc=/^#!(.*)/)}function Wc(){if(Ic)return Pc;Ic=1;const e=Uc();return Pc=(t="")=>{const r=t.match(e);if(!r)return null;const[n,o]=r[0].replace(/#! ?/,"").split(" "),i=n.split("/").pop();return"env"===i?o:o?`${i} ${o}`:i},Pc}function Vc(){if(Nc)return Mc;Nc=1;const e=r,n=function(){if(Oc)return xc;Oc=1;const e=r,t=Ec(),n=Tc();function o(r,o){const i=r.options.env||process.env,s=process.cwd(),a=null!=r.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(r.options.cwd)}catch(e){}let u;try{u=t.sync(r.command,{path:i[n({env:i})],pathExt:o?e.delimiter:void 0})}catch(e){}finally{c&&process.chdir(s)}return u&&(u=e.resolve(a?r.options.cwd:"",u)),u}return xc=function(e){return o(e)||o(e,!0)}}(),o=function(){if(Rc)return Gc;Rc=1;const e=/([()\][%!^"`<>&|;, *?])/g;return Gc.command=function(t){return t.replace(e,"^$1")},Gc.argument=function(t,r){return t=(t=`"${t=(t=(t=`${t}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(e,"^$1"),r&&(t=t.replace(e,"^$1")),t},Gc}(),i=function(){if(Lc)return Dc;Lc=1;const e=t,r=Wc();return Dc=function(t){const n=Buffer.alloc(150);let o;try{o=e.openSync(t,"r"),e.readSync(o,n,0,150,0),e.closeSync(o)}catch(e){}return r(n.toString())},Dc}(),s="win32"===process.platform,a=/\.(?:com|exe)$/i,c=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(t){if(!s)return t;const r=function(e){e.file=n(e);const t=e.file&&i(e.file);return t?(e.args.unshift(e.file),e.command=t,n(e)):e.file}(t),u=!a.test(r);if(t.options.forceShell||u){const n=c.test(r);t.command=e.normalize(t.command),t.command=o.command(t.command),t.args=t.args.map(e=>o.argument(e,n));const i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}return Mc=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:u(n)},Mc}function Kc(){if(jc)return $c;jc=1;const e="win32"===process.platform;function t(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 r(r,n){return e&&1===r&&!n.file?t(n.original,"spawn"):null}return $c={hookChildProcess:function(t,n){if(!e)return;const o=t.emit;t.emit=function(e,i){if("exit"===e){const e=r(i,n);if(e)return o.call(t,"error",e)}return o.apply(t,arguments)}},verifyENOENT:r,verifyENOENTSync:function(r,n){return e&&1===r&&!n.file?t(n.original,"spawnSync"):null},notFoundError:t},$c}function qc(){if(Bc)return vc.exports;Bc=1;const e=s,t=Vc(),r=Kc();function n(n,o,i){const s=t(n,o,i),a=e.spawn(s.command,s.args,s.options);return r.hookChildProcess(a,s),a}return vc.exports=n,vc.exports.spawn=n,vc.exports.sync=function(n,o,i){const s=t(n,o,i),a=e.spawnSync(s.command,s.args,s.options);return a.error=a.error||r.verifyENOENTSync(a.status,s),a},vc.exports._parse=t,vc.exports._enoent=r,vc.exports}var zc,Xc={exports:{}};var Yc,Qc,Zc={exports:{}},Jc={exports:{}};function eu(){if(Yc)return Jc.exports;Yc=1;const e=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};return Jc.exports=e,Jc.exports.default=e,Jc.exports}function tu(){if(Qc)return Zc.exports;Qc=1;const e=eu(),t=new WeakMap,r=(r,n={})=>{if("function"!=typeof r)throw new TypeError("Expected a function");let o,i=0;const s=r.displayName||r.name||"<anonymous>",a=function(...e){if(t.set(a,++i),1===i)o=r.apply(this,e),r=null;else if(!0===n.throw)throw new Error(`Function \`${s}\` can only be called once`);return o};return e(a,r),t.set(a,i),a};return Zc.exports=r,Zc.exports.default=r,Zc.exports.callCount=e=>{if(!t.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return t.get(e)},Zc.exports}var ru,nu={},ou={},iu={};var su,au,cu,uu,lu,du={};function fu(){if(su)return du;su=1,Object.defineProperty(du,"__esModule",{value:!0}),du.SIGRTMAX=du.getRealtimeSignals=void 0;du.getRealtimeSignals=function(){const n=r-t+1;return Array.from({length:n},e)};const e=function(e,r){return{name:`SIGRT${r+1}`,number:t+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},t=34,r=64;return du.SIGRTMAX=r,du}function pu(){if(au)return ou;au=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.getSignals=void 0;var t=e,r=(ru||(ru=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.SIGNALS=void 0,iu.SIGNALS=[{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"}]),iu),n=fu();ou.getSignals=function(){const e=(0,n.getRealtimeSignals)();return[...r.SIGNALS,...e].map(o)};const o=function({name:e,number:r,description:n,action:o,forced:i=!1,standard:s}){const{signals:{[e]:a}}=t.constants,c=void 0!==a;return{name:e,number:c?a:r,description:n,supported:c,action:o,forced:i,standard:s}};return ou}function mu(){if(lu)return uu;lu=1;const{signalsByName:t}=function(){if(cu)return nu;cu=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.signalsByNumber=nu.signalsByName=void 0;var t=e,r=pu(),n=fu();const o=function(e,{name:t,number:r,description:n,supported:o,action:i,forced:s,standard:a}){return{...e,[t]:{name:t,number:r,description:n,supported:o,action:i,forced:s,standard:a}}},i=(0,r.getSignals)().reduce(o,{});nu.signalsByName=i;const s=function(e,t){const r=a(e,t);if(void 0===r)return{};const{name:n,description:o,supported:i,action:s,forced:c,standard:u}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:s,forced:c,standard:u}}},a=function(e,r){const n=r.find(({name:r})=>t.constants.signals[r]===e);return void 0!==n?n:r.find(t=>t.number===e)},c=function(){const e=(0,r.getSignals)(),t=n.SIGRTMAX+1,o=Array.from({length:t},(t,r)=>s(r,e));return Object.assign({},...o)}();return nu.signalsByNumber=c,nu}();return uu=({stdout:e,stderr:r,all:n,error:o,signal:i,exitCode:s,command:a,escapedCommand:c,timedOut:u,isCanceled:l,killed:d,parsed:{options:{timeout:f}}})=>{s=null===s?void 0:s;const p=void 0===(i=null===i?void 0:i)?void 0:t[i].description,m=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${o})`:void 0!==i?`failed with exit code ${i}`:"failed")({timedOut:u,timeout:f,errorCode:o&&o.code,signal:i,signalDescription:p,exitCode:s,isCanceled:l}),h=`Command ${m}: ${a}`,g="[object Error]"===Object.prototype.toString.call(o),y=g?`${h}\n${o.message}`:h,b=[y,r,e].filter(Boolean).join("\n");return g?(o.originalMessage=o.message,o.message=b):o=new Error(b),o.shortMessage=y,o.command=a,o.escapedCommand=c,o.exitCode=s,o.signal=i,o.signalDescription=p,o.stdout=e,o.stderr=r,void 0!==n&&(o.all=n),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=Boolean(u),o.isCanceled=l,o.killed=d&&!u,o},uu}var hu,gu={exports:{}};function yu(){if(hu)return gu.exports;hu=1;const e=["stdin","stdout","stderr"],t=t=>{if(!t)return;const{stdio:r}=t;if(void 0===r)return e.map(e=>t[e]);if((t=>e.some(e=>void 0!==t[e]))(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${e.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeof r)return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);const n=Math.max(r.length,e.length);return Array.from({length:n},(e,t)=>r[t])};return gu.exports=t,gu.exports.node=e=>{const r=t(e);return"ipc"===r?"ipc":void 0===r||"string"==typeof r?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]},gu.exports}var bu,vu,wu,Su,Eu,_u,xu={exports:{}},Ou={exports:{}};function Au(){return bu||(bu=1,(e=Ou).exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),Ou.exports;var e}function Tu(){if(Su)return wu;Su=1;const t=e,r=function(){if(vu)return xu.exports;vu=1;var e=re.process;const t=function(e){return 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};if(t(e)){var r,n=a,o=Au(),s=/^win/i.test(e.platform),c=i;"function"!=typeof c&&(c=c.EventEmitter),e.__signal_exit_emitter__?r=e.__signal_exit_emitter__:((r=e.__signal_exit_emitter__=new c).count=0,r.emitted={}),r.infinite||(r.setMaxListeners(1/0),r.infinite=!0),xu.exports=function(e,o){if(!t(re.process))return function(){};n.equal(typeof e,"function","a callback must be provided for exit handler"),!1===f&&p();var i="exit";return o&&o.alwaysLast&&(i="afterexit"),r.on(i,e),function(){r.removeListener(i,e),0===r.listeners("exit").length&&0===r.listeners("afterexit").length&&u()}};var u=function(){f&&t(re.process)&&(f=!1,o.forEach(function(t){try{e.removeListener(t,d[t])}catch(e){}}),e.emit=g,e.reallyExit=m,r.count-=1)};xu.exports.unload=u;var l=function(e,t,n){r.emitted[e]||(r.emitted[e]=!0,r.emit(e,t,n))},d={};o.forEach(function(n){d[n]=function(){t(re.process)&&e.listeners(n).length===r.count&&(u(),l("exit",null,n),l("afterexit",null,n),s&&"SIGHUP"===n&&(n="SIGINT"),e.kill(e.pid,n))}}),xu.exports.signals=function(){return o};var f=!1,p=function(){!f&&t(re.process)&&(f=!0,r.count+=1,o=o.filter(function(t){try{return e.on(t,d[t]),!0}catch(e){return!1}}),e.emit=y,e.reallyExit=h)};xu.exports.load=p;var m=e.reallyExit,h=function(r){t(re.process)&&(e.exitCode=r||0,l("exit",e.exitCode,null),l("afterexit",e.exitCode,null),m.call(e,e.exitCode))},g=e.emit,y=function(r,n){if("exit"===r&&t(re.process)){void 0!==n&&(e.exitCode=n);var o=g.apply(this,arguments);return l("exit",e.exitCode,null),l("afterexit",e.exitCode,null),o}return g.apply(this,arguments)}}else xu.exports=function(){return function(){}};return xu.exports}(),n=(e,t,r,n)=>{if(!o(t,r,n))return;const i=c(r),s=setTimeout(()=>{e("SIGKILL")},i);s.unref&&s.unref()},o=(e,{forceKillAfterTimeout:t},r)=>s(e)&&!1!==t&&r,s=e=>e===t.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),c=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e};return wu={spawnedKill:(e,t="SIGTERM",r={})=>{const o=e(t);return n(e,t,r,o),o},spawnedCancel:(e,t)=>{e.kill()&&(t.isCanceled=!0)},setupTimeout:(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(0===t||void 0===t)return n;let o;const i=new Promise((n,i)=>{o=setTimeout(()=>{((e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,i)},t)}),s=n.finally(()=>{clearTimeout(o)});return Promise.race([i,s])},validateTimeout:({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})`)},setExitHandler:async(e,{cleanup:t,detached:n},o)=>{if(!t||n)return o;const i=r(()=>{e.kill()});return o.finally(()=>{i()})}}}var Ru,Cu,ku,Pu,Iu,Du,Lu,Mu,Nu,$u,ju,Bu,Fu,Hu,Gu,Uu,Wu={exports:{}};function Vu(){if(Cu)return Ru;Cu=1;const{PassThrough:e}=o;return Ru=t=>{t={...t};const{array:r}=t;let{encoding:n}=t;const o="buffer"===n;let i=!1;r?i=!(n||o):n=n||"utf8",o&&(n=null);const s=new e({objectMode:i});n&&s.setEncoding(n);let a=0;const c=[];return s.on("data",e=>{c.push(e),i?a=c.length:a+=e.length}),s.getBufferedValue=()=>r?c:o?Buffer.concat(c,a):c.join(""),s.getBufferedLength=()=>a,s},Ru}function Ku(){if(ku)return Wu.exports;ku=1;const{constants:e}=c,t=o,{promisify:r}=n,i=Vu(),s=r(t.pipeline);class a extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function u(t,r){if(!t)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};const{maxBuffer:n}=r,o=i(r);return await new Promise((r,i)=>{const c=t=>{t&&o.getBufferedLength()<=e.MAX_LENGTH&&(t.bufferedData=o.getBufferedValue()),i(t)};(async()=>{try{await s(t,o),r()}catch(e){c(e)}})(),o.on("data",()=>{o.getBufferedLength()>n&&c(new a)})}),o.getBufferedValue()}return Wu.exports=u,Wu.exports.buffer=(e,t)=>u(e,{...t,encoding:"buffer"}),Wu.exports.array=(e,t)=>u(e,{...t,array:!0}),Wu.exports.MaxBufferError=a,Wu.exports}function qu(){if(Iu)return Pu;Iu=1;const{PassThrough:e}=o;return Pu=function(){var t=[],r=new e({objectMode:!0});return r.setMaxListeners(0),r.add=n,r.isEmpty=function(){return 0==t.length},r.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(n),r;function n(e){return Array.isArray(e)?(e.forEach(n),this):(t.push(e),e.once("end",o.bind(null,e)),e.once("error",r.emit.bind(r,"error")),e.pipe(r,{end:!1}),this)}function o(e){!(t=t.filter(function(t){return t!==e})).length&&r.readable&&r.end()}},Pu}function zu(){if(Lu)return Du;Lu=1;const e=function(){if(_u)return Eu;_u=1;const e=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;return e.writable=t=>e(t)&&!1!==t.writable&&"function"==typeof t._write&&"object"==typeof t._writableState,e.readable=t=>e(t)&&!1!==t.readable&&"function"==typeof t._read&&"object"==typeof t._readableState,e.duplex=t=>e.writable(t)&&e.readable(t),e.transform=t=>e.duplex(t)&&"function"==typeof t._transform,Eu=e}(),t=Ku(),r=qu(),n=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},o=(e,{encoding:r,buffer:n,maxBuffer:o})=>{if(e&&n)return r?t(e,{encoding:r,maxBuffer:o}):t.buffer(e,{maxBuffer:o})};return Du={handleInput:(t,r)=>{void 0!==r&&void 0!==t.stdin&&(e(r)?r.pipe(t.stdin):t.stdin.end(r))},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=r();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},getSpawnedResult:async({stdout:e,stderr:t,all:r},{encoding:i,buffer:s,maxBuffer:a},c)=>{const u=o(e,{encoding:i,buffer:s,maxBuffer:a}),l=o(t,{encoding:i,buffer:s,maxBuffer:a}),d=o(r,{encoding:i,buffer:s,maxBuffer:2*a});try{return await Promise.all([c,u,l,d])}catch(o){return Promise.all([{error:o,signal:o.signal,timedOut:o.timedOut},n(e,u),n(t,l),n(r,d)])}},validateInputSync:({input:t})=>{if(e(t))throw new TypeError("The `input` option cannot be a stream in sync mode")}},Du}function Xu(){if(ju)return $u;ju=1;const e=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],t=/^[\w.-]+$/,r=/"/g,n=/ +/g;return $u={joinCommand:(t,r)=>e(t,r).join(" "),getEscapedCommand:(n,o)=>e(n,o).map(e=>(e=>"string"!=typeof e||t.test(e)?e:`"${e.replace(r,'\\"')}"`)(e)).join(" "),parseCommand:e=>{const t=[];for(const r of e.trim().split(n)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}}function Yu(){if(Bu)return bc.exports;Bu=1;const e=r,t=s,n=qc(),o=(Hc||(Hc=1,Fc=e=>{const t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}),Fc),i=(zc||(zc=1,function(e){const t=r,n=Tc(),o=e=>{let r;e={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...e};let o=t.resolve(e.cwd);const i=[];for(;r!==o;)i.push(t.join(o,"node_modules/.bin")),r=o,o=t.resolve(o,"..");const s=t.resolve(e.cwd,e.execPath,"..");return i.push(s),i.concat(e.path).join(t.delimiter)};e.exports=o,e.exports.default=o,e.exports.env=t=>{const r={...(t={env:process.env,...t}).env},o=n({env:r});return t.path=r[o],r[o]=e.exports(t),r}}(Xc)),Xc.exports),a=tu(),c=mu(),u=yu(),{spawnedKill:l,spawnedCancel:d,setupTimeout:f,validateTimeout:p,setExitHandler:m}=Tu(),{handleInput:h,getSpawnedResult:g,makeAllStream:y,validateInputSync:b}=zu(),{mergePromise:v,getSpawnedPromise:w}=function(){if(Nu)return Mu;Nu=1;const e=(async()=>{})().constructor.prototype,t=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(e,t)]);return Mu={mergePromise:(e,r)=>{for(const[n,o]of t){const t="function"==typeof r?(...e)=>Reflect.apply(o.value,r(),e):o.value.bind(r);Reflect.defineProperty(e,n,{...o,value:t})}return e},getSpawnedPromise:e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r})}),e.on("error",e=>{r(e)}),e.stdin&&e.stdin.on("error",e=>{r(e)})})},Mu}(),{joinCommand:S,parseCommand:E,getEscapedCommand:_}=Xu(),x=(t,r,o={})=>{const s=n._parse(t,r,o);return t=s.command,r=s.args,(o={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(o=s.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...o}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{const s=t?{...process.env,...e}:e;return r?i.env({env:s,cwd:n,execPath:o}):s})(o),o.stdio=u(o),"win32"===process.platform&&"cmd"===e.basename(t,".exe")&&r.unshift("/q"),{file:t,args:r,options:o,parsed:s}},O=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?o(t):t:void 0===r?void 0:"",A=(e,r,n)=>{const o=x(e,r,n),i=S(e,r),s=_(e,r);let u;p(o.options);try{u=t.spawn(o.file,o.args,o.options)}catch(e){const r=new t.ChildProcess,n=Promise.reject(c({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:o,timedOut:!1,isCanceled:!1,killed:!1}));return v(r,n)}const b=w(u),E=f(u,o.options,b),A=m(u,o.options,E),T={isCanceled:!1};u.kill=l.bind(null,u.kill.bind(u)),u.cancel=d.bind(null,u,T);const R=a(async()=>{const[{error:e,exitCode:t,signal:r,timedOut:n},a,l,d]=await g(u,o.options,A),f=O(o.options,a),p=O(o.options,l),m=O(o.options,d);if(e||0!==t||null!==r){const a=c({error:e,exitCode:t,signal:r,stdout:f,stderr:p,all:m,command:i,escapedCommand:s,parsed:o,timedOut:n,isCanceled:T.isCanceled,killed:u.killed});if(!o.options.reject)return a;throw a}return{command:i,escapedCommand:s,exitCode:0,stdout:f,stderr:p,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return h(u,o.options.input),u.all=y(u,o.options),v(u,R)};return bc.exports=A,bc.exports.sync=(e,r,n)=>{const o=x(e,r,n),i=S(e,r),s=_(e,r);let a;b(o.options);try{a=t.spawnSync(o.file,o.args,o.options)}catch(e){throw c({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:o,timedOut:!1,isCanceled:!1,killed:!1})}const u=O(o.options,a.stdout,a.error),l=O(o.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=c({stdout:u,stderr:l,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:s,parsed:o,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!o.options.reject)return e;throw e}return{command:i,escapedCommand:s,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},bc.exports.command=(e,t)=>{const[r,...n]=E(e);return A(r,n,t)},bc.exports.commandSync=(e,t)=>{const[r,...n]=E(e);return A.sync(r,n,t)},bc.exports.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=u.node(r),o=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:i=process.execPath,nodeOptions:s=o}=r;return A(i,[...s,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})},bc.exports}function Qu(){if(Hu)return Fu;Hu=1;var e=Yu(),t=ac();function r(r,n,o,i){if(n||t.error("Must specify a non-empty string as a command"),0===(o=[].slice.call(arguments,2)).length)i={};else{var s=o.pop();t.isObject(s)?i=s:(i={},o.push(s))}var a,c,u,l={maxBuffer:20971520,stripFinalNewline:!1,reject:!1},d={input:t.readFromPipe(),shell:!1},f=Object.assign(l,i,d),p=e.sync(n,o,f);return!function(e){if("win32"===process.platform)return e.exitCode&&e.stderr.includes("is not recognized as an internal or external command");return e.failed&&"ENOENT"===e.code}(p)?!function(e){return"string"!=typeof e.stdout||"string"!=typeof e.stderr||"number"!=typeof e.exitCode||!(0!==e.exitCode||!e.failed)}(p)?(a=p.stdout.toString(),c=p.stderr.toString(),u=p.exitCode):(a=p.stdout||"",c=p.stderr||`'${n}' encountered an error during execution`,u=void 0!==p.exitCode&&p.exitCode>0?p.exitCode:1):(a="",c="'"+n+"': command not found",u=127),u&&t.error(c,u,{silent:!0,continue:!0}),new t.ShellString(a,c,u)}return t.register("cmd",r,{cmdOptions:null,globStart:1,canReceivePipe:!0,wrapOutput:!0}),Fu=r}function Zu(){if(Uu)return Gu;Uu=1;var e=t,n=r,o=ac();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,u=c,l=0,d=null,f=null,p=o.statFollowLinks(t);try{d=e.openSync(t,"r")}catch(e){o.error("copyFileSync: could not read src file ("+t+")")}try{f=e.openSync(r,"w",p.mode)}catch(e){o.error("copyFileSync: could not write to dest file (code="+e.code+"):"+r)}for(;u===c;)u=e.readSync(d,a,0,c,l),e.writeSync(f,a,0,u),l+=u;n.preserve&&(e.fchownSync(f,p.uid,p.gid),e.futimesSync(f,p.atime,p.mtime)),e.closeSync(d),e.closeSync(f)}}function s(t,r,n,c){if(c||(c={}),!(n>=o.config.maxdepth)){n++;var u="win32"===process.platform,l=o.statFollowLinks(t);try{e.mkdirSync(r)}catch(e){if("EEXIST"!==e.code)throw e}for(var d=e.readdirSync(t),f=0;f<d.length;f++){var p,m=t+"/"+d[f],h=r+"/"+d[f],g=o.statNoFollowLinks(m);if(c.followsymlink&&a(t,m))console.error("Cycle link found."),p=e.readlinkSync(m),e.symlinkSync(p,h,u?"junction":null);else if(g.isDirectory())s(m,h,n,c);else if(g.isSymbolicLink()&&!c.followsymlink){p=e.readlinkSync(m);try{o.statNoFollowLinks(h),o.unlinkSync(h)}catch(e){}e.symlinkSync(p,h,u?"junction":null)}else g.isSymbolicLink()&&c.followsymlink?(g=o.statFollowLinks(m)).isDirectory()?s(m,h,n,c):i(m,h,c):e.existsSync(h)&&c.no_force?o.log("skipping existing file: "+d[f]):i(m,h,c)}c.preserve&&e.utimesSync(r,l.atime,l.mtime),e.chmodSync(r,l.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),u=c&&o.statFollowLinks(a);return c&&u.isDirectory()||!(r.length>1)||o.error("dest is not a directory (too many sources)"),c&&u.isFile()&&t.no_force?new o.ShellString("","",0):(r.forEach(function(c,l){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=u&&u.isDirectory()?n.join(a,n.basename(c)):a;try{o.statFollowLinks(n.dirname(a)),s(c,f,0,t)}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;u&&u.isDirectory()&&(p=n.normalize(a+"/"+n.basename(c)));var m=e.existsSync(p);if(m&&function(e,t){var r=e[t];return e.slice(0,t).some(function(e){return n.basename(e)===n.basename(r)})}(r,l))return void(t.no_force||o.error("will not overwrite just-created '"+p+"' with '"+c+"'",{continue:!0}));if(m&&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",p:"preserve"},wrapOutput:!1}),Gu=c}var Ju,el,tl,rl={};var nl,ol,il,sl,al,cl,ul,ll,dl,fl,pl,ml,hl,gl,yl,bl,vl,wl,Sl,El,_l,xl,Ol,Al,Tl,Rl,Cl,kl,Pl,Il,Dl,Ll,Ml,Nl,$l,jl,Bl,Fl,Hl,Gl,Ul,Wl,Vl,Kl,ql,zl,Xl,Yl,Ql={};function Zl(){if(nl)return Ql;nl=1;var r,n=e,o=t,i=ac();function s(e){if(!e||!o.existsSync(e))return!1;if(!i.statFollowLinks(e).isDirectory())return!1;var t=e+"/"+i.randomFileName();try{return o.writeFileSync(t," "),i.unlinkSync(t),e}catch(e){return!1}}function a(){return r||(r=s(n.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 i.register("tempdir",a,{allowGlobbing:!1,wrapOutput:!1}),Ql.tempDir=a,Ql.isCached=function(){return r},Ql.clearCache=function(){r=void 0},Ql}function Jl(){if(il)return ol;il=1;var e=r;function t(){return e.resolve(process.cwd())}return ac().register("pwd",t,{allowGlobbing:!1}),ol=t}function ed(){if(al)return sl;al=1;var e=r,n=t,o=s,i=ac(),a=Zl().tempDir,c=Jl(),u=20971520;function l(t,r,s){r=r||{};var l=i.readFromPipe();if("function"==typeof r&&(s=r,r={async:!0}),"object"==typeof r&&"function"==typeof s&&(r.async=!0),r=i.extend({silent:i.config.silent,fatal:i.config.fatal,async:!1},r),!t)try{i.error("must specify command")}catch(e){if(r.fatal)throw e;return}return r.async?function(e,t,r,n){t=i.extend({silent:i.config.silent,fatal:i.config.fatal,cwd:c().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},t);var s=o.exec(e,t,function(e,t,r){n&&(e?void 0===e.code?n(1,t,r):n(e.code,t,r):n(0,t,r))});return r&&s.stdin.end(r),t.silent||(s.stdout.pipe(process.stdout),s.stderr.pipe(process.stderr)),s}(t,r,l,s):function(t,r,s){if(!i.config.execPath)try{i.error("Unable to find a path to the node binary. Please manually set config.execPath")}catch(e){if(r.fatal)throw e;return}var l=a(),d=e.join(l,i.randomFileName()),f=e.join(l,i.randomFileName()),p=e.join(l,i.randomFileName());r=i.extend({silent:i.config.silent,fatal:i.config.fatal,cwd:c().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},r),n.existsSync(d)&&i.unlinkSync(d),n.existsSync(f)&&i.unlinkSync(f),n.existsSync(p)&&i.unlinkSync(p),r.cwd=e.resolve(r.cwd);var m={command:t,execOptions:r,pipe:s,stdoutFile:p,stderrFile:f};function h(e,t){n.writeFileSync(e,t,{encoding:"utf8",mode:parseInt("600",8)})}h(p,""),h(f,""),h(d,JSON.stringify(m));var g=[e.join(__dirname,"exec-child.js"),d];r.silent?r.stdio="ignore":r.stdio=[0,1,2];var y=0;try{delete r.shell,o.execFileSync(i.config.execPath,g,r)}catch(e){y=e.status||1}var b="",v="";"buffer"===r.encoding?(b=n.readFileSync(p),v=n.readFileSync(f)):(b=n.readFileSync(p,r.encoding),v=n.readFileSync(f,r.encoding));try{i.unlinkSync(d)}catch(e){}try{i.unlinkSync(f)}catch(e){}try{i.unlinkSync(p)}catch(e){}return 0!==y&&i.error(v,y,{continue:!0,silent:!0,fatal:r.fatal}),i.ShellString(b,v,y)}(t,r,l)}return i.register("exec",l,{unix:!1,canReceivePipe:!0,wrapOutput:!1,handlesFatalDynamically:!0}),sl=l}function td(){if(ul)return cl;ul=1;var e=r,n=t,o=sc(),i=ac();function s(t,r){t.all_deprecated&&(i.log("ls: Option -a is deprecated. Use -A instead"),t.all=!0),r=r?[].slice.call(arguments,1):["."];var s=[];function a(e,r,n){var o,a;"win32"===process.platform&&(r=r.replace(/\\/g,"/")),t.long?(n=n||(t.link?i.statFollowLinks(e):i.statNoFollowLinks(e)),s.push((o=r,(a=n).name=o,a.toString=function(){return[this.mode,this.nlink,this.uid,this.gid,this.size,this.mtime,this.name].join(" ")},a))):s.push(r)}return r.forEach(function(r){var s;try{if((s=t.link?i.statFollowLinks(r):i.statNoFollowLinks(r)).isSymbolicLink())try{var c=i.statFollowLinks(r);c.isDirectory()&&(s=c)}catch(e){}}catch(e){return void i.error("no such file or directory: "+r,2,{continue:!0})}s.isDirectory()&&!t.directory?t.recursive?o.sync(r+"/**",{onlyFiles:!1,dot:t.all,followSymbolicLinks:t.link}).forEach(function(t){e.relative(r,t)&&a(t,e.relative(r,t))}):t.all?n.readdirSync(r).forEach(function(t){a(e.join(r,t),t)}):n.readdirSync(r).forEach(function(t){"."!==t[0]&&a(e.join(r,t),t)}):a(r,r,s)}),s}return i.register("ls",s,{cmdOptions:{R:"recursive",A:"all",L:"link",a:"all_deprecated",d:"directory",l:"long"}}),cl=s}function rd(){if(hl)return ml;hl=1;var e=t,r=ac();function n(t,n){var o=[],i=r.readFromPipe();n||i||r.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(!e.existsSync(n))return void r.error("no such file or directory: "+n,{continue:!0});if(r.statFollowLinks(n).isDirectory())return void r.error("error reading '"+n+"': Is a directory",{continue:!0})}var s;s="-"===n?i:t.numLines<0?e.readFileSync(n,"utf8"):function(t,n){for(var o=r.buffer(),i=o.length,s=i,a=0,c=e.openSync(t,"r"),u=0,l="";s===i&&u<n;){s=e.readSync(c,o,0,i,a);var d=o.toString("utf8",0,s);u+=d.split("\n").length-1,l+=d,a+=s}return e.closeSync(c),l}(n,t.numLines);var c=s.split("\n"),u=""===c[c.length-1];u&&c.pop(),a=u||t.numLines<c.length,o=o.concat(c.slice(0,t.numLines))}),a&&o.push(""),o.join("\n")}return r.register("head",n,{canReceivePipe:!0,cmdOptions:{n:"numLines"}}),ml=n}function nd(){if(vl)return bl;vl=1;var e=t,n=r,o=ac();function i(t){var r=n.dirname(t);r===t&&o.error("dirname() failed: ["+t+"]"),e.existsSync(r)||i(r);try{e.mkdirSync(t,parseInt("0777",8))}catch(e){if("EEXIST"!==e.code||o.statNoFollowLinks(t).isFile())throw e}}function s(t,r){return r||o.error("no paths given"),"string"==typeof r&&(r=[].slice.call(arguments,1)),r.forEach(function(r){try{var s=o.statNoFollowLinks(r);return void(t.fullpath?s.isFile()&&o.error("cannot create directory "+r+": File exists",{continue:!0}):o.error("path already exists: "+r,{continue:!0}))}catch(e){}var a=n.dirname(r);if(e.existsSync(a)||t.fullpath)try{t.fullpath?i(n.resolve(r)):e.mkdirSync(r,parseInt("0777",8))}catch(e){var c;if("EACCES"===e.code)c="Permission denied";else{if("ENOTDIR"!==e.code&&"ENOENT"!==e.code)throw e;c="Not a directory"}o.error("cannot create directory "+r+": "+c,{continue:!0})}else o.error("no such file or directory: "+a,{continue:!0})}),""}return o.register("mkdir",s,{cmdOptions:{p:"fullpath"}}),bl=s}function od(){if(Sl)return wl;Sl=1;var e=t,r=ac();function n(t,i,s){var a;a=e.readdirSync(t);for(var c=0;c<a.length;c++){var u=t+"/"+a[c];if(r.statNoFollowLinks(u).isDirectory())n(u,i);else if(i||o(u))try{r.unlinkSync(u)}catch(e){r.error("could not remove file (code "+e.code+"): "+u,{continue:!0})}}if(!s){var l;try{for(var d=Date.now();;)try{if(l=e.rmdirSync(t),e.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(e){r.error("could not remove directory (code "+e.code+"): "+t,{continue:!0})}return l}}function o(t){var r=!0;try{var n=e.openSync(t,"a");e.closeSync(n)}catch(e){r=!1}return r}function i(e,t){return t||r.error("no paths given"),(t=[].slice.call(arguments,1)).forEach(function(t){var i;try{var s="/"===t[t.length-1]?t.slice(0,-1):t;i=r.statNoFollowLinks(s)}catch(n){return void(e.force||r.error("no such file or directory: "+t,{continue:!0}))}i.isFile()?function(e,t){t.force||o(e)?r.unlinkSync(e):r.error("permission denied: "+e,{continue:!0})}(t,e):i.isDirectory()?function(e,t){t.recursive?n(e,t.force):r.error("path is a directory",{continue:!0})}(t,e):i.isSymbolicLink()?function(e,t){var o;try{o=r.statFollowLinks(e)}catch(t){return void r.unlinkSync(e)}o.isFile()?r.unlinkSync(e):o.isDirectory()&&("/"===e[e.length-1]?t.recursive?n(e,t.force,!0):r.error("path is a directory",{continue:!0}):r.unlinkSync(e))}(t,e):i.isFIFO()&&function(e){r.unlinkSync(e)}(t)}),""}return r.register("rm",i,{cmdOptions:{f:"force",r:"recursive",R:"recursive"}}),wl=i}function id(){if(_l)return El;_l=1;var e=t,n=r,o=ac(),i=Zu(),s=od();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),u=c&&o.statFollowLinks(a);return c&&u.isDirectory()||!(r.length>1)||o.error("dest is not a directory (too many sources)"),c&&u.isFile()&&t.no_force&&o.error("dest file already exists: "+a),r.forEach(function(c,u){if(e.existsSync(c)){var l=a;if(e.existsSync(a)&&o.statFollowLinks(a).isDirectory()&&(l=n.normalize(a+"/"+n.basename(c))),e.existsSync(l)&&function(e,t){var r=e[t];return e.slice(0,t).some(function(e){return n.basename(e)===n.basename(r)})}(r,u))t.no_force||o.error("will not overwrite just-created '"+l+"' with '"+c+"'",{continue:!0});else if(e.existsSync(l)&&t.no_force)o.error("dest file already exists: "+l,{continue:!0});else if(n.resolve(c)!==n.dirname(n.resolve(l)))try{e.renameSync(c,l)}catch(e){"EXDEV"===e.code&&(i({recursive:!0},c,l),s({recursive:!0,force:!0},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"}}),El=a}function sd(){if(Ml)return Ll;Ml=1;var e=t,n=r,o=ac();function i(t,r){r||o.error("wrong arguments"),e.existsSync(n.dirname(r))||o.error("no such file or directory: "+n.dirname(r));try{return e.writeFileSync(r,this.stdout||this.toString(),"utf8"),this}catch(e){o.error("could not write to file (code "+e.code+"): "+r,{continue:!0})}}return o.register("to",i,{pipeOnly:!0,wrapOutput:!1}),Ll=i}function ad(){if($l)return Nl;$l=1;var e=t,n=r,o=ac();function i(t,r){r||o.error("wrong arguments"),e.existsSync(n.dirname(r))||o.error("no such file or directory: "+n.dirname(r));try{return e.appendFileSync(r,this.stdout||this.toString(),"utf8"),this}catch(e){o.error("could not append to file (code "+e.code+"): "+r,{continue:!0})}}return o.register("toEnd",i,{pipeOnly:!0,wrapOutput:!1}),Nl=i}function cd(){if(Bl)return jl;Bl=1;var e=t,r=ac();function n(t,n){return n?"string"==typeof n?n=[].slice.call(arguments,1):r.error("file arg should be a string file path or an Array of string file paths"):r.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;e.closeSync(e.openSync(n,"a"));var s=new Date,a=t.date||s,c=t.date||s;if(t.reference){var u=o(t.reference);u||r.error("failed to get attributess of "+t.reference),a=u.mtime,c=u.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));e.utimesSync(n,c,a)}(t,n)}),""}function o(e){try{return r.statFollowLinks(e)}catch(e){return null}}return r.register("touch",n,{cmdOptions:{a:"atime_only",c:"no_create",d:"date",m:"mtime_only",r:"reference"}}),jl=n}function ud(){if(Hl)return Fl;Hl=1;var e=t,r=ac();function n(t,n,o){var i=r.readFromPipe();i||(n||r.error("no input given"),e.existsSync(n)?r.statFollowLinks(n).isDirectory()&&r.error("error reading '"+n+"'"):r.error(n+": No such file or directory")),o&&e.existsSync(o)&&r.statFollowLinks(o).isDirectory()&&r.error(o+": Is a directory");var s=(n?e.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 r.ShellString(a).to(o),""):a}return r.register("uniq",n,{canReceivePipe:!0,cmdOptions:{i:"ignoreCase",c:"count",d:"duplicates"}}),Fl=n}function ld(){if(Ul)return Gl;Ul=1;var e=t,n=r,o=ac();o.register("which",l,{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(n.delimiter):[]}function u(t){return e.existsSync(t)&&!o.statFollowLinks(t).isDirectory()&&(a()||function(t){try{e.accessSync(t,s)}catch(e){return!1}return!0}(t))}function l(e,t){t||o.error("must specify command");var r=a(),s=c(process.env.PATH),l=[];if(t.includes("/"))u(t)&&l.push(n.resolve(t));else{var d=[""];if(r)d=c((process.env.PATHEXT||i).toUpperCase());for(var f=0;f<s.length&&(!(l.length>0)||e.all);f++){var p=n.resolve(s[f],t);r&&(p=p.toUpperCase());var m=p.match(/\.[^<>:"/|?*.]+$/);if(m&&d.includes(m[0])){if(u(p)){l.push(p);break}}else for(var h=0;h<d.length;h++){var g=p+d[h];if(u(g)){l.push(g);break}}}}return l.length>0?e.all?l:l[0]:e.all?[]:null}return Gl=l}function dd(){if(zl)return xo.exports;zl=1;var e=ac();return xo.exports=e.shell,cc(),uc(),function(){if(oc)return nc;oc=1;var e,n=t,o=r,i=ac(),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,""):i.error("You must specify a file.")),e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"}),r=[].slice.call(arguments,2),e.recursive?(a=[],r.forEach(function e(t){var r=i.statNoFollowLinks(t);r.isSymbolicLink()||(a.push(t),r.isDirectory()&&n.readdirSync(t).forEach(function(r){e(t+"/"+r)}))})):a=r,a.forEach(function(r){if(r=o.resolve(r),n.existsSync(r)||i.error("File not found: "+r),!e.recursive||!i.statNoFollowLinks(r).isSymbolicLink()){var a=i.statFollowLinks(r),c=a.isDirectory(),u=a.mode,l=u&s.TYPE_MASK,d=u;Number.isNaN(parseInt(t,8))?t.split(",").forEach(function(t){var o=/([ugoa]*)([=+-])([rwxXst]*)/i.exec(t);if(o){var a=o[1],f=o[2],p=o[3],m=a.includes("u")||"a"===a||""===a,h=a.includes("g")||"a"===a||""===a,g=a.includes("o")||"a"===a||""===a,y=p.includes("r"),b=p.includes("w"),v=p.includes("x"),w=p.includes("X"),S=p.includes("t"),E=p.includes("s");w&&c&&(v=!0);var _=0;switch(m&&(_|=(y?s.OWNER_READ:0)+(b?s.OWNER_WRITE:0)+(v?s.OWNER_EXEC:0)+(E?s.SETUID:0)),h&&(_|=(y?s.GROUP_READ:0)+(b?s.GROUP_WRITE:0)+(v?s.GROUP_EXEC:0)+(E?s.SETGID:0)),g&&(_|=(y?s.OTHER_READ:0)+(b?s.OTHER_WRITE:0)+(v?s.OTHER_EXEC:0)),S&&(_|=s.STICKY),f){case"+":d|=_;break;case"-":d&=~_;break;case"=":d=l+_,i.statFollowLinks(r).isDirectory()&&(d|=s.SETUID+s.SETGID&u);break;default:i.error("Could not recognize operator: `"+f+"`")}e.verbose&&console.log(r+" -> "+d.toString(8)),u!==d&&(!e.verbose&&e.changes&&console.log(r+" -> "+d.toString(8)),n.chmodSync(r,d),u=d)}else i.error("Invalid symbolic mode change: "+t)}):(d=l+parseInt(t,8),i.statFollowLinks(r).isDirectory()&&(d|=s.SETUID+s.SETGID&u),n.chmodSync(r,d))}}),""}i.register("chmod",a,{}),nc=a}(),Qu(),Zu(),function(){if(Ju)return rl;Ju=1;var e=r,t=ac(),n=uc();t.register("dirs",l,{wrapOutput:!1}),t.register("pushd",c,{wrapOutput:!1}),t.register("popd",u,{wrapOutput:!1});var o=[];function i(e){return/^[-+]\d+$/.test(e)}function s(e){if(i(e)){if(Math.abs(e)<o.length+1)return/^-/.test(e)?Number(e)-1:Number(e);t.error(e+": directory stack index out of range")}else t.error(e+": invalid number")}function a(){return[process.cwd()].concat(o)}function c(r,c){i(r)&&(c=r,r=""),r=t.parseOptions(r,{n:"no-cd",q:"quiet"});var u=a();if("+0"===c)return u;if(c)if(i(c)){var d=s(c);u=u.slice(d).concat(u.slice(0,d))}else r["no-cd"]?u.splice(1,0,c):u.unshift(c);else{if(!(u.length>1))return t.error("no other directory");u=u.splice(1,1).concat(u)}return r["no-cd"]?u=u.slice(1):(c=e.resolve(u.shift()),n("",c)),o=u,l(r.quiet?"-q":"")}function u(r,a){if(i(r)&&(a=r,r=""),r=t.parseOptions(r,{n:"no-cd",q:"quiet"}),!o.length)return t.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=e.resolve(o.shift());n("",c)}return l(r.quiet?"-q":"")}function l(e,r){if(i(e)&&(r=e,e=""),(e=t.parseOptions(e,{c:"clear",q:"quiet"})).clear)return o=[];var n=a();return r?((r=s(r))<0&&(r=n.length+r),e.quiet||t.log(n[r]),n[r]):(e.quiet||t.log(n.join(" ")),n)}rl.pushd=c,rl.popd=u,rl.dirs=l}(),function(){if(tl)return el;tl=1;var e=n.format,t=ac();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}t.register("echo",r,{allowGlobbing:!1}),el=r}(),ed(),function(){if(dl)return ll;dl=1;var e=r,t=ac(),n=td();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(o){var i;try{i=t.statFollowLinks(o)}catch(e){t.error("no such file or directory: "+o)}s(o),i.isDirectory()&&n({recursive:!0,all:!0,link:r.link},o).forEach(function(t){s(e.join(o,t))})}),i}t.register("find",o,{cmdOptions:{L:"link"}}),ll=o}(),function(){if(pl)return fl;pl=1;var e=t,r=ac();function n(t,n,o){var i=r.readFromPipe();o||i||r.error("no paths given",2);var s=2,a=": invalid context length argument";!0===t.beforeContext&&(s=3,t.beforeContext=Number(arguments[1]),t.beforeContext<0&&r.error(t.beforeContext+a,2)),!0===t.afterContext&&(s=3,t.afterContext=Number(arguments[1]),t.afterContext<0&&r.error(t.afterContext+a,2)),!0===t.context&&(s=3,t.context=Number(arguments[1]),t.context<0&&r.error(t.context+a,2)),"number"==typeof t.context&&(!1===t.beforeContext&&(t.beforeContext=t.context),!1===t.afterContext&&(t.afterContext=t.context)),n=arguments[s-1],o=[].slice.call(arguments,s),i&&o.unshift("-");var c=[];t.ignoreCase&&(n=new RegExp(n,"i")),o.forEach(function(o){if(e.existsSync(o)||"-"===o){var s="-"===o?i:e.readFileSync(o,"utf8");if(t.nameOnly)s.match(n)&&c.push(o);else{var a=s.split("\n"),u=[];a.forEach(function(e,r){var o=e.match(n);if(t.inverse&&!o||!t.inverse&&o){var i=r+1,s={};if(u.length>0){var c=u[u.length-1],l=Math.max(1,i-t.beforeContext-1);(c.hasOwnProperty(""+i)||c.hasOwnProperty(""+l))&&(s=c)}s[i]={line:e,match:!0},t.beforeContext>0&&a.slice(Math.max(r-t.beforeContext,0),r).forEach(function(e,t,n){var o=""+(r-n.length+t+1);s.hasOwnProperty(o)||(s[o]={line:e,match:!1})}),t.afterContext>0&&a.slice(r+1,Math.min(r+t.afterContext+1,a.length-1)).forEach(function(e,t){var n=""+(r+1+t+1);s.hasOwnProperty(n)||(s[n]={line:e,match:!1})}),u.includes(s)||u.push(s)}}),Array.prototype.push.apply(c,u.map(function(e){return Object.entries(e).map(function(e){var r=e[0],n=e[1].line,o=e[1].match;return t.lineNumber?r+(o?":":"-")+n:n}).join("\n")}))}}else r.error("no such file or directory: "+o,2,{continue:!0})}),0===c.length&&2!==r.state.errorCode&&r.error("",{silent:!0});var u="\n";return"number"!=typeof t.beforeContext&&"number"!=typeof t.afterContext||(u="\n--\n"),c.join(u)+"\n"}r.register("grep",n,{globStart:2,canReceivePipe:!0,cmdOptions:{v:"inverse",l:"nameOnly",i:"ignoreCase",n:"lineNumber",B:"beforeContext",A:"afterContext",C:"context"}}),fl=n}(),rd(),function(){if(yl)return gl;yl=1;var e=t,n=r,o=ac();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,u=c?"file":null,l=a?s:n.resolve(process.cwd(),n.dirname(i),r);e.existsSync(l)?c&&o.statFollowLinks(l).isDirectory()&&(u="junction"):o.error("Source file does not exist",{continue:!0});try{e.symlinkSync("junction"===u?l:r,i,u)}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""}o.register("ln",i,{cmdOptions:{s:"symlink",f:"force"}}),gl=i}(),td(),nd(),id(),Jl(),od(),function(){if(Ol)return xl;Ol=1;var e=t,r=ac();function n(t,n,o,i){var s=r.readFromPipe();"string"!=typeof o&&"function"!=typeof o&&("number"==typeof o?o=o.toString():r.error("invalid replacement string")),"string"==typeof n&&(n=RegExp(n)),i||s||r.error("no files given"),i=[].slice.call(arguments,3),s&&i.unshift("-");var a=[];return i.forEach(function(i){if(e.existsSync(i)||"-"===i){var c=("-"===i?s:e.readFileSync(i,"utf8")).split("\n").map(function(e){return e.replace(n,o)}).join("\n");a.push(c),t.inplace&&e.writeFileSync(i,c,"utf8")}else r.error("no such file or directory: "+i,2,{continue:!0})}),t.inplace?"":a.join("\n")}r.register("sed",n,{globStart:3,canReceivePipe:!0,cmdOptions:{i:"inplace"}}),xl=n}(),function(){if(Tl)return Al;Tl=1;var e=ac();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])})}e.register("set",t,{allowGlobbing:!1,wrapOutput:!1}),Al=t}(),function(){if(Cl)return Rl;Cl=1;var e=t,r=ac();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=r.readFromPipe();n||s||r.error("no files given"),n=[].slice.call(arguments,1),s&&n.unshift("-");var a=n.reduce(function(t,n){if("-"!==n){if(!e.existsSync(n))return r.error("no such file or directory: "+n,{continue:!0}),t;if(r.statFollowLinks(n).isDirectory())return r.error("read failed: "+n+": Is a directory",{continue:!0}),t}var o="-"===n?s:e.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"}r.register("sort",s,{canReceivePipe:!0,cmdOptions:{r:"reverse",n:"numerical"}}),Rl=s}(),function(){if(Pl)return kl;Pl=1;var e=t,r=ac();function n(t,n){var o=[],i=r.readFromPipe();n||i||r.error("no paths given");var s=1,a=!1;!0===t.numLines?(s=2,"+"===arguments[1][0]&&(a=!0),t.numLines=Number(arguments[1])):!1===t.numLines&&(t.numLines=10),"+"===arguments[0].numLines[0]&&(a=!0),t.numLines=-1*Math.abs(t.numLines),n=[].slice.call(arguments,s),i&&n.unshift("-");var c=!1;return n.forEach(function(n){if("-"!==n){if(!e.existsSync(n))return void r.error("no such file or directory: "+n,{continue:!0});if(r.statFollowLinks(n).isDirectory())return void r.error("error reading '"+n+"': Is a directory",{continue:!0})}var s=("-"===n?i:e.readFileSync(n,"utf8")).split("\n");""===s[s.length-1]?(s.pop(),c=!0):c=!1,o=o.concat(a?s.slice(-t.numLines-1):s.slice(t.numLines))}),c&&o.push(""),o.join("\n")}r.register("tail",n,{canReceivePipe:!0,cmdOptions:{n:"numLines"}}),kl=n}(),Zl(),function(){if(Dl)return Il;Dl=1;var e=t,r=ac();function n(t,n){n||r.error("no path given");var o=!1;if(Object.keys(t).forEach(function(e){!0===t[e]&&(o=!0)}),o||r.error("could not interpret expression"),t.link)try{return r.statNoFollowLinks(n).isSymbolicLink()}catch(e){return!1}if(!e.existsSync(n))return!1;if(t.exists)return!0;var i=r.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()}r.register("test",n,{cmdOptions:{b:"block",c:"character",d:"directory",e:"exists",f:"file",L:"link",p:"pipe",S:"socket"},wrapOutput:!1,allowGlobbing:!1}),Il=n}(),sd(),ad(),cd(),ud(),ld(),xo.exports.exit=function(t){e.state.error=null,e.state.errorCode=0,t?(e.error("exit",{continue:!0,code:t,prefix:"",silent:!0,fatal:!1}),process.exit(t)):process.exit()},xo.exports.error=function(){if(Vl)return Wl;Vl=1;var e=ac();return Wl=function(){return e.state.error}}(),xo.exports.errorCode=function(){if(ql)return Kl;ql=1;var e=ac();return Kl=function(){return e.state.errorCode}}(),xo.exports.ShellString=e.ShellString,xo.exports.env=process.env,xo.exports.config=e.config,xo.exports}function fd(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)}!function(){if(Yl)return Eo;Yl=1,function(){if(Xl)return _o;Xl=1;var e=dd(),t=ac();Object.keys(e).forEach(function(t){re[t]=e[t]});var r=sd();String.prototype.to=t.wrap("to",r);var n=ad();String.prototype.toEnd=t.wrap("toEnd",n)}(),re.config.fatal=!0,re.target={};var e,t=process.argv.slice(2),r=t.indexOf("--");r>-1&&(e=t.slice(r+1,t.length),t=t.slice(0,r)),setTimeout(function(){var r;if(1!==t.length||"--help"!==t[0]){for(r in re.target)(function(e,t){re.target[e]=function(){return t.done||(t.done=!0,t.result=t.apply(t,arguments)),t.result}})(r,re.target[r]);t.length>0?t.forEach(function(t){t in re.target?re.target[t](e):console.log("no such target: "+t)}):"all"in re.target&&re.target.all(e)}else for(r in console.log("Available targets:"),re.target)console.log(" "+r)},0)}();const pd=(e,t)=>{const r=gd(md(e));if("string"!=typeof r)throw new TypeError(`${t} must be a string or a file URL: ${r}.`);return r},md=e=>hd(e)?e.toString():e,hd=e=>"string"!=typeof e&&e&&Object.getPrototypeOf(e)===String.prototype,gd=e=>e instanceof URL?w(e):e,yd=(e,t=[],r={})=>{const n=pd(e,"First argument"),[o,i]=fd(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(!fd(i))throw new TypeError(`Last argument must be an options object: ${i}`);return[n,s,i]},{toString:bd}=Object.prototype,vd=e=>"[object Uint8Array]"===bd.call(e),wd=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Sd=new TextEncoder,Ed=e=>Sd.encode(e),_d=new TextDecoder,xd=e=>_d.decode(e),Od=(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?Ed(e):e).map(e=>r.write(e)),o=r.end();return""===o?n:[...n,o]},Ad=e=>1===e.length&&vd(e[0])?e[0]:Rd(Td(e)),Td=e=>e.map(e=>"string"==typeof e?Ed(e):e),Rd=e=>{const t=new Uint8Array(Cd(e));let r=0;for(const n of e)t.set(n,r),r+=n.length;return t},Cd=e=>{let t=0;for(const r of e)t+=r.length;return t},kd=({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}=Pd(o,e.raw[n]),c=Ld(r,i,s);if(n===t.length)return c;const u=t[n],l=Array.isArray(u)?u.map(e=>Md(e)):[Md(u)];return Ld(c,l,a)},Pd=(e,t)=>{if(0===t.length)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};const r=[];let n=0;const o=Id.has(t[0]);for(let o=0,i=0;o<e.length;o+=1,i+=1){const s=t[i];if(Id.has(s))n!==o&&r.push(e.slice(n,o)),n=o+1;else if("\\"===s){const e=t[i+1];"\n"===e?(o-=1,i+=1):"u"===e&&"{"===t[i+2]?i=t.indexOf("}",i+3):i+=Dd[e]??1}}const i=n===e.length;return i||r.push(e.slice(n)),{nextTokens:r,leadingWhitespaces:o,trailingWhitespaces:i}},Id=new Set([" ","\t","\r","\n"]),Dd={x:3,u:5},Ld=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],Md=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if(fd(e)&&("stdout"in e||"isMaxBuffer"in e))return Nd(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`)},Nd=({stdout:e})=>{if("string"==typeof e)return e;if(vd(e))return xd(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`)},$d=e=>jd.includes(e),jd=[I.stdin,I.stdout,I.stderr],Bd=["stdin","stdout","stderr"],Fd=e=>Bd[e]??`stdio[${e}]`,Hd=(e,t)=>{const r=Array.from({length:Gd(e)+1}),n=Ud(e[t],r,t);return Yd(n,t)},Gd=({stdio:e})=>Array.isArray(e)?Math.max(e.length,Bd.length):Bd.length,Ud=(e,t,r)=>fd(e)?Wd(e,t,r):t.fill(e),Wd=(e,t,r)=>{for(const n of Object.keys(e).sort(Vd))for(const o of qd(n,r,t))t[o]=e[n];return t},Vd=(e,t)=>Kd(e)<Kd(t)?1:-1,Kd=e=>"stdout"===e||"stderr"===e?0:"all"===e?2:1,qd=(e,t,r)=>{if("ipc"===e)return[r.length-1];const n=zd(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]},zd=e=>{if("all"===e)return e;if(Bd.includes(e))return Bd.indexOf(e);const t=Xd.exec(e);return null!==t?Number(t[1]):void 0},Xd=/^fd(\d+)$/,Yd=(e,t)=>e.map(e=>void 0===e?Qd[t]:e),Qd={lines:!1,buffer:!0,maxBuffer:1e8,verbose:A("execa").enabled?"full":"none",stripFinalNewline:!0},Zd=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],Jd=(e,t)=>"ipc"===t?e.at(-1):e[t],ef=({verbose:e},t)=>"none"!==rf(e,t),tf=({verbose:e},t)=>!["none","short"].includes(rf(e,t)),rf=(e,t)=>void 0===t?nf(e):Jd(e,t),nf=e=>e.find(e=>of(e))??sf.findLast(t=>e.includes(t)),of=e=>"function"==typeof e,sf=["none","short","full"],af=e=>T(e).split("\n").map(e=>cf(e)).join("\n"),cf=e=>e.replaceAll(lf,e=>uf(e)),uf=e=>{const t=df[e];if(void 0!==t)return t;const r=e.codePointAt(0),n=r.toString(16);return r<=ff?`\\u${n.padStart(4,"0")}`:`\\U${n}`},lf=(()=>{try{return new RegExp("\\p{Separator}|\\p{Other}","gu")}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}})(),df={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},ff=65535,pf=e=>mf.test(e)?e:"win32"===D?`"${e.replaceAll('"','""')}"`:`'${e.replaceAll("'","'\\''")}'`,mf=/^[\w./-]+$/;const hf={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:"╱"},gf={...hf,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:"⅒"},yf={...hf,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"},bf=function(){const{env:e}=I,{TERM:t,TERM_PROGRAM:r}=e;return"win32"!==I.platform?"linux"!==t:Boolean(e.WT_SESSION)||Boolean(e.TERMINUS_SUBLIME)||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===r||"vscode"===r||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}(),vf=bf?gf:yf,wf=$?.WriteStream?.prototype?.hasColors?.()??!1,Sf=(e,t)=>{if(!wf)return e=>e;const r=`[${e}m`,n=`[${t}m`;return e=>{const o=e+"";let i=o.indexOf(n);if(-1===i)return r+o+n;let s=r,a=0;const c=(22===t?n:"")+r;for(;-1!==i;)s+=o.slice(a,i)+c,a=i+n.length,i=o.indexOf(n,a);return s+=o.slice(a)+n,s}},Ef=Sf(1,22),_f=Sf(90,39),xf=Sf(91,39),Of=Sf(93,39),Af=e=>`${Tf(e.getHours(),2)}:${Tf(e.getMinutes(),2)}:${Tf(e.getSeconds(),2)}.${Tf(e.getMilliseconds(),3)}`,Tf=(e,t)=>String(e).padStart(t,"0"),Rf=({failed:e,reject:t})=>e?t?vf.cross:vf.warning:vf.tick,Cf={command:({piped:e})=>e?"|":"$",output:()=>" ",ipc:()=>"*",error:Rf,duration:Rf},kf=e=>e,Pf={command:()=>Ef,output:()=>kf,ipc:()=>kf,error:({reject:e})=>e?xf:Of,duration:()=>_f},If=(e,t,r)=>{const n=(({verbose:e},t)=>{const r=rf(e,t);return of(r)?r:void 0})(t,r);return e.map(({verboseLine:e,verboseObject:t})=>Df(e,t,n)).filter(e=>void 0!==e).map(e=>Lf(e)).join("")},Df=(e,t,r)=>{if(void 0===r)return e;const n=r(e,t);return"string"==typeof n?n:void 0},Lf=e=>e.endsWith("\n")?e:`${e}\n`,Mf=({type:e,verboseMessage:t,fdNumber:r,verboseInfo:n,result:o})=>{const i=Nf({type:e,result:o,verboseInfo:n}),s=$f(t,i),a=If(s,n,r);""!==a&&console.warn(a.slice(0,-1))},Nf=({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}),$f=(e,t)=>e.split("\n").map(e=>jf({...t,message:e})),jf=e=>({verboseLine:(({type:e,message:t,timestamp:r,piped:n,commandId:o,result:{failed:i=!1}={},options:{reject:s=!0}})=>{const a=Af(r),c=Cf[e]({failed:i,reject:s,piped:n}),u=Pf[e]({reject:s});return`${_f(`[${a}]`)} ${_f(`[${o}]`)} ${u(c)} ${u(t)}`})(e),verboseObject:e}),Bf=e=>{const t="string"==typeof e?e:R(e);return af(t).replaceAll("\t"," ".repeat(Ff))},Ff=2,Hf=e=>ef({verbose:e})?Gf++:void 0;let Gf=0n;const Uf=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(!sf.includes(t)&&!of(t)){const e=sf.map(e=>`'${e}'`).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e} or a function.`)}}},Wf=()=>L.bigint(),Vf=e=>Number(L.bigint()-e)/1e6,Kf=(e,t,r)=>{const n=Wf(),{command:o,escapedCommand:i}=((e,t)=>{const r=[e,...t];return{command:r.join(" "),escapedCommand:r.map(e=>pf(cf(e))).join(" ")}})(e,t),s=((e,t,r)=>(Uf(e),{verbose:e,escapedCommand:t,commandId:Hf(e),rawOptions:r}))(Hd(r,"verbose"),i,{...r});return((e,t)=>{ef(t)&&Mf({type:"command",verboseMessage:e,verboseInfo:t})})(i,s),{command:o,escapedCommand:i,startTime:n,verboseInfo:s}};var qf=ne(qc());function zf(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"}function Xf(e){return e instanceof URL?w(e):e}C(E);const Yf=(e,t,r)=>{for(const n of function(e){return{*[Symbol.iterator](){let t,r=u.resolve(Xf(e));for(;t!==r;)yield r,t=r,r=u.resolve(r,"..")}}}(r)){const r=u.join(n,"node_modules/.bin");t.includes(r)||e.push(r)}},Qf=(e,t,r,n)=>{const o=u.resolve(n,Xf(r),"..");t.includes(o)||e.push(o)},Zf=({env:e=I.env,...t}={})=>{const r=zf({env:e={...e}});return t.path=e[r],e[r]=(({cwd:e=I.cwd(),path:t=I.env[zf()],preferLocal:r=!0,execPath:n=I.execPath,addExecPath:o=!0}={})=>{const i=u.resolve(Xf(e)),s=[],a=t.split(u.delimiter);return r&&Yf(s,a,i),o&&Qf(s,a,n,i),""===t||t===u.delimiter?`${s.join(u.delimiter)}${t}`:[...s,t].join(u.delimiter)})(t),e};class Jf extends Error{}const ep=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,tp,{value:!0,writable:!1,enumerable:!1,configurable:!1})},tp=Symbol("isExecaError"),rp=e=>"[object Error]"===Object.prototype.toString.call(e);class np extends Error{}ep(np,np.name);class op extends Error{}ep(op,op.name);const ip=(e,t)=>({name:`SIGRT${t+1}`,number:sp+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),sp=34,ap=64,cp=[{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"}],up=()=>{const e=(()=>{const e=ap-sp+1;return Array.from({length:e},ip)})();return[...cp,...e].map(lp)},lp=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=H,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:o,standard:i}},dp=({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}],fp=(()=>{const e=up();return Object.fromEntries(e.map(dp))})(),pp=(e,t)=>{const r=mp(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}}},mp=(e,t)=>{const r=t.find(({name:t})=>H.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e)};(()=>{const e=up(),t=ap+1,r=Array.from({length:t},(t,r)=>pp(r,e));Object.assign({},...r)})();const hp=e=>0===e?e:gp(e,"`subprocess.kill()`'s argument"),gp=(e,t)=>{if(Number.isInteger(e))return yp(e,t);if("string"==typeof e)return vp(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${wp()}`)},yp=(e,t)=>{if(bp.has(e))return bp.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${wp()}`)},bp=new Map(Object.entries(H.signals).reverse().map(([e,t])=>[t,e])),vp=(e,t)=>{if(e in H.signals)return e;if(e.toUpperCase()in H.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${wp()}`)},wp=()=>`Available signal names: ${Sp()}.\nAvailable signal numbers: ${Ep()}.`,Sp=()=>Object.keys(H.signals).sort().map(e=>`'${e}'`).join(", "),Ep=()=>[...new Set(Object.values(H.signals).sort((e,t)=>e-t))].join(", "),_p=e=>fp[e].description,xp=5e3,Op=({kill:e,options:{forceKillAfterDelay:t,killSignal:r},onInternalError:n,context:o,controller:i},s,a)=>{const{signal:c,error:u}=Ap(s,a,r);Tp(u,n);const l=e(c);return Rp({kill:e,signal:c,forceKillAfterDelay:t,killSignal:r,killResult:l,context:o,controller:i}),l},Ap=(e,t,r)=>{const[n=r,o]=rp(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&&!rp(o))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${o}`);return{signal:hp(n),error:o}},Tp=(e,t)=>{void 0!==e&&t.reject(e)},Rp=async({kill:e,signal:t,forceKillAfterDelay:r,killSignal:n,killResult:o,context:i,controller:s})=>{t===n&&o&&Cp({kill:e,forceKillAfterDelay:r,context:i,controllerSignal:s.signal})},Cp=async({kill:e,forceKillAfterDelay:t,context:r,controllerSignal:n})=>{if(!1!==t)try{await j(t,void 0,{signal:n}),e("SIGKILL")&&(r.isForcefullyTerminated??=!0)}catch{}},kp=async(e,t)=>{e.aborted||await G(e,"abort",{signal:t})},Pp=({subprocess:e,cancelSignal:t,gracefulCancel:r,context:n,controller:o})=>void 0===t||r?[]:[Ip(e,t,n,o)],Ip=async(e,t,r,{signal:n})=>{throw await kp(t,n),r.terminationReason??="cancel",e.kill(),t.reason},Dp=({methodName:e,isSubprocess:t,ipc:r,isConnected:n})=>{Lp(e,t,r),Mp(e,t,n)},Lp=(e,t,r)=>{if(!r)throw new Error(`${Fp(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},Mp=(e,t,r)=>{if(!r)throw new Error(`${Fp(e,t)} cannot be used: the ${Gp(t)} has already exited or disconnected.`)},Np=(e,t)=>new Error(`${Fp("sendMessage",t)} failed when sending an acknowledgment response to the ${Gp(t)}.`,{cause:e}),$p=({code:e,message:t})=>jp.has(e)||Bp.some(e=>t.includes(e)),jp=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),Bp=["could not be cloned","circular structure","call stack size exceeded"],Fp=(e,t,r="")=>"cancelSignal"===e?"`cancelSignal`'s `controller.abort()`":`${Hp(t)}${e}(${r})`,Hp=e=>e?"":"subprocess.",Gp=e=>e?"parent process":"subprocess",Up=e=>{e.connected&&e.disconnect()},Wp=()=>{const e={},t=new Promise((t,r)=>{Object.assign(e,{resolve:t,reject:r})});return Object.assign(t,e)},Vp=(e,t="stdin")=>{const r=!0,{options:n,fileDescriptors:o}=qp.get(e),i=zp(o,t,r),s=e.stdio[i];if(null===s)throw new TypeError(Qp(i,t,n,r));return s},Kp=(e,t="stdout")=>{const r=!1,{options:n,fileDescriptors:o}=qp.get(e),i=zp(o,t,r),s="all"===i?e.all:e.stdio[i];if(null==s)throw new TypeError(Qp(i,t,n,r));return s},qp=new WeakMap,zp=(e,t,r)=>{const n=Xp(t,r);return Yp(n,t,r,e),n},Xp=(e,t)=>{const r=zd(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(`"${em(t)}" must not be "${e}".\nIt must be ${n} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${o}".`)},Yp=(e,t,r,n)=>{const o=n[Jp(e)];if(void 0===o)throw new TypeError(`"${em(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(`"${em(r)}" must not be ${t}. It must be a readable stream, not writable.`);if("input"!==o.direction&&r)throw new TypeError(`"${em(r)}" must not be ${t}. It must be a writable stream, not readable.`)},Qp=(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}=Zp(e,r);return`The "${o}: ${tm(i)}" option is incompatible with using "${em(n)}: ${tm(t)}".\nPlease set this option with "pipe" instead.`},Zp=(e,{stdin:t,stdout:r,stderr:n,stdio:o})=>{const i=Jp(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]}},Jp=e=>"all"===e?1:e,em=e=>e?"to":"from",tm=e=>"string"==typeof e?`'${e}'`:"number"==typeof e?`${e}`:"Stream",rm=(e,t,r)=>{const n=e.getMaxListeners();0!==n&&n!==Number.POSITIVE_INFINITY&&(e.setMaxListeners(n+t),U(r,()=>{e.setMaxListeners(e.getMaxListeners()-t)}))},nm=(e,t)=>{t&&om(e)},om=e=>{e.refCounted()},im=(e,t)=>{t&&sm(e)},sm=e=>{e.unrefCounted()},am=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n},o)=>{if(ym(o)||Mm(o))return;um.has(e)||um.set(e,[]);const i=um.get(e);if(i.push(o),!(i.length>1))for(;i.length>0;){await _m(e,n,o),await B.yield();const s=await gm({wrappedMessage:i[0],anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n});i.shift(),n.emit("message",s),n.emit("message:done")}},cm=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n,boundOnMessage:o})=>{$m();const i=um.get(e);for(;i?.length>0;)await G(n,"message:done");e.removeListener("message",o),((e,t)=>{t&&(om(e),om(e))})(t,r),n.connected=!1,n.emit("disconnect")},um=new WeakMap,lm=(e,t,r)=>{if(dm.has(e))return dm.get(e);const n=new W;return n.connected=!0,dm.set(e,n),fm({ipcEmitter:n,anyProcess:e,channel:t,isSubprocess:r}),n},dm=new WeakMap,fm=({ipcEmitter:e,anyProcess:t,channel:r,isSubprocess:n})=>{const o=am.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e});t.on("message",o),t.once("disconnect",cm.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e,boundOnMessage:o})),((e,t)=>{t&&(sm(e),sm(e))})(r,n)},pm=e=>{const t=dm.get(e);return void 0===t?null!==e.channel:t.connected};let mm=0n;const hm=(e,t)=>{if(t?.type===Sm&&!t.hasListeners)for(const{id:t}of e)void 0!==t&&vm[t].resolve({isDeadlock:!0,hasListeners:!1})},gm=async({wrappedMessage:e,anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:o})=>{if(e?.type!==Sm||!t.connected)return e;const{id:i,message:s}=e,a={id:i,type:Em,message:Om(t,o)};try{await Tm({anyProcess:t,channel:r,isSubprocess:n,ipc:!0},a)}catch(e){o.emit("strict:error",e)}return s},ym=e=>{if(e?.type!==Em)return!1;const{id:t,message:r}=e;return vm[t]?.resolve({isDeadlock:!1,hasListeners:r}),!0},bm=async(e,t,r)=>{if(e?.type!==Sm)return;const n=Wp();vm[e.id]=n;const o=new AbortController;try{const{isDeadlock:e,hasListeners:i}=await Promise.race([n,wm(t,r,o)]);e&&(e=>{throw new Error(`${Fp("sendMessage",e)} failed: the ${Gp(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${Fp("getOneMessage",e)},\n\t${Fp("sendMessage",e,"message, {strict: true}")},\n]);`)})(r),i||(e=>{throw new Error(`${Fp("sendMessage",e)} failed: the ${Gp(e)} is not listening to incoming messages.`)})(r)}finally{o.abort(),delete vm[e.id]}},vm={},wm=async(e,t,{signal:r})=>{rm(e,1,r),await G(e,"disconnect",{signal:r}),(e=>{throw new Error(`${Fp("sendMessage",e)} failed: the ${Gp(e)} exited without listening to incoming messages.`)})(t)},Sm="execa:ipc:request",Em="execa:ipc:response",_m=async(e,t,r)=>{for(;!Om(e,t)&&xm.get(e)?.size>0;){const t=[...xm.get(e)];hm(t,r),await Promise.all(t.map(({onMessageSent:e})=>e))}},xm=new WeakMap,Om=(e,t)=>t.listenerCount("message")>Am(e),Am=e=>qp.has(e)&&!Jd(qp.get(e).options.buffer,"ipc")?1:0,Tm=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},o,{strict:i=!1}={})=>{const s="sendMessage";return Dp({methodName:s,isSubprocess:r,ipc:n,isConnected:e.connected}),Rm({anyProcess:e,channel:t,methodName:s,isSubprocess:r,message:o,strict:i})},Rm=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=lm(e,t,r),s=Om(e,i);return{id:mm++,type:Sm,message:n,hasListeners:s}})({anyProcess:e,channel:t,isSubprocess:n,message:o,strict:i}),a=((e,t,r)=>{xm.has(e)||xm.set(e,new Set);const n=xm.get(e),o={onMessageSent:Wp(),id:r?t.id:void 0};return n.add(o),{outgoingMessages:n,outgoingMessage:o}})(e,s,i);try{await Cm({anyProcess:e,methodName:r,isSubprocess:n,wrappedMessage:s,message:o})}catch(t){throw Up(e),t}finally{(({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()})(a)}},Cm=async({anyProcess:e,methodName:t,isSubprocess:r,wrappedMessage:n,message:o})=>{const i=km(e);try{await Promise.all([bm(n,e,r),i(n)])}catch(e){throw(({error:e,methodName:t,isSubprocess:r})=>{if("EPIPE"===e.code)throw new Error(`${Fp(t,r)} cannot be used: the ${Gp(r)} is disconnecting.`,{cause:e})})({error:e,methodName:t,isSubprocess:r}),(({error:e,methodName:t,isSubprocess:r,message:n})=>{if($p(e))throw new Error(`${Fp(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}},km=e=>{if(Pm.has(e))return Pm.get(e);const t=C(e.send.bind(e));return Pm.set(e,t),t},Pm=new WeakMap,Im=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>(await Dm({anyProcess:e,channel:t,isSubprocess:r,ipc:n}),jm.signal),Dm=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>{Lm||(Lm=!0,n?null!==t?(lm(e,t,r),await B.yield()):$m():(()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")})())};let Lm=!1;const Mm=e=>e?.type===Nm&&(jm.abort(e.message),!0),Nm="execa:ipc:cancel",$m=()=>{jm.abort(new Error(`\`cancelSignal\` aborted: the ${Gp(!0)} disconnected.`))},jm=new AbortController,Bm=({subprocess:e,cancelSignal:t,gracefulCancel:r,forceKillAfterDelay:n,context:o,controller:i})=>r?[Fm({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:o,controller:i})]:[],Fm=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:n,controller:{signal:o}})=>{await kp(t,o);const i=Hm(t);throw await((e,t)=>{const r="cancelSignal";return Mp(r,!1,e.connected),Cm({anyProcess:e,methodName:r,isSubprocess:!1,wrappedMessage:{type:Nm,message:t},message:t})})(e,i),Cp({kill:e.kill,forceKillAfterDelay:r,context:n,controllerSignal:o}),n.terminationReason??="gracefulCancel",t.reason},Hm=({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},Gm=(e,t,r,n)=>0===t||void 0===t?[]:[Um(e,t,r,n)],Um=async(e,t,r,{signal:n})=>{throw await j(t,void 0,{signal:n}),r.terminationReason??="timeout",e.kill(),new Jf},Wm={advanced:e=>{try{q(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})}}},Vm=async(e,t)=>{void 0!==t&&await e.sendMessage(t)},Km=new Set(["utf8","utf16le"]),qm=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),zm=new Set([...Km,...qm]),Xm=e=>{if(null===e)return"buffer";if("string"!=typeof e)return;const t=e.toLowerCase();return t in Ym?Ym[t]:zm.has(t)?t:void 0},Ym={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},Qm=e=>"string"==typeof e?`"${e}"`:String(e),Zm=()=>{try{return I.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},Jm=(e,t,r)=>{r.cwd=((e=Zm())=>{const t=pd(e,'The "cwd" option');return u.resolve(t)})(r.cwd);const[n,o,i]=((e,t,{node:r=!1,nodePath:n=M,nodeOptions:o=N.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 c=pd(n,'The "nodePath" option'),l=u.resolve(i,c),d={...a,nodePath:l,node:r,cwd:i};if(!r)return[e,t,d];if("node"===u.basename(e,".exe"))throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');return[l,[...o,e,...t],{ipc:!0,...d,shell:!1}]})(e,t,r),{command:s,args:a,options:c}=qf._parse(n,o,i),l=(e=>{const t={...e};for(const r of Zd)t[r]=Hd(e,r);return t})(c),d=eh(l);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})`)})(d),(({encoding:e})=>{if(zm.has(e))return;const t=Xm(e);if(void 0!==t)throw new TypeError(`Invalid option \`encoding: ${Qm(e)}\`.\nPlease rename it to ${Qm(t)}.`);const r=[...zm].map(e=>Qm(e)).join(", ");throw new TypeError(`Invalid option \`encoding: ${Qm(e)}\`.\nPlease rename it to one of: ${r}.`)})(d),(({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`.");Wm[r](e)}})(d),(({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)}`)})(d),(({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.")}})(d),d.shell=gd(d.shell),d.env=th(d),d.killSignal=(e=>{const t="option `killSignal`";if(0===e)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return gp(e,t)})(d.killSignal),d.forceKillAfterDelay=(e=>{if(!1===e)return e;if(!0===e)return xp;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})(d.forceKillAfterDelay),d.lines=d.lines.map((e,t)=>e&&!qm.has(d.encoding)&&d.buffer[t]),"win32"===I.platform&&"cmd"===u.basename(s,".exe")&&a.unshift("/q"),{file:s,commandArguments:a,options:d}},eh=({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:u="SIGTERM",forceKillAfterDelay:l=!0,gracefulCancel:d=!1,ipcInput:f,ipc:p=void 0!==f||d,serialization:m="advanced",...h})=>({...h,extendEnv:e,preferLocal:t,cwd:r,localDirectory:n,encoding:o,reject:i,cleanup:s,all:a,windowsHide:c,killSignal:u,forceKillAfterDelay:l,gracefulCancel:d,ipcInput:f,ipc:p,serialization:m}),th=({env:e,extendEnv:t,preferLocal:r,node:n,localDirectory:o,nodePath:i})=>{const s=t?{...I.env,...e}:e;return r||n?Zf({env:s,cwd:o,execPath:i,preferLocal:r,addExecPath:n}):s},rh=(e,t,r)=>r.shell&&t.length>0?[[e,...t].join(" "),[],r]:[e,t,r];function nh(e){if("string"==typeof e)return oh(e);if(!ArrayBuffer.isView(e)||1!==e.BYTES_PER_ELEMENT)throw new Error("Input must be a string or a Uint8Array");return ih(e)}const oh=e=>e.at(-1)===sh?e.slice(0,e.at(-2)===ch?-2:-1):e,ih=e=>e.at(-1)===ah?e.subarray(0,e.at(-2)===uh?-2:-1):e,sh="\n",ah=sh.codePointAt(0),ch="\r",uh=ch.codePointAt(0);function lh(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 dh(e,{checkOpen:t=!0}={}){return lh(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 fh(e,{checkOpen:t=!0}={}){return lh(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 ph(e,t){return dh(e,t)&&fh(e,t)}const mh=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class hh{#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 gh=Symbol();function yh(){return this[gh].next()}function bh(e){return this[gh].return(e)}Object.defineProperty(yh,"name",{value:"next"}),Object.defineProperty(bh,"name",{value:"return"});const vh=Object.create(mh,{next:{enumerable:!0,configurable:!0,writable:!0,value:yh},return:{enumerable:!0,configurable:!0,writable:!0,value:bh}});function wh({preventCancel:e=!1}={}){const t=this.getReader(),r=new hh(t,e),n=Object.create(vh);return n[gh]=r,n}const Sh=e=>{if(fh(e,{checkOpen:!1})&&void 0!==Oh.on)return _h(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===Eh.call(e))return wh.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:Eh}=Object.prototype,_h=async function*(e){const t=new AbortController,r={};xh(e,t,r);try{for await(const[r]of Oh.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()}},xh=async(e,t,r)=>{try{await Oh.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){r.error=e}finally{t.abort()}},Oh={},Ah=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,finalize:a},{maxBuffer:c=Number.POSITIVE_INFINITY}={})=>{const u=Sh(e),l=t();l.length=0;try{for await(const e of u){const t=r[kh(e)](e,l);Rh({convertedChunk:t,state:l,getSize:n,truncateChunk:o,addChunk:i,maxBuffer:c})}return Th({state:l,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,maxBuffer:c}),a(l)}catch(e){const t="object"==typeof e&&null!==e?e:new Error(e);throw t.bufferedData=a(l),t}},Th=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:o,maxBuffer:i})=>{const s=o(e);void 0!==s&&Rh({convertedChunk:s,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:i})},Rh=({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 Ch(e,t,o,a);const c=n(e,i-t.length);throw void 0!==c&&Ch(c,t,o,i),new Ih},Ch=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},kh=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=Ph.call(e);return"[object ArrayBuffer]"===r?"arrayBuffer":"[object DataView]"===r?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===Ph.call(e.buffer)?"typedArray":"others"},{toString:Ph}=Object.prototype;class Ih extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const Dh=e=>e,Lh=()=>{},Mh=({contents:e})=>e,Nh=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},$h=e=>e.length;const jh={init:()=>({contents:[]}),convertChunk:{string:Dh,buffer:Dh,arrayBuffer:Dh,dataView:Dh,typedArray:Dh,others:Dh},getSize:()=>1,truncateChunk:Lh,addChunk:(e,{contents:t})=>(t.push(e),t),getFinalChunk:Lh,finalize:Mh};const Bh=new TextEncoder,Fh=e=>new Uint8Array(e),Hh=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Gh=(e,t)=>{if(t<=e.byteLength)return e;const r=new ArrayBuffer(Wh(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},Uh=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;const r=new ArrayBuffer(t,{maxByteLength:Wh(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},Wh=e=>Vh**Math.ceil(Math.log(e)/Math.log(Vh)),Vh=2,Kh=()=>"resize"in ArrayBuffer.prototype,qh={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:e=>Bh.encode(e),buffer:Fh,arrayBuffer:Fh,dataView:Hh,typedArray:Hh,others:Nh},getSize:$h,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t,length:r},n)=>{const o=Kh()?Uh(t,n):Gh(t,n);return new Uint8Array(o).set(e,r),o},getFinalChunk:Lh,finalize:({contents:e,length:t})=>Kh()?e:e.slice(0,t)};const zh=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),Xh={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:Dh,buffer:zh,arrayBuffer:zh,dataView:zh,typedArray:zh,others:Nh},getSize:$h,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:Mh},Yh=(e,t,r)=>e?"objects":t?"lines":"buffer"===r?"bytes":"characters",Qh=(e,t,r)=>{if(t.length!==r)return;const n=new Ih;throw n.maxBufferInfo={fdNumber:"ipc"},n},Zh=(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=Jd(t,r);return"ipc"===r?{streamName:"IPC output",threshold:o,unit:"messages"}:{streamName:Fd(r),threshold:o,unit:n}},Jh=([,e])=>e,eg=({originalError:e,timedOut:t,timeout:r,isMaxBuffer:n,maxBuffer:o,errorCode:i,signal:s,signalDescription:a,exitCode:c,isCanceled:u,isGracefullyCanceled:l,isForcefullyTerminated:d,forceKillAfterDelay:f,killSignal:p})=>{const m=tg(d,f);return t?`Command timed out after ${r} milliseconds${m}`:l?void 0===s?`Command was gracefully canceled with exit code ${c}`:d?`Command was gracefully canceled${m}`:`Command was gracefully canceled with ${s} (${a})`:u?`Command was canceled${m}`:n?`${((e,t)=>{const{streamName:r,threshold:n,unit:o}=Zh(e,t);return`Command's ${r} was larger than ${n} ${o}`})(e,o)}${m}`:void 0!==i?`Command failed with ${i}${m}`:d?`Command was killed with ${p} (${_p(p)})${m}`:void 0!==s?`Command was killed with ${s} (${a})`:void 0!==c?`Command failed with exit code ${c}`:"Command failed"},tg=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",rg=(e,t)=>{if(e instanceof Jf)return;const r=(e=>rp(e)&&tp in e)(e)?e.originalMessage:String(e?.message??e),n=af(((e,t)=>{if(t===Zm())return e;let r;try{r=d(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""===n?void 0:n},ng=e=>"string"==typeof e?e:R(e),og=e=>Array.isArray(e)?e.map(e=>nh(ig(e))).filter(Boolean).join("\n"):ig(e),ig=e=>"string"==typeof e?e:vd(e)?xd(e):"",sg=({command:e,escapedCommand:t,stdio:r,all:n,ipcOutput:o,options:{cwd:i},startTime:s})=>lg({command:e,escapedCommand:t,cwd:i,durationMs:Vf(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:[]}),ag=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,isSync:s})=>cg({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}),cg=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:u,signal:l,stdio:d,all:f,ipcOutput:p,options:{timeoutDuration:m,timeout:h=m,forceKillAfterDelay:g,killSignal:y,cwd:b,maxBuffer:v},isSync:w})=>{const{exitCode:S,signal:E,signalDescription:_}=dg(u,l),{originalMessage:x,shortMessage:O,message:A}=(({stdio:e,all:t,ipcOutput:r,originalError:n,signal:o,signalDescription:i,exitCode:s,escapedCommand:a,timedOut:c,isCanceled:u,isGracefullyCanceled:l,isMaxBuffer:d,isForcefullyTerminated:f,forceKillAfterDelay:p,killSignal:m,maxBuffer:h,timeout:g,cwd:y})=>{const b=n?.code,v=eg({originalError:n,timedOut:c,timeout:g,isMaxBuffer:d,maxBuffer:h,errorCode:b,signal:o,signalDescription:i,exitCode:s,isCanceled:u,isGracefullyCanceled:l,isForcefullyTerminated:f,forceKillAfterDelay:p,killSignal:m}),w=rg(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=>ng(e)).join("\n")].map(e=>af(nh(og(e)))).filter(Boolean).join("\n\n");return{originalMessage:w,shortMessage:S,message:E}})({stdio:d,all:f,ipcOutput:p,originalError:e,signal:E,signalDescription:_,exitCode:S,escapedCommand:r,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,forceKillAfterDelay:g,killSignal:y,maxBuffer:v,timeout:h,cwd:b}),T=((e,t,r)=>new(r?op:np)(t,e instanceof Jf?{}:{cause:e}))(e,A,w);return Object.assign(T,ug({error:T,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:S,signal:E,signalDescription:_,stdio:d,all:f,ipcOutput:p,cwd:b,originalMessage:x,shortMessage:O})),T},ug=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:u,signal:l,signalDescription:d,stdio:f,all:p,ipcOutput:m,cwd:h,originalMessage:g,shortMessage:y})=>lg({shortMessage:y,originalMessage:g,command:t,escapedCommand:r,cwd:h,durationMs:Vf(n),failed:!0,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isTerminated:void 0!==l,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:u,signal:l,signalDescription:d,code:e.cause?.code,stdout:f[1],stderr:f[2],all:p,stdio:f,ipcOutput:m,pipedFrom:[]}),lg=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e)),dg=(e,t)=>{const r=null===t?void 0:t;return{exitCode:null===e?void 0:e,signal:r,signalDescription:void 0===r?void 0:_p(t)}},fg=e=>Number.isFinite(e)?e:0;function pg(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(fg(1e3*e)%1e3),nanoseconds:Math.trunc(fg(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 mg(e,t){const r="bigint"==typeof e;if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");const n=e<0?"-":"";e=e<0?-e:e,(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 o=[];const i=(e,r,n,i)=>{if(0!==o.length&&t.colonNotation||!(e=>0===e||0n===e)(e)||t.colonNotation&&"m"===n){if(i??=String(e),t.colonNotation){const e=i.includes(".")?i.split(".")[0].length:i.length,t=o.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):n;o.push(i)}},s=pg(e),a=BigInt(s.days);if(t.hideYearAndDays?i(24n*BigInt(a)+BigInt(s.hours),"hour","h"):(t.hideYear?i(a,"day","d"):(i(a/365n,"year","y"),i(a%365n,"day","d")),i(Number(s.hours),"hour","h")),i(Number(s.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){const e=Number(s.seconds),r=Number(s.milliseconds),n=Number(s.microseconds),o=Number(s.nanoseconds);if(i(e,"second","s"),t.formatSubMilliseconds)i(r,"millisecond","ms"),i(n,"microsecond","µs"),i(o,"nanosecond","ns");else{const e=r+n/1e3+o/1e6,s="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,a=e>=1?Math.round(e):Math.ceil(e),c=s?e.toFixed(s):a;i(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),o=t.keepDecimalsOnWholeSeconds?n:n.replace(/\.0+$/,"");i(Number.parseFloat(o),"second","s",o)}if(0===o.length)return n+"0"+(t.verbose?" milliseconds":"ms");const c=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(o=o.slice(0,Math.max(t.unitCount,1))),n+o.join(c)}const hg=(e,t)=>{ef(t)&&(((e,t)=>{e.failed&&Mf({type:"error",verboseMessage:e.shortMessage,verboseInfo:t,result:e})})(e,t),gg(e,t))},gg=(e,t)=>{const r=`(done in ${mg(e.durationMs)})`;Mf({type:"duration",verboseMessage:r,verboseInfo:t,result:e})},yg=(e,t,{reject:r})=>{if(hg(e,t),e.failed&&r)throw e;return e},bg=(e,t)=>Tg(e)?"asyncGenerator":Rg(e)?"generator":kg(e)?"fileUrl":Pg(e)?"filePath":$g(e)?"webStream":lh(e,{checkOpen:!1})?"native":vd(e)?"uint8Array":Bg(e)?"asyncIterable":Fg(e)?"iterable":jg(e)?Sg({},t):Cg(e)?vg(e,t):"native",vg=(e,t)=>ph(e.transform,{checkOpen:!1})?wg(e,t):jg(e.transform)?Sg(e,t):xg(e,t),wg=(e,t)=>(Eg(e,t,"Duplex stream"),"duplex"),Sg=(e,t)=>(Eg(e,t,"web TransformStream"),"webTransform"),Eg=({final:e,binary:t,objectMode:r},n,o)=>{_g(e,`${n}.final`,o),_g(t,`${n}.binary`,o),Og(r,`${n}.objectMode`)},_g=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${r}.`)},xg=({transform:e,final:t,binary:r,objectMode:n},o)=>{if(void 0!==e&&!Ag(e))throw new TypeError(`The \`${o}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(ph(t,{checkOpen:!1}))throw new TypeError(`The \`${o}.final\` option must not be a Duplex stream.`);if(jg(t))throw new TypeError(`The \`${o}.final\` option must not be a web TransformStream.`);if(void 0!==t&&!Ag(t))throw new TypeError(`The \`${o}.final\` option must be a generator.`);return Og(r,`${o}.binary`),Og(n,`${o}.objectMode`),Tg(e)||Tg(t)?"asyncGenerator":"generator"},Og=(e,t)=>{if(void 0!==e&&"boolean"!=typeof e)throw new TypeError(`The \`${t}\` option must use a boolean.`)},Ag=e=>Tg(e)||Rg(e),Tg=e=>"[object AsyncGeneratorFunction]"===Object.prototype.toString.call(e),Rg=e=>"[object GeneratorFunction]"===Object.prototype.toString.call(e),Cg=e=>fd(e)&&(void 0!==e.transform||void 0!==e.final),kg=e=>"[object URL]"===Object.prototype.toString.call(e),Pg=e=>fd(e)&&Object.keys(e).length>0&&Object.keys(e).every(e=>Ig.has(e))&&Dg(e.file),Ig=new Set(["file","append"]),Dg=e=>"string"==typeof e,Lg=new Set(["ipc","ignore","inherit","overlapped","pipe"]),Mg=e=>"[object ReadableStream]"===Object.prototype.toString.call(e),Ng=e=>"[object WritableStream]"===Object.prototype.toString.call(e),$g=e=>Mg(e)||Ng(e),jg=e=>Mg(e?.readable)&&Ng(e?.writable),Bg=e=>Hg(e)&&"function"==typeof e[Symbol.asyncIterator],Fg=e=>Hg(e)&&"function"==typeof e[Symbol.iterator],Hg=e=>"object"==typeof e&&null!==e,Gg=new Set(["generator","asyncGenerator","duplex","webTransform"]),Ug=new Set(["fileUrl","filePath","fileNumber"]),Wg=new Set(["fileUrl","filePath"]),Vg=new Set([...Wg,"webStream","nodeStream"]),Kg=new Set(["webTransform","duplex"]),qg={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"},zg=(e,t,r,n)=>"output"===n?Xg(e,t,r):Yg(e,t,r),Xg=(e,t,r)=>{const n=0!==t&&r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:e??n}},Yg=(e,t,r)=>{const n=0===t?!0===e:r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:t!==r.length-1&&(e??n)}},Qg=(e,t,r,{encoding:n})=>{const o=e.filter(({type:e})=>Gg.has(e)),i=Array.from({length:o.length});for(const[e,s]of Object.entries(o))i[e]=Zg({stdioItem:s,index:Number(e),newTransforms:i,optionName:t,direction:r,encoding:n});return ry(i,r)},Zg=({stdioItem:e,stdioItem:{type:t},index:r,newTransforms:n,optionName:o,direction:i,encoding:s})=>"duplex"===t?Jg({stdioItem:e,optionName:o}):"webTransform"===t?ey({stdioItem:e,index:r,newTransforms:n,direction:i}):ty({stdioItem:e,index:r,newTransforms:n,direction:i,encoding:s}),Jg=({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}}},ey=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:o})=>{const{transform:i,objectMode:s}=fd(t)?t:{transform:t},{writableObjectMode:a,readableObjectMode:c}=zg(s,r,n,o);return{...e,value:{transform:i,writableObjectMode:a,readableObjectMode:c}}},ty=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:o,encoding:i})=>{const{transform:s,final:a,binary:c=!1,preserveNewlines:u=!1,objectMode:l}=fd(t)?t:{transform:t},d=c||qm.has(i),{writableObjectMode:f,readableObjectMode:p}=zg(l,r,n,o);return{...e,value:{transform:s,final:a,binary:d,preserveNewlines:u,writableObjectMode:f,readableObjectMode:p}}},ry=(e,t)=>"input"===t?e.reverse():e,ny=({type:e,value:t},r)=>oy[r]??ay[e](t),oy=["input","output","output"],iy=()=>{},sy=()=>"input",ay={generator:iy,asyncGenerator:iy,fileUrl:iy,filePath:iy,iterable:sy,asyncIterable:sy,uint8Array:sy,webStream:e=>Ng(e)?"output":"input",nodeStream:e=>fh(e,{checkOpen:!1})?dh(e,{checkOpen:!1})?void 0:"input":"output",webTransform:iy,duplex:iy,native(e){const t=cy(e);return void 0!==t?t:lh(e,{checkOpen:!1})?ay.nodeStream(e):void 0}},cy=e=>[0,I.stdin].includes(e)?"input":[1,2,I.stdout,I.stderr].includes(e)?"output":void 0,uy="output",ly=(e,t)=>{if(void 0===e)return Bd.map(e=>t[e]);if(dy(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Bd.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,Bd.length);return Array.from({length:r},(t,r)=>e[r])},dy=e=>Bd.some(t=>void 0!==e[t]),fy=(e,t)=>Array.isArray(e)?e.map(e=>fy(e,t)):null==e?t>=Bd.length?"ignore":"pipe":e,py=(e,t,r)=>e.map((e,n)=>t[n]||0===n||tf(r,n)||!my(e)?e:"ignore"),my=e=>"pipe"===e||Array.isArray(e)&&e.every(e=>"pipe"===e),hy=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n,direction:o})=>{const i=gy({value:t,optionName:r,fdNumber:n,direction:o});if(void 0!==i)return i;if(lh(t,{checkOpen:!1}))throw new TypeError(`The \`${r}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e},gy=({value:e,optionName:t,fdNumber:r,direction:n})=>{const o=yy(e,r);if(void 0!==o){if("output"===n)return{type:"fileNumber",value:o,optionName:t};if($.isatty(o))throw new TypeError(`The \`${t}: ${tm(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:wd(f(o)),optionName:t}}},yy=(e,t)=>{if("inherit"===e)return t;if("number"==typeof e)return e;const r=jd.indexOf(e);return-1!==r?r:void 0},by=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n})=>"inherit"===t?{type:"nodeStream",value:vy(n,t,r),optionName:r}:"number"==typeof t?{type:"nodeStream",value:vy(t,t,r),optionName:r}:lh(t,{checkOpen:!1})?{type:"nodeStream",value:t,optionName:r}:e,vy=(e,t,r)=>{const n=jd[e];if(void 0===n)throw new TypeError(`The \`${r}: ${t}\` option is invalid: no such standard stream.`);return n},wy=({input:e,inputFile:t},r)=>0===r?[...Sy(e),..._y(t)]:[],Sy=e=>void 0===e?[]:[{type:Ey(e),value:e,optionName:"input"}],Ey=e=>{if(fh(e,{checkOpen:!1}))return"nodeStream";if("string"==typeof e)return"string";if(vd(e))return"uint8Array";throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},_y=e=>void 0===e?[]:[{...xy(e),optionName:"inputFile"}],xy=e=>{if(kg(e))return{type:"fileUrl",value:e};if(Dg(e))return{type:"filePath",value:{file:e}};throw new Error("The `inputFile` option must be a file path string or a file URL.")},Oy=(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})=>{Wg.has(t)&&Ty({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})},Ty=({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})=>{const i=e.filter(e=>Ry(e,r));if(0===i.length)return;const s=i.find(e=>e.direction!==o);return ky(s,n,t),"output"===o?i[0].stream:void 0},Ry=({type:e,value:t},r)=>"filePath"===e?t.file===r.file:"fileUrl"===e?t.href===r.href:t===r,Cy=({otherStdioItems:e,type:t,value:r,optionName:n})=>{const o=e.find(({value:{transform:e}})=>e===r.transform);ky(o,n,t)},ky=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${qg[r]} that is the same.`)},Py=(e,t,r,n)=>{const o=(({stdio:e,ipc:t,buffer:r,...n},o,i)=>{const s=ly(e,n).map((e,t)=>fy(e,t));return i?py(s,r,o):((e,t)=>t&&!e.includes("ipc")?[...e,"ipc"]:e)(s,t)})(t,r,n),i=o.map((e,r)=>Iy({stdioOption:e,fdNumber:r,options:t,isSync:n})),s=Fy({initialFileDescriptors:i,addProperties:e,options:t,isSync:n});return t.stdio=s.map(({stdioItems:e})=>Wy(e)),s},Iy=({stdioOption:e,fdNumber:t,options:r,isSync:n})=>{const o=Fd(t),{stdioItems:i,isStdioArray:s}=Dy({stdioOption:e,fdNumber:t,options:r,optionName:o}),a=((e,t,r)=>{const n=e.map(e=>ny(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)??uy})(i,t,o),c=i.map(e=>(({stdioItem:e,stdioItem:{type:t},isStdioArray:r,fdNumber:n,direction:o,isSync:i})=>r&&"native"===t?i?hy({stdioItem:e,fdNumber:n,direction:o}):by({stdioItem:e,fdNumber:n}):e)({stdioItem:e,isStdioArray:s,fdNumber:t,direction:a,isSync:n})),u=((e,t,r,n)=>[...e.filter(({type:e})=>!Gg.has(e)),...Qg(e,t,r,n)])(c,o,a,r),l=((e,t)=>{const r=e.findLast(({type:e})=>Gg.has(e));return void 0!==r&&("input"===t?r.value.writableObjectMode:r.value.readableObjectMode)})(u,a);return By(u,l),{direction:a,objectMode:l,stdioItems:u}},Dy=({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=>Ly(e,n)),...wy(r,t)]),i=o.length>1;return My(o,i,n),$y(o),{stdioItems:o,isStdioArray:i}},Ly=(e,t)=>({type:bg(e,t),value:e,optionName:t}),My=(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(Ny.has(t))throw new Error(`The \`${r}\` option must not include \`${t}\`.`)},Ny=new Set(["ignore","ipc"]),$y=e=>{for(const t of e)jy(t)},jy=({type:e,value:t,optionName:r})=>{if((e=>kg(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&&!Lg.has(t))(e,t))throw new TypeError(`The \`${r}: { file: '...' }\` option must be used instead of \`${r}: '...'\`.`)},By=(e,t)=>{if(!t)return;const r=e.find(({type:e})=>Ug.has(e));if(void 0!==r)throw new TypeError(`The \`${r.optionName}\` option cannot use both files and transforms in objectMode.`)},Fy=({initialFileDescriptors:e,addProperties:t,options:r,isSync:n})=>{const o=[];try{for(const i of e)o.push(Hy({fileDescriptor:i,fileDescriptors:o,addProperties:t,options:r,isSync:n}));return o}catch(e){throw Uy(o),e}},Hy=({fileDescriptor:{direction:e,objectMode:t,stdioItems:r},fileDescriptors:n,addProperties:o,options:i,isSync:s})=>{const a=r.map(t=>Gy({stdioItem:t,addProperties:o,direction:e,options:i,fileDescriptors:n,isSync:s}));return{direction:e,objectMode:t,stdioItems:a}},Gy=({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=Oy(o,e);if(0!==s.length){if(!i)return Vg.has(e)?Ty({otherStdioItems:s,type:e,value:t,optionName:r,direction:n}):void(Kg.has(e)&&Cy({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)}},Uy=e=>{for(const{stdioItems:t}of e)for(const{stream:e}of t)void 0===e||$d(e)||e.destroy()},Wy=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"},Vy=({type:e,optionName:t})=>{Ky(t,qg[e])},Ky=(e,t)=>{throw new TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},qy={generator(){},asyncGenerator:Vy,webStream:Vy,nodeStream:Vy,webTransform:Vy,duplex:Vy,asyncIterable:Vy,native:({optionName:e,value:t})=>("ipc"!==t&&"overlapped"!==t||Ky(e,`"${t}"`),{})},zy={input:{...qy,fileUrl:({value:e})=>({contents:[wd(f(e))]}),filePath:({value:{file:e}})=>({contents:[wd(f(e))]}),fileNumber:Vy,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...qy,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e,append:t}})=>({path:e,append:t}),fileNumber:({value:e})=>({path:e}),iterable:Vy,string:Vy,uint8Array:Vy}},Xy=(e,{stripFinalNewline:t},r)=>Yy(t,r)&&void 0!==e&&!Array.isArray(e)?nh(e):e,Yy=(e,t)=>"all"===t?e[1]||e[2]:e[t],Qy=(e,t,r,n)=>e||r?void 0:eb(t,n),Zy=(e,t,r)=>r?e.flatMap(e=>Jy(e,t)):Jy(e,t),Jy=(e,t)=>{const{transform:r,final:n}=eb(t,{});return[...r(e),...n()]},eb=(e,t)=>(t.previousChunks="",{transform:tb.bind(void 0,t,e),final:nb.bind(void 0,t)}),tb=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=rb(r,i,t,e);let a=r.slice(o+1,i+1-s);n.length>0&&(a=sb(n,a),n=""),yield a,o=i}o!==r.length-1&&(n=sb(n,r.slice(o+1))),e.previousChunks=n},rb=(e,t,r,n)=>r?0:(n.isWindowsNewline=0!==t&&"\r"===e[t-1],n.isWindowsNewline?2:1),nb=function*({previousChunks:e}){e.length>0&&(yield e)},ob=({binary:e,preserveNewlines:t,readableObjectMode:r,state:n})=>e||t||r?void 0:{transform:ib.bind(void 0,n)},ib=function*({isWindowsNewline:e=!1},t){const{unixNewline:r,windowsNewline:n,LF:o,concatBytes:i}="string"==typeof t?ab:cb;if(t.at(-1)===o)return void(yield t);const s=e?n:r;yield i(t,s)},sb=(e,t)=>`${e}${t}`,ab={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:sb},cb={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}},ub=(e,t)=>e?void 0:lb.bind(void 0,t),lb=function*(e,t){if("string"!=typeof t&&!vd(t)&&!ee.isBuffer(t))throw new TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},db=(e,t)=>e?fb.bind(void 0,t):pb.bind(void 0,t),fb=function*(e,t){mb(e,t),yield t},pb=function*(e,t){if(mb(e,t),"string"!=typeof t&&!vd(t))throw new TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},mb=(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; }`)},hb=(e,t,r)=>{if(r)return;if(e)return{transform:gb.bind(void 0,new TextEncoder)};const n=new O(t);return{transform:yb.bind(void 0,n),final:bb.bind(void 0,n)}},gb=function*(e,t){ee.isBuffer(t)?yield wd(t):"string"==typeof t?yield e.encode(t):yield t},yb=function*(e,t){yield vd(t)?e.write(t):t},bb=function*(e){const t=e.end();""!==t&&(yield t)},vb=k(async(e,t,r,n)=>{t.currentIterable=e(...r);try{for await(const e of t.currentIterable)n.push(e)}finally{delete t.currentIterable}}),wb=async function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=xb}=t[r];for await(const o of n(e))yield*wb(o,t,r+1)},Sb=async function*(e){for(const[t,{final:r}]of Object.entries(e))yield*Eb(r,Number(t),e)},Eb=async function*(e,t,r){if(void 0!==e)for await(const n of e())yield*wb(n,r,t+1)},_b=k(async({currentIterable:e},t)=>{if(void 0===e){if(t)throw t}else await(t?e.throw(t):e.return())}),xb=function*(e){yield e},Ob=(e,t,r,n)=>{try{for(const n of e(...t))r.push(n);n()}catch(e){n(e)}},Ab=(e,t)=>[...t.flatMap(t=>[...Tb(t,e,0)]),...Rb(e)],Tb=function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=kb}=t[r];for(const o of n(e))yield*Tb(o,t,r+1)},Rb=function*(e){for(const[t,{final:r}]of Object.entries(e))yield*Cb(r,Number(t),e)},Cb=function*(e,t,r){if(void 0!==e)for(const n of e())yield*Tb(n,r,t+1)},kb=function*(e){yield e},Pb=({value:e,value:{transform:t,final:r,writableObjectMode:n,readableObjectMode:o},optionName:i},{encoding:s})=>{const a={},c=Db(e,s,i),u=Tg(t),l=Tg(r),d=u?vb.bind(void 0,wb,a):Ob.bind(void 0,Tb),f=u||l?vb.bind(void 0,Sb,a):Ob.bind(void 0,Rb),p=u||l?_b.bind(void 0,a):void 0;return{stream:new z({writableObjectMode:n,writableHighWaterMark:X(n),readableObjectMode:o,readableHighWaterMark:X(o),transform(e,t,r){d([e,c,0],this,r)},flush(e){f([c],this,e)},destroy:p})}},Ib=(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=Db(t,r,n);e=Ab(o,e)}return e},Db=({transform:e,final:t,binary:r,writableObjectMode:n,readableObjectMode:o,preserveNewlines:i},s,a)=>{const c={};return[{transform:ub(n,a)},hb(r,s,n),Qy(r,i,n,c),{transform:e,final:t},{transform:db(o,a)},ob({binary:r,preserveNewlines:i,readableObjectMode:o,state:c})].filter(Boolean)},Lb=e=>new Set(Object.entries(e).filter(([,{direction:e}])=>"input"===e).map(([e])=>Number(e))),Mb=(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 ${qg[e]} with synchronous methods.`)}const i=o.map(({contents:e})=>e).map(e=>Nb(e,n));r.input=Ad(i)},Nb=(e,t)=>{const r=Ib(e,t,"utf8",!0);return $b(r),Ad(r)},$b=e=>{const t=e.find(e=>"string"!=typeof e&&!vd(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}.`)},jb=({stdioItems:e,encoding:t,verboseInfo:r,fdNumber:n})=>"all"!==n&&tf(r,n)&&!qm.has(t)&&Bb(n)&&(e.some(({type:e,value:t})=>"native"===e&&Fb.has(t))||e.every(({type:e})=>Gg.has(e))),Bb=e=>1===e||2===e,Fb=new Set(["pipe","overlapped"]),Hb=e=>e._readableState.pipes.length>0,Gb=(e,t,r)=>{const n=Bf(e);Mf({type:"output",verboseMessage:n,fdNumber:t,verboseInfo:r})},Ub=({result:e,fileDescriptors:t,fdNumber:r,state:n,outputFiles:o,isMaxBuffer:i,verboseInfo:s},{buffer:a,encoding:c,lines:u,stripFinalNewline:l,maxBuffer:d})=>{if(null===e)return;const f=((e,t,r)=>{if(!t)return e;const n=Jh(r);return e.length>n?e.slice(0,n):e})(e,i,d),p=wd(f),{stdioItems:m,objectMode:h}=t[r],g=Wb([p],m,c,n),{serializedResult:y,finalResult:b=y}=Vb({chunks:g,objectMode:h,encoding:c,lines:u,stripFinalNewline:l,fdNumber:r});Kb({serializedResult:y,fdNumber:r,state:n,verboseInfo:s,encoding:c,stdioItems:m,objectMode:h});const v=a[r]?b:void 0;try{return void 0===n.error&&qb(y,m,o),v}catch(e){return n.error=e,v}},Wb=(e,t,r,n)=>{try{return Ib(e,t,r,!1)}catch(t){return n.error=t,e}},Vb=({chunks:e,objectMode:t,encoding:r,lines:n,stripFinalNewline:o,fdNumber:i})=>{if(t)return{serializedResult:e};if("buffer"===r)return{serializedResult:Ad(e)};const s=((e,t)=>Od(e,t).join(""))(e,r);return n[i]?{serializedResult:s,finalResult:Zy(s,!o[i],t)}:{serializedResult:s}},Kb=({serializedResult:e,fdNumber:t,state:r,verboseInfo:n,encoding:o,stdioItems:i,objectMode:s})=>{if(!jb({stdioItems:i,encoding:o,verboseInfo:n,fdNumber:t}))return;const a=Zy(e,!1,s);try{((e,t,r)=>{for(const n of e)Gb(n,t,r)})(a,t,n)}catch(e){r.error??=e}},qb=(e,t,r)=>{for(const{path:n,append:o}of t.filter(({type:e})=>Ug.has(e))){const t="string"==typeof n?n:n.toString();o||r.has(t)?p(n,e):(r.add(t),m(n,e))}},zb=async e=>{const[t,r]=await Promise.allSettled([G(e,"spawn"),G(e,"exit")]);return"rejected"===t.status?[]:"rejected"===r.status?Xb(e):r.value},Xb=async e=>{try{return await G(e,"exit")}catch{return Xb(e)}},Yb=async e=>{const[t,r]=await e;if(!Qb(t,r)&&Zb(t,r))throw new Jf;return[t,r]},Qb=(e,t)=>void 0===e&&void 0===t,Zb=(e,t)=>0!==e||null!==t,Jb=({error:e,status:t,signal:r,output:n},{maxBuffer:o})=>{const i=ev(e,t,r),s="ETIMEDOUT"===i?.code,a=((e,t,r)=>"ENOBUFS"===e?.code&&null!==t&&t.some(e=>null!==e&&e.length>Jh(r)))(i,n,o);return{resultError:i,exitCode:t,signal:r,timedOut:s,isMaxBuffer:a}},ev=(e,t,r)=>void 0!==e?e:Zb(t,r)?new Jf:void 0,tv=(e,t,r)=>{const{command:n,escapedCommand:o,startTime:i,verboseInfo:s}=Kf(e,t,r),a=rv(r),{file:c,commandArguments:u,options:l}=Jm(e,t,a);nv(l);const d=((e,t)=>Py(zy,e,t,!0))(l,s);return{file:c,commandArguments:u,command:n,escapedCommand:o,startTime:i,verboseInfo:s,options:l,fileDescriptors:d}},rv=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,nv=({ipc:e,ipcInput:t,detached:r,cancelSignal:n})=>{t&&ov("ipcInput"),e&&ov("ipc: true"),r&&ov("detached: true"),n&&ov("cancelSignal")},ov=e=>{throw new TypeError(`The "${e}" option cannot be used with synchronous methods.`)},iv=({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,verboseInfo:i,fileDescriptors:s,startTime:a})=>{const c=sv({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,fileDescriptors:s,startTime:a});if(c.failed)return c;const{resultError:u,exitCode:l,signal:d,timedOut:f,isMaxBuffer:p}=Jb(c,r),{output:m,error:h=u}=(({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)=>Ub({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}),g=m.map((e,t)=>Xy(e,r,t)),y=Xy((([,e,t],r)=>{if(r.all)return void 0===e?t:void 0===t?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,Xy(t,r,"all")]:Array.isArray(t)?[Xy(e,r,"all"),...t]:vd(e)&&vd(t)?Rd([e,t]):`${e}${t}`})(m,r),r,"all");return cv({error:h,exitCode:l,signal:d,timedOut:f,isMaxBuffer:p,stdio:g,all:y,options:r,command:n,escapedCommand:o,startTime:a})},sv=({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,fileDescriptors:i,startTime:s})=>{try{((e,t)=>{for(const r of Lb(e))Mb(e,r,t)})(i,r);const n=av(r);return _(...rh(e,t,n))}catch(e){return ag({error:e,command:n,escapedCommand:o,fileDescriptors:i,options:r,startTime:s,isSync:!0})}},av=({encoding:e,maxBuffer:t,...r})=>({...r,encoding:"buffer",maxBuffer:Jh(t)}),cv=({error:e,exitCode:t,signal:r,timedOut:n,isMaxBuffer:o,stdio:i,all:s,options:a,command:c,escapedCommand:u,startTime:l})=>void 0===e?sg({command:c,escapedCommand:u,stdio:i,all:s,ipcOutput:[],options:a,startTime:l}):cg({error:e,command:c,escapedCommand:u,timedOut:n,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:o,isForcefullyTerminated:!1,exitCode:t,signal:r,stdio:i,all:s,ipcOutput:[],options:a,startTime:l,isSync:!0}),uv=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:o=!0,filter:i}={})=>(Dp({methodName:"getOneMessage",isSubprocess:r,ipc:n,isConnected:pm(e)}),lv({anyProcess:e,channel:t,isSubprocess:r,filter:i,reference:o})),lv=async({anyProcess:e,channel:t,isSubprocess:r,filter:n,reference:o})=>{nm(t,o);const i=lm(e,t,r),s=new AbortController;try{return await Promise.race([dv(i,n,s),fv(i,r,s),pv(i,r,s)])}catch(t){throw Up(e),t}finally{s.abort(),im(t,o)}},dv=async(e,t,{signal:r})=>{if(void 0===t){const[t]=await G(e,"message",{signal:r});return t}for await(const[n]of V(e,"message",{signal:r}))if(t(n))return n},fv=async(e,t,{signal:r})=>{await G(e,"disconnect",{signal:r}),(e=>{throw new Error(`${Fp("getOneMessage",e)} could not complete: the ${Gp(e)} exited or disconnected.`)})(t)},pv=async(e,t,{signal:r})=>{const[n]=await G(e,"strict:error",{signal:r});throw Np(n,t)},mv=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:o=!0}={})=>hv({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:!r,reference:o}),hv=({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:o,reference:i})=>{Dp({methodName:"getEachMessage",isSubprocess:r,ipc:n,isConnected:pm(e)}),nm(t,i);const s=lm(e,t,r),a=new AbortController,c={};return gv(e,s,a),yv({ipcEmitter:s,isSubprocess:r,controller:a,state:c}),bv({anyProcess:e,channel:t,ipcEmitter:s,isSubprocess:r,shouldAwait:o,controller:a,state:c,reference:i})},gv=async(e,t,r)=>{try{await G(t,"disconnect",{signal:r.signal}),r.abort()}catch{}},yv=async({ipcEmitter:e,isSubprocess:t,controller:r,state:n})=>{try{const[o]=await G(e,"strict:error",{signal:r.signal});n.error=Np(o,t),r.abort()}catch{}},bv=async function*({anyProcess:e,channel:t,ipcEmitter:r,isSubprocess:n,shouldAwait:o,controller:i,state:s,reference:a}){try{for await(const[e]of V(r,"message",{signal:i.signal}))vv(s),yield e}catch{vv(s)}finally{i.abort(),im(t,a),n||Up(e),o&&await e}},vv=({error:e})=>{if(e)throw e},wv=(e,t,r)=>({sendMessage:Tm.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getOneMessage:uv.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getEachMessage:mv.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}),Sv=(e,t)=>{const r=Ev(),n=Ev(),o=Ev(),i=Array.from({length:t.length-3},Ev),s=Ev(),a=[r,n,o,...i];Object.assign(e,{stdin:r,stdout:n,stderr:o,all:s,stdio:a})},Ev=()=>{const e=new J;return e.end(),e},_v=()=>new Z({read(){}}),xv=()=>new Q({write(){}}),Ov=()=>new Y({read(){},write(){}}),Av=async(e,t,r)=>yg(e,t,r),Tv=({type:e,optionName:t})=>{throw new TypeError(`The \`${t}\` option cannot be ${qg[e]}.`)},Rv={fileNumber:Tv,generator:Pb,asyncGenerator:Pb,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:r}}){const n=t||r;return{stream:Y.fromWeb(e,{objectMode:n})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},Cv={input:{...Rv,fileUrl:({value:e})=>({stream:g(e)}),filePath:({value:{file:e}})=>({stream:g(e)}),webStream:({value:e})=>({stream:Z.fromWeb(e)}),iterable:({value:e})=>({stream:Z.from(e)}),asyncIterable:({value:e})=>({stream:Z.from(e)}),string:({value:e})=>({stream:Z.from(e)}),uint8Array:({value:e})=>({stream:Z.from(ee.from(e))})},output:{...Rv,fileUrl:({value:e})=>({stream:h(e)}),filePath:({value:{file:e,append:t}})=>({stream:h(e,t?{flags:"a"}:{})}),webStream:({value:e})=>({stream:Q.fromWeb(e)}),iterable:Tv,asyncIterable:Tv,string:Tv,uint8Array:Tv}};function kv(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(const t of e)Nv(t);const t=e.some(({readableObjectMode:e})=>e),r=Pv(e,t),n=new Iv({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(const t of e)n.add(t);return n}const Pv=(e,t)=>{if(0===e.length)return X(t);const r=e.filter(({readableObjectMode:e})=>e===t).map(({readableHighWaterMark:e})=>e);return Math.max(...r)};class Iv extends J{#s=new Set([]);#a=new Set([]);#c=new Set([]);#u;#l=Symbol("unpipe");#d=new WeakMap;add(e){if(Nv(e),this.#s.has(e))return;this.#s.add(e),this.#u??=Dv(this,this.#s,this.#l);const t=$v({passThroughStream:this,stream:e,streams:this.#s,ended:this.#a,aborted:this.#c,onFinished:this.#u,unpipeEvent:this.#l});this.#d.set(e,t),e.pipe(this,{end:!1})}async remove(e){if(Nv(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 Dv=async(e,t,r)=>{qv(e,zv);const n=new AbortController;try{await Promise.race([Lv(e,n),Mv(e,t,r,n)])}finally{n.abort(),qv(e,-zv)}},Lv=async(e,{signal:t})=>{try{await te(e,{signal:t,cleanup:!0})}catch(t){throw Gv(e,t),t}},Mv=async(e,t,r,{signal:n})=>{for await(const[o]of V(e,"unpipe",{signal:n}))t.has(o)&&o.emit(r)},Nv=e=>{if("function"!=typeof e?.pipe)throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},$v=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,onFinished:i,unpipeEvent:s})=>{qv(e,Xv);const a=new AbortController;try{await Promise.race([jv(i,t,a),Bv({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:a}),Fv({stream:t,streams:r,ended:n,aborted:o,unpipeEvent:s,controller:a})])}finally{a.abort(),qv(e,-Xv)}r.size>0&&r.size===n.size+o.size&&(0===n.size&&o.size>0?Wv(e):Hv(e))},jv=async(e,t,{signal:r})=>{try{await e,r.aborted||Wv(t)}catch(e){r.aborted||Gv(t,e)}},Bv=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:{signal:i}})=>{try{await te(t,{signal:i,cleanup:!0,readable:!0,writable:!1}),r.has(t)&&n.add(t)}catch(n){if(i.aborted||!r.has(t))return;Uv(n)?o.add(t):Vv(e,n)}},Fv=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:o,controller:{signal:i}})=>{if(await G(e,o,{signal:i}),!e.readable)return G(i,"abort",{signal:i});t.delete(e),r.delete(e),n.delete(e)},Hv=e=>{e.writable&&e.end()},Gv=(e,t)=>{Uv(t)?Wv(e):Vv(e,t)},Uv=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,Wv=e=>{(e.readable||e.writable)&&e.destroy()},Vv=(e,t)=>{e.destroyed||(e.once("error",Kv),e.destroy(t))},Kv=()=>{},qv=(e,t)=>{const r=e.getMaxListeners();0!==r&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},zv=2,Xv=1,Yv=(e,t)=>{e.pipe(t),Qv(e,t),Jv(e,t)},Qv=async(e,t)=>{if(!$d(e)&&!$d(t)){try{await te(e,{cleanup:!0,readable:!0,writable:!1})}catch{}Zv(t)}},Zv=e=>{e.writable&&e.end()},Jv=async(e,t)=>{if(!$d(e)&&!$d(t)){try{await te(t,{cleanup:!0,readable:!1,writable:!0})}catch{}ew(e)}},ew=e=>{e.readable&&e.destroy()},tw=(e,t,r,n)=>{"output"===r?Yv(e.stdio[n],t):Yv(t,e.stdio[n]);const o=rw[n];void 0!==o&&(e[o]=t),e.stdio[n]=t},rw=["stdin","stdout","stderr"],nw=({subprocess:e,stream:t,direction:r,fdNumber:n,pipeGroups:o,controller:i})=>{if(void 0===t)return;ow(t,i);const[s,a]="output"===r?[t,e.stdio[n]]:[e.stdio[n],t],c=o.get(s)??[];o.set(s,[...c,a])},ow=(e,{signal:t})=>{$d(e)&&rm(e,iw,t)},iw=2,sw=[];sw.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&sw.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&sw.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const aw=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,cw=Symbol.for("signal-exit emitter"),uw=globalThis,lw=Object.defineProperty.bind(Object);class dw{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(uw[cw])return uw[cw];lw(uw,cw,{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 fw{}const pw=globalThis.process,{onExit:mw}=(hw=aw(pw)?new class extends fw{#f="win32"===pw.platform?"SIGINT":"SIGHUP";#p=new dw;#m;#h;#g;#y={};#b=!1;constructor(e){super(),this.#m=e,this.#y={};for(const t of sw)this.#y[t]=()=>{const r=this.#m.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.#g=e.reallyExit,this.#h=e.emit}onExit(e,t){if(!aw(this.#m))return()=>{};!1===this.#b&&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.#b){this.#b=!0,this.#p.count+=1;for(const e of sw)try{const t=this.#y[e];t&&this.#m.on(e,t)}catch(e){}this.#m.emit=(e,...t)=>this.#v(e,...t),this.#m.reallyExit=e=>this.#w(e)}}unload(){this.#b&&(this.#b=!1,sw.forEach(e=>{const t=this.#y[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#m.removeListener(e,t)}catch(e){}}),this.#m.emit=this.#h,this.#m.reallyExit=this.#g,this.#p.count-=1)}#w(e){return aw(this.#m)?(this.#m.exitCode=e||0,this.#p.emit("exit",this.#m.exitCode,null),this.#g.call(this.#m,this.#m.exitCode)):0}#v(e,...t){const r=this.#h;if("exit"===e&&aw(this.#m)){"number"==typeof t[0]&&(this.#m.exitCode=t[0]);const n=r.call(this.#m,e,...t);return this.#p.emit("exit",this.#m.exitCode,null),n}return r.call(this.#m,e,...t)}}(pw):new class extends fw{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>hw.onExit(e,t),load:()=>hw.load(),unload:()=>hw.unload()});var hw;const gw=(e,t,r)=>{try{const{destination:n,pipeOptions:{from:o,to:i,unpipeSignal:s}={}}=yw(e,t,...r);return{destination:n,destinationStream:Vp(n,i),from:o,unpipeSignal:s}}catch(e){return{destinationError:e}}},yw=(e,t,r,...n)=>{if(Array.isArray(r)){return{destination:t(bw,e)(r,...n),pipeOptions:e}}if("string"==typeof r||r instanceof URL||hd(r)){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]=yd(r,...n);return{destination:t(bw)(o,i,s),pipeOptions:s}}if(qp.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}`)},bw=({options:e})=>({options:{...e,stdin:"pipe",piped:!0}}),vw=(e,t)=>{try{return{sourceStream:Kp(e,t)}}catch(e){return{sourceError:e}}},ww=({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n})=>void 0!==t&&void 0!==n?n:void 0!==n?(ew(e),n):void 0!==t?(Zv(r),t):void 0,Sw=({error:e,fileDescriptors:t,sourceOptions:r,startTime:n})=>ag({error:e,command:Ew,escapedCommand:Ew,fileDescriptors:t,options:r,startTime:n,isSync:!1}),Ew="source.pipe(destination)",_w=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},xw=(e,t)=>{const r=kv([e]);return Yv(r,t),Tw.set(t,r),r},Ow=(e,t)=>{const r=Tw.get(t);return r.add(e),r},Aw=async e=>{try{await te(e,{cleanup:!0,readable:!1,writable:!0})}catch{}Tw.delete(e)},Tw=new WeakMap,Rw=2,Cw=1,kw=(e,t)=>void 0===e?[]:[Pw(e,t)],Pw=async(e,{sourceStream:t,mergedStream:r,fileDescriptors:n,sourceOptions:o,startTime:i})=>{await P(e,t),await r.remove(t);const s=new Error("Pipe canceled by `unpipeSignal` option.");throw Sw({error:s,fileDescriptors:n,sourceOptions:o,startTime:i})},Iw=(e,...t)=>{if(fd(t[0]))return Iw.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});const{destination:r,...n}=(({source:e,sourcePromise:t,boundOptions:r,createNested:n},...o)=>{const i=Wf(),{destination:s,destinationStream:a,destinationError:c,from:u,unpipeSignal:l}=gw(r,n,o),{sourceStream:d,sourceError:f}=vw(e,u),{options:p,fileDescriptors:m}=qp.get(e);return{sourcePromise:t,sourceStream:d,sourceOptions:p,sourceError:f,destination:s,destinationStream:a,destinationError:c,unpipeSignal:l,fileDescriptors:m,startTime:i}})(e,...t),o=Dw({...n,destination:r});return o.pipe=Iw.bind(void 0,{...e,source:r,sourcePromise:o,boundOptions:{}}),o},Dw=async({sourcePromise:e,sourceStream:t,sourceOptions:r,sourceError:n,destination:o,destinationStream:i,destinationError:s,unpipeSignal:a,fileDescriptors:c,startTime:u})=>{const l=Lw(e,o);(({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n,fileDescriptors:o,sourceOptions:i,startTime:s})=>{const a=ww({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n});if(void 0!==a)throw Sw({error:a,fileDescriptors:o,sourceOptions:i,startTime:s})})({sourceStream:t,sourceError:n,destinationStream:i,destinationError:s,fileDescriptors:c,sourceOptions:r,startTime:u});const d=new AbortController;try{const e=((e,t,r)=>{const n=Tw.has(t)?Ow(e,t):xw(e,t);return rm(e,Rw,r.signal),rm(t,Cw,r.signal),Aw(t),n})(t,i,d);return await Promise.race([_w(l),...kw(a,{sourceStream:t,mergedStream:e,sourceOptions:r,fileDescriptors:c,startTime:u})])}finally{d.abort()}},Lw=(e,t)=>Promise.allSettled([e,t]),Mw=({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:n,encoding:o,preserveNewlines:i})=>{const s=new AbortController;return Nw(t,s),Bw({stream:e,controller:s,binary:r,shouldEncode:!e.readableObjectMode&&n,encoding:o,shouldSplit:!e.readableObjectMode,preserveNewlines:i})},Nw=async(e,t)=>{try{await e}catch{}finally{t.abort()}},$w=({stream:e,onStreamEnd:t,lines:r,encoding:n,stripFinalNewline:o,allMixed:i})=>{const s=new AbortController;jw(t,s,e);const a=e.readableObjectMode&&!i;return Bw({stream:e,controller:s,binary:"buffer"===n,shouldEncode:!a,encoding:n,shouldSplit:!a&&r,preserveNewlines:!o})},jw=async(e,t,r)=>{try{await e}catch{r.destroy()}finally{t.abort()}},Bw=({stream:e,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s})=>{const a=V(e,"data",{signal:t.signal,highWaterMark:Hw,highWatermark:Hw});return Gw({onStdoutChunk:a,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s})},Fw=X(!0),Hw=Fw,Gw=async function*({onStdoutChunk:e,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s}){const a=Uw({binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s});try{for await(const[t]of e)yield*Tb(t,a,0)}catch(e){if(!t.signal.aborted)throw e}finally{yield*Rb(a)}},Uw=({binary:e,shouldEncode:t,encoding:r,shouldSplit:n,preserveNewlines:o})=>[hb(e,r,!t),Qy(e,o,!n,{})].filter(Boolean),Ww=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,buffer:o,maxBuffer:i,lines:s,allMixed:a,stripFinalNewline:c,verboseInfo:u,streamInfo:l})=>{const d=Vw({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:a,verboseInfo:u,streamInfo:l});if(!o)return void await Promise.all([Kw(e),d]);const f=Yy(c,r),p=$w({stream:e,onStreamEnd:t,lines:s,encoding:n,stripFinalNewline:f,allMixed:a}),[m]=await Promise.all([qw({stream:e,iterable:p,fdNumber:r,encoding:n,maxBuffer:i,lines:s}),d]);return m},Vw=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:o,verboseInfo:i,streamInfo:{fileDescriptors:s}})=>{if(!jb({stdioItems:s[r]?.stdioItems,encoding:n,verboseInfo:i,fdNumber:r}))return;const a=$w({stream:e,onStreamEnd:t,lines:!0,encoding:n,stripFinalNewline:!0,allMixed:o});await(async(e,t,r,n)=>{for await(const o of e)Hb(t)||Gb(o,r,n)})(a,e,r,i)},Kw=async e=>{await F(),null===e.readableFlowing&&e.resume()},qw=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 Ah(e,jh,t)}(r,{maxBuffer:i}):"buffer"===o?new Uint8Array(await async function(e,t){return Ah(e,qh,t)}(r,{maxBuffer:i})):await async function(e,t){return Ah(e,Xh,t)}(r,{maxBuffer:i})}catch(r){return Xw((({error:e,stream:t,readableObjectMode:r,lines:n,encoding:o,fdNumber:i})=>{if(!(e instanceof Ih))throw e;if("all"===i)return e;const s=Yh(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}))}},zw=async e=>{try{return await e}catch(e){return Xw(e)}},Xw=({bufferedData:e})=>{return t=e,"[object ArrayBuffer]"===bd.call(t)?new Uint8Array(e):e;var t},Yw=async(e,t,r,{isSameDirection:n,stopOnExit:o=!1}={})=>{const i=Qw(e,r),s=new AbortController;try{await Promise.race([...o?[r.exitPromise]:[],te(e,{cleanup:!0,signal:s.signal})])}catch(e){i.stdinCleanedUp||eS(e,t,r,n)}finally{s.abort()}},Qw=(e,{originalStreams:[t],subprocess:r})=>{const n={stdinCleanedUp:!1};return e===t&&Zw(e,r,n),n},Zw=(e,t,r)=>{const{_destroy:n}=e;e._destroy=(...o)=>{Jw(t,r),n.call(e,...o)}},Jw=({exitCode:e,signalCode:t},r)=>{null===e&&null===t||(r.stdinCleanedUp=!0)},eS=(e,t,r,n)=>{if(!tS(e,t,r,n))throw e},tS=(e,t,r,n=!0)=>r.propagating?oS(e)||nS(e):(r.propagating=!0,rS(r,t)===n?oS(e):nS(e)),rS=({fileDescriptors:e},t)=>"all"!==t&&"input"===e[t].direction,nS=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,oS=e=>"EPIPE"===e?.code,iS=async({stream:e,fdNumber:t,encoding:r,buffer:n,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:c,streamInfo:u})=>{if(!e)return;const l=Yw(e,t,u);if(rS(u,t))return void await l;const[d]=await Promise.all([Ww({stream:e,onStreamEnd:l,fdNumber:t,encoding:r,buffer:n,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:c,streamInfo:u}),l]);return d},sS=({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}},aS=({all:e,stdout:t,stderr:r})=>e&&t&&r&&t.readableObjectMode!==r.readableObjectMode,cS=(e,t)=>{const r=Bf(e);Mf({type:"ipc",verboseMessage:r,fdNumber:"ipc",verboseInfo:t})},uS=async({subprocess:e,buffer:t,maxBuffer:r,ipc:n,ipcOutput:o,verboseInfo:i})=>{if(!n)return o;const s=(e=>tf(e,"ipc"))(i),a=Jd(t,"ipc"),c=Jd(r,"ipc");for await(const t of hv({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:n,shouldAwait:!1,reference:!0}))a&&(Qh(0,o,c),o.push(t)),s&&cS(t,i);return o},lS=async(e,t)=>(await Promise.allSettled([e]),t),dS=async({subprocess:e,options:{encoding:t,buffer:r,maxBuffer:n,lines:o,timeoutDuration:i,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:c,stripFinalNewline:u,ipc:l,ipcInput:d},context:f,verboseInfo:p,fileDescriptors:m,originalStreams:h,onInternalError:g,controller:y})=>{const b=(async(e,t)=>{const[r,n]=await zb(e);return t.isForcefullyTerminated??=!1,[r,n]})(e,f),v={originalStreams:h,fileDescriptors:m,subprocess:e,exitPromise:b,propagating:!1},w=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>e.stdio.map((e,c)=>iS({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:u,verboseInfo:p,streamInfo:v}),S=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>iS({...sS(e,r),fdNumber:"all",encoding:t,maxBuffer:n[1]+n[2],lines:o[1]||o[2],allMixed:aS(e),stripFinalNewline:i,verboseInfo:s,streamInfo:a}))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:u,verboseInfo:p,streamInfo:v}),E=[],_=uS({subprocess:e,buffer:r,maxBuffer:n,ipc:l,ipcOutput:E,verboseInfo:p}),x=fS(h,e,v),O=pS(m,v);try{return await Promise.race([Promise.all([{},Yb(b),Promise.all(w),S,_,Vm(e,d),...x,...O]),g,mS(e,y),...Gm(e,i,f,y),...Pp({subprocess:e,cancelSignal:s,gracefulCancel:a,context:f,controller:y}),...Bm({subprocess:e,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:c,context:f,controller:y})])}catch(e){return f.terminationReason??="other",Promise.all([{error:e},b,Promise.all(w.map(e=>zw(e))),zw(S),lS(_,E),Promise.allSettled(x),Promise.allSettled(O)])}},fS=(e,t,r)=>e.map((e,n)=>e===t.stdio[n]?void 0:Yw(e,n,r)),pS=(e,t)=>e.flatMap(({stdioItems:e},r)=>e.filter(({value:e,stream:t=e})=>lh(t,{checkOpen:!1})&&!$d(t)).map(({type:e,value:n,stream:o=n})=>Yw(o,r,t,{isSameDirection:Gg.has(e),stopOnExit:"native"===e}))),mS=async(e,{signal:t})=>{const[r]=await G(e,"error",{signal:t});throw r},hS=(e,t,r)=>{const n=e[r];n.has(t)||n.set(t,[]);const o=n.get(t),i=Wp();o.push(i);return{resolve:i.resolve.bind(i),promises:o}},gS=async({resolve:e,promises:t},r)=>{e();const[n]=await Promise.race([Promise.allSettled([!0,r]),Promise.all([!1,...t])]);return!n},yS=async e=>{if(void 0!==e)try{await bS(e)}catch{}},bS=async e=>{await te(e,{cleanup:!0,readable:!1,writable:!0})},vS=async e=>{await te(e,{cleanup:!0,readable:!0,writable:!1})},wS=async(e,t)=>{if(await e,t)throw t},SS=(e,t,r)=>{r&&!nS(r)?e.destroy(r):t&&e.destroy()},ES=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,binary:o=!0,preserveNewlines:i=!0}={})=>{const s=o||qm.has(r),{subprocessStdout:a,waitReadableDestroy:c}=_S(e,n,t),{readableEncoding:u,readableObjectMode:l,readableHighWaterMark:d}=xS(a,s),{read:f,onStdoutDataDone:p}=OS({subprocessStdout:a,subprocess:e,binary:s,encoding:r,preserveNewlines:i}),m=new Z({read:f,destroy:k(RS.bind(void 0,{subprocessStdout:a,subprocess:e,waitReadableDestroy:c})),highWaterMark:d,objectMode:l,encoding:u});return TS({subprocessStdout:a,onStdoutDataDone:p,readable:m,subprocess:e}),m},_S=(e,t,r)=>{const n=Kp(e,t);return{subprocessStdout:n,waitReadableDestroy:hS(r,n,"readableDestroy")}},xS=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r},n)=>n?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:Fw},OS=({subprocessStdout:e,subprocess:t,binary:r,encoding:n,preserveNewlines:o})=>{const i=Wp(),s=Mw({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{}},TS=async({subprocessStdout:e,onStdoutDataDone:t,readable:r,subprocess:n,subprocessStdin:o})=>{try{await vS(e),await n,await yS(o),await t,r.readable&&r.push(null)}catch(e){await yS(o),CS(r,e)}},RS=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:r},n)=>{await gS(r,t)&&(CS(e,n),await wS(t,n))},CS=(e,t)=>{SS(e,e.readable,t)},kS=({subprocess:e,concurrentStreams:t},{to:r}={})=>{const{subprocessStdin:n,waitWritableFinal:o,waitWritableDestroy:i}=PS(e,r,t),s=new Q({...IS(n,e,o),destroy:k(NS.bind(void 0,{subprocessStdin:n,subprocess:e,waitWritableFinal:o,waitWritableDestroy:i})),highWaterMark:n.writableHighWaterMark,objectMode:n.writableObjectMode});return MS(n,s),s},PS=(e,t,r)=>{const n=Vp(e,t);return{subprocessStdin:n,waitWritableFinal:hS(r,n,"writableFinal"),waitWritableDestroy:hS(r,n,"writableDestroy")}},IS=(e,t,r)=>({write:DS.bind(void 0,e),final:k(LS.bind(void 0,e,t,r))}),DS=(e,t,r,n)=>{e.write(t,r)?n():e.once("drain",n)},LS=async(e,t,r)=>{await gS(r,t)&&(e.writable&&e.end(),await t)},MS=async(e,t,r)=>{try{await bS(e),t.writable&&t.end()}catch(e){await(async e=>{if(void 0!==e)try{await vS(e)}catch{}})(r),$S(t,e)}},NS=async({subprocessStdin:e,subprocess:t,waitWritableFinal:r,waitWritableDestroy:n},o)=>{await gS(r,t),await gS(n,t)&&($S(e,o),await wS(t,o))},$S=(e,t)=>{SS(e,e.writable,t)},jS=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,to:o,binary:i=!0,preserveNewlines:s=!0}={})=>{const a=i||qm.has(r),{subprocessStdout:c,waitReadableDestroy:u}=_S(e,n,t),{subprocessStdin:l,waitWritableFinal:d,waitWritableDestroy:f}=PS(e,o,t),{readableEncoding:p,readableObjectMode:m,readableHighWaterMark:h}=xS(c,a),{read:g,onStdoutDataDone:y}=OS({subprocessStdout:c,subprocess:e,binary:a,encoding:r,preserveNewlines:s}),b=new Y({read:g,...IS(l,e,d),destroy:k(BS.bind(void 0,{subprocessStdout:c,subprocessStdin:l,subprocess:e,waitReadableDestroy:u,waitWritableFinal:d,waitWritableDestroy:f})),readableHighWaterMark:h,writableHighWaterMark:l.writableHighWaterMark,readableObjectMode:m,writableObjectMode:l.writableObjectMode,encoding:p});return TS({subprocessStdout:c,onStdoutDataDone:y,readable:b,subprocess:e,subprocessStdin:l}),MS(l,b,c),b},BS=async({subprocessStdout:e,subprocessStdin:t,subprocess:r,waitReadableDestroy:n,waitWritableFinal:o,waitWritableDestroy:i},s)=>{await Promise.all([RS({subprocessStdout:e,subprocess:r,waitReadableDestroy:n},s),NS({subprocessStdin:t,subprocess:r,waitWritableFinal:o,waitWritableDestroy:i},s)])},FS=(e,t,{from:r,binary:n=!1,preserveNewlines:o=!1}={})=>{const i=n||qm.has(t),s=Kp(e,r),a=Mw({subprocessStdout:s,subprocess:e,binary:i,shouldEncode:!0,encoding:t,preserveNewlines:o});return HS(a,s,e)},HS=async function*(e,t,r){try{yield*e}finally{t.readable&&t.destroy(),await r}},GS=(e,{encoding:t})=>{const r={readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap};e.readable=ES.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.writable=kS.bind(void 0,{subprocess:e,concurrentStreams:r}),e.duplex=jS.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.iterable=FS.bind(void 0,e,t),e[Symbol.asyncIterator]=FS.bind(void 0,e,t,{})},US=(async()=>{})().constructor.prototype,WS=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(US,e)]),VS=(e,t,r,n)=>{const{file:o,commandArguments:i,command:s,escapedCommand:a,startTime:c,verboseInfo:u,options:l,fileDescriptors:d}=KS(e,t,r),{subprocess:f,promise:p}=zS({file:o,commandArguments:i,options:l,startTime:c,verboseInfo:u,command:s,escapedCommand:a,fileDescriptors:d});return f.pipe=Iw.bind(void 0,{source:f,sourcePromise:p,boundOptions:{},createNested:n}),((e,t)=>{for(const[r,n]of WS){const o=n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}})(f,p),qp.set(f,{options:l,fileDescriptors:d}),f},KS=(e,t,r)=>{const{command:n,escapedCommand:o,startTime:i,verboseInfo:s}=Kf(e,t,r),{file:a,commandArguments:c,options:u}=Jm(e,t,r),l=qS(u),d=((e,t)=>Py(Cv,e,t,!1))(l,s);return{file:a,commandArguments:c,command:n,escapedCommand:o,startTime:i,verboseInfo:s,options:l,fileDescriptors:d}},qS=({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}},zS=({file:e,commandArguments:t,options:r,startTime:n,verboseInfo:o,command:i,escapedCommand:s,fileDescriptors:a})=>{let c;try{c=x(...rh(e,t,r))}catch(e){return(({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,verboseInfo:s})=>{Uy(n);const a=new S;Sv(a,n),Object.assign(a,{readable:_v,writable:xv,duplex:Ov});const c=ag({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 u=new AbortController;K(Number.POSITIVE_INFINITY,u.signal);const l=[...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})=>Gg.has(e)))tw(e,t,s,o);for(const{stream:t}of i.filter(({type:e})=>!Gg.has(e)))nw({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]:kv(t);Yv(r,e)}})(c,a,u),((e,{cleanup:t,detached:r},{signal:n})=>{if(!t||r)return;const o=mw(()=>{e.kill()});U(n,()=>{o()})})(c,r,u);const d={},f=Wp();c.kill=Op.bind(void 0,{kill:c.kill.bind(c),options:r,onInternalError:f,context:d,controller:u}),c.all=(({stdout:e,stderr:t},{all:r})=>r&&(e||t)?kv([e,t].filter(Boolean)):void 0)(c,r),GS(c,r),((e,{ipc:t})=>{Object.assign(e,wv(e,!1,t))})(c,r);return{subprocess:c,promise:XS({subprocess:c,options:r,startTime:n,verboseInfo:o,fileDescriptors:a,originalStreams:l,command:i,escapedCommand:s,context:d,onInternalError:f,controller:u})}},XS=async({subprocess:e,options:t,startTime:r,verboseInfo:n,fileDescriptors:o,originalStreams:i,command:s,escapedCommand:a,context:c,onInternalError:u,controller:l})=>{const[d,[f,p],m,h,g]=await dS({subprocess:e,options:t,context:c,verboseInfo:n,fileDescriptors:o,originalStreams:i,onInternalError:u,controller:l});l.abort(),u.resolve();const y=m.map((e,r)=>Xy(e,t,r)),b=Xy(h,t,"all"),v=YS({errorInfo:d,exitCode:f,signal:p,stdio:y,all:b,ipcOutput:g,context:c,options:t,command:s,escapedCommand:a,startTime:r});return yg(v,n,t)},YS=({errorInfo:e,exitCode:t,signal:r,stdio:n,all:o,ipcOutput:i,context:s,options:a,command:c,escapedCommand:u,startTime:l})=>"error"in e?cg({error:e.error,command:c,escapedCommand:u,timedOut:"timeout"===s.terminationReason,isCanceled:"cancel"===s.terminationReason||"gracefulCancel"===s.terminationReason,isGracefullyCanceled:"gracefulCancel"===s.terminationReason,isMaxBuffer:e.error instanceof Ih,isForcefullyTerminated:s.isForcefullyTerminated,exitCode:t,signal:r,stdio:n,all:o,ipcOutput:i,options:a,startTime:l,isSync:!1}):sg({command:c,escapedCommand:u,stdio:n,all:o,ipcOutput:i,options:a,startTime:l}),QS=(e,t)=>{const r=Object.fromEntries(Object.entries(t).map(([t,r])=>[t,ZS(t,e[t],r)]));return{...e,...r}},ZS=(e,t,r)=>JS.has(e)&&fd(t)&&fd(r)?{...t,...r}:r,JS=new Set(["env",...Zd]),eE=(e,t,r,n)=>{const o=(e,t,n)=>eE(e,t,r,n),i=(...i)=>tE({mapArguments:e,deepOptions:r,boundOptions:t,setBoundExeca:n,createNested:o},...i);return void 0!==n&&n(i,o,t),i},tE=({mapArguments:e,deepOptions:t={},boundOptions:r={},setBoundExeca:n,createNested:o},i,...s)=>{if(fd(i))return o(e,QS(r,i),n);const{file:a,commandArguments:c,options:u,isSync:l}=rE({mapArguments:e,firstArgument:i,nextArguments:s,deepOptions:t,boundOptions:r});return l?((e,t,r)=>{const{file:n,commandArguments:o,command:i,escapedCommand:s,startTime:a,verboseInfo:c,options:u,fileDescriptors:l}=tv(e,t,r),d=iv({file:n,commandArguments:o,options:u,command:i,escapedCommand:s,verboseInfo:c,fileDescriptors:l,startTime:a});return yg(d,c,u)})(a,c,u):VS(a,c,u,o)},rE=({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=kd({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,u]=yd(...i),l=QS(QS(n,o),u),{file:d=a,commandArguments:f=c,options:p=l,isSync:m=!1}=e({file:a,commandArguments:c,options:l});return{file:d,commandArguments:f,options:p,isSync:m}},nE=(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]=oE(e);return{file:r,commandArguments:n}},oE=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(iE)){const t=r.at(-1);t&&t.endsWith("\\")?r[r.length-1]=`${t.slice(0,-1)} ${e}`:r.push(e)}return r},iE=/ +/g,sE=({options:e})=>({...aE(e),isSync:!0}),aE=e=>({options:{...cE(e),...e}}),cE=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{};eE(()=>({}));const uE=eE(()=>({isSync:!0}));eE(({file:e,commandArguments:t})=>nE(e,t)),eE(({file:e,commandArguments:t})=>({...nE(e,t),isSync:!0})),eE(({options:e})=>{if(!1===e.node)throw new TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}}),eE(({options:e})=>aE(e),{},{preferLocal:!0},(e,t,r)=>{e.sync=t(sE,r),e.s=e.sync}),(()=>{const e=I,t=!0,r=void 0!==I.channel;wv(e,t,r),Im.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})})(),l.enableCompileCache?.();const lE=global,dE=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)}}),fE=["packages","codemods","eslint"],pE=lE.which("yarn").stdout,mE=process.execPath;function hE(e,t,r,n=!0,o=!1){console.log(`${e.replaceAll(pE,"yarn").replaceAll(mE,"node")} ${t.join(" ")}`);try{return uE(e,t,{stdio:n?"inherit":void 0,cwd:r&&u.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 gE(e,t,r,n){return hE(pE,e,t,r,n)}function yE(e,t,r){return hE(mE,e,t,r)}function bE(e,t){const r=process.env;process.env={...r,...t},e(),process.env=r}function vE(...e){const t=["--format","codeframe","--concurrency","auto","--flag","unstable_native_nodejs_ts_config",...e.filter(Boolean)],r=y("packages").filter(e=>b(`packages/${e}/package.json`)),n=[];for(let e=0,t=16;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)bE(()=>gE(["eslint","packages",...o,...t]),{BABEL_ENV:"test",NODE_OPTIONS:"--max-old-space-size=8192"});else{let e=null;for(const r of n)try{bE(()=>gE(["eslint",...r,...t],void 0,void 0,!0),{BABEL_ENV:"test"})}catch(t){e=t}e&&process.exit(e.exitCode)}}function wE(e,t,r){const n="./build/"+e.toLowerCase();lE.rm("-rf",n),console.log("mkdir -p build"),v("build",{recursive:!0}),hE("git",["clone","--filter=blob:none","--sparse","--depth","1","--revision="+function(e){const t=f("./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]),hE("git",["sparse-checkout","set",...r],n)}lE.config.verbose=!0,dE["clean-all"]=function(){lE.rm("-rf",["package-lock.json",".changelog"]),fE.forEach(e=>{lE.rm("-rf",`${e}/*/test/tmp`),lE.rm("-rf",`${e}/*/package-lock.json`)}),dE.clean(),dE["clean-lib"](),dE["clean-node-modules"](),dE["clean-ts"]()},dE["clean-node-modules"]=function(){lE.rm("-rf","node_modules"),fE.forEach(e=>{lE.rm("-rf",`${e}/*/node_modules`)})},dE.clean=function(){dE["test-clean"](),lE.rm("-rf",[".npmrc","coverage","packages/*/npm-debug*","node_modules/.cache"])},dE["test-clean"]=function(){fE.forEach(e=>{lE.rm("-rf",`${e}/*/test/tmp`),lE.rm("-rf",`${e}/*/test-fixtures.json`)})},dE["clean-lib"]=function(){lE.rm("-rf",fE.map(e=>`${e}/*/lib`))},dE["clean-runtime-helpers"]=function(){lE.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"])},dE["bootstrap-only"]=function(){dE["clean-all"](),gE(["install"])},dE.bootstrap=function(){dE["bootstrap-only"](),dE["generate-tsconfig"](),dE.build()},dE.build=function(){dE["build-no-bundle"](),"true"!==process.env.BABEL_COVERAGE&&dE["build-standalone"]()},dE["build-standalone"]=function(){gE(["gulp","build-babel-standalone"])},dE["build-bundle"]=function(){dE.clean(),dE["clean-lib"](),dE["bundle-babel-parser-dts"](),gE(["gulp","build"]),dE["build-dist"]()},dE["build-no-bundle"]=function(){dE.clean(),dE["clean-lib"](),dE["bundle-babel-parser-dts"](),bE(()=>{gE(["gulp","build-dev"])},{BABEL_ENV:"development"}),dE["build-dist"]()},dE["build-flow-typings"]=function(){m("packages/babel-types/lib/index.js.flow",yE(["packages/babel-types/scripts/generators/flow.ts"],void 0,!1))},dE["build-dist"]=function(){dE["build-plugin-transform-runtime-dist"]()},dE["build-plugin-transform-runtime-dist"]=function(){yE(["scripts/build-dist.ts"],"packages/babel-plugin-transform-runtime")},dE.prepublish=function(){dE["bootstrap-only"](),bE(()=>{dE["prepublish-build"](),dE.test()},{IS_PUBLISH:"true"})},dE["prepublish-build"]=function(){dE["clean-lib"](),dE["clean-runtime-helpers"](),yE(["scripts/generators/npm-ignore.ts"]),bE(()=>{dE["build-bundle"]()},{NODE_ENV:"production",BABEL_ENV:"production",STRIP_BABEL_VERSION_FLAG:"true",IS_PUBLISH:"true"}),bE(()=>{dE["prepublish-build-standalone"](),dE["clone-license"](),dE["prepublish-prepare-dts"](),dE["build-flow-typings"]()},{NODE_ENV:"production",STRIP_BABEL_VERSION_FLAG:"true"})},dE["prepublish-build-standalone"]=function(){bE(()=>{dE["build-standalone"]()},{BABEL_ENV:"production",IS_PUBLISH:"true"})},dE["prepublish-prepare-dts"]=function(){dE["clean-ts"](),dE.tscheck(),dE["prepublish-prepare-dts-no-clean"]()},dE["bundle-babel-parser-dts"]=function(){dE["tscheck-babel-parser"](),gE(["gulp","bundle-babel-parser-dts"])},dE["prepublish-prepare-dts-no-clean"]=function(){gE(["gulp","bundle-dts"]),dE["build-typescript-legacy-typings"](),gE(["tsc","-p","tsconfig.dts-bundles.json"])},dE.tscheck=function(){dE["generate-tsconfig"](),yE(["scripts/parallel-tsc/tsc.ts","."]),dE["tscheck-helpers"]()},dE["tscheck-babel-parser"]=function(){yE(["scripts/parallel-tsc/tsc.ts","./packages/babel-parser"])},dE["tscheck-helpers"]=function(){gE(["tsc","-p","./packages/babel-helpers/src/helpers/tsconfig.json"])},dE["clean-ts"]=function(){lE.rm("-rf","tsconfig.tsbuildinfo"),lE.rm("-rf","*/*/tsconfig.tsbuildinfo"),lE.rm("-rf","dts")},dE["generate-tsconfig"]=function(){yE(["scripts/generators/tsconfig.ts"]),yE(["scripts/generators/archived-libs-typings.ts"])},dE["generate-type-helpers"]=function(){gE(["gulp","generate-type-helpers"])},dE["build-typescript-legacy-typings"]=function(){m("packages/babel-types/lib/index-legacy.d.ts",yE(["packages/babel-types/scripts/generators/typescript-legacy.ts"],void 0,!1))},dE["clone-license"]=function(){yE(["scripts/clone-license.ts"])},dE.lint=function(){bE(()=>dE.tscheck(),{TSCHECK_SILENT:"true"}),vE(),gE(["tstyche"]),dE["lint-prettier"]()},dE["lint-ci"]=function(){dE.tscheck(),vE(),gE(["tstyche"]),dE["lint-prettier"](),dE["prepublish-prepare-dts-no-clean"]()},dE["lint-prettier"]=function(){gE(["prettier",".","--check"])},dE.fix=function(){dE["fix-js"](),dE["fix-prettier"]()},dE["fix-js"]=function(){bE(()=>dE.tscheck(),{TSCHECK_SILENT:"true"}),vE("--fix")},dE["fix-prettier"]=function(){gE(["prettier",".","--write"])},dE.watch=function(){dE["build-no-bundle"](),bE(()=>{gE(["gulp","watch"])},{BABEL_ENV:"development",WATCH_SKIP_BUILD:"true"})},dE.test=function(){dE.lint(),dE["test-only"]()},dE["test-only"]=function(e=[]){gE(["jest",...e])},dE["test-cov"]=function(){dE.build(),bE(()=>{gE(["c8","jest"])},{BABEL_ENV:"test",BABEL_COVERAGE:"true"})},dE["bootstrap-test262"]=function(){wE("TEST262","https://github.com/tc39/test262.git",["test","harness"])},dE["bootstrap-typescript"]=function(){wE("TYPESCRIPT","https://github.com/microsoft/TypeScript.git",["tests"])},dE["bootstrap-flow"]=function(){wE("FLOW","https://github.com/facebook/flow.git",["src/parser/test/flow"])},dE["new-version-checklist"]=function(){},dE["new-version"]=function(){dE["new-version-checklist"](),hE("git",["pull","--rebase"]),gE(["release-tool","version","-f","@babel/standalone"])};