monocart-coverage-reports 2.11.3 → 2.11.4
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.
package/README.md
CHANGED
|
@@ -966,6 +966,14 @@ When `logging` is `debug`, the raw report data will be preserved in `[outputDir]
|
|
|
966
966
|
|
|
967
967
|

|
|
968
968
|
|
|
969
|
+
- Generate additional source and sourcemap files to cache or raw dir
|
|
970
|
+
```js
|
|
971
|
+
const coverageOptions = {
|
|
972
|
+
logging: 'debug',
|
|
973
|
+
sourceMap: true
|
|
974
|
+
};
|
|
975
|
+
```
|
|
976
|
+
|
|
969
977
|
- Show time logs with env `MCR_LOG_TIME`
|
|
970
978
|
```js
|
|
971
979
|
process.env.MCR_LOG_TIME = true
|
package/README.zh-Hans.md
CHANGED
|
@@ -969,6 +969,14 @@ const coverageOptions = {
|
|
|
969
969
|
|
|
970
970
|

|
|
971
971
|
|
|
972
|
+
- 生成额外的source和sourcemap文件到cache或raw文件夹
|
|
973
|
+
```js
|
|
974
|
+
const coverageOptions = {
|
|
975
|
+
logging: 'debug',
|
|
976
|
+
sourceMap: true
|
|
977
|
+
};
|
|
978
|
+
```
|
|
979
|
+
|
|
972
980
|
- 使用环境变量`MCR_LOG_TIME`显示时间日志
|
|
973
981
|
```js
|
|
974
982
|
process.env.MCR_LOG_TIME = true
|
|
@@ -7,7 +7,7 @@ const { pathToFileURL, fileURLToPath } = require('url');
|
|
|
7
7
|
const { normalizeSourcePath, getSourcePathReplacer } = require('../utils/source-path.js');
|
|
8
8
|
|
|
9
9
|
// const EC = require('eight-colors');
|
|
10
|
-
const {
|
|
10
|
+
const { convertSourceMap } = require('../packages/monocart-coverage-vendor.js');
|
|
11
11
|
|
|
12
12
|
// ========================================================================================================
|
|
13
13
|
|
|
@@ -37,7 +37,7 @@ const resolveAllFilter = (input) => {
|
|
|
37
37
|
input = obj;
|
|
38
38
|
} else {
|
|
39
39
|
return (filePath) => {
|
|
40
|
-
return
|
|
40
|
+
return Util.betterMinimatch(filePath, input);
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -47,7 +47,7 @@ const resolveAllFilter = (input) => {
|
|
|
47
47
|
const patterns = Object.keys(input);
|
|
48
48
|
return (filePath) => {
|
|
49
49
|
for (const pattern of patterns) {
|
|
50
|
-
if (
|
|
50
|
+
if (Util.betterMinimatch(filePath, pattern)) {
|
|
51
51
|
return input[pattern];
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -30,6 +30,6 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
|
|
|
30
30
|
`+Object.keys(r).map(i=>`${i}: ${r[i]}`).join(`\r
|
|
31
31
|
`)+`\r
|
|
32
32
|
\r
|
|
33
|
-
`+t)}function ze(n,e,t,r,i){if(n.listenerCount("wsClientError")){let s=new Error(i);Error.captureStackTrace(s,ze),n.emit("wsClientError",s,t,e)}else Ot(t,r,i)}});var qo=b((hd,Wo)=>{"use strict";Wo.exports=zo;function zo(n,e,t){n instanceof RegExp&&(n=Bo(n,t)),e instanceof RegExp&&(e=Bo(e,t));var r=Go(n,e,t);return r&&{start:r[0],end:r[1],pre:t.slice(0,r[0]),body:t.slice(r[0]+n.length,r[1]),post:t.slice(r[1]+e.length)}}function Bo(n,e){var t=e.match(n);return t?t[0]:null}zo.range=Go;function Go(n,e,t){var r,i,s,o,a,l=t.indexOf(n),f=t.indexOf(e,l+1),u=l;if(l>=0&&f>0){if(n===e)return[l,f];for(r=[],s=t.length;u>=0&&!a;)u==l?(r.push(u),l=t.indexOf(n,u+1)):r.length==1?a=[r.pop(),f]:(i=r.pop(),i<s&&(s=i,o=f),f=t.indexOf(e,u+1)),u=l<f&&l>=0?l:f;r.length&&(a=[s,o])}return a}});var Ko=b((dd,Xo)=>{var jo=qo();Xo.exports=Ju;var $o="\0SLASH"+Math.random()+"\0",Vo="\0OPEN"+Math.random()+"\0",Ln="\0CLOSE"+Math.random()+"\0",Ho="\0COMMA"+Math.random()+"\0",Zo="\0PERIOD"+Math.random()+"\0";function bn(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function Xu(n){return n.split("\\\\").join($o).split("\\{").join(Vo).split("\\}").join(Ln).split("\\,").join(Ho).split("\\.").join(Zo)}function Ku(n){return n.split($o).join("\\").split(Vo).join("{").split(Ln).join("}").split(Ho).join(",").split(Zo).join(".")}function Yo(n){if(!n)return[""];var e=[],t=jo("{","}",n);if(!t)return n.split(",");var r=t.pre,i=t.body,s=t.post,o=r.split(",");o[o.length-1]+="{"+i+"}";var a=Yo(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Ju(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),It(Xu(n),!0).map(Ku)):[]}function Qu(n){return"{"+n+"}"}function ec(n){return/^-?0\d/.test(n)}function tc(n,e){return n<=e}function rc(n,e){return n>=e}function It(n,e){var t=[],r=jo("{","}",n);if(!r)return[n];var i=r.pre,s=r.post.length?It(r.post,!1):[""];if(/\$$/.test(r.pre))for(var o=0;o<s.length;o++){var a=i+"{"+r.body+"}"+s[o];t.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),u=l||f,h=r.body.indexOf(",")>=0;if(!u&&!h)return r.post.match(/,.*\}/)?(n=r.pre+"{"+r.body+Ln+r.post,It(n)):[n];var c;if(u)c=r.body.split(/\.\./);else if(c=Yo(r.body),c.length===1&&(c=It(c[0],!1).map(Qu),c.length===1))return s.map(function(G){return r.pre+c[0]+G});var d;if(u){var m=bn(c[0]),p=bn(c[1]),_=Math.max(c[0].length,c[1].length),v=c.length==3?Math.abs(bn(c[2])):1,C=tc,I=p<m;I&&(v*=-1,C=rc);var L=c.some(ec);d=[];for(var R=m;C(R,p);R+=v){var O;if(f)O=String.fromCharCode(R),O==="\\"&&(O="");else if(O=String(R),L){var k=_-O.length;if(k>0){var P=new Array(k+1).join("0");R<0?O="-"+P+O.slice(1):O=P+O}}d.push(O)}}else{d=[];for(var A=0;A<c.length;A++)d.push.apply(d,It(c[A],!1))}for(var A=0;A<d.length;A++)for(var o=0;o<s.length;o++){var a=i+d[A]+s[o];(!e||u||a)&&t.push(a)}}return t}});var dl=b(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.default=Wc;var Rt="diff-sequences",X=0,At=(n,e,t,r,i)=>{let s=0;for(;n<e&&t<r&&i(n,t);)n+=1,t+=1,s+=1;return s},Dt=(n,e,t,r,i)=>{let s=0;for(;n<=e&&t<=r&&i(e,r);)e-=1,r-=1,s+=1;return s},Nn=(n,e,t,r,i,s,o)=>{let a=0,l=-n,f=s[a],u=f;s[a]+=At(f+1,e,r+f-l+1,t,i);let h=n<o?n:o;for(a+=1,l+=2;a<=h;a+=1,l+=2){if(a!==n&&u<s[a])f=s[a];else if(f=u+1,e<=f)return a-1;u=s[a],s[a]=f+At(f+1,e,r+f-l+1,t,i)}return o},ul=(n,e,t,r,i,s,o)=>{let a=0,l=n,f=s[a],u=f;s[a]-=Dt(e,f-1,t,r+f-l-1,i);let h=n<o?n:o;for(a+=1,l-=2;a<=h;a+=1,l-=2){if(a!==n&&s[a]<u)f=s[a];else if(f=u-1,f<e)return a-1;u=s[a],s[a]=f-Dt(e,f-1,t,r+f-l-1,i)}return o},Bc=(n,e,t,r,i,s,o,a,l,f,u)=>{let h=r-e,c=t-e,m=i-r-c,p=-m-(n-1),_=-m+(n-1),v=X,C=n<a?n:a;for(let I=0,L=-n;I<=C;I+=1,L+=2){let R=I===0||I!==n&&v<o[I],O=R?o[I]:v,k=R?O:O+1,P=h+k-L,A=At(k+1,t,P+1,i,s),G=k+A;if(v=o[I],o[I]=G,p<=L&&L<=_){let fe=(n-1-(L+m))/2;if(fe<=f&&l[fe]-1<=G){let te=h+O-(R?L+1:L-1),g=Dt(e,O,r,te,s),w=O-g,x=te-g,y=w+1,T=x+1;u.nChangePreceding=n-1,n-1===y+T-e-r?(u.aEndPreceding=e,u.bEndPreceding=r):(u.aEndPreceding=y,u.bEndPreceding=T),u.nCommonPreceding=g,g!==0&&(u.aCommonPreceding=y,u.bCommonPreceding=T),u.nCommonFollowing=A,A!==0&&(u.aCommonFollowing=k+1,u.bCommonFollowing=P+1);let N=G+1,F=P+A+1;return u.nChangeFollowing=n-1,n-1===t+i-N-F?(u.aStartFollowing=t,u.bStartFollowing=i):(u.aStartFollowing=N,u.bStartFollowing=F),!0}}}return!1},zc=(n,e,t,r,i,s,o,a,l,f,u)=>{let h=i-t,c=t-e,m=i-r-c,p=m-n,_=m+n,v=X,C=n<f?n:f;for(let I=0,L=n;I<=C;I+=1,L-=2){let R=I===0||I!==n&&l[I]<v,O=R?l[I]:v,k=R?O:O-1,P=h+k-L,A=Dt(e,k-1,r,P-1,s),G=k-A;if(v=l[I],l[I]=G,p<=L&&L<=_){let fe=(n+(L-m))/2;if(fe<=a&&G-1<=o[fe]){let te=P-A;if(u.nChangePreceding=n,n===G+te-e-r?(u.aEndPreceding=e,u.bEndPreceding=r):(u.aEndPreceding=G,u.bEndPreceding=te),u.nCommonPreceding=A,A!==0&&(u.aCommonPreceding=G,u.bCommonPreceding=te),u.nChangeFollowing=n-1,n===1)u.nCommonFollowing=0,u.aStartFollowing=t,u.bStartFollowing=i;else{let g=h+O-(R?L-1:L+1),w=At(O,t,g,i,s);u.nCommonFollowing=w,w!==0&&(u.aCommonFollowing=O,u.bCommonFollowing=g);let x=O+w,y=g+w;n-1===t+i-x-y?(u.aStartFollowing=t,u.bStartFollowing=i):(u.aStartFollowing=x,u.bStartFollowing=y)}return!0}}}return!1},Gc=(n,e,t,r,i,s,o,a,l)=>{let f=r-e,u=i-t,h=t-e,c=i-r,d=c-h,m=h,p=h;if(o[0]=e-1,a[0]=t,d%2===0){let _=(n||d)/2,v=(h+c)/2;for(let C=1;C<=v;C+=1)if(m=Nn(C,t,i,f,s,o,m),C<_)p=ul(C,e,r,u,s,a,p);else if(zc(C,e,t,r,i,s,o,m,a,p,l))return}else{let _=((n||d)+1)/2,v=(h+c+1)/2,C=1;for(m=Nn(C,t,i,f,s,o,m),C+=1;C<=v;C+=1)if(p=ul(C-1,e,r,u,s,a,p),C<_)m=Nn(C,t,i,f,s,o,m);else if(Bc(C,e,t,r,i,s,o,m,a,p,l))return}throw new Error(`${Rt}: no overlap aStart=${e} aEnd=${t} bStart=${r} bEnd=${i}`)},Tn=(n,e,t,r,i,s,o,a,l,f)=>{if(i-r<t-e){if(s=!s,s&&o.length===1){let{foundSubsequence:G,isCommon:fe}=o[0];o[1]={foundSubsequence:(te,g,w)=>{G(te,w,g)},isCommon:(te,g)=>fe(g,te)}}let P=e,A=t;e=r,t=i,r=P,i=A}let{foundSubsequence:u,isCommon:h}=o[s?1:0];Gc(n,e,t,r,i,h,a,l,f);let{nChangePreceding:c,aEndPreceding:d,bEndPreceding:m,nCommonPreceding:p,aCommonPreceding:_,bCommonPreceding:v,nCommonFollowing:C,aCommonFollowing:I,bCommonFollowing:L,nChangeFollowing:R,aStartFollowing:O,bStartFollowing:k}=f;e<d&&r<m&&Tn(c,e,d,r,m,s,o,a,l,f),p!==0&&u(p,_,v),C!==0&&u(C,I,L),O<t&&k<i&&Tn(R,O,t,k,i,s,o,a,l,f)},cl=(n,e)=>{if(typeof e!="number")throw new TypeError(`${Rt}: ${n} typeof ${typeof e} is not a number`);if(!Number.isSafeInteger(e))throw new RangeError(`${Rt}: ${n} value ${e} is not a safe integer`);if(e<0)throw new RangeError(`${Rt}: ${n} value ${e} is a negative integer`)},hl=(n,e)=>{let t=typeof e;if(t!=="function")throw new TypeError(`${Rt}: ${n} typeof ${t} is not a function`)};function Wc(n,e,t,r){cl("aLength",n),cl("bLength",e),hl("isCommon",t),hl("foundSubsequence",r);let i=At(0,n,0,e,t);if(i!==0&&r(i,0,0),n!==i||e!==i){let s=i,o=i,a=Dt(s,n-1,o,e-1,t),l=n-a,f=e-a,u=i+a;n!==u&&e!==u&&Tn(0,s,l,o,f,!1,[{foundSubsequence:r,isCommon:t}],[X],[X],{aCommonFollowing:X,aCommonPreceding:X,aEndPreceding:X,aStartFollowing:X,bCommonFollowing:X,bCommonPreceding:X,bEndPreceding:X,bStartFollowing:X,nChangeFollowing:X,nChangePreceding:X,nCommonFollowing:X,nCommonPreceding:X}),a!==0&&r(a,l,f)}}});var vl=b((Yd,Sl)=>{"use strict";function Zc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Yc=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function yl(n){if(Buffer.isBuffer(n))return n;if(typeof n=="number")return Buffer.alloc(n);if(typeof n=="string")return Buffer.from(n);throw new Error("input must be buffer, number, or string, received "+typeof n)}function Xc(n){let e=yl(4);return e.writeInt32BE(n,0),e}function Mn(n,e){n=yl(n),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let t=~~e^-1;for(var r=0;r<n.length;r++)t=Yc[(t^n[r])&255]^t>>>8;return t^-1}function Pn(){return Xc(Mn.apply(null,arguments))}Pn.signed=function(){return Mn.apply(null,arguments)};Pn.unsigned=function(){return Mn.apply(null,arguments)>>>0};var Kc=Pn,Jc=Zc(Kc);Sl.exports=Jc});var zl=b(Wn=>{var xl=require("fs"),mr=require("stream").Transform,Ll=require("stream").PassThrough,Ol=require("zlib"),zn=require("util"),Qc=require("events").EventEmitter,eh=require("events").errorMonitor,Il=vl();Wn.ZipFile=Ne;Wn.dateToDosDateTime=Bl;zn.inherits(Ne,Qc);function Ne(){this.outputStream=new Ll,this.entries=[],this.outputStreamCursor=0,this.ended=!1,this.allDone=!1,this.forceZip64Eocd=!1,this.errored=!1,this.on(eh,function(){this.errored=!0})}Ne.prototype.addFile=function(n,e,t){var r=this;if(e=_r(e,!1),t==null&&(t={}),!gr(r)){var i=new D(e,!1,t);r.entries.push(i),xl.stat(n,function(s,o){if(s)return r.emit("error",s);if(!o.isFile())return r.emit("error",new Error("not a file: "+n));i.uncompressedSize=o.size,t.mtime==null&&i.setLastModDate(o.mtime),t.mode==null&&i.setFileAttributesMode(o.mode),i.setFileDataPumpFunction(function(){var a=xl.createReadStream(n);i.state=D.FILE_DATA_IN_PROGRESS,a.on("error",function(l){r.emit("error",l)}),Nl(r,i,a)}),Ie(r)})}};Ne.prototype.addReadStream=function(n,e,t){this.addReadStreamLazy(e,t,function(r){r(null,n)})};Ne.prototype.addReadStreamLazy=function(n,e,t){var r=this;if(typeof e=="function"&&(t=e,e=null),e==null&&(e={}),n=_r(n,!1),!gr(r)){var i=new D(n,!1,e);r.entries.push(i),i.setFileDataPumpFunction(function(){t(function(s,o){if(s)return r.emit("error",s);i.state=D.FILE_DATA_IN_PROGRESS,Nl(r,i,o)})}),Ie(r)}};Ne.prototype.addBuffer=function(n,e,t){var r=this;if(e=_r(e,!1),n.length>1073741823)throw new Error("buffer too large: "+n.length+" > 1073741823");if(t==null&&(t={}),t.size!=null)throw new Error("options.size not allowed");if(gr(r))return;var i=new D(e,!1,t);i.uncompressedSize=n.length,i.crc32=Il.unsigned(n),i.crcAndFileSizeKnown=!0,r.entries.push(i),i.compressionLevel===0?s(n):Ol.deflateRaw(n,{level:i.compressionLevel},function(o,a){s(a)});function s(o){i.compressedSize=o.length,i.setFileDataPumpFunction(function(){Ge(r,o),Ge(r,i.getDataDescriptor()),i.state=D.FILE_DATA_DONE,setImmediate(function(){Ie(r)})}),Ie(r)}};Ne.prototype.addEmptyDirectory=function(n,e){var t=this;if(n=_r(n,!0),e==null&&(e={}),e.size!=null)throw new Error("options.size not allowed");if(e.compress!=null)throw new Error("options.compress not allowed");if(e.compressionLevel!=null)throw new Error("options.compressionLevel not allowed");if(!gr(t)){var r=new D(n,!0,e);t.entries.push(r),r.setFileDataPumpFunction(function(){Ge(t,r.getDataDescriptor()),r.state=D.FILE_DATA_DONE,Ie(t)}),Ie(t)}};var th=Oe([80,75,5,6]);Ne.prototype.end=function(n,e){if(typeof n=="function"&&(e=n,n=null),n==null&&(n={}),!this.ended&&(this.ended=!0,!this.errored)){if(this.calculatedTotalSizeCallback=e,this.forceZip64Eocd=!!n.forceZip64Format,n.comment){if(typeof n.comment=="string"?this.comment=sh(n.comment):this.comment=n.comment,this.comment.length>65535)throw new Error("comment is too large");if(Mt(this.comment,th))throw new Error("comment contains end of central directory record signature")}else this.comment=Pt;Ie(this)}};function Ge(n,e){n.outputStream.write(e),n.outputStreamCursor+=e.length}function Nl(n,e,t){var r=new Gn,i=new pr,s=e.compressionLevel!==0?new Ol.DeflateRaw({level:e.compressionLevel}):new Ll,o=new pr;t.pipe(r).pipe(i).pipe(s).pipe(o).pipe(n.outputStream,{end:!1}),o.on("end",function(){if(e.crc32=r.crc32,e.uncompressedSize==null)e.uncompressedSize=i.byteCount;else if(e.uncompressedSize!==i.byteCount)return n.emit("error",new Error("file data stream has unexpected number of bytes"));e.compressedSize=o.byteCount,n.outputStreamCursor+=e.compressedSize,Ge(n,e.getDataDescriptor()),e.state=D.FILE_DATA_DONE,Ie(n)})}function rh(n){if(n.compress!=null&&n.compressionLevel!=null&&!!n.compress!=!!n.compressionLevel)throw new Error("conflicting settings for compress and compressionLevel");return n.compressionLevel!=null?n.compressionLevel:n.compress===!1?0:6}function Ie(n){if(n.allDone||n.errored)return;if(n.ended&&n.calculatedTotalSizeCallback!=null){var e=nh(n);e!=null&&(n.calculatedTotalSizeCallback(e),n.calculatedTotalSizeCallback=null)}var t=r();function r(){for(var s=0;s<n.entries.length;s++){var o=n.entries[s];if(o.state<D.FILE_DATA_DONE)return o}return null}if(t!=null){if(t.state<D.READY_TO_PUMP_FILE_DATA||t.state===D.FILE_DATA_IN_PROGRESS)return;t.relativeOffsetOfLocalHeader=n.outputStreamCursor;var i=t.getLocalFileHeader();Ge(n,i),t.doFileDataPump()}else n.ended&&(n.offsetOfStartOfCentralDirectory=n.outputStreamCursor,n.entries.forEach(function(s){var o=s.getCentralDirectoryRecord();Ge(n,o)}),Ge(n,ih(n)),n.outputStream.end(),n.allDone=!0)}function nh(n){for(var e=0,t=0,r=0;r<n.entries.length;r++){var i=n.entries[r];if(i.compressionLevel!==0)return-1;if(i.state>=D.READY_TO_PUMP_FILE_DATA){if(i.uncompressedSize==null)return-1}else if(i.uncompressedSize==null)return null;i.relativeOffsetOfLocalHeader=e;var s=i.useZip64Format();e+=Tl+i.utf8FileName.length,e+=i.uncompressedSize,i.crcAndFileSizeKnown||(s?e+=Ul:e+=Fl),t+=kl+i.utf8FileName.length+i.fileComment.length,i.forceDosTimestamp||(t+=Un),s&&(t+=kn)}var o=0;return(n.forceZip64Eocd||n.entries.length>=65535||t>=65535||e>=4294967295)&&(o+=hr+Fn),o+=dr+n.comment.length,e+t+o}function gr(n){if(n.ended)throw new Error("cannot add entries after calling end()");return!!n.errored}var hr=56,Fn=20,dr=22;function ih(n,e){var t=!1,r=n.entries.length;(n.forceZip64Eocd||n.entries.length>=65535)&&(r=65535,t=!0);var i=n.outputStreamCursor-n.offsetOfStartOfCentralDirectory,s=i;(n.forceZip64Eocd||i>=4294967295)&&(s=4294967295,t=!0);var o=n.offsetOfStartOfCentralDirectory;if((n.forceZip64Eocd||n.offsetOfStartOfCentralDirectory>=4294967295)&&(o=4294967295,t=!0),e)return t?hr+Fn+dr:dr;var a=J(dr+n.comment.length);if(a.writeUInt32LE(101010256,0),a.writeUInt16LE(0,4),a.writeUInt16LE(0,6),a.writeUInt16LE(r,8),a.writeUInt16LE(r,10),a.writeUInt32LE(s,12),a.writeUInt32LE(o,16),a.writeUInt16LE(n.comment.length,20),n.comment.copy(a,22),!t)return a;var l=J(hr);l.writeUInt32LE(101075792,0),pe(l,hr-12,4),l.writeUInt16LE(Dl,12),l.writeUInt16LE(Al,14),l.writeUInt32LE(0,16),l.writeUInt32LE(0,20),pe(l,n.entries.length,24),pe(l,n.entries.length,32),pe(l,i,40),pe(l,n.offsetOfStartOfCentralDirectory,48);var f=J(Fn);return f.writeUInt32LE(117853008,0),f.writeUInt32LE(0,4),pe(f,n.outputStreamCursor,8),f.writeUInt32LE(1,16),Buffer.concat([l,f,a])}function _r(n,e){if(n==="")throw new Error("empty metadataPath");if(n=n.replace(/\\/g,"/"),/^[a-zA-Z]:/.test(n)||/^\//.test(n))throw new Error("absolute path: "+n);if(n.split("/").indexOf("..")!==-1)throw new Error("invalid relative path: "+n);var t=/\/$/.test(n);if(e)t||(n+="/");else if(t)throw new Error("file path cannot end with '/': "+n);return n}var Pt=J(0);function D(n,e,t){if(this.utf8FileName=Oe(n),this.utf8FileName.length>65535)throw new Error("utf8 file name too long. "+utf8FileName.length+" > 65535");if(this.isDirectory=e,this.state=D.WAITING_FOR_METADATA,this.setLastModDate(t.mtime!=null?t.mtime:new Date),this.forceDosTimestamp=!!t.forceDosTimestamp,t.mode!=null?this.setFileAttributesMode(t.mode):this.setFileAttributesMode(e?16893:33204),e?(this.crcAndFileSizeKnown=!0,this.crc32=0,this.uncompressedSize=0,this.compressedSize=0):(this.crcAndFileSizeKnown=!1,this.crc32=null,this.uncompressedSize=null,this.compressedSize=null,t.size!=null&&(this.uncompressedSize=t.size)),e?this.compressionLevel=0:this.compressionLevel=rh(t),this.forceZip64Format=!!t.forceZip64Format,t.fileComment){if(typeof t.fileComment=="string"?this.fileComment=Oe(t.fileComment,"utf-8"):this.fileComment=t.fileComment,this.fileComment.length>65535)throw new Error("fileComment is too large")}else this.fileComment=Pt}D.WAITING_FOR_METADATA=0;D.READY_TO_PUMP_FILE_DATA=1;D.FILE_DATA_IN_PROGRESS=2;D.FILE_DATA_DONE=3;D.prototype.setLastModDate=function(n){this.mtime=n;var e=Bl(n);this.lastModFileTime=e.time,this.lastModFileDate=e.date};D.prototype.setFileAttributesMode=function(n){if((n&65535)!==n)throw new Error("invalid mode. expected: 0 <= "+n+" <= 65535");this.externalFileAttributes=n<<16>>>0};D.prototype.setFileDataPumpFunction=function(n){this.doFileDataPump=n,this.state=D.READY_TO_PUMP_FILE_DATA};D.prototype.useZip64Format=function(){return this.forceZip64Format||this.uncompressedSize!=null&&this.uncompressedSize>4294967294||this.compressedSize!=null&&this.compressedSize>4294967294||this.relativeOffsetOfLocalHeader!=null&&this.relativeOffsetOfLocalHeader>4294967294};var Tl=30,Rl=20,Al=45,Dl=831,Ml=2048,Pl=8;D.prototype.getLocalFileHeader=function(){var n=0,e=0,t=0;this.crcAndFileSizeKnown&&(n=this.crc32,e=this.compressedSize,t=this.uncompressedSize);var r=J(Tl),i=Ml;return this.crcAndFileSizeKnown||(i|=Pl),r.writeUInt32LE(67324752,0),r.writeUInt16LE(Rl,4),r.writeUInt16LE(i,6),r.writeUInt16LE(this.getCompressionMethod(),8),r.writeUInt16LE(this.lastModFileTime,10),r.writeUInt16LE(this.lastModFileDate,12),r.writeUInt32LE(n,14),r.writeUInt32LE(e,18),r.writeUInt32LE(t,22),r.writeUInt16LE(this.utf8FileName.length,26),r.writeUInt16LE(0,28),Buffer.concat([r,this.utf8FileName])};var Fl=16,Ul=24;D.prototype.getDataDescriptor=function(){if(this.crcAndFileSizeKnown)return Pt;if(this.useZip64Format()){var n=J(Ul);return n.writeUInt32LE(134695760,0),n.writeUInt32LE(this.crc32,4),pe(n,this.compressedSize,8),pe(n,this.uncompressedSize,16),n}else{var n=J(Fl);return n.writeUInt32LE(134695760,0),n.writeUInt32LE(this.crc32,4),n.writeUInt32LE(this.compressedSize,8),n.writeUInt32LE(this.uncompressedSize,12),n}};var kl=46,Un=9,kn=28;D.prototype.getCentralDirectoryRecord=function(){var n=J(kl),e=Ml;this.crcAndFileSizeKnown||(e|=Pl);var t=Pt;if(!this.forceDosTimestamp){t=J(Un),t.writeUInt16LE(21589,0),t.writeUInt16LE(Un-4,2);var r=1,i=2;t.writeUInt8(r|i,4);var s=Math.floor(this.mtime.getTime()/1e3);s<-2147483648&&(s=-2147483648),s>2147483647&&(s=2147483647),t.writeUInt32LE(s,5)}var o=this.compressedSize,a=this.uncompressedSize,l=this.relativeOffsetOfLocalHeader,f=Rl,u=Pt;return this.useZip64Format()&&(o=4294967295,a=4294967295,l=4294967295,f=Al,u=J(kn),u.writeUInt16LE(1,0),u.writeUInt16LE(kn-4,2),pe(u,this.uncompressedSize,4),pe(u,this.compressedSize,12),pe(u,this.relativeOffsetOfLocalHeader,20)),n.writeUInt32LE(33639248,0),n.writeUInt16LE(Dl,4),n.writeUInt16LE(f,6),n.writeUInt16LE(e,8),n.writeUInt16LE(this.getCompressionMethod(),10),n.writeUInt16LE(this.lastModFileTime,12),n.writeUInt16LE(this.lastModFileDate,14),n.writeUInt32LE(this.crc32,16),n.writeUInt32LE(o,20),n.writeUInt32LE(a,24),n.writeUInt16LE(this.utf8FileName.length,28),n.writeUInt16LE(t.length+u.length,30),n.writeUInt16LE(this.fileComment.length,32),n.writeUInt16LE(0,34),n.writeUInt16LE(0,36),n.writeUInt32LE(this.externalFileAttributes,38),n.writeUInt32LE(l,42),Buffer.concat([n,this.utf8FileName,t,u,this.fileComment])};D.prototype.getCompressionMethod=function(){var n=0,e=8;return this.compressionLevel===0?n:e};var Cl=new Date(1980,0,1),bl=new Date(2107,11,31,23,59,58);function Bl(n){n<Cl?n=Cl:n>bl&&(n=bl);var e=0;e|=n.getDate()&31,e|=(n.getMonth()+1&15)<<5,e|=(n.getFullYear()-1980&127)<<9;var t=0;return t|=Math.floor(n.getSeconds()/2),t|=(n.getMinutes()&63)<<5,t|=(n.getHours()&31)<<11,{date:e,time:t}}function pe(n,e,t){var r=Math.floor(e/4294967296),i=e%4294967296;n.writeUInt32LE(i,t),n.writeUInt32LE(r,t+4)}zn.inherits(pr,mr);function pr(n){mr.call(this,n),this.byteCount=0}pr.prototype._transform=function(n,e,t){this.byteCount+=n.length,t(null,n)};zn.inherits(Gn,mr);function Gn(n){mr.call(this,n),this.crc32=0}Gn.prototype._transform=function(n,e,t){this.crc32=Il.unsigned(n,this.crc32),t(null,n)};var Bn="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";if(Bn.length!==256)throw new Error("assertion failure");var cr=null;function sh(n){if(/^[\x20-\x7e]*$/.test(n))return Oe(n,"utf-8");if(cr==null){cr={};for(var e=0;e<Bn.length;e++)cr[Bn[e]]=e}for(var t=J(n.length),e=0;e<n.length;e++){var r=cr[n[e]];if(r==null)throw new Error("character not encodable in CP437: "+JSON.stringify(n[e]));t[e]=r}return t}function J(n){J=e;try{return J(n)}catch{return J=t,J(n)}function e(r){return Buffer.allocUnsafe(r)}function t(r){return new Buffer(r)}}function Oe(n,e){Oe=t;try{return Oe(n,e)}catch{return Oe=r,Oe(n,e)}function t(i,s){return Buffer.from(i,s)}function r(i,s){return new Buffer(i,s)}}function Mt(n,e){Mt=t;try{return Mt(n,e)}catch{return Mt=r,Mt(n,e)}function t(i,s){return i.includes(s)}function r(i,s){for(var o=0;o<=i.length-s.length;o++)for(var a=0;;a++){if(a===s.length)return!0;if(i[o+a]!==s[a])break}return!1}}});var Vl=b((Jd,$l)=>{var le=require("fs"),oh=require("util"),nt=require("path"),Yn=require("events"),Gl=require("zlib"),jl=require("stream"),E={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSIGFIRST:80,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,MAXFILECOMMENT:65535,ENDL64HDR:20,ENDL64SIG:117853008,ENDL64SIGFIRST:80,ENDL64OFS:8,END64HDR:56,END64SIG:101075792,END64SIGFIRST:80,END64SUB:24,END64TOT:32,END64SIZ:40,END64OFF:48,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,FLG_ENC:0,FLG_COMP1:1,FLG_COMP2:2,FLG_DESC:4,FLG_ENH:8,FLG_STR:16,FLG_LNG:1024,FLG_MSK:4096,FLG_ENTRY_ENC:1,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535},De=function(n){let e,t,r,i,s,o,l=this,f=n.storeEntries!==!1?{}:null,u=n.file,h=n.nameEncoding?new TextDecoder(n.nameEncoding):null;c();function c(){n.fd?(e=n.fd,d()):le.open(u,"r",(g,w)=>{if(g)return l.emit("error",g);e=w,d()})}function d(){le.fstat(e,(g,w)=>{if(g)return l.emit("error",g);t=w.size,r=n.chunkSize||Math.round(t/1e3),r=Math.max(Math.min(r,Math.min(128*1024,t)),Math.min(1024,t)),p()})}function m(g,w){if(g||!w)return l.emit("error",g||new Error("Archive read error"));let x=i.lastPos,y=x-i.win.position,T=i.win.buffer,N=i.minPos;for(;--x>=N&&--y>=0;)if(T.length-y>=4&&T[y]===i.firstByte&&T.readUInt32LE(y)===i.sig){i.lastBufferPosition=y,i.lastBytesRead=w,i.complete();return}if(x===N)return l.emit("error",new Error("Bad archive"));if(i.lastPos=x+1,i.chunkSize*=2,x<=N)return l.emit("error",new Error("Bad archive"));let F=Math.min(i.chunkSize,x-N);i.win.expandLeft(F,m)}function p(){let g=Math.min(E.ENDHDR+E.MAXFILECOMMENT,t);i={win:new Er(e),totalReadLength:g,minPos:t-g,lastPos:t,chunkSize:Math.min(1024,r),firstByte:E.ENDSIGFIRST,sig:E.ENDSIG,complete:_},i.win.read(t-i.chunkSize,i.chunkSize,m)}function _(){let g=i.win.buffer,w=i.lastBufferPosition;try{s=new qn,s.read(g.slice(w,w+E.ENDHDR)),s.headerOffset=i.win.position+w,s.commentLength?l.comment=g.slice(w+E.ENDHDR,w+E.ENDHDR+s.commentLength).toString():l.comment=null,l.entriesCount=s.volumeEntries,l.centralDirectory=s,s.volumeEntries===E.EF_ZIP64_OR_16&&s.totalEntries===E.EF_ZIP64_OR_16||s.size===E.EF_ZIP64_OR_32||s.offset===E.EF_ZIP64_OR_32?v():(i={},L())}catch(x){l.emit("error",x)}}function v(){let g=E.ENDL64HDR;i.lastBufferPosition>g?(i.lastBufferPosition-=g,C()):(i={win:i.win,totalReadLength:g,minPos:i.win.position-g,lastPos:i.win.position,chunkSize:i.chunkSize,firstByte:E.ENDL64SIGFIRST,sig:E.ENDL64SIG,complete:C},i.win.read(i.lastPos-i.chunkSize,i.chunkSize,m))}function C(){let g=i.win.buffer,w=new jn;w.read(g.slice(i.lastBufferPosition,i.lastBufferPosition+E.ENDL64HDR));let x=t-w.headerOffset;i={win:i.win,totalReadLength:x,minPos:w.headerOffset,lastPos:i.lastPos,chunkSize:i.chunkSize,firstByte:E.END64SIGFIRST,sig:E.END64SIG,complete:I},i.win.read(t-i.chunkSize,i.chunkSize,m)}function I(){let g=i.win.buffer,w=new $n;w.read(g.slice(i.lastBufferPosition,i.lastBufferPosition+E.END64HDR)),l.centralDirectory.volumeEntries=w.volumeEntries,l.centralDirectory.totalEntries=w.totalEntries,l.centralDirectory.size=w.size,l.centralDirectory.offset=w.offset,l.entriesCount=w.volumeEntries,i={},L()}function L(){i={win:new Er(e),pos:s.offset,chunkSize:r,entriesLeft:s.volumeEntries},i.win.read(i.pos,Math.min(r,t-i.pos),R)}function R(g,w){if(g||!w)return l.emit("error",g||new Error("Entries read error"));let x=i.pos-i.win.position,y=i.entry,T=i.win.buffer,N=T.length;try{for(;i.entriesLeft>0;){y||(y=new Vn,y.readHeader(T,x),y.headerOffset=i.win.position+x,i.entry=y,i.pos+=E.CENHDR,x+=E.CENHDR);let F=y.fnameLen+y.extraLen+y.comLen,q=F+(i.entriesLeft>1?E.CENHDR:0);if(N-x<q){i.win.moveRight(r,R,x),i.move=!0;return}y.read(T,x,h),n.skipEntryNameValidation||y.validateName(),f&&(f[y.name]=y),l.emit("entry",y),i.entry=y=null,i.entriesLeft--,i.pos+=F,x+=F}l.emit("ready")}catch(F){l.emit("error",F)}}function O(){if(!f)throw new Error("storeEntries disabled")}Object.defineProperty(this,"ready",{get(){return!1}}),this.entry=function(g){return O(),f[g]},this.entries=function(){return O(),f},this.stream=function(g,w){return this.openEntry(g,(x,y)=>{if(x)return w(x);let T=k(y),N=new Hn(e,T,y.compressedSize);if(y.method!==E.STORED)if(y.method===E.DEFLATED)N=N.pipe(Gl.createInflateRaw());else return w(new Error("Unknown compression method: "+y.method));P(y)&&(N=N.pipe(new Zn(N,y.crc,y.size))),w(null,N)},!1)},this.entryDataSync=function(g){let w=null;if(this.openEntry(g,(y,T)=>{w=y,g=T},!0),w)throw w;let x=Buffer.alloc(g.compressedSize);if(new Re(e,x,0,g.compressedSize,k(g),y=>{w=y}).read(!0),w)throw w;if(g.method!==E.STORED)if(g.method===E.DEFLATED||g.method===E.ENHANCED_DEFLATED)x=Gl.inflateRawSync(x);else throw new Error("Unknown compression method: "+g.method);if(x.length!==g.size)throw new Error("Invalid size");return P(g)&&new wr(g.crc,g.size).data(x),x},this.openEntry=function(g,w,x){if(typeof g=="string"&&(O(),g=f[g],!g))return w(new Error("Entry not found"));if(!g.isFile)return w(new Error("Entry is not file"));if(!e)return w(new Error("Archive closed"));let y=Buffer.alloc(E.LOCHDR);new Re(e,y,0,y.length,g.offset,T=>{if(T)return w(T);let N;try{g.readDataHeader(y),g.encrypted&&(N=new Error("Entry encrypted"))}catch(F){N=F}w(N,g)}).read(x)};function k(g){return g.offset+E.LOCHDR+g.fnameLen+g.extraLen}function P(g){return(g.flags&8)!==8}function A(g,w,x){l.stream(g,(y,T)=>{if(y)x(y);else{let N,F;T.on("error",q=>{F=q,N&&(T.unpipe(N),N.close(()=>{x(q)}))}),le.open(w,"w",(q,ue)=>{if(q)return x(q);if(F){le.close(e,()=>{x(F)});return}N=le.createWriteStream(w,{fd:ue}),N.on("finish",()=>{l.emit("extract",g,w),F||x()}),T.pipe(N)})}})}function G(g,w,x){if(!w.length)return x();let y=w.shift();y=nt.join(g,nt.join(...y)),le.mkdir(y,{recursive:!0},T=>{if(T&&T.code!=="EEXIST")return x(T);G(g,w,x)})}function fe(g,w,x,y,T){if(!x.length)return y(null,T);let N=x.shift(),F=nt.join(g,N.name.replace(w,""));A(N,F,q=>{if(q)return y(q,T);fe(g,w,x,y,T+1)})}this.extract=function(g,w,x){let y=g||"";if(typeof g=="string"&&(g=this.entry(g),g?y=g.name:y.length&&y[y.length-1]!=="/"&&(y+="/")),!g||g.isDirectory){let T=[],N=[],F={};for(let q in f)if(Object.prototype.hasOwnProperty.call(f,q)&&q.lastIndexOf(y,0)===0){let ue=q.replace(y,""),Kn=f[q];if(Kn.isFile&&(T.push(Kn),ue=nt.dirname(ue)),ue&&!F[ue]&&ue!=="."){F[ue]=!0;let ve=ue.split("/").filter(it=>it);for(ve.length&&N.push(ve);ve.length>1;){ve=ve.slice(0,ve.length-1);let it=ve.join("/");if(F[it]||it===".")break;F[it]=!0,N.push(ve)}}}N.sort((q,ue)=>q.length-ue.length),N.length?G(w,N,q=>{q?x(q):fe(w,y,T,x,0)}):fe(w,y,T,x,0)}else le.stat(w,(T,N)=>{N&&N.isDirectory()?A(g,nt.join(w,nt.basename(g.name)),x):A(g,w,x)})},this.close=function(g){o||!e?(o=!0,g&&g()):(o=!0,le.close(e,w=>{e=null,g&&g(w)}))};let te=Yn.EventEmitter.prototype.emit;this.emit=function(...g){if(!o)return te.call(this,...g)}};De.setFs=function(n){le=n};De.debugLog=(...n)=>{De.debug&&console.log(...n)};oh.inherits(De,Yn.EventEmitter);var Te=Symbol("zip");De.async=class extends Yn.EventEmitter{constructor(e){super();let t=new De(e);t.on("entry",r=>this.emit("entry",r)),t.on("extract",(r,i)=>this.emit("extract",r,i)),this[Te]=new Promise((r,i)=>{t.on("ready",()=>{t.removeListener("error",i),r(t)}),t.on("error",i)})}get entriesCount(){return this[Te].then(e=>e.entriesCount)}get comment(){return this[Te].then(e=>e.comment)}async entry(e){return(await this[Te]).entry(e)}async entries(){return(await this[Te]).entries()}async stream(e){let t=await this[Te];return new Promise((r,i)=>{t.stream(e,(s,o)=>{s?i(s):r(o)})})}async entryData(e){let t=await this.stream(e);return new Promise((r,i)=>{let s=[];t.on("data",o=>s.push(o)),t.on("end",()=>{r(Buffer.concat(s))}),t.on("error",o=>{t.removeAllListeners("end"),i(o)})})}async extract(e,t){let r=await this[Te];return new Promise((i,s)=>{r.extract(e,t,(o,a)=>{o?s(o):i(a)})})}async close(){let e=await this[Te];return new Promise((t,r)=>{e.close(i=>{i?r(i):t()})})}};var qn=class{read(e){if(e.length!==E.ENDHDR||e.readUInt32LE(0)!==E.ENDSIG)throw new Error("Invalid central directory");this.volumeEntries=e.readUInt16LE(E.ENDSUB),this.totalEntries=e.readUInt16LE(E.ENDTOT),this.size=e.readUInt32LE(E.ENDSIZ),this.offset=e.readUInt32LE(E.ENDOFF),this.commentLength=e.readUInt16LE(E.ENDCOM)}},jn=class{read(e){if(e.length!==E.ENDL64HDR||e.readUInt32LE(0)!==E.ENDL64SIG)throw new Error("Invalid zip64 central directory locator");this.headerOffset=Ae(e,E.ENDSUB)}},$n=class{read(e){if(e.length!==E.END64HDR||e.readUInt32LE(0)!==E.END64SIG)throw new Error("Invalid central directory");this.volumeEntries=Ae(e,E.END64SUB),this.totalEntries=Ae(e,E.END64TOT),this.size=Ae(e,E.END64SIZ),this.offset=Ae(e,E.END64OFF)}},Vn=class{readHeader(e,t){if(e.length<t+E.CENHDR||e.readUInt32LE(t)!==E.CENSIG)throw new Error("Invalid entry header");this.verMade=e.readUInt16LE(t+E.CENVEM),this.version=e.readUInt16LE(t+E.CENVER),this.flags=e.readUInt16LE(t+E.CENFLG),this.method=e.readUInt16LE(t+E.CENHOW);let r=e.readUInt16LE(t+E.CENTIM),i=e.readUInt16LE(t+E.CENTIM+2);this.time=Wl(r,i),this.crc=e.readUInt32LE(t+E.CENCRC),this.compressedSize=e.readUInt32LE(t+E.CENSIZ),this.size=e.readUInt32LE(t+E.CENLEN),this.fnameLen=e.readUInt16LE(t+E.CENNAM),this.extraLen=e.readUInt16LE(t+E.CENEXT),this.comLen=e.readUInt16LE(t+E.CENCOM),this.diskStart=e.readUInt16LE(t+E.CENDSK),this.inattr=e.readUInt16LE(t+E.CENATT),this.attr=e.readUInt32LE(t+E.CENATX),this.offset=e.readUInt32LE(t+E.CENOFF)}readDataHeader(e){if(e.readUInt32LE(0)!==E.LOCSIG)throw new Error("Invalid local header");this.version=e.readUInt16LE(E.LOCVER),this.flags=e.readUInt16LE(E.LOCFLG),this.method=e.readUInt16LE(E.LOCHOW);let t=e.readUInt16LE(E.LOCTIM),r=e.readUInt16LE(E.LOCTIM+2);this.time=Wl(t,r),this.crc=e.readUInt32LE(E.LOCCRC)||this.crc;let i=e.readUInt32LE(E.LOCSIZ);i&&i!==E.EF_ZIP64_OR_32&&(this.compressedSize=i);let s=e.readUInt32LE(E.LOCLEN);s&&s!==E.EF_ZIP64_OR_32&&(this.size=s),this.fnameLen=e.readUInt16LE(E.LOCNAM),this.extraLen=e.readUInt16LE(E.LOCEXT)}read(e,t,r){let i=e.slice(t,t+=this.fnameLen);this.name=r?r.decode(new Uint8Array(i)):i.toString("utf8");let s=e[t-1];this.isDirectory=s===47||s===92,this.extraLen&&(this.readExtra(e,t),t+=this.extraLen),this.comment=this.comLen?e.slice(t,t+this.comLen).toString():null}validateName(){if(/\\|^\w+:|^\/|(^|\/)\.\.(\/|$)/.test(this.name))throw new Error("Malicious entry: "+this.name)}readExtra(e,t){let r,i,s=t+this.extraLen;for(;t<s;)r=e.readUInt16LE(t),t+=2,i=e.readUInt16LE(t),t+=2,E.ID_ZIP64===r&&this.parseZip64Extra(e,t,i),t+=i}parseZip64Extra(e,t,r){r>=8&&this.size===E.EF_ZIP64_OR_32&&(this.size=Ae(e,t),t+=8,r-=8),r>=8&&this.compressedSize===E.EF_ZIP64_OR_32&&(this.compressedSize=Ae(e,t),t+=8,r-=8),r>=8&&this.offset===E.EF_ZIP64_OR_32&&(this.offset=Ae(e,t),t+=8,r-=8),r>=4&&this.diskStart===E.EF_ZIP64_OR_16&&(this.diskStart=e.readUInt32LE(t))}get encrypted(){return(this.flags&E.FLG_ENTRY_ENC)===E.FLG_ENTRY_ENC}get isFile(){return!this.isDirectory}},Re=class{constructor(e,t,r,i,s,o){this.fd=e,this.buffer=t,this.offset=r,this.length=i,this.position=s,this.callback=o,this.bytesRead=0,this.waiting=!1}read(e){De.debugLog("read",this.position,this.bytesRead,this.length,this.offset),this.waiting=!0;let t;if(e){let r=0;try{r=le.readSync(this.fd,this.buffer,this.offset+this.bytesRead,this.length-this.bytesRead,this.position+this.bytesRead)}catch(i){t=i}this.readCallback(e,t,t?r:null)}else le.read(this.fd,this.buffer,this.offset+this.bytesRead,this.length-this.bytesRead,this.position+this.bytesRead,this.readCallback.bind(this,e))}readCallback(e,t,r){if(typeof r=="number"&&(this.bytesRead+=r),t||!r||this.bytesRead===this.length)return this.waiting=!1,this.callback(t,this.bytesRead);this.read(e)}},Er=class{constructor(e){this.position=0,this.buffer=Buffer.alloc(0),this.fd=e,this.fsOp=null}checkOp(){if(this.fsOp&&this.fsOp.waiting)throw new Error("Operation in progress")}read(e,t,r){this.checkOp(),this.buffer.length<t&&(this.buffer=Buffer.alloc(t)),this.position=e,this.fsOp=new Re(this.fd,this.buffer,0,t,this.position,r).read()}expandLeft(e,t){this.checkOp(),this.buffer=Buffer.concat([Buffer.alloc(e),this.buffer]),this.position-=e,this.position<0&&(this.position=0),this.fsOp=new Re(this.fd,this.buffer,0,e,this.position,t).read()}expandRight(e,t){this.checkOp();let r=this.buffer.length;this.buffer=Buffer.concat([this.buffer,Buffer.alloc(e)]),this.fsOp=new Re(this.fd,this.buffer,r,e,this.position+r,t).read()}moveRight(e,t,r){this.checkOp(),r?this.buffer.copy(this.buffer,0,r):r=0,this.position+=r,this.fsOp=new Re(this.fd,this.buffer,this.buffer.length-r,r,this.position+this.buffer.length-r,t).read()}},Hn=class extends jl.Readable{constructor(e,t,r){super(),this.fd=e,this.offset=t,this.length=r,this.pos=0,this.readCallback=this.readCallback.bind(this)}_read(e){let t=Buffer.alloc(Math.min(e,this.length-this.pos));t.length?le.read(this.fd,t,0,t.length,this.offset+this.pos,this.readCallback):this.push(null)}readCallback(e,t,r){this.pos+=t,e?(this.emit("error",e),this.push(null)):t?(t!==r.length&&(r=r.slice(0,t)),this.push(r)):this.push(null)}},Zn=class extends jl.Transform{constructor(e,t,r){super(),this.verify=new wr(t,r),e.on("error",i=>{this.emit("error",i)})}_transform(e,t,r){let i;try{this.verify.data(e)}catch(s){i=s}r(i,e)}},wr=class n{constructor(e,t){this.crc=e,this.size=t,this.state={crc:-1,size:0}}data(e){let t=n.getCrcTable(),r=this.state.crc,i=0,s=e.length;for(;--s>=0;)r=t[(r^e[i++])&255]^r>>>8;if(this.state.crc=r,this.state.size+=e.length,this.state.size>=this.size){let o=Buffer.alloc(4);if(o.writeInt32LE(~this.state.crc&4294967295,0),r=o.readUInt32LE(0),r!==this.crc)throw new Error("Invalid CRC");if(this.state.size!==this.size)throw new Error("Invalid size")}}static getCrcTable(){let e=n.crcTable;if(!e){n.crcTable=e=[];let t=Buffer.alloc(4);for(let r=0;r<256;r++){let i=r;for(let s=8;--s>=0;)i&1?i=3988292384^i>>>1:i=i>>>1;i<0&&(t.writeInt32LE(i,0),i=t.readUInt32LE(0)),e[r]=i}}return e}};function Wl(n,e){let t=ql(n,16),r=ql(e,16),i={h:parseInt(t.slice(0,5).join(""),2),m:parseInt(t.slice(5,11).join(""),2),s:parseInt(t.slice(11,16).join(""),2)*2,Y:parseInt(r.slice(0,7).join(""),2)+1980,M:parseInt(r.slice(7,11).join(""),2),D:parseInt(r.slice(11,16).join(""),2)},s=[i.Y,i.M,i.D].join("-")+" "+[i.h,i.m,i.s].join(":")+" GMT+0";return new Date(s).getTime()}function ql(n,e){let t=(n>>>0).toString(2);for(;t.length<e;)t="0"+t;return t.split("")}function Ae(n,e){return n.readUInt32LE(e+4)*4294967296+n.readUInt32LE(e)}$l.exports=De});var hh={};sa(hh,{StreamZip:()=>Ql.async,WebSocket:()=>ko,ZipFile:()=>Jl.ZipFile,convertSourceMap:()=>ch,decode:()=>ii,diffSequence:()=>Kl.default,findUpSync:()=>wl,minimatch:()=>Z,parseCss:()=>Xl.default,supportsColor:()=>Yl});module.exports=oa(hh);var ch=j(ei());var ti="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ma=new Uint8Array(64),ni=new Uint8Array(128);for(let n=0;n<ti.length;n++){let e=ti.charCodeAt(n);ma[n]=e,ni[e]=n}function st(n,e){let t=0,r=0,i=0;do{let o=n.next();i=ni[o],t|=(i&31)<<r,r+=5}while(i&32);let s=t&1;return t>>>=1,s&&(t=-2147483648|-t),e+t}function ri(n,e){return n.pos>=e?!1:n.peek()!==44}var mh=1024*16;var vr=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:r}=this,i=t.indexOf(e,r);return i===-1?t.length:i}};function ii(n){let{length:e}=n,t=new vr(n),r=[],i=0,s=0,o=0,a=0,l=0;do{let f=t.indexOf(";"),u=[],h=!0,c=0;for(i=0;t.pos<f;){let d;i=st(t,i),i<c&&(h=!1),c=i,ri(t,f)?(s=st(t,s),o=st(t,o),a=st(t,a),ri(t,f)?(l=st(t,l),d=[i,s,o,a,l]):d=[i,s,o,a]):d=[i],u.push(d),t.pos++}h||ga(u),r.push(u),t.pos=f+1}while(t.pos<=e);return r}function ga(n){n.sort(_a)}function _a(n,e){return n[0]-e[0]}var Xl=j(Rs());var Vu=j(Ps(),1),Hu=j(dn(),1),Zu=j(gn(),1),Uo=j(xn(),1),Yu=j(Fo(),1);var ko=Uo.default;var sl=j(Ko(),1);var Nt=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>65536)throw new TypeError("pattern is too long")};var nc={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Tt=n=>n.replace(/[[\]\\-]/g,"\\$&"),ic=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Jo=n=>n.join(""),Qo=(n,e)=>{let t=e;if(n.charAt(t)!=="[")throw new Error("not in a brace expression");let r=[],i=[],s=t+1,o=!1,a=!1,l=!1,f=!1,u=t,h="";e:for(;s<n.length;){let p=n.charAt(s);if((p==="!"||p==="^")&&s===t+1){f=!0,s++;continue}if(p==="]"&&o&&!l){u=s+1;break}if(o=!0,p==="\\"&&!l){l=!0,s++;continue}if(p==="["&&!l){for(let[_,[v,C,I]]of Object.entries(nc))if(n.startsWith(_,s)){if(h)return["$.",!1,n.length-t,!0];s+=_.length,I?i.push(v):r.push(v),a=a||C;continue e}}if(l=!1,h){p>h?r.push(Tt(h)+"-"+Tt(p)):p===h&&r.push(Tt(p)),h="",s++;continue}if(n.startsWith("-]",s+1)){r.push(Tt(p+"-")),s+=2;continue}if(n.startsWith("-",s+1)){h=p,s+=2;continue}r.push(Tt(p)),s++}if(u<s)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,n.length-t,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!f){let p=r[0].length===2?r[0].slice(-1):r[0];return[ic(p),!1,u-t,!1]}let c="["+(f?"^":"")+Jo(r)+"]",d="["+(f?"":"^")+Jo(i)+"]";return[r.length&&i.length?"("+c+"|"+d+")":r.length?c:d,a,u-t,!0]};var Le=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/\[([^\/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var sc=new Set(["!","?","+","*","@"]),el=n=>sc.has(n),oc="(?!(?:^|/)\\.\\.?(?:$|/))",fr="(?!\\.)",lc=new Set(["[","."]),ac=new Set(["..","."]),fc=new Set("().*{}+?[]^$\\!"),uc=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),On="[^/]",tl=On+"*?",rl=On+"+?",et=class n{type;#r;#n;#s=!1;#e=[];#t;#o;#a;#l=!1;#i;#f;#c=!1;constructor(e,t,r={}){this.type=e,e&&(this.#n=!0),this.#t=t,this.#r=this.#t?this.#t.#r:this,this.#i=this.#r===this?r:this.#r.#i,this.#a=this.#r===this?[]:this.#r.#a,e==="!"&&!this.#r.#l&&this.#a.push(this),this.#o=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let e of this.#e)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#f!==void 0?this.#f:this.type?this.#f=this.type+"("+this.#e.map(e=>String(e)).join("|")+")":this.#f=this.#e.map(e=>String(e)).join("")}#d(){if(this!==this.#r)throw new Error("should only call on root");if(this.#l)return this;this.toString(),this.#l=!0;let e;for(;e=this.#a.pop();){if(e.type!=="!")continue;let t=e,r=t.#t;for(;r;){for(let i=t.#o+1;!r.type&&i<r.#e.length;i++)for(let s of e.#e){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(r.#e[i])}t=r,r=t.#t}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof n&&t.#t===this))throw new Error("invalid part: "+t);this.#e.push(t)}}toJSON(){var t;let e=this.type===null?this.#e.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#e.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#r||this.#r.#l&&((t=this.#t)==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(this.#r===this)return!0;if(!((t=this.#t)!=null&&t.isStart()))return!1;if(this.#o===0)return!0;let e=this.#t;for(let r=0;r<this.#o;r++){let i=e.#e[r];if(!(i instanceof n&&i.type==="!"))return!1}return!0}isEnd(){var t,r,i;if(this.#r===this||((t=this.#t)==null?void 0:t.type)==="!")return!0;if(!((r=this.#t)!=null&&r.isEnd()))return!1;if(!this.type)return(i=this.#t)==null?void 0:i.isEnd();let e=this.#t?this.#t.#e.length:0;return this.#o===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new n(this.type,e);for(let r of this.#e)t.copyIn(r);return t}static#u(e,t,r,i){let s=!1,o=!1,a=-1,l=!1;if(t.type===null){let d=r,m="";for(;d<e.length;){let p=e.charAt(d++);if(s||p==="\\"){s=!s,m+=p;continue}if(o){d===a+1?(p==="^"||p==="!")&&(l=!0):p==="]"&&!(d===a+2&&l)&&(o=!1),m+=p;continue}else if(p==="["){o=!0,a=d,l=!1,m+=p;continue}if(!i.noext&&el(p)&&e.charAt(d)==="("){t.push(m),m="";let _=new n(p,t);d=n.#u(e,_,d,i),t.push(_);continue}m+=p}return t.push(m),d}let f=r+1,u=new n(null,t),h=[],c="";for(;f<e.length;){let d=e.charAt(f++);if(s||d==="\\"){s=!s,c+=d;continue}if(o){f===a+1?(d==="^"||d==="!")&&(l=!0):d==="]"&&!(f===a+2&&l)&&(o=!1),c+=d;continue}else if(d==="["){o=!0,a=f,l=!1,c+=d;continue}if(el(d)&&e.charAt(f)==="("){u.push(c),c="";let m=new n(d,u);u.push(m),f=n.#u(e,m,f,i);continue}if(d==="|"){u.push(c),c="",h.push(u),u=new n(null,t);continue}if(d===")")return c===""&&t.#e.length===0&&(t.#c=!0),u.push(c),c="",t.push(...h,u),f;c+=d}return t.type=null,t.#n=void 0,t.#e=[e.substring(r-1)],f}static fromGlob(e,t={}){let r=new n(null,void 0,t);return n.#u(e,r,0,t),r}toMMPattern(){if(this!==this.#r)return this.#r.toMMPattern();let e=this.toString(),[t,r,i,s]=this.toRegExpSource();if(!(i||this.#n||this.#i.nocase&&!this.#i.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let a=(this.#i.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#i}toRegExpSource(e){var l;let t=e??!!this.#i.dot;if(this.#r===this&&this.#d(),!this.type){let f=this.isStart()&&this.isEnd(),u=this.#e.map(m=>{let[p,_,v,C]=typeof m=="string"?n.#p(m,this.#n,f):m.toRegExpSource(e);return this.#n=this.#n||v,this.#s=this.#s||C,p}).join(""),h="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&ac.has(this.#e[0]))){let p=lc,_=t&&p.has(u.charAt(0))||u.startsWith("\\.")&&p.has(u.charAt(2))||u.startsWith("\\.\\.")&&p.has(u.charAt(4)),v=!t&&!e&&p.has(u.charAt(0));h=_?oc:v?fr:""}let c="";return this.isEnd()&&this.#r.#l&&((l=this.#t)==null?void 0:l.type)==="!"&&(c="(?:$|\\/)"),[h+u+c,Le(u),this.#n=!!this.#n,this.#s]}let r=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#h(t);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let f=this.toString();return this.#e=[f],this.type=null,this.#n=void 0,[f,Le(this.toString()),!1,!1]}let o=!r||e||t||!fr?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#c)a=(this.isStart()&&!t?fr:"")+rl;else{let f=this.type==="!"?"))"+(this.isStart()&&!t&&!e?fr:"")+tl+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+f}return[a,Le(s),this.#n=!!this.#n,this.#s]}#h(e){return this.#e.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[r,i,s,o]=t.toRegExpSource(e);return this.#s=this.#s||o,r}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#p(e,t,r=!1){let i=!1,s="",o=!1;for(let a=0;a<e.length;a++){let l=e.charAt(a);if(i){i=!1,s+=(fc.has(l)?"\\":"")+l;continue}if(l==="\\"){a===e.length-1?s+="\\\\":i=!0;continue}if(l==="["){let[f,u,h,c]=Qo(e,a);if(h){s+=f,o=o||u,a+=h-1,t=t||c;continue}}if(l==="*"){r&&e==="*"?s+=rl:s+=tl,t=!0;continue}if(l==="?"){s+=On,t=!0;continue}s+=uc(l)}return[s,Le(e),!!t,o]}};var In=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&");var Z=(n,e,t={})=>(Nt(e),!t.nocomment&&e.charAt(0)==="#"?!1:new tt(e,t).match(n)),cc=/^\*+([^+@!?\*\[\(]*)$/,hc=n=>e=>!e.startsWith(".")&&e.endsWith(n),dc=n=>e=>e.endsWith(n),pc=n=>(n=n.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(n)),mc=n=>(n=n.toLowerCase(),e=>e.toLowerCase().endsWith(n)),gc=/^\*+\.\*+$/,_c=n=>!n.startsWith(".")&&n.includes("."),Ec=n=>n!=="."&&n!==".."&&n.includes("."),wc=/^\.\*+$/,yc=n=>n!=="."&&n!==".."&&n.startsWith("."),Sc=/^\*+$/,vc=n=>n.length!==0&&!n.startsWith("."),xc=n=>n.length!==0&&n!=="."&&n!=="..",Cc=/^\?+([^+@!?\*\[\(]*)?$/,bc=([n,e=""])=>{let t=ol([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},Lc=([n,e=""])=>{let t=ll([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},Oc=([n,e=""])=>{let t=ll([n]);return e?r=>t(r)&&r.endsWith(e):t},Ic=([n,e=""])=>{let t=ol([n]);return e?r=>t(r)&&r.endsWith(e):t},ol=([n])=>{let e=n.length;return t=>t.length===e&&!t.startsWith(".")},ll=([n])=>{let e=n.length;return t=>t.length===e&&t!=="."&&t!==".."},al=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",nl={win32:{sep:"\\"},posix:{sep:"/"}},Nc=al==="win32"?nl.win32.sep:nl.posix.sep;Z.sep=Nc;var oe=Symbol("globstar **");Z.GLOBSTAR=oe;var Tc="[^/]",Rc=Tc+"*?",Ac="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Dc="(?:(?!(?:\\/|^)\\.).)*?",Mc=(n,e={})=>t=>Z(t,n,e);Z.filter=Mc;var se=(n,e={})=>Object.assign({},n,e),Pc=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return Z;let e=Z;return Object.assign((r,i,s={})=>e(r,i,se(n,s)),{Minimatch:class extends e.Minimatch{constructor(i,s={}){super(i,se(n,s))}static defaults(i){return e.defaults(se(n,i)).Minimatch}},AST:class extends e.AST{constructor(i,s,o={}){super(i,s,se(n,o))}static fromGlob(i,s={}){return e.AST.fromGlob(i,se(n,s))}},unescape:(r,i={})=>e.unescape(r,se(n,i)),escape:(r,i={})=>e.escape(r,se(n,i)),filter:(r,i={})=>e.filter(r,se(n,i)),defaults:r=>e.defaults(se(n,r)),makeRe:(r,i={})=>e.makeRe(r,se(n,i)),braceExpand:(r,i={})=>e.braceExpand(r,se(n,i)),match:(r,i,s={})=>e.match(r,i,se(n,s)),sep:e.sep,GLOBSTAR:oe})};Z.defaults=Pc;var fl=(n,e={})=>(Nt(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:(0,sl.default)(n));Z.braceExpand=fl;var Fc=(n,e={})=>new tt(n,e).makeRe();Z.makeRe=Fc;var Uc=(n,e,t={})=>{let r=new tt(e,t);return n=n.filter(i=>r.match(i)),r.options.nonull&&!n.length&&n.push(e),n};Z.match=Uc;var il=/[?*]|[+@!]\(.*?\)|\[|\]/,kc=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){Nt(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||al,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!il.test(s[2]))&&!il.test(s[3]),f=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(u=>this.parse(u))];if(f)return[s[0],...s.slice(1).map(u=>this.parse(u))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let i=0;i<e[r].length;i++)e[r][i]==="**"&&(e[r][i]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let r=-1;for(;(r=t.indexOf("**",r+1))!==-1;){let i=r;for(;t[i+1]==="**";)i++;i!==r&&t.splice(r,i-r)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((r,i)=>{let s=r[r.length-1];return i==="**"&&s==="**"?r:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(i),r)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(t=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let i=e[r-1];i&&i!=="."&&i!==".."&&i!=="**"&&(t=!0,e.splice(r-1,2),r-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let r of e){let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let o=i;for(;r[o+1]==="**";)o++;o>i&&r.splice(i+1,o-i);let a=r[i+1],l=r[i+2],f=r[i+3];if(a!==".."||!l||l==="."||l===".."||!f||f==="."||f==="..")continue;t=!0,r.splice(i,1);let u=r.slice(0);u[i]="**",e.push(u),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<r.length-1;o++){let a=r[o];o===1&&a===""&&r[0]===""||(a==="."||a==="")&&(t=!0,r.splice(o,1),o--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(t=!0,r.pop())}let s=0;for(;(s=r.indexOf("..",s+1))!==-1;){let o=r[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let l=s===1&&r[s+1]==="**"?["."]:[];r.splice(s-1,2,...l),r.length===0&&r.push(""),s-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){let i=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);if(i){e[t]=[],e[r]=i;break}}return e.filter(t=>t.length)}partsMatch(e,t,r=!1){let i=0,s=0,o=[],a="";for(;i<e.length&&s<t.length;)if(e[i]===t[s])o.push(a==="b"?t[s]:e[i]),i++,s++;else if(r&&e[i]==="**"&&t[s]===e[i+1])o.push(e[i]),i++;else if(r&&t[s]==="**"&&e[i]===t[s+1])o.push(t[s]),s++;else if(e[i]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[i]),i++,s++}else if(t[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(a==="a")return!1;a="b",o.push(t[s]),i++,s++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r=!1){let i=this.options;if(this.isWindows){let p=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),_=!p&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),v=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),C=!v&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),I=_?3:p?0:void 0,L=C?3:v?0:void 0;if(typeof I=="number"&&typeof L=="number"){let[R,O]=[e[I],t[L]];R.toLowerCase()===O.toLowerCase()&&(t[L]=R,L>I?t=t.slice(L):I>L&&(e=e.slice(I)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,l=e.length,f=t.length;o<l&&a<f;o++,a++){this.debug("matchOne loop");var u=t[a],h=e[o];if(this.debug(t,u,h),u===!1)return!1;if(u===oe){this.debug("GLOBSTAR",[t,u,h]);var c=o,d=a+1;if(d===f){for(this.debug("** at the end");o<l;o++)if(e[o]==="."||e[o]===".."||!i.dot&&e[o].charAt(0)===".")return!1;return!0}for(;c<l;){var m=e[c];if(this.debug(`
|
|
33
|
+
`+t)}function ze(n,e,t,r,i){if(n.listenerCount("wsClientError")){let s=new Error(i);Error.captureStackTrace(s,ze),n.emit("wsClientError",s,t,e)}else Ot(t,r,i)}});var qo=b((hd,Wo)=>{"use strict";Wo.exports=zo;function zo(n,e,t){n instanceof RegExp&&(n=Bo(n,t)),e instanceof RegExp&&(e=Bo(e,t));var r=Go(n,e,t);return r&&{start:r[0],end:r[1],pre:t.slice(0,r[0]),body:t.slice(r[0]+n.length,r[1]),post:t.slice(r[1]+e.length)}}function Bo(n,e){var t=e.match(n);return t?t[0]:null}zo.range=Go;function Go(n,e,t){var r,i,s,o,a,l=t.indexOf(n),f=t.indexOf(e,l+1),u=l;if(l>=0&&f>0){if(n===e)return[l,f];for(r=[],s=t.length;u>=0&&!a;)u==l?(r.push(u),l=t.indexOf(n,u+1)):r.length==1?a=[r.pop(),f]:(i=r.pop(),i<s&&(s=i,o=f),f=t.indexOf(e,u+1)),u=l<f&&l>=0?l:f;r.length&&(a=[s,o])}return a}});var Ko=b((dd,Xo)=>{var jo=qo();Xo.exports=Ju;var $o="\0SLASH"+Math.random()+"\0",Vo="\0OPEN"+Math.random()+"\0",Ln="\0CLOSE"+Math.random()+"\0",Ho="\0COMMA"+Math.random()+"\0",Zo="\0PERIOD"+Math.random()+"\0";function bn(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function Xu(n){return n.split("\\\\").join($o).split("\\{").join(Vo).split("\\}").join(Ln).split("\\,").join(Ho).split("\\.").join(Zo)}function Ku(n){return n.split($o).join("\\").split(Vo).join("{").split(Ln).join("}").split(Ho).join(",").split(Zo).join(".")}function Yo(n){if(!n)return[""];var e=[],t=jo("{","}",n);if(!t)return n.split(",");var r=t.pre,i=t.body,s=t.post,o=r.split(",");o[o.length-1]+="{"+i+"}";var a=Yo(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Ju(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),It(Xu(n),!0).map(Ku)):[]}function Qu(n){return"{"+n+"}"}function ec(n){return/^-?0\d/.test(n)}function tc(n,e){return n<=e}function rc(n,e){return n>=e}function It(n,e){var t=[],r=jo("{","}",n);if(!r)return[n];var i=r.pre,s=r.post.length?It(r.post,!1):[""];if(/\$$/.test(r.pre))for(var o=0;o<s.length;o++){var a=i+"{"+r.body+"}"+s[o];t.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),u=l||f,h=r.body.indexOf(",")>=0;if(!u&&!h)return r.post.match(/,.*\}/)?(n=r.pre+"{"+r.body+Ln+r.post,It(n)):[n];var c;if(u)c=r.body.split(/\.\./);else if(c=Yo(r.body),c.length===1&&(c=It(c[0],!1).map(Qu),c.length===1))return s.map(function(G){return r.pre+c[0]+G});var d;if(u){var m=bn(c[0]),p=bn(c[1]),_=Math.max(c[0].length,c[1].length),v=c.length==3?Math.abs(bn(c[2])):1,C=tc,I=p<m;I&&(v*=-1,C=rc);var L=c.some(ec);d=[];for(var R=m;C(R,p);R+=v){var O;if(f)O=String.fromCharCode(R),O==="\\"&&(O="");else if(O=String(R),L){var k=_-O.length;if(k>0){var P=new Array(k+1).join("0");R<0?O="-"+P+O.slice(1):O=P+O}}d.push(O)}}else{d=[];for(var A=0;A<c.length;A++)d.push.apply(d,It(c[A],!1))}for(var A=0;A<d.length;A++)for(var o=0;o<s.length;o++){var a=i+d[A]+s[o];(!e||u||a)&&t.push(a)}}return t}});var dl=b(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.default=Wc;var Rt="diff-sequences",X=0,At=(n,e,t,r,i)=>{let s=0;for(;n<e&&t<r&&i(n,t);)n+=1,t+=1,s+=1;return s},Dt=(n,e,t,r,i)=>{let s=0;for(;n<=e&&t<=r&&i(e,r);)e-=1,r-=1,s+=1;return s},Nn=(n,e,t,r,i,s,o)=>{let a=0,l=-n,f=s[a],u=f;s[a]+=At(f+1,e,r+f-l+1,t,i);let h=n<o?n:o;for(a+=1,l+=2;a<=h;a+=1,l+=2){if(a!==n&&u<s[a])f=s[a];else if(f=u+1,e<=f)return a-1;u=s[a],s[a]=f+At(f+1,e,r+f-l+1,t,i)}return o},ul=(n,e,t,r,i,s,o)=>{let a=0,l=n,f=s[a],u=f;s[a]-=Dt(e,f-1,t,r+f-l-1,i);let h=n<o?n:o;for(a+=1,l-=2;a<=h;a+=1,l-=2){if(a!==n&&s[a]<u)f=s[a];else if(f=u-1,f<e)return a-1;u=s[a],s[a]=f-Dt(e,f-1,t,r+f-l-1,i)}return o},Bc=(n,e,t,r,i,s,o,a,l,f,u)=>{let h=r-e,c=t-e,m=i-r-c,p=-m-(n-1),_=-m+(n-1),v=X,C=n<a?n:a;for(let I=0,L=-n;I<=C;I+=1,L+=2){let R=I===0||I!==n&&v<o[I],O=R?o[I]:v,k=R?O:O+1,P=h+k-L,A=At(k+1,t,P+1,i,s),G=k+A;if(v=o[I],o[I]=G,p<=L&&L<=_){let fe=(n-1-(L+m))/2;if(fe<=f&&l[fe]-1<=G){let te=h+O-(R?L+1:L-1),g=Dt(e,O,r,te,s),w=O-g,x=te-g,y=w+1,T=x+1;u.nChangePreceding=n-1,n-1===y+T-e-r?(u.aEndPreceding=e,u.bEndPreceding=r):(u.aEndPreceding=y,u.bEndPreceding=T),u.nCommonPreceding=g,g!==0&&(u.aCommonPreceding=y,u.bCommonPreceding=T),u.nCommonFollowing=A,A!==0&&(u.aCommonFollowing=k+1,u.bCommonFollowing=P+1);let N=G+1,F=P+A+1;return u.nChangeFollowing=n-1,n-1===t+i-N-F?(u.aStartFollowing=t,u.bStartFollowing=i):(u.aStartFollowing=N,u.bStartFollowing=F),!0}}}return!1},zc=(n,e,t,r,i,s,o,a,l,f,u)=>{let h=i-t,c=t-e,m=i-r-c,p=m-n,_=m+n,v=X,C=n<f?n:f;for(let I=0,L=n;I<=C;I+=1,L-=2){let R=I===0||I!==n&&l[I]<v,O=R?l[I]:v,k=R?O:O-1,P=h+k-L,A=Dt(e,k-1,r,P-1,s),G=k-A;if(v=l[I],l[I]=G,p<=L&&L<=_){let fe=(n+(L-m))/2;if(fe<=a&&G-1<=o[fe]){let te=P-A;if(u.nChangePreceding=n,n===G+te-e-r?(u.aEndPreceding=e,u.bEndPreceding=r):(u.aEndPreceding=G,u.bEndPreceding=te),u.nCommonPreceding=A,A!==0&&(u.aCommonPreceding=G,u.bCommonPreceding=te),u.nChangeFollowing=n-1,n===1)u.nCommonFollowing=0,u.aStartFollowing=t,u.bStartFollowing=i;else{let g=h+O-(R?L-1:L+1),w=At(O,t,g,i,s);u.nCommonFollowing=w,w!==0&&(u.aCommonFollowing=O,u.bCommonFollowing=g);let x=O+w,y=g+w;n-1===t+i-x-y?(u.aStartFollowing=t,u.bStartFollowing=i):(u.aStartFollowing=x,u.bStartFollowing=y)}return!0}}}return!1},Gc=(n,e,t,r,i,s,o,a,l)=>{let f=r-e,u=i-t,h=t-e,c=i-r,d=c-h,m=h,p=h;if(o[0]=e-1,a[0]=t,d%2===0){let _=(n||d)/2,v=(h+c)/2;for(let C=1;C<=v;C+=1)if(m=Nn(C,t,i,f,s,o,m),C<_)p=ul(C,e,r,u,s,a,p);else if(zc(C,e,t,r,i,s,o,m,a,p,l))return}else{let _=((n||d)+1)/2,v=(h+c+1)/2,C=1;for(m=Nn(C,t,i,f,s,o,m),C+=1;C<=v;C+=1)if(p=ul(C-1,e,r,u,s,a,p),C<_)m=Nn(C,t,i,f,s,o,m);else if(Bc(C,e,t,r,i,s,o,m,a,p,l))return}throw new Error(`${Rt}: no overlap aStart=${e} aEnd=${t} bStart=${r} bEnd=${i}`)},Tn=(n,e,t,r,i,s,o,a,l,f)=>{if(i-r<t-e){if(s=!s,s&&o.length===1){let{foundSubsequence:G,isCommon:fe}=o[0];o[1]={foundSubsequence:(te,g,w)=>{G(te,w,g)},isCommon:(te,g)=>fe(g,te)}}let P=e,A=t;e=r,t=i,r=P,i=A}let{foundSubsequence:u,isCommon:h}=o[s?1:0];Gc(n,e,t,r,i,h,a,l,f);let{nChangePreceding:c,aEndPreceding:d,bEndPreceding:m,nCommonPreceding:p,aCommonPreceding:_,bCommonPreceding:v,nCommonFollowing:C,aCommonFollowing:I,bCommonFollowing:L,nChangeFollowing:R,aStartFollowing:O,bStartFollowing:k}=f;e<d&&r<m&&Tn(c,e,d,r,m,s,o,a,l,f),p!==0&&u(p,_,v),C!==0&&u(C,I,L),O<t&&k<i&&Tn(R,O,t,k,i,s,o,a,l,f)},cl=(n,e)=>{if(typeof e!="number")throw new TypeError(`${Rt}: ${n} typeof ${typeof e} is not a number`);if(!Number.isSafeInteger(e))throw new RangeError(`${Rt}: ${n} value ${e} is not a safe integer`);if(e<0)throw new RangeError(`${Rt}: ${n} value ${e} is a negative integer`)},hl=(n,e)=>{let t=typeof e;if(t!=="function")throw new TypeError(`${Rt}: ${n} typeof ${t} is not a function`)};function Wc(n,e,t,r){cl("aLength",n),cl("bLength",e),hl("isCommon",t),hl("foundSubsequence",r);let i=At(0,n,0,e,t);if(i!==0&&r(i,0,0),n!==i||e!==i){let s=i,o=i,a=Dt(s,n-1,o,e-1,t),l=n-a,f=e-a,u=i+a;n!==u&&e!==u&&Tn(0,s,l,o,f,!1,[{foundSubsequence:r,isCommon:t}],[X],[X],{aCommonFollowing:X,aCommonPreceding:X,aEndPreceding:X,aStartFollowing:X,bCommonFollowing:X,bCommonPreceding:X,bEndPreceding:X,bStartFollowing:X,nChangeFollowing:X,nChangePreceding:X,nCommonFollowing:X,nCommonPreceding:X}),a!==0&&r(a,l,f)}}});var vl=b((Yd,Sl)=>{"use strict";function Zc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Yc=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function yl(n){if(Buffer.isBuffer(n))return n;if(typeof n=="number")return Buffer.alloc(n);if(typeof n=="string")return Buffer.from(n);throw new Error("input must be buffer, number, or string, received "+typeof n)}function Xc(n){let e=yl(4);return e.writeInt32BE(n,0),e}function Mn(n,e){n=yl(n),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let t=~~e^-1;for(var r=0;r<n.length;r++)t=Yc[(t^n[r])&255]^t>>>8;return t^-1}function Pn(){return Xc(Mn.apply(null,arguments))}Pn.signed=function(){return Mn.apply(null,arguments)};Pn.unsigned=function(){return Mn.apply(null,arguments)>>>0};var Kc=Pn,Jc=Zc(Kc);Sl.exports=Jc});var zl=b(Wn=>{var xl=require("fs"),mr=require("stream").Transform,Ll=require("stream").PassThrough,Ol=require("zlib"),zn=require("util"),Qc=require("events").EventEmitter,eh=require("events").errorMonitor,Il=vl();Wn.ZipFile=Ne;Wn.dateToDosDateTime=Bl;zn.inherits(Ne,Qc);function Ne(){this.outputStream=new Ll,this.entries=[],this.outputStreamCursor=0,this.ended=!1,this.allDone=!1,this.forceZip64Eocd=!1,this.errored=!1,this.on(eh,function(){this.errored=!0})}Ne.prototype.addFile=function(n,e,t){var r=this;if(e=_r(e,!1),t==null&&(t={}),!gr(r)){var i=new D(e,!1,t);r.entries.push(i),xl.stat(n,function(s,o){if(s)return r.emit("error",s);if(!o.isFile())return r.emit("error",new Error("not a file: "+n));i.uncompressedSize=o.size,t.mtime==null&&i.setLastModDate(o.mtime),t.mode==null&&i.setFileAttributesMode(o.mode),i.setFileDataPumpFunction(function(){var a=xl.createReadStream(n);i.state=D.FILE_DATA_IN_PROGRESS,a.on("error",function(l){r.emit("error",l)}),Nl(r,i,a)}),Ie(r)})}};Ne.prototype.addReadStream=function(n,e,t){this.addReadStreamLazy(e,t,function(r){r(null,n)})};Ne.prototype.addReadStreamLazy=function(n,e,t){var r=this;if(typeof e=="function"&&(t=e,e=null),e==null&&(e={}),n=_r(n,!1),!gr(r)){var i=new D(n,!1,e);r.entries.push(i),i.setFileDataPumpFunction(function(){i.state=D.FILE_DATA_IN_PROGRESS,t(function(s,o){if(s)return r.emit("error",s);Nl(r,i,o)})}),Ie(r)}};Ne.prototype.addBuffer=function(n,e,t){var r=this;if(e=_r(e,!1),n.length>1073741823)throw new Error("buffer too large: "+n.length+" > 1073741823");if(t==null&&(t={}),t.size!=null)throw new Error("options.size not allowed");if(gr(r))return;var i=new D(e,!1,t);i.uncompressedSize=n.length,i.crc32=Il.unsigned(n),i.crcAndFileSizeKnown=!0,r.entries.push(i),i.compressionLevel===0?s(n):Ol.deflateRaw(n,{level:i.compressionLevel},function(o,a){s(a)});function s(o){i.compressedSize=o.length,i.setFileDataPumpFunction(function(){Ge(r,o),Ge(r,i.getDataDescriptor()),i.state=D.FILE_DATA_DONE,setImmediate(function(){Ie(r)})}),Ie(r)}};Ne.prototype.addEmptyDirectory=function(n,e){var t=this;if(n=_r(n,!0),e==null&&(e={}),e.size!=null)throw new Error("options.size not allowed");if(e.compress!=null)throw new Error("options.compress not allowed");if(e.compressionLevel!=null)throw new Error("options.compressionLevel not allowed");if(!gr(t)){var r=new D(n,!0,e);t.entries.push(r),r.setFileDataPumpFunction(function(){Ge(t,r.getDataDescriptor()),r.state=D.FILE_DATA_DONE,Ie(t)}),Ie(t)}};var th=Oe([80,75,5,6]);Ne.prototype.end=function(n,e){if(typeof n=="function"&&(e=n,n=null),n==null&&(n={}),!this.ended&&(this.ended=!0,!this.errored)){if(this.calculatedTotalSizeCallback=e,this.forceZip64Eocd=!!n.forceZip64Format,n.comment){if(typeof n.comment=="string"?this.comment=sh(n.comment):this.comment=n.comment,this.comment.length>65535)throw new Error("comment is too large");if(Mt(this.comment,th))throw new Error("comment contains end of central directory record signature")}else this.comment=Pt;Ie(this)}};function Ge(n,e){n.outputStream.write(e),n.outputStreamCursor+=e.length}function Nl(n,e,t){var r=new Gn,i=new pr,s=e.compressionLevel!==0?new Ol.DeflateRaw({level:e.compressionLevel}):new Ll,o=new pr;t.pipe(r).pipe(i).pipe(s).pipe(o).pipe(n.outputStream,{end:!1}),o.on("end",function(){if(e.crc32=r.crc32,e.uncompressedSize==null)e.uncompressedSize=i.byteCount;else if(e.uncompressedSize!==i.byteCount)return n.emit("error",new Error("file data stream has unexpected number of bytes"));e.compressedSize=o.byteCount,n.outputStreamCursor+=e.compressedSize,Ge(n,e.getDataDescriptor()),e.state=D.FILE_DATA_DONE,Ie(n)})}function rh(n){if(n.compress!=null&&n.compressionLevel!=null&&!!n.compress!=!!n.compressionLevel)throw new Error("conflicting settings for compress and compressionLevel");return n.compressionLevel!=null?n.compressionLevel:n.compress===!1?0:6}function Ie(n){if(n.allDone||n.errored)return;if(n.ended&&n.calculatedTotalSizeCallback!=null){var e=nh(n);e!=null&&(n.calculatedTotalSizeCallback(e),n.calculatedTotalSizeCallback=null)}var t=r();function r(){for(var s=0;s<n.entries.length;s++){var o=n.entries[s];if(o.state<D.FILE_DATA_DONE)return o}return null}if(t!=null){if(t.state<D.READY_TO_PUMP_FILE_DATA||t.state===D.FILE_DATA_IN_PROGRESS)return;t.relativeOffsetOfLocalHeader=n.outputStreamCursor;var i=t.getLocalFileHeader();Ge(n,i),t.doFileDataPump()}else n.ended&&(n.offsetOfStartOfCentralDirectory=n.outputStreamCursor,n.entries.forEach(function(s){var o=s.getCentralDirectoryRecord();Ge(n,o)}),Ge(n,ih(n)),n.outputStream.end(),n.allDone=!0)}function nh(n){for(var e=0,t=0,r=0;r<n.entries.length;r++){var i=n.entries[r];if(i.compressionLevel!==0)return-1;if(i.state>=D.READY_TO_PUMP_FILE_DATA){if(i.uncompressedSize==null)return-1}else if(i.uncompressedSize==null)return null;i.relativeOffsetOfLocalHeader=e;var s=i.useZip64Format();e+=Tl+i.utf8FileName.length,e+=i.uncompressedSize,i.crcAndFileSizeKnown||(s?e+=Ul:e+=Fl),t+=kl+i.utf8FileName.length+i.fileComment.length,i.forceDosTimestamp||(t+=Un),s&&(t+=kn)}var o=0;return(n.forceZip64Eocd||n.entries.length>=65535||t>=65535||e>=4294967295)&&(o+=hr+Fn),o+=dr+n.comment.length,e+t+o}function gr(n){if(n.ended)throw new Error("cannot add entries after calling end()");return!!n.errored}var hr=56,Fn=20,dr=22;function ih(n,e){var t=!1,r=n.entries.length;(n.forceZip64Eocd||n.entries.length>=65535)&&(r=65535,t=!0);var i=n.outputStreamCursor-n.offsetOfStartOfCentralDirectory,s=i;(n.forceZip64Eocd||i>=4294967295)&&(s=4294967295,t=!0);var o=n.offsetOfStartOfCentralDirectory;if((n.forceZip64Eocd||n.offsetOfStartOfCentralDirectory>=4294967295)&&(o=4294967295,t=!0),e)return t?hr+Fn+dr:dr;var a=J(dr+n.comment.length);if(a.writeUInt32LE(101010256,0),a.writeUInt16LE(0,4),a.writeUInt16LE(0,6),a.writeUInt16LE(r,8),a.writeUInt16LE(r,10),a.writeUInt32LE(s,12),a.writeUInt32LE(o,16),a.writeUInt16LE(n.comment.length,20),n.comment.copy(a,22),!t)return a;var l=J(hr);l.writeUInt32LE(101075792,0),pe(l,hr-12,4),l.writeUInt16LE(Dl,12),l.writeUInt16LE(Al,14),l.writeUInt32LE(0,16),l.writeUInt32LE(0,20),pe(l,n.entries.length,24),pe(l,n.entries.length,32),pe(l,i,40),pe(l,n.offsetOfStartOfCentralDirectory,48);var f=J(Fn);return f.writeUInt32LE(117853008,0),f.writeUInt32LE(0,4),pe(f,n.outputStreamCursor,8),f.writeUInt32LE(1,16),Buffer.concat([l,f,a])}function _r(n,e){if(n==="")throw new Error("empty metadataPath");if(n=n.replace(/\\/g,"/"),/^[a-zA-Z]:/.test(n)||/^\//.test(n))throw new Error("absolute path: "+n);if(n.split("/").indexOf("..")!==-1)throw new Error("invalid relative path: "+n);var t=/\/$/.test(n);if(e)t||(n+="/");else if(t)throw new Error("file path cannot end with '/': "+n);return n}var Pt=J(0);function D(n,e,t){if(this.utf8FileName=Oe(n),this.utf8FileName.length>65535)throw new Error("utf8 file name too long. "+utf8FileName.length+" > 65535");if(this.isDirectory=e,this.state=D.WAITING_FOR_METADATA,this.setLastModDate(t.mtime!=null?t.mtime:new Date),this.forceDosTimestamp=!!t.forceDosTimestamp,t.mode!=null?this.setFileAttributesMode(t.mode):this.setFileAttributesMode(e?16893:33204),e?(this.crcAndFileSizeKnown=!0,this.crc32=0,this.uncompressedSize=0,this.compressedSize=0):(this.crcAndFileSizeKnown=!1,this.crc32=null,this.uncompressedSize=null,this.compressedSize=null,t.size!=null&&(this.uncompressedSize=t.size)),e?this.compressionLevel=0:this.compressionLevel=rh(t),this.forceZip64Format=!!t.forceZip64Format,t.fileComment){if(typeof t.fileComment=="string"?this.fileComment=Oe(t.fileComment,"utf-8"):this.fileComment=t.fileComment,this.fileComment.length>65535)throw new Error("fileComment is too large")}else this.fileComment=Pt}D.WAITING_FOR_METADATA=0;D.READY_TO_PUMP_FILE_DATA=1;D.FILE_DATA_IN_PROGRESS=2;D.FILE_DATA_DONE=3;D.prototype.setLastModDate=function(n){this.mtime=n;var e=Bl(n);this.lastModFileTime=e.time,this.lastModFileDate=e.date};D.prototype.setFileAttributesMode=function(n){if((n&65535)!==n)throw new Error("invalid mode. expected: 0 <= "+n+" <= 65535");this.externalFileAttributes=n<<16>>>0};D.prototype.setFileDataPumpFunction=function(n){this.doFileDataPump=n,this.state=D.READY_TO_PUMP_FILE_DATA};D.prototype.useZip64Format=function(){return this.forceZip64Format||this.uncompressedSize!=null&&this.uncompressedSize>4294967294||this.compressedSize!=null&&this.compressedSize>4294967294||this.relativeOffsetOfLocalHeader!=null&&this.relativeOffsetOfLocalHeader>4294967294};var Tl=30,Rl=20,Al=45,Dl=831,Ml=2048,Pl=8;D.prototype.getLocalFileHeader=function(){var n=0,e=0,t=0;this.crcAndFileSizeKnown&&(n=this.crc32,e=this.compressedSize,t=this.uncompressedSize);var r=J(Tl),i=Ml;return this.crcAndFileSizeKnown||(i|=Pl),r.writeUInt32LE(67324752,0),r.writeUInt16LE(Rl,4),r.writeUInt16LE(i,6),r.writeUInt16LE(this.getCompressionMethod(),8),r.writeUInt16LE(this.lastModFileTime,10),r.writeUInt16LE(this.lastModFileDate,12),r.writeUInt32LE(n,14),r.writeUInt32LE(e,18),r.writeUInt32LE(t,22),r.writeUInt16LE(this.utf8FileName.length,26),r.writeUInt16LE(0,28),Buffer.concat([r,this.utf8FileName])};var Fl=16,Ul=24;D.prototype.getDataDescriptor=function(){if(this.crcAndFileSizeKnown)return Pt;if(this.useZip64Format()){var n=J(Ul);return n.writeUInt32LE(134695760,0),n.writeUInt32LE(this.crc32,4),pe(n,this.compressedSize,8),pe(n,this.uncompressedSize,16),n}else{var n=J(Fl);return n.writeUInt32LE(134695760,0),n.writeUInt32LE(this.crc32,4),n.writeUInt32LE(this.compressedSize,8),n.writeUInt32LE(this.uncompressedSize,12),n}};var kl=46,Un=9,kn=28;D.prototype.getCentralDirectoryRecord=function(){var n=J(kl),e=Ml;this.crcAndFileSizeKnown||(e|=Pl);var t=Pt;if(!this.forceDosTimestamp){t=J(Un),t.writeUInt16LE(21589,0),t.writeUInt16LE(Un-4,2);var r=1,i=2;t.writeUInt8(r|i,4);var s=Math.floor(this.mtime.getTime()/1e3);s<-2147483648&&(s=-2147483648),s>2147483647&&(s=2147483647),t.writeUInt32LE(s,5)}var o=this.compressedSize,a=this.uncompressedSize,l=this.relativeOffsetOfLocalHeader,f=Rl,u=Pt;return this.useZip64Format()&&(o=4294967295,a=4294967295,l=4294967295,f=Al,u=J(kn),u.writeUInt16LE(1,0),u.writeUInt16LE(kn-4,2),pe(u,this.uncompressedSize,4),pe(u,this.compressedSize,12),pe(u,this.relativeOffsetOfLocalHeader,20)),n.writeUInt32LE(33639248,0),n.writeUInt16LE(Dl,4),n.writeUInt16LE(f,6),n.writeUInt16LE(e,8),n.writeUInt16LE(this.getCompressionMethod(),10),n.writeUInt16LE(this.lastModFileTime,12),n.writeUInt16LE(this.lastModFileDate,14),n.writeUInt32LE(this.crc32,16),n.writeUInt32LE(o,20),n.writeUInt32LE(a,24),n.writeUInt16LE(this.utf8FileName.length,28),n.writeUInt16LE(t.length+u.length,30),n.writeUInt16LE(this.fileComment.length,32),n.writeUInt16LE(0,34),n.writeUInt16LE(0,36),n.writeUInt32LE(this.externalFileAttributes,38),n.writeUInt32LE(l,42),Buffer.concat([n,this.utf8FileName,t,u,this.fileComment])};D.prototype.getCompressionMethod=function(){var n=0,e=8;return this.compressionLevel===0?n:e};var Cl=new Date(1980,0,1),bl=new Date(2107,11,31,23,59,58);function Bl(n){n<Cl?n=Cl:n>bl&&(n=bl);var e=0;e|=n.getDate()&31,e|=(n.getMonth()+1&15)<<5,e|=(n.getFullYear()-1980&127)<<9;var t=0;return t|=Math.floor(n.getSeconds()/2),t|=(n.getMinutes()&63)<<5,t|=(n.getHours()&31)<<11,{date:e,time:t}}function pe(n,e,t){var r=Math.floor(e/4294967296),i=e%4294967296;n.writeUInt32LE(i,t),n.writeUInt32LE(r,t+4)}zn.inherits(pr,mr);function pr(n){mr.call(this,n),this.byteCount=0}pr.prototype._transform=function(n,e,t){this.byteCount+=n.length,t(null,n)};zn.inherits(Gn,mr);function Gn(n){mr.call(this,n),this.crc32=0}Gn.prototype._transform=function(n,e,t){this.crc32=Il.unsigned(n,this.crc32),t(null,n)};var Bn="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";if(Bn.length!==256)throw new Error("assertion failure");var cr=null;function sh(n){if(/^[\x20-\x7e]*$/.test(n))return Oe(n,"utf-8");if(cr==null){cr={};for(var e=0;e<Bn.length;e++)cr[Bn[e]]=e}for(var t=J(n.length),e=0;e<n.length;e++){var r=cr[n[e]];if(r==null)throw new Error("character not encodable in CP437: "+JSON.stringify(n[e]));t[e]=r}return t}function J(n){J=e;try{return J(n)}catch{return J=t,J(n)}function e(r){return Buffer.allocUnsafe(r)}function t(r){return new Buffer(r)}}function Oe(n,e){Oe=t;try{return Oe(n,e)}catch{return Oe=r,Oe(n,e)}function t(i,s){return Buffer.from(i,s)}function r(i,s){return new Buffer(i,s)}}function Mt(n,e){Mt=t;try{return Mt(n,e)}catch{return Mt=r,Mt(n,e)}function t(i,s){return i.includes(s)}function r(i,s){for(var o=0;o<=i.length-s.length;o++)for(var a=0;;a++){if(a===s.length)return!0;if(i[o+a]!==s[a])break}return!1}}});var Vl=b((Jd,$l)=>{var le=require("fs"),oh=require("util"),nt=require("path"),Yn=require("events"),Gl=require("zlib"),jl=require("stream"),E={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSIGFIRST:80,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,MAXFILECOMMENT:65535,ENDL64HDR:20,ENDL64SIG:117853008,ENDL64SIGFIRST:80,ENDL64OFS:8,END64HDR:56,END64SIG:101075792,END64SIGFIRST:80,END64SUB:24,END64TOT:32,END64SIZ:40,END64OFF:48,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,FLG_ENC:0,FLG_COMP1:1,FLG_COMP2:2,FLG_DESC:4,FLG_ENH:8,FLG_STR:16,FLG_LNG:1024,FLG_MSK:4096,FLG_ENTRY_ENC:1,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535},De=function(n){let e,t,r,i,s,o,l=this,f=n.storeEntries!==!1?{}:null,u=n.file,h=n.nameEncoding?new TextDecoder(n.nameEncoding):null;c();function c(){n.fd?(e=n.fd,d()):le.open(u,"r",(g,w)=>{if(g)return l.emit("error",g);e=w,d()})}function d(){le.fstat(e,(g,w)=>{if(g)return l.emit("error",g);t=w.size,r=n.chunkSize||Math.round(t/1e3),r=Math.max(Math.min(r,Math.min(128*1024,t)),Math.min(1024,t)),p()})}function m(g,w){if(g||!w)return l.emit("error",g||new Error("Archive read error"));let x=i.lastPos,y=x-i.win.position,T=i.win.buffer,N=i.minPos;for(;--x>=N&&--y>=0;)if(T.length-y>=4&&T[y]===i.firstByte&&T.readUInt32LE(y)===i.sig){i.lastBufferPosition=y,i.lastBytesRead=w,i.complete();return}if(x===N)return l.emit("error",new Error("Bad archive"));if(i.lastPos=x+1,i.chunkSize*=2,x<=N)return l.emit("error",new Error("Bad archive"));let F=Math.min(i.chunkSize,x-N);i.win.expandLeft(F,m)}function p(){let g=Math.min(E.ENDHDR+E.MAXFILECOMMENT,t);i={win:new Er(e),totalReadLength:g,minPos:t-g,lastPos:t,chunkSize:Math.min(1024,r),firstByte:E.ENDSIGFIRST,sig:E.ENDSIG,complete:_},i.win.read(t-i.chunkSize,i.chunkSize,m)}function _(){let g=i.win.buffer,w=i.lastBufferPosition;try{s=new qn,s.read(g.slice(w,w+E.ENDHDR)),s.headerOffset=i.win.position+w,s.commentLength?l.comment=g.slice(w+E.ENDHDR,w+E.ENDHDR+s.commentLength).toString():l.comment=null,l.entriesCount=s.volumeEntries,l.centralDirectory=s,s.volumeEntries===E.EF_ZIP64_OR_16&&s.totalEntries===E.EF_ZIP64_OR_16||s.size===E.EF_ZIP64_OR_32||s.offset===E.EF_ZIP64_OR_32?v():(i={},L())}catch(x){l.emit("error",x)}}function v(){let g=E.ENDL64HDR;i.lastBufferPosition>g?(i.lastBufferPosition-=g,C()):(i={win:i.win,totalReadLength:g,minPos:i.win.position-g,lastPos:i.win.position,chunkSize:i.chunkSize,firstByte:E.ENDL64SIGFIRST,sig:E.ENDL64SIG,complete:C},i.win.read(i.lastPos-i.chunkSize,i.chunkSize,m))}function C(){let g=i.win.buffer,w=new jn;w.read(g.slice(i.lastBufferPosition,i.lastBufferPosition+E.ENDL64HDR));let x=t-w.headerOffset;i={win:i.win,totalReadLength:x,minPos:w.headerOffset,lastPos:i.lastPos,chunkSize:i.chunkSize,firstByte:E.END64SIGFIRST,sig:E.END64SIG,complete:I},i.win.read(t-i.chunkSize,i.chunkSize,m)}function I(){let g=i.win.buffer,w=new $n;w.read(g.slice(i.lastBufferPosition,i.lastBufferPosition+E.END64HDR)),l.centralDirectory.volumeEntries=w.volumeEntries,l.centralDirectory.totalEntries=w.totalEntries,l.centralDirectory.size=w.size,l.centralDirectory.offset=w.offset,l.entriesCount=w.volumeEntries,i={},L()}function L(){i={win:new Er(e),pos:s.offset,chunkSize:r,entriesLeft:s.volumeEntries},i.win.read(i.pos,Math.min(r,t-i.pos),R)}function R(g,w){if(g||!w)return l.emit("error",g||new Error("Entries read error"));let x=i.pos-i.win.position,y=i.entry,T=i.win.buffer,N=T.length;try{for(;i.entriesLeft>0;){y||(y=new Vn,y.readHeader(T,x),y.headerOffset=i.win.position+x,i.entry=y,i.pos+=E.CENHDR,x+=E.CENHDR);let F=y.fnameLen+y.extraLen+y.comLen,q=F+(i.entriesLeft>1?E.CENHDR:0);if(N-x<q){i.win.moveRight(r,R,x),i.move=!0;return}y.read(T,x,h),n.skipEntryNameValidation||y.validateName(),f&&(f[y.name]=y),l.emit("entry",y),i.entry=y=null,i.entriesLeft--,i.pos+=F,x+=F}l.emit("ready")}catch(F){l.emit("error",F)}}function O(){if(!f)throw new Error("storeEntries disabled")}Object.defineProperty(this,"ready",{get(){return!1}}),this.entry=function(g){return O(),f[g]},this.entries=function(){return O(),f},this.stream=function(g,w){return this.openEntry(g,(x,y)=>{if(x)return w(x);let T=k(y),N=new Hn(e,T,y.compressedSize);if(y.method!==E.STORED)if(y.method===E.DEFLATED)N=N.pipe(Gl.createInflateRaw());else return w(new Error("Unknown compression method: "+y.method));P(y)&&(N=N.pipe(new Zn(N,y.crc,y.size))),w(null,N)},!1)},this.entryDataSync=function(g){let w=null;if(this.openEntry(g,(y,T)=>{w=y,g=T},!0),w)throw w;let x=Buffer.alloc(g.compressedSize);if(new Re(e,x,0,g.compressedSize,k(g),y=>{w=y}).read(!0),w)throw w;if(g.method!==E.STORED)if(g.method===E.DEFLATED||g.method===E.ENHANCED_DEFLATED)x=Gl.inflateRawSync(x);else throw new Error("Unknown compression method: "+g.method);if(x.length!==g.size)throw new Error("Invalid size");return P(g)&&new wr(g.crc,g.size).data(x),x},this.openEntry=function(g,w,x){if(typeof g=="string"&&(O(),g=f[g],!g))return w(new Error("Entry not found"));if(!g.isFile)return w(new Error("Entry is not file"));if(!e)return w(new Error("Archive closed"));let y=Buffer.alloc(E.LOCHDR);new Re(e,y,0,y.length,g.offset,T=>{if(T)return w(T);let N;try{g.readDataHeader(y),g.encrypted&&(N=new Error("Entry encrypted"))}catch(F){N=F}w(N,g)}).read(x)};function k(g){return g.offset+E.LOCHDR+g.fnameLen+g.extraLen}function P(g){return(g.flags&8)!==8}function A(g,w,x){l.stream(g,(y,T)=>{if(y)x(y);else{let N,F;T.on("error",q=>{F=q,N&&(T.unpipe(N),N.close(()=>{x(q)}))}),le.open(w,"w",(q,ue)=>{if(q)return x(q);if(F){le.close(e,()=>{x(F)});return}N=le.createWriteStream(w,{fd:ue}),N.on("finish",()=>{l.emit("extract",g,w),F||x()}),T.pipe(N)})}})}function G(g,w,x){if(!w.length)return x();let y=w.shift();y=nt.join(g,nt.join(...y)),le.mkdir(y,{recursive:!0},T=>{if(T&&T.code!=="EEXIST")return x(T);G(g,w,x)})}function fe(g,w,x,y,T){if(!x.length)return y(null,T);let N=x.shift(),F=nt.join(g,N.name.replace(w,""));A(N,F,q=>{if(q)return y(q,T);fe(g,w,x,y,T+1)})}this.extract=function(g,w,x){let y=g||"";if(typeof g=="string"&&(g=this.entry(g),g?y=g.name:y.length&&y[y.length-1]!=="/"&&(y+="/")),!g||g.isDirectory){let T=[],N=[],F={};for(let q in f)if(Object.prototype.hasOwnProperty.call(f,q)&&q.lastIndexOf(y,0)===0){let ue=q.replace(y,""),Kn=f[q];if(Kn.isFile&&(T.push(Kn),ue=nt.dirname(ue)),ue&&!F[ue]&&ue!=="."){F[ue]=!0;let ve=ue.split("/").filter(it=>it);for(ve.length&&N.push(ve);ve.length>1;){ve=ve.slice(0,ve.length-1);let it=ve.join("/");if(F[it]||it===".")break;F[it]=!0,N.push(ve)}}}N.sort((q,ue)=>q.length-ue.length),N.length?G(w,N,q=>{q?x(q):fe(w,y,T,x,0)}):fe(w,y,T,x,0)}else le.stat(w,(T,N)=>{N&&N.isDirectory()?A(g,nt.join(w,nt.basename(g.name)),x):A(g,w,x)})},this.close=function(g){o||!e?(o=!0,g&&g()):(o=!0,le.close(e,w=>{e=null,g&&g(w)}))};let te=Yn.EventEmitter.prototype.emit;this.emit=function(...g){if(!o)return te.call(this,...g)}};De.setFs=function(n){le=n};De.debugLog=(...n)=>{De.debug&&console.log(...n)};oh.inherits(De,Yn.EventEmitter);var Te=Symbol("zip");De.async=class extends Yn.EventEmitter{constructor(e){super();let t=new De(e);t.on("entry",r=>this.emit("entry",r)),t.on("extract",(r,i)=>this.emit("extract",r,i)),this[Te]=new Promise((r,i)=>{t.on("ready",()=>{t.removeListener("error",i),r(t)}),t.on("error",i)})}get entriesCount(){return this[Te].then(e=>e.entriesCount)}get comment(){return this[Te].then(e=>e.comment)}async entry(e){return(await this[Te]).entry(e)}async entries(){return(await this[Te]).entries()}async stream(e){let t=await this[Te];return new Promise((r,i)=>{t.stream(e,(s,o)=>{s?i(s):r(o)})})}async entryData(e){let t=await this.stream(e);return new Promise((r,i)=>{let s=[];t.on("data",o=>s.push(o)),t.on("end",()=>{r(Buffer.concat(s))}),t.on("error",o=>{t.removeAllListeners("end"),i(o)})})}async extract(e,t){let r=await this[Te];return new Promise((i,s)=>{r.extract(e,t,(o,a)=>{o?s(o):i(a)})})}async close(){let e=await this[Te];return new Promise((t,r)=>{e.close(i=>{i?r(i):t()})})}};var qn=class{read(e){if(e.length!==E.ENDHDR||e.readUInt32LE(0)!==E.ENDSIG)throw new Error("Invalid central directory");this.volumeEntries=e.readUInt16LE(E.ENDSUB),this.totalEntries=e.readUInt16LE(E.ENDTOT),this.size=e.readUInt32LE(E.ENDSIZ),this.offset=e.readUInt32LE(E.ENDOFF),this.commentLength=e.readUInt16LE(E.ENDCOM)}},jn=class{read(e){if(e.length!==E.ENDL64HDR||e.readUInt32LE(0)!==E.ENDL64SIG)throw new Error("Invalid zip64 central directory locator");this.headerOffset=Ae(e,E.ENDSUB)}},$n=class{read(e){if(e.length!==E.END64HDR||e.readUInt32LE(0)!==E.END64SIG)throw new Error("Invalid central directory");this.volumeEntries=Ae(e,E.END64SUB),this.totalEntries=Ae(e,E.END64TOT),this.size=Ae(e,E.END64SIZ),this.offset=Ae(e,E.END64OFF)}},Vn=class{readHeader(e,t){if(e.length<t+E.CENHDR||e.readUInt32LE(t)!==E.CENSIG)throw new Error("Invalid entry header");this.verMade=e.readUInt16LE(t+E.CENVEM),this.version=e.readUInt16LE(t+E.CENVER),this.flags=e.readUInt16LE(t+E.CENFLG),this.method=e.readUInt16LE(t+E.CENHOW);let r=e.readUInt16LE(t+E.CENTIM),i=e.readUInt16LE(t+E.CENTIM+2);this.time=Wl(r,i),this.crc=e.readUInt32LE(t+E.CENCRC),this.compressedSize=e.readUInt32LE(t+E.CENSIZ),this.size=e.readUInt32LE(t+E.CENLEN),this.fnameLen=e.readUInt16LE(t+E.CENNAM),this.extraLen=e.readUInt16LE(t+E.CENEXT),this.comLen=e.readUInt16LE(t+E.CENCOM),this.diskStart=e.readUInt16LE(t+E.CENDSK),this.inattr=e.readUInt16LE(t+E.CENATT),this.attr=e.readUInt32LE(t+E.CENATX),this.offset=e.readUInt32LE(t+E.CENOFF)}readDataHeader(e){if(e.readUInt32LE(0)!==E.LOCSIG)throw new Error("Invalid local header");this.version=e.readUInt16LE(E.LOCVER),this.flags=e.readUInt16LE(E.LOCFLG),this.method=e.readUInt16LE(E.LOCHOW);let t=e.readUInt16LE(E.LOCTIM),r=e.readUInt16LE(E.LOCTIM+2);this.time=Wl(t,r),this.crc=e.readUInt32LE(E.LOCCRC)||this.crc;let i=e.readUInt32LE(E.LOCSIZ);i&&i!==E.EF_ZIP64_OR_32&&(this.compressedSize=i);let s=e.readUInt32LE(E.LOCLEN);s&&s!==E.EF_ZIP64_OR_32&&(this.size=s),this.fnameLen=e.readUInt16LE(E.LOCNAM),this.extraLen=e.readUInt16LE(E.LOCEXT)}read(e,t,r){let i=e.slice(t,t+=this.fnameLen);this.name=r?r.decode(new Uint8Array(i)):i.toString("utf8");let s=e[t-1];this.isDirectory=s===47||s===92,this.extraLen&&(this.readExtra(e,t),t+=this.extraLen),this.comment=this.comLen?e.slice(t,t+this.comLen).toString():null}validateName(){if(/\\|^\w+:|^\/|(^|\/)\.\.(\/|$)/.test(this.name))throw new Error("Malicious entry: "+this.name)}readExtra(e,t){let r,i,s=t+this.extraLen;for(;t<s;)r=e.readUInt16LE(t),t+=2,i=e.readUInt16LE(t),t+=2,E.ID_ZIP64===r&&this.parseZip64Extra(e,t,i),t+=i}parseZip64Extra(e,t,r){r>=8&&this.size===E.EF_ZIP64_OR_32&&(this.size=Ae(e,t),t+=8,r-=8),r>=8&&this.compressedSize===E.EF_ZIP64_OR_32&&(this.compressedSize=Ae(e,t),t+=8,r-=8),r>=8&&this.offset===E.EF_ZIP64_OR_32&&(this.offset=Ae(e,t),t+=8,r-=8),r>=4&&this.diskStart===E.EF_ZIP64_OR_16&&(this.diskStart=e.readUInt32LE(t))}get encrypted(){return(this.flags&E.FLG_ENTRY_ENC)===E.FLG_ENTRY_ENC}get isFile(){return!this.isDirectory}},Re=class{constructor(e,t,r,i,s,o){this.fd=e,this.buffer=t,this.offset=r,this.length=i,this.position=s,this.callback=o,this.bytesRead=0,this.waiting=!1}read(e){De.debugLog("read",this.position,this.bytesRead,this.length,this.offset),this.waiting=!0;let t;if(e){let r=0;try{r=le.readSync(this.fd,this.buffer,this.offset+this.bytesRead,this.length-this.bytesRead,this.position+this.bytesRead)}catch(i){t=i}this.readCallback(e,t,t?r:null)}else le.read(this.fd,this.buffer,this.offset+this.bytesRead,this.length-this.bytesRead,this.position+this.bytesRead,this.readCallback.bind(this,e))}readCallback(e,t,r){if(typeof r=="number"&&(this.bytesRead+=r),t||!r||this.bytesRead===this.length)return this.waiting=!1,this.callback(t,this.bytesRead);this.read(e)}},Er=class{constructor(e){this.position=0,this.buffer=Buffer.alloc(0),this.fd=e,this.fsOp=null}checkOp(){if(this.fsOp&&this.fsOp.waiting)throw new Error("Operation in progress")}read(e,t,r){this.checkOp(),this.buffer.length<t&&(this.buffer=Buffer.alloc(t)),this.position=e,this.fsOp=new Re(this.fd,this.buffer,0,t,this.position,r).read()}expandLeft(e,t){this.checkOp(),this.buffer=Buffer.concat([Buffer.alloc(e),this.buffer]),this.position-=e,this.position<0&&(this.position=0),this.fsOp=new Re(this.fd,this.buffer,0,e,this.position,t).read()}expandRight(e,t){this.checkOp();let r=this.buffer.length;this.buffer=Buffer.concat([this.buffer,Buffer.alloc(e)]),this.fsOp=new Re(this.fd,this.buffer,r,e,this.position+r,t).read()}moveRight(e,t,r){this.checkOp(),r?this.buffer.copy(this.buffer,0,r):r=0,this.position+=r,this.fsOp=new Re(this.fd,this.buffer,this.buffer.length-r,r,this.position+this.buffer.length-r,t).read()}},Hn=class extends jl.Readable{constructor(e,t,r){super(),this.fd=e,this.offset=t,this.length=r,this.pos=0,this.readCallback=this.readCallback.bind(this)}_read(e){let t=Buffer.alloc(Math.min(e,this.length-this.pos));t.length?le.read(this.fd,t,0,t.length,this.offset+this.pos,this.readCallback):this.push(null)}readCallback(e,t,r){this.pos+=t,e?(this.emit("error",e),this.push(null)):t?(t!==r.length&&(r=r.slice(0,t)),this.push(r)):this.push(null)}},Zn=class extends jl.Transform{constructor(e,t,r){super(),this.verify=new wr(t,r),e.on("error",i=>{this.emit("error",i)})}_transform(e,t,r){let i;try{this.verify.data(e)}catch(s){i=s}r(i,e)}},wr=class n{constructor(e,t){this.crc=e,this.size=t,this.state={crc:-1,size:0}}data(e){let t=n.getCrcTable(),r=this.state.crc,i=0,s=e.length;for(;--s>=0;)r=t[(r^e[i++])&255]^r>>>8;if(this.state.crc=r,this.state.size+=e.length,this.state.size>=this.size){let o=Buffer.alloc(4);if(o.writeInt32LE(~this.state.crc&4294967295,0),r=o.readUInt32LE(0),r!==this.crc)throw new Error("Invalid CRC");if(this.state.size!==this.size)throw new Error("Invalid size")}}static getCrcTable(){let e=n.crcTable;if(!e){n.crcTable=e=[];let t=Buffer.alloc(4);for(let r=0;r<256;r++){let i=r;for(let s=8;--s>=0;)i&1?i=3988292384^i>>>1:i=i>>>1;i<0&&(t.writeInt32LE(i,0),i=t.readUInt32LE(0)),e[r]=i}}return e}};function Wl(n,e){let t=ql(n,16),r=ql(e,16),i={h:parseInt(t.slice(0,5).join(""),2),m:parseInt(t.slice(5,11).join(""),2),s:parseInt(t.slice(11,16).join(""),2)*2,Y:parseInt(r.slice(0,7).join(""),2)+1980,M:parseInt(r.slice(7,11).join(""),2),D:parseInt(r.slice(11,16).join(""),2)},s=[i.Y,i.M,i.D].join("-")+" "+[i.h,i.m,i.s].join(":")+" GMT+0";return new Date(s).getTime()}function ql(n,e){let t=(n>>>0).toString(2);for(;t.length<e;)t="0"+t;return t.split("")}function Ae(n,e){return n.readUInt32LE(e+4)*4294967296+n.readUInt32LE(e)}$l.exports=De});var hh={};sa(hh,{StreamZip:()=>Ql.async,WebSocket:()=>ko,ZipFile:()=>Jl.ZipFile,convertSourceMap:()=>ch,decode:()=>ii,diffSequence:()=>Kl.default,findUpSync:()=>wl,minimatch:()=>Z,parseCss:()=>Xl.default,supportsColor:()=>Yl});module.exports=oa(hh);var ch=j(ei());var ti="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ma=new Uint8Array(64),ni=new Uint8Array(128);for(let n=0;n<ti.length;n++){let e=ti.charCodeAt(n);ma[n]=e,ni[e]=n}function st(n,e){let t=0,r=0,i=0;do{let o=n.next();i=ni[o],t|=(i&31)<<r,r+=5}while(i&32);let s=t&1;return t>>>=1,s&&(t=-2147483648|-t),e+t}function ri(n,e){return n.pos>=e?!1:n.peek()!==44}var mh=1024*16;var vr=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:r}=this,i=t.indexOf(e,r);return i===-1?t.length:i}};function ii(n){let{length:e}=n,t=new vr(n),r=[],i=0,s=0,o=0,a=0,l=0;do{let f=t.indexOf(";"),u=[],h=!0,c=0;for(i=0;t.pos<f;){let d;i=st(t,i),i<c&&(h=!1),c=i,ri(t,f)?(s=st(t,s),o=st(t,o),a=st(t,a),ri(t,f)?(l=st(t,l),d=[i,s,o,a,l]):d=[i,s,o,a]):d=[i],u.push(d),t.pos++}h||ga(u),r.push(u),t.pos=f+1}while(t.pos<=e);return r}function ga(n){n.sort(_a)}function _a(n,e){return n[0]-e[0]}var Xl=j(Rs());var Vu=j(Ps(),1),Hu=j(dn(),1),Zu=j(gn(),1),Uo=j(xn(),1),Yu=j(Fo(),1);var ko=Uo.default;var sl=j(Ko(),1);var Nt=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>65536)throw new TypeError("pattern is too long")};var nc={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Tt=n=>n.replace(/[[\]\\-]/g,"\\$&"),ic=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Jo=n=>n.join(""),Qo=(n,e)=>{let t=e;if(n.charAt(t)!=="[")throw new Error("not in a brace expression");let r=[],i=[],s=t+1,o=!1,a=!1,l=!1,f=!1,u=t,h="";e:for(;s<n.length;){let p=n.charAt(s);if((p==="!"||p==="^")&&s===t+1){f=!0,s++;continue}if(p==="]"&&o&&!l){u=s+1;break}if(o=!0,p==="\\"&&!l){l=!0,s++;continue}if(p==="["&&!l){for(let[_,[v,C,I]]of Object.entries(nc))if(n.startsWith(_,s)){if(h)return["$.",!1,n.length-t,!0];s+=_.length,I?i.push(v):r.push(v),a=a||C;continue e}}if(l=!1,h){p>h?r.push(Tt(h)+"-"+Tt(p)):p===h&&r.push(Tt(p)),h="",s++;continue}if(n.startsWith("-]",s+1)){r.push(Tt(p+"-")),s+=2;continue}if(n.startsWith("-",s+1)){h=p,s+=2;continue}r.push(Tt(p)),s++}if(u<s)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,n.length-t,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!f){let p=r[0].length===2?r[0].slice(-1):r[0];return[ic(p),!1,u-t,!1]}let c="["+(f?"^":"")+Jo(r)+"]",d="["+(f?"":"^")+Jo(i)+"]";return[r.length&&i.length?"("+c+"|"+d+")":r.length?c:d,a,u-t,!0]};var Le=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/\[([^\/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var sc=new Set(["!","?","+","*","@"]),el=n=>sc.has(n),oc="(?!(?:^|/)\\.\\.?(?:$|/))",fr="(?!\\.)",lc=new Set(["[","."]),ac=new Set(["..","."]),fc=new Set("().*{}+?[]^$\\!"),uc=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),On="[^/]",tl=On+"*?",rl=On+"+?",et=class n{type;#r;#n;#s=!1;#e=[];#t;#o;#a;#l=!1;#i;#f;#c=!1;constructor(e,t,r={}){this.type=e,e&&(this.#n=!0),this.#t=t,this.#r=this.#t?this.#t.#r:this,this.#i=this.#r===this?r:this.#r.#i,this.#a=this.#r===this?[]:this.#r.#a,e==="!"&&!this.#r.#l&&this.#a.push(this),this.#o=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let e of this.#e)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#f!==void 0?this.#f:this.type?this.#f=this.type+"("+this.#e.map(e=>String(e)).join("|")+")":this.#f=this.#e.map(e=>String(e)).join("")}#d(){if(this!==this.#r)throw new Error("should only call on root");if(this.#l)return this;this.toString(),this.#l=!0;let e;for(;e=this.#a.pop();){if(e.type!=="!")continue;let t=e,r=t.#t;for(;r;){for(let i=t.#o+1;!r.type&&i<r.#e.length;i++)for(let s of e.#e){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(r.#e[i])}t=r,r=t.#t}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof n&&t.#t===this))throw new Error("invalid part: "+t);this.#e.push(t)}}toJSON(){var t;let e=this.type===null?this.#e.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#e.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#r||this.#r.#l&&((t=this.#t)==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(this.#r===this)return!0;if(!((t=this.#t)!=null&&t.isStart()))return!1;if(this.#o===0)return!0;let e=this.#t;for(let r=0;r<this.#o;r++){let i=e.#e[r];if(!(i instanceof n&&i.type==="!"))return!1}return!0}isEnd(){var t,r,i;if(this.#r===this||((t=this.#t)==null?void 0:t.type)==="!")return!0;if(!((r=this.#t)!=null&&r.isEnd()))return!1;if(!this.type)return(i=this.#t)==null?void 0:i.isEnd();let e=this.#t?this.#t.#e.length:0;return this.#o===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new n(this.type,e);for(let r of this.#e)t.copyIn(r);return t}static#u(e,t,r,i){let s=!1,o=!1,a=-1,l=!1;if(t.type===null){let d=r,m="";for(;d<e.length;){let p=e.charAt(d++);if(s||p==="\\"){s=!s,m+=p;continue}if(o){d===a+1?(p==="^"||p==="!")&&(l=!0):p==="]"&&!(d===a+2&&l)&&(o=!1),m+=p;continue}else if(p==="["){o=!0,a=d,l=!1,m+=p;continue}if(!i.noext&&el(p)&&e.charAt(d)==="("){t.push(m),m="";let _=new n(p,t);d=n.#u(e,_,d,i),t.push(_);continue}m+=p}return t.push(m),d}let f=r+1,u=new n(null,t),h=[],c="";for(;f<e.length;){let d=e.charAt(f++);if(s||d==="\\"){s=!s,c+=d;continue}if(o){f===a+1?(d==="^"||d==="!")&&(l=!0):d==="]"&&!(f===a+2&&l)&&(o=!1),c+=d;continue}else if(d==="["){o=!0,a=f,l=!1,c+=d;continue}if(el(d)&&e.charAt(f)==="("){u.push(c),c="";let m=new n(d,u);u.push(m),f=n.#u(e,m,f,i);continue}if(d==="|"){u.push(c),c="",h.push(u),u=new n(null,t);continue}if(d===")")return c===""&&t.#e.length===0&&(t.#c=!0),u.push(c),c="",t.push(...h,u),f;c+=d}return t.type=null,t.#n=void 0,t.#e=[e.substring(r-1)],f}static fromGlob(e,t={}){let r=new n(null,void 0,t);return n.#u(e,r,0,t),r}toMMPattern(){if(this!==this.#r)return this.#r.toMMPattern();let e=this.toString(),[t,r,i,s]=this.toRegExpSource();if(!(i||this.#n||this.#i.nocase&&!this.#i.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let a=(this.#i.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#i}toRegExpSource(e){var l;let t=e??!!this.#i.dot;if(this.#r===this&&this.#d(),!this.type){let f=this.isStart()&&this.isEnd(),u=this.#e.map(m=>{let[p,_,v,C]=typeof m=="string"?n.#p(m,this.#n,f):m.toRegExpSource(e);return this.#n=this.#n||v,this.#s=this.#s||C,p}).join(""),h="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&ac.has(this.#e[0]))){let p=lc,_=t&&p.has(u.charAt(0))||u.startsWith("\\.")&&p.has(u.charAt(2))||u.startsWith("\\.\\.")&&p.has(u.charAt(4)),v=!t&&!e&&p.has(u.charAt(0));h=_?oc:v?fr:""}let c="";return this.isEnd()&&this.#r.#l&&((l=this.#t)==null?void 0:l.type)==="!"&&(c="(?:$|\\/)"),[h+u+c,Le(u),this.#n=!!this.#n,this.#s]}let r=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#h(t);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let f=this.toString();return this.#e=[f],this.type=null,this.#n=void 0,[f,Le(this.toString()),!1,!1]}let o=!r||e||t||!fr?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#c)a=(this.isStart()&&!t?fr:"")+rl;else{let f=this.type==="!"?"))"+(this.isStart()&&!t&&!e?fr:"")+tl+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+f}return[a,Le(s),this.#n=!!this.#n,this.#s]}#h(e){return this.#e.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[r,i,s,o]=t.toRegExpSource(e);return this.#s=this.#s||o,r}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#p(e,t,r=!1){let i=!1,s="",o=!1;for(let a=0;a<e.length;a++){let l=e.charAt(a);if(i){i=!1,s+=(fc.has(l)?"\\":"")+l;continue}if(l==="\\"){a===e.length-1?s+="\\\\":i=!0;continue}if(l==="["){let[f,u,h,c]=Qo(e,a);if(h){s+=f,o=o||u,a+=h-1,t=t||c;continue}}if(l==="*"){r&&e==="*"?s+=rl:s+=tl,t=!0;continue}if(l==="?"){s+=On,t=!0;continue}s+=uc(l)}return[s,Le(e),!!t,o]}};var In=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&");var Z=(n,e,t={})=>(Nt(e),!t.nocomment&&e.charAt(0)==="#"?!1:new tt(e,t).match(n)),cc=/^\*+([^+@!?\*\[\(]*)$/,hc=n=>e=>!e.startsWith(".")&&e.endsWith(n),dc=n=>e=>e.endsWith(n),pc=n=>(n=n.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(n)),mc=n=>(n=n.toLowerCase(),e=>e.toLowerCase().endsWith(n)),gc=/^\*+\.\*+$/,_c=n=>!n.startsWith(".")&&n.includes("."),Ec=n=>n!=="."&&n!==".."&&n.includes("."),wc=/^\.\*+$/,yc=n=>n!=="."&&n!==".."&&n.startsWith("."),Sc=/^\*+$/,vc=n=>n.length!==0&&!n.startsWith("."),xc=n=>n.length!==0&&n!=="."&&n!=="..",Cc=/^\?+([^+@!?\*\[\(]*)?$/,bc=([n,e=""])=>{let t=ol([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},Lc=([n,e=""])=>{let t=ll([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},Oc=([n,e=""])=>{let t=ll([n]);return e?r=>t(r)&&r.endsWith(e):t},Ic=([n,e=""])=>{let t=ol([n]);return e?r=>t(r)&&r.endsWith(e):t},ol=([n])=>{let e=n.length;return t=>t.length===e&&!t.startsWith(".")},ll=([n])=>{let e=n.length;return t=>t.length===e&&t!=="."&&t!==".."},al=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",nl={win32:{sep:"\\"},posix:{sep:"/"}},Nc=al==="win32"?nl.win32.sep:nl.posix.sep;Z.sep=Nc;var oe=Symbol("globstar **");Z.GLOBSTAR=oe;var Tc="[^/]",Rc=Tc+"*?",Ac="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Dc="(?:(?!(?:\\/|^)\\.).)*?",Mc=(n,e={})=>t=>Z(t,n,e);Z.filter=Mc;var se=(n,e={})=>Object.assign({},n,e),Pc=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return Z;let e=Z;return Object.assign((r,i,s={})=>e(r,i,se(n,s)),{Minimatch:class extends e.Minimatch{constructor(i,s={}){super(i,se(n,s))}static defaults(i){return e.defaults(se(n,i)).Minimatch}},AST:class extends e.AST{constructor(i,s,o={}){super(i,s,se(n,o))}static fromGlob(i,s={}){return e.AST.fromGlob(i,se(n,s))}},unescape:(r,i={})=>e.unescape(r,se(n,i)),escape:(r,i={})=>e.escape(r,se(n,i)),filter:(r,i={})=>e.filter(r,se(n,i)),defaults:r=>e.defaults(se(n,r)),makeRe:(r,i={})=>e.makeRe(r,se(n,i)),braceExpand:(r,i={})=>e.braceExpand(r,se(n,i)),match:(r,i,s={})=>e.match(r,i,se(n,s)),sep:e.sep,GLOBSTAR:oe})};Z.defaults=Pc;var fl=(n,e={})=>(Nt(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:(0,sl.default)(n));Z.braceExpand=fl;var Fc=(n,e={})=>new tt(n,e).makeRe();Z.makeRe=Fc;var Uc=(n,e,t={})=>{let r=new tt(e,t);return n=n.filter(i=>r.match(i)),r.options.nonull&&!n.length&&n.push(e),n};Z.match=Uc;var il=/[?*]|[+@!]\(.*?\)|\[|\]/,kc=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){Nt(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||al,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!il.test(s[2]))&&!il.test(s[3]),f=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(u=>this.parse(u))];if(f)return[s[0],...s.slice(1).map(u=>this.parse(u))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let i=0;i<e[r].length;i++)e[r][i]==="**"&&(e[r][i]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let r=-1;for(;(r=t.indexOf("**",r+1))!==-1;){let i=r;for(;t[i+1]==="**";)i++;i!==r&&t.splice(r,i-r)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((r,i)=>{let s=r[r.length-1];return i==="**"&&s==="**"?r:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(i),r)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(t=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let i=e[r-1];i&&i!=="."&&i!==".."&&i!=="**"&&(t=!0,e.splice(r-1,2),r-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let r of e){let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let o=i;for(;r[o+1]==="**";)o++;o>i&&r.splice(i+1,o-i);let a=r[i+1],l=r[i+2],f=r[i+3];if(a!==".."||!l||l==="."||l===".."||!f||f==="."||f==="..")continue;t=!0,r.splice(i,1);let u=r.slice(0);u[i]="**",e.push(u),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<r.length-1;o++){let a=r[o];o===1&&a===""&&r[0]===""||(a==="."||a==="")&&(t=!0,r.splice(o,1),o--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(t=!0,r.pop())}let s=0;for(;(s=r.indexOf("..",s+1))!==-1;){let o=r[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let l=s===1&&r[s+1]==="**"?["."]:[];r.splice(s-1,2,...l),r.length===0&&r.push(""),s-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){let i=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);if(i){e[t]=[],e[r]=i;break}}return e.filter(t=>t.length)}partsMatch(e,t,r=!1){let i=0,s=0,o=[],a="";for(;i<e.length&&s<t.length;)if(e[i]===t[s])o.push(a==="b"?t[s]:e[i]),i++,s++;else if(r&&e[i]==="**"&&t[s]===e[i+1])o.push(e[i]),i++;else if(r&&t[s]==="**"&&e[i]===t[s+1])o.push(t[s]),s++;else if(e[i]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[i]),i++,s++}else if(t[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(a==="a")return!1;a="b",o.push(t[s]),i++,s++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r=!1){let i=this.options;if(this.isWindows){let p=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),_=!p&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),v=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),C=!v&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),I=_?3:p?0:void 0,L=C?3:v?0:void 0;if(typeof I=="number"&&typeof L=="number"){let[R,O]=[e[I],t[L]];R.toLowerCase()===O.toLowerCase()&&(t[L]=R,L>I?t=t.slice(L):I>L&&(e=e.slice(I)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,l=e.length,f=t.length;o<l&&a<f;o++,a++){this.debug("matchOne loop");var u=t[a],h=e[o];if(this.debug(t,u,h),u===!1)return!1;if(u===oe){this.debug("GLOBSTAR",[t,u,h]);var c=o,d=a+1;if(d===f){for(this.debug("** at the end");o<l;o++)if(e[o]==="."||e[o]===".."||!i.dot&&e[o].charAt(0)===".")return!1;return!0}for(;c<l;){var m=e[c];if(this.debug(`
|
|
34
34
|
globstar while`,e,c,t,d,m),this.matchOne(e.slice(c),t.slice(d),r))return this.debug("globstar found match!",c,l,m),!0;if(m==="."||m===".."||!i.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,c,t,d);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(r&&(this.debug(`
|
|
35
35
|
>>> no match, partial?`,e,c,t,d),c===l))}let p;if(typeof u=="string"?(p=h===u,this.debug("string match",u,h,p)):(p=u.test(h),this.debug("pattern match",u,h,p)),!p)return!1}if(o===l&&a===f)return!0;if(o===l)return r;if(a===f)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return fl(this.pattern,this.options)}parse(e){Nt(e);let t=this.options;if(e==="**")return oe;if(e==="")return"";let r,i=null;(r=e.match(Sc))?i=t.dot?xc:vc:(r=e.match(cc))?i=(t.nocase?t.dot?mc:pc:t.dot?dc:hc)(r[1]):(r=e.match(Cc))?i=(t.nocase?t.dot?Lc:bc:t.dot?Oc:Ic)(r):(r=e.match(gc))?i=t.dot?Ec:_c:(r=e.match(wc))&&(i=yc);let s=et.fromGlob(e,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,r=t.noglobstar?Rc:t.dot?Ac:Dc,i=new Set(t.nocase?["i"]:[]),s=e.map(l=>{let f=l.map(u=>{if(u instanceof RegExp)for(let h of u.flags.split(""))i.add(h);return typeof u=="string"?kc(u):u===oe?oe:u._src});return f.forEach((u,h)=>{let c=f[h+1],d=f[h-1];u!==oe||d===oe||(d===void 0?c!==void 0&&c!==oe?f[h+1]="(?:\\/|"+r+"\\/)?"+c:f[h]=r:c===void 0?f[h-1]=d+"(?:\\/|"+r+")?":c!==oe&&(f[h-1]=d+"(?:\\/|\\/"+r+"\\/)"+c,f[h+1]=oe))}),f.filter(u=>u!==oe).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;a<s.length;a++){let l=s[a],f=i;if(r.matchBase&&l.length===1&&(f=[o]),this.matchOne(f,l,t))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return Z.defaults(e).Minimatch}};Z.AST=et;Z.Minimatch=tt;Z.escape=In;Z.unescape=Le;var Kl=j(dl());var rt=j(require("node:path"),1);var pl=j(require("node:process"),1),ml=j(require("node:path"),1),ur=j(require("node:fs"),1),gl=require("node:url");var _l={directory:"isDirectory",file:"isFile"};function qc(n){if(!Object.hasOwnProperty.call(_l,n))throw new Error(`Invalid type specified: ${n}`)}var jc=(n,e)=>e[_l[n]](),$c=n=>n instanceof URL?(0,gl.fileURLToPath)(n):n;function An(n,{cwd:e=pl.default.cwd(),type:t="file",allowSymlinks:r=!0}={}){qc(t),e=$c(e);let i=r?ur.default.statSync:ur.default.lstatSync;for(let s of n)try{let o=i(ml.default.resolve(e,s),{throwIfNoEntry:!1});if(!o)continue;if(jc(t,o))return s}catch{}}var El=require("node:url");function Dn(n){return n instanceof URL?(0,El.fileURLToPath)(n):n}var Vc=Symbol("findUpStop");function Hc(n,e={}){let t=rt.default.resolve(Dn(e.cwd)??""),{root:r}=rt.default.parse(t),i=rt.default.resolve(t,Dn(e.stopAt)??r),s=e.limit??Number.POSITIVE_INFINITY,o=[n].flat(),a=f=>{if(typeof n!="function")return An(o,f);let u=n(f.cwd);return typeof u=="string"?An([u],f):u},l=[];for(;;){let f=a({...e,cwd:t});if(f===Vc||(f&&l.push(rt.default.resolve(t,f)),t===i||l.length>=s))break;t=rt.default.dirname(t)}return l}function wl(n,e={}){return Hc(n,{...e,limit:1})[0]}var Jl=j(zl()),Ql=j(Vl());var Sr=j(require("node:process"),1),Zl=j(require("node:os"),1),Xn=j(require("node:tty"),1);function ae(n,e=globalThis.Deno?globalThis.Deno.args:Sr.default.argv){let t=n.startsWith("-")?"":n.length===1?"-":"--",r=e.indexOf(t+n),i=e.indexOf("--");return r!==-1&&(i===-1||r<i)}var{env:B}=Sr.default,yr;ae("no-color")||ae("no-colors")||ae("color=false")||ae("color=never")?yr=0:(ae("color")||ae("colors")||ae("color=true")||ae("color=always"))&&(yr=1);function lh(){if("FORCE_COLOR"in B)return B.FORCE_COLOR==="true"?1:B.FORCE_COLOR==="false"?0:B.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(B.FORCE_COLOR,10),3)}function ah(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}function fh(n,{streamIsTTY:e,sniffFlags:t=!0}={}){let r=lh();r!==void 0&&(yr=r);let i=t?yr:r;if(i===0)return 0;if(t){if(ae("color=16m")||ae("color=full")||ae("color=truecolor"))return 3;if(ae("color=256"))return 2}if("TF_BUILD"in B&&"AGENT_NAME"in B)return 1;if(n&&!e&&i===void 0)return 0;let s=i||0;if(B.TERM==="dumb")return s;if(Sr.default.platform==="win32"){let o=Zl.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in B)return"GITHUB_ACTIONS"in B||"GITEA_ACTIONS"in B?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in B)||B.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in B)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(B.TEAMCITY_VERSION)?1:0;if(B.COLORTERM==="truecolor"||B.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in B){let o=Number.parseInt((B.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(B.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(B.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(B.TERM)||"COLORTERM"in B?1:s}function Hl(n,e={}){let t=fh(n,{streamIsTTY:n&&n.isTTY,...e});return ah(t)}var uh={stdout:Hl({isTTY:Xn.default.isatty(1)}),stderr:Hl({isTTY:Xn.default.isatty(2)})},Yl=uh;0&&(module.exports={StreamZip,WebSocket,ZipFile,convertSourceMap,decode,diffSequence,findUpSync,minimatch,parseCss,supportsColor});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const CG = require('console-grid');
|
|
2
2
|
const EC = require('eight-colors');
|
|
3
|
-
const { minimatch } = require('../packages/monocart-coverage-vendor.js');
|
|
4
3
|
const { getGroupedRows } = require('../utils/snapshot.js');
|
|
5
4
|
const Util = require('../utils/util.js');
|
|
6
5
|
|
|
@@ -78,7 +77,7 @@ const getFileFilter = (input) => {
|
|
|
78
77
|
input = obj;
|
|
79
78
|
} else {
|
|
80
79
|
return (file) => {
|
|
81
|
-
return
|
|
80
|
+
return Util.betterMinimatch(file.sourcePath, input);
|
|
82
81
|
};
|
|
83
82
|
}
|
|
84
83
|
}
|
|
@@ -89,7 +88,7 @@ const getFileFilter = (input) => {
|
|
|
89
88
|
return (file) => {
|
|
90
89
|
const sourcePath = file.sourcePath;
|
|
91
90
|
for (const pattern of patterns) {
|
|
92
|
-
if (
|
|
91
|
+
if (Util.betterMinimatch(sourcePath, pattern)) {
|
|
93
92
|
return input[pattern];
|
|
94
93
|
}
|
|
95
94
|
}
|
package/lib/utils/source-path.js
CHANGED
|
@@ -56,13 +56,23 @@ const filterPath = (str) => {
|
|
|
56
56
|
return ls.join('/');
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
+
const betterFileURLToPath = (url) => {
|
|
60
|
+
try {
|
|
61
|
+
url = fileURLToPath(url);
|
|
62
|
+
} catch (e) {
|
|
63
|
+
url = decodeURIComponent(url);
|
|
64
|
+
url = fileURLToPath(url);
|
|
65
|
+
}
|
|
66
|
+
return url;
|
|
67
|
+
};
|
|
68
|
+
|
|
59
69
|
const normalizeSourcePath = (sourceUrl, baseDir) => {
|
|
60
70
|
|
|
61
71
|
// includes anonymous and everything
|
|
62
72
|
|
|
63
73
|
// file url
|
|
64
74
|
if (sourceUrl.startsWith('file:')) {
|
|
65
|
-
const relPath = Util.relativePath(
|
|
75
|
+
const relPath = Util.relativePath(betterFileURLToPath(sourceUrl), baseDir);
|
|
66
76
|
return filterPath(relPath);
|
|
67
77
|
}
|
|
68
78
|
|
|
@@ -108,7 +118,7 @@ const normalizeSourcePath = (sourceUrl, baseDir) => {
|
|
|
108
118
|
|
|
109
119
|
// relative path
|
|
110
120
|
const fileUrl = pathToFileURL(sourceUrl).toString();
|
|
111
|
-
const relPath = Util.relativePath(
|
|
121
|
+
const relPath = Util.relativePath(betterFileURLToPath(fileUrl), baseDir);
|
|
112
122
|
return filterPath(relPath);
|
|
113
123
|
};
|
|
114
124
|
|
package/lib/utils/util.js
CHANGED
|
@@ -171,6 +171,38 @@ const Util = {
|
|
|
171
171
|
};
|
|
172
172
|
},
|
|
173
173
|
|
|
174
|
+
betterMinimatch: (str, pattern) => {
|
|
175
|
+
str = `${str}`;
|
|
176
|
+
pattern = `${pattern}`;
|
|
177
|
+
|
|
178
|
+
if (pattern === '*') {
|
|
179
|
+
return true;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// includes first
|
|
183
|
+
if (str.includes(pattern)) {
|
|
184
|
+
return true;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// with minimatch
|
|
188
|
+
if (minimatch(str, pattern)) {
|
|
189
|
+
return true;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// after decode url
|
|
193
|
+
str = decodeURIComponent(str);
|
|
194
|
+
|
|
195
|
+
if (str.includes(pattern)) {
|
|
196
|
+
return true;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (minimatch(str, pattern)) {
|
|
200
|
+
return true;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
return false;
|
|
204
|
+
},
|
|
205
|
+
|
|
174
206
|
// eslint-disable-next-line complexity
|
|
175
207
|
getEntryFilter: (options) => {
|
|
176
208
|
// for entry.url
|
|
@@ -197,7 +229,7 @@ const Util = {
|
|
|
197
229
|
input = obj;
|
|
198
230
|
} else {
|
|
199
231
|
const handler = (entry) => {
|
|
200
|
-
return
|
|
232
|
+
return Util.betterMinimatch(entry.url, input);
|
|
201
233
|
};
|
|
202
234
|
options.entryFilterHandler = handler;
|
|
203
235
|
return handler;
|
|
@@ -210,7 +242,7 @@ const Util = {
|
|
|
210
242
|
const handler = (entry) => {
|
|
211
243
|
const url = entry.url;
|
|
212
244
|
for (const pattern of patterns) {
|
|
213
|
-
if (
|
|
245
|
+
if (Util.betterMinimatch(url, pattern)) {
|
|
214
246
|
return input[pattern];
|
|
215
247
|
}
|
|
216
248
|
}
|
|
@@ -252,7 +284,7 @@ const Util = {
|
|
|
252
284
|
input = obj;
|
|
253
285
|
} else {
|
|
254
286
|
const handler = (sourcePath) => {
|
|
255
|
-
return
|
|
287
|
+
return Util.betterMinimatch(sourcePath, input);
|
|
256
288
|
};
|
|
257
289
|
options.sourceFilterHandler = handler;
|
|
258
290
|
return handler;
|
|
@@ -264,7 +296,7 @@ const Util = {
|
|
|
264
296
|
const patterns = Object.keys(input);
|
|
265
297
|
const handler = (sourcePath) => {
|
|
266
298
|
for (const pattern of patterns) {
|
|
267
|
-
if (
|
|
299
|
+
if (Util.betterMinimatch(sourcePath, pattern)) {
|
|
268
300
|
return input[pattern];
|
|
269
301
|
}
|
|
270
302
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monocart-coverage-reports",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.4",
|
|
4
4
|
"description": "A code coverage tool to generate native V8 reports or Istanbul reports.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -96,24 +96,25 @@
|
|
|
96
96
|
"convert-source-map": "^2.0.0",
|
|
97
97
|
"diff-sequences": "^29.6.3",
|
|
98
98
|
"esbuild": "^0.24.0",
|
|
99
|
-
"eslint": "~9.
|
|
99
|
+
"eslint": "~9.16.0",
|
|
100
100
|
"eslint-config-plus": "^2.0.2",
|
|
101
101
|
"eslint-plugin-html": "^8.1.2",
|
|
102
|
-
"eslint-plugin-vue": "^9.
|
|
102
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
103
103
|
"find-up": "^7.0.0",
|
|
104
104
|
"minimatch": "^9.0.5",
|
|
105
|
+
"mocha": "^11.0.1",
|
|
105
106
|
"monocart-code-viewer": "^1.1.4",
|
|
106
107
|
"monocart-formatter": "^3.0.0",
|
|
107
108
|
"node-stream-zip": "^1.15.0",
|
|
108
109
|
"postcss": "^8.4.49",
|
|
109
110
|
"starfall-cli": "^2.0.20",
|
|
110
|
-
"stylelint": "^16.
|
|
111
|
+
"stylelint": "^16.11.0",
|
|
111
112
|
"stylelint-config-plus": "^1.1.3",
|
|
112
113
|
"supports-color": "^9.4.0",
|
|
113
114
|
"tsx": "^4.19.2",
|
|
114
115
|
"turbogrid": "^3.2.0",
|
|
115
116
|
"vine-ui": "^3.1.16",
|
|
116
117
|
"ws": "^8.18.0",
|
|
117
|
-
"yazl": "^3.3.
|
|
118
|
+
"yazl": "^3.3.1"
|
|
118
119
|
}
|
|
119
120
|
}
|