@turbo/codemod 1.9.1 → 1.9.2-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
|
|
1
|
-
"use strict";var ii=Object.create;var ye=Object.defineProperty;var ui=Object.getOwnPropertyDescriptor;var oi=Object.getOwnPropertyNames;var si=Object.getPrototypeOf,ai=Object.prototype.hasOwnProperty;var ci=(t,e)=>{for(var r in e)ye(t,r,{get:e[r],enumerable:!0})},Rr=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of oi(e))!ai.call(t,n)&&n!==r&&ye(t,n,{get:()=>e[n],enumerable:!(i=ui(e,n))||i.enumerable});return t};var Bt=(t,e,r)=>(r=t!=null?ii(si(t)):{},Rr(e||!t||!t.__esModule?ye(r,"default",{value:t,enumerable:!0}):r,t)),li=t=>Rr(ye({},"__esModule",{value:!0}),t);var Lc={};ci(Lc,{default:()=>Ic,hasLegacyEnvVarDependencies:()=>Br,migrateConfig:()=>kr,migrateDependencies:()=>Or,migrateGlobal:()=>ri,migratePipeline:()=>ei,transformer:()=>ni});module.exports=li(Lc);var Ie=Bt(require("fs-extra")),wr=Bt(require("path"));var pi=Object.create,Tr=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,di=Object.getOwnPropertyNames,hi=Object.getPrototypeOf,mi=Object.prototype.hasOwnProperty,W=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),Di=(t,e)=>()=>(t&&(e=t(t=0)),e),R=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),yi=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of di(e))!mi.call(t,n)&&n!==r&&Tr(t,n,{get:()=>e[n],enumerable:!(i=fi(e,n))||i.enumerable});return t},Ht=(t,e,r)=>(r=t!=null?pi(hi(t)):{},yi(e||!t||!t.__esModule?Tr(r,"default",{value:t,enumerable:!0}):r,t)),k=Di(()=>{});var je=Bt(require("fs"),1),ne=Bt(require("path"),1);k();function gi({target:t,cwd:e,contentCheck:r}){let i=ne.default.parse(e).root,n=!1;for(;!n&&e!==i;){if(r)try{let a=je.default.readFileSync(ne.default.join(e,t)).toString();if(r(a)){n=!0;break}}catch{}else if(je.default.existsSync(ne.default.join(e,t))){n=!0;break}e=ne.default.dirname(e)}return n?e:null}var Me=gi;var Se=Bt(require("path"),1),Ei=R((t,e)=>{k();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),Ai=R((t,e)=>{k();var r=Ei().default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var n={},a=Object.prototype,s=a.hasOwnProperty,u=typeof Symbol=="function"?Symbol:{},o=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function l(_,S,M){return Object.defineProperty(_,S,{value:M,enumerable:!0,configurable:!0,writable:!0}),_[S]}try{l({},"")}catch{l=function(_,S,M){return _[S]=M}}function f(_,S,M,P){var $=S&&S.prototype instanceof E?S:E,j=Object.create($.prototype),q=new x(P||[]);return j._invoke=function(Q,tt,N){var st="suspendedStart";return function(ct,pt){if(st==="executing")throw new Error("Generator is already running");if(st==="completed"){if(ct==="throw")throw pt;return I()}for(N.method=ct,N.arg=pt;;){var O=N.delegate;if(O){var L=w(O,N);if(L){if(L===m)continue;return L}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(st==="suspendedStart")throw st="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);st="executing";var U=h(Q,tt,N);if(U.type==="normal"){if(st=N.done?"completed":"suspendedYield",U.arg===m)continue;return{value:U.arg,done:N.done}}U.type==="throw"&&(st="completed",N.method="throw",N.arg=U.arg)}}}(_,M,q),j}function h(_,S,M){try{return{type:"normal",arg:_.call(S,M)}}catch(P){return{type:"throw",arg:P}}}n.wrap=f;var m={};function E(){}function g(){}function A(){}var d={};l(d,o,function(){return this});var y=Object.getPrototypeOf,v=y&&y(y(T([])));v&&v!==a&&s.call(v,o)&&(d=v);var D=A.prototype=E.prototype=Object.create(d);function C(_){["next","throw","return"].forEach(function(S){l(_,S,function(M){return this._invoke(S,M)})})}function b(_,S){function M($,j,q,Q){var tt=h(_[$],_,j);if(tt.type!=="throw"){var N=tt.arg,st=N.value;return st&&r(st)=="object"&&s.call(st,"__await")?S.resolve(st.__await).then(function(ct){M("next",ct,q,Q)},function(ct){M("throw",ct,q,Q)}):S.resolve(st).then(function(ct){N.value=ct,q(N)},function(ct){return M("throw",ct,q,Q)})}Q(tt.arg)}var P;this._invoke=function($,j){function q(){return new S(function(Q,tt){M($,j,Q,tt)})}return P=P?P.then(q,q):q()}}function w(_,S){var M=_.iterator[S.method];if(M===void 0){if(S.delegate=null,S.method==="throw"){if(_.iterator.return&&(S.method="return",S.arg=void 0,w(_,S),S.method==="throw"))return m;S.method="throw",S.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var P=h(M,_.iterator,S.arg);if(P.type==="throw")return S.method="throw",S.arg=P.arg,S.delegate=null,m;var $=P.arg;return $?$.done?(S[_.resultName]=$.value,S.next=_.nextLoc,S.method!=="return"&&(S.method="next",S.arg=void 0),S.delegate=null,m):$:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,m)}function F(_){var S={tryLoc:_[0]};1 in _&&(S.catchLoc=_[1]),2 in _&&(S.finallyLoc=_[2],S.afterLoc=_[3]),this.tryEntries.push(S)}function B(_){var S=_.completion||{};S.type="normal",delete S.arg,_.completion=S}function x(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(F,this),this.reset(!0)}function T(_){if(_){var S=_[o];if(S)return S.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var M=-1,P=function $(){for(;++M<_.length;)if(s.call(_,M))return $.value=_[M],$.done=!1,$;return $.value=void 0,$.done=!0,$};return P.next=P}}return{next:I}}function I(){return{value:void 0,done:!0}}return g.prototype=A,l(D,"constructor",A),l(A,"constructor",g),g.displayName=l(A,p,"GeneratorFunction"),n.isGeneratorFunction=function(_){var S=typeof _=="function"&&_.constructor;return!!S&&(S===g||(S.displayName||S.name)==="GeneratorFunction")},n.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,A):(_.__proto__=A,l(_,p,"GeneratorFunction")),_.prototype=Object.create(D),_},n.awrap=function(_){return{__await:_}},C(b.prototype),l(b.prototype,c,function(){return this}),n.AsyncIterator=b,n.async=function(_,S,M,P,$){$===void 0&&($=Promise);var j=new b(f(_,S,M,P),$);return n.isGeneratorFunction(S)?j:j.next().then(function(q){return q.done?q.value:j.next()})},C(D),l(D,p,"Generator"),l(D,o,function(){return this}),l(D,"toString",function(){return"[object Generator]"}),n.keys=function(_){var S=[];for(var M in _)S.push(M);return S.reverse(),function P(){for(;S.length;){var $=S.pop();if($ in _)return P.value=$,P.done=!1,P}return P.done=!0,P}},n.values=T,x.prototype={constructor:x,reset:function(_){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(B),!_)for(var S in this)S.charAt(0)==="t"&&s.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var S=this;function M(tt,N){return j.type="throw",j.arg=_,S.next=tt,N&&(S.method="next",S.arg=void 0),!!N}for(var P=this.tryEntries.length-1;P>=0;--P){var $=this.tryEntries[P],j=$.completion;if($.tryLoc==="root")return M("end");if($.tryLoc<=this.prev){var q=s.call($,"catchLoc"),Q=s.call($,"finallyLoc");if(q&&Q){if(this.prev<$.catchLoc)return M($.catchLoc,!0);if(this.prev<$.finallyLoc)return M($.finallyLoc)}else if(q){if(this.prev<$.catchLoc)return M($.catchLoc,!0)}else{if(!Q)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return M($.finallyLoc)}}}},abrupt:function(_,S){for(var M=this.tryEntries.length-1;M>=0;--M){var P=this.tryEntries[M];if(P.tryLoc<=this.prev&&s.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var $=P;break}}$&&(_==="break"||_==="continue")&&$.tryLoc<=S&&S<=$.finallyLoc&&($=null);var j=$?$.completion:{};return j.type=_,j.arg=S,$?(this.method="next",this.next=$.finallyLoc,m):this.complete(j)},complete:function(_,S){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&S&&(this.next=S),m},finish:function(_){for(var S=this.tryEntries.length-1;S>=0;--S){var M=this.tryEntries[S];if(M.finallyLoc===_)return this.complete(M.completion,M.afterLoc),B(M),m}},catch:function(_){for(var S=this.tryEntries.length-1;S>=0;--S){var M=this.tryEntries[S];if(M.tryLoc===_){var P=M.completion;if(P.type==="throw"){var $=P.arg;B(M)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(_,S,M){return this.delegate={iterator:T(_),resultName:S,nextLoc:M},this.method==="next"&&(this.arg=void 0),m}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),vi=R((t,e)=>{k();var r=Ai()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),Ci=R((t,e)=>{"use strict";k();var r=(i,...n)=>new Promise(a=>{a(i(...n))});e.exports=r,e.exports.default=r}),bi=R((t,e)=>{"use strict";k();var r=Ci(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let a=[],s=0,u=()=>{s--,a.length>0&&a.shift()()},o=(l,f,...h)=>{s++;let m=r(l,...h);f(m),m.then(u,u)},c=(l,f,...h)=>{s<n?o(l,f,...h):a.push(o.bind(null,l,f,...h))},p=(l,...f)=>new Promise(h=>c(l,h,...f));return Object.defineProperties(p,{activeCount:{get:()=>s},pendingCount:{get:()=>a.length},clearQueue:{value:()=>{a.length=0}}}),p};e.exports=i,e.exports.default=i}),Si=R((t,e)=>{"use strict";k();var r=bi(),i=class extends Error{constructor(u){super(),this.value=u}},n=async(u,o)=>o(await u),a=async u=>{let o=await Promise.all(u);if(o[1]===!0)throw new i(o[0]);return!1},s=async(u,o,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let p=r(c.concurrency),l=[...u].map(h=>[h,p(n,h,o)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(l.map(h=>f(a,h)))}catch(h){if(h instanceof i)return h.value;throw h}};e.exports=s,e.exports.default=s}),Fi=R((t,e)=>{"use strict";k();var r=W("path"),i=W("fs"),{promisify:n}=W("util"),a=Si(),s=n(i.stat),u=n(i.lstat),o={directory:"isDirectory",file:"isFile"};function c({type:l}){if(!(l in o))throw new Error(`Invalid type specified: ${l}`)}var p=(l,f)=>l===void 0||f[o[l]]();e.exports=async(l,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let h=f.allowSymlinks?s:u;return a(l,async m=>{try{let E=await h(r.resolve(f.cwd,m));return p(f.type,E)}catch{return!1}},f)},e.exports.sync=(l,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let h=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of l)try{let E=h(r.resolve(f.cwd,m));if(p(f.type,E))return m}catch{}}}),_i=R((t,e)=>{"use strict";k();var r=W("fs"),{promisify:i}=W("util"),n=i(r.access);e.exports=async a=>{try{return await n(a),!0}catch{return!1}},e.exports.sync=a=>{try{return r.accessSync(a),!0}catch{return!1}}}),wi=R((t,e)=>{"use strict";k();var r=W("path"),i=Fi(),n=_i(),a=Symbol("findUp.stop");e.exports=async(s,u={})=>{let o=r.resolve(u.cwd||""),{root:c}=r.parse(o),p=[].concat(s),l=async f=>{if(typeof s!="function")return i(p,f);let h=await s(f.cwd);return typeof h=="string"?i([h],f):h};for(;;){let f=await l({...u,cwd:o});if(f===a)return;if(f)return r.resolve(o,f);if(o===c)return;o=r.dirname(o)}},e.exports.sync=(s,u={})=>{let o=r.resolve(u.cwd||""),{root:c}=r.parse(o),p=[].concat(s),l=f=>{if(typeof s!="function")return i.sync(p,f);let h=s(f.cwd);return typeof h=="string"?i.sync([h],f):h};for(;;){let f=l({...u,cwd:o});if(f===a)return;if(f)return r.resolve(o,f);if(o===c)return;o=r.dirname(o)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=a}),kt=R(t=>{"use strict";k(),t.fromCallback=function(e){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")e.apply(this,arguments);else return new Promise((r,i)=>{arguments[arguments.length]=(n,a)=>{if(n)return i(n);r(a)},arguments.length++,e.apply(this,arguments)})},"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty(function(){let r=arguments[arguments.length-1];if(typeof r!="function")return e.apply(this,arguments);e.apply(this,arguments).then(i=>r(null,i),r)},"name",{value:e.name})}}),xi=R((t,e)=>{k();var r=W("constants"),i=process.cwd,n=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=i.call(process)),n};try{process.cwd()}catch{}typeof process.chdir=="function"&&(s=process.chdir,process.chdir=function(o){n=null,s.call(process,o)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s));var s;e.exports=u;function u(o){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(o),o.lutimes||p(o),o.chown=h(o.chown),o.fchown=h(o.fchown),o.lchown=h(o.lchown),o.chmod=l(o.chmod),o.fchmod=l(o.fchmod),o.lchmod=l(o.lchmod),o.chownSync=m(o.chownSync),o.fchownSync=m(o.fchownSync),o.lchownSync=m(o.lchownSync),o.chmodSync=f(o.chmodSync),o.fchmodSync=f(o.fchmodSync),o.lchmodSync=f(o.lchmodSync),o.stat=E(o.stat),o.fstat=E(o.fstat),o.lstat=E(o.lstat),o.statSync=g(o.statSync),o.fstatSync=g(o.fstatSync),o.lstatSync=g(o.lstatSync),o.chmod&&!o.lchmod&&(o.lchmod=function(d,y,v){v&&process.nextTick(v)},o.lchmodSync=function(){}),o.chown&&!o.lchown&&(o.lchown=function(d,y,v,D){D&&process.nextTick(D)},o.lchownSync=function(){}),a==="win32"&&(o.rename=typeof o.rename!="function"?o.rename:function(d){function y(v,D,C){var b=Date.now(),w=0;d(v,D,function F(B){if(B&&(B.code==="EACCES"||B.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){o.stat(D,function(x,T){x&&x.code==="ENOENT"?d(v,D,F):C(B)})},w),w<100&&(w+=10);return}C&&C(B)})}return Object.setPrototypeOf&&Object.setPrototypeOf(y,d),y}(o.rename)),o.read=typeof o.read!="function"?o.read:function(d){function y(v,D,C,b,w,F){var B;if(F&&typeof F=="function"){var x=0;B=function(T,I,_){if(T&&T.code==="EAGAIN"&&x<10)return x++,d.call(o,v,D,C,b,w,B);F.apply(this,arguments)}}return d.call(o,v,D,C,b,w,B)}return Object.setPrototypeOf&&Object.setPrototypeOf(y,d),y}(o.read),o.readSync=typeof o.readSync!="function"?o.readSync:function(d){return function(y,v,D,C,b){for(var w=0;;)try{return d.call(o,y,v,D,C,b)}catch(F){if(F.code==="EAGAIN"&&w<10){w++;continue}throw F}}}(o.readSync);function c(d){d.lchmod=function(y,v,D){d.open(y,r.O_WRONLY|r.O_SYMLINK,v,function(C,b){if(C){D&&D(C);return}d.fchmod(b,v,function(w){d.close(b,function(F){D&&D(w||F)})})})},d.lchmodSync=function(y,v){var D=d.openSync(y,r.O_WRONLY|r.O_SYMLINK,v),C=!0,b;try{b=d.fchmodSync(D,v),C=!1}finally{if(C)try{d.closeSync(D)}catch{}else d.closeSync(D)}return b}}function p(d){r.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(y,v,D,C){d.open(y,r.O_SYMLINK,function(b,w){if(b){C&&C(b);return}d.futimes(w,v,D,function(F){d.close(w,function(B){C&&C(F||B)})})})},d.lutimesSync=function(y,v,D){var C=d.openSync(y,r.O_SYMLINK),b,w=!0;try{b=d.futimesSync(C,v,D),w=!1}finally{if(w)try{d.closeSync(C)}catch{}else d.closeSync(C)}return b}):d.futimes&&(d.lutimes=function(y,v,D,C){C&&process.nextTick(C)},d.lutimesSync=function(){})}function l(d){return d&&function(y,v,D){return d.call(o,y,v,function(C){A(C)&&(C=null),D&&D.apply(this,arguments)})}}function f(d){return d&&function(y,v){try{return d.call(o,y,v)}catch(D){if(!A(D))throw D}}}function h(d){return d&&function(y,v,D,C){return d.call(o,y,v,D,function(b){A(b)&&(b=null),C&&C.apply(this,arguments)})}}function m(d){return d&&function(y,v,D){try{return d.call(o,y,v,D)}catch(C){if(!A(C))throw C}}}function E(d){return d&&function(y,v,D){typeof v=="function"&&(D=v,v=null);function C(b,w){w&&(w.uid<0&&(w.uid+=4294967296),w.gid<0&&(w.gid+=4294967296)),D&&D.apply(this,arguments)}return v?d.call(o,y,v,C):d.call(o,y,C)}}function g(d){return d&&function(y,v){var D=v?d.call(o,y,v):d.call(o,y);return D&&(D.uid<0&&(D.uid+=4294967296),D.gid<0&&(D.gid+=4294967296)),D}}function A(d){if(!d||d.code==="ENOSYS")return!0;var y=!process.getuid||process.getuid()!==0;return!!(y&&(d.code==="EINVAL"||d.code==="EPERM"))}}}),Bi=R((t,e)=>{k();var r=W("stream").Stream;e.exports=i;function i(n){return{ReadStream:a,WriteStream:s};function a(u,o){if(!(this instanceof a))return new a(u,o);r.call(this);var c=this;this.path=u,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var p=Object.keys(o),l=0,f=p.length;l<f;l++){var h=p[l];this[h]=o[h]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}n.open(this.path,this.flags,this.mode,function(m,E){if(m){c.emit("error",m),c.readable=!1;return}c.fd=E,c.emit("open",E),c._read()})}function s(u,o){if(!(this instanceof s))return new s(u,o);r.call(this),this.path=u,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var c=Object.keys(o),p=0,l=c.length;p<l;p++){var f=c[p];this[f]=o[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),ki=R((t,e)=>{"use strict";k(),e.exports=i;var r=Object.getPrototypeOf||function(n){return n.__proto__};function i(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var a={__proto__:r(n)};else var a=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(n,s))}),a}}),Et=R((t,e)=>{k();var r=W("fs"),i=xi(),n=Bi(),a=ki(),s=W("util"),u,o;typeof Symbol=="function"&&typeof Symbol.for=="function"?(u=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(u="___graceful-fs.queue",o="___graceful-fs.previous");function c(){}function p(d,y){Object.defineProperty(d,u,{get:function(){return y}})}var l=c;s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var d=s.format.apply(s,arguments);d="GFS4: "+d.split(/\n/).join(`
|
2
|
-
GFS4: `),console.error(d)}),r[u]||(f=global[u]||[],p(r,f),r.close=function(d){function y(v,D){return d.call(r,v,function(C){C||g(),typeof D=="function"&&D.apply(this,arguments)})}return Object.defineProperty(y,o,{value:d}),y}(r.close),r.closeSync=function(d){function y(v){d.apply(r,arguments),g()}return Object.defineProperty(y,o,{value:d}),y}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(r[u]),W("assert").equal(r[u].length,0)}));var f;global[u]||p(global,r[u]),e.exports=h(a(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(e.exports=h(r),r.__patched=!0);function h(d){i(d),d.gracefulify=h,d.createReadStream=N,d.createWriteStream=st;var y=d.readFile;d.readFile=v;function v(O,L,U){return typeof L=="function"&&(U=L,L=null),K(O,L,U);function K(at,ut,J,Z){return y(at,ut,function(ot){ot&&(ot.code==="EMFILE"||ot.code==="ENFILE")?m([K,[at,ut,J],ot,Z||Date.now(),Date.now()]):typeof J=="function"&&J.apply(this,arguments)})}}var D=d.writeFile;d.writeFile=C;function C(O,L,U,K){return typeof U=="function"&&(K=U,U=null),at(O,L,U,K);function at(ut,J,Z,ot,ft){return D(ut,J,Z,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?m([at,[ut,J,Z,ot],et,ft||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var b=d.appendFile;b&&(d.appendFile=w);function w(O,L,U,K){return typeof U=="function"&&(K=U,U=null),at(O,L,U,K);function at(ut,J,Z,ot,ft){return b(ut,J,Z,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?m([at,[ut,J,Z,ot],et,ft||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var F=d.copyFile;F&&(d.copyFile=B);function B(O,L,U,K){return typeof U=="function"&&(K=U,U=0),at(O,L,U,K);function at(ut,J,Z,ot,ft){return F(ut,J,Z,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?m([at,[ut,J,Z,ot],et,ft||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var x=d.readdir;d.readdir=I;var T=/^v[0-5]\./;function I(O,L,U){typeof L=="function"&&(U=L,L=null);var K=T.test(process.version)?function(ut,J,Z,ot){return x(ut,at(ut,J,Z,ot))}:function(ut,J,Z,ot){return x(ut,J,at(ut,J,Z,ot))};return K(O,L,U);function at(ut,J,Z,ot){return function(ft,et){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?m([K,[ut,J,Z],ft,ot||Date.now(),Date.now()]):(et&&et.sort&&et.sort(),typeof Z=="function"&&Z.call(this,ft,et))}}}if(process.version.substr(0,4)==="v0.8"){var _=n(d);j=_.ReadStream,Q=_.WriteStream}var S=d.ReadStream;S&&(j.prototype=Object.create(S.prototype),j.prototype.open=q);var M=d.WriteStream;M&&(Q.prototype=Object.create(M.prototype),Q.prototype.open=tt),Object.defineProperty(d,"ReadStream",{get:function(){return j},set:function(O){j=O},enumerable:!0,configurable:!0}),Object.defineProperty(d,"WriteStream",{get:function(){return Q},set:function(O){Q=O},enumerable:!0,configurable:!0});var P=j;Object.defineProperty(d,"FileReadStream",{get:function(){return P},set:function(O){P=O},enumerable:!0,configurable:!0});var $=Q;Object.defineProperty(d,"FileWriteStream",{get:function(){return $},set:function(O){$=O},enumerable:!0,configurable:!0});function j(O,L){return this instanceof j?(S.apply(this,arguments),this):j.apply(Object.create(j.prototype),arguments)}function q(){var O=this;pt(O.path,O.flags,O.mode,function(L,U){L?(O.autoClose&&O.destroy(),O.emit("error",L)):(O.fd=U,O.emit("open",U),O.read())})}function Q(O,L){return this instanceof Q?(M.apply(this,arguments),this):Q.apply(Object.create(Q.prototype),arguments)}function tt(){var O=this;pt(O.path,O.flags,O.mode,function(L,U){L?(O.destroy(),O.emit("error",L)):(O.fd=U,O.emit("open",U))})}function N(O,L){return new d.ReadStream(O,L)}function st(O,L){return new d.WriteStream(O,L)}var ct=d.open;d.open=pt;function pt(O,L,U,K){return typeof U=="function"&&(K=U,U=null),at(O,L,U,K);function at(ut,J,Z,ot,ft){return ct(ut,J,Z,function(et,X){et&&(et.code==="EMFILE"||et.code==="ENFILE")?m([at,[ut,J,Z,ot],et,ft||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}return d}function m(d){l("ENQUEUE",d[0].name,d[1]),r[u].push(d),A()}var E;function g(){for(var d=Date.now(),y=0;y<r[u].length;++y)r[u][y].length>2&&(r[u][y][3]=d,r[u][y][4]=d);A()}function A(){if(clearTimeout(E),E=void 0,r[u].length!==0){var d=r[u].shift(),y=d[0],v=d[1],D=d[2],C=d[3],b=d[4];if(C===void 0)l("RETRY",y.name,v),y.apply(null,v);else if(Date.now()-C>=6e4){l("TIMEOUT",y.name,v);var w=v.pop();typeof w=="function"&&w.call(null,D)}else{var F=Date.now()-b,B=Math.max(b-C,1),x=Math.min(B*1.2,100);F>=x?(l("RETRY",y.name,v),y.apply(null,v.concat([C]))):r[u].push(d)}E===void 0&&(E=setTimeout(A,0))}}}),Ir=R(t=>{"use strict";k();var e=kt().fromCallback,r=Et(),i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof r[n]=="function");Object.keys(r).forEach(n=>{n!=="promises"&&(t[n]=r[n])}),i.forEach(n=>{t[n]=e(r[n])}),t.exists=function(n,a){return typeof a=="function"?r.exists(n,a):new Promise(s=>r.exists(n,s))},t.read=function(n,a,s,u,o,c){return typeof c=="function"?r.read(n,a,s,u,o,c):new Promise((p,l)=>{r.read(n,a,s,u,o,(f,h,m)=>{if(f)return l(f);p({bytesRead:h,buffer:m})})})},t.write=function(n,a,...s){return typeof s[s.length-1]=="function"?r.write(n,a,...s):new Promise((u,o)=>{r.write(n,a,...s,(c,p,l)=>{if(c)return o(c);u({bytesWritten:p,buffer:l})})})},typeof r.realpath.native=="function"&&(t.realpath.native=e(r.realpath.native))}),Lr=R((t,e)=>{"use strict";k();var r=W("path");function i(s){return s=r.normalize(r.resolve(s)).split(r.sep),s.length>0?s[0]:null}var n=/[<>:"|?*]/;function a(s){let u=i(s);return s=s.replace(u,""),n.test(s)}e.exports={getRootPath:i,invalidWin32Path:a}}),Oi=R((t,e)=>{"use strict";k();var r=Et(),i=W("path"),n=Lr().invalidWin32Path,a=parseInt("0777",8);function s(u,o,c,p){if(typeof o=="function"?(c=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&n(u)){let h=new Error(u+" contains invalid WIN32 path characters.");return h.code="EINVAL",c(h)}let l=o.mode,f=o.fs||r;l===void 0&&(l=a&~process.umask()),p||(p=null),c=c||function(){},u=i.resolve(u),f.mkdir(u,l,h=>{if(!h)return p=p||u,c(null,p);switch(h.code){case"ENOENT":if(i.dirname(u)===u)return c(h);s(i.dirname(u),o,(m,E)=>{m?c(m,E):s(u,o,c,E)});break;default:f.stat(u,(m,E)=>{m||!E.isDirectory()?c(h,p):c(null,p)});break}})}e.exports=s}),Ri=R((t,e)=>{"use strict";k();var r=Et(),i=W("path"),n=Lr().invalidWin32Path,a=parseInt("0777",8);function s(u,o,c){(!o||typeof o!="object")&&(o={mode:o});let p=o.mode,l=o.fs||r;if(process.platform==="win32"&&n(u)){let f=new Error(u+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}p===void 0&&(p=a&~process.umask()),c||(c=null),u=i.resolve(u);try{l.mkdirSync(u,p),c=c||u}catch(f){if(f.code==="ENOENT"){if(i.dirname(u)===u)throw f;c=s(i.dirname(u),o,c),s(u,o,c)}else{let h;try{h=l.statSync(u)}catch{throw f}if(!h.isDirectory())throw f}}return c}e.exports=s}),Ot=R((t,e)=>{"use strict";k();var r=kt().fromCallback,i=r(Oi()),n=Ri();e.exports={mkdirs:i,mkdirsSync:n,mkdirp:i,mkdirpSync:n,ensureDir:i,ensureDirSync:n}}),Nr=R((t,e)=>{"use strict";k();var r=Et(),i=W("os"),n=W("path");function a(){let p=n.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));p=n.join(i.tmpdir(),p);let l=new Date(1435410243862);r.writeFileSync(p,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=r.openSync(p,"r+");return r.futimesSync(f,l,l),r.closeSync(f),r.statSync(p).mtime>1435410243e3}function s(p){let l=n.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=n.join(i.tmpdir(),l);let f=new Date(1435410243862);r.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",h=>{if(h)return p(h);r.open(l,"r+",(m,E)=>{if(m)return p(m);r.futimes(E,f,f,g=>{if(g)return p(g);r.close(E,A=>{if(A)return p(A);r.stat(l,(d,y)=>{if(d)return p(d);p(null,y.mtime>1435410243e3)})})})})})}function u(p){if(typeof p=="number")return Math.floor(p/1e3)*1e3;if(p instanceof Date)return new Date(Math.floor(p.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(p,l,f,h){r.open(p,"r+",(m,E)=>{if(m)return h(m);r.futimes(E,l,f,g=>{r.close(E,A=>{h&&h(g||A)})})})}function c(p,l,f){let h=r.openSync(p,"r+");return r.futimesSync(h,l,f),r.closeSync(h)}e.exports={hasMillisRes:s,hasMillisResSync:a,timeRemoveMillis:u,utimesMillis:o,utimesMillisSync:c}}),Ce=R((t,e)=>{"use strict";k();var r=Et(),i=W("path"),n=10,a=5,s=0,u=process.versions.node.split("."),o=Number.parseInt(u[0],10),c=Number.parseInt(u[1],10),p=Number.parseInt(u[2],10);function l(){return o>n||o===n&&(c>a||c===a&&p>=s)}function f(v,D,C){l()?r.stat(v,{bigint:!0},(b,w)=>{if(b)return C(b);r.stat(D,{bigint:!0},(F,B)=>F?F.code==="ENOENT"?C(null,{srcStat:w,destStat:null}):C(F):C(null,{srcStat:w,destStat:B}))}):r.stat(v,(b,w)=>{if(b)return C(b);r.stat(D,(F,B)=>F?F.code==="ENOENT"?C(null,{srcStat:w,destStat:null}):C(F):C(null,{srcStat:w,destStat:B}))})}function h(v,D){let C,b;l()?C=r.statSync(v,{bigint:!0}):C=r.statSync(v);try{l()?b=r.statSync(D,{bigint:!0}):b=r.statSync(D)}catch(w){if(w.code==="ENOENT")return{srcStat:C,destStat:null};throw w}return{srcStat:C,destStat:b}}function m(v,D,C,b){f(v,D,(w,F)=>{if(w)return b(w);let{srcStat:B,destStat:x}=F;return x&&x.ino&&x.dev&&x.ino===B.ino&&x.dev===B.dev?b(new Error("Source and destination must not be the same.")):B.isDirectory()&&d(v,D)?b(new Error(y(v,D,C))):b(null,{srcStat:B,destStat:x})})}function E(v,D,C){let{srcStat:b,destStat:w}=h(v,D);if(w&&w.ino&&w.dev&&w.ino===b.ino&&w.dev===b.dev)throw new Error("Source and destination must not be the same.");if(b.isDirectory()&&d(v,D))throw new Error(y(v,D,C));return{srcStat:b,destStat:w}}function g(v,D,C,b,w){let F=i.resolve(i.dirname(v)),B=i.resolve(i.dirname(C));if(B===F||B===i.parse(B).root)return w();l()?r.stat(B,{bigint:!0},(x,T)=>x?x.code==="ENOENT"?w():w(x):T.ino&&T.dev&&T.ino===D.ino&&T.dev===D.dev?w(new Error(y(v,C,b))):g(v,D,B,b,w)):r.stat(B,(x,T)=>x?x.code==="ENOENT"?w():w(x):T.ino&&T.dev&&T.ino===D.ino&&T.dev===D.dev?w(new Error(y(v,C,b))):g(v,D,B,b,w))}function A(v,D,C,b){let w=i.resolve(i.dirname(v)),F=i.resolve(i.dirname(C));if(F===w||F===i.parse(F).root)return;let B;try{l()?B=r.statSync(F,{bigint:!0}):B=r.statSync(F)}catch(x){if(x.code==="ENOENT")return;throw x}if(B.ino&&B.dev&&B.ino===D.ino&&B.dev===D.dev)throw new Error(y(v,C,b));return A(v,D,F,b)}function d(v,D){let C=i.resolve(v).split(i.sep).filter(w=>w),b=i.resolve(D).split(i.sep).filter(w=>w);return C.reduce((w,F,B)=>w&&b[B]===F,!0)}function y(v,D,C){return`Cannot ${C} '${v}' to a subdirectory of itself, '${D}'.`}e.exports={checkPaths:m,checkPathsSync:E,checkParentPaths:g,checkParentPathsSync:A,isSrcSubdir:d}}),Ti=R((t,e)=>{"use strict";k(),e.exports=function(r){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(r)}catch{return new Buffer(r)}return new Buffer(r)}}),Pi=R((t,e)=>{"use strict";k();var r=Et(),i=W("path"),n=Ot().mkdirsSync,a=Nr().utimesMillisSync,s=Ce();function u(D,C,b){typeof b=="function"&&(b={filter:b}),b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
1
|
+
"use strict";var ii=Object.create;var ye=Object.defineProperty;var ui=Object.getOwnPropertyDescriptor;var oi=Object.getOwnPropertyNames;var si=Object.getPrototypeOf,ai=Object.prototype.hasOwnProperty;var ci=(t,e)=>{for(var r in e)ye(t,r,{get:e[r],enumerable:!0})},Rr=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of oi(e))!ai.call(t,n)&&n!==r&&ye(t,n,{get:()=>e[n],enumerable:!(i=ui(e,n))||i.enumerable});return t};var kt=(t,e,r)=>(r=t!=null?ii(si(t)):{},Rr(e||!t||!t.__esModule?ye(r,"default",{value:t,enumerable:!0}):r,t)),li=t=>Rr(ye({},"__esModule",{value:!0}),t);var Lc={};ci(Lc,{default:()=>Ic,hasLegacyEnvVarDependencies:()=>kr,migrateConfig:()=>Br,migrateDependencies:()=>Or,migrateGlobal:()=>ri,migratePipeline:()=>ei,transformer:()=>ni});module.exports=li(Lc);var Ie=kt(require("fs-extra")),wr=kt(require("path"));var pi=Object.create,Tr=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,di=Object.getOwnPropertyNames,hi=Object.getPrototypeOf,mi=Object.prototype.hasOwnProperty,W=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),Di=(t,e)=>()=>(t&&(e=t(t=0)),e),R=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),yi=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of di(e))!mi.call(t,n)&&n!==r&&Tr(t,n,{get:()=>e[n],enumerable:!(i=fi(e,n))||i.enumerable});return t},Ht=(t,e,r)=>(r=t!=null?pi(hi(t)):{},yi(e||!t||!t.__esModule?Tr(r,"default",{value:t,enumerable:!0}):r,t)),B=Di(()=>{});var je=kt(require("fs"),1),ne=kt(require("path"),1);B();function gi({target:t,cwd:e,contentCheck:r}){let i=ne.default.parse(e).root,n=!1;for(;!n&&e!==i;){if(r)try{let a=je.default.readFileSync(ne.default.join(e,t)).toString();if(r(a)){n=!0;break}}catch{}else if(je.default.existsSync(ne.default.join(e,t))){n=!0;break}e=ne.default.dirname(e)}return n?e:null}var Me=gi;var Se=kt(require("path"),1),Ei=R((t,e)=>{B();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),Ai=R((t,e)=>{B();var r=Ei().default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var n={},a=Object.prototype,s=a.hasOwnProperty,u=typeof Symbol=="function"?Symbol:{},o=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function l(_,S,M){return Object.defineProperty(_,S,{value:M,enumerable:!0,configurable:!0,writable:!0}),_[S]}try{l({},"")}catch{l=function(_,S,M){return _[S]=M}}function f(_,S,M,P){var $=S&&S.prototype instanceof E?S:E,j=Object.create($.prototype),q=new x(P||[]);return j._invoke=function(Q,tt,N){var st="suspendedStart";return function(ct,pt){if(st==="executing")throw new Error("Generator is already running");if(st==="completed"){if(ct==="throw")throw pt;return I()}for(N.method=ct,N.arg=pt;;){var O=N.delegate;if(O){var L=w(O,N);if(L){if(L===m)continue;return L}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(st==="suspendedStart")throw st="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);st="executing";var U=h(Q,tt,N);if(U.type==="normal"){if(st=N.done?"completed":"suspendedYield",U.arg===m)continue;return{value:U.arg,done:N.done}}U.type==="throw"&&(st="completed",N.method="throw",N.arg=U.arg)}}}(_,M,q),j}function h(_,S,M){try{return{type:"normal",arg:_.call(S,M)}}catch(P){return{type:"throw",arg:P}}}n.wrap=f;var m={};function E(){}function g(){}function A(){}var d={};l(d,o,function(){return this});var y=Object.getPrototypeOf,v=y&&y(y(T([])));v&&v!==a&&s.call(v,o)&&(d=v);var D=A.prototype=E.prototype=Object.create(d);function C(_){["next","throw","return"].forEach(function(S){l(_,S,function(M){return this._invoke(S,M)})})}function b(_,S){function M($,j,q,Q){var tt=h(_[$],_,j);if(tt.type!=="throw"){var N=tt.arg,st=N.value;return st&&r(st)=="object"&&s.call(st,"__await")?S.resolve(st.__await).then(function(ct){M("next",ct,q,Q)},function(ct){M("throw",ct,q,Q)}):S.resolve(st).then(function(ct){N.value=ct,q(N)},function(ct){return M("throw",ct,q,Q)})}Q(tt.arg)}var P;this._invoke=function($,j){function q(){return new S(function(Q,tt){M($,j,Q,tt)})}return P=P?P.then(q,q):q()}}function w(_,S){var M=_.iterator[S.method];if(M===void 0){if(S.delegate=null,S.method==="throw"){if(_.iterator.return&&(S.method="return",S.arg=void 0,w(_,S),S.method==="throw"))return m;S.method="throw",S.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var P=h(M,_.iterator,S.arg);if(P.type==="throw")return S.method="throw",S.arg=P.arg,S.delegate=null,m;var $=P.arg;return $?$.done?(S[_.resultName]=$.value,S.next=_.nextLoc,S.method!=="return"&&(S.method="next",S.arg=void 0),S.delegate=null,m):$:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,m)}function F(_){var S={tryLoc:_[0]};1 in _&&(S.catchLoc=_[1]),2 in _&&(S.finallyLoc=_[2],S.afterLoc=_[3]),this.tryEntries.push(S)}function k(_){var S=_.completion||{};S.type="normal",delete S.arg,_.completion=S}function x(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(F,this),this.reset(!0)}function T(_){if(_){var S=_[o];if(S)return S.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var M=-1,P=function $(){for(;++M<_.length;)if(s.call(_,M))return $.value=_[M],$.done=!1,$;return $.value=void 0,$.done=!0,$};return P.next=P}}return{next:I}}function I(){return{value:void 0,done:!0}}return g.prototype=A,l(D,"constructor",A),l(A,"constructor",g),g.displayName=l(A,p,"GeneratorFunction"),n.isGeneratorFunction=function(_){var S=typeof _=="function"&&_.constructor;return!!S&&(S===g||(S.displayName||S.name)==="GeneratorFunction")},n.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,A):(_.__proto__=A,l(_,p,"GeneratorFunction")),_.prototype=Object.create(D),_},n.awrap=function(_){return{__await:_}},C(b.prototype),l(b.prototype,c,function(){return this}),n.AsyncIterator=b,n.async=function(_,S,M,P,$){$===void 0&&($=Promise);var j=new b(f(_,S,M,P),$);return n.isGeneratorFunction(S)?j:j.next().then(function(q){return q.done?q.value:j.next()})},C(D),l(D,p,"Generator"),l(D,o,function(){return this}),l(D,"toString",function(){return"[object Generator]"}),n.keys=function(_){var S=[];for(var M in _)S.push(M);return S.reverse(),function P(){for(;S.length;){var $=S.pop();if($ in _)return P.value=$,P.done=!1,P}return P.done=!0,P}},n.values=T,x.prototype={constructor:x,reset:function(_){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!_)for(var S in this)S.charAt(0)==="t"&&s.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var S=this;function M(tt,N){return j.type="throw",j.arg=_,S.next=tt,N&&(S.method="next",S.arg=void 0),!!N}for(var P=this.tryEntries.length-1;P>=0;--P){var $=this.tryEntries[P],j=$.completion;if($.tryLoc==="root")return M("end");if($.tryLoc<=this.prev){var q=s.call($,"catchLoc"),Q=s.call($,"finallyLoc");if(q&&Q){if(this.prev<$.catchLoc)return M($.catchLoc,!0);if(this.prev<$.finallyLoc)return M($.finallyLoc)}else if(q){if(this.prev<$.catchLoc)return M($.catchLoc,!0)}else{if(!Q)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return M($.finallyLoc)}}}},abrupt:function(_,S){for(var M=this.tryEntries.length-1;M>=0;--M){var P=this.tryEntries[M];if(P.tryLoc<=this.prev&&s.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var $=P;break}}$&&(_==="break"||_==="continue")&&$.tryLoc<=S&&S<=$.finallyLoc&&($=null);var j=$?$.completion:{};return j.type=_,j.arg=S,$?(this.method="next",this.next=$.finallyLoc,m):this.complete(j)},complete:function(_,S){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&S&&(this.next=S),m},finish:function(_){for(var S=this.tryEntries.length-1;S>=0;--S){var M=this.tryEntries[S];if(M.finallyLoc===_)return this.complete(M.completion,M.afterLoc),k(M),m}},catch:function(_){for(var S=this.tryEntries.length-1;S>=0;--S){var M=this.tryEntries[S];if(M.tryLoc===_){var P=M.completion;if(P.type==="throw"){var $=P.arg;k(M)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(_,S,M){return this.delegate={iterator:T(_),resultName:S,nextLoc:M},this.method==="next"&&(this.arg=void 0),m}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),vi=R((t,e)=>{B();var r=Ai()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),Ci=R((t,e)=>{"use strict";B();var r=(i,...n)=>new Promise(a=>{a(i(...n))});e.exports=r,e.exports.default=r}),bi=R((t,e)=>{"use strict";B();var r=Ci(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let a=[],s=0,u=()=>{s--,a.length>0&&a.shift()()},o=(l,f,...h)=>{s++;let m=r(l,...h);f(m),m.then(u,u)},c=(l,f,...h)=>{s<n?o(l,f,...h):a.push(o.bind(null,l,f,...h))},p=(l,...f)=>new Promise(h=>c(l,h,...f));return Object.defineProperties(p,{activeCount:{get:()=>s},pendingCount:{get:()=>a.length},clearQueue:{value:()=>{a.length=0}}}),p};e.exports=i,e.exports.default=i}),Si=R((t,e)=>{"use strict";B();var r=bi(),i=class extends Error{constructor(u){super(),this.value=u}},n=async(u,o)=>o(await u),a=async u=>{let o=await Promise.all(u);if(o[1]===!0)throw new i(o[0]);return!1},s=async(u,o,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let p=r(c.concurrency),l=[...u].map(h=>[h,p(n,h,o)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(l.map(h=>f(a,h)))}catch(h){if(h instanceof i)return h.value;throw h}};e.exports=s,e.exports.default=s}),Fi=R((t,e)=>{"use strict";B();var r=W("path"),i=W("fs"),{promisify:n}=W("util"),a=Si(),s=n(i.stat),u=n(i.lstat),o={directory:"isDirectory",file:"isFile"};function c({type:l}){if(!(l in o))throw new Error(`Invalid type specified: ${l}`)}var p=(l,f)=>l===void 0||f[o[l]]();e.exports=async(l,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let h=f.allowSymlinks?s:u;return a(l,async m=>{try{let E=await h(r.resolve(f.cwd,m));return p(f.type,E)}catch{return!1}},f)},e.exports.sync=(l,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let h=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of l)try{let E=h(r.resolve(f.cwd,m));if(p(f.type,E))return m}catch{}}}),_i=R((t,e)=>{"use strict";B();var r=W("fs"),{promisify:i}=W("util"),n=i(r.access);e.exports=async a=>{try{return await n(a),!0}catch{return!1}},e.exports.sync=a=>{try{return r.accessSync(a),!0}catch{return!1}}}),wi=R((t,e)=>{"use strict";B();var r=W("path"),i=Fi(),n=_i(),a=Symbol("findUp.stop");e.exports=async(s,u={})=>{let o=r.resolve(u.cwd||""),{root:c}=r.parse(o),p=[].concat(s),l=async f=>{if(typeof s!="function")return i(p,f);let h=await s(f.cwd);return typeof h=="string"?i([h],f):h};for(;;){let f=await l({...u,cwd:o});if(f===a)return;if(f)return r.resolve(o,f);if(o===c)return;o=r.dirname(o)}},e.exports.sync=(s,u={})=>{let o=r.resolve(u.cwd||""),{root:c}=r.parse(o),p=[].concat(s),l=f=>{if(typeof s!="function")return i.sync(p,f);let h=s(f.cwd);return typeof h=="string"?i.sync([h],f):h};for(;;){let f=l({...u,cwd:o});if(f===a)return;if(f)return r.resolve(o,f);if(o===c)return;o=r.dirname(o)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=a}),Bt=R(t=>{"use strict";B(),t.fromCallback=function(e){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")e.apply(this,arguments);else return new Promise((r,i)=>{arguments[arguments.length]=(n,a)=>{if(n)return i(n);r(a)},arguments.length++,e.apply(this,arguments)})},"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty(function(){let r=arguments[arguments.length-1];if(typeof r!="function")return e.apply(this,arguments);e.apply(this,arguments).then(i=>r(null,i),r)},"name",{value:e.name})}}),xi=R((t,e)=>{B();var r=W("constants"),i=process.cwd,n=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=i.call(process)),n};try{process.cwd()}catch{}typeof process.chdir=="function"&&(s=process.chdir,process.chdir=function(o){n=null,s.call(process,o)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s));var s;e.exports=u;function u(o){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(o),o.lutimes||p(o),o.chown=h(o.chown),o.fchown=h(o.fchown),o.lchown=h(o.lchown),o.chmod=l(o.chmod),o.fchmod=l(o.fchmod),o.lchmod=l(o.lchmod),o.chownSync=m(o.chownSync),o.fchownSync=m(o.fchownSync),o.lchownSync=m(o.lchownSync),o.chmodSync=f(o.chmodSync),o.fchmodSync=f(o.fchmodSync),o.lchmodSync=f(o.lchmodSync),o.stat=E(o.stat),o.fstat=E(o.fstat),o.lstat=E(o.lstat),o.statSync=g(o.statSync),o.fstatSync=g(o.fstatSync),o.lstatSync=g(o.lstatSync),o.chmod&&!o.lchmod&&(o.lchmod=function(d,y,v){v&&process.nextTick(v)},o.lchmodSync=function(){}),o.chown&&!o.lchown&&(o.lchown=function(d,y,v,D){D&&process.nextTick(D)},o.lchownSync=function(){}),a==="win32"&&(o.rename=typeof o.rename!="function"?o.rename:function(d){function y(v,D,C){var b=Date.now(),w=0;d(v,D,function F(k){if(k&&(k.code==="EACCES"||k.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){o.stat(D,function(x,T){x&&x.code==="ENOENT"?d(v,D,F):C(k)})},w),w<100&&(w+=10);return}C&&C(k)})}return Object.setPrototypeOf&&Object.setPrototypeOf(y,d),y}(o.rename)),o.read=typeof o.read!="function"?o.read:function(d){function y(v,D,C,b,w,F){var k;if(F&&typeof F=="function"){var x=0;k=function(T,I,_){if(T&&T.code==="EAGAIN"&&x<10)return x++,d.call(o,v,D,C,b,w,k);F.apply(this,arguments)}}return d.call(o,v,D,C,b,w,k)}return Object.setPrototypeOf&&Object.setPrototypeOf(y,d),y}(o.read),o.readSync=typeof o.readSync!="function"?o.readSync:function(d){return function(y,v,D,C,b){for(var w=0;;)try{return d.call(o,y,v,D,C,b)}catch(F){if(F.code==="EAGAIN"&&w<10){w++;continue}throw F}}}(o.readSync);function c(d){d.lchmod=function(y,v,D){d.open(y,r.O_WRONLY|r.O_SYMLINK,v,function(C,b){if(C){D&&D(C);return}d.fchmod(b,v,function(w){d.close(b,function(F){D&&D(w||F)})})})},d.lchmodSync=function(y,v){var D=d.openSync(y,r.O_WRONLY|r.O_SYMLINK,v),C=!0,b;try{b=d.fchmodSync(D,v),C=!1}finally{if(C)try{d.closeSync(D)}catch{}else d.closeSync(D)}return b}}function p(d){r.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(y,v,D,C){d.open(y,r.O_SYMLINK,function(b,w){if(b){C&&C(b);return}d.futimes(w,v,D,function(F){d.close(w,function(k){C&&C(F||k)})})})},d.lutimesSync=function(y,v,D){var C=d.openSync(y,r.O_SYMLINK),b,w=!0;try{b=d.futimesSync(C,v,D),w=!1}finally{if(w)try{d.closeSync(C)}catch{}else d.closeSync(C)}return b}):d.futimes&&(d.lutimes=function(y,v,D,C){C&&process.nextTick(C)},d.lutimesSync=function(){})}function l(d){return d&&function(y,v,D){return d.call(o,y,v,function(C){A(C)&&(C=null),D&&D.apply(this,arguments)})}}function f(d){return d&&function(y,v){try{return d.call(o,y,v)}catch(D){if(!A(D))throw D}}}function h(d){return d&&function(y,v,D,C){return d.call(o,y,v,D,function(b){A(b)&&(b=null),C&&C.apply(this,arguments)})}}function m(d){return d&&function(y,v,D){try{return d.call(o,y,v,D)}catch(C){if(!A(C))throw C}}}function E(d){return d&&function(y,v,D){typeof v=="function"&&(D=v,v=null);function C(b,w){w&&(w.uid<0&&(w.uid+=4294967296),w.gid<0&&(w.gid+=4294967296)),D&&D.apply(this,arguments)}return v?d.call(o,y,v,C):d.call(o,y,C)}}function g(d){return d&&function(y,v){var D=v?d.call(o,y,v):d.call(o,y);return D&&(D.uid<0&&(D.uid+=4294967296),D.gid<0&&(D.gid+=4294967296)),D}}function A(d){if(!d||d.code==="ENOSYS")return!0;var y=!process.getuid||process.getuid()!==0;return!!(y&&(d.code==="EINVAL"||d.code==="EPERM"))}}}),ki=R((t,e)=>{B();var r=W("stream").Stream;e.exports=i;function i(n){return{ReadStream:a,WriteStream:s};function a(u,o){if(!(this instanceof a))return new a(u,o);r.call(this);var c=this;this.path=u,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var p=Object.keys(o),l=0,f=p.length;l<f;l++){var h=p[l];this[h]=o[h]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}n.open(this.path,this.flags,this.mode,function(m,E){if(m){c.emit("error",m),c.readable=!1;return}c.fd=E,c.emit("open",E),c._read()})}function s(u,o){if(!(this instanceof s))return new s(u,o);r.call(this),this.path=u,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var c=Object.keys(o),p=0,l=c.length;p<l;p++){var f=c[p];this[f]=o[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Bi=R((t,e)=>{"use strict";B(),e.exports=i;var r=Object.getPrototypeOf||function(n){return n.__proto__};function i(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var a={__proto__:r(n)};else var a=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(n,s))}),a}}),Et=R((t,e)=>{B();var r=W("fs"),i=xi(),n=ki(),a=Bi(),s=W("util"),u,o;typeof Symbol=="function"&&typeof Symbol.for=="function"?(u=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(u="___graceful-fs.queue",o="___graceful-fs.previous");function c(){}function p(d,y){Object.defineProperty(d,u,{get:function(){return y}})}var l=c;s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var d=s.format.apply(s,arguments);d="GFS4: "+d.split(/\n/).join(`
|
2
|
+
GFS4: `),console.error(d)}),r[u]||(f=global[u]||[],p(r,f),r.close=function(d){function y(v,D){return d.call(r,v,function(C){C||g(),typeof D=="function"&&D.apply(this,arguments)})}return Object.defineProperty(y,o,{value:d}),y}(r.close),r.closeSync=function(d){function y(v){d.apply(r,arguments),g()}return Object.defineProperty(y,o,{value:d}),y}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(r[u]),W("assert").equal(r[u].length,0)}));var f;global[u]||p(global,r[u]),e.exports=h(a(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(e.exports=h(r),r.__patched=!0);function h(d){i(d),d.gracefulify=h,d.createReadStream=N,d.createWriteStream=st;var y=d.readFile;d.readFile=v;function v(O,L,U){return typeof L=="function"&&(U=L,L=null),K(O,L,U);function K(at,ut,J,Z){return y(at,ut,function(ot){ot&&(ot.code==="EMFILE"||ot.code==="ENFILE")?m([K,[at,ut,J],ot,Z||Date.now(),Date.now()]):typeof J=="function"&&J.apply(this,arguments)})}}var D=d.writeFile;d.writeFile=C;function C(O,L,U,K){return typeof U=="function"&&(K=U,U=null),at(O,L,U,K);function at(ut,J,Z,ot,ft){return D(ut,J,Z,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?m([at,[ut,J,Z,ot],et,ft||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var b=d.appendFile;b&&(d.appendFile=w);function w(O,L,U,K){return typeof U=="function"&&(K=U,U=null),at(O,L,U,K);function at(ut,J,Z,ot,ft){return b(ut,J,Z,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?m([at,[ut,J,Z,ot],et,ft||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var F=d.copyFile;F&&(d.copyFile=k);function k(O,L,U,K){return typeof U=="function"&&(K=U,U=0),at(O,L,U,K);function at(ut,J,Z,ot,ft){return F(ut,J,Z,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?m([at,[ut,J,Z,ot],et,ft||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var x=d.readdir;d.readdir=I;var T=/^v[0-5]\./;function I(O,L,U){typeof L=="function"&&(U=L,L=null);var K=T.test(process.version)?function(ut,J,Z,ot){return x(ut,at(ut,J,Z,ot))}:function(ut,J,Z,ot){return x(ut,J,at(ut,J,Z,ot))};return K(O,L,U);function at(ut,J,Z,ot){return function(ft,et){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?m([K,[ut,J,Z],ft,ot||Date.now(),Date.now()]):(et&&et.sort&&et.sort(),typeof Z=="function"&&Z.call(this,ft,et))}}}if(process.version.substr(0,4)==="v0.8"){var _=n(d);j=_.ReadStream,Q=_.WriteStream}var S=d.ReadStream;S&&(j.prototype=Object.create(S.prototype),j.prototype.open=q);var M=d.WriteStream;M&&(Q.prototype=Object.create(M.prototype),Q.prototype.open=tt),Object.defineProperty(d,"ReadStream",{get:function(){return j},set:function(O){j=O},enumerable:!0,configurable:!0}),Object.defineProperty(d,"WriteStream",{get:function(){return Q},set:function(O){Q=O},enumerable:!0,configurable:!0});var P=j;Object.defineProperty(d,"FileReadStream",{get:function(){return P},set:function(O){P=O},enumerable:!0,configurable:!0});var $=Q;Object.defineProperty(d,"FileWriteStream",{get:function(){return $},set:function(O){$=O},enumerable:!0,configurable:!0});function j(O,L){return this instanceof j?(S.apply(this,arguments),this):j.apply(Object.create(j.prototype),arguments)}function q(){var O=this;pt(O.path,O.flags,O.mode,function(L,U){L?(O.autoClose&&O.destroy(),O.emit("error",L)):(O.fd=U,O.emit("open",U),O.read())})}function Q(O,L){return this instanceof Q?(M.apply(this,arguments),this):Q.apply(Object.create(Q.prototype),arguments)}function tt(){var O=this;pt(O.path,O.flags,O.mode,function(L,U){L?(O.destroy(),O.emit("error",L)):(O.fd=U,O.emit("open",U))})}function N(O,L){return new d.ReadStream(O,L)}function st(O,L){return new d.WriteStream(O,L)}var ct=d.open;d.open=pt;function pt(O,L,U,K){return typeof U=="function"&&(K=U,U=null),at(O,L,U,K);function at(ut,J,Z,ot,ft){return ct(ut,J,Z,function(et,X){et&&(et.code==="EMFILE"||et.code==="ENFILE")?m([at,[ut,J,Z,ot],et,ft||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}return d}function m(d){l("ENQUEUE",d[0].name,d[1]),r[u].push(d),A()}var E;function g(){for(var d=Date.now(),y=0;y<r[u].length;++y)r[u][y].length>2&&(r[u][y][3]=d,r[u][y][4]=d);A()}function A(){if(clearTimeout(E),E=void 0,r[u].length!==0){var d=r[u].shift(),y=d[0],v=d[1],D=d[2],C=d[3],b=d[4];if(C===void 0)l("RETRY",y.name,v),y.apply(null,v);else if(Date.now()-C>=6e4){l("TIMEOUT",y.name,v);var w=v.pop();typeof w=="function"&&w.call(null,D)}else{var F=Date.now()-b,k=Math.max(b-C,1),x=Math.min(k*1.2,100);F>=x?(l("RETRY",y.name,v),y.apply(null,v.concat([C]))):r[u].push(d)}E===void 0&&(E=setTimeout(A,0))}}}),Ir=R(t=>{"use strict";B();var e=Bt().fromCallback,r=Et(),i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof r[n]=="function");Object.keys(r).forEach(n=>{n!=="promises"&&(t[n]=r[n])}),i.forEach(n=>{t[n]=e(r[n])}),t.exists=function(n,a){return typeof a=="function"?r.exists(n,a):new Promise(s=>r.exists(n,s))},t.read=function(n,a,s,u,o,c){return typeof c=="function"?r.read(n,a,s,u,o,c):new Promise((p,l)=>{r.read(n,a,s,u,o,(f,h,m)=>{if(f)return l(f);p({bytesRead:h,buffer:m})})})},t.write=function(n,a,...s){return typeof s[s.length-1]=="function"?r.write(n,a,...s):new Promise((u,o)=>{r.write(n,a,...s,(c,p,l)=>{if(c)return o(c);u({bytesWritten:p,buffer:l})})})},typeof r.realpath.native=="function"&&(t.realpath.native=e(r.realpath.native))}),Lr=R((t,e)=>{"use strict";B();var r=W("path");function i(s){return s=r.normalize(r.resolve(s)).split(r.sep),s.length>0?s[0]:null}var n=/[<>:"|?*]/;function a(s){let u=i(s);return s=s.replace(u,""),n.test(s)}e.exports={getRootPath:i,invalidWin32Path:a}}),Oi=R((t,e)=>{"use strict";B();var r=Et(),i=W("path"),n=Lr().invalidWin32Path,a=parseInt("0777",8);function s(u,o,c,p){if(typeof o=="function"?(c=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&n(u)){let h=new Error(u+" contains invalid WIN32 path characters.");return h.code="EINVAL",c(h)}let l=o.mode,f=o.fs||r;l===void 0&&(l=a&~process.umask()),p||(p=null),c=c||function(){},u=i.resolve(u),f.mkdir(u,l,h=>{if(!h)return p=p||u,c(null,p);switch(h.code){case"ENOENT":if(i.dirname(u)===u)return c(h);s(i.dirname(u),o,(m,E)=>{m?c(m,E):s(u,o,c,E)});break;default:f.stat(u,(m,E)=>{m||!E.isDirectory()?c(h,p):c(null,p)});break}})}e.exports=s}),Ri=R((t,e)=>{"use strict";B();var r=Et(),i=W("path"),n=Lr().invalidWin32Path,a=parseInt("0777",8);function s(u,o,c){(!o||typeof o!="object")&&(o={mode:o});let p=o.mode,l=o.fs||r;if(process.platform==="win32"&&n(u)){let f=new Error(u+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}p===void 0&&(p=a&~process.umask()),c||(c=null),u=i.resolve(u);try{l.mkdirSync(u,p),c=c||u}catch(f){if(f.code==="ENOENT"){if(i.dirname(u)===u)throw f;c=s(i.dirname(u),o,c),s(u,o,c)}else{let h;try{h=l.statSync(u)}catch{throw f}if(!h.isDirectory())throw f}}return c}e.exports=s}),Ot=R((t,e)=>{"use strict";B();var r=Bt().fromCallback,i=r(Oi()),n=Ri();e.exports={mkdirs:i,mkdirsSync:n,mkdirp:i,mkdirpSync:n,ensureDir:i,ensureDirSync:n}}),Nr=R((t,e)=>{"use strict";B();var r=Et(),i=W("os"),n=W("path");function a(){let p=n.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));p=n.join(i.tmpdir(),p);let l=new Date(1435410243862);r.writeFileSync(p,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=r.openSync(p,"r+");return r.futimesSync(f,l,l),r.closeSync(f),r.statSync(p).mtime>1435410243e3}function s(p){let l=n.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=n.join(i.tmpdir(),l);let f=new Date(1435410243862);r.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",h=>{if(h)return p(h);r.open(l,"r+",(m,E)=>{if(m)return p(m);r.futimes(E,f,f,g=>{if(g)return p(g);r.close(E,A=>{if(A)return p(A);r.stat(l,(d,y)=>{if(d)return p(d);p(null,y.mtime>1435410243e3)})})})})})}function u(p){if(typeof p=="number")return Math.floor(p/1e3)*1e3;if(p instanceof Date)return new Date(Math.floor(p.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(p,l,f,h){r.open(p,"r+",(m,E)=>{if(m)return h(m);r.futimes(E,l,f,g=>{r.close(E,A=>{h&&h(g||A)})})})}function c(p,l,f){let h=r.openSync(p,"r+");return r.futimesSync(h,l,f),r.closeSync(h)}e.exports={hasMillisRes:s,hasMillisResSync:a,timeRemoveMillis:u,utimesMillis:o,utimesMillisSync:c}}),Ce=R((t,e)=>{"use strict";B();var r=Et(),i=W("path"),n=10,a=5,s=0,u=process.versions.node.split("."),o=Number.parseInt(u[0],10),c=Number.parseInt(u[1],10),p=Number.parseInt(u[2],10);function l(){return o>n||o===n&&(c>a||c===a&&p>=s)}function f(v,D,C){l()?r.stat(v,{bigint:!0},(b,w)=>{if(b)return C(b);r.stat(D,{bigint:!0},(F,k)=>F?F.code==="ENOENT"?C(null,{srcStat:w,destStat:null}):C(F):C(null,{srcStat:w,destStat:k}))}):r.stat(v,(b,w)=>{if(b)return C(b);r.stat(D,(F,k)=>F?F.code==="ENOENT"?C(null,{srcStat:w,destStat:null}):C(F):C(null,{srcStat:w,destStat:k}))})}function h(v,D){let C,b;l()?C=r.statSync(v,{bigint:!0}):C=r.statSync(v);try{l()?b=r.statSync(D,{bigint:!0}):b=r.statSync(D)}catch(w){if(w.code==="ENOENT")return{srcStat:C,destStat:null};throw w}return{srcStat:C,destStat:b}}function m(v,D,C,b){f(v,D,(w,F)=>{if(w)return b(w);let{srcStat:k,destStat:x}=F;return x&&x.ino&&x.dev&&x.ino===k.ino&&x.dev===k.dev?b(new Error("Source and destination must not be the same.")):k.isDirectory()&&d(v,D)?b(new Error(y(v,D,C))):b(null,{srcStat:k,destStat:x})})}function E(v,D,C){let{srcStat:b,destStat:w}=h(v,D);if(w&&w.ino&&w.dev&&w.ino===b.ino&&w.dev===b.dev)throw new Error("Source and destination must not be the same.");if(b.isDirectory()&&d(v,D))throw new Error(y(v,D,C));return{srcStat:b,destStat:w}}function g(v,D,C,b,w){let F=i.resolve(i.dirname(v)),k=i.resolve(i.dirname(C));if(k===F||k===i.parse(k).root)return w();l()?r.stat(k,{bigint:!0},(x,T)=>x?x.code==="ENOENT"?w():w(x):T.ino&&T.dev&&T.ino===D.ino&&T.dev===D.dev?w(new Error(y(v,C,b))):g(v,D,k,b,w)):r.stat(k,(x,T)=>x?x.code==="ENOENT"?w():w(x):T.ino&&T.dev&&T.ino===D.ino&&T.dev===D.dev?w(new Error(y(v,C,b))):g(v,D,k,b,w))}function A(v,D,C,b){let w=i.resolve(i.dirname(v)),F=i.resolve(i.dirname(C));if(F===w||F===i.parse(F).root)return;let k;try{l()?k=r.statSync(F,{bigint:!0}):k=r.statSync(F)}catch(x){if(x.code==="ENOENT")return;throw x}if(k.ino&&k.dev&&k.ino===D.ino&&k.dev===D.dev)throw new Error(y(v,C,b));return A(v,D,F,b)}function d(v,D){let C=i.resolve(v).split(i.sep).filter(w=>w),b=i.resolve(D).split(i.sep).filter(w=>w);return C.reduce((w,F,k)=>w&&b[k]===F,!0)}function y(v,D,C){return`Cannot ${C} '${v}' to a subdirectory of itself, '${D}'.`}e.exports={checkPaths:m,checkPathsSync:E,checkParentPaths:g,checkParentPathsSync:A,isSrcSubdir:d}}),Ti=R((t,e)=>{"use strict";B(),e.exports=function(r){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(r)}catch{return new Buffer(r)}return new Buffer(r)}}),Pi=R((t,e)=>{"use strict";B();var r=Et(),i=W("path"),n=Ot().mkdirsSync,a=Nr().utimesMillisSync,s=Ce();function u(D,C,b){typeof b=="function"&&(b={filter:b}),b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
3
3
|
|
4
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:w,destStat:F}=s.checkPathsSync(D,C,"copy");return s.checkParentPathsSync(D,w,C,"copy"),o(F,D,C,b)}function o(D,C,b,w){if(w.filter&&!w.filter(C,b))return;let F=i.dirname(b);return r.existsSync(F)||n(F),c(D,C,b,w)}function c(D,C,b,w){if(!(w.filter&&!w.filter(C,b)))return p(D,C,b,w)}function p(D,C,b,w){let F=(w.dereference?r.statSync:r.lstatSync)(C);if(F.isDirectory())return E(F,D,C,b,w);if(F.isFile()||F.isCharacterDevice()||F.isBlockDevice())return l(F,D,C,b,w);if(F.isSymbolicLink())return y(D,C,b,w)}function l(D,C,b,w,F){return C?f(D,b,w,F):h(D,b,w,F)}function f(D,C,b,w){if(w.overwrite)return r.unlinkSync(b),h(D,C,b,w);if(w.errorOnExist)throw new Error(`'${b}' already exists`)}function h(D,C,b,w){return typeof r.copyFileSync=="function"?(r.copyFileSync(C,b),r.chmodSync(b,D.mode),w.preserveTimestamps?a(b,D.atime,D.mtime):void 0):m(D,C,b,w)}function m(D,C,b,w){let F=Ti()(65536),
|
4
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:w,destStat:F}=s.checkPathsSync(D,C,"copy");return s.checkParentPathsSync(D,w,C,"copy"),o(F,D,C,b)}function o(D,C,b,w){if(w.filter&&!w.filter(C,b))return;let F=i.dirname(b);return r.existsSync(F)||n(F),c(D,C,b,w)}function c(D,C,b,w){if(!(w.filter&&!w.filter(C,b)))return p(D,C,b,w)}function p(D,C,b,w){let F=(w.dereference?r.statSync:r.lstatSync)(C);if(F.isDirectory())return E(F,D,C,b,w);if(F.isFile()||F.isCharacterDevice()||F.isBlockDevice())return l(F,D,C,b,w);if(F.isSymbolicLink())return y(D,C,b,w)}function l(D,C,b,w,F){return C?f(D,b,w,F):h(D,b,w,F)}function f(D,C,b,w){if(w.overwrite)return r.unlinkSync(b),h(D,C,b,w);if(w.errorOnExist)throw new Error(`'${b}' already exists`)}function h(D,C,b,w){return typeof r.copyFileSync=="function"?(r.copyFileSync(C,b),r.chmodSync(b,D.mode),w.preserveTimestamps?a(b,D.atime,D.mtime):void 0):m(D,C,b,w)}function m(D,C,b,w){let F=Ti()(65536),k=r.openSync(C,"r"),x=r.openSync(b,"w",D.mode),T=0;for(;T<D.size;){let I=r.readSync(k,F,0,65536,T);r.writeSync(x,F,0,I),T+=I}w.preserveTimestamps&&r.futimesSync(x,D.atime,D.mtime),r.closeSync(k),r.closeSync(x)}function E(D,C,b,w,F){if(!C)return g(D,b,w,F);if(C&&!C.isDirectory())throw new Error(`Cannot overwrite non-directory '${w}' with directory '${b}'.`);return A(b,w,F)}function g(D,C,b,w){return r.mkdirSync(b),A(C,b,w),r.chmodSync(b,D.mode)}function A(D,C,b){r.readdirSync(D).forEach(w=>d(w,D,C,b))}function d(D,C,b,w){let F=i.join(C,D),k=i.join(b,D),{destStat:x}=s.checkPathsSync(F,k,"copy");return c(x,F,k,w)}function y(D,C,b,w){let F=r.readlinkSync(C);if(w.dereference&&(F=i.resolve(process.cwd(),F)),D){let k;try{k=r.readlinkSync(b)}catch(x){if(x.code==="EINVAL"||x.code==="UNKNOWN")return r.symlinkSync(F,b);throw x}if(w.dereference&&(k=i.resolve(process.cwd(),k)),s.isSrcSubdir(F,k))throw new Error(`Cannot copy '${F}' to a subdirectory of itself, '${k}'.`);if(r.statSync(b).isDirectory()&&s.isSrcSubdir(k,F))throw new Error(`Cannot overwrite '${k}' with '${F}'.`);return v(F,b)}else return r.symlinkSync(F,b)}function v(D,C){return r.unlinkSync(C),r.symlinkSync(D,C)}e.exports=u}),jr=R((t,e)=>{"use strict";B(),e.exports={copySync:Pi()}}),Mt=R((t,e)=>{"use strict";B();var r=Bt().fromPromise,i=Ir();function n(a){return i.access(a).then(()=>!0).catch(()=>!1)}e.exports={pathExists:r(n),pathExistsSync:i.existsSync}}),Ii=R((t,e)=>{"use strict";B();var r=Et(),i=W("path"),n=Ot().mkdirs,a=Mt().pathExists,s=Nr().utimesMillis,u=Ce();function o(F,k,x,T){typeof x=="function"&&!T?(T=x,x={}):typeof x=="function"&&(x={filter:x}),T=T||function(){},x=x||{},x.clobber="clobber"in x?!!x.clobber:!0,x.overwrite="overwrite"in x?!!x.overwrite:x.clobber,x.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
5
5
|
|
6
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),u.checkPaths(F,B,"copy",(I,_)=>{if(I)return T(I);let{srcStat:S,destStat:M}=_;u.checkParentPaths(F,S,B,"copy",P=>P?T(P):x.filter?p(c,M,F,B,x,T):c(M,F,B,x,T))})}function c(F,B,x,T,I){let _=i.dirname(x);a(_,(S,M)=>{if(S)return I(S);if(M)return l(F,B,x,T,I);n(_,P=>P?I(P):l(F,B,x,T,I))})}function p(F,B,x,T,I,_){Promise.resolve(I.filter(x,T)).then(S=>S?F(B,x,T,I,_):_(),S=>_(S))}function l(F,B,x,T,I){return T.filter?p(f,F,B,x,T,I):f(F,B,x,T,I)}function f(F,B,x,T,I){(T.dereference?r.stat:r.lstat)(B,(_,S)=>{if(_)return I(_);if(S.isDirectory())return d(S,F,B,x,T,I);if(S.isFile()||S.isCharacterDevice()||S.isBlockDevice())return h(S,F,B,x,T,I);if(S.isSymbolicLink())return b(F,B,x,T,I)})}function h(F,B,x,T,I,_){return B?m(F,x,T,I,_):E(F,x,T,I,_)}function m(F,B,x,T,I){if(T.overwrite)r.unlink(x,_=>_?I(_):E(F,B,x,T,I));else return T.errorOnExist?I(new Error(`'${x}' already exists`)):I()}function E(F,B,x,T,I){return typeof r.copyFile=="function"?r.copyFile(B,x,_=>_?I(_):A(F,x,T,I)):g(F,B,x,T,I)}function g(F,B,x,T,I){let _=r.createReadStream(B);_.on("error",S=>I(S)).once("open",()=>{let S=r.createWriteStream(x,{mode:F.mode});S.on("error",M=>I(M)).on("open",()=>_.pipe(S)).once("close",()=>A(F,x,T,I))})}function A(F,B,x,T){r.chmod(B,F.mode,I=>I?T(I):x.preserveTimestamps?s(B,F.atime,F.mtime,T):T())}function d(F,B,x,T,I,_){return B?B&&!B.isDirectory()?_(new Error(`Cannot overwrite non-directory '${T}' with directory '${x}'.`)):v(x,T,I,_):y(F,x,T,I,_)}function y(F,B,x,T,I){r.mkdir(x,_=>{if(_)return I(_);v(B,x,T,S=>S?I(S):r.chmod(x,F.mode,I))})}function v(F,B,x,T){r.readdir(F,(I,_)=>I?T(I):D(_,F,B,x,T))}function D(F,B,x,T,I){let _=F.pop();return _?C(F,_,B,x,T,I):I()}function C(F,B,x,T,I,_){let S=i.join(x,B),M=i.join(T,B);u.checkPaths(S,M,"copy",(P,$)=>{if(P)return _(P);let{destStat:j}=$;l(j,S,M,I,q=>q?_(q):D(F,x,T,I,_))})}function b(F,B,x,T,I){r.readlink(B,(_,S)=>{if(_)return I(_);if(T.dereference&&(S=i.resolve(process.cwd(),S)),F)r.readlink(x,(M,P)=>M?M.code==="EINVAL"||M.code==="UNKNOWN"?r.symlink(S,x,I):I(M):(T.dereference&&(P=i.resolve(process.cwd(),P)),u.isSrcSubdir(S,P)?I(new Error(`Cannot copy '${S}' to a subdirectory of itself, '${P}'.`)):F.isDirectory()&&u.isSrcSubdir(P,S)?I(new Error(`Cannot overwrite '${P}' with '${S}'.`)):w(S,x,I)));else return r.symlink(S,x,I)})}function w(F,B,x){r.unlink(B,T=>T?x(T):r.symlink(F,B,x))}e.exports=o}),Mr=R((t,e)=>{"use strict";k();var r=kt().fromCallback;e.exports={copy:r(Ii())}}),Li=R((t,e)=>{"use strict";k();var r=Et(),i=W("path"),n=W("assert"),a=process.platform==="win32";function s(g){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(A=>{g[A]=g[A]||r[A],A=A+"Sync",g[A]=g[A]||r[A]}),g.maxBusyTries=g.maxBusyTries||3}function u(g,A,d){let y=0;typeof A=="function"&&(d=A,A={}),n(g,"rimraf: missing path"),n.strictEqual(typeof g,"string","rimraf: path should be a string"),n.strictEqual(typeof d,"function","rimraf: callback function required"),n(A,"rimraf: invalid options argument provided"),n.strictEqual(typeof A,"object","rimraf: options should be object"),s(A),o(g,A,function v(D){if(D){if((D.code==="EBUSY"||D.code==="ENOTEMPTY"||D.code==="EPERM")&&y<A.maxBusyTries){y++;let C=y*100;return setTimeout(()=>o(g,A,v),C)}D.code==="ENOENT"&&(D=null)}d(D)})}function o(g,A,d){n(g),n(A),n(typeof d=="function"),A.lstat(g,(y,v)=>{if(y&&y.code==="ENOENT")return d(null);if(y&&y.code==="EPERM"&&a)return c(g,A,y,d);if(v&&v.isDirectory())return l(g,A,y,d);A.unlink(g,D=>{if(D){if(D.code==="ENOENT")return d(null);if(D.code==="EPERM")return a?c(g,A,D,d):l(g,A,D,d);if(D.code==="EISDIR")return l(g,A,D,d)}return d(D)})})}function c(g,A,d,y){n(g),n(A),n(typeof y=="function"),d&&n(d instanceof Error),A.chmod(g,438,v=>{v?y(v.code==="ENOENT"?null:d):A.stat(g,(D,C)=>{D?y(D.code==="ENOENT"?null:d):C.isDirectory()?l(g,A,d,y):A.unlink(g,y)})})}function p(g,A,d){let y;n(g),n(A),d&&n(d instanceof Error);try{A.chmodSync(g,438)}catch(v){if(v.code==="ENOENT")return;throw d}try{y=A.statSync(g)}catch(v){if(v.code==="ENOENT")return;throw d}y.isDirectory()?m(g,A,d):A.unlinkSync(g)}function l(g,A,d,y){n(g),n(A),d&&n(d instanceof Error),n(typeof y=="function"),A.rmdir(g,v=>{v&&(v.code==="ENOTEMPTY"||v.code==="EEXIST"||v.code==="EPERM")?f(g,A,y):v&&v.code==="ENOTDIR"?y(d):y(v)})}function f(g,A,d){n(g),n(A),n(typeof d=="function"),A.readdir(g,(y,v)=>{if(y)return d(y);let D=v.length,C;if(D===0)return A.rmdir(g,d);v.forEach(b=>{u(i.join(g,b),A,w=>{if(!C){if(w)return d(C=w);--D===0&&A.rmdir(g,d)}})})})}function h(g,A){let d;A=A||{},s(A),n(g,"rimraf: missing path"),n.strictEqual(typeof g,"string","rimraf: path should be a string"),n(A,"rimraf: missing options"),n.strictEqual(typeof A,"object","rimraf: options should be object");try{d=A.lstatSync(g)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&a&&p(g,A,y)}try{d&&d.isDirectory()?m(g,A,null):A.unlinkSync(g)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return a?p(g,A,y):m(g,A,y);if(y.code!=="EISDIR")throw y;m(g,A,y)}}function m(g,A,d){n(g),n(A),d&&n(d instanceof Error);try{A.rmdirSync(g)}catch(y){if(y.code==="ENOTDIR")throw d;if(y.code==="ENOTEMPTY"||y.code==="EEXIST"||y.code==="EPERM")E(g,A);else if(y.code!=="ENOENT")throw y}}function E(g,A){if(n(g),n(A),A.readdirSync(g).forEach(d=>h(i.join(g,d),A)),a){let d=Date.now();do try{return A.rmdirSync(g,A)}catch{}while(Date.now()-d<500)}else return A.rmdirSync(g,A)}e.exports=u,u.sync=h}),be=R((t,e)=>{"use strict";k();var r=kt().fromCallback,i=Li();e.exports={remove:r(i),removeSync:i.sync}}),Ni=R((t,e)=>{"use strict";k();var r=kt().fromCallback,i=Et(),n=W("path"),a=Ot(),s=be(),u=r(function(c,p){p=p||function(){},i.readdir(c,(l,f)=>{if(l)return a.mkdirs(c,p);f=f.map(m=>n.join(c,m)),h();function h(){let m=f.pop();if(!m)return p();s.remove(m,E=>{if(E)return p(E);h()})}})});function o(c){let p;try{p=i.readdirSync(c)}catch{return a.mkdirsSync(c)}p.forEach(l=>{l=n.join(c,l),s.removeSync(l)})}e.exports={emptyDirSync:o,emptydirSync:o,emptyDir:u,emptydir:u}}),ji=R((t,e)=>{"use strict";k();var r=kt().fromCallback,i=W("path"),n=Et(),a=Ot(),s=Mt().pathExists;function u(c,p){function l(){n.writeFile(c,"",f=>{if(f)return p(f);p()})}n.stat(c,(f,h)=>{if(!f&&h.isFile())return p();let m=i.dirname(c);s(m,(E,g)=>{if(E)return p(E);if(g)return l();a.mkdirs(m,A=>{if(A)return p(A);l()})})})}function o(c){let p;try{p=n.statSync(c)}catch{}if(p&&p.isFile())return;let l=i.dirname(c);n.existsSync(l)||a.mkdirsSync(l),n.writeFileSync(c,"")}e.exports={createFile:r(u),createFileSync:o}}),Mi=R((t,e)=>{"use strict";k();var r=kt().fromCallback,i=W("path"),n=Et(),a=Ot(),s=Mt().pathExists;function u(c,p,l){function f(h,m){n.link(h,m,E=>{if(E)return l(E);l(null)})}s(p,(h,m)=>{if(h)return l(h);if(m)return l(null);n.lstat(c,E=>{if(E)return E.message=E.message.replace("lstat","ensureLink"),l(E);let g=i.dirname(p);s(g,(A,d)=>{if(A)return l(A);if(d)return f(c,p);a.mkdirs(g,y=>{if(y)return l(y);f(c,p)})})})})}function o(c,p){if(n.existsSync(p))return;try{n.lstatSync(c)}catch(f){throw f.message=f.message.replace("lstat","ensureLink"),f}let l=i.dirname(p);return n.existsSync(l)||a.mkdirsSync(l),n.linkSync(c,p)}e.exports={createLink:r(u),createLinkSync:o}}),$i=R((t,e)=>{"use strict";k();var r=W("path"),i=Et(),n=Mt().pathExists;function a(u,o,c){if(r.isAbsolute(u))return i.lstat(u,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),c(p)):c(null,{toCwd:u,toDst:u}));{let p=r.dirname(o),l=r.join(p,u);return n(l,(f,h)=>f?c(f):h?c(null,{toCwd:l,toDst:u}):i.lstat(u,m=>m?(m.message=m.message.replace("lstat","ensureSymlink"),c(m)):c(null,{toCwd:u,toDst:r.relative(p,u)})))}}function s(u,o){let c;if(r.isAbsolute(u)){if(c=i.existsSync(u),!c)throw new Error("absolute srcpath does not exist");return{toCwd:u,toDst:u}}else{let p=r.dirname(o),l=r.join(p,u);if(c=i.existsSync(l),c)return{toCwd:l,toDst:u};if(c=i.existsSync(u),!c)throw new Error("relative srcpath does not exist");return{toCwd:u,toDst:r.relative(p,u)}}}e.exports={symlinkPaths:a,symlinkPathsSync:s}}),Hi=R((t,e)=>{"use strict";k();var r=Et();function i(a,s,u){if(u=typeof s=="function"?s:u,s=typeof s=="function"?!1:s,s)return u(null,s);r.lstat(a,(o,c)=>{if(o)return u(null,"file");s=c&&c.isDirectory()?"dir":"file",u(null,s)})}function n(a,s){let u;if(s)return s;try{u=r.lstatSync(a)}catch{return"file"}return u&&u.isDirectory()?"dir":"file"}e.exports={symlinkType:i,symlinkTypeSync:n}}),Gi=R((t,e)=>{"use strict";k();var r=kt().fromCallback,i=W("path"),n=Et(),a=Ot(),s=a.mkdirs,u=a.mkdirsSync,o=$i(),c=o.symlinkPaths,p=o.symlinkPathsSync,l=Hi(),f=l.symlinkType,h=l.symlinkTypeSync,m=Mt().pathExists;function E(A,d,y,v){v=typeof y=="function"?y:v,y=typeof y=="function"?!1:y,m(d,(D,C)=>{if(D)return v(D);if(C)return v(null);c(A,d,(b,w)=>{if(b)return v(b);A=w.toDst,f(w.toCwd,y,(F,B)=>{if(F)return v(F);let x=i.dirname(d);m(x,(T,I)=>{if(T)return v(T);if(I)return n.symlink(A,d,B,v);s(x,_=>{if(_)return v(_);n.symlink(A,d,B,v)})})})})})}function g(A,d,y){if(n.existsSync(d))return;let v=p(A,d);A=v.toDst,y=h(v.toCwd,y);let D=i.dirname(d);return n.existsSync(D)||u(D),n.symlinkSync(A,d,y)}e.exports={createSymlink:r(E),createSymlinkSync:g}}),Ui=R((t,e)=>{"use strict";k();var r=ji(),i=Mi(),n=Gi();e.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:n.createSymlink,createSymlinkSync:n.createSymlinkSync,ensureSymlink:n.createSymlink,ensureSymlinkSync:n.createSymlinkSync}}),Wi=R((t,e)=>{k();var r;try{r=Et()}catch{r=W("fs")}function i(p,l,f){f==null&&(f=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var h=l.fs||r,m=!0;"throws"in l&&(m=l.throws),h.readFile(p,l,function(E,g){if(E)return f(E);g=o(g);var A;try{A=JSON.parse(g,l?l.reviver:null)}catch(d){return m?(d.message=p+": "+d.message,f(d)):f(null,null)}f(null,A)})}function n(p,l){l=l||{},typeof l=="string"&&(l={encoding:l});var f=l.fs||r,h=!0;"throws"in l&&(h=l.throws);try{var m=f.readFileSync(p,l);return m=o(m),JSON.parse(m,l.reviver)}catch(E){if(h)throw E.message=p+": "+E.message,E;return null}}function a(p,l){var f,h=`
|
7
|
-
`;typeof l=="object"&&l!==null&&(l.spaces&&(f=l.spaces),l.EOL&&(h=l.EOL));var m=JSON.stringify(p,l?l.replacer:null,f);return m.replace(/\n/g,h)+h}function s(p,l,f,h){h==null&&(h=f,f={}),f=f||{};var m=f.fs||r,E="";try{E=a(l,f)}catch(g){h&&h(g,null);return}m.writeFile(p,E,f,h)}function u(p,l,f){f=f||{};var h=f.fs||r,m=a(l,f);return h.writeFileSync(p,m,f)}function o(p){return Buffer.isBuffer(p)&&(p=p.toString("utf8")),p=p.replace(/^\uFEFF/,""),p}var c={readFile:i,readFileSync:n,writeFile:s,writeFileSync:u};e.exports=c}),Ye=R((t,e)=>{"use strict";k();var r=kt().fromCallback,i=Wi();e.exports={readJson:r(i.readFile),readJsonSync:i.readFileSync,writeJson:r(i.writeFile),writeJsonSync:i.writeFileSync}}),Vi=R((t,e)=>{"use strict";k();var r=W("path"),i=Ot(),n=Mt().pathExists,a=Ye();function s(u,o,c,p){typeof c=="function"&&(p=c,c={});let l=r.dirname(u);n(l,(f,h)=>{if(f)return p(f);if(h)return a.writeJson(u,o,c,p);i.mkdirs(l,m=>{if(m)return p(m);a.writeJson(u,o,c,p)})})}e.exports=s}),qi=R((t,e)=>{"use strict";k();var r=Et(),i=W("path"),n=Ot(),a=Ye();function s(u,o,c){let p=i.dirname(u);r.existsSync(p)||n.mkdirsSync(p),a.writeJsonSync(u,o,c)}e.exports=s}),Ki=R((t,e)=>{"use strict";k();var r=kt().fromCallback,i=Ye();i.outputJson=r(Vi()),i.outputJsonSync=qi(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i}),Yi=R((t,e)=>{"use strict";k();var r=Et(),i=W("path"),n=jr().copySync,a=be().removeSync,s=Ot().mkdirpSync,u=Ce();function o(f,h,m){m=m||{};let E=m.overwrite||m.clobber||!1,{srcStat:g}=u.checkPathsSync(f,h,"move");return u.checkParentPathsSync(f,g,h,"move"),s(i.dirname(h)),c(f,h,E)}function c(f,h,m){if(m)return a(h),p(f,h,m);if(r.existsSync(h))throw new Error("dest already exists.");return p(f,h,m)}function p(f,h,m){try{r.renameSync(f,h)}catch(E){if(E.code!=="EXDEV")throw E;return l(f,h,m)}}function l(f,h,m){return n(f,h,{overwrite:m,errorOnExist:!0}),a(f)}e.exports=o}),Qi=R((t,e)=>{"use strict";k(),e.exports={moveSync:Yi()}}),Xi=R((t,e)=>{"use strict";k();var r=Et(),i=W("path"),n=Mr().copy,a=be().remove,s=Ot().mkdirp,u=Mt().pathExists,o=Ce();function c(h,m,E,g){typeof E=="function"&&(g=E,E={});let A=E.overwrite||E.clobber||!1;o.checkPaths(h,m,"move",(d,y)=>{if(d)return g(d);let{srcStat:v}=y;o.checkParentPaths(h,v,m,"move",D=>{if(D)return g(D);s(i.dirname(m),C=>C?g(C):p(h,m,A,g))})})}function p(h,m,E,g){if(E)return a(m,A=>A?g(A):l(h,m,E,g));u(m,(A,d)=>A?g(A):d?g(new Error("dest already exists.")):l(h,m,E,g))}function l(h,m,E,g){r.rename(h,m,A=>A?A.code!=="EXDEV"?g(A):f(h,m,E,g):g())}function f(h,m,E,g){n(h,m,{overwrite:E,errorOnExist:!0},A=>A?g(A):a(h,g))}e.exports=c}),Ji=R((t,e)=>{"use strict";k();var r=kt().fromCallback;e.exports={move:r(Xi())}}),Zi=R((t,e)=>{"use strict";k();var r=kt().fromCallback,i=Et(),n=W("path"),a=Ot(),s=Mt().pathExists;function u(c,p,l,f){typeof l=="function"&&(f=l,l="utf8");let h=n.dirname(c);s(h,(m,E)=>{if(m)return f(m);if(E)return i.writeFile(c,p,l,f);a.mkdirs(h,g=>{if(g)return f(g);i.writeFile(c,p,l,f)})})}function o(c,...p){let l=n.dirname(c);if(i.existsSync(l))return i.writeFileSync(c,...p);a.mkdirsSync(l),i.writeFileSync(c,...p)}e.exports={outputFile:r(u),outputFileSync:o}}),zi=R((t,e)=>{"use strict";k(),e.exports=Object.assign({},Ir(),jr(),Mr(),Ni(),Ui(),Ki(),Ot(),Qi(),Ji(),Zi(),Mt(),be());var r=W("fs");Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(e.exports,"promises",{get(){return r.promises}})});k();k();var Uc=Ht(vi());k();k();function tu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}k();k();function Ue(t){return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(t)}k();function eu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ru(t,e){if(e&&(Ue(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eu(t)}k();function Ae(t){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(t)}k();k();function oe(t,e){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},oe(t,e)}function nu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oe(t,e)}k();k();function iu(t){return Function.toString.call(t).indexOf("[native code]")!==-1}k();k();function uu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ee(t,e,r){return uu()?Ee=Reflect.construct.bind():Ee=function(i,n,a){var s=[null];s.push.apply(s,n);var u=Function.bind.apply(i,s),o=new u;return a&&oe(o,a.prototype),o},Ee.apply(null,arguments)}function We(t){var e=typeof Map=="function"?new Map:void 0;return We=function(r){if(r===null||!iu(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Ee(r,arguments,Ae(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),oe(i,r)},We(t)}var ou=Ht(wi()),Qe=Ht(zi()),su=function(t){nu(e,t);function e(r){var i;return tu(this,e),i=ru(this,Ae(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(We(Error));function au(t,e){try{var r=Qe.default.readJsonSync(Se.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(i){if(i.code!=="ENOENT")throw i}}function cu(t){try{var e=Qe.default.readJsonSync(Se.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function lu(t){var e=Qe.default.existsSync(Se.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function pu(t){var e={current:void 0},r=(0,ou.sync)(function(i){return[cu(i),au(i,e),lu(i)].find(function(n){return n})},{cwd:t,type:"directory"});if(e.current===void 0)throw new su(t);return r===void 0?e.current:r}k();var fu=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,du=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,hu=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,$e={Space_Separator:fu,ID_Start:du,ID_Continue:hu},mt={isSpaceSeparator(t){return typeof t=="string"&&$e.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||$e.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||$e.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}},Ve,_t,Nt,ve,Gt,Tt,Ct,Xe,ue,mu=function(t,e){Ve=String(t),_t="start",Nt=[],ve=0,Gt=1,Tt=0,Ct=void 0,Xe=void 0,ue=void 0;do Ct=Du(),Eu[_t]();while(Ct.type!=="eof");return typeof e=="function"?qe({"":ue},"",e):ue};function qe(t,e,r){let i=t[e];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let n=0;n<i.length;n++){let a=String(n),s=qe(i,a,r);s===void 0?delete i[a]:Object.defineProperty(i,a,{value:s,writable:!0,enumerable:!0,configurable:!0})}else for(let n in i){let a=qe(i,n,r);a===void 0?delete i[n]:Object.defineProperty(i,n,{value:a,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,i)}var rt,z,ie,Lt,it;function Du(){for(rt="default",z="",ie=!1,Lt=1;;){it=jt();let t=$r[rt]();if(t)return t}}function jt(){if(Ve[ve])return String.fromCodePoint(Ve.codePointAt(ve))}function H(){let t=jt();return t===`
|
6
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),u.checkPaths(F,k,"copy",(I,_)=>{if(I)return T(I);let{srcStat:S,destStat:M}=_;u.checkParentPaths(F,S,k,"copy",P=>P?T(P):x.filter?p(c,M,F,k,x,T):c(M,F,k,x,T))})}function c(F,k,x,T,I){let _=i.dirname(x);a(_,(S,M)=>{if(S)return I(S);if(M)return l(F,k,x,T,I);n(_,P=>P?I(P):l(F,k,x,T,I))})}function p(F,k,x,T,I,_){Promise.resolve(I.filter(x,T)).then(S=>S?F(k,x,T,I,_):_(),S=>_(S))}function l(F,k,x,T,I){return T.filter?p(f,F,k,x,T,I):f(F,k,x,T,I)}function f(F,k,x,T,I){(T.dereference?r.stat:r.lstat)(k,(_,S)=>{if(_)return I(_);if(S.isDirectory())return d(S,F,k,x,T,I);if(S.isFile()||S.isCharacterDevice()||S.isBlockDevice())return h(S,F,k,x,T,I);if(S.isSymbolicLink())return b(F,k,x,T,I)})}function h(F,k,x,T,I,_){return k?m(F,x,T,I,_):E(F,x,T,I,_)}function m(F,k,x,T,I){if(T.overwrite)r.unlink(x,_=>_?I(_):E(F,k,x,T,I));else return T.errorOnExist?I(new Error(`'${x}' already exists`)):I()}function E(F,k,x,T,I){return typeof r.copyFile=="function"?r.copyFile(k,x,_=>_?I(_):A(F,x,T,I)):g(F,k,x,T,I)}function g(F,k,x,T,I){let _=r.createReadStream(k);_.on("error",S=>I(S)).once("open",()=>{let S=r.createWriteStream(x,{mode:F.mode});S.on("error",M=>I(M)).on("open",()=>_.pipe(S)).once("close",()=>A(F,x,T,I))})}function A(F,k,x,T){r.chmod(k,F.mode,I=>I?T(I):x.preserveTimestamps?s(k,F.atime,F.mtime,T):T())}function d(F,k,x,T,I,_){return k?k&&!k.isDirectory()?_(new Error(`Cannot overwrite non-directory '${T}' with directory '${x}'.`)):v(x,T,I,_):y(F,x,T,I,_)}function y(F,k,x,T,I){r.mkdir(x,_=>{if(_)return I(_);v(k,x,T,S=>S?I(S):r.chmod(x,F.mode,I))})}function v(F,k,x,T){r.readdir(F,(I,_)=>I?T(I):D(_,F,k,x,T))}function D(F,k,x,T,I){let _=F.pop();return _?C(F,_,k,x,T,I):I()}function C(F,k,x,T,I,_){let S=i.join(x,k),M=i.join(T,k);u.checkPaths(S,M,"copy",(P,$)=>{if(P)return _(P);let{destStat:j}=$;l(j,S,M,I,q=>q?_(q):D(F,x,T,I,_))})}function b(F,k,x,T,I){r.readlink(k,(_,S)=>{if(_)return I(_);if(T.dereference&&(S=i.resolve(process.cwd(),S)),F)r.readlink(x,(M,P)=>M?M.code==="EINVAL"||M.code==="UNKNOWN"?r.symlink(S,x,I):I(M):(T.dereference&&(P=i.resolve(process.cwd(),P)),u.isSrcSubdir(S,P)?I(new Error(`Cannot copy '${S}' to a subdirectory of itself, '${P}'.`)):F.isDirectory()&&u.isSrcSubdir(P,S)?I(new Error(`Cannot overwrite '${P}' with '${S}'.`)):w(S,x,I)));else return r.symlink(S,x,I)})}function w(F,k,x){r.unlink(k,T=>T?x(T):r.symlink(F,k,x))}e.exports=o}),Mr=R((t,e)=>{"use strict";B();var r=Bt().fromCallback;e.exports={copy:r(Ii())}}),Li=R((t,e)=>{"use strict";B();var r=Et(),i=W("path"),n=W("assert"),a=process.platform==="win32";function s(g){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(A=>{g[A]=g[A]||r[A],A=A+"Sync",g[A]=g[A]||r[A]}),g.maxBusyTries=g.maxBusyTries||3}function u(g,A,d){let y=0;typeof A=="function"&&(d=A,A={}),n(g,"rimraf: missing path"),n.strictEqual(typeof g,"string","rimraf: path should be a string"),n.strictEqual(typeof d,"function","rimraf: callback function required"),n(A,"rimraf: invalid options argument provided"),n.strictEqual(typeof A,"object","rimraf: options should be object"),s(A),o(g,A,function v(D){if(D){if((D.code==="EBUSY"||D.code==="ENOTEMPTY"||D.code==="EPERM")&&y<A.maxBusyTries){y++;let C=y*100;return setTimeout(()=>o(g,A,v),C)}D.code==="ENOENT"&&(D=null)}d(D)})}function o(g,A,d){n(g),n(A),n(typeof d=="function"),A.lstat(g,(y,v)=>{if(y&&y.code==="ENOENT")return d(null);if(y&&y.code==="EPERM"&&a)return c(g,A,y,d);if(v&&v.isDirectory())return l(g,A,y,d);A.unlink(g,D=>{if(D){if(D.code==="ENOENT")return d(null);if(D.code==="EPERM")return a?c(g,A,D,d):l(g,A,D,d);if(D.code==="EISDIR")return l(g,A,D,d)}return d(D)})})}function c(g,A,d,y){n(g),n(A),n(typeof y=="function"),d&&n(d instanceof Error),A.chmod(g,438,v=>{v?y(v.code==="ENOENT"?null:d):A.stat(g,(D,C)=>{D?y(D.code==="ENOENT"?null:d):C.isDirectory()?l(g,A,d,y):A.unlink(g,y)})})}function p(g,A,d){let y;n(g),n(A),d&&n(d instanceof Error);try{A.chmodSync(g,438)}catch(v){if(v.code==="ENOENT")return;throw d}try{y=A.statSync(g)}catch(v){if(v.code==="ENOENT")return;throw d}y.isDirectory()?m(g,A,d):A.unlinkSync(g)}function l(g,A,d,y){n(g),n(A),d&&n(d instanceof Error),n(typeof y=="function"),A.rmdir(g,v=>{v&&(v.code==="ENOTEMPTY"||v.code==="EEXIST"||v.code==="EPERM")?f(g,A,y):v&&v.code==="ENOTDIR"?y(d):y(v)})}function f(g,A,d){n(g),n(A),n(typeof d=="function"),A.readdir(g,(y,v)=>{if(y)return d(y);let D=v.length,C;if(D===0)return A.rmdir(g,d);v.forEach(b=>{u(i.join(g,b),A,w=>{if(!C){if(w)return d(C=w);--D===0&&A.rmdir(g,d)}})})})}function h(g,A){let d;A=A||{},s(A),n(g,"rimraf: missing path"),n.strictEqual(typeof g,"string","rimraf: path should be a string"),n(A,"rimraf: missing options"),n.strictEqual(typeof A,"object","rimraf: options should be object");try{d=A.lstatSync(g)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&a&&p(g,A,y)}try{d&&d.isDirectory()?m(g,A,null):A.unlinkSync(g)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return a?p(g,A,y):m(g,A,y);if(y.code!=="EISDIR")throw y;m(g,A,y)}}function m(g,A,d){n(g),n(A),d&&n(d instanceof Error);try{A.rmdirSync(g)}catch(y){if(y.code==="ENOTDIR")throw d;if(y.code==="ENOTEMPTY"||y.code==="EEXIST"||y.code==="EPERM")E(g,A);else if(y.code!=="ENOENT")throw y}}function E(g,A){if(n(g),n(A),A.readdirSync(g).forEach(d=>h(i.join(g,d),A)),a){let d=Date.now();do try{return A.rmdirSync(g,A)}catch{}while(Date.now()-d<500)}else return A.rmdirSync(g,A)}e.exports=u,u.sync=h}),be=R((t,e)=>{"use strict";B();var r=Bt().fromCallback,i=Li();e.exports={remove:r(i),removeSync:i.sync}}),Ni=R((t,e)=>{"use strict";B();var r=Bt().fromCallback,i=Et(),n=W("path"),a=Ot(),s=be(),u=r(function(c,p){p=p||function(){},i.readdir(c,(l,f)=>{if(l)return a.mkdirs(c,p);f=f.map(m=>n.join(c,m)),h();function h(){let m=f.pop();if(!m)return p();s.remove(m,E=>{if(E)return p(E);h()})}})});function o(c){let p;try{p=i.readdirSync(c)}catch{return a.mkdirsSync(c)}p.forEach(l=>{l=n.join(c,l),s.removeSync(l)})}e.exports={emptyDirSync:o,emptydirSync:o,emptyDir:u,emptydir:u}}),ji=R((t,e)=>{"use strict";B();var r=Bt().fromCallback,i=W("path"),n=Et(),a=Ot(),s=Mt().pathExists;function u(c,p){function l(){n.writeFile(c,"",f=>{if(f)return p(f);p()})}n.stat(c,(f,h)=>{if(!f&&h.isFile())return p();let m=i.dirname(c);s(m,(E,g)=>{if(E)return p(E);if(g)return l();a.mkdirs(m,A=>{if(A)return p(A);l()})})})}function o(c){let p;try{p=n.statSync(c)}catch{}if(p&&p.isFile())return;let l=i.dirname(c);n.existsSync(l)||a.mkdirsSync(l),n.writeFileSync(c,"")}e.exports={createFile:r(u),createFileSync:o}}),Mi=R((t,e)=>{"use strict";B();var r=Bt().fromCallback,i=W("path"),n=Et(),a=Ot(),s=Mt().pathExists;function u(c,p,l){function f(h,m){n.link(h,m,E=>{if(E)return l(E);l(null)})}s(p,(h,m)=>{if(h)return l(h);if(m)return l(null);n.lstat(c,E=>{if(E)return E.message=E.message.replace("lstat","ensureLink"),l(E);let g=i.dirname(p);s(g,(A,d)=>{if(A)return l(A);if(d)return f(c,p);a.mkdirs(g,y=>{if(y)return l(y);f(c,p)})})})})}function o(c,p){if(n.existsSync(p))return;try{n.lstatSync(c)}catch(f){throw f.message=f.message.replace("lstat","ensureLink"),f}let l=i.dirname(p);return n.existsSync(l)||a.mkdirsSync(l),n.linkSync(c,p)}e.exports={createLink:r(u),createLinkSync:o}}),$i=R((t,e)=>{"use strict";B();var r=W("path"),i=Et(),n=Mt().pathExists;function a(u,o,c){if(r.isAbsolute(u))return i.lstat(u,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),c(p)):c(null,{toCwd:u,toDst:u}));{let p=r.dirname(o),l=r.join(p,u);return n(l,(f,h)=>f?c(f):h?c(null,{toCwd:l,toDst:u}):i.lstat(u,m=>m?(m.message=m.message.replace("lstat","ensureSymlink"),c(m)):c(null,{toCwd:u,toDst:r.relative(p,u)})))}}function s(u,o){let c;if(r.isAbsolute(u)){if(c=i.existsSync(u),!c)throw new Error("absolute srcpath does not exist");return{toCwd:u,toDst:u}}else{let p=r.dirname(o),l=r.join(p,u);if(c=i.existsSync(l),c)return{toCwd:l,toDst:u};if(c=i.existsSync(u),!c)throw new Error("relative srcpath does not exist");return{toCwd:u,toDst:r.relative(p,u)}}}e.exports={symlinkPaths:a,symlinkPathsSync:s}}),Hi=R((t,e)=>{"use strict";B();var r=Et();function i(a,s,u){if(u=typeof s=="function"?s:u,s=typeof s=="function"?!1:s,s)return u(null,s);r.lstat(a,(o,c)=>{if(o)return u(null,"file");s=c&&c.isDirectory()?"dir":"file",u(null,s)})}function n(a,s){let u;if(s)return s;try{u=r.lstatSync(a)}catch{return"file"}return u&&u.isDirectory()?"dir":"file"}e.exports={symlinkType:i,symlinkTypeSync:n}}),Gi=R((t,e)=>{"use strict";B();var r=Bt().fromCallback,i=W("path"),n=Et(),a=Ot(),s=a.mkdirs,u=a.mkdirsSync,o=$i(),c=o.symlinkPaths,p=o.symlinkPathsSync,l=Hi(),f=l.symlinkType,h=l.symlinkTypeSync,m=Mt().pathExists;function E(A,d,y,v){v=typeof y=="function"?y:v,y=typeof y=="function"?!1:y,m(d,(D,C)=>{if(D)return v(D);if(C)return v(null);c(A,d,(b,w)=>{if(b)return v(b);A=w.toDst,f(w.toCwd,y,(F,k)=>{if(F)return v(F);let x=i.dirname(d);m(x,(T,I)=>{if(T)return v(T);if(I)return n.symlink(A,d,k,v);s(x,_=>{if(_)return v(_);n.symlink(A,d,k,v)})})})})})}function g(A,d,y){if(n.existsSync(d))return;let v=p(A,d);A=v.toDst,y=h(v.toCwd,y);let D=i.dirname(d);return n.existsSync(D)||u(D),n.symlinkSync(A,d,y)}e.exports={createSymlink:r(E),createSymlinkSync:g}}),Ui=R((t,e)=>{"use strict";B();var r=ji(),i=Mi(),n=Gi();e.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:n.createSymlink,createSymlinkSync:n.createSymlinkSync,ensureSymlink:n.createSymlink,ensureSymlinkSync:n.createSymlinkSync}}),Wi=R((t,e)=>{B();var r;try{r=Et()}catch{r=W("fs")}function i(p,l,f){f==null&&(f=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var h=l.fs||r,m=!0;"throws"in l&&(m=l.throws),h.readFile(p,l,function(E,g){if(E)return f(E);g=o(g);var A;try{A=JSON.parse(g,l?l.reviver:null)}catch(d){return m?(d.message=p+": "+d.message,f(d)):f(null,null)}f(null,A)})}function n(p,l){l=l||{},typeof l=="string"&&(l={encoding:l});var f=l.fs||r,h=!0;"throws"in l&&(h=l.throws);try{var m=f.readFileSync(p,l);return m=o(m),JSON.parse(m,l.reviver)}catch(E){if(h)throw E.message=p+": "+E.message,E;return null}}function a(p,l){var f,h=`
|
7
|
+
`;typeof l=="object"&&l!==null&&(l.spaces&&(f=l.spaces),l.EOL&&(h=l.EOL));var m=JSON.stringify(p,l?l.replacer:null,f);return m.replace(/\n/g,h)+h}function s(p,l,f,h){h==null&&(h=f,f={}),f=f||{};var m=f.fs||r,E="";try{E=a(l,f)}catch(g){h&&h(g,null);return}m.writeFile(p,E,f,h)}function u(p,l,f){f=f||{};var h=f.fs||r,m=a(l,f);return h.writeFileSync(p,m,f)}function o(p){return Buffer.isBuffer(p)&&(p=p.toString("utf8")),p=p.replace(/^\uFEFF/,""),p}var c={readFile:i,readFileSync:n,writeFile:s,writeFileSync:u};e.exports=c}),Ye=R((t,e)=>{"use strict";B();var r=Bt().fromCallback,i=Wi();e.exports={readJson:r(i.readFile),readJsonSync:i.readFileSync,writeJson:r(i.writeFile),writeJsonSync:i.writeFileSync}}),Vi=R((t,e)=>{"use strict";B();var r=W("path"),i=Ot(),n=Mt().pathExists,a=Ye();function s(u,o,c,p){typeof c=="function"&&(p=c,c={});let l=r.dirname(u);n(l,(f,h)=>{if(f)return p(f);if(h)return a.writeJson(u,o,c,p);i.mkdirs(l,m=>{if(m)return p(m);a.writeJson(u,o,c,p)})})}e.exports=s}),qi=R((t,e)=>{"use strict";B();var r=Et(),i=W("path"),n=Ot(),a=Ye();function s(u,o,c){let p=i.dirname(u);r.existsSync(p)||n.mkdirsSync(p),a.writeJsonSync(u,o,c)}e.exports=s}),Ki=R((t,e)=>{"use strict";B();var r=Bt().fromCallback,i=Ye();i.outputJson=r(Vi()),i.outputJsonSync=qi(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i}),Yi=R((t,e)=>{"use strict";B();var r=Et(),i=W("path"),n=jr().copySync,a=be().removeSync,s=Ot().mkdirpSync,u=Ce();function o(f,h,m){m=m||{};let E=m.overwrite||m.clobber||!1,{srcStat:g}=u.checkPathsSync(f,h,"move");return u.checkParentPathsSync(f,g,h,"move"),s(i.dirname(h)),c(f,h,E)}function c(f,h,m){if(m)return a(h),p(f,h,m);if(r.existsSync(h))throw new Error("dest already exists.");return p(f,h,m)}function p(f,h,m){try{r.renameSync(f,h)}catch(E){if(E.code!=="EXDEV")throw E;return l(f,h,m)}}function l(f,h,m){return n(f,h,{overwrite:m,errorOnExist:!0}),a(f)}e.exports=o}),Qi=R((t,e)=>{"use strict";B(),e.exports={moveSync:Yi()}}),Xi=R((t,e)=>{"use strict";B();var r=Et(),i=W("path"),n=Mr().copy,a=be().remove,s=Ot().mkdirp,u=Mt().pathExists,o=Ce();function c(h,m,E,g){typeof E=="function"&&(g=E,E={});let A=E.overwrite||E.clobber||!1;o.checkPaths(h,m,"move",(d,y)=>{if(d)return g(d);let{srcStat:v}=y;o.checkParentPaths(h,v,m,"move",D=>{if(D)return g(D);s(i.dirname(m),C=>C?g(C):p(h,m,A,g))})})}function p(h,m,E,g){if(E)return a(m,A=>A?g(A):l(h,m,E,g));u(m,(A,d)=>A?g(A):d?g(new Error("dest already exists.")):l(h,m,E,g))}function l(h,m,E,g){r.rename(h,m,A=>A?A.code!=="EXDEV"?g(A):f(h,m,E,g):g())}function f(h,m,E,g){n(h,m,{overwrite:E,errorOnExist:!0},A=>A?g(A):a(h,g))}e.exports=c}),Ji=R((t,e)=>{"use strict";B();var r=Bt().fromCallback;e.exports={move:r(Xi())}}),Zi=R((t,e)=>{"use strict";B();var r=Bt().fromCallback,i=Et(),n=W("path"),a=Ot(),s=Mt().pathExists;function u(c,p,l,f){typeof l=="function"&&(f=l,l="utf8");let h=n.dirname(c);s(h,(m,E)=>{if(m)return f(m);if(E)return i.writeFile(c,p,l,f);a.mkdirs(h,g=>{if(g)return f(g);i.writeFile(c,p,l,f)})})}function o(c,...p){let l=n.dirname(c);if(i.existsSync(l))return i.writeFileSync(c,...p);a.mkdirsSync(l),i.writeFileSync(c,...p)}e.exports={outputFile:r(u),outputFileSync:o}}),zi=R((t,e)=>{"use strict";B(),e.exports=Object.assign({},Ir(),jr(),Mr(),Ni(),Ui(),Ki(),Ot(),Qi(),Ji(),Zi(),Mt(),be());var r=W("fs");Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(e.exports,"promises",{get(){return r.promises}})});B();B();var Uc=Ht(vi());B();B();function tu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}B();B();function Ue(t){return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(t)}B();function eu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ru(t,e){if(e&&(Ue(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eu(t)}B();function Ae(t){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(t)}B();B();function oe(t,e){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},oe(t,e)}function nu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oe(t,e)}B();B();function iu(t){return Function.toString.call(t).indexOf("[native code]")!==-1}B();B();function uu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ee(t,e,r){return uu()?Ee=Reflect.construct.bind():Ee=function(i,n,a){var s=[null];s.push.apply(s,n);var u=Function.bind.apply(i,s),o=new u;return a&&oe(o,a.prototype),o},Ee.apply(null,arguments)}function We(t){var e=typeof Map=="function"?new Map:void 0;return We=function(r){if(r===null||!iu(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Ee(r,arguments,Ae(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),oe(i,r)},We(t)}var ou=Ht(wi()),Qe=Ht(zi()),su=function(t){nu(e,t);function e(r){var i;return tu(this,e),i=ru(this,Ae(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(We(Error));function au(t,e){try{var r=Qe.default.readJsonSync(Se.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(i){if(i.code!=="ENOENT")throw i}}function cu(t){try{var e=Qe.default.readJsonSync(Se.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function lu(t){var e=Qe.default.existsSync(Se.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function pu(t){var e={current:void 0},r=(0,ou.sync)(function(i){return[cu(i),au(i,e),lu(i)].find(function(n){return n})},{cwd:t,type:"directory"});if(e.current===void 0)throw new su(t);return r===void 0?e.current:r}B();var fu=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,du=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,hu=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,$e={Space_Separator:fu,ID_Start:du,ID_Continue:hu},mt={isSpaceSeparator(t){return typeof t=="string"&&$e.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||$e.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||$e.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}},Ve,_t,Nt,ve,Gt,Tt,Ct,Xe,ue,mu=function(t,e){Ve=String(t),_t="start",Nt=[],ve=0,Gt=1,Tt=0,Ct=void 0,Xe=void 0,ue=void 0;do Ct=Du(),Eu[_t]();while(Ct.type!=="eof");return typeof e=="function"?qe({"":ue},"",e):ue};function qe(t,e,r){let i=t[e];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let n=0;n<i.length;n++){let a=String(n),s=qe(i,a,r);s===void 0?delete i[a]:Object.defineProperty(i,a,{value:s,writable:!0,enumerable:!0,configurable:!0})}else for(let n in i){let a=qe(i,n,r);a===void 0?delete i[n]:Object.defineProperty(i,n,{value:a,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,i)}var rt,z,ie,Lt,it;function Du(){for(rt="default",z="",ie=!1,Lt=1;;){it=jt();let t=$r[rt]();if(t)return t}}function jt(){if(Ve[ve])return String.fromCodePoint(Ve.codePointAt(ve))}function H(){let t=jt();return t===`
|
8
8
|
`?(Gt++,Tt=0):t?Tt+=t.length:Tt++,t&&(ve+=t.length),t}var $r={default(){switch(it){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
9
9
|
`:case"\r":case"\u2028":case"\u2029":H();return;case"/":H(),rt="comment";return;case void 0:return H(),dt("eof")}if(mt.isSpaceSeparator(it)){H();return}return $r[_t]()},comment(){switch(it){case"*":H(),rt="multiLineComment";return;case"/":H(),rt="singleLineComment";return}throw ht(H())},multiLineComment(){switch(it){case"*":H(),rt="multiLineCommentAsterisk";return;case void 0:throw ht(H())}H()},multiLineCommentAsterisk(){switch(it){case"*":H();return;case"/":H(),rt="default";return;case void 0:throw ht(H())}H(),rt="multiLineComment"},singleLineComment(){switch(it){case`
|
10
10
|
`:case"\r":case"\u2028":case"\u2029":H(),rt="default";return;case void 0:return H(),dt("eof")}H()},value(){switch(it){case"{":case"[":return dt("punctuator",H());case"n":return H(),qt("ull"),dt("null",null);case"t":return H(),qt("rue"),dt("boolean",!0);case"f":return H(),qt("alse"),dt("boolean",!1);case"-":case"+":H()==="-"&&(Lt=-1),rt="sign";return;case".":z=H(),rt="decimalPointLeading";return;case"0":z=H(),rt="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":z=H(),rt="decimalInteger";return;case"I":return H(),qt("nfinity"),dt("numeric",1/0);case"N":return H(),qt("aN"),dt("numeric",NaN);case'"':case"'":ie=H()==='"',z="",rt="string";return}throw ht(H())},identifierNameStartEscape(){if(it!=="u")throw ht(H());H();let t=Ke();switch(t){case"$":case"_":break;default:if(!mt.isIdStartChar(t))throw Pr();break}z+=t,rt="identifierName"},identifierName(){switch(it){case"$":case"_":case"\u200C":case"\u200D":z+=H();return;case"\\":H(),rt="identifierNameEscape";return}if(mt.isIdContinueChar(it)){z+=H();return}return dt("identifier",z)},identifierNameEscape(){if(it!=="u")throw ht(H());H();let t=Ke();switch(t){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!mt.isIdContinueChar(t))throw Pr();break}z+=t,rt="identifierName"},sign(){switch(it){case".":z=H(),rt="decimalPointLeading";return;case"0":z=H(),rt="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":z=H(),rt="decimalInteger";return;case"I":return H(),qt("nfinity"),dt("numeric",Lt*(1/0));case"N":return H(),qt("aN"),dt("numeric",NaN)}throw ht(H())},zero(){switch(it){case".":z+=H(),rt="decimalPoint";return;case"e":case"E":z+=H(),rt="decimalExponent";return;case"x":case"X":z+=H(),rt="hexadecimal";return}return dt("numeric",Lt*0)},decimalInteger(){switch(it){case".":z+=H(),rt="decimalPoint";return;case"e":case"E":z+=H(),rt="decimalExponent";return}if(mt.isDigit(it)){z+=H();return}return dt("numeric",Lt*Number(z))},decimalPointLeading(){if(mt.isDigit(it)){z+=H(),rt="decimalFraction";return}throw ht(H())},decimalPoint(){switch(it){case"e":case"E":z+=H(),rt="decimalExponent";return}if(mt.isDigit(it)){z+=H(),rt="decimalFraction";return}return dt("numeric",Lt*Number(z))},decimalFraction(){switch(it){case"e":case"E":z+=H(),rt="decimalExponent";return}if(mt.isDigit(it)){z+=H();return}return dt("numeric",Lt*Number(z))},decimalExponent(){switch(it){case"+":case"-":z+=H(),rt="decimalExponentSign";return}if(mt.isDigit(it)){z+=H(),rt="decimalExponentInteger";return}throw ht(H())},decimalExponentSign(){if(mt.isDigit(it)){z+=H(),rt="decimalExponentInteger";return}throw ht(H())},decimalExponentInteger(){if(mt.isDigit(it)){z+=H();return}return dt("numeric",Lt*Number(z))},hexadecimal(){if(mt.isHexDigit(it)){z+=H(),rt="hexadecimalInteger";return}throw ht(H())},hexadecimalInteger(){if(mt.isHexDigit(it)){z+=H();return}return dt("numeric",Lt*Number(z))},string(){switch(it){case"\\":H(),z+=yu();return;case'"':if(ie)return H(),dt("string",z);z+=H();return;case"'":if(!ie)return H(),dt("string",z);z+=H();return;case`
|
@@ -17,17 +17,17 @@ GFS4: `),console.error(d)}),r[u]||(f=global[u]||[],p(r,f),r.close=function(d){fu
|
|
17
17
|
`+E+"}"}}return i.pop(),n=E,d}function f(m){if(m.length===0)return p(m,!0);let E=String.fromCodePoint(m.codePointAt(0));if(!mt.isIdStartChar(E))return p(m,!0);for(let g=E.length;g<m.length;g++)if(!mt.isIdContinueChar(String.fromCodePoint(m.codePointAt(g))))return p(m,!0);return m}function h(m){if(i.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");i.push(m);let E=n;n=n+u;let g=[];for(let d=0;d<m.length;d++){let y=c(String(d),m);g.push(y!==void 0?y:"null")}let A;if(g.length===0)A="[]";else if(u===""){let d=g.join(",");A="["+d+"]"}else{let d=`,
|
18
18
|
`+n,y=g.join(d);A=`[
|
19
19
|
`+n+y+`,
|
20
|
-
`+E+"]"}return i.pop(),n=E,A}},Cu={parse:mu,stringify:vu},bu=Cu,Ze=bu;function Su(t){return!Ze.parse(t).extends}var Ge={};function Fu(t,e){var r;let i=(r=e==null?void 0:e.cache)!=null?r:!0,n=t||process.cwd();if(i&&Ge[n])return Ge[n];let a=Me({target:"turbo.json",cwd:n,contentCheck:Su});if(!a)try{if(a=pu(n),!a)return null}catch{return null}return i&&(Ge[n]=a),a}var ze=Fu;var ae=Bt(require("fs"),1),Qt=Bt(require("path"),1),_u=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.splitWhen=t.flatten=void 0;function e(i){return i.reduce((n,a)=>[].concat(n,a),[])}t.flatten=e;function r(i,n){let a=[[]],s=0;for(let u of i)n(u)?(s++,a[s]=[]):a[s].push(u);return a}t.splitWhen=r}),wu=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEnoentCodeError=void 0;function e(r){return r.code==="ENOENT"}t.isEnoentCodeError=e}),xu=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new e(i,n)}t.createDirentFromStats=r}),Bu=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;var e=W("path"),r=2,i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function n(o){return o.replace(/\\/g,"/")}t.unixify=n;function a(o,c){return e.resolve(o,c)}t.makeAbsolute=a;function s(o){return o.replace(i,"\\$2")}t.escape=s;function u(o){if(o.charAt(0)==="."){let c=o.charAt(1);if(c==="/"||c==="\\")return o.slice(r)}return o}t.removeLeadingDotSegment=u}),ku=R((t,e)=>{k(),e.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(i[2])return!0;r=r.slice(i.index+i[0].length)}return!1}}),Ou=R((t,e)=>{k();var r=ku(),i={"{":"}","(":")","[":"]"},n=function(s){if(s[0]==="!")return!0;for(var u=0,o=-2,c=-2,p=-2,l=-2,f=-2;u<s.length;){if(s[u]==="*"||s[u+1]==="?"&&/[\].+)]/.test(s[u])||c!==-1&&s[u]==="["&&s[u+1]!=="]"&&(c<u&&(c=s.indexOf("]",u)),c>u&&(f===-1||f>c||(f=s.indexOf("\\",u),f===-1||f>c)))||p!==-1&&s[u]==="{"&&s[u+1]!=="}"&&(p=s.indexOf("}",u),p>u&&(f=s.indexOf("\\",u),f===-1||f>p))||l!==-1&&s[u]==="("&&s[u+1]==="?"&&/[:!=]/.test(s[u+2])&&s[u+3]!==")"&&(l=s.indexOf(")",u),l>u&&(f=s.indexOf("\\",u),f===-1||f>l))||o!==-1&&s[u]==="("&&s[u+1]!=="|"&&(o<u&&(o=s.indexOf("|",u)),o!==-1&&s[o+1]!==")"&&(l=s.indexOf(")",o),l>o&&(f=s.indexOf("\\",o),f===-1||f>l))))return!0;if(s[u]==="\\"){var h=s[u+1];u+=2;var m=i[h];if(m){var E=s.indexOf(m,u);E!==-1&&(u=E+1)}if(s[u]==="!")return!0}else u++}return!1},a=function(s){if(s[0]==="!")return!0;for(var u=0;u<s.length;){if(/[*?{}()[\]]/.test(s[u]))return!0;if(s[u]==="\\"){var o=s[u+1];u+=2;var c=i[o];if(c){var p=s.indexOf(c,u);p!==-1&&(u=p+1)}if(s[u]==="!")return!0}else u++}return!1};e.exports=function(s,u){if(typeof s!="string"||s==="")return!1;if(r(s))return!0;var o=n;return u&&u.strict===!1&&(o=a),o(s)}}),Ru=R((t,e)=>{"use strict";k();var r=Ou(),i=W("path").posix.dirname,n=W("os").platform()==="win32",a="/",s=/\\/g,u=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function(p,l){var f=Object.assign({flipBackslashes:!0},l);f.flipBackslashes&&n&&p.indexOf(a)<0&&(p=p.replace(s,a)),u.test(p)&&(p+=a),p+="a";do p=i(p);while(r(p)||o.test(p));return p.replace(c,"$1")}}),cr=R(t=>{"use strict";k(),t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,r)=>e.nodes.find(i=>i.type===r),t.exceedsLimit=(e,r,i=1,n)=>n===!1||!t.isInteger(e)||!t.isInteger(r)?!1:(Number(r)-Number(e))/Number(i)>=n,t.escapeNode=(e,r=0,i)=>{let n=e.nodes[r];!n||(i&&n.type===i||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1,t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((r,i)=>(i.type==="text"&&r.push(i.value),i.type==="range"&&(i.type="text"),r),[]),t.flatten=(...e)=>{let r=[],i=n=>{for(let a=0;a<n.length;a++){let s=n[a];Array.isArray(s)?i(s,r):s!==void 0&&r.push(s)}return r};return i(e),r}}),lr=R((t,e)=>{"use strict";k();var r=cr();e.exports=(i,n={})=>{let a=(s,u={})=>{let o=n.escapeInvalid&&r.isInvalidBrace(u),c=s.invalid===!0&&n.escapeInvalid===!0,p="";if(s.value)return(o||c)&&r.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let l of s.nodes)p+=a(l);return p};return a(i)}}),Tu=R((t,e)=>{"use strict";k(),e.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}),Pu=R((t,e)=>{"use strict";k();var r=Tu(),i=(d,y,v)=>{if(r(d)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(y===void 0||d===y)return String(d);if(r(y)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let D={relaxZeros:!0,...v};typeof D.strictZeros=="boolean"&&(D.relaxZeros=D.strictZeros===!1);let C=String(D.relaxZeros),b=String(D.shorthand),w=String(D.capture),F=String(D.wrap),B=d+":"+y+"="+C+b+w+F;if(i.cache.hasOwnProperty(B))return i.cache[B].result;let x=Math.min(d,y),T=Math.max(d,y);if(Math.abs(x-T)===1){let P=d+"|"+y;return D.capture?`(${P})`:D.wrap===!1?P:`(?:${P})`}let I=g(d)||g(y),_={min:d,max:y,a:x,b:T},S=[],M=[];if(I&&(_.isPadded=I,_.maxLen=String(_.max).length),x<0){let P=T<0?Math.abs(T):1;M=u(P,Math.abs(x),_,D),x=_.a=0}return T>=0&&(S=u(x,T,_,D)),_.negatives=M,_.positives=S,_.result=n(M,S,D),D.capture===!0?_.result=`(${_.result})`:D.wrap!==!1&&S.length+M.length>1&&(_.result=`(?:${_.result})`),i.cache[B]=_,_.result};function n(d,y,v){let D=o(d,y,"-",!1,v)||[],C=o(y,d,"",!1,v)||[],b=o(d,y,"-?",!0,v)||[];return D.concat(b).concat(C).join("|")}function a(d,y){let v=1,D=1,C=f(d,v),b=new Set([y]);for(;d<=C&&C<=y;)b.add(C),v+=1,C=f(d,v);for(C=h(y+1,D)-1;d<C&&C<=y;)b.add(C),D+=1,C=h(y+1,D)-1;return b=[...b],b.sort(p),b}function s(d,y,v){if(d===y)return{pattern:d,count:[],digits:0};let D=c(d,y),C=D.length,b="",w=0;for(let F=0;F<C;F++){let[B,x]=D[F];B===x?b+=B:B!=="0"||x!=="9"?b+=E(B,x,v):w++}return w&&(b+=v.shorthand===!0?"\\d":"[0-9]"),{pattern:b,count:[w],digits:C}}function u(d,y,v,D){let C=a(d,y),b=[],w=d,F;for(let B=0;B<C.length;B++){let x=C[B],T=s(String(w),String(x),D),I="";if(!v.isPadded&&F&&F.pattern===T.pattern){F.count.length>1&&F.count.pop(),F.count.push(T.count[0]),F.string=F.pattern+m(F.count),w=x+1;continue}v.isPadded&&(I=A(x,v,D)),T.string=I+T.pattern+m(T.count),b.push(T),w=x+1,F=T}return b}function o(d,y,v,D,C){let b=[];for(let w of d){let{string:F}=w;!D&&!l(y,"string",F)&&b.push(v+F),D&&l(y,"string",F)&&b.push(v+F)}return b}function c(d,y){let v=[];for(let D=0;D<d.length;D++)v.push([d[D],y[D]]);return v}function p(d,y){return d>y?1:y>d?-1:0}function l(d,y,v){return d.some(D=>D[y]===v)}function f(d,y){return Number(String(d).slice(0,-y)+"9".repeat(y))}function h(d,y){return d-d%Math.pow(10,y)}function m(d){let[y=0,v=""]=d;return v||y>1?`{${y+(v?","+v:"")}}`:""}function E(d,y,v){return`[${d}${y-d===1?"":"-"}${y}]`}function g(d){return/^-?(0+)\d/.test(d)}function A(d,y,v){if(!y.isPadded)return d;let D=Math.abs(y.maxLen-String(d).length),C=v.relaxZeros!==!1;switch(D){case 0:return"";case 1:return C?"0?":"0";case 2:return C?"0{0,2}":"00";default:return C?`0{0,${D}}`:`0{${D}}`}}i.cache={},i.clearCache=()=>i.cache={},e.exports=i}),nn=R((t,e)=>{"use strict";k();var r=W("util"),i=Pu(),n=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),a=D=>C=>D===!0?Number(C):String(C),s=D=>typeof D=="number"||typeof D=="string"&&D!=="",u=D=>Number.isInteger(+D),o=D=>{let C=`${D}`,b=-1;if(C[0]==="-"&&(C=C.slice(1)),C==="0")return!1;for(;C[++b]==="0";);return b>0},c=(D,C,b)=>typeof D=="string"||typeof C=="string"?!0:b.stringify===!0,p=(D,C,b)=>{if(C>0){let w=D[0]==="-"?"-":"";w&&(D=D.slice(1)),D=w+D.padStart(w?C-1:C,"0")}return b===!1?String(D):D},l=(D,C)=>{let b=D[0]==="-"?"-":"";for(b&&(D=D.slice(1),C--);D.length<C;)D="0"+D;return b?"-"+D:D},f=(D,C)=>{D.negatives.sort((x,T)=>x<T?-1:x>T?1:0),D.positives.sort((x,T)=>x<T?-1:x>T?1:0);let b=C.capture?"":"?:",w="",F="",B;return D.positives.length&&(w=D.positives.join("|")),D.negatives.length&&(F=`-(${b}${D.negatives.join("|")})`),w&&F?B=`${w}|${F}`:B=w||F,C.wrap?`(${b}${B})`:B},h=(D,C,b,w)=>{if(b)return i(D,C,{wrap:!1,...w});let F=String.fromCharCode(D);if(D===C)return F;let B=String.fromCharCode(C);return`[${F}-${B}]`},m=(D,C,b)=>{if(Array.isArray(D)){let w=b.wrap===!0,F=b.capture?"":"?:";return w?`(${F}${D.join("|")})`:D.join("|")}return i(D,C,b)},E=(...D)=>new RangeError("Invalid range arguments: "+r.inspect(...D)),g=(D,C,b)=>{if(b.strictRanges===!0)throw E([D,C]);return[]},A=(D,C)=>{if(C.strictRanges===!0)throw new TypeError(`Expected step "${D}" to be a number`);return[]},d=(D,C,b=1,w={})=>{let F=Number(D),B=Number(C);if(!Number.isInteger(F)||!Number.isInteger(B)){if(w.strictRanges===!0)throw E([D,C]);return[]}F===0&&(F=0),B===0&&(B=0);let x=F>B,T=String(D),I=String(C),_=String(b);b=Math.max(Math.abs(b),1);let S=o(T)||o(I)||o(_),M=S?Math.max(T.length,I.length,_.length):0,P=S===!1&&c(D,C,w)===!1,$=w.transform||a(P);if(w.toRegex&&b===1)return h(l(D,M),l(C,M),!0,w);let j={negatives:[],positives:[]},q=N=>j[N<0?"negatives":"positives"].push(Math.abs(N)),Q=[],tt=0;for(;x?F>=B:F<=B;)w.toRegex===!0&&b>1?q(F):Q.push(p($(F,tt),M,P)),F=x?F-b:F+b,tt++;return w.toRegex===!0?b>1?f(j,w):m(Q,null,{wrap:!1,...w}):Q},y=(D,C,b=1,w={})=>{if(!u(D)&&D.length>1||!u(C)&&C.length>1)return g(D,C,w);let F=w.transform||(P=>String.fromCharCode(P)),B=`${D}`.charCodeAt(0),x=`${C}`.charCodeAt(0),T=B>x,I=Math.min(B,x),_=Math.max(B,x);if(w.toRegex&&b===1)return h(I,_,!1,w);let S=[],M=0;for(;T?B>=x:B<=x;)S.push(F(B,M)),B=T?B-b:B+b,M++;return w.toRegex===!0?m(S,null,{wrap:!1,options:w}):S},v=(D,C,b,w={})=>{if(C==null&&s(D))return[D];if(!s(D)||!s(C))return g(D,C,w);if(typeof b=="function")return v(D,C,1,{transform:b});if(n(b))return v(D,C,0,b);let F={...w};return F.capture===!0&&(F.wrap=!0),b=b||F.step||1,u(b)?u(D)&&u(C)?d(D,C,b,F):y(D,C,Math.max(Math.abs(b),1),F):b!=null&&!n(b)?A(b,F):v(D,C,1,b)};e.exports=v}),Iu=R((t,e)=>{"use strict";k();var r=nn(),i=cr(),n=(a,s={})=>{let u=(o,c={})=>{let p=i.isInvalidBrace(c),l=o.invalid===!0&&s.escapeInvalid===!0,f=p===!0||l===!0,h=s.escapeInvalid===!0?"\\":"",m="";if(o.isOpen===!0||o.isClose===!0)return h+o.value;if(o.type==="open")return f?h+o.value:"(";if(o.type==="close")return f?h+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":f?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let E=i.reduce(o.nodes),g=r(...E,{...s,wrap:!1,toRegex:!0});if(g.length!==0)return E.length>1&&g.length>1?`(${g})`:g}if(o.nodes)for(let E of o.nodes)m+=u(E,o);return m};return u(a)};e.exports=n}),Lu=R((t,e)=>{"use strict";k();var r=nn(),i=lr(),n=cr(),a=(u="",o="",c=!1)=>{let p=[];if(u=[].concat(u),o=[].concat(o),!o.length)return u;if(!u.length)return c?n.flatten(o).map(l=>`{${l}}`):o;for(let l of u)if(Array.isArray(l))for(let f of l)p.push(a(f,o,c));else for(let f of o)c===!0&&typeof f=="string"&&(f=`{${f}}`),p.push(Array.isArray(f)?a(l,f,c):l+f);return n.flatten(p)},s=(u,o={})=>{let c=o.rangeLimit===void 0?1e3:o.rangeLimit,p=(l,f={})=>{l.queue=[];let h=f,m=f.queue;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,m=h.queue;if(l.invalid||l.dollar){m.push(a(m.pop(),i(l,o)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){m.push(a(m.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let d=n.reduce(l.nodes);if(n.exceedsLimit(...d,o.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let y=r(...d,o);y.length===0&&(y=i(l,o)),m.push(a(m.pop(),y)),l.nodes=[];return}let E=n.encloseBrace(l),g=l.queue,A=l;for(;A.type!=="brace"&&A.type!=="root"&&A.parent;)A=A.parent,g=A.queue;for(let d=0;d<l.nodes.length;d++){let y=l.nodes[d];if(y.type==="comma"&&l.type==="brace"){d===1&&g.push(""),g.push("");continue}if(y.type==="close"){m.push(a(m.pop(),g,E));continue}if(y.value&&y.type!=="open"){g.push(a(g.pop(),y.value));continue}y.nodes&&p(y,l)}return g};return n.flatten(p(u))};e.exports=s}),Nu=R((t,e)=>{"use strict";k(),e.exports={MAX_LENGTH:1024*64,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:`
|
21
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",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:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),ju=R((t,e)=>{"use strict";k();var r=lr(),{MAX_LENGTH:i,CHAR_BACKSLASH:n,CHAR_BACKTICK:a,CHAR_COMMA:s,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:E,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:A}=Nu(),d=(y,v={})=>{if(typeof y!="string")throw new TypeError("Expected a string");let D=v||{},C=typeof D.maxLength=="number"?Math.min(i,D.maxLength):i;if(y.length>C)throw new SyntaxError(`Input length (${y.length}), exceeds max characters (${C})`);let b={type:"root",input:y,nodes:[]},w=[b],F=b,B=b,x=0,T=y.length,I=0,_=0,S,M={},P=()=>y[I++],$=j=>{if(j.type==="text"&&B.type==="dot"&&(B.type="text"),B&&B.type==="text"&&j.type==="text"){B.value+=j.value;return}return F.nodes.push(j),j.parent=F,j.prev=B,B=j,j};for($({type:"bos"});I<T;)if(F=w[w.length-1],S=P(),!(S===A||S===g)){if(S===n){$({type:"text",value:(v.keepEscaping?S:"")+P()});continue}if(S===h){$({type:"text",value:"\\"+S});continue}if(S===f){x++;let j=!0,q;for(;I<T&&(q=P());){if(S+=q,q===f){x++;continue}if(q===n){S+=P();continue}if(q===h&&(x--,x===0))break}$({type:"text",value:S});continue}if(S===o){F=$({type:"paren",nodes:[]}),w.push(F),$({type:"text",value:S});continue}if(S===c){if(F.type!=="paren"){$({type:"text",value:S});continue}F=w.pop(),$({type:"text",value:S}),F=w[w.length-1];continue}if(S===m||S===E||S===a){let j=S,q;for(v.keepQuotes!==!0&&(S="");I<T&&(q=P());){if(q===n){S+=q+P();continue}if(q===j){v.keepQuotes===!0&&(S+=q);break}S+=q}$({type:"text",value:S});continue}if(S===p){_++;let j=B.value&&B.value.slice(-1)==="$"||F.dollar===!0;F=$({type:"brace",open:!0,close:!1,dollar:j,depth:_,commas:0,ranges:0,nodes:[]}),w.push(F),$({type:"open",value:S});continue}if(S===l){if(F.type!=="brace"){$({type:"text",value:S});continue}let j="close";F=w.pop(),F.close=!0,$({type:j,value:S}),_--,F=w[w.length-1];continue}if(S===s&&_>0){if(F.ranges>0){F.ranges=0;let j=F.nodes.shift();F.nodes=[j,{type:"text",value:r(F)}]}$({type:"comma",value:S}),F.commas++;continue}if(S===u&&_>0&&F.commas===0){let j=F.nodes;if(_===0||j.length===0){$({type:"text",value:S});continue}if(B.type==="dot"){if(F.range=[],B.value+=S,B.type="range",F.nodes.length!==3&&F.nodes.length!==5){F.invalid=!0,F.ranges=0,B.type="text";continue}F.ranges++,F.args=[];continue}if(B.type==="range"){j.pop();let q=j[j.length-1];q.value+=B.value+S,B=q,F.ranges--;continue}$({type:"dot",value:S});continue}$({type:"text",value:S})}do if(F=w.pop(),F.type!=="root"){F.nodes.forEach(Q=>{Q.nodes||(Q.type==="open"&&(Q.isOpen=!0),Q.type==="close"&&(Q.isClose=!0),Q.nodes||(Q.type="text"),Q.invalid=!0)});let j=w[w.length-1],q=j.nodes.indexOf(F);j.nodes.splice(q,1,...F.nodes)}while(w.length>0);return $({type:"eos"}),b};e.exports=d}),Mu=R((t,e)=>{"use strict";k();var r=lr(),i=Iu(),n=Lu(),a=ju(),s=(u,o={})=>{let c=[];if(Array.isArray(u))for(let p of u){let l=s.create(p,o);Array.isArray(l)?c.push(...l):c.push(l)}else c=[].concat(s.create(u,o));return o&&o.expand===!0&&o.nodupes===!0&&(c=[...new Set(c)]),c};s.parse=(u,o={})=>a(u,o),s.stringify=(u,o={})=>r(typeof u=="string"?s.parse(u,o):u,o),s.compile=(u,o={})=>(typeof u=="string"&&(u=s.parse(u,o)),i(u,o)),s.expand=(u,o={})=>{typeof u=="string"&&(u=s.parse(u,o));let c=n(u,o);return o.noempty===!0&&(c=c.filter(Boolean)),o.nodupes===!0&&(c=[...new Set(c)]),c},s.create=(u,o={})=>u===""||u.length<3?[u]:o.expand!==!0?s.compile(u,o):s.expand(u,o),e.exports=s}),ke=R((t,e)=>{"use strict";k();var r=W("path"),i="\\\\/",n=`[^${i}]`,a="\\.",s="\\+",u="\\?",o="\\/",c="(?=.)",p="[^/]",l=`(?:${o}|$)`,f=`(?:^|${o})`,h=`${a}{1,2}${l}`,m=`(?!${a})`,E=`(?!${f}${h})`,g=`(?!${a}{0,1}${l})`,A=`(?!${h})`,d=`[^.${o}]`,y=`${p}*?`,v={DOT_LITERAL:a,PLUS_LITERAL:s,QMARK_LITERAL:u,SLASH_LITERAL:o,ONE_CHAR:c,QMARK:p,END_ANCHOR:l,DOTS_SLASH:h,NO_DOT:m,NO_DOTS:E,NO_DOT_SLASH:g,NO_DOTS_SLASH:A,QMARK_NO_DOT:d,STAR:y,START_ANCHOR:f},D={...v,SLASH_LITERAL:`[${i}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${a}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${i}])${a}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},C={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"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:C,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:{"***":"*","**/**":"**","**/**/**":"**"},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:r.sep,extglobChars(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===!0?D:v}}}),Oe=R(t=>{"use strict";k();var e=W("path"),r=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:s}=ke();t.isObject=u=>u!==null&&typeof u=="object"&&!Array.isArray(u),t.hasRegexChars=u=>a.test(u),t.isRegexChar=u=>u.length===1&&t.hasRegexChars(u),t.escapeRegex=u=>u.replace(s,"\\$1"),t.toPosixSlashes=u=>u.replace(i,"/"),t.removeBackslashes=u=>u.replace(n,o=>o==="\\"?"":o),t.supportsLookbehinds=()=>{let u=process.version.slice(1).split(".").map(Number);return u.length===3&&u[0]>=9||u[0]===8&&u[1]>=10},t.isWindows=u=>u&&typeof u.windows=="boolean"?u.windows:r===!0||e.sep==="\\",t.escapeLast=(u,o,c)=>{let p=u.lastIndexOf(o,c);return p===-1?u:u[p-1]==="\\"?t.escapeLast(u,o,p-1):`${u.slice(0,p)}\\${u.slice(p)}`},t.removePrefix=(u,o={})=>{let c=u;return c.startsWith("./")&&(c=c.slice(2),o.prefix="./"),c},t.wrapOutput=(u,o={},c={})=>{let p=c.contains?"":"^",l=c.contains?"":"$",f=`${p}(?:${u})${l}`;return o.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}}),$u=R((t,e)=>{"use strict";k();var r=Oe(),{CHAR_ASTERISK:i,CHAR_AT:n,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:s,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:A}=ke(),d=D=>D===c||D===a,y=D=>{D.isPrefix!==!0&&(D.depth=D.isGlobstar?1/0:1)},v=(D,C)=>{let b=C||{},w=D.length-1,F=b.parts===!0||b.scanToEnd===!0,B=[],x=[],T=[],I=D,_=-1,S=0,M=0,P=!1,$=!1,j=!1,q=!1,Q=!1,tt=!1,N=!1,st=!1,ct=!1,pt=!1,O=0,L,U,K={value:"",depth:0,isGlob:!1},at=()=>_>=w,ut=()=>I.charCodeAt(_+1),J=()=>(L=U,I.charCodeAt(++_));for(;_<w;){U=J();let X;if(U===a){N=K.backslashes=!0,U=J(),U===p&&(tt=!0);continue}if(tt===!0||U===p){for(O++;at()!==!0&&(U=J());){if(U===a){N=K.backslashes=!0,J();continue}if(U===p){O++;continue}if(tt!==!0&&U===u&&(U=J())===u){if(P=K.isBrace=!0,j=K.isGlob=!0,pt=!0,F===!0)continue;break}if(tt!==!0&&U===s){if(P=K.isBrace=!0,j=K.isGlob=!0,pt=!0,F===!0)continue;break}if(U===E&&(O--,O===0)){tt=!1,P=K.isBrace=!0,pt=!0;break}}if(F===!0)continue;break}if(U===c){if(B.push(_),x.push(K),K={value:"",depth:0,isGlob:!1},pt===!0)continue;if(L===u&&_===S+1){S+=2;continue}M=_+1;continue}if(b.noext!==!0&&(U===h||U===n||U===i||U===m||U===o)&&ut()===l){if(j=K.isGlob=!0,q=K.isExtglob=!0,pt=!0,U===o&&_===S&&(ct=!0),F===!0){for(;at()!==!0&&(U=J());){if(U===a){N=K.backslashes=!0,U=J();continue}if(U===g){j=K.isGlob=!0,pt=!0;break}}continue}break}if(U===i){if(L===i&&(Q=K.isGlobstar=!0),j=K.isGlob=!0,pt=!0,F===!0)continue;break}if(U===m){if(j=K.isGlob=!0,pt=!0,F===!0)continue;break}if(U===f){for(;at()!==!0&&(X=J());){if(X===a){N=K.backslashes=!0,J();continue}if(X===A){$=K.isBracket=!0,j=K.isGlob=!0,pt=!0;break}}if(F===!0)continue;break}if(b.nonegate!==!0&&U===o&&_===S){st=K.negated=!0,S++;continue}if(b.noparen!==!0&&U===l){if(j=K.isGlob=!0,F===!0){for(;at()!==!0&&(U=J());){if(U===l){N=K.backslashes=!0,U=J();continue}if(U===g){pt=!0;break}}continue}break}if(j===!0){if(pt=!0,F===!0)continue;break}}b.noext===!0&&(q=!1,j=!1);let Z=I,ot="",ft="";S>0&&(ot=I.slice(0,S),I=I.slice(S),M-=S),Z&&j===!0&&M>0?(Z=I.slice(0,M),ft=I.slice(M)):j===!0?(Z="",ft=I):Z=I,Z&&Z!==""&&Z!=="/"&&Z!==I&&d(Z.charCodeAt(Z.length-1))&&(Z=Z.slice(0,-1)),b.unescape===!0&&(ft&&(ft=r.removeBackslashes(ft)),Z&&N===!0&&(Z=r.removeBackslashes(Z)));let et={prefix:ot,input:D,start:S,base:Z,glob:ft,isBrace:P,isBracket:$,isGlob:j,isExtglob:q,isGlobstar:Q,negated:st,negatedExtglob:ct};if(b.tokens===!0&&(et.maxDepth=0,d(U)||x.push(K),et.tokens=x),b.parts===!0||b.tokens===!0){let X;for(let vt=0;vt<B.length;vt++){let Le=X?X+1:S,V=B[vt],lt=D.slice(Le,V);b.tokens&&(vt===0&&S!==0?(x[vt].isPrefix=!0,x[vt].value=ot):x[vt].value=lt,y(x[vt]),et.maxDepth+=x[vt].depth),(vt!==0||lt!=="")&&T.push(lt),X=V}if(X&&X+1<D.length){let vt=D.slice(X+1);T.push(vt),b.tokens&&(x[x.length-1].value=vt,y(x[x.length-1]),et.maxDepth+=x[x.length-1].depth)}et.slashes=B,et.parts=T}return et};e.exports=v}),Hu=R((t,e)=>{"use strict";k();var r=ke(),i=Oe(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:o}=r,c=(f,h)=>{if(typeof h.expandRange=="function")return h.expandRange(...f,h);f.sort();let m=`[${f.join("-")}]`;try{new RegExp(m)}catch{return f.map(E=>i.escapeRegex(E)).join("..")}return m},p=(f,h)=>`Missing ${f}: "${h}" - use "\\\\${h}" to match literal characters`,l=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=o[f]||f;let m={...h},E=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,g=f.length;if(g>E)throw new SyntaxError(`Input length: ${g}, exceeds maximum allowed length: ${E}`);let A={type:"bos",value:"",output:m.prepend||""},d=[A],y=m.capture?"":"?:",v=i.isWindows(h),D=r.globChars(v),C=r.extglobChars(D),{DOT_LITERAL:b,PLUS_LITERAL:w,SLASH_LITERAL:F,ONE_CHAR:B,DOTS_SLASH:x,NO_DOT:T,NO_DOT_SLASH:I,NO_DOTS_SLASH:_,QMARK:S,QMARK_NO_DOT:M,STAR:P,START_ANCHOR:$}=D,j=V=>`(${y}(?:(?!${$}${V.dot?x:b}).)*?)`,q=m.dot?"":T,Q=m.dot?S:M,tt=m.bash===!0?j(m):P;m.capture&&(tt=`(${tt})`),typeof m.noext=="boolean"&&(m.noextglob=m.noext);let N={input:f,index:-1,start:0,dot:m.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:d};f=i.removePrefix(f,N),g=f.length;let st=[],ct=[],pt=[],O=A,L,U=()=>N.index===g-1,K=N.peek=(V=1)=>f[N.index+V],at=N.advance=()=>f[++N.index]||"",ut=()=>f.slice(N.index+1),J=(V="",lt=0)=>{N.consumed+=V,N.index+=lt},Z=V=>{N.output+=V.output!=null?V.output:V.value,J(V.value)},ot=()=>{let V=1;for(;K()==="!"&&(K(2)!=="("||K(3)==="?");)at(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},ft=V=>{N[V]++,pt.push(V)},et=V=>{N[V]--,pt.pop()},X=V=>{if(O.type==="globstar"){let lt=N.braces>0&&(V.type==="comma"||V.type==="brace"),G=V.extglob===!0||st.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!lt&&!G&&(N.output=N.output.slice(0,-O.output.length),O.type="star",O.value="*",O.output=tt,N.output+=O.output)}if(st.length&&V.type!=="paren"&&(st[st.length-1].inner+=V.value),(V.value||V.output)&&Z(V),O&&O.type==="text"&&V.type==="text"){O.value+=V.value,O.output=(O.output||"")+V.value;return}V.prev=O,d.push(V),O=V},vt=(V,lt)=>{let G={...C[lt],conditions:1,inner:""};G.prev=O,G.parens=N.parens,G.output=N.output;let nt=(m.capture?"(":"")+G.open;ft("parens"),X({type:V,value:lt,output:N.output?"":B}),X({type:"paren",extglob:!0,value:at(),output:nt}),st.push(G)},Le=V=>{let lt=V.close+(m.capture?")":""),G;if(V.type==="negate"){let nt=tt;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(nt=j(m)),(nt!==tt||U()||/^\)+$/.test(ut()))&&(lt=V.close=`)$))${nt}`),V.inner.includes("*")&&(G=ut())&&/^\.[^\\/.]+$/.test(G)){let Dt=l(G,{...h,fastpaths:!1}).output;lt=V.close=`)${Dt})${nt})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:L,output:lt}),et("parens")};if(m.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let V=!1,lt=f.replace(u,(G,nt,Dt,Ft,gt,Ne)=>Ft==="\\"?(V=!0,G):Ft==="?"?nt?nt+Ft+(gt?S.repeat(gt.length):""):Ne===0?Q+(gt?S.repeat(gt.length):""):S.repeat(Dt.length):Ft==="."?b.repeat(Dt.length):Ft==="*"?nt?nt+Ft+(gt?tt:""):tt:nt?G:`\\${G}`);return V===!0&&(m.unescape===!0?lt=lt.replace(/\\/g,""):lt=lt.replace(/\\+/g,G=>G.length%2===0?"\\\\":G?"\\":"")),lt===f&&m.contains===!0?(N.output=f,N):(N.output=i.wrapOutput(lt,N,h),N)}for(;!U();){if(L=at(),L==="\0")continue;if(L==="\\"){let G=K();if(G==="/"&&m.bash!==!0||G==="."||G===";")continue;if(!G){L+="\\",X({type:"text",value:L});continue}let nt=/^\\+/.exec(ut()),Dt=0;if(nt&&nt[0].length>2&&(Dt=nt[0].length,N.index+=Dt,Dt%2!==0&&(L+="\\")),m.unescape===!0?L=at():L+=at(),N.brackets===0){X({type:"text",value:L});continue}}if(N.brackets>0&&(L!=="]"||O.value==="["||O.value==="[^")){if(m.posix!==!1&&L===":"){let G=O.value.slice(1);if(G.includes("[")&&(O.posix=!0,G.includes(":"))){let nt=O.value.lastIndexOf("["),Dt=O.value.slice(0,nt),Ft=O.value.slice(nt+2),gt=a[Ft];if(gt){O.value=Dt+gt,N.backtrack=!0,at(),!A.output&&d.indexOf(O)===1&&(A.output=B);continue}}}(L==="["&&K()!==":"||L==="-"&&K()==="]")&&(L=`\\${L}`),L==="]"&&(O.value==="["||O.value==="[^")&&(L=`\\${L}`),m.posix===!0&&L==="!"&&O.value==="["&&(L="^"),O.value+=L,Z({value:L});continue}if(N.quotes===1&&L!=='"'){L=i.escapeRegex(L),O.value+=L,Z({value:L});continue}if(L==='"'){N.quotes=N.quotes===1?0:1,m.keepQuotes===!0&&X({type:"text",value:L});continue}if(L==="("){ft("parens"),X({type:"paren",value:L});continue}if(L===")"){if(N.parens===0&&m.strictBrackets===!0)throw new SyntaxError(p("opening","("));let G=st[st.length-1];if(G&&N.parens===G.parens+1){Le(st.pop());continue}X({type:"paren",value:L,output:N.parens?")":"\\)"}),et("parens");continue}if(L==="["){if(m.nobracket===!0||!ut().includes("]")){if(m.nobracket!==!0&&m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));L=`\\${L}`}else ft("brackets");X({type:"bracket",value:L});continue}if(L==="]"){if(m.nobracket===!0||O&&O.type==="bracket"&&O.value.length===1){X({type:"text",value:L,output:`\\${L}`});continue}if(N.brackets===0){if(m.strictBrackets===!0)throw new SyntaxError(p("opening","["));X({type:"text",value:L,output:`\\${L}`});continue}et("brackets");let G=O.value.slice(1);if(O.posix!==!0&&G[0]==="^"&&!G.includes("/")&&(L=`/${L}`),O.value+=L,Z({value:L}),m.literalBrackets===!1||i.hasRegexChars(G))continue;let nt=i.escapeRegex(O.value);if(N.output=N.output.slice(0,-O.value.length),m.literalBrackets===!0){N.output+=nt,O.value=nt;continue}O.value=`(${y}${nt}|${O.value})`,N.output+=O.value;continue}if(L==="{"&&m.nobrace!==!0){ft("braces");let G={type:"brace",value:L,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};ct.push(G),X(G);continue}if(L==="}"){let G=ct[ct.length-1];if(m.nobrace===!0||!G){X({type:"text",value:L,output:L});continue}let nt=")";if(G.dots===!0){let Dt=d.slice(),Ft=[];for(let gt=Dt.length-1;gt>=0&&(d.pop(),Dt[gt].type!=="brace");gt--)Dt[gt].type!=="dots"&&Ft.unshift(Dt[gt].value);nt=c(Ft,m),N.backtrack=!0}if(G.comma!==!0&&G.dots!==!0){let Dt=N.output.slice(0,G.outputIndex),Ft=N.tokens.slice(G.tokensIndex);G.value=G.output="\\{",L=nt="\\}",N.output=Dt;for(let gt of Ft)N.output+=gt.output||gt.value}X({type:"brace",value:L,output:nt}),et("braces"),ct.pop();continue}if(L==="|"){st.length>0&&st[st.length-1].conditions++,X({type:"text",value:L});continue}if(L===","){let G=L,nt=ct[ct.length-1];nt&&pt[pt.length-1]==="braces"&&(nt.comma=!0,G="|"),X({type:"comma",value:L,output:G});continue}if(L==="/"){if(O.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",d.pop(),O=A;continue}X({type:"slash",value:L,output:F});continue}if(L==="."){if(N.braces>0&&O.type==="dot"){O.value==="."&&(O.output=b);let G=ct[ct.length-1];O.type="dots",O.output+=L,O.value+=L,G.dots=!0;continue}if(N.braces+N.parens===0&&O.type!=="bos"&&O.type!=="slash"){X({type:"text",value:L,output:b});continue}X({type:"dot",value:L,output:b});continue}if(L==="?"){if(!(O&&O.value==="(")&&m.noextglob!==!0&&K()==="("&&K(2)!=="?"){vt("qmark",L);continue}if(O&&O.type==="paren"){let G=K(),nt=L;if(G==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(O.value==="("&&!/[!=<:]/.test(G)||G==="<"&&!/<([!=]|\w+>)/.test(ut()))&&(nt=`\\${L}`),X({type:"text",value:L,output:nt});continue}if(m.dot!==!0&&(O.type==="slash"||O.type==="bos")){X({type:"qmark",value:L,output:M});continue}X({type:"qmark",value:L,output:S});continue}if(L==="!"){if(m.noextglob!==!0&&K()==="("&&(K(2)!=="?"||!/[!=<:]/.test(K(3)))){vt("negate",L);continue}if(m.nonegate!==!0&&N.index===0){ot();continue}}if(L==="+"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){vt("plus",L);continue}if(O&&O.value==="("||m.regex===!1){X({type:"plus",value:L,output:w});continue}if(O&&(O.type==="bracket"||O.type==="paren"||O.type==="brace")||N.parens>0){X({type:"plus",value:L});continue}X({type:"plus",value:w});continue}if(L==="@"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){X({type:"at",extglob:!0,value:L,output:""});continue}X({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);let G=s.exec(ut());G&&(L+=G[0],N.index+=G[0].length),X({type:"text",value:L});continue}if(O&&(O.type==="globstar"||O.star===!0)){O.type="star",O.star=!0,O.value+=L,O.output=tt,N.backtrack=!0,N.globstar=!0,J(L);continue}let V=ut();if(m.noextglob!==!0&&/^\([^?]/.test(V)){vt("star",L);continue}if(O.type==="star"){if(m.noglobstar===!0){J(L);continue}let G=O.prev,nt=G.prev,Dt=G.type==="slash"||G.type==="bos",Ft=nt&&(nt.type==="star"||nt.type==="globstar");if(m.bash===!0&&(!Dt||V[0]&&V[0]!=="/")){X({type:"star",value:L,output:""});continue}let gt=N.braces>0&&(G.type==="comma"||G.type==="brace"),Ne=st.length&&(G.type==="pipe"||G.type==="paren");if(!Dt&&G.type!=="paren"&&!gt&&!Ne){X({type:"star",value:L,output:""});continue}for(;V.slice(0,3)==="/**";){let De=f[N.index+4];if(De&&De!=="/")break;V=V.slice(3),J("/**",3)}if(G.type==="bos"&&U()){O.type="globstar",O.value+=L,O.output=j(m),N.output=O.output,N.globstar=!0,J(L);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&!Ft&&U()){N.output=N.output.slice(0,-(G.output+O.output).length),G.output=`(?:${G.output}`,O.type="globstar",O.output=j(m)+(m.strictSlashes?")":"|$)"),O.value+=L,N.globstar=!0,N.output+=G.output+O.output,J(L);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&V[0]==="/"){let De=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(G.output+O.output).length),G.output=`(?:${G.output}`,O.type="globstar",O.output=`${j(m)}${F}|${F}${De})`,O.value+=L,N.output+=G.output+O.output,N.globstar=!0,J(L+at()),X({type:"slash",value:"/",output:""});continue}if(G.type==="bos"&&V[0]==="/"){O.type="globstar",O.value+=L,O.output=`(?:^|${F}|${j(m)}${F})`,N.output=O.output,N.globstar=!0,J(L+at()),X({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-O.output.length),O.type="globstar",O.output=j(m),O.value+=L,N.output+=O.output,N.globstar=!0,J(L);continue}let lt={type:"star",value:L,output:tt};if(m.bash===!0){lt.output=".*?",(O.type==="bos"||O.type==="slash")&&(lt.output=q+lt.output),X(lt);continue}if(O&&(O.type==="bracket"||O.type==="paren")&&m.regex===!0){lt.output=L,X(lt);continue}(N.index===N.start||O.type==="slash"||O.type==="dot")&&(O.type==="dot"?(N.output+=I,O.output+=I):m.dot===!0?(N.output+=_,O.output+=_):(N.output+=q,O.output+=q),K()!=="*"&&(N.output+=B,O.output+=B)),X(lt)}for(;N.brackets>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));N.output=i.escapeLast(N.output,"["),et("brackets")}for(;N.parens>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing",")"));N.output=i.escapeLast(N.output,"("),et("parens")}for(;N.braces>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","}"));N.output=i.escapeLast(N.output,"{"),et("braces")}if(m.strictSlashes!==!0&&(O.type==="star"||O.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${F}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};l.fastpaths=(f,h)=>{let m={...h},E=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,g=f.length;if(g>E)throw new SyntaxError(`Input length: ${g}, exceeds maximum allowed length: ${E}`);f=o[f]||f;let A=i.isWindows(h),{DOT_LITERAL:d,SLASH_LITERAL:y,ONE_CHAR:v,DOTS_SLASH:D,NO_DOT:C,NO_DOTS:b,NO_DOTS_SLASH:w,STAR:F,START_ANCHOR:B}=r.globChars(A),x=m.dot?b:C,T=m.dot?w:C,I=m.capture?"":"?:",_={negated:!1,prefix:""},S=m.bash===!0?".*?":F;m.capture&&(S=`(${S})`);let M=q=>q.noglobstar===!0?S:`(${I}(?:(?!${B}${q.dot?D:d}).)*?)`,P=q=>{switch(q){case"*":return`${x}${v}${S}`;case".*":return`${d}${v}${S}`;case"*.*":return`${x}${S}${d}${v}${S}`;case"*/*":return`${x}${S}${y}${v}${T}${S}`;case"**":return x+M(m);case"**/*":return`(?:${x}${M(m)}${y})?${T}${v}${S}`;case"**/*.*":return`(?:${x}${M(m)}${y})?${T}${S}${d}${v}${S}`;case"**/.*":return`(?:${x}${M(m)}${y})?${d}${v}${S}`;default:{let Q=/^(.*?)\.(\w+)$/.exec(q);if(!Q)return;let tt=P(Q[1]);return tt?tt+d+Q[2]:void 0}}},$=i.removePrefix(f,_),j=P($);return j&&m.strictSlashes!==!0&&(j+=`${y}?`),j},e.exports=l}),Gu=R((t,e)=>{"use strict";k();var r=W("path"),i=$u(),n=Hu(),a=Oe(),s=ke(),u=c=>c&&typeof c=="object"&&!Array.isArray(c),o=(c,p,l=!1)=>{if(Array.isArray(c)){let y=c.map(v=>o(v,p,l));return v=>{for(let D of y){let C=D(v);if(C)return C}return!1}}let f=u(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");let h=p||{},m=a.isWindows(p),E=f?o.compileRe(c,p):o.makeRe(c,p,!1,!0),g=E.state;delete E.state;let A=()=>!1;if(h.ignore){let y={...p,ignore:null,onMatch:null,onResult:null};A=o(h.ignore,y,l)}let d=(y,v=!1)=>{let{isMatch:D,match:C,output:b}=o.test(y,E,p,{glob:c,posix:m}),w={glob:c,state:g,regex:E,posix:m,input:y,output:b,match:C,isMatch:D};return typeof h.onResult=="function"&&h.onResult(w),D===!1?(w.isMatch=!1,v?w:!1):A(y)?(typeof h.onIgnore=="function"&&h.onIgnore(w),w.isMatch=!1,v?w:!1):(typeof h.onMatch=="function"&&h.onMatch(w),v?w:!0)};return l&&(d.state=g),d};o.test=(c,p,l,{glob:f,posix:h}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let m=l||{},E=m.format||(h?a.toPosixSlashes:null),g=c===f,A=g&&E?E(c):c;return g===!1&&(A=E?E(c):c,g=A===f),(g===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?g=o.matchBase(c,p,l,h):g=p.exec(A)),{isMatch:Boolean(g),match:g,output:A}},o.matchBase=(c,p,l,f=a.isWindows(l))=>(p instanceof RegExp?p:o.makeRe(p,l)).test(r.basename(c)),o.isMatch=(c,p,l)=>o(p,l)(c),o.parse=(c,p)=>Array.isArray(c)?c.map(l=>o.parse(l,p)):n(c,{...p,fastpaths:!1}),o.scan=(c,p)=>i(c,p),o.compileRe=(c,p,l=!1,f=!1)=>{if(l===!0)return c.output;let h=p||{},m=h.contains?"":"^",E=h.contains?"":"$",g=`${m}(?:${c.output})${E}`;c&&c.negated===!0&&(g=`^(?!${g}).*$`);let A=o.toRegex(g,p);return f===!0&&(A.state=c),A},o.makeRe=(c,p={},l=!1,f=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(h.output=n.fastpaths(c,p)),h.output||(h=n(c,p)),o.compileRe(h,p,l,f)},o.toRegex=(c,p)=>{try{let l=p||{};return new RegExp(c,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},o.constants=s,e.exports=o}),Uu=R((t,e)=>{"use strict";k(),e.exports=Gu()}),Wu=R((t,e)=>{"use strict";k();var r=W("util"),i=Mu(),n=Uu(),a=Oe(),s=o=>o===""||o==="./",u=(o,c,p)=>{c=[].concat(c),o=[].concat(o);let l=new Set,f=new Set,h=new Set,m=0,E=A=>{h.add(A.output),p&&p.onResult&&p.onResult(A)};for(let A=0;A<c.length;A++){let d=n(String(c[A]),{...p,onResult:E},!0),y=d.state.negated||d.state.negatedExtglob;y&&m++;for(let v of o){let D=d(v,!0);!(y?!D.isMatch:D.isMatch)||(y?l.add(D.output):(l.delete(D.output),f.add(D.output)))}}let g=(m===c.length?[...h]:[...f]).filter(A=>!l.has(A));if(p&&g.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?c.map(A=>A.replace(/\\/g,"")):c}return g};u.match=u,u.matcher=(o,c)=>n(o,c),u.isMatch=(o,c,p)=>n(c,p)(o),u.any=u.isMatch,u.not=(o,c,p={})=>{c=[].concat(c).map(String);let l=new Set,f=[],h=E=>{p.onResult&&p.onResult(E),f.push(E.output)},m=new Set(u(o,c,{...p,onResult:h}));for(let E of f)m.has(E)||l.add(E);return[...l]},u.contains=(o,c,p)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${r.inspect(o)}"`);if(Array.isArray(c))return c.some(l=>u.contains(o,l,p));if(typeof c=="string"){if(s(o)||s(c))return!1;if(o.includes(c)||o.startsWith("./")&&o.slice(2).includes(c))return!0}return u.isMatch(o,c,{...p,contains:!0})},u.matchKeys=(o,c,p)=>{if(!a.isObject(o))throw new TypeError("Expected the first argument to be an object");let l=u(Object.keys(o),c,p),f={};for(let h of l)f[h]=o[h];return f},u.some=(o,c,p)=>{let l=[].concat(o);for(let f of[].concat(c)){let h=n(String(f),p);if(l.some(m=>h(m)))return!0}return!1},u.every=(o,c,p)=>{let l=[].concat(o);for(let f of[].concat(c)){let h=n(String(f),p);if(!l.every(m=>h(m)))return!1}return!0},u.all=(o,c,p)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${r.inspect(o)}"`);return[].concat(c).every(l=>n(l,p)(o))},u.capture=(o,c,p)=>{let l=a.isWindows(p),f=n.makeRe(String(o),{...p,capture:!0}).exec(l?a.toPosixSlashes(c):c);if(f)return f.slice(1).map(h=>h===void 0?"":h)},u.makeRe=(...o)=>n.makeRe(...o),u.scan=(...o)=>n.scan(...o),u.parse=(o,c)=>{let p=[];for(let l of[].concat(o||[]))for(let f of i(String(l),c))p.push(n.parse(f,c));return p},u.braces=(o,c)=>{if(typeof o!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!/\{.*\}/.test(o)?[o]:i(o,c)},u.braceExpand=(o,c)=>{if(typeof o!="string")throw new TypeError("Expected a string");return u.braces(o,{...c,expand:!0})},e.exports=u}),Vu=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;var e=W("path"),r=Ru(),i=Wu(),n="**",a="\\",s=/[*?]|^!/,u=/\[[^[]*]/,o=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,p=/,|\.\./;function l(P,$={}){return!f(P,$)}t.isStaticPattern=l;function f(P,$={}){return P===""?!1:!!($.caseSensitiveMatch===!1||P.includes(a)||s.test(P)||u.test(P)||o.test(P)||$.extglob!==!1&&c.test(P)||$.braceExpansion!==!1&&h(P))}t.isDynamicPattern=f;function h(P){let $=P.indexOf("{");if($===-1)return!1;let j=P.indexOf("}",$+1);if(j===-1)return!1;let q=P.slice($,j);return p.test(q)}function m(P){return g(P)?P.slice(1):P}t.convertToPositivePattern=m;function E(P){return"!"+P}t.convertToNegativePattern=E;function g(P){return P.startsWith("!")&&P[1]!=="("}t.isNegativePattern=g;function A(P){return!g(P)}t.isPositivePattern=A;function d(P){return P.filter(g)}t.getNegativePatterns=d;function y(P){return P.filter(A)}t.getPositivePatterns=y;function v(P){return P.filter($=>!C($))}t.getPatternsInsideCurrentDirectory=v;function D(P){return P.filter(C)}t.getPatternsOutsideCurrentDirectory=D;function C(P){return P.startsWith("..")||P.startsWith("./..")}t.isPatternRelatedToParentDirectory=C;function b(P){return r(P,{flipBackslashes:!1})}t.getBaseDirectory=b;function w(P){return P.includes(n)}t.hasGlobStar=w;function F(P){return P.endsWith("/"+n)}t.endsWithSlashGlobStar=F;function B(P){let $=e.basename(P);return F(P)||l($)}t.isAffectDepthOfReadingPattern=B;function x(P){return P.reduce(($,j)=>$.concat(T(j)),[])}t.expandPatternsWithBraceExpansion=x;function T(P){return i.braces(P,{expand:!0,nodupes:!0})}t.expandBraceExpansion=T;function I(P,$){let{parts:j}=i.scan(P,Object.assign(Object.assign({},$),{parts:!0}));return j.length===0&&(j=[P]),j[0].startsWith("/")&&(j[0]=j[0].slice(1),j.unshift("")),j}t.getPatternParts=I;function _(P,$){return i.makeRe(P,$)}t.makeRe=_;function S(P,$){return P.map(j=>_(j,$))}t.convertPatternsToRe=S;function M(P,$){return $.some(j=>j.test(P))}t.matchAny=M}),qu=R((t,e)=>{"use strict";k();var r=W("stream"),i=r.PassThrough,n=Array.prototype.slice;e.exports=a;function a(){let u=[],o=n.call(arguments),c=!1,p=o[o.length-1];p&&!Array.isArray(p)&&p.pipe==null?o.pop():p={};let l=p.end!==!1,f=p.pipeError===!0;p.objectMode==null&&(p.objectMode=!0),p.highWaterMark==null&&(p.highWaterMark=64*1024);let h=i(p);function m(){for(let A=0,d=arguments.length;A<d;A++)u.push(s(arguments[A],p));return E(),this}function E(){if(c)return;c=!0;let A=u.shift();if(!A){process.nextTick(g);return}Array.isArray(A)||(A=[A]);let d=A.length+1;function y(){--d>0||(c=!1,E())}function v(D){function C(){D.removeListener("merge2UnpipeEnd",C),D.removeListener("end",C),f&&D.removeListener("error",b),y()}function b(w){h.emit("error",w)}if(D._readableState.endEmitted)return y();D.on("merge2UnpipeEnd",C),D.on("end",C),f&&D.on("error",b),D.pipe(h,{end:!1}),D.resume()}for(let D=0;D<A.length;D++)v(A[D]);y()}function g(){c=!1,h.emit("queueDrain"),l&&h.end()}return h.setMaxListeners(0),h.add=m,h.on("unpipe",function(A){A.emit("merge2UnpipeEnd")}),o.length&&m.apply(null,o),h}function s(u,o){if(Array.isArray(u))for(let c=0,p=u.length;c<p;c++)u[c]=s(u[c],o);else{if(!u._readableState&&u.pipe&&(u=u.pipe(i(o))),!u._readableState||!u.pause||!u.pipe)throw new Error("Only readable stream can be merged.");u.pause()}return u}}),Ku=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var e=qu();function r(n){let a=e(n);return n.forEach(s=>{s.once("error",u=>a.emit("error",u))}),a.once("close",()=>i(n)),a.once("end",()=>i(n)),a}t.merge=r;function i(n){n.forEach(a=>a.emit("close"))}}),Yu=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.isString=void 0;function e(i){return typeof i=="string"}t.isString=e;function r(i){return i===""}t.isEmpty=r}),Vt=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;var e=_u();t.array=e;var r=wu();t.errno=r;var i=xu();t.fs=i;var n=Bu();t.path=n;var a=Vu();t.pattern=a;var s=Ku();t.stream=s;var u=Yu();t.string=u}),Qu=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;var e=Vt();function r(c,p){let l=n(c),f=a(c,p.ignore),h=l.filter(A=>e.pattern.isStaticPattern(A,p)),m=l.filter(A=>e.pattern.isDynamicPattern(A,p)),E=i(h,f,!1),g=i(m,f,!0);return E.concat(g)}t.generate=r;function i(c,p,l){let f=[],h=e.pattern.getPatternsOutsideCurrentDirectory(c),m=e.pattern.getPatternsInsideCurrentDirectory(c),E=s(h),g=s(m);return f.push(...u(E,p,l)),"."in g?f.push(o(".",m,p,l)):f.push(...u(g,p,l)),f}t.convertPatternsToTasks=i;function n(c){return e.pattern.getPositivePatterns(c)}t.getPositivePatterns=n;function a(c,p){return e.pattern.getNegativePatterns(c).concat(p).map(e.pattern.convertToPositivePattern)}t.getNegativePatternsAsPositive=a;function s(c){let p={};return c.reduce((l,f)=>{let h=e.pattern.getBaseDirectory(f);return h in l?l[h].push(f):l[h]=[f],l},p)}t.groupPatternsByBaseDirectory=s;function u(c,p,l){return Object.keys(c).map(f=>o(f,c[f],p,l))}t.convertPatternGroupsToTasks=u;function o(c,p,l,f){return{dynamic:f,positive:p,negative:l,base:c,patterns:[].concat(p,l.map(e.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=o}),Xu=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeDuplicateSlashes=t.transform=void 0;var e=/(?!^)\/{2,}/g;function r(n){return n.map(a=>i(a))}t.transform=r;function i(n){return n.replace(e,"/")}t.removeDuplicateSlashes=i}),Ju=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(n,a,s){a.fs.lstat(n,(u,o)=>{if(u!==null){r(s,u);return}if(!o.isSymbolicLink()||!a.followSymbolicLink){i(s,o);return}a.fs.stat(n,(c,p)=>{if(c!==null){if(a.throwErrorOnBrokenSymbolicLink){r(s,c);return}i(s,o);return}a.markSymbolicLink&&(p.isSymbolicLink=()=>!0),i(s,p)})})}t.read=e;function r(n,a){n(a)}function i(n,a){n(null,a)}}),Zu=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(r,i){let n=i.fs.lstatSync(r);if(!n.isSymbolicLink()||!i.followSymbolicLink)return n;try{let a=i.fs.statSync(r);return i.markSymbolicLink&&(a.isSymbolicLink=()=>!0),a}catch(a){if(!i.throwErrorOnBrokenSymbolicLink)return n;throw a}}t.read=e}),zu=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=W("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync};function r(i){return i===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),i)}t.createFileSystemAdapter=r}),to=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=zu(),r=class{constructor(i={}){this._options=i,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(i,n){return i!=null?i:n}};t.default=r}),re=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.statSync=t.stat=t.Settings=void 0;var e=Ju(),r=Zu(),i=to();t.Settings=i.default;function n(u,o,c){if(typeof o=="function"){e.read(u,s(),o);return}e.read(u,s(o),c)}t.stat=n;function a(u,o){let c=s(o);return r.read(u,c)}t.statSync=a;function s(u={}){return u instanceof i.default?u:new i.default(u)}}),eo=R((t,e)=>{k();var r;e.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(r||(r=Promise.resolve())).then(i).catch(n=>setTimeout(()=>{throw n},0))}),ro=R((t,e)=>{k(),e.exports=i;var r=eo();function i(n,a){let s,u,o,c=!0;Array.isArray(n)?(s=[],u=n.length):(o=Object.keys(n),s={},u=o.length);function p(f){function h(){a&&a(f,s),a=null}c?r(h):h()}function l(f,h,m){s[f]=m,(--u===0||h)&&p(h)}u?o?o.forEach(function(f){n[f](function(h,m){l(f,h,m)})}):n.forEach(function(f,h){f(function(m,E){l(h,m,E)})}):p(null),c=!1}}),un=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var e=process.versions.node.split(".");if(e[0]===void 0||e[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(e[0],10),i=Number.parseInt(e[1],10),n=10,a=10,s=r>n,u=r===n&&i>=a;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=s||u}),no=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new e(i,n)}t.createDirentFromStats=r}),on=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.fs=void 0;var e=no();t.fs=e}),sn=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=void 0;function e(r,i,n){return r.endsWith(n)?r+i:r+n+i}t.joinPathSegments=e}),io=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=re(),r=ro(),i=un(),n=on(),a=sn();function s(f,h,m){if(!h.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){u(f,h,m);return}c(f,h,m)}t.read=s;function u(f,h,m){h.fs.readdir(f,{withFileTypes:!0},(E,g)=>{if(E!==null){p(m,E);return}let A=g.map(y=>({dirent:y,name:y.name,path:a.joinPathSegments(f,y.name,h.pathSegmentSeparator)}));if(!h.followSymbolicLinks){l(m,A);return}let d=A.map(y=>o(y,h));r(d,(y,v)=>{if(y!==null){p(m,y);return}l(m,v)})})}t.readdirWithFileTypes=u;function o(f,h){return m=>{if(!f.dirent.isSymbolicLink()){m(null,f);return}h.fs.stat(f.path,(E,g)=>{if(E!==null){if(h.throwErrorOnBrokenSymbolicLink){m(E);return}m(null,f);return}f.dirent=n.fs.createDirentFromStats(f.name,g),m(null,f)})}}function c(f,h,m){h.fs.readdir(f,(E,g)=>{if(E!==null){p(m,E);return}let A=g.map(d=>{let y=a.joinPathSegments(f,d,h.pathSegmentSeparator);return v=>{e.stat(y,h.fsStatSettings,(D,C)=>{if(D!==null){v(D);return}let b={name:d,path:y,dirent:n.fs.createDirentFromStats(d,C)};h.stats&&(b.stats=C),v(null,b)})}});r(A,(d,y)=>{if(d!==null){p(m,d);return}l(m,y)})})}t.readdir=c;function p(f,h){f(h)}function l(f,h){f(null,h)}}),uo=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=re(),r=un(),i=on(),n=sn();function a(o,c){return!c.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(o,c):u(o,c)}t.read=a;function s(o,c){return c.fs.readdirSync(o,{withFileTypes:!0}).map(p=>{let l={dirent:p,name:p.name,path:n.joinPathSegments(o,p.name,c.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let f=c.fs.statSync(l.path);l.dirent=i.fs.createDirentFromStats(l.name,f)}catch(f){if(c.throwErrorOnBrokenSymbolicLink)throw f}return l})}t.readdirWithFileTypes=s;function u(o,c){return c.fs.readdirSync(o).map(p=>{let l=n.joinPathSegments(o,p,c.pathSegmentSeparator),f=e.statSync(l,c.fsStatSettings),h={name:p,path:l,dirent:i.fs.createDirentFromStats(p,f)};return c.stats&&(h.stats=f),h})}t.readdir=u}),oo=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=W("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};function r(i){return i===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),i)}t.createFileSystemAdapter=r}),so=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=re(),i=oo(),n=class{constructor(a={}){this._options=a,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.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 r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(a,s){return a!=null?a:s}};t.default=n}),pr=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.scandirSync=t.scandir=void 0;var e=io(),r=uo(),i=so();t.Settings=i.default;function n(u,o,c){if(typeof o=="function"){e.read(u,s(),o);return}e.read(u,s(o),c)}t.scandir=n;function a(u,o){let c=s(o);return r.read(u,c)}t.scandirSync=a;function s(u={}){return u instanceof i.default?u:new i.default(u)}}),ao=R((t,e)=>{"use strict";k();function r(i){var n=new i,a=n;function s(){var o=n;return o.next?n=o.next:(n=new i,a=n),o.next=null,o}function u(o){a.next=o,a=o}return{get:s,release:u}}e.exports=r}),co=R((t,e)=>{"use strict";k();var r=ao();function i(u,o,c){if(typeof u=="function"&&(c=o,o=u,u=null),c<1)throw new Error("fastqueue concurrency must be greater than 1");var p=r(a),l=null,f=null,h=0,m=null,E={push:C,drain:n,saturated:n,pause:A,paused:!1,concurrency:c,running:g,resume:v,idle:D,length:d,getQueue:y,unshift:b,empty:n,kill:F,killAndDrain:B,error:x};return E;function g(){return h}function A(){E.paused=!0}function d(){for(var T=l,I=0;T;)T=T.next,I++;return I}function y(){for(var T=l,I=[];T;)I.push(T.value),T=T.next;return I}function v(){if(E.paused){E.paused=!1;for(var T=0;T<E.concurrency;T++)h++,w()}}function D(){return h===0&&E.length()===0}function C(T,I){var _=p.get();_.context=u,_.release=w,_.value=T,_.callback=I||n,_.errorHandler=m,h===E.concurrency||E.paused?f?(f.next=_,f=_):(l=_,f=_,E.saturated()):(h++,o.call(u,_.value,_.worked))}function b(T,I){var _=p.get();_.context=u,_.release=w,_.value=T,_.callback=I||n,h===E.concurrency||E.paused?l?(_.next=l,l=_):(l=_,f=_,E.saturated()):(h++,o.call(u,_.value,_.worked))}function w(T){T&&p.release(T);var I=l;I?E.paused?h--:(f===l&&(f=null),l=I.next,I.next=null,o.call(u,I.value,I.worked),f===null&&E.empty()):--h===0&&E.drain()}function F(){l=null,f=null,E.drain=n}function B(){l=null,f=null,E.drain(),E.drain=n}function x(T){m=T}}function n(){}function a(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var u=this;this.worked=function(o,c){var p=u.callback,l=u.errorHandler,f=u.value;u.value=null,u.callback=n,u.errorHandler&&l(o,f),p.call(u.context,o,c),u.release(u)}}function s(u,o,c){typeof u=="function"&&(c=o,o=u,u=null);function p(A,d){o.call(this,A).then(function(y){d(null,y)},d)}var l=i(u,p,c),f=l.push,h=l.unshift;return l.push=m,l.unshift=E,l.drained=g,l;function m(A){var d=new Promise(function(y,v){f(A,function(D,C){if(D){v(D);return}y(C)})});return d.catch(n),d}function E(A){var d=new Promise(function(y,v){h(A,function(D,C){if(D){v(D);return}y(C)})});return d.catch(n),d}function g(){var A=l.drain,d=new Promise(function(y){l.drain=function(){A(),y()}});return d}}e.exports=i,e.exports.promise=s}),fr=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function e(a,s){return a.errorFilter===null?!0:!a.errorFilter(s)}t.isFatalError=e;function r(a,s){return a===null||a(s)}t.isAppliedFilter=r;function i(a,s){return a.split(/[/\\]/).join(s)}t.replacePathSegmentSeparator=i;function n(a,s,u){return a===""?s:a.endsWith(u)?a+s:a+u+s}t.joinPathSegments=n}),an=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=fr(),r=class{constructor(i,n){this._root=i,this._settings=n,this._root=e.replacePathSegmentSeparator(i,n.pathSegmentSeparator)}};t.default=r}),cn=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("events"),r=pr(),i=co(),n=fr(),a=an(),s=class extends a.default{constructor(u,o){super(u,o),this._settings=o,this._scandir=r.scandir,this._emitter=new e.EventEmitter,this._queue=i(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(u){this._emitter.on("entry",u)}onError(u){this._emitter.once("error",u)}onEnd(u){this._emitter.once("end",u)}_pushToQueue(u,o){let c={directory:u,base:o};this._queue.push(c,p=>{p!==null&&this._handleError(p)})}_worker(u,o){this._scandir(u.directory,this._settings.fsScandirSettings,(c,p)=>{if(c!==null){o(c,void 0);return}for(let l of p)this._handleEntry(l,u.base);o(null,void 0)})}_handleError(u){this._isDestroyed||!n.isFatalError(this._settings,u)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",u))}_handleEntry(u,o){if(this._isDestroyed||this._isFatalError)return;let c=u.path;o!==void 0&&(u.path=n.joinPathSegments(o,u.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,u)&&this._emitEntry(u),u.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,u)&&this._pushToQueue(c,o===void 0?void 0:u.path)}_emitEntry(u){this._emitter.emit("entry",u)}};t.default=s}),lo=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=cn(),r=class{constructor(a,s){this._root=a,this._settings=s,this._reader=new e.default(this._root,this._settings),this._storage=[]}read(a){this._reader.onError(s=>{i(a,s)}),this._reader.onEntry(s=>{this._storage.push(s)}),this._reader.onEnd(()=>{n(a,this._storage)}),this._reader.read()}};t.default=r;function i(a,s){a(s)}function n(a,s){a(null,s)}}),po=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=cn(),i=class{constructor(n,a){this._root=n,this._settings=a,this._reader=new r.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(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};t.default=i}),fo=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=pr(),r=fr(),i=an(),n=class extends i.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(a,s){this._queue.add({directory:a,base:s})}_handleQueue(){for(let a of this._queue.values())this._handleDirectory(a.directory,a.base)}_handleDirectory(a,s){try{let u=this._scandir(a,this._settings.fsScandirSettings);for(let o of u)this._handleEntry(o,s)}catch(u){this._handleError(u)}}_handleError(a){if(r.isFatalError(this._settings,a))throw a}_handleEntry(a,s){let u=a.path;s!==void 0&&(a.path=r.joinPathSegments(s,a.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,a)&&this._pushToStorage(a),a.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(u,s===void 0?void 0:a.path)}_pushToStorage(a){this._storage.push(a)}};t.default=n}),ho=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=fo(),r=class{constructor(i,n){this._root=i,this._settings=n,this._reader=new e.default(this._root,this._settings)}read(){return this._reader.read()}};t.default=r}),mo=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=pr(),i=class{constructor(n={}){this._options=n,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 r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,a){return n!=null?n:a}};t.default=i}),dr=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.walkStream=t.walkSync=t.walk=void 0;var e=lo(),r=po(),i=ho(),n=mo();t.Settings=n.default;function a(c,p,l){if(typeof p=="function"){new e.default(c,o()).read(p);return}new e.default(c,o(p)).read(l)}t.walk=a;function s(c,p){let l=o(p);return new i.default(c,l).read()}t.walkSync=s;function u(c,p){let l=o(p);return new r.default(c,l).read()}t.walkStream=u;function o(c={}){return c instanceof n.default?c:new n.default(c)}}),hr=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=re(),i=Vt(),n=class{constructor(a){this._settings=a,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(a){return e.resolve(this._settings.cwd,a)}_makeEntry(a,s){let u={name:s,path:s,dirent:i.fs.createDirentFromStats(s,a)};return this._settings.stats&&(u.stats=a),u}_isFatalError(a){return!i.errno.isEnoentCodeError(a)&&!this._settings.suppressErrors}};t.default=n}),ln=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=re(),i=dr(),n=hr(),a=class extends n.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=r.stat}dynamic(s,u){return this._walkStream(s,u)}static(s,u){let o=s.map(this._getFullEntryPath,this),c=new e.PassThrough({objectMode:!0});c._write=(p,l,f)=>this._getEntry(o[p],s[p],u).then(h=>{h!==null&&u.entryFilter(h)&&c.push(h),p===o.length-1&&c.end(),f()}).catch(f);for(let p=0;p<o.length;p++)c.write(p);return c}_getEntry(s,u,o){return this._getStat(s).then(c=>this._makeEntry(c,u)).catch(c=>{if(o.errorFilter(c))return null;throw c})}_getStat(s){return new Promise((u,o)=>{this._stat(s,this._fsStatSettings,(c,p)=>c===null?u(p):o(c))})}};t.default=a}),Do=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=dr(),r=hr(),i=ln(),n=class extends r.default{constructor(){super(...arguments),this._walkAsync=e.walk,this._readerStream=new i.default(this._settings)}dynamic(a,s){return new Promise((u,o)=>{this._walkAsync(a,s,(c,p)=>{c===null?u(p):o(c)})})}async static(a,s){let u=[],o=this._readerStream.static(a,s);return new Promise((c,p)=>{o.once("error",p),o.on("data",l=>u.push(l)),o.once("end",()=>c(u))})}};t.default=n}),yo=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i,n,a){this._patterns=i,this._settings=n,this._micromatchOptions=a,this._storage=[],this._fillStorage()}_fillStorage(){let i=e.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let n of i){let a=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(a);this._storage.push({complete:s.length<=1,pattern:n,segments:a,sections:s})}}_getPatternSegments(i){return e.pattern.getPatternParts(i,this._micromatchOptions).map(n=>e.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:e.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(i){return e.array.splitWhen(i,n=>n.dynamic&&e.pattern.hasGlobStar(n.pattern))}};t.default=r}),go=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=yo(),r=class extends e.default{match(i){let n=i.split("/"),a=n.length,s=this._storage.filter(u=>!u.complete||u.segments.length>a);for(let u of s){let o=u.sections[0];if(!u.complete&&a>o.length||n.every((c,p)=>{let l=u.segments[p];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};t.default=r}),Eo=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=go(),i=class{constructor(n,a){this._settings=n,this._micromatchOptions=a}getFilter(n,a,s){let u=this._getMatcher(a),o=this._getNegativePatternsRe(s);return c=>this._filter(n,c,u,o)}_getMatcher(n){return new r.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let a=n.filter(e.pattern.isAffectDepthOfReadingPattern);return e.pattern.convertPatternsToRe(a,this._micromatchOptions)}_filter(n,a,s,u){if(this._isSkippedByDeep(n,a.path)||this._isSkippedSymbolicLink(a))return!1;let o=e.path.removeLeadingDotSegment(a.path);return this._isSkippedByPositivePatterns(o,s)?!1:this._isSkippedByNegativePatterns(o,u)}_isSkippedByDeep(n,a){return this._settings.deep===1/0?!1:this._getEntryLevel(n,a)>=this._settings.deep}_getEntryLevel(n,a){let s=a.split("/").length;if(n==="")return s;let u=n.split("/").length;return s-u}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,a){return!this._settings.baseNameMatch&&!a.match(n)}_isSkippedByNegativePatterns(n,a){return!e.pattern.matchAny(n,a)}};t.default=i}),Ao=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i,n){this._settings=i,this._micromatchOptions=n,this.index=new Map}getFilter(i,n){let a=e.pattern.convertPatternsToRe(i,this._micromatchOptions),s=e.pattern.convertPatternsToRe(n,this._micromatchOptions);return u=>this._filter(u,a,s)}_filter(i,n,a){if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i)||this._isSkippedByAbsoluteNegativePatterns(i.path,a))return!1;let s=this._settings.baseNameMatch?i.name:i.path,u=i.dirent.isDirectory(),o=this._isMatchToPatterns(s,n,u)&&!this._isMatchToPatterns(i.path,a,u);return this._settings.unique&&o&&this._createIndexRecord(i),o}_isDuplicateEntry(i){return this.index.has(i.path)}_createIndexRecord(i){this.index.set(i.path,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(i,n){if(!this._settings.absolute)return!1;let a=e.path.makeAbsolute(this._settings.cwd,i);return e.pattern.matchAny(a,n)}_isMatchToPatterns(i,n,a){let s=e.path.removeLeadingDotSegment(i),u=e.pattern.matchAny(s,n);return!u&&a?e.pattern.matchAny(s+"/",n):u}};t.default=r}),vo=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return e.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};t.default=r}),Co=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let n=i.path;return this._settings.absolute&&(n=e.path.makeAbsolute(this._settings.cwd,n),n=e.path.unixify(n)),this._settings.markDirectories&&i.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:n}):n}};t.default=r}),mr=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=Eo(),i=Ao(),n=vo(),a=Co(),s=class{constructor(u){this._settings=u,this.errorFilter=new n.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new a.default(this._settings)}_getRootDirectory(u){return e.resolve(this._settings.cwd,u.base)}_getReaderOptions(u){let o=u.base==="."?"":u.base;return{basePath:o,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(o,u.positive,u.negative),entryFilter:this.entryFilter.getFilter(u.positive,u.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}}};t.default=s}),bo=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=Do(),r=mr(),i=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}async read(n){let a=this._getRootDirectory(n),s=this._getReaderOptions(n);return(await this.api(a,n,s)).map(u=>s.transform(u))}api(n,a,s){return a.dynamic?this._reader.dynamic(n,s):this._reader.static(a.patterns,s)}};t.default=i}),So=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=ln(),i=mr(),n=class extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(a){let s=this._getRootDirectory(a),u=this._getReaderOptions(a),o=this.api(s,a,u),c=new e.Readable({objectMode:!0,read:()=>{}});return o.once("error",p=>c.emit("error",p)).on("data",p=>c.emit("data",u.transform(p))).once("end",()=>c.emit("end")),c.once("close",()=>o.destroy()),c}api(a,s,u){return s.dynamic?this._reader.dynamic(a,u):this._reader.static(s.patterns,u)}};t.default=n}),Fo=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=re(),r=dr(),i=hr(),n=class extends i.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=e.statSync}dynamic(a,s){return this._walkSync(a,s)}static(a,s){let u=[];for(let o of a){let c=this._getFullEntryPath(o),p=this._getEntry(c,o,s);p===null||!s.entryFilter(p)||u.push(p)}return u}_getEntry(a,s,u){try{let o=this._getStat(a);return this._makeEntry(o,s)}catch(o){if(u.errorFilter(o))return null;throw o}}_getStat(a){return this._statSync(a,this._fsStatSettings)}};t.default=n}),_o=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0});var e=Fo(),r=mr(),i=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(n){let a=this._getRootDirectory(n),s=this._getReaderOptions(n);return this.api(a,n,s).map(s.transform)}api(n,a,s){return a.dynamic?this._reader.dynamic(n,s):this._reader.static(a.patterns,s)}};t.default=i}),wo=R(t=>{"use strict";k(),Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var e=W("fs"),r=W("os"),i=Math.max(r.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:e.lstat,lstatSync:e.lstatSync,stat:e.stat,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};var n=class{constructor(a={}){this._options=a,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)}_getValue(a,s){return a===void 0?s:a}_getFileSystemMethods(a={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),a)}};t.default=n}),xo=R((t,e)=>{"use strict";k();var r=Qu(),i=Xu(),n=bo(),a=So(),s=_o(),u=wo(),o=Vt();async function c(f,h){l(f);let m=p(f,n.default,h),E=await Promise.all(m);return o.array.flatten(E)}(function(f){function h(d,y){l(d);let v=p(d,s.default,y);return o.array.flatten(v)}f.sync=h;function m(d,y){l(d);let v=p(d,a.default,y);return o.stream.merge(v)}f.stream=m;function E(d,y){l(d);let v=i.transform([].concat(d)),D=new u.default(y);return r.generate(v,D)}f.generateTasks=E;function g(d,y){l(d);let v=new u.default(y);return o.pattern.isDynamicPattern(d,v)}f.isDynamicPattern=g;function A(d){return l(d),o.path.escape(d)}f.escapePath=A})(c||(c={}));function p(f,h,m){let E=i.transform([].concat(f)),g=new u.default(m),A=r.generate(E,g),d=new h(g);return A.map(d.read,d)}function l(f){if(![].concat(f).every(h=>o.string.isString(h)&&!o.string.isEmpty(h)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}e.exports=c});k();k();function pn(t){return typeof t>"u"||t===null}function Bo(t){return typeof t=="object"&&t!==null}function ko(t){return Array.isArray(t)?t:pn(t)?[]:[t]}function Oo(t,e){var r,i,n,a;if(e)for(a=Object.keys(e),r=0,i=a.length;r<i;r+=1)n=a[r],t[n]=e[n];return t}function Ro(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function To(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Po=pn,Io=Bo,Lo=ko,No=Ro,jo=To,Mo=Oo,At={isNothing:Po,isObject:Io,toArray:Lo,repeat:No,isNegativeZero:jo,extend:Mo};function fn(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
20
|
+
`+E+"]"}return i.pop(),n=E,A}},Cu={parse:mu,stringify:vu},bu=Cu,Ze=bu;function Su(t){return!Ze.parse(t).extends}var Ge={};function Fu(t,e){var r;let i=(r=e==null?void 0:e.cache)!=null?r:!0,n=t||process.cwd();if(i&&Ge[n])return Ge[n];let a=Me({target:"turbo.json",cwd:n,contentCheck:Su});if(!a)try{if(a=pu(n),!a)return null}catch{return null}return i&&(Ge[n]=a),a}var ze=Fu;var ae=kt(require("fs"),1),Qt=kt(require("path"),1),_u=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.splitWhen=t.flatten=void 0;function e(i){return i.reduce((n,a)=>[].concat(n,a),[])}t.flatten=e;function r(i,n){let a=[[]],s=0;for(let u of i)n(u)?(s++,a[s]=[]):a[s].push(u);return a}t.splitWhen=r}),wu=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEnoentCodeError=void 0;function e(r){return r.code==="ENOENT"}t.isEnoentCodeError=e}),xu=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new e(i,n)}t.createDirentFromStats=r}),ku=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;var e=W("path"),r=2,i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function n(o){return o.replace(/\\/g,"/")}t.unixify=n;function a(o,c){return e.resolve(o,c)}t.makeAbsolute=a;function s(o){return o.replace(i,"\\$2")}t.escape=s;function u(o){if(o.charAt(0)==="."){let c=o.charAt(1);if(c==="/"||c==="\\")return o.slice(r)}return o}t.removeLeadingDotSegment=u}),Bu=R((t,e)=>{B(),e.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(i[2])return!0;r=r.slice(i.index+i[0].length)}return!1}}),Ou=R((t,e)=>{B();var r=Bu(),i={"{":"}","(":")","[":"]"},n=function(s){if(s[0]==="!")return!0;for(var u=0,o=-2,c=-2,p=-2,l=-2,f=-2;u<s.length;){if(s[u]==="*"||s[u+1]==="?"&&/[\].+)]/.test(s[u])||c!==-1&&s[u]==="["&&s[u+1]!=="]"&&(c<u&&(c=s.indexOf("]",u)),c>u&&(f===-1||f>c||(f=s.indexOf("\\",u),f===-1||f>c)))||p!==-1&&s[u]==="{"&&s[u+1]!=="}"&&(p=s.indexOf("}",u),p>u&&(f=s.indexOf("\\",u),f===-1||f>p))||l!==-1&&s[u]==="("&&s[u+1]==="?"&&/[:!=]/.test(s[u+2])&&s[u+3]!==")"&&(l=s.indexOf(")",u),l>u&&(f=s.indexOf("\\",u),f===-1||f>l))||o!==-1&&s[u]==="("&&s[u+1]!=="|"&&(o<u&&(o=s.indexOf("|",u)),o!==-1&&s[o+1]!==")"&&(l=s.indexOf(")",o),l>o&&(f=s.indexOf("\\",o),f===-1||f>l))))return!0;if(s[u]==="\\"){var h=s[u+1];u+=2;var m=i[h];if(m){var E=s.indexOf(m,u);E!==-1&&(u=E+1)}if(s[u]==="!")return!0}else u++}return!1},a=function(s){if(s[0]==="!")return!0;for(var u=0;u<s.length;){if(/[*?{}()[\]]/.test(s[u]))return!0;if(s[u]==="\\"){var o=s[u+1];u+=2;var c=i[o];if(c){var p=s.indexOf(c,u);p!==-1&&(u=p+1)}if(s[u]==="!")return!0}else u++}return!1};e.exports=function(s,u){if(typeof s!="string"||s==="")return!1;if(r(s))return!0;var o=n;return u&&u.strict===!1&&(o=a),o(s)}}),Ru=R((t,e)=>{"use strict";B();var r=Ou(),i=W("path").posix.dirname,n=W("os").platform()==="win32",a="/",s=/\\/g,u=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function(p,l){var f=Object.assign({flipBackslashes:!0},l);f.flipBackslashes&&n&&p.indexOf(a)<0&&(p=p.replace(s,a)),u.test(p)&&(p+=a),p+="a";do p=i(p);while(r(p)||o.test(p));return p.replace(c,"$1")}}),cr=R(t=>{"use strict";B(),t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,r)=>e.nodes.find(i=>i.type===r),t.exceedsLimit=(e,r,i=1,n)=>n===!1||!t.isInteger(e)||!t.isInteger(r)?!1:(Number(r)-Number(e))/Number(i)>=n,t.escapeNode=(e,r=0,i)=>{let n=e.nodes[r];!n||(i&&n.type===i||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1,t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((r,i)=>(i.type==="text"&&r.push(i.value),i.type==="range"&&(i.type="text"),r),[]),t.flatten=(...e)=>{let r=[],i=n=>{for(let a=0;a<n.length;a++){let s=n[a];Array.isArray(s)?i(s,r):s!==void 0&&r.push(s)}return r};return i(e),r}}),lr=R((t,e)=>{"use strict";B();var r=cr();e.exports=(i,n={})=>{let a=(s,u={})=>{let o=n.escapeInvalid&&r.isInvalidBrace(u),c=s.invalid===!0&&n.escapeInvalid===!0,p="";if(s.value)return(o||c)&&r.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let l of s.nodes)p+=a(l);return p};return a(i)}}),Tu=R((t,e)=>{"use strict";B(),e.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}),Pu=R((t,e)=>{"use strict";B();var r=Tu(),i=(d,y,v)=>{if(r(d)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(y===void 0||d===y)return String(d);if(r(y)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let D={relaxZeros:!0,...v};typeof D.strictZeros=="boolean"&&(D.relaxZeros=D.strictZeros===!1);let C=String(D.relaxZeros),b=String(D.shorthand),w=String(D.capture),F=String(D.wrap),k=d+":"+y+"="+C+b+w+F;if(i.cache.hasOwnProperty(k))return i.cache[k].result;let x=Math.min(d,y),T=Math.max(d,y);if(Math.abs(x-T)===1){let P=d+"|"+y;return D.capture?`(${P})`:D.wrap===!1?P:`(?:${P})`}let I=g(d)||g(y),_={min:d,max:y,a:x,b:T},S=[],M=[];if(I&&(_.isPadded=I,_.maxLen=String(_.max).length),x<0){let P=T<0?Math.abs(T):1;M=u(P,Math.abs(x),_,D),x=_.a=0}return T>=0&&(S=u(x,T,_,D)),_.negatives=M,_.positives=S,_.result=n(M,S,D),D.capture===!0?_.result=`(${_.result})`:D.wrap!==!1&&S.length+M.length>1&&(_.result=`(?:${_.result})`),i.cache[k]=_,_.result};function n(d,y,v){let D=o(d,y,"-",!1,v)||[],C=o(y,d,"",!1,v)||[],b=o(d,y,"-?",!0,v)||[];return D.concat(b).concat(C).join("|")}function a(d,y){let v=1,D=1,C=f(d,v),b=new Set([y]);for(;d<=C&&C<=y;)b.add(C),v+=1,C=f(d,v);for(C=h(y+1,D)-1;d<C&&C<=y;)b.add(C),D+=1,C=h(y+1,D)-1;return b=[...b],b.sort(p),b}function s(d,y,v){if(d===y)return{pattern:d,count:[],digits:0};let D=c(d,y),C=D.length,b="",w=0;for(let F=0;F<C;F++){let[k,x]=D[F];k===x?b+=k:k!=="0"||x!=="9"?b+=E(k,x,v):w++}return w&&(b+=v.shorthand===!0?"\\d":"[0-9]"),{pattern:b,count:[w],digits:C}}function u(d,y,v,D){let C=a(d,y),b=[],w=d,F;for(let k=0;k<C.length;k++){let x=C[k],T=s(String(w),String(x),D),I="";if(!v.isPadded&&F&&F.pattern===T.pattern){F.count.length>1&&F.count.pop(),F.count.push(T.count[0]),F.string=F.pattern+m(F.count),w=x+1;continue}v.isPadded&&(I=A(x,v,D)),T.string=I+T.pattern+m(T.count),b.push(T),w=x+1,F=T}return b}function o(d,y,v,D,C){let b=[];for(let w of d){let{string:F}=w;!D&&!l(y,"string",F)&&b.push(v+F),D&&l(y,"string",F)&&b.push(v+F)}return b}function c(d,y){let v=[];for(let D=0;D<d.length;D++)v.push([d[D],y[D]]);return v}function p(d,y){return d>y?1:y>d?-1:0}function l(d,y,v){return d.some(D=>D[y]===v)}function f(d,y){return Number(String(d).slice(0,-y)+"9".repeat(y))}function h(d,y){return d-d%Math.pow(10,y)}function m(d){let[y=0,v=""]=d;return v||y>1?`{${y+(v?","+v:"")}}`:""}function E(d,y,v){return`[${d}${y-d===1?"":"-"}${y}]`}function g(d){return/^-?(0+)\d/.test(d)}function A(d,y,v){if(!y.isPadded)return d;let D=Math.abs(y.maxLen-String(d).length),C=v.relaxZeros!==!1;switch(D){case 0:return"";case 1:return C?"0?":"0";case 2:return C?"0{0,2}":"00";default:return C?`0{0,${D}}`:`0{${D}}`}}i.cache={},i.clearCache=()=>i.cache={},e.exports=i}),nn=R((t,e)=>{"use strict";B();var r=W("util"),i=Pu(),n=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),a=D=>C=>D===!0?Number(C):String(C),s=D=>typeof D=="number"||typeof D=="string"&&D!=="",u=D=>Number.isInteger(+D),o=D=>{let C=`${D}`,b=-1;if(C[0]==="-"&&(C=C.slice(1)),C==="0")return!1;for(;C[++b]==="0";);return b>0},c=(D,C,b)=>typeof D=="string"||typeof C=="string"?!0:b.stringify===!0,p=(D,C,b)=>{if(C>0){let w=D[0]==="-"?"-":"";w&&(D=D.slice(1)),D=w+D.padStart(w?C-1:C,"0")}return b===!1?String(D):D},l=(D,C)=>{let b=D[0]==="-"?"-":"";for(b&&(D=D.slice(1),C--);D.length<C;)D="0"+D;return b?"-"+D:D},f=(D,C)=>{D.negatives.sort((x,T)=>x<T?-1:x>T?1:0),D.positives.sort((x,T)=>x<T?-1:x>T?1:0);let b=C.capture?"":"?:",w="",F="",k;return D.positives.length&&(w=D.positives.join("|")),D.negatives.length&&(F=`-(${b}${D.negatives.join("|")})`),w&&F?k=`${w}|${F}`:k=w||F,C.wrap?`(${b}${k})`:k},h=(D,C,b,w)=>{if(b)return i(D,C,{wrap:!1,...w});let F=String.fromCharCode(D);if(D===C)return F;let k=String.fromCharCode(C);return`[${F}-${k}]`},m=(D,C,b)=>{if(Array.isArray(D)){let w=b.wrap===!0,F=b.capture?"":"?:";return w?`(${F}${D.join("|")})`:D.join("|")}return i(D,C,b)},E=(...D)=>new RangeError("Invalid range arguments: "+r.inspect(...D)),g=(D,C,b)=>{if(b.strictRanges===!0)throw E([D,C]);return[]},A=(D,C)=>{if(C.strictRanges===!0)throw new TypeError(`Expected step "${D}" to be a number`);return[]},d=(D,C,b=1,w={})=>{let F=Number(D),k=Number(C);if(!Number.isInteger(F)||!Number.isInteger(k)){if(w.strictRanges===!0)throw E([D,C]);return[]}F===0&&(F=0),k===0&&(k=0);let x=F>k,T=String(D),I=String(C),_=String(b);b=Math.max(Math.abs(b),1);let S=o(T)||o(I)||o(_),M=S?Math.max(T.length,I.length,_.length):0,P=S===!1&&c(D,C,w)===!1,$=w.transform||a(P);if(w.toRegex&&b===1)return h(l(D,M),l(C,M),!0,w);let j={negatives:[],positives:[]},q=N=>j[N<0?"negatives":"positives"].push(Math.abs(N)),Q=[],tt=0;for(;x?F>=k:F<=k;)w.toRegex===!0&&b>1?q(F):Q.push(p($(F,tt),M,P)),F=x?F-b:F+b,tt++;return w.toRegex===!0?b>1?f(j,w):m(Q,null,{wrap:!1,...w}):Q},y=(D,C,b=1,w={})=>{if(!u(D)&&D.length>1||!u(C)&&C.length>1)return g(D,C,w);let F=w.transform||(P=>String.fromCharCode(P)),k=`${D}`.charCodeAt(0),x=`${C}`.charCodeAt(0),T=k>x,I=Math.min(k,x),_=Math.max(k,x);if(w.toRegex&&b===1)return h(I,_,!1,w);let S=[],M=0;for(;T?k>=x:k<=x;)S.push(F(k,M)),k=T?k-b:k+b,M++;return w.toRegex===!0?m(S,null,{wrap:!1,options:w}):S},v=(D,C,b,w={})=>{if(C==null&&s(D))return[D];if(!s(D)||!s(C))return g(D,C,w);if(typeof b=="function")return v(D,C,1,{transform:b});if(n(b))return v(D,C,0,b);let F={...w};return F.capture===!0&&(F.wrap=!0),b=b||F.step||1,u(b)?u(D)&&u(C)?d(D,C,b,F):y(D,C,Math.max(Math.abs(b),1),F):b!=null&&!n(b)?A(b,F):v(D,C,1,b)};e.exports=v}),Iu=R((t,e)=>{"use strict";B();var r=nn(),i=cr(),n=(a,s={})=>{let u=(o,c={})=>{let p=i.isInvalidBrace(c),l=o.invalid===!0&&s.escapeInvalid===!0,f=p===!0||l===!0,h=s.escapeInvalid===!0?"\\":"",m="";if(o.isOpen===!0||o.isClose===!0)return h+o.value;if(o.type==="open")return f?h+o.value:"(";if(o.type==="close")return f?h+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":f?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let E=i.reduce(o.nodes),g=r(...E,{...s,wrap:!1,toRegex:!0});if(g.length!==0)return E.length>1&&g.length>1?`(${g})`:g}if(o.nodes)for(let E of o.nodes)m+=u(E,o);return m};return u(a)};e.exports=n}),Lu=R((t,e)=>{"use strict";B();var r=nn(),i=lr(),n=cr(),a=(u="",o="",c=!1)=>{let p=[];if(u=[].concat(u),o=[].concat(o),!o.length)return u;if(!u.length)return c?n.flatten(o).map(l=>`{${l}}`):o;for(let l of u)if(Array.isArray(l))for(let f of l)p.push(a(f,o,c));else for(let f of o)c===!0&&typeof f=="string"&&(f=`{${f}}`),p.push(Array.isArray(f)?a(l,f,c):l+f);return n.flatten(p)},s=(u,o={})=>{let c=o.rangeLimit===void 0?1e3:o.rangeLimit,p=(l,f={})=>{l.queue=[];let h=f,m=f.queue;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,m=h.queue;if(l.invalid||l.dollar){m.push(a(m.pop(),i(l,o)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){m.push(a(m.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let d=n.reduce(l.nodes);if(n.exceedsLimit(...d,o.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let y=r(...d,o);y.length===0&&(y=i(l,o)),m.push(a(m.pop(),y)),l.nodes=[];return}let E=n.encloseBrace(l),g=l.queue,A=l;for(;A.type!=="brace"&&A.type!=="root"&&A.parent;)A=A.parent,g=A.queue;for(let d=0;d<l.nodes.length;d++){let y=l.nodes[d];if(y.type==="comma"&&l.type==="brace"){d===1&&g.push(""),g.push("");continue}if(y.type==="close"){m.push(a(m.pop(),g,E));continue}if(y.value&&y.type!=="open"){g.push(a(g.pop(),y.value));continue}y.nodes&&p(y,l)}return g};return n.flatten(p(u))};e.exports=s}),Nu=R((t,e)=>{"use strict";B(),e.exports={MAX_LENGTH:1024*64,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:`
|
21
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",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:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),ju=R((t,e)=>{"use strict";B();var r=lr(),{MAX_LENGTH:i,CHAR_BACKSLASH:n,CHAR_BACKTICK:a,CHAR_COMMA:s,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:E,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:A}=Nu(),d=(y,v={})=>{if(typeof y!="string")throw new TypeError("Expected a string");let D=v||{},C=typeof D.maxLength=="number"?Math.min(i,D.maxLength):i;if(y.length>C)throw new SyntaxError(`Input length (${y.length}), exceeds max characters (${C})`);let b={type:"root",input:y,nodes:[]},w=[b],F=b,k=b,x=0,T=y.length,I=0,_=0,S,M={},P=()=>y[I++],$=j=>{if(j.type==="text"&&k.type==="dot"&&(k.type="text"),k&&k.type==="text"&&j.type==="text"){k.value+=j.value;return}return F.nodes.push(j),j.parent=F,j.prev=k,k=j,j};for($({type:"bos"});I<T;)if(F=w[w.length-1],S=P(),!(S===A||S===g)){if(S===n){$({type:"text",value:(v.keepEscaping?S:"")+P()});continue}if(S===h){$({type:"text",value:"\\"+S});continue}if(S===f){x++;let j=!0,q;for(;I<T&&(q=P());){if(S+=q,q===f){x++;continue}if(q===n){S+=P();continue}if(q===h&&(x--,x===0))break}$({type:"text",value:S});continue}if(S===o){F=$({type:"paren",nodes:[]}),w.push(F),$({type:"text",value:S});continue}if(S===c){if(F.type!=="paren"){$({type:"text",value:S});continue}F=w.pop(),$({type:"text",value:S}),F=w[w.length-1];continue}if(S===m||S===E||S===a){let j=S,q;for(v.keepQuotes!==!0&&(S="");I<T&&(q=P());){if(q===n){S+=q+P();continue}if(q===j){v.keepQuotes===!0&&(S+=q);break}S+=q}$({type:"text",value:S});continue}if(S===p){_++;let j=k.value&&k.value.slice(-1)==="$"||F.dollar===!0;F=$({type:"brace",open:!0,close:!1,dollar:j,depth:_,commas:0,ranges:0,nodes:[]}),w.push(F),$({type:"open",value:S});continue}if(S===l){if(F.type!=="brace"){$({type:"text",value:S});continue}let j="close";F=w.pop(),F.close=!0,$({type:j,value:S}),_--,F=w[w.length-1];continue}if(S===s&&_>0){if(F.ranges>0){F.ranges=0;let j=F.nodes.shift();F.nodes=[j,{type:"text",value:r(F)}]}$({type:"comma",value:S}),F.commas++;continue}if(S===u&&_>0&&F.commas===0){let j=F.nodes;if(_===0||j.length===0){$({type:"text",value:S});continue}if(k.type==="dot"){if(F.range=[],k.value+=S,k.type="range",F.nodes.length!==3&&F.nodes.length!==5){F.invalid=!0,F.ranges=0,k.type="text";continue}F.ranges++,F.args=[];continue}if(k.type==="range"){j.pop();let q=j[j.length-1];q.value+=k.value+S,k=q,F.ranges--;continue}$({type:"dot",value:S});continue}$({type:"text",value:S})}do if(F=w.pop(),F.type!=="root"){F.nodes.forEach(Q=>{Q.nodes||(Q.type==="open"&&(Q.isOpen=!0),Q.type==="close"&&(Q.isClose=!0),Q.nodes||(Q.type="text"),Q.invalid=!0)});let j=w[w.length-1],q=j.nodes.indexOf(F);j.nodes.splice(q,1,...F.nodes)}while(w.length>0);return $({type:"eos"}),b};e.exports=d}),Mu=R((t,e)=>{"use strict";B();var r=lr(),i=Iu(),n=Lu(),a=ju(),s=(u,o={})=>{let c=[];if(Array.isArray(u))for(let p of u){let l=s.create(p,o);Array.isArray(l)?c.push(...l):c.push(l)}else c=[].concat(s.create(u,o));return o&&o.expand===!0&&o.nodupes===!0&&(c=[...new Set(c)]),c};s.parse=(u,o={})=>a(u,o),s.stringify=(u,o={})=>r(typeof u=="string"?s.parse(u,o):u,o),s.compile=(u,o={})=>(typeof u=="string"&&(u=s.parse(u,o)),i(u,o)),s.expand=(u,o={})=>{typeof u=="string"&&(u=s.parse(u,o));let c=n(u,o);return o.noempty===!0&&(c=c.filter(Boolean)),o.nodupes===!0&&(c=[...new Set(c)]),c},s.create=(u,o={})=>u===""||u.length<3?[u]:o.expand!==!0?s.compile(u,o):s.expand(u,o),e.exports=s}),Be=R((t,e)=>{"use strict";B();var r=W("path"),i="\\\\/",n=`[^${i}]`,a="\\.",s="\\+",u="\\?",o="\\/",c="(?=.)",p="[^/]",l=`(?:${o}|$)`,f=`(?:^|${o})`,h=`${a}{1,2}${l}`,m=`(?!${a})`,E=`(?!${f}${h})`,g=`(?!${a}{0,1}${l})`,A=`(?!${h})`,d=`[^.${o}]`,y=`${p}*?`,v={DOT_LITERAL:a,PLUS_LITERAL:s,QMARK_LITERAL:u,SLASH_LITERAL:o,ONE_CHAR:c,QMARK:p,END_ANCHOR:l,DOTS_SLASH:h,NO_DOT:m,NO_DOTS:E,NO_DOT_SLASH:g,NO_DOTS_SLASH:A,QMARK_NO_DOT:d,STAR:y,START_ANCHOR:f},D={...v,SLASH_LITERAL:`[${i}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${a}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${i}])${a}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},C={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"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:C,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:{"***":"*","**/**":"**","**/**/**":"**"},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:r.sep,extglobChars(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===!0?D:v}}}),Oe=R(t=>{"use strict";B();var e=W("path"),r=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:s}=Be();t.isObject=u=>u!==null&&typeof u=="object"&&!Array.isArray(u),t.hasRegexChars=u=>a.test(u),t.isRegexChar=u=>u.length===1&&t.hasRegexChars(u),t.escapeRegex=u=>u.replace(s,"\\$1"),t.toPosixSlashes=u=>u.replace(i,"/"),t.removeBackslashes=u=>u.replace(n,o=>o==="\\"?"":o),t.supportsLookbehinds=()=>{let u=process.version.slice(1).split(".").map(Number);return u.length===3&&u[0]>=9||u[0]===8&&u[1]>=10},t.isWindows=u=>u&&typeof u.windows=="boolean"?u.windows:r===!0||e.sep==="\\",t.escapeLast=(u,o,c)=>{let p=u.lastIndexOf(o,c);return p===-1?u:u[p-1]==="\\"?t.escapeLast(u,o,p-1):`${u.slice(0,p)}\\${u.slice(p)}`},t.removePrefix=(u,o={})=>{let c=u;return c.startsWith("./")&&(c=c.slice(2),o.prefix="./"),c},t.wrapOutput=(u,o={},c={})=>{let p=c.contains?"":"^",l=c.contains?"":"$",f=`${p}(?:${u})${l}`;return o.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}}),$u=R((t,e)=>{"use strict";B();var r=Oe(),{CHAR_ASTERISK:i,CHAR_AT:n,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:s,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:A}=Be(),d=D=>D===c||D===a,y=D=>{D.isPrefix!==!0&&(D.depth=D.isGlobstar?1/0:1)},v=(D,C)=>{let b=C||{},w=D.length-1,F=b.parts===!0||b.scanToEnd===!0,k=[],x=[],T=[],I=D,_=-1,S=0,M=0,P=!1,$=!1,j=!1,q=!1,Q=!1,tt=!1,N=!1,st=!1,ct=!1,pt=!1,O=0,L,U,K={value:"",depth:0,isGlob:!1},at=()=>_>=w,ut=()=>I.charCodeAt(_+1),J=()=>(L=U,I.charCodeAt(++_));for(;_<w;){U=J();let X;if(U===a){N=K.backslashes=!0,U=J(),U===p&&(tt=!0);continue}if(tt===!0||U===p){for(O++;at()!==!0&&(U=J());){if(U===a){N=K.backslashes=!0,J();continue}if(U===p){O++;continue}if(tt!==!0&&U===u&&(U=J())===u){if(P=K.isBrace=!0,j=K.isGlob=!0,pt=!0,F===!0)continue;break}if(tt!==!0&&U===s){if(P=K.isBrace=!0,j=K.isGlob=!0,pt=!0,F===!0)continue;break}if(U===E&&(O--,O===0)){tt=!1,P=K.isBrace=!0,pt=!0;break}}if(F===!0)continue;break}if(U===c){if(k.push(_),x.push(K),K={value:"",depth:0,isGlob:!1},pt===!0)continue;if(L===u&&_===S+1){S+=2;continue}M=_+1;continue}if(b.noext!==!0&&(U===h||U===n||U===i||U===m||U===o)&&ut()===l){if(j=K.isGlob=!0,q=K.isExtglob=!0,pt=!0,U===o&&_===S&&(ct=!0),F===!0){for(;at()!==!0&&(U=J());){if(U===a){N=K.backslashes=!0,U=J();continue}if(U===g){j=K.isGlob=!0,pt=!0;break}}continue}break}if(U===i){if(L===i&&(Q=K.isGlobstar=!0),j=K.isGlob=!0,pt=!0,F===!0)continue;break}if(U===m){if(j=K.isGlob=!0,pt=!0,F===!0)continue;break}if(U===f){for(;at()!==!0&&(X=J());){if(X===a){N=K.backslashes=!0,J();continue}if(X===A){$=K.isBracket=!0,j=K.isGlob=!0,pt=!0;break}}if(F===!0)continue;break}if(b.nonegate!==!0&&U===o&&_===S){st=K.negated=!0,S++;continue}if(b.noparen!==!0&&U===l){if(j=K.isGlob=!0,F===!0){for(;at()!==!0&&(U=J());){if(U===l){N=K.backslashes=!0,U=J();continue}if(U===g){pt=!0;break}}continue}break}if(j===!0){if(pt=!0,F===!0)continue;break}}b.noext===!0&&(q=!1,j=!1);let Z=I,ot="",ft="";S>0&&(ot=I.slice(0,S),I=I.slice(S),M-=S),Z&&j===!0&&M>0?(Z=I.slice(0,M),ft=I.slice(M)):j===!0?(Z="",ft=I):Z=I,Z&&Z!==""&&Z!=="/"&&Z!==I&&d(Z.charCodeAt(Z.length-1))&&(Z=Z.slice(0,-1)),b.unescape===!0&&(ft&&(ft=r.removeBackslashes(ft)),Z&&N===!0&&(Z=r.removeBackslashes(Z)));let et={prefix:ot,input:D,start:S,base:Z,glob:ft,isBrace:P,isBracket:$,isGlob:j,isExtglob:q,isGlobstar:Q,negated:st,negatedExtglob:ct};if(b.tokens===!0&&(et.maxDepth=0,d(U)||x.push(K),et.tokens=x),b.parts===!0||b.tokens===!0){let X;for(let vt=0;vt<k.length;vt++){let Le=X?X+1:S,V=k[vt],lt=D.slice(Le,V);b.tokens&&(vt===0&&S!==0?(x[vt].isPrefix=!0,x[vt].value=ot):x[vt].value=lt,y(x[vt]),et.maxDepth+=x[vt].depth),(vt!==0||lt!=="")&&T.push(lt),X=V}if(X&&X+1<D.length){let vt=D.slice(X+1);T.push(vt),b.tokens&&(x[x.length-1].value=vt,y(x[x.length-1]),et.maxDepth+=x[x.length-1].depth)}et.slashes=k,et.parts=T}return et};e.exports=v}),Hu=R((t,e)=>{"use strict";B();var r=Be(),i=Oe(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:o}=r,c=(f,h)=>{if(typeof h.expandRange=="function")return h.expandRange(...f,h);f.sort();let m=`[${f.join("-")}]`;try{new RegExp(m)}catch{return f.map(E=>i.escapeRegex(E)).join("..")}return m},p=(f,h)=>`Missing ${f}: "${h}" - use "\\\\${h}" to match literal characters`,l=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=o[f]||f;let m={...h},E=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,g=f.length;if(g>E)throw new SyntaxError(`Input length: ${g}, exceeds maximum allowed length: ${E}`);let A={type:"bos",value:"",output:m.prepend||""},d=[A],y=m.capture?"":"?:",v=i.isWindows(h),D=r.globChars(v),C=r.extglobChars(D),{DOT_LITERAL:b,PLUS_LITERAL:w,SLASH_LITERAL:F,ONE_CHAR:k,DOTS_SLASH:x,NO_DOT:T,NO_DOT_SLASH:I,NO_DOTS_SLASH:_,QMARK:S,QMARK_NO_DOT:M,STAR:P,START_ANCHOR:$}=D,j=V=>`(${y}(?:(?!${$}${V.dot?x:b}).)*?)`,q=m.dot?"":T,Q=m.dot?S:M,tt=m.bash===!0?j(m):P;m.capture&&(tt=`(${tt})`),typeof m.noext=="boolean"&&(m.noextglob=m.noext);let N={input:f,index:-1,start:0,dot:m.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:d};f=i.removePrefix(f,N),g=f.length;let st=[],ct=[],pt=[],O=A,L,U=()=>N.index===g-1,K=N.peek=(V=1)=>f[N.index+V],at=N.advance=()=>f[++N.index]||"",ut=()=>f.slice(N.index+1),J=(V="",lt=0)=>{N.consumed+=V,N.index+=lt},Z=V=>{N.output+=V.output!=null?V.output:V.value,J(V.value)},ot=()=>{let V=1;for(;K()==="!"&&(K(2)!=="("||K(3)==="?");)at(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},ft=V=>{N[V]++,pt.push(V)},et=V=>{N[V]--,pt.pop()},X=V=>{if(O.type==="globstar"){let lt=N.braces>0&&(V.type==="comma"||V.type==="brace"),G=V.extglob===!0||st.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!lt&&!G&&(N.output=N.output.slice(0,-O.output.length),O.type="star",O.value="*",O.output=tt,N.output+=O.output)}if(st.length&&V.type!=="paren"&&(st[st.length-1].inner+=V.value),(V.value||V.output)&&Z(V),O&&O.type==="text"&&V.type==="text"){O.value+=V.value,O.output=(O.output||"")+V.value;return}V.prev=O,d.push(V),O=V},vt=(V,lt)=>{let G={...C[lt],conditions:1,inner:""};G.prev=O,G.parens=N.parens,G.output=N.output;let nt=(m.capture?"(":"")+G.open;ft("parens"),X({type:V,value:lt,output:N.output?"":k}),X({type:"paren",extglob:!0,value:at(),output:nt}),st.push(G)},Le=V=>{let lt=V.close+(m.capture?")":""),G;if(V.type==="negate"){let nt=tt;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(nt=j(m)),(nt!==tt||U()||/^\)+$/.test(ut()))&&(lt=V.close=`)$))${nt}`),V.inner.includes("*")&&(G=ut())&&/^\.[^\\/.]+$/.test(G)){let Dt=l(G,{...h,fastpaths:!1}).output;lt=V.close=`)${Dt})${nt})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:L,output:lt}),et("parens")};if(m.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let V=!1,lt=f.replace(u,(G,nt,Dt,Ft,gt,Ne)=>Ft==="\\"?(V=!0,G):Ft==="?"?nt?nt+Ft+(gt?S.repeat(gt.length):""):Ne===0?Q+(gt?S.repeat(gt.length):""):S.repeat(Dt.length):Ft==="."?b.repeat(Dt.length):Ft==="*"?nt?nt+Ft+(gt?tt:""):tt:nt?G:`\\${G}`);return V===!0&&(m.unescape===!0?lt=lt.replace(/\\/g,""):lt=lt.replace(/\\+/g,G=>G.length%2===0?"\\\\":G?"\\":"")),lt===f&&m.contains===!0?(N.output=f,N):(N.output=i.wrapOutput(lt,N,h),N)}for(;!U();){if(L=at(),L==="\0")continue;if(L==="\\"){let G=K();if(G==="/"&&m.bash!==!0||G==="."||G===";")continue;if(!G){L+="\\",X({type:"text",value:L});continue}let nt=/^\\+/.exec(ut()),Dt=0;if(nt&&nt[0].length>2&&(Dt=nt[0].length,N.index+=Dt,Dt%2!==0&&(L+="\\")),m.unescape===!0?L=at():L+=at(),N.brackets===0){X({type:"text",value:L});continue}}if(N.brackets>0&&(L!=="]"||O.value==="["||O.value==="[^")){if(m.posix!==!1&&L===":"){let G=O.value.slice(1);if(G.includes("[")&&(O.posix=!0,G.includes(":"))){let nt=O.value.lastIndexOf("["),Dt=O.value.slice(0,nt),Ft=O.value.slice(nt+2),gt=a[Ft];if(gt){O.value=Dt+gt,N.backtrack=!0,at(),!A.output&&d.indexOf(O)===1&&(A.output=k);continue}}}(L==="["&&K()!==":"||L==="-"&&K()==="]")&&(L=`\\${L}`),L==="]"&&(O.value==="["||O.value==="[^")&&(L=`\\${L}`),m.posix===!0&&L==="!"&&O.value==="["&&(L="^"),O.value+=L,Z({value:L});continue}if(N.quotes===1&&L!=='"'){L=i.escapeRegex(L),O.value+=L,Z({value:L});continue}if(L==='"'){N.quotes=N.quotes===1?0:1,m.keepQuotes===!0&&X({type:"text",value:L});continue}if(L==="("){ft("parens"),X({type:"paren",value:L});continue}if(L===")"){if(N.parens===0&&m.strictBrackets===!0)throw new SyntaxError(p("opening","("));let G=st[st.length-1];if(G&&N.parens===G.parens+1){Le(st.pop());continue}X({type:"paren",value:L,output:N.parens?")":"\\)"}),et("parens");continue}if(L==="["){if(m.nobracket===!0||!ut().includes("]")){if(m.nobracket!==!0&&m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));L=`\\${L}`}else ft("brackets");X({type:"bracket",value:L});continue}if(L==="]"){if(m.nobracket===!0||O&&O.type==="bracket"&&O.value.length===1){X({type:"text",value:L,output:`\\${L}`});continue}if(N.brackets===0){if(m.strictBrackets===!0)throw new SyntaxError(p("opening","["));X({type:"text",value:L,output:`\\${L}`});continue}et("brackets");let G=O.value.slice(1);if(O.posix!==!0&&G[0]==="^"&&!G.includes("/")&&(L=`/${L}`),O.value+=L,Z({value:L}),m.literalBrackets===!1||i.hasRegexChars(G))continue;let nt=i.escapeRegex(O.value);if(N.output=N.output.slice(0,-O.value.length),m.literalBrackets===!0){N.output+=nt,O.value=nt;continue}O.value=`(${y}${nt}|${O.value})`,N.output+=O.value;continue}if(L==="{"&&m.nobrace!==!0){ft("braces");let G={type:"brace",value:L,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};ct.push(G),X(G);continue}if(L==="}"){let G=ct[ct.length-1];if(m.nobrace===!0||!G){X({type:"text",value:L,output:L});continue}let nt=")";if(G.dots===!0){let Dt=d.slice(),Ft=[];for(let gt=Dt.length-1;gt>=0&&(d.pop(),Dt[gt].type!=="brace");gt--)Dt[gt].type!=="dots"&&Ft.unshift(Dt[gt].value);nt=c(Ft,m),N.backtrack=!0}if(G.comma!==!0&&G.dots!==!0){let Dt=N.output.slice(0,G.outputIndex),Ft=N.tokens.slice(G.tokensIndex);G.value=G.output="\\{",L=nt="\\}",N.output=Dt;for(let gt of Ft)N.output+=gt.output||gt.value}X({type:"brace",value:L,output:nt}),et("braces"),ct.pop();continue}if(L==="|"){st.length>0&&st[st.length-1].conditions++,X({type:"text",value:L});continue}if(L===","){let G=L,nt=ct[ct.length-1];nt&&pt[pt.length-1]==="braces"&&(nt.comma=!0,G="|"),X({type:"comma",value:L,output:G});continue}if(L==="/"){if(O.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",d.pop(),O=A;continue}X({type:"slash",value:L,output:F});continue}if(L==="."){if(N.braces>0&&O.type==="dot"){O.value==="."&&(O.output=b);let G=ct[ct.length-1];O.type="dots",O.output+=L,O.value+=L,G.dots=!0;continue}if(N.braces+N.parens===0&&O.type!=="bos"&&O.type!=="slash"){X({type:"text",value:L,output:b});continue}X({type:"dot",value:L,output:b});continue}if(L==="?"){if(!(O&&O.value==="(")&&m.noextglob!==!0&&K()==="("&&K(2)!=="?"){vt("qmark",L);continue}if(O&&O.type==="paren"){let G=K(),nt=L;if(G==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(O.value==="("&&!/[!=<:]/.test(G)||G==="<"&&!/<([!=]|\w+>)/.test(ut()))&&(nt=`\\${L}`),X({type:"text",value:L,output:nt});continue}if(m.dot!==!0&&(O.type==="slash"||O.type==="bos")){X({type:"qmark",value:L,output:M});continue}X({type:"qmark",value:L,output:S});continue}if(L==="!"){if(m.noextglob!==!0&&K()==="("&&(K(2)!=="?"||!/[!=<:]/.test(K(3)))){vt("negate",L);continue}if(m.nonegate!==!0&&N.index===0){ot();continue}}if(L==="+"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){vt("plus",L);continue}if(O&&O.value==="("||m.regex===!1){X({type:"plus",value:L,output:w});continue}if(O&&(O.type==="bracket"||O.type==="paren"||O.type==="brace")||N.parens>0){X({type:"plus",value:L});continue}X({type:"plus",value:w});continue}if(L==="@"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){X({type:"at",extglob:!0,value:L,output:""});continue}X({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);let G=s.exec(ut());G&&(L+=G[0],N.index+=G[0].length),X({type:"text",value:L});continue}if(O&&(O.type==="globstar"||O.star===!0)){O.type="star",O.star=!0,O.value+=L,O.output=tt,N.backtrack=!0,N.globstar=!0,J(L);continue}let V=ut();if(m.noextglob!==!0&&/^\([^?]/.test(V)){vt("star",L);continue}if(O.type==="star"){if(m.noglobstar===!0){J(L);continue}let G=O.prev,nt=G.prev,Dt=G.type==="slash"||G.type==="bos",Ft=nt&&(nt.type==="star"||nt.type==="globstar");if(m.bash===!0&&(!Dt||V[0]&&V[0]!=="/")){X({type:"star",value:L,output:""});continue}let gt=N.braces>0&&(G.type==="comma"||G.type==="brace"),Ne=st.length&&(G.type==="pipe"||G.type==="paren");if(!Dt&&G.type!=="paren"&&!gt&&!Ne){X({type:"star",value:L,output:""});continue}for(;V.slice(0,3)==="/**";){let De=f[N.index+4];if(De&&De!=="/")break;V=V.slice(3),J("/**",3)}if(G.type==="bos"&&U()){O.type="globstar",O.value+=L,O.output=j(m),N.output=O.output,N.globstar=!0,J(L);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&!Ft&&U()){N.output=N.output.slice(0,-(G.output+O.output).length),G.output=`(?:${G.output}`,O.type="globstar",O.output=j(m)+(m.strictSlashes?")":"|$)"),O.value+=L,N.globstar=!0,N.output+=G.output+O.output,J(L);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&V[0]==="/"){let De=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(G.output+O.output).length),G.output=`(?:${G.output}`,O.type="globstar",O.output=`${j(m)}${F}|${F}${De})`,O.value+=L,N.output+=G.output+O.output,N.globstar=!0,J(L+at()),X({type:"slash",value:"/",output:""});continue}if(G.type==="bos"&&V[0]==="/"){O.type="globstar",O.value+=L,O.output=`(?:^|${F}|${j(m)}${F})`,N.output=O.output,N.globstar=!0,J(L+at()),X({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-O.output.length),O.type="globstar",O.output=j(m),O.value+=L,N.output+=O.output,N.globstar=!0,J(L);continue}let lt={type:"star",value:L,output:tt};if(m.bash===!0){lt.output=".*?",(O.type==="bos"||O.type==="slash")&&(lt.output=q+lt.output),X(lt);continue}if(O&&(O.type==="bracket"||O.type==="paren")&&m.regex===!0){lt.output=L,X(lt);continue}(N.index===N.start||O.type==="slash"||O.type==="dot")&&(O.type==="dot"?(N.output+=I,O.output+=I):m.dot===!0?(N.output+=_,O.output+=_):(N.output+=q,O.output+=q),K()!=="*"&&(N.output+=k,O.output+=k)),X(lt)}for(;N.brackets>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));N.output=i.escapeLast(N.output,"["),et("brackets")}for(;N.parens>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing",")"));N.output=i.escapeLast(N.output,"("),et("parens")}for(;N.braces>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","}"));N.output=i.escapeLast(N.output,"{"),et("braces")}if(m.strictSlashes!==!0&&(O.type==="star"||O.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${F}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};l.fastpaths=(f,h)=>{let m={...h},E=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,g=f.length;if(g>E)throw new SyntaxError(`Input length: ${g}, exceeds maximum allowed length: ${E}`);f=o[f]||f;let A=i.isWindows(h),{DOT_LITERAL:d,SLASH_LITERAL:y,ONE_CHAR:v,DOTS_SLASH:D,NO_DOT:C,NO_DOTS:b,NO_DOTS_SLASH:w,STAR:F,START_ANCHOR:k}=r.globChars(A),x=m.dot?b:C,T=m.dot?w:C,I=m.capture?"":"?:",_={negated:!1,prefix:""},S=m.bash===!0?".*?":F;m.capture&&(S=`(${S})`);let M=q=>q.noglobstar===!0?S:`(${I}(?:(?!${k}${q.dot?D:d}).)*?)`,P=q=>{switch(q){case"*":return`${x}${v}${S}`;case".*":return`${d}${v}${S}`;case"*.*":return`${x}${S}${d}${v}${S}`;case"*/*":return`${x}${S}${y}${v}${T}${S}`;case"**":return x+M(m);case"**/*":return`(?:${x}${M(m)}${y})?${T}${v}${S}`;case"**/*.*":return`(?:${x}${M(m)}${y})?${T}${S}${d}${v}${S}`;case"**/.*":return`(?:${x}${M(m)}${y})?${d}${v}${S}`;default:{let Q=/^(.*?)\.(\w+)$/.exec(q);if(!Q)return;let tt=P(Q[1]);return tt?tt+d+Q[2]:void 0}}},$=i.removePrefix(f,_),j=P($);return j&&m.strictSlashes!==!0&&(j+=`${y}?`),j},e.exports=l}),Gu=R((t,e)=>{"use strict";B();var r=W("path"),i=$u(),n=Hu(),a=Oe(),s=Be(),u=c=>c&&typeof c=="object"&&!Array.isArray(c),o=(c,p,l=!1)=>{if(Array.isArray(c)){let y=c.map(v=>o(v,p,l));return v=>{for(let D of y){let C=D(v);if(C)return C}return!1}}let f=u(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");let h=p||{},m=a.isWindows(p),E=f?o.compileRe(c,p):o.makeRe(c,p,!1,!0),g=E.state;delete E.state;let A=()=>!1;if(h.ignore){let y={...p,ignore:null,onMatch:null,onResult:null};A=o(h.ignore,y,l)}let d=(y,v=!1)=>{let{isMatch:D,match:C,output:b}=o.test(y,E,p,{glob:c,posix:m}),w={glob:c,state:g,regex:E,posix:m,input:y,output:b,match:C,isMatch:D};return typeof h.onResult=="function"&&h.onResult(w),D===!1?(w.isMatch=!1,v?w:!1):A(y)?(typeof h.onIgnore=="function"&&h.onIgnore(w),w.isMatch=!1,v?w:!1):(typeof h.onMatch=="function"&&h.onMatch(w),v?w:!0)};return l&&(d.state=g),d};o.test=(c,p,l,{glob:f,posix:h}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let m=l||{},E=m.format||(h?a.toPosixSlashes:null),g=c===f,A=g&&E?E(c):c;return g===!1&&(A=E?E(c):c,g=A===f),(g===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?g=o.matchBase(c,p,l,h):g=p.exec(A)),{isMatch:Boolean(g),match:g,output:A}},o.matchBase=(c,p,l,f=a.isWindows(l))=>(p instanceof RegExp?p:o.makeRe(p,l)).test(r.basename(c)),o.isMatch=(c,p,l)=>o(p,l)(c),o.parse=(c,p)=>Array.isArray(c)?c.map(l=>o.parse(l,p)):n(c,{...p,fastpaths:!1}),o.scan=(c,p)=>i(c,p),o.compileRe=(c,p,l=!1,f=!1)=>{if(l===!0)return c.output;let h=p||{},m=h.contains?"":"^",E=h.contains?"":"$",g=`${m}(?:${c.output})${E}`;c&&c.negated===!0&&(g=`^(?!${g}).*$`);let A=o.toRegex(g,p);return f===!0&&(A.state=c),A},o.makeRe=(c,p={},l=!1,f=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(h.output=n.fastpaths(c,p)),h.output||(h=n(c,p)),o.compileRe(h,p,l,f)},o.toRegex=(c,p)=>{try{let l=p||{};return new RegExp(c,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},o.constants=s,e.exports=o}),Uu=R((t,e)=>{"use strict";B(),e.exports=Gu()}),Wu=R((t,e)=>{"use strict";B();var r=W("util"),i=Mu(),n=Uu(),a=Oe(),s=o=>o===""||o==="./",u=(o,c,p)=>{c=[].concat(c),o=[].concat(o);let l=new Set,f=new Set,h=new Set,m=0,E=A=>{h.add(A.output),p&&p.onResult&&p.onResult(A)};for(let A=0;A<c.length;A++){let d=n(String(c[A]),{...p,onResult:E},!0),y=d.state.negated||d.state.negatedExtglob;y&&m++;for(let v of o){let D=d(v,!0);!(y?!D.isMatch:D.isMatch)||(y?l.add(D.output):(l.delete(D.output),f.add(D.output)))}}let g=(m===c.length?[...h]:[...f]).filter(A=>!l.has(A));if(p&&g.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?c.map(A=>A.replace(/\\/g,"")):c}return g};u.match=u,u.matcher=(o,c)=>n(o,c),u.isMatch=(o,c,p)=>n(c,p)(o),u.any=u.isMatch,u.not=(o,c,p={})=>{c=[].concat(c).map(String);let l=new Set,f=[],h=E=>{p.onResult&&p.onResult(E),f.push(E.output)},m=new Set(u(o,c,{...p,onResult:h}));for(let E of f)m.has(E)||l.add(E);return[...l]},u.contains=(o,c,p)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${r.inspect(o)}"`);if(Array.isArray(c))return c.some(l=>u.contains(o,l,p));if(typeof c=="string"){if(s(o)||s(c))return!1;if(o.includes(c)||o.startsWith("./")&&o.slice(2).includes(c))return!0}return u.isMatch(o,c,{...p,contains:!0})},u.matchKeys=(o,c,p)=>{if(!a.isObject(o))throw new TypeError("Expected the first argument to be an object");let l=u(Object.keys(o),c,p),f={};for(let h of l)f[h]=o[h];return f},u.some=(o,c,p)=>{let l=[].concat(o);for(let f of[].concat(c)){let h=n(String(f),p);if(l.some(m=>h(m)))return!0}return!1},u.every=(o,c,p)=>{let l=[].concat(o);for(let f of[].concat(c)){let h=n(String(f),p);if(!l.every(m=>h(m)))return!1}return!0},u.all=(o,c,p)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${r.inspect(o)}"`);return[].concat(c).every(l=>n(l,p)(o))},u.capture=(o,c,p)=>{let l=a.isWindows(p),f=n.makeRe(String(o),{...p,capture:!0}).exec(l?a.toPosixSlashes(c):c);if(f)return f.slice(1).map(h=>h===void 0?"":h)},u.makeRe=(...o)=>n.makeRe(...o),u.scan=(...o)=>n.scan(...o),u.parse=(o,c)=>{let p=[];for(let l of[].concat(o||[]))for(let f of i(String(l),c))p.push(n.parse(f,c));return p},u.braces=(o,c)=>{if(typeof o!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!/\{.*\}/.test(o)?[o]:i(o,c)},u.braceExpand=(o,c)=>{if(typeof o!="string")throw new TypeError("Expected a string");return u.braces(o,{...c,expand:!0})},e.exports=u}),Vu=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;var e=W("path"),r=Ru(),i=Wu(),n="**",a="\\",s=/[*?]|^!/,u=/\[[^[]*]/,o=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,p=/,|\.\./;function l(P,$={}){return!f(P,$)}t.isStaticPattern=l;function f(P,$={}){return P===""?!1:!!($.caseSensitiveMatch===!1||P.includes(a)||s.test(P)||u.test(P)||o.test(P)||$.extglob!==!1&&c.test(P)||$.braceExpansion!==!1&&h(P))}t.isDynamicPattern=f;function h(P){let $=P.indexOf("{");if($===-1)return!1;let j=P.indexOf("}",$+1);if(j===-1)return!1;let q=P.slice($,j);return p.test(q)}function m(P){return g(P)?P.slice(1):P}t.convertToPositivePattern=m;function E(P){return"!"+P}t.convertToNegativePattern=E;function g(P){return P.startsWith("!")&&P[1]!=="("}t.isNegativePattern=g;function A(P){return!g(P)}t.isPositivePattern=A;function d(P){return P.filter(g)}t.getNegativePatterns=d;function y(P){return P.filter(A)}t.getPositivePatterns=y;function v(P){return P.filter($=>!C($))}t.getPatternsInsideCurrentDirectory=v;function D(P){return P.filter(C)}t.getPatternsOutsideCurrentDirectory=D;function C(P){return P.startsWith("..")||P.startsWith("./..")}t.isPatternRelatedToParentDirectory=C;function b(P){return r(P,{flipBackslashes:!1})}t.getBaseDirectory=b;function w(P){return P.includes(n)}t.hasGlobStar=w;function F(P){return P.endsWith("/"+n)}t.endsWithSlashGlobStar=F;function k(P){let $=e.basename(P);return F(P)||l($)}t.isAffectDepthOfReadingPattern=k;function x(P){return P.reduce(($,j)=>$.concat(T(j)),[])}t.expandPatternsWithBraceExpansion=x;function T(P){return i.braces(P,{expand:!0,nodupes:!0})}t.expandBraceExpansion=T;function I(P,$){let{parts:j}=i.scan(P,Object.assign(Object.assign({},$),{parts:!0}));return j.length===0&&(j=[P]),j[0].startsWith("/")&&(j[0]=j[0].slice(1),j.unshift("")),j}t.getPatternParts=I;function _(P,$){return i.makeRe(P,$)}t.makeRe=_;function S(P,$){return P.map(j=>_(j,$))}t.convertPatternsToRe=S;function M(P,$){return $.some(j=>j.test(P))}t.matchAny=M}),qu=R((t,e)=>{"use strict";B();var r=W("stream"),i=r.PassThrough,n=Array.prototype.slice;e.exports=a;function a(){let u=[],o=n.call(arguments),c=!1,p=o[o.length-1];p&&!Array.isArray(p)&&p.pipe==null?o.pop():p={};let l=p.end!==!1,f=p.pipeError===!0;p.objectMode==null&&(p.objectMode=!0),p.highWaterMark==null&&(p.highWaterMark=64*1024);let h=i(p);function m(){for(let A=0,d=arguments.length;A<d;A++)u.push(s(arguments[A],p));return E(),this}function E(){if(c)return;c=!0;let A=u.shift();if(!A){process.nextTick(g);return}Array.isArray(A)||(A=[A]);let d=A.length+1;function y(){--d>0||(c=!1,E())}function v(D){function C(){D.removeListener("merge2UnpipeEnd",C),D.removeListener("end",C),f&&D.removeListener("error",b),y()}function b(w){h.emit("error",w)}if(D._readableState.endEmitted)return y();D.on("merge2UnpipeEnd",C),D.on("end",C),f&&D.on("error",b),D.pipe(h,{end:!1}),D.resume()}for(let D=0;D<A.length;D++)v(A[D]);y()}function g(){c=!1,h.emit("queueDrain"),l&&h.end()}return h.setMaxListeners(0),h.add=m,h.on("unpipe",function(A){A.emit("merge2UnpipeEnd")}),o.length&&m.apply(null,o),h}function s(u,o){if(Array.isArray(u))for(let c=0,p=u.length;c<p;c++)u[c]=s(u[c],o);else{if(!u._readableState&&u.pipe&&(u=u.pipe(i(o))),!u._readableState||!u.pause||!u.pipe)throw new Error("Only readable stream can be merged.");u.pause()}return u}}),Ku=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var e=qu();function r(n){let a=e(n);return n.forEach(s=>{s.once("error",u=>a.emit("error",u))}),a.once("close",()=>i(n)),a.once("end",()=>i(n)),a}t.merge=r;function i(n){n.forEach(a=>a.emit("close"))}}),Yu=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.isString=void 0;function e(i){return typeof i=="string"}t.isString=e;function r(i){return i===""}t.isEmpty=r}),Vt=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;var e=_u();t.array=e;var r=wu();t.errno=r;var i=xu();t.fs=i;var n=ku();t.path=n;var a=Vu();t.pattern=a;var s=Ku();t.stream=s;var u=Yu();t.string=u}),Qu=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;var e=Vt();function r(c,p){let l=n(c),f=a(c,p.ignore),h=l.filter(A=>e.pattern.isStaticPattern(A,p)),m=l.filter(A=>e.pattern.isDynamicPattern(A,p)),E=i(h,f,!1),g=i(m,f,!0);return E.concat(g)}t.generate=r;function i(c,p,l){let f=[],h=e.pattern.getPatternsOutsideCurrentDirectory(c),m=e.pattern.getPatternsInsideCurrentDirectory(c),E=s(h),g=s(m);return f.push(...u(E,p,l)),"."in g?f.push(o(".",m,p,l)):f.push(...u(g,p,l)),f}t.convertPatternsToTasks=i;function n(c){return e.pattern.getPositivePatterns(c)}t.getPositivePatterns=n;function a(c,p){return e.pattern.getNegativePatterns(c).concat(p).map(e.pattern.convertToPositivePattern)}t.getNegativePatternsAsPositive=a;function s(c){let p={};return c.reduce((l,f)=>{let h=e.pattern.getBaseDirectory(f);return h in l?l[h].push(f):l[h]=[f],l},p)}t.groupPatternsByBaseDirectory=s;function u(c,p,l){return Object.keys(c).map(f=>o(f,c[f],p,l))}t.convertPatternGroupsToTasks=u;function o(c,p,l,f){return{dynamic:f,positive:p,negative:l,base:c,patterns:[].concat(p,l.map(e.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=o}),Xu=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeDuplicateSlashes=t.transform=void 0;var e=/(?!^)\/{2,}/g;function r(n){return n.map(a=>i(a))}t.transform=r;function i(n){return n.replace(e,"/")}t.removeDuplicateSlashes=i}),Ju=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(n,a,s){a.fs.lstat(n,(u,o)=>{if(u!==null){r(s,u);return}if(!o.isSymbolicLink()||!a.followSymbolicLink){i(s,o);return}a.fs.stat(n,(c,p)=>{if(c!==null){if(a.throwErrorOnBrokenSymbolicLink){r(s,c);return}i(s,o);return}a.markSymbolicLink&&(p.isSymbolicLink=()=>!0),i(s,p)})})}t.read=e;function r(n,a){n(a)}function i(n,a){n(null,a)}}),Zu=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(r,i){let n=i.fs.lstatSync(r);if(!n.isSymbolicLink()||!i.followSymbolicLink)return n;try{let a=i.fs.statSync(r);return i.markSymbolicLink&&(a.isSymbolicLink=()=>!0),a}catch(a){if(!i.throwErrorOnBrokenSymbolicLink)return n;throw a}}t.read=e}),zu=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=W("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync};function r(i){return i===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),i)}t.createFileSystemAdapter=r}),to=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=zu(),r=class{constructor(i={}){this._options=i,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(i,n){return i!=null?i:n}};t.default=r}),re=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.statSync=t.stat=t.Settings=void 0;var e=Ju(),r=Zu(),i=to();t.Settings=i.default;function n(u,o,c){if(typeof o=="function"){e.read(u,s(),o);return}e.read(u,s(o),c)}t.stat=n;function a(u,o){let c=s(o);return r.read(u,c)}t.statSync=a;function s(u={}){return u instanceof i.default?u:new i.default(u)}}),eo=R((t,e)=>{B();var r;e.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(r||(r=Promise.resolve())).then(i).catch(n=>setTimeout(()=>{throw n},0))}),ro=R((t,e)=>{B(),e.exports=i;var r=eo();function i(n,a){let s,u,o,c=!0;Array.isArray(n)?(s=[],u=n.length):(o=Object.keys(n),s={},u=o.length);function p(f){function h(){a&&a(f,s),a=null}c?r(h):h()}function l(f,h,m){s[f]=m,(--u===0||h)&&p(h)}u?o?o.forEach(function(f){n[f](function(h,m){l(f,h,m)})}):n.forEach(function(f,h){f(function(m,E){l(h,m,E)})}):p(null),c=!1}}),un=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var e=process.versions.node.split(".");if(e[0]===void 0||e[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(e[0],10),i=Number.parseInt(e[1],10),n=10,a=10,s=r>n,u=r===n&&i>=a;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=s||u}),no=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new e(i,n)}t.createDirentFromStats=r}),on=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.fs=void 0;var e=no();t.fs=e}),sn=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=void 0;function e(r,i,n){return r.endsWith(n)?r+i:r+n+i}t.joinPathSegments=e}),io=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=re(),r=ro(),i=un(),n=on(),a=sn();function s(f,h,m){if(!h.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){u(f,h,m);return}c(f,h,m)}t.read=s;function u(f,h,m){h.fs.readdir(f,{withFileTypes:!0},(E,g)=>{if(E!==null){p(m,E);return}let A=g.map(y=>({dirent:y,name:y.name,path:a.joinPathSegments(f,y.name,h.pathSegmentSeparator)}));if(!h.followSymbolicLinks){l(m,A);return}let d=A.map(y=>o(y,h));r(d,(y,v)=>{if(y!==null){p(m,y);return}l(m,v)})})}t.readdirWithFileTypes=u;function o(f,h){return m=>{if(!f.dirent.isSymbolicLink()){m(null,f);return}h.fs.stat(f.path,(E,g)=>{if(E!==null){if(h.throwErrorOnBrokenSymbolicLink){m(E);return}m(null,f);return}f.dirent=n.fs.createDirentFromStats(f.name,g),m(null,f)})}}function c(f,h,m){h.fs.readdir(f,(E,g)=>{if(E!==null){p(m,E);return}let A=g.map(d=>{let y=a.joinPathSegments(f,d,h.pathSegmentSeparator);return v=>{e.stat(y,h.fsStatSettings,(D,C)=>{if(D!==null){v(D);return}let b={name:d,path:y,dirent:n.fs.createDirentFromStats(d,C)};h.stats&&(b.stats=C),v(null,b)})}});r(A,(d,y)=>{if(d!==null){p(m,d);return}l(m,y)})})}t.readdir=c;function p(f,h){f(h)}function l(f,h){f(null,h)}}),uo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=re(),r=un(),i=on(),n=sn();function a(o,c){return!c.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(o,c):u(o,c)}t.read=a;function s(o,c){return c.fs.readdirSync(o,{withFileTypes:!0}).map(p=>{let l={dirent:p,name:p.name,path:n.joinPathSegments(o,p.name,c.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let f=c.fs.statSync(l.path);l.dirent=i.fs.createDirentFromStats(l.name,f)}catch(f){if(c.throwErrorOnBrokenSymbolicLink)throw f}return l})}t.readdirWithFileTypes=s;function u(o,c){return c.fs.readdirSync(o).map(p=>{let l=n.joinPathSegments(o,p,c.pathSegmentSeparator),f=e.statSync(l,c.fsStatSettings),h={name:p,path:l,dirent:i.fs.createDirentFromStats(p,f)};return c.stats&&(h.stats=f),h})}t.readdir=u}),oo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=W("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};function r(i){return i===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),i)}t.createFileSystemAdapter=r}),so=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=re(),i=oo(),n=class{constructor(a={}){this._options=a,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.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 r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(a,s){return a!=null?a:s}};t.default=n}),pr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.scandirSync=t.scandir=void 0;var e=io(),r=uo(),i=so();t.Settings=i.default;function n(u,o,c){if(typeof o=="function"){e.read(u,s(),o);return}e.read(u,s(o),c)}t.scandir=n;function a(u,o){let c=s(o);return r.read(u,c)}t.scandirSync=a;function s(u={}){return u instanceof i.default?u:new i.default(u)}}),ao=R((t,e)=>{"use strict";B();function r(i){var n=new i,a=n;function s(){var o=n;return o.next?n=o.next:(n=new i,a=n),o.next=null,o}function u(o){a.next=o,a=o}return{get:s,release:u}}e.exports=r}),co=R((t,e)=>{"use strict";B();var r=ao();function i(u,o,c){if(typeof u=="function"&&(c=o,o=u,u=null),c<1)throw new Error("fastqueue concurrency must be greater than 1");var p=r(a),l=null,f=null,h=0,m=null,E={push:C,drain:n,saturated:n,pause:A,paused:!1,concurrency:c,running:g,resume:v,idle:D,length:d,getQueue:y,unshift:b,empty:n,kill:F,killAndDrain:k,error:x};return E;function g(){return h}function A(){E.paused=!0}function d(){for(var T=l,I=0;T;)T=T.next,I++;return I}function y(){for(var T=l,I=[];T;)I.push(T.value),T=T.next;return I}function v(){if(E.paused){E.paused=!1;for(var T=0;T<E.concurrency;T++)h++,w()}}function D(){return h===0&&E.length()===0}function C(T,I){var _=p.get();_.context=u,_.release=w,_.value=T,_.callback=I||n,_.errorHandler=m,h===E.concurrency||E.paused?f?(f.next=_,f=_):(l=_,f=_,E.saturated()):(h++,o.call(u,_.value,_.worked))}function b(T,I){var _=p.get();_.context=u,_.release=w,_.value=T,_.callback=I||n,h===E.concurrency||E.paused?l?(_.next=l,l=_):(l=_,f=_,E.saturated()):(h++,o.call(u,_.value,_.worked))}function w(T){T&&p.release(T);var I=l;I?E.paused?h--:(f===l&&(f=null),l=I.next,I.next=null,o.call(u,I.value,I.worked),f===null&&E.empty()):--h===0&&E.drain()}function F(){l=null,f=null,E.drain=n}function k(){l=null,f=null,E.drain(),E.drain=n}function x(T){m=T}}function n(){}function a(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var u=this;this.worked=function(o,c){var p=u.callback,l=u.errorHandler,f=u.value;u.value=null,u.callback=n,u.errorHandler&&l(o,f),p.call(u.context,o,c),u.release(u)}}function s(u,o,c){typeof u=="function"&&(c=o,o=u,u=null);function p(A,d){o.call(this,A).then(function(y){d(null,y)},d)}var l=i(u,p,c),f=l.push,h=l.unshift;return l.push=m,l.unshift=E,l.drained=g,l;function m(A){var d=new Promise(function(y,v){f(A,function(D,C){if(D){v(D);return}y(C)})});return d.catch(n),d}function E(A){var d=new Promise(function(y,v){h(A,function(D,C){if(D){v(D);return}y(C)})});return d.catch(n),d}function g(){var A=l.drain,d=new Promise(function(y){l.drain=function(){A(),y()}});return d}}e.exports=i,e.exports.promise=s}),fr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function e(a,s){return a.errorFilter===null?!0:!a.errorFilter(s)}t.isFatalError=e;function r(a,s){return a===null||a(s)}t.isAppliedFilter=r;function i(a,s){return a.split(/[/\\]/).join(s)}t.replacePathSegmentSeparator=i;function n(a,s,u){return a===""?s:a.endsWith(u)?a+s:a+u+s}t.joinPathSegments=n}),an=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=fr(),r=class{constructor(i,n){this._root=i,this._settings=n,this._root=e.replacePathSegmentSeparator(i,n.pathSegmentSeparator)}};t.default=r}),cn=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("events"),r=pr(),i=co(),n=fr(),a=an(),s=class extends a.default{constructor(u,o){super(u,o),this._settings=o,this._scandir=r.scandir,this._emitter=new e.EventEmitter,this._queue=i(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(u){this._emitter.on("entry",u)}onError(u){this._emitter.once("error",u)}onEnd(u){this._emitter.once("end",u)}_pushToQueue(u,o){let c={directory:u,base:o};this._queue.push(c,p=>{p!==null&&this._handleError(p)})}_worker(u,o){this._scandir(u.directory,this._settings.fsScandirSettings,(c,p)=>{if(c!==null){o(c,void 0);return}for(let l of p)this._handleEntry(l,u.base);o(null,void 0)})}_handleError(u){this._isDestroyed||!n.isFatalError(this._settings,u)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",u))}_handleEntry(u,o){if(this._isDestroyed||this._isFatalError)return;let c=u.path;o!==void 0&&(u.path=n.joinPathSegments(o,u.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,u)&&this._emitEntry(u),u.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,u)&&this._pushToQueue(c,o===void 0?void 0:u.path)}_emitEntry(u){this._emitter.emit("entry",u)}};t.default=s}),lo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=cn(),r=class{constructor(a,s){this._root=a,this._settings=s,this._reader=new e.default(this._root,this._settings),this._storage=[]}read(a){this._reader.onError(s=>{i(a,s)}),this._reader.onEntry(s=>{this._storage.push(s)}),this._reader.onEnd(()=>{n(a,this._storage)}),this._reader.read()}};t.default=r;function i(a,s){a(s)}function n(a,s){a(null,s)}}),po=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=cn(),i=class{constructor(n,a){this._root=n,this._settings=a,this._reader=new r.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(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};t.default=i}),fo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=pr(),r=fr(),i=an(),n=class extends i.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(a,s){this._queue.add({directory:a,base:s})}_handleQueue(){for(let a of this._queue.values())this._handleDirectory(a.directory,a.base)}_handleDirectory(a,s){try{let u=this._scandir(a,this._settings.fsScandirSettings);for(let o of u)this._handleEntry(o,s)}catch(u){this._handleError(u)}}_handleError(a){if(r.isFatalError(this._settings,a))throw a}_handleEntry(a,s){let u=a.path;s!==void 0&&(a.path=r.joinPathSegments(s,a.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,a)&&this._pushToStorage(a),a.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(u,s===void 0?void 0:a.path)}_pushToStorage(a){this._storage.push(a)}};t.default=n}),ho=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=fo(),r=class{constructor(i,n){this._root=i,this._settings=n,this._reader=new e.default(this._root,this._settings)}read(){return this._reader.read()}};t.default=r}),mo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=pr(),i=class{constructor(n={}){this._options=n,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 r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,a){return n!=null?n:a}};t.default=i}),dr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.walkStream=t.walkSync=t.walk=void 0;var e=lo(),r=po(),i=ho(),n=mo();t.Settings=n.default;function a(c,p,l){if(typeof p=="function"){new e.default(c,o()).read(p);return}new e.default(c,o(p)).read(l)}t.walk=a;function s(c,p){let l=o(p);return new i.default(c,l).read()}t.walkSync=s;function u(c,p){let l=o(p);return new r.default(c,l).read()}t.walkStream=u;function o(c={}){return c instanceof n.default?c:new n.default(c)}}),hr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=re(),i=Vt(),n=class{constructor(a){this._settings=a,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(a){return e.resolve(this._settings.cwd,a)}_makeEntry(a,s){let u={name:s,path:s,dirent:i.fs.createDirentFromStats(s,a)};return this._settings.stats&&(u.stats=a),u}_isFatalError(a){return!i.errno.isEnoentCodeError(a)&&!this._settings.suppressErrors}};t.default=n}),ln=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=re(),i=dr(),n=hr(),a=class extends n.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=r.stat}dynamic(s,u){return this._walkStream(s,u)}static(s,u){let o=s.map(this._getFullEntryPath,this),c=new e.PassThrough({objectMode:!0});c._write=(p,l,f)=>this._getEntry(o[p],s[p],u).then(h=>{h!==null&&u.entryFilter(h)&&c.push(h),p===o.length-1&&c.end(),f()}).catch(f);for(let p=0;p<o.length;p++)c.write(p);return c}_getEntry(s,u,o){return this._getStat(s).then(c=>this._makeEntry(c,u)).catch(c=>{if(o.errorFilter(c))return null;throw c})}_getStat(s){return new Promise((u,o)=>{this._stat(s,this._fsStatSettings,(c,p)=>c===null?u(p):o(c))})}};t.default=a}),Do=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=dr(),r=hr(),i=ln(),n=class extends r.default{constructor(){super(...arguments),this._walkAsync=e.walk,this._readerStream=new i.default(this._settings)}dynamic(a,s){return new Promise((u,o)=>{this._walkAsync(a,s,(c,p)=>{c===null?u(p):o(c)})})}async static(a,s){let u=[],o=this._readerStream.static(a,s);return new Promise((c,p)=>{o.once("error",p),o.on("data",l=>u.push(l)),o.once("end",()=>c(u))})}};t.default=n}),yo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i,n,a){this._patterns=i,this._settings=n,this._micromatchOptions=a,this._storage=[],this._fillStorage()}_fillStorage(){let i=e.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let n of i){let a=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(a);this._storage.push({complete:s.length<=1,pattern:n,segments:a,sections:s})}}_getPatternSegments(i){return e.pattern.getPatternParts(i,this._micromatchOptions).map(n=>e.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:e.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(i){return e.array.splitWhen(i,n=>n.dynamic&&e.pattern.hasGlobStar(n.pattern))}};t.default=r}),go=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=yo(),r=class extends e.default{match(i){let n=i.split("/"),a=n.length,s=this._storage.filter(u=>!u.complete||u.segments.length>a);for(let u of s){let o=u.sections[0];if(!u.complete&&a>o.length||n.every((c,p)=>{let l=u.segments[p];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};t.default=r}),Eo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=go(),i=class{constructor(n,a){this._settings=n,this._micromatchOptions=a}getFilter(n,a,s){let u=this._getMatcher(a),o=this._getNegativePatternsRe(s);return c=>this._filter(n,c,u,o)}_getMatcher(n){return new r.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let a=n.filter(e.pattern.isAffectDepthOfReadingPattern);return e.pattern.convertPatternsToRe(a,this._micromatchOptions)}_filter(n,a,s,u){if(this._isSkippedByDeep(n,a.path)||this._isSkippedSymbolicLink(a))return!1;let o=e.path.removeLeadingDotSegment(a.path);return this._isSkippedByPositivePatterns(o,s)?!1:this._isSkippedByNegativePatterns(o,u)}_isSkippedByDeep(n,a){return this._settings.deep===1/0?!1:this._getEntryLevel(n,a)>=this._settings.deep}_getEntryLevel(n,a){let s=a.split("/").length;if(n==="")return s;let u=n.split("/").length;return s-u}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,a){return!this._settings.baseNameMatch&&!a.match(n)}_isSkippedByNegativePatterns(n,a){return!e.pattern.matchAny(n,a)}};t.default=i}),Ao=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i,n){this._settings=i,this._micromatchOptions=n,this.index=new Map}getFilter(i,n){let a=e.pattern.convertPatternsToRe(i,this._micromatchOptions),s=e.pattern.convertPatternsToRe(n,this._micromatchOptions);return u=>this._filter(u,a,s)}_filter(i,n,a){if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i)||this._isSkippedByAbsoluteNegativePatterns(i.path,a))return!1;let s=this._settings.baseNameMatch?i.name:i.path,u=i.dirent.isDirectory(),o=this._isMatchToPatterns(s,n,u)&&!this._isMatchToPatterns(i.path,a,u);return this._settings.unique&&o&&this._createIndexRecord(i),o}_isDuplicateEntry(i){return this.index.has(i.path)}_createIndexRecord(i){this.index.set(i.path,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(i,n){if(!this._settings.absolute)return!1;let a=e.path.makeAbsolute(this._settings.cwd,i);return e.pattern.matchAny(a,n)}_isMatchToPatterns(i,n,a){let s=e.path.removeLeadingDotSegment(i),u=e.pattern.matchAny(s,n);return!u&&a?e.pattern.matchAny(s+"/",n):u}};t.default=r}),vo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return e.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};t.default=r}),Co=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vt(),r=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let n=i.path;return this._settings.absolute&&(n=e.path.makeAbsolute(this._settings.cwd,n),n=e.path.unixify(n)),this._settings.markDirectories&&i.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:n}):n}};t.default=r}),mr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=Eo(),i=Ao(),n=vo(),a=Co(),s=class{constructor(u){this._settings=u,this.errorFilter=new n.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new a.default(this._settings)}_getRootDirectory(u){return e.resolve(this._settings.cwd,u.base)}_getReaderOptions(u){let o=u.base==="."?"":u.base;return{basePath:o,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(o,u.positive,u.negative),entryFilter:this.entryFilter.getFilter(u.positive,u.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}}};t.default=s}),bo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Do(),r=mr(),i=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}async read(n){let a=this._getRootDirectory(n),s=this._getReaderOptions(n);return(await this.api(a,n,s)).map(u=>s.transform(u))}api(n,a,s){return a.dynamic?this._reader.dynamic(n,s):this._reader.static(a.patterns,s)}};t.default=i}),So=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=ln(),i=mr(),n=class extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(a){let s=this._getRootDirectory(a),u=this._getReaderOptions(a),o=this.api(s,a,u),c=new e.Readable({objectMode:!0,read:()=>{}});return o.once("error",p=>c.emit("error",p)).on("data",p=>c.emit("data",u.transform(p))).once("end",()=>c.emit("end")),c.once("close",()=>o.destroy()),c}api(a,s,u){return s.dynamic?this._reader.dynamic(a,u):this._reader.static(s.patterns,u)}};t.default=n}),Fo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=re(),r=dr(),i=hr(),n=class extends i.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=e.statSync}dynamic(a,s){return this._walkSync(a,s)}static(a,s){let u=[];for(let o of a){let c=this._getFullEntryPath(o),p=this._getEntry(c,o,s);p===null||!s.entryFilter(p)||u.push(p)}return u}_getEntry(a,s,u){try{let o=this._getStat(a);return this._makeEntry(o,s)}catch(o){if(u.errorFilter(o))return null;throw o}}_getStat(a){return this._statSync(a,this._fsStatSettings)}};t.default=n}),_o=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Fo(),r=mr(),i=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(n){let a=this._getRootDirectory(n),s=this._getReaderOptions(n);return this.api(a,n,s).map(s.transform)}api(n,a,s){return a.dynamic?this._reader.dynamic(n,s):this._reader.static(a.patterns,s)}};t.default=i}),wo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var e=W("fs"),r=W("os"),i=Math.max(r.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:e.lstat,lstatSync:e.lstatSync,stat:e.stat,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};var n=class{constructor(a={}){this._options=a,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)}_getValue(a,s){return a===void 0?s:a}_getFileSystemMethods(a={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),a)}};t.default=n}),xo=R((t,e)=>{"use strict";B();var r=Qu(),i=Xu(),n=bo(),a=So(),s=_o(),u=wo(),o=Vt();async function c(f,h){l(f);let m=p(f,n.default,h),E=await Promise.all(m);return o.array.flatten(E)}(function(f){function h(d,y){l(d);let v=p(d,s.default,y);return o.array.flatten(v)}f.sync=h;function m(d,y){l(d);let v=p(d,a.default,y);return o.stream.merge(v)}f.stream=m;function E(d,y){l(d);let v=i.transform([].concat(d)),D=new u.default(y);return r.generate(v,D)}f.generateTasks=E;function g(d,y){l(d);let v=new u.default(y);return o.pattern.isDynamicPattern(d,v)}f.isDynamicPattern=g;function A(d){return l(d),o.path.escape(d)}f.escapePath=A})(c||(c={}));function p(f,h,m){let E=i.transform([].concat(f)),g=new u.default(m),A=r.generate(E,g),d=new h(g);return A.map(d.read,d)}function l(f){if(![].concat(f).every(h=>o.string.isString(h)&&!o.string.isEmpty(h)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}e.exports=c});B();B();function pn(t){return typeof t>"u"||t===null}function ko(t){return typeof t=="object"&&t!==null}function Bo(t){return Array.isArray(t)?t:pn(t)?[]:[t]}function Oo(t,e){var r,i,n,a;if(e)for(a=Object.keys(e),r=0,i=a.length;r<i;r+=1)n=a[r],t[n]=e[n];return t}function Ro(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function To(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Po=pn,Io=ko,Lo=Bo,No=Ro,jo=To,Mo=Oo,At={isNothing:Po,isObject:Io,toArray:Lo,repeat:No,isNegativeZero:jo,extend:Mo};function fn(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
22
22
|
|
23
23
|
`+t.mark.snippet),i+" "+r):i}function ce(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=fn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ce.prototype=Object.create(Error.prototype);ce.prototype.constructor=ce;ce.prototype.toString=function(t){return this.name+": "+fn(this,t)};var wt=ce;function tr(t,e,r,i,n){var a="",s="",u=Math.floor(n/2)-1;return i-e>u&&(a=" ... ",e=i-u+a.length),r-i>u&&(s=" ...",r=i+u-s.length),{str:a+t.slice(e,r).replace(/\t/g,"\u2192")+s,pos:i-e+a.length}}function er(t,e){return At.repeat(" ",e-t.length)+t}function $o(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,s=-1;a=r.exec(t.buffer);)n.push(a.index),i.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var u="",o,c,p=Math.min(t.line+e.linesAfter,n.length).toString().length,l=e.maxLength-(e.indent+p+3);for(o=1;o<=e.linesBefore&&!(s-o<0);o++)c=tr(t.buffer,i[s-o],n[s-o],t.position-(i[s]-i[s-o]),l),u=At.repeat(" ",e.indent)+er((t.line-o+1).toString(),p)+" | "+c.str+`
|
24
24
|
`+u;for(c=tr(t.buffer,i[s],n[s],t.position,l),u+=At.repeat(" ",e.indent)+er((t.line+1).toString(),p)+" | "+c.str+`
|
25
25
|
`,u+=At.repeat("-",e.indent+p+3+c.pos)+`^
|
26
26
|
`,o=1;o<=e.linesAfter&&!(s+o>=n.length);o++)c=tr(t.buffer,i[s+o],n[s+o],t.position-(i[s]-i[s+o]),l),u+=At.repeat(" ",e.indent)+er((t.line+o+1).toString(),p)+" | "+c.str+`
|
27
27
|
`;return u.replace(/\n$/,"")}var Ho=$o,Go=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Uo=["scalar","sequence","mapping"];function Wo(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Vo(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Go.indexOf(r)===-1)throw new wt('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Wo(e.styleAliases||null),Uo.indexOf(this.kind)===-1)throw new wt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var bt=Vo;function Gr(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(a,s){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=s)}),r[n]=i}),r}function qo(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function ir(t){return this.extend(t)}ir.prototype.extend=function(t){var e=[],r=[];if(t instanceof bt)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new wt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.forEach(function(n){if(!(n instanceof bt))throw new wt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new wt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new wt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(n){if(!(n instanceof bt))throw new wt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(ir.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=Gr(i,"implicit"),i.compiledExplicit=Gr(i,"explicit"),i.compiledTypeMap=qo(i.compiledImplicit,i.compiledExplicit),i};var dn=ir,hn=new bt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),mn=new bt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Dn=new bt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),yn=new dn({explicit:[hn,mn,Dn]});function Ko(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Yo(){return null}function Qo(t){return t===null}var gn=new bt("tag:yaml.org,2002:null",{kind:"scalar",resolve:Ko,construct:Yo,predicate:Qo,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Xo(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Jo(t){return t==="true"||t==="True"||t==="TRUE"}function Zo(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var En=new bt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Xo,construct:Jo,predicate:Zo,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function zo(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function ts(t){return 48<=t&&t<=55}function es(t){return 48<=t&&t<=57}function rs(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!zo(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!ts(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!es(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function ns(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function is(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!At.isNegativeZero(t)}var An=new bt("tag:yaml.org,2002:int",{kind:"scalar",resolve:rs,construct:ns,predicate:is,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),us=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function os(t){return!(t===null||!us.test(t)||t[t.length-1]==="_")}function ss(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var as=/^[-+]?[0-9]+e/;function cs(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(At.isNegativeZero(t))return"-0.0";return r=t.toString(10),as.test(r)?r.replace("e",".e"):r}function ls(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||At.isNegativeZero(t))}var vn=new bt("tag:yaml.org,2002:float",{kind:"scalar",resolve:os,construct:ss,predicate:ls,represent:cs,defaultStyle:"lowercase"}),Cn=yn.extend({implicit:[gn,En,An,vn]}),bn=Cn,Sn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Fn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ps(t){return t===null?!1:Sn.exec(t)!==null||Fn.exec(t)!==null}function fs(t){var e,r,i,n,a,s,u,o=0,c=null,p,l,f;if(e=Sn.exec(t),e===null&&(e=Fn.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(a=+e[4],s=+e[5],u=+e[6],e[7]){for(o=e[7].slice(0,3);o.length<3;)o+="0";o=+o}return e[9]&&(p=+e[10],l=+(e[11]||0),c=(p*60+l)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,a,s,u,o)),c&&f.setTime(f.getTime()-c),f}function ds(t){return t.toISOString()}var _n=new bt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ps,construct:fs,instanceOf:Date,represent:ds});function hs(t){return t==="<<"||t===null}var wn=new bt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:hs}),Dr=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
28
|
-
\r`;function ms(t){if(t===null)return!1;var e,r,i=0,n=t.length,a=Dr;for(r=0;r<n;r++)if(e=a.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function Ds(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,a=Dr,s=0,u=[];for(e=0;e<n;e++)e%4===0&&e&&(u.push(s>>16&255),u.push(s>>8&255),u.push(s&255)),s=s<<6|a.indexOf(i.charAt(e));return r=n%4*6,r===0?(u.push(s>>16&255),u.push(s>>8&255),u.push(s&255)):r===18?(u.push(s>>10&255),u.push(s>>2&255)):r===12&&u.push(s>>4&255),new Uint8Array(u)}function ys(t){var e="",r=0,i,n,a=t.length,s=Dr;for(i=0;i<a;i++)i%3===0&&i&&(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[i];return n=a%3,n===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):n===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):n===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}function gs(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var xn=new bt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ms,construct:Ds,predicate:gs,represent:ys}),Es=Object.prototype.hasOwnProperty,As=Object.prototype.toString;function vs(t){if(t===null)return!0;var e=[],r,i,n,a,s,u=t;for(r=0,i=u.length;r<i;r+=1){if(n=u[r],s=!1,As.call(n)!=="[object Object]")return!1;for(a in n)if(Es.call(n,a))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(a)===-1)e.push(a);else return!1}return!0}function Cs(t){return t!==null?t:[]}var
|
29
|
-
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function Ls(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Ln=new Array(256),Nn=new Array(256);for(Yt=0;Yt<256;Yt++)Ln[Yt]=Vr(Yt)?1:0,Nn[Yt]=Vr(Yt);var Yt;function Ns(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||yr,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function jn(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Ho(r),new wt(e,r)}function Y(t,e){throw jn(t,e)}function we(t,e){t.onWarning&&t.onWarning.call(null,jn(t,e))}var qr={YAML:function(t,e,r){var i,n,a;t.version!==null&&Y(t,"duplication of %YAML directive"),r.length!==1&&Y(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&Y(t,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),a=parseInt(i[2],10),n!==1&&Y(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&we(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var i,n;r.length!==2&&Y(t,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],Pn.test(i)||Y(t,"ill-formed tag handle (first argument) of the TAG directive"),Wt.call(t.tagMap,i)&&Y(t,'there is a previously declared suffix for "'+i+'" tag handle'),In.test(n)||Y(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{Y(t,"tag prefix is malformed: "+n)}t.tagMap[i]=n}};function Ut(t,e,r,i){var n,a,s,u;if(e<r){if(u=t.input.slice(e,r),i)for(n=0,a=u.length;n<a;n+=1)s=u.charCodeAt(n),s===9||32<=s&&s<=1114111||Y(t,"expected valid JSON character");else
|
30
|
-
`,e-1))}function js(t,e,r){var i,n,a,s,u,o,c,p,l=t.kind,f=t.result,h;if(h=t.input.charCodeAt(t.position),xt(h)||zt(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(n=t.input.charCodeAt(t.position+1),xt(n)||r&&zt(n)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,u=!1;h!==0;){if(h===58){if(n=t.input.charCodeAt(t.position+1),xt(n)||r&&zt(n))break}else if(h===35){if(i=t.input.charCodeAt(t.position-1),xt(i))break}else{if(t.position===t.lineStart&&Re(t)||r&&zt(h))break;if(It(h))if(o=t.line,c=t.lineStart,p=t.lineIndent,yt(t,!1,-1),t.lineIndent>=e){u=!0,h=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=o,t.lineStart=c,t.lineIndent=p;break}}u&&(Ut(t,a,s,!1),Er(t,t.line-o),a=s=t.position,u=!1),Xt(h)||(s=t.position+1),h=t.input.charCodeAt(++t.position)}return Ut(t,a,s,!1),t.result?!0:(t.kind=l,t.result=f,!1)}function Ms(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Ut(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else It(r)?(Ut(t,i,n,!0),Er(t,yt(t,!1,e)),i=n=t.position):t.position===t.lineStart&&Re(t)?Y(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Y(t,"unexpected end of the stream within a single quoted scalar")}function $s(t,e){var r,i,n,a,s,u;if(u=t.input.charCodeAt(t.position),u!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(u=t.input.charCodeAt(t.position))!==0;){if(u===34)return Ut(t,r,t.position,!0),t.position++,!0;if(u===92){if(Ut(t,r,t.position,!0),u=t.input.charCodeAt(++t.position),It(u))yt(t,!1,e);else if(u<256&&Ln[u])t.result+=Nn[u],t.position++;else if((s=Ps(u))>0){for(n=s,a=0;n>0;n--)u=t.input.charCodeAt(++t.position),(s=Ts(u))>=0?a=(a<<4)+s:Y(t,"expected hexadecimal character");t.result+=Ls(a),t.position++}else Y(t,"unknown escape sequence");r=i=t.position}else It(u)?(Ut(t,r,i,!0),Er(t,yt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Re(t)?Y(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Y(t,"unexpected end of the stream within a double quoted scalar")}function Hs(t,e){var r=!0,i,n,a,s=t.tag,u,o=t.anchor,c,p,l,f,h,m=Object.create(null),E,g,A,d;if(d=t.input.charCodeAt(t.position),d===91)p=93,h=!1,u=[];else if(d===123)p=125,h=!0,u={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),d=t.input.charCodeAt(++t.position);d!==0;){if(yt(t,!0,e),d=t.input.charCodeAt(t.position),d===p)return t.position++,t.tag=s,t.anchor=o,t.kind=h?"mapping":"sequence",t.result=u,!0;r?d===44&&Y(t,"expected the node content, but found ','"):Y(t,"missed comma between flow collection entries"),g=E=A=null,l=f=!1,d===63&&(c=t.input.charCodeAt(t.position+1),xt(c)&&(l=f=!0,t.position++,yt(t,!0,e))),i=t.line,n=t.lineStart,a=t.position,ee(t,e,Fe,!1,!0),g=t.tag,E=t.result,yt(t,!0,e),d=t.input.charCodeAt(t.position),(f||t.line===i)&&d===58&&(l=!0,d=t.input.charCodeAt(++t.position),yt(t,!0,e),ee(t,e,Fe,!1,!0),A=t.result),h?te(t,u,m,g,E,A,i,n,a):l?u.push(te(t,null,m,g,E,A,i,n,a)):u.push(E),yt(t,!0,e),d=t.input.charCodeAt(t.position),d===44?(r=!0,d=t.input.charCodeAt(++t.position)):r=!1}Y(t,"unexpected end of the stream within a flow collection")}function Gs(t,e){var r,i,n=rr,a=!1,s=!1,u=e,o=0,c=!1,p,l;if(l=t.input.charCodeAt(t.position),l===124)i=!1;else if(l===62)i=!0;else return!1;for(t.kind="scalar",t.result="";l!==0;)if(l=t.input.charCodeAt(++t.position),l===43||l===45)rr===n?n=l===43?Ur:
|
28
|
+
\r`;function ms(t){if(t===null)return!1;var e,r,i=0,n=t.length,a=Dr;for(r=0;r<n;r++)if(e=a.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function Ds(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,a=Dr,s=0,u=[];for(e=0;e<n;e++)e%4===0&&e&&(u.push(s>>16&255),u.push(s>>8&255),u.push(s&255)),s=s<<6|a.indexOf(i.charAt(e));return r=n%4*6,r===0?(u.push(s>>16&255),u.push(s>>8&255),u.push(s&255)):r===18?(u.push(s>>10&255),u.push(s>>2&255)):r===12&&u.push(s>>4&255),new Uint8Array(u)}function ys(t){var e="",r=0,i,n,a=t.length,s=Dr;for(i=0;i<a;i++)i%3===0&&i&&(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[i];return n=a%3,n===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):n===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):n===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}function gs(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var xn=new bt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ms,construct:Ds,predicate:gs,represent:ys}),Es=Object.prototype.hasOwnProperty,As=Object.prototype.toString;function vs(t){if(t===null)return!0;var e=[],r,i,n,a,s,u=t;for(r=0,i=u.length;r<i;r+=1){if(n=u[r],s=!1,As.call(n)!=="[object Object]")return!1;for(a in n)if(Es.call(n,a))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(a)===-1)e.push(a);else return!1}return!0}function Cs(t){return t!==null?t:[]}var kn=new bt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:vs,construct:Cs}),bs=Object.prototype.toString;function Ss(t){if(t===null)return!0;var e,r,i,n,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1){if(i=s[e],bs.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[e]=[n[0],i[n[0]]]}return!0}function Fs(t){if(t===null)return[];var e,r,i,n,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1)i=s[e],n=Object.keys(i),a[e]=[n[0],i[n[0]]];return a}var Bn=new bt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ss,construct:Fs}),_s=Object.prototype.hasOwnProperty;function ws(t){if(t===null)return!0;var e,r=t;for(e in r)if(_s.call(r,e)&&r[e]!==null)return!1;return!0}function xs(t){return t!==null?t:{}}var On=new bt("tag:yaml.org,2002:set",{kind:"mapping",resolve:ws,construct:xs}),yr=bn.extend({implicit:[_n,wn],explicit:[xn,kn,Bn,On]}),Wt=Object.prototype.hasOwnProperty,Fe=1,Rn=2,Tn=3,_e=4,rr=1,ks=2,Ur=3,Bs=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Os=/[\x85\u2028\u2029]/,Rs=/[,\[\]\{\}]/,Pn=/^(?:!|!!|![a-z\-]+!)$/i,In=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Wr(t){return Object.prototype.toString.call(t)}function It(t){return t===10||t===13}function Xt(t){return t===9||t===32}function xt(t){return t===9||t===32||t===10||t===13}function zt(t){return t===44||t===91||t===93||t===123||t===125}function Ts(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Ps(t){return t===120?2:t===117?4:t===85?8:0}function Is(t){return 48<=t&&t<=57?t-48:-1}function Vr(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
29
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function Ls(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Ln=new Array(256),Nn=new Array(256);for(Yt=0;Yt<256;Yt++)Ln[Yt]=Vr(Yt)?1:0,Nn[Yt]=Vr(Yt);var Yt;function Ns(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||yr,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function jn(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Ho(r),new wt(e,r)}function Y(t,e){throw jn(t,e)}function we(t,e){t.onWarning&&t.onWarning.call(null,jn(t,e))}var qr={YAML:function(t,e,r){var i,n,a;t.version!==null&&Y(t,"duplication of %YAML directive"),r.length!==1&&Y(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&Y(t,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),a=parseInt(i[2],10),n!==1&&Y(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&we(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var i,n;r.length!==2&&Y(t,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],Pn.test(i)||Y(t,"ill-formed tag handle (first argument) of the TAG directive"),Wt.call(t.tagMap,i)&&Y(t,'there is a previously declared suffix for "'+i+'" tag handle'),In.test(n)||Y(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{Y(t,"tag prefix is malformed: "+n)}t.tagMap[i]=n}};function Ut(t,e,r,i){var n,a,s,u;if(e<r){if(u=t.input.slice(e,r),i)for(n=0,a=u.length;n<a;n+=1)s=u.charCodeAt(n),s===9||32<=s&&s<=1114111||Y(t,"expected valid JSON character");else Bs.test(u)&&Y(t,"the stream contains non-printable characters");t.result+=u}}function Kr(t,e,r,i){var n,a,s,u;for(At.isObject(r)||Y(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,u=n.length;s<u;s+=1)a=n[s],Wt.call(e,a)||(e[a]=r[a],i[a]=!0)}function te(t,e,r,i,n,a,s,u,o){var c,p;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,p=n.length;c<p;c+=1)Array.isArray(n[c])&&Y(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Wr(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Wr(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,p=a.length;c<p;c+=1)Kr(t,e,a[c],r);else Kr(t,e,a,r);else!t.json&&!Wt.call(r,n)&&Wt.call(e,n)&&(t.line=s||t.line,t.lineStart=u||t.lineStart,t.position=o||t.position,Y(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[n]=a,delete r[n];return e}function gr(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Y(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function yt(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Xt(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(It(n))for(gr(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&we(t,"deficient indentation"),i}function Re(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||xt(r)))}function Er(t,e){e===1?t.result+=" ":e>1&&(t.result+=At.repeat(`
|
30
|
+
`,e-1))}function js(t,e,r){var i,n,a,s,u,o,c,p,l=t.kind,f=t.result,h;if(h=t.input.charCodeAt(t.position),xt(h)||zt(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(n=t.input.charCodeAt(t.position+1),xt(n)||r&&zt(n)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,u=!1;h!==0;){if(h===58){if(n=t.input.charCodeAt(t.position+1),xt(n)||r&&zt(n))break}else if(h===35){if(i=t.input.charCodeAt(t.position-1),xt(i))break}else{if(t.position===t.lineStart&&Re(t)||r&&zt(h))break;if(It(h))if(o=t.line,c=t.lineStart,p=t.lineIndent,yt(t,!1,-1),t.lineIndent>=e){u=!0,h=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=o,t.lineStart=c,t.lineIndent=p;break}}u&&(Ut(t,a,s,!1),Er(t,t.line-o),a=s=t.position,u=!1),Xt(h)||(s=t.position+1),h=t.input.charCodeAt(++t.position)}return Ut(t,a,s,!1),t.result?!0:(t.kind=l,t.result=f,!1)}function Ms(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Ut(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else It(r)?(Ut(t,i,n,!0),Er(t,yt(t,!1,e)),i=n=t.position):t.position===t.lineStart&&Re(t)?Y(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Y(t,"unexpected end of the stream within a single quoted scalar")}function $s(t,e){var r,i,n,a,s,u;if(u=t.input.charCodeAt(t.position),u!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(u=t.input.charCodeAt(t.position))!==0;){if(u===34)return Ut(t,r,t.position,!0),t.position++,!0;if(u===92){if(Ut(t,r,t.position,!0),u=t.input.charCodeAt(++t.position),It(u))yt(t,!1,e);else if(u<256&&Ln[u])t.result+=Nn[u],t.position++;else if((s=Ps(u))>0){for(n=s,a=0;n>0;n--)u=t.input.charCodeAt(++t.position),(s=Ts(u))>=0?a=(a<<4)+s:Y(t,"expected hexadecimal character");t.result+=Ls(a),t.position++}else Y(t,"unknown escape sequence");r=i=t.position}else It(u)?(Ut(t,r,i,!0),Er(t,yt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Re(t)?Y(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Y(t,"unexpected end of the stream within a double quoted scalar")}function Hs(t,e){var r=!0,i,n,a,s=t.tag,u,o=t.anchor,c,p,l,f,h,m=Object.create(null),E,g,A,d;if(d=t.input.charCodeAt(t.position),d===91)p=93,h=!1,u=[];else if(d===123)p=125,h=!0,u={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),d=t.input.charCodeAt(++t.position);d!==0;){if(yt(t,!0,e),d=t.input.charCodeAt(t.position),d===p)return t.position++,t.tag=s,t.anchor=o,t.kind=h?"mapping":"sequence",t.result=u,!0;r?d===44&&Y(t,"expected the node content, but found ','"):Y(t,"missed comma between flow collection entries"),g=E=A=null,l=f=!1,d===63&&(c=t.input.charCodeAt(t.position+1),xt(c)&&(l=f=!0,t.position++,yt(t,!0,e))),i=t.line,n=t.lineStart,a=t.position,ee(t,e,Fe,!1,!0),g=t.tag,E=t.result,yt(t,!0,e),d=t.input.charCodeAt(t.position),(f||t.line===i)&&d===58&&(l=!0,d=t.input.charCodeAt(++t.position),yt(t,!0,e),ee(t,e,Fe,!1,!0),A=t.result),h?te(t,u,m,g,E,A,i,n,a):l?u.push(te(t,null,m,g,E,A,i,n,a)):u.push(E),yt(t,!0,e),d=t.input.charCodeAt(t.position),d===44?(r=!0,d=t.input.charCodeAt(++t.position)):r=!1}Y(t,"unexpected end of the stream within a flow collection")}function Gs(t,e){var r,i,n=rr,a=!1,s=!1,u=e,o=0,c=!1,p,l;if(l=t.input.charCodeAt(t.position),l===124)i=!1;else if(l===62)i=!0;else return!1;for(t.kind="scalar",t.result="";l!==0;)if(l=t.input.charCodeAt(++t.position),l===43||l===45)rr===n?n=l===43?Ur:ks:Y(t,"repeat of a chomping mode identifier");else if((p=Is(l))>=0)p===0?Y(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Y(t,"repeat of an indentation width identifier"):(u=e+p-1,s=!0);else break;if(Xt(l)){do l=t.input.charCodeAt(++t.position);while(Xt(l));if(l===35)do l=t.input.charCodeAt(++t.position);while(!It(l)&&l!==0)}for(;l!==0;){for(gr(t),t.lineIndent=0,l=t.input.charCodeAt(t.position);(!s||t.lineIndent<u)&&l===32;)t.lineIndent++,l=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>u&&(u=t.lineIndent),It(l)){o++;continue}if(t.lineIndent<u){n===Ur?t.result+=At.repeat(`
|
31
31
|
`,a?1+o:o):n===rr&&a&&(t.result+=`
|
32
32
|
`);break}for(i?Xt(l)?(c=!0,t.result+=At.repeat(`
|
33
33
|
`,a?1+o:o)):c?(c=!1,t.result+=At.repeat(`
|
@@ -37,7 +37,7 @@ GFS4: `),console.error(d)}),r[u]||(f=global[u]||[],p(r,f),r.close=function(d){fu
|
|
37
37
|
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new Ns(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Y(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Ks(r);return r.documents}function Ys(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=Mn(t,r);if(typeof e!="function")return i;for(var n=0,a=i.length;n<a;n+=1)e(i[n])}function Qs(t,e){var r=Mn(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new wt("expected a single document in the stream, but found more")}}var Xs=Ys,Js=Qs,$n={loadAll:Xs,load:Js},Hn=Object.prototype.toString,Gn=Object.prototype.hasOwnProperty,Ar=65279,Zs=9,le=10,zs=13,ta=32,ea=33,ra=34,ur=35,na=37,ia=38,ua=39,oa=42,Un=44,sa=45,xe=58,aa=61,ca=62,la=63,pa=64,Wn=91,Vn=93,fa=96,qn=123,da=124,Kn=125,St={};St[0]="\\0";St[7]="\\a";St[8]="\\b";St[9]="\\t";St[10]="\\n";St[11]="\\v";St[12]="\\f";St[13]="\\r";St[27]="\\e";St[34]='\\"';St[92]="\\\\";St[133]="\\N";St[160]="\\_";St[8232]="\\L";St[8233]="\\P";var ha=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ma=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Da(t,e){var r,i,n,a,s,u,o;if(e===null)return{};for(r={},i=Object.keys(e),n=0,a=i.length;n<a;n+=1)s=i[n],u=String(e[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),o=t.compiledTypeMap.fallback[s],o&&Gn.call(o.styleAliases,u)&&(u=o.styleAliases[u]),r[s]=u;return r}function ya(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new wt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+At.repeat("0",i-e.length)+e}var ga=1,pe=2;function Ea(t){this.schema=t.schema||yr,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=At.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Da(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?pe:ga,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qr(t,e){for(var r=At.repeat(" ",e),i=0,n=-1,a="",s,u=t.length;i<u;)n=t.indexOf(`
|
38
38
|
`,i),n===-1?(s=t.slice(i),i=u):(s=t.slice(i,n+1),i=n+1),s.length&&s!==`
|
39
39
|
`&&(a+=r),a+=s;return a}function or(t,e){return`
|
40
|
-
`+At.repeat(" ",t.indent*e)}function Aa(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function
|
40
|
+
`+At.repeat(" ",t.indent*e)}function Aa(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function ke(t){return t===ta||t===Zs}function fe(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Ar||65536<=t&&t<=1114111}function Xr(t){return fe(t)&&t!==Ar&&t!==zs&&t!==le}function Jr(t,e,r){var i=Xr(t),n=i&&!ke(t);return(r?i:i&&t!==Un&&t!==Wn&&t!==Vn&&t!==qn&&t!==Kn)&&t!==ur&&!(e===xe&&!n)||Xr(e)&&!ke(e)&&t===ur||e===xe&&n}function va(t){return fe(t)&&t!==Ar&&!ke(t)&&t!==sa&&t!==la&&t!==xe&&t!==Un&&t!==Wn&&t!==Vn&&t!==qn&&t!==Kn&&t!==ur&&t!==ia&&t!==oa&&t!==ea&&t!==da&&t!==aa&&t!==ca&&t!==ua&&t!==ra&&t!==na&&t!==pa&&t!==fa}function Ca(t){return!ke(t)&&t!==xe}function se(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Yn(t){var e=/^\n* /;return e.test(t)}var Qn=1,sr=2,Xn=3,Jn=4,Zt=5;function ba(t,e,r,i,n,a,s,u){var o,c=0,p=null,l=!1,f=!1,h=i!==-1,m=-1,E=va(se(t,0))&&Ca(se(t,t.length-1));if(e||s)for(o=0;o<t.length;c>=65536?o+=2:o++){if(c=se(t,o),!fe(c))return Zt;E=E&&Jr(c,p,u),p=c}else{for(o=0;o<t.length;c>=65536?o+=2:o++){if(c=se(t,o),c===le)l=!0,h&&(f=f||o-m-1>i&&t[m+1]!==" ",m=o);else if(!fe(c))return Zt;E=E&&Jr(c,p,u),p=c}f=f||h&&o-m-1>i&&t[m+1]!==" "}return!l&&!f?E&&!s&&!n(t)?Qn:a===pe?Zt:sr:r>9&&Yn(t)?Zt:s?a===pe?Zt:sr:f?Jn:Xn}function Sa(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===pe?'""':"''";if(!t.noCompatMode&&(ha.indexOf(e)!==-1||ma.test(e)))return t.quotingType===pe?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),u=i||t.flowLevel>-1&&r>=t.flowLevel;function o(c){return Aa(t,c)}switch(ba(e,u,t.indent,s,o,t.quotingType,t.forceQuotes&&!i,n)){case Qn:return e;case sr:return"'"+e.replace(/'/g,"''")+"'";case Xn:return"|"+Zr(e,t.indent)+zr(Qr(e,a));case Jn:return">"+Zr(e,t.indent)+zr(Qr(Fa(e,s),a));case Zt:return'"'+_a(e)+'"';default:throw new wt("impossible error: invalid scalar style")}}()}function Zr(t,e){var r=Yn(t)?String(e):"",i=t[t.length-1]===`
|
41
41
|
`,n=i&&(t[t.length-2]===`
|
42
42
|
`||t===`
|
43
43
|
`),a=n?"+":i?"":"-";return r+a+`
|
@@ -48,12 +48,12 @@ GFS4: `),console.error(d)}),r[u]||(f=global[u]||[],p(r,f),r.close=function(d){fu
|
|
48
48
|
`:"")+tn(o,e),n=a}return i}function tn(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,a,s=0,u=0,o="";i=r.exec(t);)u=i.index,u-n>e&&(a=s>n?s:u,o+=`
|
49
49
|
`+t.slice(n,a),n=a+1),s=u;return o+=`
|
50
50
|
`,t.length-n>e&&s>n?o+=t.slice(n,s)+`
|
51
|
-
`+t.slice(s+1):o+=t.slice(n),o.slice(1)}function _a(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=se(t,n),i=St[r],!i&&fe(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||ya(r);return e}function wa(t,e,r){var i="",n=t.tag,a,s,u;for(a=0,s=r.length;a<s;a+=1)u=r[a],t.replacer&&(u=t.replacer.call(r,String(a),u)),($t(t,e,u,!1,!1)||typeof u>"u"&&$t(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function en(t,e,r,i){var n="",a=t.tag,s,u,o;for(s=0,u=r.length;s<u;s+=1)o=r[s],t.replacer&&(o=t.replacer.call(r,String(s),o)),($t(t,e+1,o,!0,!0,!1,!0)||typeof o>"u"&&$t(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=or(t,e)),t.dump&&le===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=a,t.dump=n||"[]"}function xa(t,e,r){var i="",n=t.tag,a=Object.keys(r),s,u,o,c,p;for(s=0,u=a.length;s<u;s+=1)p="",i!==""&&(p+=", "),t.condenseFlow&&(p+='"'),o=a[s],c=r[o],t.replacer&&(c=t.replacer.call(r,o,c)),$t(t,e,o,!1,!1)&&(t.dump.length>1024&&(p+="? "),p+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),$t(t,e,c,!1,!1)&&(p+=t.dump,i+=p));t.tag=n,t.dump="{"+i+"}"}function
|
52
|
-
`:""}var Ra=Oa,Ta={dump:Ra};function vr(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Pa=bt,Ia=dn,La=yn,Na=Cn,ja=bn,Ma=yr,$a=$n.load,Ha=$n.loadAll,Ga=Ta.dump,Ua=wt,Wa={binary:xn,float:vn,map:Dn,null:gn,pairs:
|
51
|
+
`+t.slice(s+1):o+=t.slice(n),o.slice(1)}function _a(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=se(t,n),i=St[r],!i&&fe(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||ya(r);return e}function wa(t,e,r){var i="",n=t.tag,a,s,u;for(a=0,s=r.length;a<s;a+=1)u=r[a],t.replacer&&(u=t.replacer.call(r,String(a),u)),($t(t,e,u,!1,!1)||typeof u>"u"&&$t(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function en(t,e,r,i){var n="",a=t.tag,s,u,o;for(s=0,u=r.length;s<u;s+=1)o=r[s],t.replacer&&(o=t.replacer.call(r,String(s),o)),($t(t,e+1,o,!0,!0,!1,!0)||typeof o>"u"&&$t(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=or(t,e)),t.dump&&le===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=a,t.dump=n||"[]"}function xa(t,e,r){var i="",n=t.tag,a=Object.keys(r),s,u,o,c,p;for(s=0,u=a.length;s<u;s+=1)p="",i!==""&&(p+=", "),t.condenseFlow&&(p+='"'),o=a[s],c=r[o],t.replacer&&(c=t.replacer.call(r,o,c)),$t(t,e,o,!1,!1)&&(t.dump.length>1024&&(p+="? "),p+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),$t(t,e,c,!1,!1)&&(p+=t.dump,i+=p));t.tag=n,t.dump="{"+i+"}"}function ka(t,e,r,i){var n="",a=t.tag,s=Object.keys(r),u,o,c,p,l,f;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new wt("sortKeys must be a boolean or a function");for(u=0,o=s.length;u<o;u+=1)f="",(!i||n!=="")&&(f+=or(t,e)),c=s[u],p=r[c],t.replacer&&(p=t.replacer.call(r,c,p)),$t(t,e+1,c,!0,!0,!0)&&(l=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,l&&(t.dump&&le===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,l&&(f+=or(t,e)),$t(t,e+1,p,!0,l)&&(t.dump&&le===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=a,t.dump=n||"{}"}function rn(t,e,r){var i,n,a,s,u,o;for(n=r?t.explicitTypes:t.implicitTypes,a=0,s=n.length;a<s;a+=1)if(u=n[a],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof e=="object"&&e instanceof u.instanceOf)&&(!u.predicate||u.predicate(e))){if(r?u.multi&&u.representName?t.tag=u.representName(e):t.tag=u.tag:t.tag="?",u.represent){if(o=t.styleMap[u.tag]||u.defaultStyle,Hn.call(u.represent)==="[object Function]")i=u.represent(e,o);else if(Gn.call(u.represent,o))i=u.represent[o](e,o);else throw new wt("!<"+u.tag+'> tag resolver accepts not "'+o+'" style');t.dump=i}return!0}return!1}function $t(t,e,r,i,n,a,s){t.tag=null,t.dump=r,rn(t,r,!1)||rn(t,r,!0);var u=Hn.call(t.dump),o=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var p=u==="[object Object]"||u==="[object Array]",l,f;if(p&&(l=t.duplicates.indexOf(r),f=l!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[l])t.dump="*ref_"+l;else{if(p&&f&&!t.usedDuplicates[l]&&(t.usedDuplicates[l]=!0),u==="[object Object]")i&&Object.keys(t.dump).length!==0?(ka(t,e,t.dump,n),f&&(t.dump="&ref_"+l+t.dump)):(xa(t,e,t.dump),f&&(t.dump="&ref_"+l+" "+t.dump));else if(u==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?en(t,e-1,t.dump,n):en(t,e,t.dump,n),f&&(t.dump="&ref_"+l+t.dump)):(wa(t,e,t.dump),f&&(t.dump="&ref_"+l+" "+t.dump));else if(u==="[object String]")t.tag!=="?"&&Sa(t,t.dump,e,a,o);else{if(u==="[object Undefined]"||t.skipInvalid)return!1;throw new wt("unacceptable kind of an object to dump "+u)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function Ba(t,e){var r=[],i=[],n,a;for(ar(t,r,i),n=0,a=i.length;n<a;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(a)}function ar(t,e,r){var i,n,a;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,a=t.length;n<a;n+=1)ar(t[n],e,r);else for(i=Object.keys(t),n=0,a=i.length;n<a;n+=1)ar(t[i[n]],e,r)}function Oa(t,e){e=e||{};var r=new Ea(e);r.noRefs||Ba(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),$t(r,0,i,!0,!0)?r.dump+`
|
52
|
+
`:""}var Ra=Oa,Ta={dump:Ra};function vr(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Pa=bt,Ia=dn,La=yn,Na=Cn,ja=bn,Ma=yr,$a=$n.load,Ha=$n.loadAll,Ga=Ta.dump,Ua=wt,Wa={binary:xn,float:vn,map:Dn,null:gn,pairs:Bn,set:On,timestamp:_n,bool:En,int:An,merge:wn,omap:kn,seq:mn,str:hn},Va=vr("safeLoad","load"),qa=vr("safeLoadAll","loadAll"),Ka=vr("safeDump","dump"),Ya={Type:Pa,Schema:Ia,FAILSAFE_SCHEMA:La,JSON_SCHEMA:Na,CORE_SCHEMA:ja,DEFAULT_SCHEMA:Ma,load:$a,loadAll:Ha,dump:Ga,YAMLException:Ua,types:Wa,safeLoad:Va,safeLoadAll:qa,safeDump:Ka},Qa=Ya,Xa=Ht(xo()),Ja="turbo.json",nr={};function Za(t){try{if(ae.default.existsSync(Qt.default.join(t,"pnpm-workspace.yaml"))){let e=Qa.load(ae.default.readFileSync(Qt.default.join(t,"pnpm-workspace.yaml"),"utf8"));return(e==null?void 0:e.packages)||[]}else{let e=JSON.parse(ae.default.readFileSync(Qt.default.join(t,"package.json"),"utf8"));return(e==null?void 0:e.workspaces)||[]}}catch{return[]}}function za(t,e){var r;let i=ze(t,e),n=[],a=(r=e==null?void 0:e.cache)!=null?r:!0;if(a&&t&&nr[t])return nr[t];if(i){let s=Za(i).map(u=>`${u}/turbo.json`);(0,Xa.sync)([Ja,...s],{cwd:i,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(u=>Qt.default.join(i,u)).forEach(u=>{try{let o=ae.default.readFileSync(u,"utf8"),c=Ze.parse(o),p=Qt.default.dirname(u)===i;if(p){if("extends"in c)return}else if(!("extends"in c))return;n.push({config:c,turboConfigPath:u,workspacePath:Qt.default.dirname(u),isRootConfig:p})}catch(o){console.warn(o)}})}return a&&t&&(nr[t]=n),n}var Cr=za;var tc=R((t,e)=>{B(),e.exports=a,a.sync=s;var r=W("fs");function i(u,o){var c=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var p=0;p<c.length;p++){var l=c[p].toLowerCase();if(l&&u.substr(-l.length).toLowerCase()===l)return!0}return!1}function n(u,o,c){return!u.isSymbolicLink()&&!u.isFile()?!1:i(o,c)}function a(u,o,c){r.stat(u,function(p,l){c(p,p?!1:n(l,u,o))})}function s(u,o){return n(r.statSync(u),u,o)}}),ec=R((t,e)=>{B(),e.exports=i,i.sync=n;var r=W("fs");function i(u,o,c){r.stat(u,function(p,l){c(p,p?!1:a(l,o))})}function n(u,o){return a(r.statSync(u),o)}function a(u,o){return u.isFile()&&s(u,o)}function s(u,o){var c=u.mode,p=u.uid,l=u.gid,f=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),h=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),m=parseInt("100",8),E=parseInt("010",8),g=parseInt("001",8),A=m|E,d=c&g||c&E&&l===h||c&m&&p===f||c&A&&f===0;return d}}),rc=R((t,e)=>{B();var r=W("fs"),i;process.platform==="win32"||global.TESTING_WINDOWS?i=tc():i=ec(),e.exports=n,n.sync=a;function n(s,u,o){if(typeof u=="function"&&(o=u,u={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(c,p){n(s,u||{},function(l,f){l?p(l):c(f)})})}i(s,u||{},function(c,p){c&&(c.code==="EACCES"||u&&u.ignoreErrors)&&(c=null,p=!1),o(c,p)})}function a(s,u){try{return i.sync(s,u||{})}catch(o){if(u&&u.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),nc=R((t,e)=>{B();var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=W("path"),n=r?";":":",a=rc(),s=p=>Object.assign(new Error(`not found: ${p}`),{code:"ENOENT"}),u=(p,l)=>{let f=l.colon||n,h=p.match(/\//)||r&&p.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(f)],m=r?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",E=r?m.split(f):[""];return r&&p.indexOf(".")!==-1&&E[0]!==""&&E.unshift(""),{pathEnv:h,pathExt:E,pathExtExe:m}},o=(p,l,f)=>{typeof l=="function"&&(f=l,l={}),l||(l={});let{pathEnv:h,pathExt:m,pathExtExe:E}=u(p,l),g=[],A=y=>new Promise((v,D)=>{if(y===h.length)return l.all&&g.length?v(g):D(s(p));let C=h[y],b=/^".*"$/.test(C)?C.slice(1,-1):C,w=i.join(b,p),F=!b&&/^\.[\\\/]/.test(p)?p.slice(0,2)+w:w;v(d(F,y,0))}),d=(y,v,D)=>new Promise((C,b)=>{if(D===m.length)return C(A(v+1));let w=m[D];a(y+w,{pathExt:E},(F,k)=>{if(!F&&k)if(l.all)g.push(y+w);else return C(y+w);return C(d(y,v,D+1))})});return f?A(0).then(y=>f(null,y),f):A(0)},c=(p,l)=>{l=l||{};let{pathEnv:f,pathExt:h,pathExtExe:m}=u(p,l),E=[];for(let g=0;g<f.length;g++){let A=f[g],d=/^".*"$/.test(A)?A.slice(1,-1):A,y=i.join(d,p),v=!d&&/^\.[\\\/]/.test(p)?p.slice(0,2)+y:y;for(let D=0;D<h.length;D++){let C=v+h[D];try{if(a.sync(C,{pathExt:m}))if(l.all)E.push(C);else return C}catch{}}}if(l.all&&E.length)return E;if(l.nothrow)return null;throw s(p)};e.exports=o,o.sync=c}),Zn=R((t,e)=>{"use strict";B();var r=(i={})=>{let n=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(n).reverse().find(a=>a.toUpperCase()==="PATH")||"Path"};e.exports=r,e.exports.default=r}),ic=R((t,e)=>{"use strict";B();var r=W("path"),i=nc(),n=Zn();function a(u,o){let c=u.options.env||process.env,p=process.cwd(),l=u.options.cwd!=null,f=l&&process.chdir!==void 0&&!process.chdir.disabled;if(f)try{process.chdir(u.options.cwd)}catch{}let h;try{h=i.sync(u.command,{path:c[n({env:c})],pathExt:o?r.delimiter:void 0})}catch{}finally{f&&process.chdir(p)}return h&&(h=r.resolve(l?u.options.cwd:"",h)),h}function s(u){return a(u)||a(u,!0)}e.exports=s}),uc=R((t,e)=>{"use strict";B();var r=/([()\][%!^"`<>&|;, *?])/g;function i(a){return a=a.replace(r,"^$1"),a}function n(a,s){return a=`${a}`,a=a.replace(/(\\*)"/g,'$1$1\\"'),a=a.replace(/(\\*)$/,"$1$1"),a=`"${a}"`,a=a.replace(r,"^$1"),s&&(a=a.replace(r,"^$1")),a}e.exports.command=i,e.exports.argument=n}),oc=R((t,e)=>{"use strict";B(),e.exports=/^#!(.*)/}),sc=R((t,e)=>{"use strict";B();var r=oc();e.exports=(i="")=>{let n=i.match(r);if(!n)return null;let[a,s]=n[0].replace(/#! ?/,"").split(" "),u=a.split("/").pop();return u==="env"?s:s?`${u} ${s}`:u}}),ac=R((t,e)=>{"use strict";B();var r=W("fs"),i=sc();function n(a){let s=Buffer.alloc(150),u;try{u=r.openSync(a,"r"),r.readSync(u,s,0,150,0),r.closeSync(u)}catch{}return i(s.toString())}e.exports=n}),cc=R((t,e)=>{"use strict";B();var r=W("path"),i=ic(),n=uc(),a=ac(),s=process.platform==="win32",u=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(f){f.file=i(f);let h=f.file&&a(f.file);return h?(f.args.unshift(f.file),f.command=h,i(f)):f.file}function p(f){if(!s)return f;let h=c(f),m=!u.test(h);if(f.options.forceShell||m){let E=o.test(h);f.command=r.normalize(f.command),f.command=n.command(f.command),f.args=f.args.map(A=>n.argument(A,E));let g=[f.command].concat(f.args).join(" ");f.args=["/d","/s","/c",`"${g}"`],f.command=process.env.comspec||"cmd.exe",f.options.windowsVerbatimArguments=!0}return f}function l(f,h,m){h&&!Array.isArray(h)&&(m=h,h=null),h=h?h.slice(0):[],m=Object.assign({},m);let E={command:f,args:h,options:m,file:void 0,original:{command:f,args:h}};return m.shell?E:p(E)}e.exports=l}),lc=R((t,e)=>{"use strict";B();var r=process.platform==="win32";function i(u,o){return Object.assign(new Error(`${o} ${u.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${u.command}`,path:u.command,spawnargs:u.args})}function n(u,o){if(!r)return;let c=u.emit;u.emit=function(p,l){if(p==="exit"){let f=a(l,o,"spawn");if(f)return c.call(u,"error",f)}return c.apply(u,arguments)}}function a(u,o){return r&&u===1&&!o.file?i(o.original,"spawn"):null}function s(u,o){return r&&u===1&&!o.file?i(o.original,"spawnSync"):null}e.exports={hookChildProcess:n,verifyENOENT:a,verifyENOENTSync:s,notFoundError:i}}),pc=R((t,e)=>{"use strict";B();var r=W("child_process"),i=cc(),n=lc();function a(u,o,c){let p=i(u,o,c),l=r.spawn(p.command,p.args,p.options);return n.hookChildProcess(l,p),l}function s(u,o,c){let p=i(u,o,c),l=r.spawnSync(p.command,p.args,p.options);return l.error=l.error||n.verifyENOENTSync(l.status,p),l}e.exports=a,e.exports.spawn=a,e.exports.sync=s,e.exports._parse=i,e.exports._enoent=n}),fc=R((t,e)=>{"use strict";B(),e.exports=r=>{let i=typeof r=="string"?`
|
53
53
|
`:`
|
54
|
-
`.charCodeAt(),n=typeof r=="string"?"\r":"\r".charCodeAt();return r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r[r.length-1]===n&&(r=r.slice(0,r.length-1)),r}}),dc=R((t,e)=>{"use strict";
|
54
|
+
`.charCodeAt(),n=typeof r=="string"?"\r":"\r".charCodeAt();return r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r[r.length-1]===n&&(r=r.slice(0,r.length-1)),r}}),dc=R((t,e)=>{"use strict";B();var r=W("path"),i=Zn(),n=a=>{a={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...a};let s,u=r.resolve(a.cwd),o=[];for(;s!==u;)o.push(r.join(u,"node_modules/.bin")),s=u,u=r.resolve(u,"..");let c=r.resolve(a.cwd,a.execPath,"..");return o.push(c),o.concat(a.path).join(r.delimiter)};e.exports=n,e.exports.default=n,e.exports.env=a=>{a={env:process.env,...a};let s={...a.env},u=i({env:s});return a.path=s[u],s[u]=e.exports(a),s}}),hc=R((t,e)=>{"use strict";B();var r=(i,n)=>{for(let a of Reflect.ownKeys(n))Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(n,a));return i};e.exports=r,e.exports.default=r}),mc=R((t,e)=>{"use strict";B();var r=hc(),i=new WeakMap,n=(a,s={})=>{if(typeof a!="function")throw new TypeError("Expected a function");let u,o=0,c=a.displayName||a.name||"<anonymous>",p=function(...l){if(i.set(p,++o),o===1)u=a.apply(this,l),a=null;else if(s.throw===!0)throw new Error(`Function \`${c}\` can only be called once`);return u};return r(p,a),i.set(p,o),p};e.exports=n,e.exports.default=n,e.exports.callCount=a=>{if(!i.has(a))throw new Error(`The given function \`${a.name}\` is not wrapped by the \`onetime\` package`);return i.get(a)}}),Dc=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;var e=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=e}),zn=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;var e=function(){let a=n-i+1;return Array.from({length:a},r)};t.getRealtimeSignals=e;var r=function(a,s){return{name:`SIGRT${s+1}`,number:i+s,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},i=34,n=64;t.SIGRTMAX=n}),yc=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var e=W("os"),r=Dc(),i=zn(),n=function(){let s=(0,i.getRealtimeSignals)();return[...r.SIGNALS,...s].map(a)};t.getSignals=n;var a=function({name:s,number:u,description:o,action:c,forced:p=!1,standard:l}){let{signals:{[s]:f}}=e.constants,h=f!==void 0;return{name:s,number:h?f:u,description:o,supported:h,action:c,forced:p,standard:l}}}),gc=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var e=W("os"),r=yc(),i=zn(),n=function(){return(0,r.getSignals)().reduce(a,{})},a=function(l,{name:f,number:h,description:m,supported:E,action:g,forced:A,standard:d}){return{...l,[f]:{name:f,number:h,description:m,supported:E,action:g,forced:A,standard:d}}},s=n();t.signalsByName=s;var u=function(){let l=(0,r.getSignals)(),f=i.SIGRTMAX+1,h=Array.from({length:f},(m,E)=>o(E,l));return Object.assign({},...h)},o=function(l,f){let h=c(l,f);if(h===void 0)return{};let{name:m,description:E,supported:g,action:A,forced:d,standard:y}=h;return{[l]:{name:m,number:l,description:E,supported:g,action:A,forced:d,standard:y}}},c=function(l,f){let h=f.find(({name:m})=>e.constants.signals[m]===l);return h!==void 0?h:f.find(m=>m.number===l)},p=u();t.signalsByNumber=p}),Ec=R((t,e)=>{"use strict";B();var{signalsByName:r}=gc(),i=({timedOut:a,timeout:s,errorCode:u,signal:o,signalDescription:c,exitCode:p,isCanceled:l})=>a?`timed out after ${s} milliseconds`:l?"was canceled":u!==void 0?`failed with ${u}`:o!==void 0?`was killed with ${o} (${c})`:p!==void 0?`failed with exit code ${p}`:"failed",n=({stdout:a,stderr:s,all:u,error:o,signal:c,exitCode:p,command:l,escapedCommand:f,timedOut:h,isCanceled:m,killed:E,parsed:{options:{timeout:g}}})=>{p=p===null?void 0:p,c=c===null?void 0:c;let A=c===void 0?void 0:r[c].description,d=o&&o.code,y=`Command ${i({timedOut:h,timeout:g,errorCode:d,signal:c,signalDescription:A,exitCode:p,isCanceled:m})}: ${l}`,v=Object.prototype.toString.call(o)==="[object Error]",D=v?`${y}
|
55
55
|
${o.message}`:y,C=[D,s,a].filter(Boolean).join(`
|
56
|
-
`);return v?(o.originalMessage=o.message,o.message=C):o=new Error(C),o.shortMessage=D,o.command=l,o.escapedCommand=f,o.exitCode=p,o.signal=c,o.signalDescription=A,o.stdout=a,o.stderr=s,u!==void 0&&(o.all=u),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=Boolean(h),o.isCanceled=m,o.killed=E&&!h,o};e.exports=n}),Ac=R((t,e)=>{"use strict";k();var r=["stdin","stdout","stderr"],i=a=>r.some(s=>a[s]!==void 0),n=a=>{if(!a)return;let{stdio:s}=a;if(s===void 0)return r.map(o=>a[o]);if(i(a))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(o=>`\`${o}\``).join(", ")}`);if(typeof s=="string")return s;if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let u=Math.max(s.length,r.length);return Array.from({length:u},(o,c)=>s[c])};e.exports=n,e.exports.node=a=>{let s=n(a);return s==="ipc"?"ipc":s===void 0||typeof s=="string"?[s,s,s,"ipc"]:s.includes("ipc")?s:[...s,"ipc"]}}),vc=R((t,e)=>{k(),e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),Cc=R((t,e)=>{k();var r=global.process,i=function(d){return d&&typeof d=="object"&&typeof d.removeListener=="function"&&typeof d.emit=="function"&&typeof d.reallyExit=="function"&&typeof d.listeners=="function"&&typeof d.kill=="function"&&typeof d.pid=="number"&&typeof d.on=="function"};i(r)?(n=W("assert"),a=vc(),s=/^win/i.test(r.platform),u=W("events"),typeof u!="function"&&(u=u.EventEmitter),r.__signal_exit_emitter__?o=r.__signal_exit_emitter__:(o=r.__signal_exit_emitter__=new u,o.count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),e.exports=function(d,y){if(!i(global.process))return function(){};n.equal(typeof d,"function","a callback must be provided for exit handler"),f===!1&&h();var v="exit";y&&y.alwaysLast&&(v="afterexit");var D=function(){o.removeListener(v,d),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&c()};return o.on(v,d),D},c=function(){!f||!i(global.process)||(f=!1,a.forEach(function(d){try{r.removeListener(d,l[d])}catch{}}),r.emit=g,r.reallyExit=m,o.count-=1)},e.exports.unload=c,p=function(d,y,v){o.emitted[d]||(o.emitted[d]=!0,o.emit(d,y,v))},l={},a.forEach(function(d){l[d]=function(){if(i(global.process)){var y=r.listeners(d);y.length===o.count&&(c(),p("exit",null,d),p("afterexit",null,d),s&&d==="SIGHUP"&&(d="SIGINT"),r.kill(r.pid,d))}}}),e.exports.signals=function(){return a},f=!1,h=function(){f||!i(global.process)||(f=!0,o.count+=1,a=a.filter(function(d){try{return r.on(d,l[d]),!0}catch{return!1}}),r.emit=A,r.reallyExit=E)},e.exports.load=h,m=r.reallyExit,E=function(d){!i(global.process)||(r.exitCode=d||0,p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),m.call(r,r.exitCode))},g=r.emit,A=function(d,y){if(d==="exit"&&i(global.process)){y!==void 0&&(r.exitCode=y);var v=g.apply(this,arguments);return p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),v}else return g.apply(this,arguments)}):e.exports=function(){return function(){}};var n,a,s,u,o,c,p,l,f,h,m,E,g,A}),bc=R((t,e)=>{"use strict";k();var r=W("os"),i=Cc(),n=1e3*5,a=(E,g="SIGTERM",A={})=>{let d=E(g);return s(E,g,A,d),d},s=(E,g,A,d)=>{if(!u(g,A,d))return;let y=c(A),v=setTimeout(()=>{E("SIGKILL")},y);v.unref&&v.unref()},u=(E,{forceKillAfterTimeout:g},A)=>o(E)&&g!==!1&&A,o=E=>E===r.constants.signals.SIGTERM||typeof E=="string"&&E.toUpperCase()==="SIGTERM",c=({forceKillAfterTimeout:E=!0})=>{if(E===!0)return n;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},p=(E,g)=>{E.kill()&&(g.isCanceled=!0)},l=(E,g,A)=>{E.kill(g),A(Object.assign(new Error("Timed out"),{timedOut:!0,signal:g}))},f=(E,{timeout:g,killSignal:A="SIGTERM"},d)=>{if(g===0||g===void 0)return d;let y,v=new Promise((C,b)=>{y=setTimeout(()=>{l(E,A,b)},g)}),D=d.finally(()=>{clearTimeout(y)});return Promise.race([v,D])},h=({timeout:E})=>{if(E!==void 0&&(!Number.isFinite(E)||E<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${E}\` (${typeof E})`)},m=async(E,{cleanup:g,detached:A},d)=>{if(!g||A)return d;let y=i(()=>{E.kill()});return d.finally(()=>{y()})};e.exports={spawnedKill:a,spawnedCancel:p,setupTimeout:f,validateTimeout:h,setExitHandler:m}}),Sc=R((t,e)=>{"use strict";k();var r=i=>i!==null&&typeof i=="object"&&typeof i.pipe=="function";r.writable=i=>r(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object",r.readable=i=>r(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object",r.duplex=i=>r.writable(i)&&r.readable(i),r.transform=i=>r.duplex(i)&&typeof i._transform=="function",e.exports=r}),Fc=R((t,e)=>{"use strict";k();var{PassThrough:r}=W("stream");e.exports=i=>{i={...i};let{array:n}=i,{encoding:a}=i,s=a==="buffer",u=!1;n?u=!(a||s):a=a||"utf8",s&&(a=null);let o=new r({objectMode:u});a&&o.setEncoding(a);let c=0,p=[];return o.on("data",l=>{p.push(l),u?c=p.length:c+=l.length}),o.getBufferedValue=()=>n?p:s?Buffer.concat(p,c):p.join(""),o.getBufferedLength=()=>c,o}}),_c=R((t,e)=>{"use strict";k();var{constants:r}=W("buffer"),i=W("stream"),{promisify:n}=W("util"),a=Fc(),s=n(i.pipeline),u=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function o(c,p){if(!c)throw new Error("Expected a stream");p={maxBuffer:1/0,...p};let{maxBuffer:l}=p,f=a(p);return await new Promise((h,m)=>{let E=g=>{g&&f.getBufferedLength()<=r.MAX_LENGTH&&(g.bufferedData=f.getBufferedValue()),m(g)};(async()=>{try{await s(c,f),h()}catch(g){E(g)}})(),f.on("data",()=>{f.getBufferedLength()>l&&E(new u)})}),f.getBufferedValue()}e.exports=o,e.exports.buffer=(c,p)=>o(c,{...p,encoding:"buffer"}),e.exports.array=(c,p)=>o(c,{...p,array:!0}),e.exports.MaxBufferError=u}),wc=R((t,e)=>{"use strict";k();var{PassThrough:r}=W("stream");e.exports=function(){var i=[],n=new r({objectMode:!0});return n.setMaxListeners(0),n.add=a,n.isEmpty=s,n.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(a),n;function a(o){return Array.isArray(o)?(o.forEach(a),this):(i.push(o),o.once("end",u.bind(null,o)),o.once("error",n.emit.bind(n,"error")),o.pipe(n,{end:!1}),this)}function s(){return i.length==0}function u(o){i=i.filter(function(c){return c!==o}),!i.length&&n.readable&&n.end()}}}),xc=R((t,e)=>{"use strict";k();var r=Sc(),i=_c(),n=wc(),a=(l,f)=>{f===void 0||l.stdin===void 0||(r(f)?f.pipe(l.stdin):l.stdin.end(f))},s=(l,{all:f})=>{if(!f||!l.stdout&&!l.stderr)return;let h=n();return l.stdout&&h.add(l.stdout),l.stderr&&h.add(l.stderr),h},u=async(l,f)=>{if(l){l.destroy();try{return await f}catch(h){return h.bufferedData}}},o=(l,{encoding:f,buffer:h,maxBuffer:m})=>{if(!(!l||!h))return f?i(l,{encoding:f,maxBuffer:m}):i.buffer(l,{maxBuffer:m})},c=async({stdout:l,stderr:f,all:h},{encoding:m,buffer:E,maxBuffer:g},A)=>{let d=o(l,{encoding:m,buffer:E,maxBuffer:g}),y=o(f,{encoding:m,buffer:E,maxBuffer:g}),v=o(h,{encoding:m,buffer:E,maxBuffer:g*2});try{return await Promise.all([A,d,y,v])}catch(D){return Promise.all([{error:D,signal:D.signal,timedOut:D.timedOut},u(l,d),u(f,y),u(h,v)])}},p=({input:l})=>{if(r(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};e.exports={handleInput:a,makeAllStream:s,getSpawnedResult:c,validateInputSync:p}}),Bc=R((t,e)=>{"use strict";k();var r=(async()=>{})().constructor.prototype,i=["then","catch","finally"].map(s=>[s,Reflect.getOwnPropertyDescriptor(r,s)]),n=(s,u)=>{for(let[o,c]of i){let p=typeof u=="function"?(...l)=>Reflect.apply(c.value,u(),l):c.value.bind(u);Reflect.defineProperty(s,o,{...c,value:p})}return s},a=s=>new Promise((u,o)=>{s.on("exit",(c,p)=>{u({exitCode:c,signal:p})}),s.on("error",c=>{o(c)}),s.stdin&&s.stdin.on("error",c=>{o(c)})});e.exports={mergePromise:n,getSpawnedPromise:a}}),kc=R((t,e)=>{"use strict";k();var r=(p,l=[])=>Array.isArray(l)?[p,...l]:[p],i=/^[\w.-]+$/,n=/"/g,a=p=>typeof p!="string"||i.test(p)?p:`"${p.replace(n,'\\"')}"`,s=(p,l)=>r(p,l).join(" "),u=(p,l)=>r(p,l).map(f=>a(f)).join(" "),o=/ +/g,c=p=>{let l=[];for(let f of p.trim().split(o)){let h=l[l.length-1];h&&h.endsWith("\\")?l[l.length-1]=`${h.slice(0,-1)} ${f}`:l.push(f)}return l};e.exports={joinCommand:s,getEscapedCommand:u,parseCommand:c}}),Oc=R((t,e)=>{"use strict";k();var r=W("path"),i=W("child_process"),n=pc(),a=fc(),s=dc(),u=mc(),o=Ec(),c=Ac(),{spawnedKill:p,spawnedCancel:l,setupTimeout:f,validateTimeout:h,setExitHandler:m}=bc(),{handleInput:E,getSpawnedResult:g,makeAllStream:A,validateInputSync:d}=xc(),{mergePromise:y,getSpawnedPromise:v}=Bc(),{joinCommand:D,parseCommand:C,getEscapedCommand:b}=kc(),w=1e3*1e3*100,F=({env:I,extendEnv:_,preferLocal:S,localDir:M,execPath:P})=>{let $=_?{...process.env,...I}:I;return S?s.env({env:$,cwd:M,execPath:P}):$},B=(I,_,S={})=>{let M=n._parse(I,_,S);return I=M.command,_=M.args,S=M.options,S={maxBuffer:w,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:S.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...S},S.env=F(S),S.stdio=c(S),process.platform==="win32"&&r.basename(I,".exe")==="cmd"&&_.unshift("/q"),{file:I,args:_,options:S,parsed:M}},x=(I,_,S)=>typeof _!="string"&&!Buffer.isBuffer(_)?S===void 0?void 0:"":I.stripFinalNewline?a(_):_,T=(I,_,S)=>{let M=B(I,_,S),P=D(I,_),$=b(I,_);h(M.options);let j;try{j=i.spawn(M.file,M.args,M.options)}catch(ct){let pt=new i.ChildProcess,O=Promise.reject(o({error:ct,stdout:"",stderr:"",all:"",command:P,escapedCommand:$,parsed:M,timedOut:!1,isCanceled:!1,killed:!1}));return y(pt,O)}let q=v(j),Q=f(j,M.options,q),tt=m(j,M.options,Q),N={isCanceled:!1};j.kill=p.bind(null,j.kill.bind(j)),j.cancel=l.bind(null,j,N);let st=u(async()=>{let[{error:ct,exitCode:pt,signal:O,timedOut:L},U,K,at]=await g(j,M.options,tt),ut=x(M.options,U),J=x(M.options,K),Z=x(M.options,at);if(ct||pt!==0||O!==null){let ot=o({error:ct,exitCode:pt,signal:O,stdout:ut,stderr:J,all:Z,command:P,escapedCommand:$,parsed:M,timedOut:L,isCanceled:N.isCanceled,killed:j.killed});if(!M.options.reject)return ot;throw ot}return{command:P,escapedCommand:$,exitCode:0,stdout:ut,stderr:J,all:Z,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return E(j,M.options.input),j.all=A(j,M.options),y(j,st)};e.exports=T,e.exports.sync=(I,_,S)=>{let M=B(I,_,S),P=D(I,_),$=b(I,_);d(M.options);let j;try{j=i.spawnSync(M.file,M.args,M.options)}catch(tt){throw o({error:tt,stdout:"",stderr:"",all:"",command:P,escapedCommand:$,parsed:M,timedOut:!1,isCanceled:!1,killed:!1})}let q=x(M.options,j.stdout,j.error),Q=x(M.options,j.stderr,j.error);if(j.error||j.status!==0||j.signal!==null){let tt=o({stdout:q,stderr:Q,error:j.error,signal:j.signal,exitCode:j.status,command:P,escapedCommand:$,parsed:M,timedOut:j.error&&j.error.code==="ETIMEDOUT",isCanceled:!1,killed:j.signal!==null});if(!M.options.reject)return tt;throw tt}return{command:P,escapedCommand:$,exitCode:0,stdout:q,stderr:Q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},e.exports.command=(I,_)=>{let[S,...M]=C(I);return T(S,M,_)},e.exports.commandSync=(I,_)=>{let[S,...M]=C(I);return T.sync(S,M,_)},e.exports.node=(I,_,S={})=>{_&&!Array.isArray(_)&&typeof _=="object"&&(S=_,_=[]);let M=c.node(S),P=process.execArgv.filter(q=>!q.startsWith("--inspect")),{nodePath:$=process.execPath,nodeOptions:j=P}=S;return T($,[...j,I,...Array.isArray(_)?_:[]],{...S,stdin:void 0,stdout:void 0,stderr:void 0,stdio:M,shell:!1})}});k();var Cl=Ht(Oc());k();var me=Bt(require("chalk"));var Te=Bt(require("chalk")),Pe=require("diff"),de=Bt(require("fs-extra")),ti=Bt(require("os")),br=Bt(require("path")),he=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{br.default.extname(e.filePath)===".json"?this.before=de.default.readJsonSync(e.filePath):this.before=de.default.readFileSync(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,Pe.diffJson)(this.before,e.after):this.changes=(0,Pe.diffLines)(this.before,e.after):this.changes=[]}fileName(){return br.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?de.default.writeJsonSync(this.filePath,this.after,{spaces:2}):de.default.writeFileSync(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write(Te.default.green(r.value)):r.removed?process.stdout.write(Te.default.red(r.value)):process.stdout.write(Te.default.dim(r.value))}),console.log(ti.default.EOL)):console.log(this.after)}};var Pt=Bt(require("chalk")),Jt=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}modified(...e){console.log(Pt.default.green(" MODIFIED "),...e,this.dry?Pt.default.dim("(dry run)"):"")}unchanged(...e){console.log(Pt.default.gray(" UNCHANGED "),...e,this.dry?Pt.default.dim("(dry run)"):"")}skipped(...e){console.log(Pt.default.yellow(" SKIPPED "),...e,this.dry?Pt.default.dim("(dry run)"):"")}error(...e){console.log(Pt.default.red(" ERROR "),...e,this.dry?Pt.default.dim("(dry run)"):"")}info(...e){console.log(Pt.default.bold(" INFO "),...e,this.dry?Pt.default.dim("(dry run)"):"")}};var Sr=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new Jt(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new he({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],a={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)a.action="skipped",this.logger.skipped(me.default.dim(n.fileName()));else try{n.write(),a.action="modified",this.logger.modified(me.default.bold(n.fileName()))}catch(s){let u="Unknown error";s instanceof Error&&(u=s.message),a.error=new Error(u),a.action="error",this.logger.error(n.fileName(),u)}this.print&&n.log({diff:!0})}else this.logger.unchanged(me.default.dim(n.fileName()));e.changes[n.fileName()]=a}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(console.log(),r.length>0){console.log(me.default.bold("Results:"));let i={};r.forEach(n=>{var s;let a=e.changes[n];i[n]={action:a.action,additions:a.additions,deletions:a.deletions,error:((s=a.error)==null?void 0:s.message)||"None"}}),console.table(i),console.log()}}},Fr=Sr;function _r({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Jt(i),a=new Fr(i);return{log:n,runner:a}}var xr="migrate-env-var-dependencies",Rc='Migrate environment variable dependencies from "dependsOn" to "env" in `turbo.json`',Tc="1.5.0";function Br(t){let r=["extends"in t?[]:t.globalDependencies,Object.values(t.pipeline).flatMap(i=>{var n;return(n=i.dependsOn)!=null?n:[]})].flat().filter(i=>i==null?void 0:i.startsWith("$"));return{hasKeys:!!r.length,envVars:r}}function Or({env:t,deps:e}){let r=new Set(t),i=[];return e==null||e.forEach(n=>{n.startsWith("$")?r.add(n.slice(1)):i.push(n)}),r.size?{deps:i,env:Array.from(r)}:{env:t,deps:e}}function ei(t){let{deps:e,env:r}=Or({env:t.env,deps:t.dependsOn}),i={...t};return e?i.dependsOn=e:delete i.dependsOn,r&&r.length?i.env=r:delete i.env,i}function ri(t){if("extends"in t)return t;let{deps:e,env:r}=Or({env:t.globalEnv,deps:t.globalDependencies}),i={...t};return e&&e.length?i.globalDependencies=e:delete i.globalDependencies,r&&r.length?i.globalEnv=r:delete i.globalEnv,i}function kr(t){let e=ri(t);return Object.keys(t.pipeline).forEach(r=>{if(t.pipeline,e.pipeline&&t.pipeline[r]){let i=e.pipeline[r];e.pipeline[r]={...i,...ei(i)}}}),e}function ni({root:t,options:e}){let{log:r,runner:i}=_r({transformer:xr,rootPath:t,options:e});r.info('Migrating environment variable dependencies from "globalDependencies" and "dependsOn" to "env" in "turbo.json"...');let n=wr.default.join(t,"package.json"),a={};try{a=Ie.default.readJSONSync(n)}catch{}if("turbo"in a)return i.abortTransform({reason:'"turbo" key detected in package.json. Run `npx @turbo/codemod transform create-turbo-config` first'});let s=wr.default.join(t,"turbo.json");if(!Ie.default.existsSync(s))return i.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});let u=Ie.default.readJsonSync(s);return Br(u).hasKeys&&(u=kr(u)),i.modifyFile({filePath:s,after:u}),Cr(t).forEach(c=>{let{config:p,turboConfigPath:l}=c;Br(p).hasKeys&&i.modifyFile({filePath:l,after:kr(p)})}),i.finish()}var Pc={name:`${xr}: ${Rc}`,value:xr,introducedIn:Tc,transformer:ni},Ic=Pc;0&&(module.exports={hasLegacyEnvVarDependencies,migrateConfig,migrateDependencies,migrateGlobal,migratePipeline,transformer});
|
56
|
+
`);return v?(o.originalMessage=o.message,o.message=C):o=new Error(C),o.shortMessage=D,o.command=l,o.escapedCommand=f,o.exitCode=p,o.signal=c,o.signalDescription=A,o.stdout=a,o.stderr=s,u!==void 0&&(o.all=u),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=Boolean(h),o.isCanceled=m,o.killed=E&&!h,o};e.exports=n}),Ac=R((t,e)=>{"use strict";B();var r=["stdin","stdout","stderr"],i=a=>r.some(s=>a[s]!==void 0),n=a=>{if(!a)return;let{stdio:s}=a;if(s===void 0)return r.map(o=>a[o]);if(i(a))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(o=>`\`${o}\``).join(", ")}`);if(typeof s=="string")return s;if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let u=Math.max(s.length,r.length);return Array.from({length:u},(o,c)=>s[c])};e.exports=n,e.exports.node=a=>{let s=n(a);return s==="ipc"?"ipc":s===void 0||typeof s=="string"?[s,s,s,"ipc"]:s.includes("ipc")?s:[...s,"ipc"]}}),vc=R((t,e)=>{B(),e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),Cc=R((t,e)=>{B();var r=global.process,i=function(d){return d&&typeof d=="object"&&typeof d.removeListener=="function"&&typeof d.emit=="function"&&typeof d.reallyExit=="function"&&typeof d.listeners=="function"&&typeof d.kill=="function"&&typeof d.pid=="number"&&typeof d.on=="function"};i(r)?(n=W("assert"),a=vc(),s=/^win/i.test(r.platform),u=W("events"),typeof u!="function"&&(u=u.EventEmitter),r.__signal_exit_emitter__?o=r.__signal_exit_emitter__:(o=r.__signal_exit_emitter__=new u,o.count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),e.exports=function(d,y){if(!i(global.process))return function(){};n.equal(typeof d,"function","a callback must be provided for exit handler"),f===!1&&h();var v="exit";y&&y.alwaysLast&&(v="afterexit");var D=function(){o.removeListener(v,d),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&c()};return o.on(v,d),D},c=function(){!f||!i(global.process)||(f=!1,a.forEach(function(d){try{r.removeListener(d,l[d])}catch{}}),r.emit=g,r.reallyExit=m,o.count-=1)},e.exports.unload=c,p=function(d,y,v){o.emitted[d]||(o.emitted[d]=!0,o.emit(d,y,v))},l={},a.forEach(function(d){l[d]=function(){if(i(global.process)){var y=r.listeners(d);y.length===o.count&&(c(),p("exit",null,d),p("afterexit",null,d),s&&d==="SIGHUP"&&(d="SIGINT"),r.kill(r.pid,d))}}}),e.exports.signals=function(){return a},f=!1,h=function(){f||!i(global.process)||(f=!0,o.count+=1,a=a.filter(function(d){try{return r.on(d,l[d]),!0}catch{return!1}}),r.emit=A,r.reallyExit=E)},e.exports.load=h,m=r.reallyExit,E=function(d){!i(global.process)||(r.exitCode=d||0,p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),m.call(r,r.exitCode))},g=r.emit,A=function(d,y){if(d==="exit"&&i(global.process)){y!==void 0&&(r.exitCode=y);var v=g.apply(this,arguments);return p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),v}else return g.apply(this,arguments)}):e.exports=function(){return function(){}};var n,a,s,u,o,c,p,l,f,h,m,E,g,A}),bc=R((t,e)=>{"use strict";B();var r=W("os"),i=Cc(),n=1e3*5,a=(E,g="SIGTERM",A={})=>{let d=E(g);return s(E,g,A,d),d},s=(E,g,A,d)=>{if(!u(g,A,d))return;let y=c(A),v=setTimeout(()=>{E("SIGKILL")},y);v.unref&&v.unref()},u=(E,{forceKillAfterTimeout:g},A)=>o(E)&&g!==!1&&A,o=E=>E===r.constants.signals.SIGTERM||typeof E=="string"&&E.toUpperCase()==="SIGTERM",c=({forceKillAfterTimeout:E=!0})=>{if(E===!0)return n;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},p=(E,g)=>{E.kill()&&(g.isCanceled=!0)},l=(E,g,A)=>{E.kill(g),A(Object.assign(new Error("Timed out"),{timedOut:!0,signal:g}))},f=(E,{timeout:g,killSignal:A="SIGTERM"},d)=>{if(g===0||g===void 0)return d;let y,v=new Promise((C,b)=>{y=setTimeout(()=>{l(E,A,b)},g)}),D=d.finally(()=>{clearTimeout(y)});return Promise.race([v,D])},h=({timeout:E})=>{if(E!==void 0&&(!Number.isFinite(E)||E<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${E}\` (${typeof E})`)},m=async(E,{cleanup:g,detached:A},d)=>{if(!g||A)return d;let y=i(()=>{E.kill()});return d.finally(()=>{y()})};e.exports={spawnedKill:a,spawnedCancel:p,setupTimeout:f,validateTimeout:h,setExitHandler:m}}),Sc=R((t,e)=>{"use strict";B();var r=i=>i!==null&&typeof i=="object"&&typeof i.pipe=="function";r.writable=i=>r(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object",r.readable=i=>r(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object",r.duplex=i=>r.writable(i)&&r.readable(i),r.transform=i=>r.duplex(i)&&typeof i._transform=="function",e.exports=r}),Fc=R((t,e)=>{"use strict";B();var{PassThrough:r}=W("stream");e.exports=i=>{i={...i};let{array:n}=i,{encoding:a}=i,s=a==="buffer",u=!1;n?u=!(a||s):a=a||"utf8",s&&(a=null);let o=new r({objectMode:u});a&&o.setEncoding(a);let c=0,p=[];return o.on("data",l=>{p.push(l),u?c=p.length:c+=l.length}),o.getBufferedValue=()=>n?p:s?Buffer.concat(p,c):p.join(""),o.getBufferedLength=()=>c,o}}),_c=R((t,e)=>{"use strict";B();var{constants:r}=W("buffer"),i=W("stream"),{promisify:n}=W("util"),a=Fc(),s=n(i.pipeline),u=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function o(c,p){if(!c)throw new Error("Expected a stream");p={maxBuffer:1/0,...p};let{maxBuffer:l}=p,f=a(p);return await new Promise((h,m)=>{let E=g=>{g&&f.getBufferedLength()<=r.MAX_LENGTH&&(g.bufferedData=f.getBufferedValue()),m(g)};(async()=>{try{await s(c,f),h()}catch(g){E(g)}})(),f.on("data",()=>{f.getBufferedLength()>l&&E(new u)})}),f.getBufferedValue()}e.exports=o,e.exports.buffer=(c,p)=>o(c,{...p,encoding:"buffer"}),e.exports.array=(c,p)=>o(c,{...p,array:!0}),e.exports.MaxBufferError=u}),wc=R((t,e)=>{"use strict";B();var{PassThrough:r}=W("stream");e.exports=function(){var i=[],n=new r({objectMode:!0});return n.setMaxListeners(0),n.add=a,n.isEmpty=s,n.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(a),n;function a(o){return Array.isArray(o)?(o.forEach(a),this):(i.push(o),o.once("end",u.bind(null,o)),o.once("error",n.emit.bind(n,"error")),o.pipe(n,{end:!1}),this)}function s(){return i.length==0}function u(o){i=i.filter(function(c){return c!==o}),!i.length&&n.readable&&n.end()}}}),xc=R((t,e)=>{"use strict";B();var r=Sc(),i=_c(),n=wc(),a=(l,f)=>{f===void 0||l.stdin===void 0||(r(f)?f.pipe(l.stdin):l.stdin.end(f))},s=(l,{all:f})=>{if(!f||!l.stdout&&!l.stderr)return;let h=n();return l.stdout&&h.add(l.stdout),l.stderr&&h.add(l.stderr),h},u=async(l,f)=>{if(l){l.destroy();try{return await f}catch(h){return h.bufferedData}}},o=(l,{encoding:f,buffer:h,maxBuffer:m})=>{if(!(!l||!h))return f?i(l,{encoding:f,maxBuffer:m}):i.buffer(l,{maxBuffer:m})},c=async({stdout:l,stderr:f,all:h},{encoding:m,buffer:E,maxBuffer:g},A)=>{let d=o(l,{encoding:m,buffer:E,maxBuffer:g}),y=o(f,{encoding:m,buffer:E,maxBuffer:g}),v=o(h,{encoding:m,buffer:E,maxBuffer:g*2});try{return await Promise.all([A,d,y,v])}catch(D){return Promise.all([{error:D,signal:D.signal,timedOut:D.timedOut},u(l,d),u(f,y),u(h,v)])}},p=({input:l})=>{if(r(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};e.exports={handleInput:a,makeAllStream:s,getSpawnedResult:c,validateInputSync:p}}),kc=R((t,e)=>{"use strict";B();var r=(async()=>{})().constructor.prototype,i=["then","catch","finally"].map(s=>[s,Reflect.getOwnPropertyDescriptor(r,s)]),n=(s,u)=>{for(let[o,c]of i){let p=typeof u=="function"?(...l)=>Reflect.apply(c.value,u(),l):c.value.bind(u);Reflect.defineProperty(s,o,{...c,value:p})}return s},a=s=>new Promise((u,o)=>{s.on("exit",(c,p)=>{u({exitCode:c,signal:p})}),s.on("error",c=>{o(c)}),s.stdin&&s.stdin.on("error",c=>{o(c)})});e.exports={mergePromise:n,getSpawnedPromise:a}}),Bc=R((t,e)=>{"use strict";B();var r=(p,l=[])=>Array.isArray(l)?[p,...l]:[p],i=/^[\w.-]+$/,n=/"/g,a=p=>typeof p!="string"||i.test(p)?p:`"${p.replace(n,'\\"')}"`,s=(p,l)=>r(p,l).join(" "),u=(p,l)=>r(p,l).map(f=>a(f)).join(" "),o=/ +/g,c=p=>{let l=[];for(let f of p.trim().split(o)){let h=l[l.length-1];h&&h.endsWith("\\")?l[l.length-1]=`${h.slice(0,-1)} ${f}`:l.push(f)}return l};e.exports={joinCommand:s,getEscapedCommand:u,parseCommand:c}}),Oc=R((t,e)=>{"use strict";B();var r=W("path"),i=W("child_process"),n=pc(),a=fc(),s=dc(),u=mc(),o=Ec(),c=Ac(),{spawnedKill:p,spawnedCancel:l,setupTimeout:f,validateTimeout:h,setExitHandler:m}=bc(),{handleInput:E,getSpawnedResult:g,makeAllStream:A,validateInputSync:d}=xc(),{mergePromise:y,getSpawnedPromise:v}=kc(),{joinCommand:D,parseCommand:C,getEscapedCommand:b}=Bc(),w=1e3*1e3*100,F=({env:I,extendEnv:_,preferLocal:S,localDir:M,execPath:P})=>{let $=_?{...process.env,...I}:I;return S?s.env({env:$,cwd:M,execPath:P}):$},k=(I,_,S={})=>{let M=n._parse(I,_,S);return I=M.command,_=M.args,S=M.options,S={maxBuffer:w,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:S.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...S},S.env=F(S),S.stdio=c(S),process.platform==="win32"&&r.basename(I,".exe")==="cmd"&&_.unshift("/q"),{file:I,args:_,options:S,parsed:M}},x=(I,_,S)=>typeof _!="string"&&!Buffer.isBuffer(_)?S===void 0?void 0:"":I.stripFinalNewline?a(_):_,T=(I,_,S)=>{let M=k(I,_,S),P=D(I,_),$=b(I,_);h(M.options);let j;try{j=i.spawn(M.file,M.args,M.options)}catch(ct){let pt=new i.ChildProcess,O=Promise.reject(o({error:ct,stdout:"",stderr:"",all:"",command:P,escapedCommand:$,parsed:M,timedOut:!1,isCanceled:!1,killed:!1}));return y(pt,O)}let q=v(j),Q=f(j,M.options,q),tt=m(j,M.options,Q),N={isCanceled:!1};j.kill=p.bind(null,j.kill.bind(j)),j.cancel=l.bind(null,j,N);let st=u(async()=>{let[{error:ct,exitCode:pt,signal:O,timedOut:L},U,K,at]=await g(j,M.options,tt),ut=x(M.options,U),J=x(M.options,K),Z=x(M.options,at);if(ct||pt!==0||O!==null){let ot=o({error:ct,exitCode:pt,signal:O,stdout:ut,stderr:J,all:Z,command:P,escapedCommand:$,parsed:M,timedOut:L,isCanceled:N.isCanceled,killed:j.killed});if(!M.options.reject)return ot;throw ot}return{command:P,escapedCommand:$,exitCode:0,stdout:ut,stderr:J,all:Z,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return E(j,M.options.input),j.all=A(j,M.options),y(j,st)};e.exports=T,e.exports.sync=(I,_,S)=>{let M=k(I,_,S),P=D(I,_),$=b(I,_);d(M.options);let j;try{j=i.spawnSync(M.file,M.args,M.options)}catch(tt){throw o({error:tt,stdout:"",stderr:"",all:"",command:P,escapedCommand:$,parsed:M,timedOut:!1,isCanceled:!1,killed:!1})}let q=x(M.options,j.stdout,j.error),Q=x(M.options,j.stderr,j.error);if(j.error||j.status!==0||j.signal!==null){let tt=o({stdout:q,stderr:Q,error:j.error,signal:j.signal,exitCode:j.status,command:P,escapedCommand:$,parsed:M,timedOut:j.error&&j.error.code==="ETIMEDOUT",isCanceled:!1,killed:j.signal!==null});if(!M.options.reject)return tt;throw tt}return{command:P,escapedCommand:$,exitCode:0,stdout:q,stderr:Q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},e.exports.command=(I,_)=>{let[S,...M]=C(I);return T(S,M,_)},e.exports.commandSync=(I,_)=>{let[S,...M]=C(I);return T.sync(S,M,_)},e.exports.node=(I,_,S={})=>{_&&!Array.isArray(_)&&typeof _=="object"&&(S=_,_=[]);let M=c.node(S),P=process.execArgv.filter(q=>!q.startsWith("--inspect")),{nodePath:$=process.execPath,nodeOptions:j=P}=S;return T($,[...j,I,...Array.isArray(_)?_:[]],{...S,stdin:void 0,stdout:void 0,stderr:void 0,stdio:M,shell:!1})}});B();var Cl=Ht(Oc());B();var me=kt(require("chalk"));var Te=kt(require("chalk")),Pe=require("diff"),de=kt(require("fs-extra")),ti=kt(require("os")),br=kt(require("path")),he=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{br.default.extname(e.filePath)===".json"?this.before=de.default.readJsonSync(e.filePath):this.before=de.default.readFileSync(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,Pe.diffJson)(this.before,e.after):this.changes=(0,Pe.diffLines)(this.before,e.after):this.changes=[]}fileName(){return br.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?de.default.writeJsonSync(this.filePath,this.after,{spaces:2}):de.default.writeFileSync(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write(Te.default.green(r.value)):r.removed?process.stdout.write(Te.default.red(r.value)):process.stdout.write(Te.default.dim(r.value))}),console.log(ti.default.EOL)):console.log(this.after)}};var Pt=kt(require("chalk")),Jt=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}modified(...e){console.log(Pt.default.green(" MODIFIED "),...e,this.dry?Pt.default.dim("(dry run)"):"")}unchanged(...e){console.log(Pt.default.gray(" UNCHANGED "),...e,this.dry?Pt.default.dim("(dry run)"):"")}skipped(...e){console.log(Pt.default.yellow(" SKIPPED "),...e,this.dry?Pt.default.dim("(dry run)"):"")}error(...e){console.log(Pt.default.red(" ERROR "),...e,this.dry?Pt.default.dim("(dry run)"):"")}info(...e){console.log(Pt.default.bold(" INFO "),...e,this.dry?Pt.default.dim("(dry run)"):"")}};var Sr=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new Jt(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new he({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],a={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)a.action="skipped",this.logger.skipped(me.default.dim(n.fileName()));else try{n.write(),a.action="modified",this.logger.modified(me.default.bold(n.fileName()))}catch(s){let u="Unknown error";s instanceof Error&&(u=s.message),a.error=new Error(u),a.action="error",this.logger.error(n.fileName(),u)}this.print&&n.log({diff:!0})}else this.logger.unchanged(me.default.dim(n.fileName()));e.changes[n.fileName()]=a}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(console.log(),r.length>0){console.log(me.default.bold("Results:"));let i={};r.forEach(n=>{var s;let a=e.changes[n];i[n]={action:a.action,additions:a.additions,deletions:a.deletions,error:((s=a.error)==null?void 0:s.message)||"None"}}),console.table(i),console.log()}}},Fr=Sr;function _r({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Jt(i),a=new Fr(i);return{log:n,runner:a}}var xr="migrate-env-var-dependencies",Rc='Migrate environment variable dependencies from "dependsOn" to "env" in `turbo.json`',Tc="1.5.0";function kr(t){let r=["extends"in t?[]:t.globalDependencies,Object.values(t.pipeline).flatMap(i=>{var n;return(n=i.dependsOn)!=null?n:[]})].flat().filter(i=>i==null?void 0:i.startsWith("$"));return{hasKeys:!!r.length,envVars:r}}function Or({env:t,deps:e}){let r=new Set(t),i=[];return e==null||e.forEach(n=>{n.startsWith("$")?r.add(n.slice(1)):i.push(n)}),r.size?{deps:i,env:Array.from(r)}:{env:t,deps:e}}function ei(t){let{deps:e,env:r}=Or({env:t.env,deps:t.dependsOn}),i={...t};return e?i.dependsOn=e:delete i.dependsOn,r&&r.length?i.env=r:delete i.env,i}function ri(t){if("extends"in t)return t;let{deps:e,env:r}=Or({env:t.globalEnv,deps:t.globalDependencies}),i={...t};return e&&e.length?i.globalDependencies=e:delete i.globalDependencies,r&&r.length?i.globalEnv=r:delete i.globalEnv,i}function Br(t){let e=ri(t);return Object.keys(t.pipeline).forEach(r=>{if(t.pipeline,e.pipeline&&t.pipeline[r]){let i=e.pipeline[r];e.pipeline[r]={...i,...ei(i)}}}),e}function ni({root:t,options:e}){let{log:r,runner:i}=_r({transformer:xr,rootPath:t,options:e});r.info('Migrating environment variable dependencies from "globalDependencies" and "dependsOn" to "env" in "turbo.json"...');let n=wr.default.join(t,"package.json"),a={};try{a=Ie.default.readJSONSync(n)}catch{}if("turbo"in a)return i.abortTransform({reason:'"turbo" key detected in package.json. Run `npx @turbo/codemod transform create-turbo-config` first'});let s=wr.default.join(t,"turbo.json");if(!Ie.default.existsSync(s))return i.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});let u=Ie.default.readJsonSync(s);return kr(u).hasKeys&&(u=Br(u)),i.modifyFile({filePath:s,after:u}),Cr(t).forEach(c=>{let{config:p,turboConfigPath:l}=c;kr(p).hasKeys&&i.modifyFile({filePath:l,after:Br(p)})}),i.finish()}var Pc={name:`${xr}: ${Rc}`,value:xr,introducedIn:Tc,transformer:ni},Ic=Pc;0&&(module.exports={hasLegacyEnvVarDependencies,migrateConfig,migrateDependencies,migrateGlobal,migratePipeline,transformer});
|
57
57
|
/*!
|
58
58
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
59
59
|
*
|