UNPKG

@shopify/cli

Version:

A CLI tool to build for the Shopify platform

4 lines • 96.4 kB
import{a as bs,b as Ir,c as le,d as Es}from"./chunk-KHTV6PBV.js";import{a as ct}from"./chunk-NKQBEFPS.js";import{Y as Or,Z as ys,_ as _s}from"./chunk-UXVZ2P63.js";import{c as vs}from"./chunk-QSTEVZFQ.js";import{a as gs}from"./chunk-5Y7GIF2W.js";import{Aa as ms}from"./chunk-XONFGLJQ.js";import{Gb as Pe,Ib as ut,Qb as ft,Wa as ot,ia as Fe,ya as wr}from"./chunk-N5PQPIBF.js";import{d as Sr,g as st,i as at}from"./chunk-IU2ZQ6TE.js";import{a as w,c as E,e as ds,g as c}from"./chunk-VPRTJUIN.js";var Fr=E((Tc,Rr)=>{c();Rr.exports=Dr;var lt=w("fs"),{EventEmitter:xs}=w("events"),{Minimatch:ht}=ys(),{resolve:Ss}=w("path");function ws(e,t){return new Promise((r,i)=>{lt.readdir(e,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":t?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function Ar(e,t){return new Promise((r,i)=>{(t?lt.stat:lt.lstat)(e,(s,a)=>{s?s.code==="ENOENT"?r(t?Ar(e,!1):null):r(null):r(a)})})}async function*Tr(e,t,r,i,n,s){let a=await ws(t+e,s);for(let o of a){let u=o.name;u===void 0&&(u=o,i=!0);let f=e+"/"+u,l=f.slice(1),d=t+"/"+l,h=null;(i||r)&&(h=await Ar(d,r)),!h&&o.name!==void 0&&(h=o),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?n(l)||(yield{relative:l,absolute:d,stats:h},yield*Tr(f,t,r,i,n,!1)):yield{relative:l,absolute:d,stats:h}}}async function*Os(e,t,r,i){yield*Tr("",e,t,r,i,!0)}function Is(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}var Ce=class extends xs{constructor(t,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=Is(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new ht(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new ht(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new ht(s,{dot:!0}))}this.iterator=Os(Ss(t||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(t){return this.skipMatchers.some(r=>r.match(t))}_fileMatches(t,r){let i=t+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(t=>{if(t.done)this.emit("end");else{let r=t.value.stats.isDirectory();if(this._fileMatches(t.value.relative,r)){let i=t.value.relative,n=t.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:t.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(t=>{this.abort(),this.emit("error",t),!t.code&&!this.options.silent&&console.error(t)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function Dr(e,t,r){return new Ce(e,t,r)}Dr.ReaddirGlob=Ce});var Cr=E((Rc,Pr)=>{c();Pr.exports=Ir().PassThrough});var pt=E((Pc,Mr)=>{c();var Lr=w("util"),Me=Cr();Mr.exports={Readable:Le,Writable:Ne};Lr.inherits(Le,Me);Lr.inherits(Ne,Me);function Nr(e,t,r){e[t]=function(){return delete e[t],r.apply(this,arguments),this[t].apply(this,arguments)}}function Le(e,t){if(!(this instanceof Le))return new Le(e,t);Me.call(this,t),Nr(this,"_read",function(){var r=e.call(this,t),i=this.emit.bind(this,"error");r.on("error",i),r.pipe(this)}),this.emit("readable")}function Ne(e,t){if(!(this instanceof Ne))return new Ne(e,t);Me.call(this,t),Nr(this,"_write",function(){var r=e.call(this,t),i=this.emit.bind(this,"error");r.on("error",i),this.pipe(r)}),this.emit("writable")}});var yt=E((Lc,kr)=>{c();var Br=9007199254740991,As="[object Arguments]",Ts="[object Function]",Ds="[object GeneratorFunction]",Rs=/^(?:0|[1-9]\d*)$/;function qr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Fs(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var xe=Object.prototype,Se=xe.hasOwnProperty,Gr=xe.toString,Ps=xe.propertyIsEnumerable,zr=Math.max;function Cs(e,t){var r=ks(e)||Us(e)?Fs(e.length,String):[],i=r.length,n=!!i;for(var s in e)(t||Se.call(e,s))&&!(n&&(s=="length"||Ur(s,i)))&&r.push(s);return r}function Ls(e,t,r,i){return e===void 0||dt(e,xe[r])&&!Se.call(i,r)?t:e}function Ns(e,t,r){var i=e[t];(!(Se.call(e,t)&&dt(i,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Ms(e){if(!gt(e))return js(e);var t=Gs(e),r=[];for(var i in e)i=="constructor"&&(t||!Se.call(e,i))||r.push(i);return r}function jr(e,t){return t=zr(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,n=zr(r.length-t,0),s=Array(n);++i<n;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=s,qr(e,this,a)}}function zs(e,t,r,i){r||(r={});for(var n=-1,s=t.length;++n<s;){var a=t[n],o=i?i(r[a],e[a],a,r,e):void 0;Ns(r,a,o===void 0?e[a]:o)}return r}function Bs(e){return jr(function(t,r){var i=-1,n=r.length,s=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(n--,s):void 0,a&&qs(r[0],r[1],a)&&(s=n<3?void 0:s,n=1),t=Object(t);++i<n;){var o=r[i];o&&e(t,o,i,s)}return t})}function Ur(e,t){return t=t??Br,!!t&&(typeof e=="number"||Rs.test(e))&&e>-1&&e%1==0&&e<t}function qs(e,t,r){if(!gt(r))return!1;var i=typeof t;return(i=="number"?mt(r)&&Ur(t,r.length):i=="string"&&t in r)?dt(r[t],e):!1}function Gs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||xe;return e===r}function js(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}function dt(e,t){return e===t||e!==e&&t!==t}function Us(e){return Zs(e)&&Se.call(e,"callee")&&(!Ps.call(e,"callee")||Gr.call(e)==As)}var ks=Array.isArray;function mt(e){return e!=null&&Qs(e.length)&&!Hs(e)}function Zs(e){return $s(e)&&mt(e)}function Hs(e){var t=gt(e)?Gr.call(e):"";return t==Ts||t==Ds}function Qs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Br}function gt(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function $s(e){return!!e&&typeof e=="object"}var Ys=Bs(function(e,t,r,i){zs(t,Vs(t),e,i)}),Ks=jr(function(e){return e.push(void 0,Ls),qr(Ys,void 0,e)});function Vs(e){return mt(e)?Cs(e,!0):Ms(e)}kr.exports=Ks});var _t=E((Mc,Yr)=>{c();var Ws=9007199254740991,Xs="[object Arguments]",Js="[object Function]",ea="[object GeneratorFunction]",ta=typeof global=="object"&&global&&global.Object===Object&&global,ra=typeof self=="object"&&self&&self.Object===Object&&self,ia=ta||ra||Function("return this")();function na(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}var vt=Object.prototype,sa=vt.hasOwnProperty,Qr=vt.toString,Zr=ia.Symbol,aa=vt.propertyIsEnumerable,Hr=Zr?Zr.isConcatSpreadable:void 0;function $r(e,t,r,i,n){var s=-1,a=e.length;for(r||(r=oa),n||(n=[]);++s<a;){var o=e[s];t>0&&r(o)?t>1?$r(o,t-1,r,i,n):na(n,o):i||(n[n.length]=o)}return n}function oa(e){return ca(e)||fa(e)||!!(Hr&&e&&e[Hr])}function ua(e){var t=e?e.length:0;return t?$r(e,1):[]}function fa(e){return la(e)&&sa.call(e,"callee")&&(!aa.call(e,"callee")||Qr.call(e)==Xs)}var ca=Array.isArray;function ha(e){return e!=null&&da(e.length)&&!pa(e)}function la(e){return ga(e)&&ha(e)}function pa(e){var t=ma(e)?Qr.call(e):"";return t==Js||t==ea}function da(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ws}function ma(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ga(e){return!!e&&typeof e=="object"}Yr.exports=ua});var Ot=E((Bc,si)=>{c();var ya=200,xt="__lodash_hash_undefined__",va=9007199254740991,_a="[object Arguments]",ba="[object Function]",Ea="[object GeneratorFunction]",xa=/[\\^$.*+?()[\]{}|]/g,Sa=/^\[object .+?Constructor\]$/,wa=typeof global=="object"&&global&&global.Object===Object&&global,Oa=typeof self=="object"&&self&&self.Object===Object&&self,St=wa||Oa||Function("return this")();function Ia(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Aa(e,t){var r=e?e.length:0;return!!r&&Pa(e,t,0)>-1}function Ta(e,t,r){for(var i=-1,n=e?e.length:0;++i<n;)if(r(t,e[i]))return!0;return!1}function Da(e,t){for(var r=-1,i=e?e.length:0,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}function Ra(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}function Fa(e,t,r,i){for(var n=e.length,s=r+(i?1:-1);i?s--:++s<n;)if(t(e[s],s,e))return s;return-1}function Pa(e,t,r){if(t!==t)return Fa(e,Ca,r);for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}function Ca(e){return e!==e}function La(e){return function(t){return e(t)}}function Na(e,t){return e.has(t)}function Ma(e,t){return e?.[t]}function za(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Ba=Array.prototype,qa=Function.prototype,wt=Object.prototype,bt=St["__core-js_shared__"],Kr=(function(){var e=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Jr=qa.toString,Be=wt.hasOwnProperty,ei=wt.toString,Ga=RegExp("^"+Jr.call(Be).replace(xa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vr=St.Symbol,ja=wt.propertyIsEnumerable,Ua=Ba.splice,Wr=Vr?Vr.isConcatSpreadable:void 0,Xr=Math.max,ka=ri(St,"Map"),we=ri(Object,"create");function ne(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Za(){this.__data__=we?we(null):{}}function Ha(e){return this.has(e)&&delete this.__data__[e]}function Qa(e){var t=this.__data__;if(we){var r=t[e];return r===xt?void 0:r}return Be.call(t,e)?t[e]:void 0}function $a(e){var t=this.__data__;return we?t[e]!==void 0:Be.call(t,e)}function Ya(e,t){var r=this.__data__;return r[e]=we&&t===void 0?xt:t,this}ne.prototype.clear=Za;ne.prototype.delete=Ha;ne.prototype.get=Qa;ne.prototype.has=$a;ne.prototype.set=Ya;function pe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Ka(){this.__data__=[]}function Va(e){var t=this.__data__,r=qe(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Ua.call(t,r,1),!0}function Wa(e){var t=this.__data__,r=qe(t,e);return r<0?void 0:t[r][1]}function Xa(e){return qe(this.__data__,e)>-1}function Ja(e,t){var r=this.__data__,i=qe(r,e);return i<0?r.push([e,t]):r[i][1]=t,this}pe.prototype.clear=Ka;pe.prototype.delete=Va;pe.prototype.get=Wa;pe.prototype.has=Xa;pe.prototype.set=Ja;function de(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function eo(){this.__data__={hash:new ne,map:new(ka||pe),string:new ne}}function to(e){return Ge(this,e).delete(e)}function ro(e){return Ge(this,e).get(e)}function io(e){return Ge(this,e).has(e)}function no(e,t){return Ge(this,e).set(e,t),this}de.prototype.clear=eo;de.prototype.delete=to;de.prototype.get=ro;de.prototype.has=io;de.prototype.set=no;function ze(e){var t=-1,r=e?e.length:0;for(this.__data__=new de;++t<r;)this.add(e[t])}function so(e){return this.__data__.set(e,xt),this}function ao(e){return this.__data__.has(e)}ze.prototype.add=ze.prototype.push=so;ze.prototype.has=ao;function qe(e,t){for(var r=e.length;r--;)if(go(e[r][0],t))return r;return-1}function oo(e,t,r,i){var n=-1,s=Aa,a=!0,o=e.length,u=[],f=t.length;if(!o)return u;r&&(t=Da(t,La(r))),i?(s=Ta,a=!1):t.length>=ya&&(s=Na,a=!1,t=new ze(t));e:for(;++n<o;){var l=e[n],d=r?r(l):l;if(l=i||l!==0?l:0,a&&d===d){for(var h=f;h--;)if(t[h]===d)continue e;u.push(l)}else s(t,d,i)||u.push(l)}return u}function ti(e,t,r,i,n){var s=-1,a=e.length;for(r||(r=co),n||(n=[]);++s<a;){var o=e[s];t>0&&r(o)?t>1?ti(o,t-1,r,i,n):Ra(n,o):i||(n[n.length]=o)}return n}function uo(e){if(!ni(e)||lo(e))return!1;var t=ii(e)||za(e)?Ga:Sa;return t.test(po(e))}function fo(e,t){return t=Xr(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,n=Xr(r.length-t,0),s=Array(n);++i<n;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=s,Ia(e,this,a)}}function Ge(e,t){var r=e.__data__;return ho(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ri(e,t){var r=Ma(e,t);return uo(r)?r:void 0}function co(e){return vo(e)||yo(e)||!!(Wr&&e&&e[Wr])}function ho(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function lo(e){return!!Kr&&Kr in e}function po(e){if(e!=null){try{return Jr.call(e)}catch{}try{return e+""}catch{}}return""}var mo=fo(function(e,t){return Et(e)?oo(e,ti(t,1,Et,!0)):[]});function go(e,t){return e===t||e!==e&&t!==t}function yo(e){return Et(e)&&Be.call(e,"callee")&&(!ja.call(e,"callee")||ei.call(e)==_a)}var vo=Array.isArray;function _o(e){return e!=null&&bo(e.length)&&!ii(e)}function Et(e){return Eo(e)&&_o(e)}function ii(e){var t=ni(e)?ei.call(e):"";return t==ba||t==Ea}function bo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=va}function ni(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Eo(e){return!!e&&typeof e=="object"}si.exports=mo});var Ft=E((Gc,yi)=>{c();var xo=200,Tt="__lodash_hash_undefined__",So=1/0,wo=9007199254740991,Oo="[object Arguments]",Io="[object Function]",Ao="[object GeneratorFunction]",To=/[\\^$.*+?()[\]{}|]/g,Do=/^\[object .+?Constructor\]$/,Ro=typeof global=="object"&&global&&global.Object===Object&&global,Fo=typeof self=="object"&&self&&self.Object===Object&&self,Ue=Ro||Fo||Function("return this")();function Po(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Co(e,t){var r=e?e.length:0;return!!r&&zo(e,t,0)>-1}function Lo(e,t,r){for(var i=-1,n=e?e.length:0;++i<n;)if(r(t,e[i]))return!0;return!1}function No(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}function Mo(e,t,r,i){for(var n=e.length,s=r+(i?1:-1);i?s--:++s<n;)if(t(e[s],s,e))return s;return-1}function zo(e,t,r){if(t!==t)return Mo(e,Bo,r);for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}function Bo(e){return e!==e}function qo(e,t){return e.has(t)}function Go(e,t){return e?.[t]}function jo(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function ci(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var Uo=Array.prototype,ko=Function.prototype,Dt=Object.prototype,It=Ue["__core-js_shared__"],ai=(function(){var e=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),hi=ko.toString,ke=Dt.hasOwnProperty,li=Dt.toString,Zo=RegExp("^"+hi.call(ke).replace(To,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oi=Ue.Symbol,Ho=Dt.propertyIsEnumerable,Qo=Uo.splice,ui=oi?oi.isConcatSpreadable:void 0,fi=Math.max,$o=Rt(Ue,"Map"),At=Rt(Ue,"Set"),Oe=Rt(Object,"create");function se(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Yo(){this.__data__=Oe?Oe(null):{}}function Ko(e){return this.has(e)&&delete this.__data__[e]}function Vo(e){var t=this.__data__;if(Oe){var r=t[e];return r===Tt?void 0:r}return ke.call(t,e)?t[e]:void 0}function Wo(e){var t=this.__data__;return Oe?t[e]!==void 0:ke.call(t,e)}function Xo(e,t){var r=this.__data__;return r[e]=Oe&&t===void 0?Tt:t,this}se.prototype.clear=Yo;se.prototype.delete=Ko;se.prototype.get=Vo;se.prototype.has=Wo;se.prototype.set=Xo;function me(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Jo(){this.__data__=[]}function eu(e){var t=this.__data__,r=Ze(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Qo.call(t,r,1),!0}function tu(e){var t=this.__data__,r=Ze(t,e);return r<0?void 0:t[r][1]}function ru(e){return Ze(this.__data__,e)>-1}function iu(e,t){var r=this.__data__,i=Ze(r,e);return i<0?r.push([e,t]):r[i][1]=t,this}me.prototype.clear=Jo;me.prototype.delete=eu;me.prototype.get=tu;me.prototype.has=ru;me.prototype.set=iu;function ge(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function nu(){this.__data__={hash:new se,map:new($o||me),string:new se}}function su(e){return He(this,e).delete(e)}function au(e){return He(this,e).get(e)}function ou(e){return He(this,e).has(e)}function uu(e,t){return He(this,e).set(e,t),this}ge.prototype.clear=nu;ge.prototype.delete=su;ge.prototype.get=au;ge.prototype.has=ou;ge.prototype.set=uu;function je(e){var t=-1,r=e?e.length:0;for(this.__data__=new ge;++t<r;)this.add(e[t])}function fu(e){return this.__data__.set(e,Tt),this}function cu(e){return this.__data__.has(e)}je.prototype.add=je.prototype.push=fu;je.prototype.has=cu;function Ze(e,t){for(var r=e.length;r--;)if(bu(e[r][0],t))return r;return-1}function pi(e,t,r,i,n){var s=-1,a=e.length;for(r||(r=mu),n||(n=[]);++s<a;){var o=e[s];t>0&&r(o)?t>1?pi(o,t-1,r,i,n):No(n,o):i||(n[n.length]=o)}return n}function hu(e){if(!gi(e)||yu(e))return!1;var t=mi(e)||jo(e)?Zo:Do;return t.test(vu(e))}function lu(e,t){return t=fi(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,n=fi(r.length-t,0),s=Array(n);++i<n;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=s,Po(e,this,a)}}function pu(e,t,r){var i=-1,n=Co,s=e.length,a=!0,o=[],u=o;if(r)a=!1,n=Lo;else if(s>=xo){var f=t?null:du(e);if(f)return ci(f);a=!1,n=qo,u=new je}else u=t?[]:o;e:for(;++i<s;){var l=e[i],d=t?t(l):l;if(l=r||l!==0?l:0,a&&d===d){for(var h=u.length;h--;)if(u[h]===d)continue e;t&&u.push(d),o.push(l)}else n(u,d,r)||(u!==o&&u.push(d),o.push(l))}return o}var du=At&&1/ci(new At([,-0]))[1]==So?function(e){return new At(e)}:Iu;function He(e,t){var r=e.__data__;return gu(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Rt(e,t){var r=Go(e,t);return hu(r)?r:void 0}function mu(e){return xu(e)||Eu(e)||!!(ui&&e&&e[ui])}function gu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yu(e){return!!ai&&ai in e}function vu(e){if(e!=null){try{return hi.call(e)}catch{}try{return e+""}catch{}}return""}var _u=lu(function(e){return pu(pi(e,1,di,!0))});function bu(e,t){return e===t||e!==e&&t!==t}function Eu(e){return di(e)&&ke.call(e,"callee")&&(!Ho.call(e,"callee")||li.call(e)==Oo)}var xu=Array.isArray;function Su(e){return e!=null&&wu(e.length)&&!mi(e)}function di(e){return Ou(e)&&Su(e)}function mi(e){var t=gi(e)?li.call(e):"";return t==Io||t==Ao}function wu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wo}function gi(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Ou(e){return!!e&&typeof e=="object"}function Iu(){}yi.exports=_u});var Pt=E((Uc,bi)=>{c();var Au="[object Object]";function Tu(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Du(e,t){return function(r){return e(t(r))}}var Ru=Function.prototype,vi=Object.prototype,_i=Ru.toString,Fu=vi.hasOwnProperty,Pu=_i.call(Object),Cu=vi.toString,Lu=Du(Object.getPrototypeOf,Object);function Nu(e){return!!e&&typeof e=="object"}function Mu(e){if(!Nu(e)||Cu.call(e)!=Au||Tu(e))return!1;var t=Lu(e);if(t===null)return!0;var r=Fu.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&_i.call(r)==Pu}bi.exports=Mu});var xi=E((Zc,Ei)=>{c();Ei.exports=function(e,t){for(var r=[],i=0;i<e.length;i++){var n=t(e[i],i);zu(n)?r.push.apply(r,n):r.push(n)}return r};var zu=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}});var Ri=E((Qc,Di)=>{c();var Bu=xi(),Si=gs();Di.exports=ju;var wi="\0SLASH"+Math.random()+"\0",Oi="\0OPEN"+Math.random()+"\0",Lt="\0CLOSE"+Math.random()+"\0",Ii="\0COMMA"+Math.random()+"\0",Ai="\0PERIOD"+Math.random()+"\0";function Ct(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function qu(e){return e.split("\\\\").join(wi).split("\\{").join(Oi).split("\\}").join(Lt).split("\\,").join(Ii).split("\\.").join(Ai)}function Gu(e){return e.split(wi).join("\\").split(Oi).join("{").split(Lt).join("}").split(Ii).join(",").split(Ai).join(".")}function Ti(e){if(!e)return[""];var t=[],r=Si("{","}",e);if(!r)return e.split(",");var i=r.pre,n=r.body,s=r.post,a=i.split(",");a[a.length-1]+="{"+n+"}";var o=Ti(s);return s.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),t.push.apply(t,a),t}function ju(e,t){if(!e)return[];t=t||{};var r=t.max==null?1/0:t.max;return e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),ye(qu(e),r,!0).map(Gu)}function Uu(e){return"{"+e+"}"}function ku(e){return/^-?0\d/.test(e)}function Zu(e,t){return e<=t}function Hu(e,t){return e>=t}function ye(e,t,r){var i=[],n=Si("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),o=s||a,u=n.body.indexOf(",")>=0;if(!o&&!u)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+Lt+n.post,ye(e,t,!0)):[e];var f;if(o)f=n.body.split(/\.\./);else if(f=Ti(n.body),f.length===1&&(f=ye(f[0],t,!1).map(Uu),f.length===1)){var d=n.post.length?ye(n.post,t,!1):[""];return d.map(function(P){return n.pre+f[0]+P})}var l=n.pre,d=n.post.length?ye(n.post,t,!1):[""],h;if(o){var g=Ct(f[0]),v=Ct(f[1]),O=Math.max(f[0].length,f[1].length),F=f.length==3?Math.max(Math.abs(Ct(f[2])),1):1,D=Zu,C=v<g;C&&(F*=-1,D=Hu);var $=f.some(ku);h=[];for(var q=g;D(q,v);q+=F){var N;if(a)N=String.fromCharCode(q),N==="\\"&&(N="");else if(N=String(q),$){var W=O-N.length;if(W>0){var p=new Array(W+1).join("0");q<0?N="-"+p+N.slice(1):N=p+N}}h.push(N)}}else h=Bu(f,function(I){return ye(I,t,!1)});for(var R=0;R<h.length;R++)for(var m=0;m<d.length&&i.length<t;m++){var S=l+h[R]+d[m];(!r||o||S)&&i.push(S)}return i}});var Ye=E((Yc,Ni)=>{c();Ni.exports=U;U.Minimatch=M;var Ie=(function(){try{return w("path")}catch{}})()||{sep:"/"};U.sep=Ie.sep;var ae=U.GLOBSTAR=M.GLOBSTAR={},Qu=Ri(),Fi={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Nt="[^/]",Mt=Nt+"*?",$u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Yu="(?:(?!(?:\\/|^)\\.).)*?",Pi=Ku("().*{}+?[]^$\\!");function Ku(e){return e.split("").reduce(function(t,r){return t[r]=!0,t},{})}var Ci=/\/+/;U.filter=Vu;function Vu(e,t){return t=t||{},function(r,i,n){return U(r,e,t)}}function X(e,t){t=t||{};var r={};return Object.keys(e).forEach(function(i){r[i]=e[i]}),Object.keys(t).forEach(function(i){r[i]=t[i]}),r}U.defaults=function(e){if(!e||typeof e!="object"||!Object.keys(e).length)return U;var t=U,r=function(n,s,a){return t(n,s,X(e,a))};return r.Minimatch=function(n,s){return new t.Minimatch(n,X(e,s))},r.Minimatch.defaults=function(n){return t.defaults(X(e,n)).Minimatch},r.filter=function(n,s){return t.filter(n,X(e,s))},r.defaults=function(n){return t.defaults(X(e,n))},r.makeRe=function(n,s){return t.makeRe(n,X(e,s))},r.braceExpand=function(n,s){return t.braceExpand(n,X(e,s))},r.match=function(i,n,s){return t.match(i,n,X(e,s))},r};M.defaults=function(e){return U.defaults(e).Minimatch};function U(e,t,r){return $e(t),r||(r={}),!r.nocomment&&t.charAt(0)==="#"?!1:new M(t,r).match(e)}function M(e,t){if(!(this instanceof M))return new M(e,t);$e(e),t||(t={}),e=e.trim(),!t.allowWindowsEscape&&Ie.sep!=="/"&&(e=e.split(Ie.sep).join("/")),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion!==void 0?t.maxGlobstarRecursion:200,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}M.prototype.debug=function(){};M.prototype.make=Wu;function Wu(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(i){return i.split(Ci)}),this.debug(this.pattern,r),r=r.map(function(i,n,s){return i.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}M.prototype.parseNegate=Xu;function Xu(){var e=this.pattern,t=!1,r=this.options,i=0;if(!r.nonegate){for(var n=0,s=e.length;n<s&&e.charAt(n)==="!";n++)t=!t,i++;i&&(this.pattern=e.substr(i)),this.negate=t}}U.braceExpand=function(e,t){return Li(e,t)};M.prototype.braceExpand=Li;function Li(e,t){return t||(this instanceof M?t=this.options:t={}),e=typeof e>"u"?this.pattern:e,$e(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Qu(e)}var Ju=1024*64,$e=function(e){if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>Ju)throw new TypeError("pattern is too long")};M.prototype.parse=ef;var Qe={};function ef(e,t){$e(e);var r=this.options;if(e==="**")if(r.noglobstar)e="*";else return ae;if(e==="")return"";var i="",n=!!r.nocase,s=!1,a=[],o=[],u,f=!1,l=-1,d=-1,h=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function v(){if(u){switch(u){case"*":i+=Mt,n=!0;break;case"?":i+=Nt,n=!0;break;default:i+="\\"+u;break}g.debug("clearStateChar %j %j",u,i),u=!1}}for(var O=0,F=e.length,D;O<F&&(D=e.charAt(O));O++){if(this.debug("%s %s %s %j",e,O,i,D),s&&Pi[D]){i+="\\"+D,s=!1;continue}switch(D){case"/":return!1;case"\\":v(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,O,i,D),f){this.debug(" in class"),D==="!"&&O===d+1&&(D="^"),i+=D;continue}if(D==="*"&&u==="*")continue;g.debug("call clearStateChar %j",u),v(),u=D,r.noext&&v();continue;case"(":if(f){i+="(";continue}if(!u){i+="\\(";continue}a.push({type:u,start:O-1,reStart:i.length,open:Fi[u].open,close:Fi[u].close}),i+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,i),u=!1;continue;case")":if(f||!a.length){i+="\\)";continue}v(),n=!0;var C=a.pop();i+=C.close,C.type==="!"&&o.push(C),C.reEnd=i.length;continue;case"|":if(f||!a.length||s){i+="\\|",s=!1;continue}v(),i+="|";continue;case"[":if(v(),f){i+="\\"+D;continue}f=!0,d=O,l=i.length,i+=D;continue;case"]":if(O===d+1||!f){i+="\\"+D,s=!1;continue}var $=e.substring(d+1,O);try{RegExp("["+$+"]")}catch{var q=this.parse($,Qe);i=i.substr(0,l)+"\\["+q[0]+"\\]",n=n||q[1],f=!1;continue}n=!0,f=!1,i+=D;continue;default:v(),s?s=!1:Pi[D]&&!(D==="^"&&f)&&(i+="\\"),i+=D}}for(f&&($=e.substr(d+1),q=this.parse($,Qe),i=i.substr(0,l)+"\\["+q[0],n=n||q[1]),C=a.pop();C;C=a.pop()){var N=i.slice(C.reStart+C.open.length);this.debug("setting tail",i,C),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(Er,xr,nt){return nt||(nt="\\"),xr+xr+nt+"|"}),this.debug(`tail=%j %s`,N,N,C,i);var W=C.type==="*"?Mt:C.type==="?"?Nt:"\\"+C.type;n=!0,i=i.slice(0,C.reStart)+W+"\\("+N}v(),s&&(i+="\\\\");var p=!1;switch(i.charAt(0)){case"[":case".":case"(":p=!0}for(var R=o.length-1;R>-1;R--){var m=o[R],S=i.slice(0,m.reStart),I=i.slice(m.reStart,m.reEnd-8),P=i.slice(m.reEnd-8,m.reEnd),K=i.slice(m.reEnd);P+=K;var hs=S.split("(").length-1,rt=K;for(O=0;O<hs;O++)rt=rt.replace(/\)[+*?]?/,"");K=rt;var br="";K===""&&t!==Qe&&(br="$");var ls=S+I+K+br+P;i=ls}if(i!==""&&n&&(i="(?=.)"+i),p&&(i=h+i),t===Qe)return[i,n];if(!n)return rf(e);var ps=r.nocase?"i":"";try{var it=new RegExp("^"+i+"$",ps)}catch{return new RegExp("$.")}return it._glob=e,it._src=i,it}U.makeRe=function(e,t){return new M(e,t||{}).makeRe()};M.prototype.makeRe=tf;function tf(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?Mt:t.dot?$u:Yu,i=t.nocase?"i":"",n=e.map(function(s){return s.map(function(a){return a===ae?r:typeof a=="string"?nf(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,i)}catch{this.regexp=!1}return this.regexp}U.match=function(e,t,r){r=r||{};var i=new M(t,r);return e=e.filter(function(n){return i.match(n)}),i.options.nonull&&!e.length&&e.push(t),e};M.prototype.match=function(t,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;var i=this.options;Ie.sep!=="/"&&(t=t.split(Ie.sep).join("/")),t=t.split(Ci),this.debug(this.pattern,"split",t);var n=this.set;this.debug(this.pattern,"set",n);var s,a;for(a=t.length-1;a>=0&&(s=t[a],!s);a--);for(a=0;a<n.length;a++){var o=n[a],u=t;i.matchBase&&o.length===1&&(u=[s]);var f=this.matchOne(u,o,r);if(f)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};M.prototype.matchOne=function(e,t,r){return t.indexOf(ae)!==-1?this._matchGlobstar(e,t,r,0,0):this._matchOne(e,t,r,0,0)};M.prototype._matchGlobstar=function(e,t,r,i,n){var s,a=-1;for(s=n;s<t.length;s++)if(t[s]===ae){a=s;break}var o=-1;for(s=t.length-1;s>=0;s--)if(t[s]===ae){o=s;break}var u=t.slice(n,a),f=r?t.slice(a+1):t.slice(a+1,o),l=r?[]:t.slice(o+1);if(u.length){var d=e.slice(i,i+u.length);if(!this._matchOne(d,u,r,0,0))return!1;i+=u.length}var h=0;if(l.length){if(l.length+i>e.length)return!1;var g=e.length-l.length;if(this._matchOne(e,l,r,g,0))h=l.length;else{if(e[e.length-1]!==""||i+l.length===e.length||(g--,!this._matchOne(e,l,r,g,0)))return!1;h=l.length+1}}if(!f.length){var v=!!h;for(s=i;s<e.length-h;s++){var O=String(e[s]);if(v=!0,O==="."||O===".."||!this.options.dot&&O.charAt(0)===".")return!1}return r||v}for(var F=[[[],0]],D=F[0],C=0,$=[0],q=0;q<f.length;q++){var N=f[q];N===ae?($.push(C),D=[[],0],F.push(D)):(D[0].push(N),C++)}for(var W=F.length-1,p=e.length-h,R=0;R<F.length;R++)F[R][1]=p-($[W--]+F[R][0].length);return!!this._matchGlobStarBodySections(e,F,i,0,r,0,!!h)};M.prototype._matchGlobStarBodySections=function(e,t,r,i,n,s,a){var o=t[i];if(!o){for(var u=r;u<e.length;u++){a=!0;var f=e[u];if(f==="."||f===".."||!this.options.dot&&f.charAt(0)===".")return!1}return a}for(var l=o[0],d=o[1];r<=d;){var h=this._matchOne(e.slice(0,r+l.length),l,n,r,0);if(h&&s<this.maxGlobstarRecursion){var g=this._matchGlobStarBodySections(e,t,r+l.length,i+1,n,s+1,a);if(g!==!1)return g}var f=e[r];if(f==="."||f===".."||!this.options.dot&&f.charAt(0)===".")return!1;r++}return n||null};M.prototype._matchOne=function(e,t,r,i,n){var s,a,o,u;for(s=i,a=n,o=e.length,u=t.length;s<o&&a<u;s++,a++){this.debug("matchOne loop");var f=t[a],l=e[s];if(this.debug(t,f,l),f===!1||f===ae)return!1;var d;if(typeof f=="string"?(d=l===f,this.debug("string match",f,l,d)):(d=l.match(f),this.debug("pattern match",f,l,d)),!d)return!1}if(s===o&&a===u)return!0;if(s===o)return r;if(a===u)return s===o-1&&e[s]==="";throw new Error("wtf?")};function rf(e){return e.replace(/\\(.)/g,"$1")}function nf(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ve=E((Vc,Ke)=>{"use strict";c();function Mi(e){return e.charAt(0)==="/"}function zi(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=t.exec(e),i=r[1]||"",n=!!(i&&i.charAt(1)!==":");return!!(r[2]||n)}Ke.exports=process.platform==="win32"?zi:Mi;Ke.exports.posix=Mi;Ke.exports.win32=zi});var Bt=E(J=>{c();J.setopts=cf;J.ownProp=Bi;J.makeAbs=Ae;J.finish=hf;J.mark=lf;J.isIgnored=Gi;J.childrenIgnored=pf;function Bi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var sf=w("fs"),ve=w("path"),af=Ye(),qi=Ve(),zt=af.Minimatch;function of(e,t){return e.localeCompare(t,"en")}function uf(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(ff))}function ff(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new zt(r,{dot:!0})}return{matcher:new zt(e,{dot:!0}),gmatcher:t}}function cf(e,t,r){if(r||(r={}),r.matchBase&&t.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=r.strict!==!1,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||sf,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),uf(e,r),e.changedCwd=!1;var i=process.cwd();Bi(r,"cwd")?(e.cwd=ve.resolve(r.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=r.root||ve.resolve(e.cwd,"/"),e.root=ve.resolve(e.root),process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=qi(e.cwd)?e.cwd:Ae(e,e.cwd),process.platform==="win32"&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,r.allowWindowsEscape=!1,e.minimatch=new zt(t,r),e.options=e.minimatch.options}function hf(e){for(var t=e.nounique,r=t?[]:Object.create(null),i=0,n=e.matches.length;i<n;i++){var s=e.matches[i];if(!s||Object.keys(s).length===0){if(e.nonull){var a=e.minimatch.globSet[i];t?r.push(a):r[a]=!0}}else{var o=Object.keys(s);t?r.push.apply(r,o):o.forEach(function(u){r[u]=!0})}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(of)),e.mark){for(var i=0;i<r.length;i++)r[i]=e._mark(r[i]);e.nodir&&(r=r.filter(function(u){var f=!/\/$/.test(u),l=e.cache[u]||e.cache[Ae(e,u)];return f&&l&&(f=l!=="DIR"&&!Array.isArray(l)),f}))}e.ignore.length&&(r=r.filter(function(u){return!Gi(e,u)})),e.found=r}function lf(e,t){var r=Ae(e,t),i=e.cache[r],n=t;if(i){var s=i==="DIR"||Array.isArray(i),a=t.slice(-1)==="/";if(s&&!a?n+="/":!s&&a&&(n=n.slice(0,-1)),n!==t){var o=Ae(e,n);e.statCache[o]=e.statCache[r],e.cache[o]=e.cache[r]}}return n}function Ae(e,t){var r=t;return t.charAt(0)==="/"?r=ve.join(e.root,t):qi(t)||t===""?r=t:e.changedCwd?r=ve.resolve(e.cwd,t):r=ve.resolve(t),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function Gi(e,t){return e.ignore.length?e.ignore.some(function(r){return r.matcher.match(t)||!!(r.gmatcher&&r.gmatcher.match(t))}):!1}function pf(e,t){return e.ignore.length?e.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(t))}):!1}});var Hi=E((ih,Zi)=>{c();Zi.exports=ki;ki.GlobSync=z;var df=Or(),ji=Ye(),eh=ji.Minimatch,th=Xe().Glob,rh=w("util"),qt=w("path"),Ui=w("assert"),We=Ve(),oe=Bt(),mf=oe.setopts,Gt=oe.ownProp,gf=oe.childrenIgnored,yf=oe.isIgnored;function ki(e,t){if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);return new z(e,t).found}function z(e,t){if(!e)throw new Error("must provide pattern");if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof z))return new z(e,t);if(mf(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}z.prototype._finish=function(){if(Ui.ok(this instanceof z),this.realpath){var e=this;this.matches.forEach(function(t,r){var i=e.matches[r]=Object.create(null);for(var n in t)try{n=e._makeAbs(n);var s=df.realpathSync(n,e.realpathCache);i[s]=!0}catch(a){if(a.syscall==="stat")i[e._makeAbs(n)]=!0;else throw a}})}oe.finish(this)};z.prototype._process=function(e,t,r){Ui.ok(this instanceof z);for(var i=0;typeof e[i]=="string";)i++;var n;switch(i){case e.length:this._processSimple(e.join("/"),t);return;case 0:n=null;break;default:n=e.slice(0,i).join("/");break}var s=e.slice(i),a;n===null?a=".":((We(n)||We(e.map(function(f){return typeof f=="string"?f:"[*]"}).join("/")))&&(!n||!We(n))&&(n="/"+n),a=n);var o=this._makeAbs(a);if(!gf(this,a)){var u=s[0]===ji.GLOBSTAR;u?this._processGlobStar(n,a,o,s,t,r):this._processReaddir(n,a,o,s,t,r)}};z.prototype._processReaddir=function(e,t,r,i,n,s){var a=this._readdir(r,s);if(a){for(var o=i[0],u=!!this.minimatch.negate,f=o._glob,l=this.dot||f.charAt(0)===".",d=[],h=0;h<a.length;h++){var g=a[h];if(g.charAt(0)!=="."||l){var v;u&&!e?v=!g.match(o):v=g.match(o),v&&d.push(g)}}var O=d.length;if(O!==0){if(i.length===1&&!this.mark&&!this.stat){this.matches[n]||(this.matches[n]=Object.create(null));for(var h=0;h<O;h++){var g=d[h];e&&(e.slice(-1)!=="/"?g=e+"/"+g:g=e+g),g.charAt(0)==="/"&&!this.nomount&&(g=qt.join(this.root,g)),this._emitMatch(n,g)}return}i.shift();for(var h=0;h<O;h++){var g=d[h],F;e?F=[e,g]:F=[g],this._process(F.concat(i),n,s)}}}};z.prototype._emitMatch=function(e,t){if(!yf(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}};z.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r,i;try{r=this.fs.lstatSync(e)}catch(s){if(s.code==="ENOENT")return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,!n&&r&&!r.isDirectory()?this.cache[e]="FILE":t=this._readdir(e,!1),t};z.prototype._readdir=function(e,t){var r;if(t&&!Gt(this.symlinks,e))return this._readdirInGlobStar(e);if(Gt(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(n){return this._readdirError(e,n),null}};z.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var i=t[r];e==="/"?i=e+i:i=e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,t};z.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);throw i.path=this.cwd,i.code=t.code,i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t);break}};z.prototype._processGlobStar=function(e,t,r,i,n,s){var a=this._readdir(r,s);if(a){var o=i.slice(1),u=e?[e]:[],f=u.concat(o);this._process(f,n,!1);var l=a.length,d=this.symlinks[r];if(!(d&&s))for(var h=0;h<l;h++){var g=a[h];if(!(g.charAt(0)==="."&&!this.dot)){var v=u.concat(a[h],o);this._process(v,n,!0);var O=u.concat(a[h],i);this._process(O,n,!0)}}}};z.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),!!r){if(e&&We(e)&&!this.nomount){var i=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=qt.join(this.root,e):(e=qt.resolve(this.root,e),i&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}};z.prototype._stat=function(e){var t=this._makeAbs(e),r=e.slice(-1)==="/";if(e.length>this.maxLength)return!1;if(!this.stat&&Gt(this.cache,t)){var a=this.cache[t];if(Array.isArray(a)&&(a="DIR"),!r||a==="DIR")return a;if(r&&a==="FILE")return!1}var i,n=this.statCache[t];if(!n){var s;try{s=this.fs.lstatSync(t)}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{n=this.fs.statSync(t)}catch{n=s}else n=s}this.statCache[t]=n;var a=!0;return n&&(a=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,r&&a==="FILE"?!1:a};z.prototype._mark=function(e){return oe.mark(this,e)};z.prototype._makeAbs=function(e){return oe.makeAbs(this,e)}});var Xe=E((oh,$i)=>{c();$i.exports=ue;var vf=Or(),Qi=Ye(),sh=Qi.Minimatch,_f=vs(),bf=w("events").EventEmitter,jt=w("path"),Ut=w("assert"),Te=Ve(),Zt=Hi(),fe=Bt(),Ef=fe.setopts,kt=fe.ownProp,Ht=_s(),ah=w("util"),xf=fe.childrenIgnored,Sf=fe.isIgnored,wf=ms();function ue(e,t,r){if(typeof t=="function"&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return Zt(e,t)}return new T(e,t,r)}ue.sync=Zt;var Of=ue.GlobSync=Zt.GlobSync;ue.glob=ue;function If(e,t){if(t===null||typeof t!="object")return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e}ue.hasMagic=function(e,t){var r=If({},t);r.noprocess=!0;var i=new T(e,r),n=i.minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var s=0;s<n[0].length;s++)if(typeof n[0][s]!="string")return!0;return!1};ue.Glob=T;_f(T,bf);function T(e,t,r){if(typeof t=="function"&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new Of(e,t)}if(!(this instanceof T))return new T(e,t,r);Ef(this,e,t),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof r=="function"&&(r=wf(r),this.on("error",r),this.on("end",function(u){r(null,u)}));var n=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(i===0)return o();for(var s=!0,a=0;a<i;a++)this._process(this.minimatch.set[a],a,!1,o);s=!1;function o(){--n._processing,n._processing<=0&&(s?process.nextTick(function(){n._finish()}):n._finish())}}T.prototype._finish=function(){if(Ut(this instanceof T),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();fe.finish(this),this.emit("end",this.found)}};T.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var e=this.matches.length;if(e===0)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,i);function i(){--e===0&&t._finish()}};T.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var i=Object.keys(r),n=this,s=i.length;if(s===0)return t();var a=this.matches[e]=Object.create(null);i.forEach(function(o,u){o=n._makeAbs(o),vf.realpath(o,n.realpathCache,function(f,l){f?f.syscall==="stat"?a[o]=!0:n.emit("error",f):a[l]=!0,--s===0&&(n.matches[e]=a,t())})})};T.prototype._mark=function(e){return fe.mark(this,e)};T.prototype._makeAbs=function(e){return fe.makeAbs(this,e)};T.prototype.abort=function(){this.aborted=!0,this.emit("abort")};T.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};T.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<i.length;t++){var n=i[t];this._processing--,this._process(n[0],n[1],n[2],n[3])}}}};T.prototype._process=function(e,t,r,i){if(Ut(this instanceof T),Ut(typeof i=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([e,t,r,i]);return}for(var n=0;typeof e[n]=="string";)n++;var s;switch(n){case e.length:this._processSimple(e.join("/"),t,i);return;case 0:s=null;break;default:s=e.slice(0,n).join("/");break}var a=e.slice(n),o;s===null?o=".":((Te(s)||Te(e.map(function(l){return typeof l=="string"?l:"[*]"}).join("/")))&&(!s||!Te(s))&&(s="/"+s),o=s);var u=this._makeAbs(o);if(xf(this,o))return i();var f=a[0]===Qi.GLOBSTAR;f?this._processGlobStar(s,o,u,a,t,r,i):this._processReaddir(s,o,u,a,t,r,i)}};T.prototype._processReaddir=function(e,t,r,i,n,s,a){var o=this;this._readdir(r,s,function(u,f){return o._processReaddir2(e,t,r,i,n,s,f,a)})};T.prototype._processReaddir2=function(e,t,r,i,n,s,a,o){if(!a)return o();for(var u=i[0],f=!!this.minimatch.negate,l=u._glob,d=this.dot||l.charAt(0)===".",h=[],g=0;g<a.length;g++){var v=a[g];if(v.charAt(0)!=="."||d){var O;f&&!e?O=!v.match(u):O=v.match(u),O&&h.push(v)}}var F=h.length;if(F===0)return o();if(i.length===1&&!this.mark&&!this.stat){this.matches[n]||(this.matches[n]=Object.create(null));for(var g=0;g<F;g++){var v=h[g];e&&(e!=="/"?v=e+"/"+v:v=e+v),v.charAt(0)==="/"&&!this.nomount&&(v=jt.join(this.root,v)),this._emitMatch(n,v)}return o()}i.shift();for(var g=0;g<F;g++){var v=h[g],D;e&&(e!=="/"?v=e+"/"+v:v=e+v),this._process([v].concat(i),n,s,o)}o()};T.prototype._emitMatch=function(e,t){if(!this.aborted&&!Sf(this,t)){if(this.paused){this._emitQueue.push([e,t]);return}var r=Te(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=!0;var n=this.statCache[r];n&&this.emit("stat",t,n),this.emit("match",t)}}};T.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,!1,t);var r="lstat\0"+e,i=this,n=Ht(r,s);n&&i.fs.lstat(e,n);function s(a,o){if(a&&a.code==="ENOENT")return t();var u=o&&o.isSymbolicLink();i.symlinks[e]=u,!u&&o&&!o.isDirectory()?(i.cache[e]="FILE",t()):i._readdir(e,!1,t)}};T.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=Ht("readdir\0"+e+"\0"+t,r),!!r)){if(t&&!kt(this.symlinks,e))return this._readdirInGlobStar(e,r);if(kt(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var n=this;n.fs.readdir(e,Af(this,e,r))}};function Af(e,t,r){return function(i,n){i?e._readdirError(t,i,r):e._readdirEntries(t,n,r)}}T.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var i=0;i<t.length;i++){var n=t[i];e==="/"?n=e+n:n=e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,r(null,t)}};T.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(e);if(this.cache[i]="FILE",i===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd,n.code=t.code,this.emit("error",n),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t);break}return r()}};T.prototype._processGlobStar=function(e,t,r,i,n,s,a){var o=this;this._readdir(r,s,function(u,f){o._processGlobStar2(e,t,r,i,n,s,f,a)})};T.prototype._processGlobStar2=function(e,t,r,i,n,s,a,o){if(!a)return o();var u=i.slice(1),f=e?[e]:[],l=f.concat(u);this._process(l,n,!1,o);var d=this.symlinks[r],h=a.length;if(d&&s)return o();for(var g=0;g<h;g++){var v=a[g];if(!(v.charAt(0)==="."&&!this.dot)){var O=f.concat(a[g],u);this._process(O,n,!0,o);var F=f.concat(a[g],i);this._process(F,n,!0,o)}}o()};T.prototype._processSimple=function(e,t,r){var i=this;this._stat(e,function(n,s){i._processSimple2(e,t,n,s,r)})};T.prototype._processSimple2=function(e,t,r,i,n){if(this.matches[t]||(this.matches[t]=Object.create(null)),!i)return n();if(e&&Te(e)&&!this.nomount){var s=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=jt.join(this.root,e):(e=jt.resolve(this.root,e),s&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),n()};T.prototype._stat=function(e,t){var r=this._makeAbs(e),i=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&kt(this.cache,r)){var n=this.cache[r];if(Array.isArray(n)&&(n="DIR"),!i||n==="DIR")return t(null,n);if(i&&n==="FILE")return t()}var s,a=this.statCache[r];if(a!==void 0){if(a===!1)return t(null,a);var o=a.isDirectory()?"DIR":"FILE";return i&&o==="FILE"?t():t(null,o,a)}var u=this,f=Ht("stat\0"+r,l);f&&u.fs.lstat(r,f);function l(d,h){if(h&&h.isSymbolicLink())return u.fs.stat(r,function(g,v){g?u._stat2(e,r,null,h,t):u._stat2(e,r,g,v,t)});u._stat2(e,r,d,h,t)}};T.prototype._stat2=function(e,t,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[t]=!1,n();var s=e.slice(-1)==="/";if(this.statCache[t]=i,t.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,!1,i);var a=!0;return i&&(a=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,s&&a==="FILE"?n():n(null,a,i)}});var Wi=E((fh,Vi)=>{c();var Ki=Fe(),_e=w("path"),Qt=_t(),Tf=Ot(),Df=Ft(),Rf=Pt(),Ff=Xe(),ce=Vi.exports={},Yi=/[\/\\]/g,Pf=function(e,t){var r=[];return Qt(e).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=t(i);n?r=Tf(r,s):r=Df(r,s)}),r};ce.exists=function(){var e=_e.join.apply(_e,arguments);return Ki.existsSync(e)};ce.expand=function(...e){var t=Rf(e[0])?e.shift():{},r=Array.isArray(e[0])?e[0]:e;if(r.length===0)return[];var i=Pf(r,function(n){return Ff.sync(n,t)});return t.filter&&(i=i.filter(function(n){n=_e.join(t.cwd||"",n);try{return typeof t.filter=="function"?t.filter(n):Ki.statSync(n)[t.filter]()}catch{return!1}})),i};ce.expandMapping=function(e,t,r){r=Object.assign({rename:function(s,a){return _e.join(s||"",a)}},r);var i=[],n={};return ce.expand(r,e).forEach(function(s){var a=s;r.flatten&&(a=_e.basename(a)),r.ext&&(a=a.replace(/(\.[^\/]*)?$/,r.ext));var o=r.rename(t,a,r);r.cwd&&(s=_e.join(r.cwd,s)),o=o.replace(Yi,"/"),s=s.replace(Yi,"/"),n[o]?n[o].src.push(s):(i.push({src:[s],dest:o}),n[o]=i[i.length-1])}),i};ce.normalizeFilesArray=function(e){var t=[];return e.forEach(function(r){var i;("src"in r||"dest"in r)&&t.push(r)}),t.length===0?[]:(t=_(t).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=Qt(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return ce.expandMapping(r.src,r.dest,i).map(function(s){var a=Object.assign({},r);return a.orig=Object.assign({},r),a.src=s.src,a.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(o){delete a[o]}),a});var n=Object.assign({},r);return n.orig=Object.assign({},r),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function s(){var a;return"result"in s||(a=r.src,a=Array.isArray(a)?Qt(a):[a],s.result=ce.expand(i,a)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),t)}});var De=E((lh,en)=>{c();var $t=Fe(),Xi=w("path"),hh=w("util"),Cf=pt(),Ji=ct(),Lf=yt(),Nf=w("stream").Stream,Mf=Ir().PassThrough,k=en.exports={};k.file=Wi();k.collectStream=function(e,t){var r=[],i=0;e.on("error",t),e.on("data",function(n){r.push(n),i+=n.length}),e.on("end",function(){var n=new Buffer(i),s=0;r.forEach(function(a){a.copy(n,s),s+=a.length}),t(null,n)})};k.dateify