create-expo-nightly 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ExpoRepo.d.ts +8 -0
- package/build/Npm.d.ts +4 -0
- package/build/Packages.d.ts +27 -0
- package/build/Processes.d.ts +8 -0
- package/build/Project.d.ts +13 -0
- package/build/SanityChecks.d.ts +4 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +53 -0
- package/build/package.json +3 -0
- package/package.json +49 -0
package/build/index.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{createRequire as e}from"module";var t={5211:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.codeFrameColumns=codeFrameColumns;t["default"]=_default;var r=_interopRequireWildcard(n(7654));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var n={};var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(Object.prototype.hasOwnProperty.call(e,s)){var i=r?Object.getOwnPropertyDescriptor(e,s):null;if(i&&(i.get||i.set)){Object.defineProperty(n,s,i)}else{n[s]=e[s]}}}n.default=e;if(t){t.set(e,n)}return n}let s=false;function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const i=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,n){const r=Object.assign({column:0,line:-1},e.start);const s=Object.assign({},r,e.end);const{linesAbove:i=2,linesBelow:o=3}=n||{};const a=r.line;const u=r.column;const c=s.line;const l=s.column;let f=Math.max(a-(i+1),0);let h=Math.min(t.length,c+o);if(a===-1){f=0}if(c===-1){h=t.length}const p=c-a;const d={};if(p){for(let e=0;e<=p;e++){const n=e+a;if(!u){d[n]=true}else if(e===0){const e=t[n-1].length;d[n]=[u,e-u+1]}else if(e===p){d[n]=[0,l]}else{const r=t[n-e].length;d[n]=[0,r]}}}else{if(u===l){if(u){d[a]=[u,0]}else{d[a]=true}}else{d[a]=[u,l-u]}}return{start:f,end:h,markerLines:d}}function codeFrameColumns(e,t,n={}){const s=(n.highlightCode||n.forceColor)&&(0,r.shouldHighlight)(n);const o=(0,r.getChalk)(n);const a=getDefs(o);const maybeHighlight=(e,t)=>s?e(t):t;const u=e.split(i);const{start:c,end:l,markerLines:f}=getMarkerLines(t,u,n);const h=t.start&&typeof t.start.column==="number";const p=String(l).length;const d=s?(0,r.default)(e,n):e;let g=d.split(i).slice(c,l).map(((e,t)=>{const r=c+1+t;const s=` ${r}`.slice(-p);const i=` ${s} | `;const o=f[r];const u=!f[r+1];if(o){let t="";if(Array.isArray(o)){const r=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," ");const s=o[1]||1;t=["\n ",maybeHighlight(a.gutter,i.replace(/\d/g," ")),r,maybeHighlight(a.marker,"^").repeat(s)].join("");if(u&&n.message){t+=" "+maybeHighlight(a.message,n.message)}}return[maybeHighlight(a.marker,">"),maybeHighlight(a.gutter,i),e,t].join("")}else{return` ${maybeHighlight(a.gutter,i)}${e}`}})).join("\n");if(n.message&&!h){g=`${" ".repeat(p+1)}${n.message}\n${g}`}if(s){return o.reset(g)}else{return g}}function _default(e,t,n,r={}){if(!s){s=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}n=Math.max(n,0);const i={start:{column:n,line:t}};return codeFrameColumns(e,i,r)}},7658:(e,t,n)=>{const r=n(6438);const s=n(6528);const i=n(7278).stdout;const o=n(2558);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const u=["ansi","ansi","ansi256","ansi16m"];const c=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const n=i?i.level:0;e.level=t.level===undefined?n:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){s.blue.open="[94m"}for(const e of Object.keys(s)){s[e].closeRe=new RegExp(r(s[e].close),"g");l[e]={get(){const t=s[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};s.color.closeRe=new RegExp(r(s.color.close),"g");for(const e of Object.keys(s.color.ansi)){if(c.has(e)){continue}l[e]={get(){const t=this.level;return function(){const n=s.color[u[t]][e].apply(null,arguments);const r={open:n,close:s.color.close,closeRe:s.color.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}}s.bgColor.closeRe=new RegExp(r(s.bgColor.close),"g");for(const e of Object.keys(s.bgColor.ansi)){if(c.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const n=s.bgColor[u[t]][e].apply(null,arguments);const r={open:n,close:s.bgColor.close,closeRe:s.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}}const f=Object.defineProperties((()=>{}),l);function build(e,t,n){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const r=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return r.level},set(e){r.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return r.enabled},set(e){r.enabled=e}});builder.hasGrey=this.hasGrey||n==="gray"||n==="grey";builder.__proto__=f;return builder}function applyStyle(){const e=arguments;const t=e.length;let n=String(arguments[0]);if(t===0){return""}if(t>1){for(let r=1;r<t;r++){n+=" "+e[r]}}if(!this.enabled||this.level<=0||!n){return this._empty?"":n}const r=s.dim.open;if(a&&this.hasGrey){s.dim.open=""}for(const e of this._styles.slice().reverse()){n=e.open+n.replace(e.closeRe,e.open)+e.close;n=n.replace(/\r?\n/g,`${e.close}$&${e.open}`)}s.dim.open=r;return n}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const n=[].slice.call(arguments,2);const r=[t.raw[0]];for(let e=1;e<t.length;e++){r.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&"));r.push(String(t.raw[e]))}return o(e,r.join(""))}Object.defineProperties(Chalk.prototype,l);e.exports=Chalk();e.exports.supportsColor=i;e.exports["default"]=e.exports},6528:(e,t,n)=>{e=n.nmd(e);const r=n(4057);const wrapAnsi16=(e,t)=>function(){const n=e.apply(r,arguments);return`[${n+t}m`};const wrapAnsi256=(e,t)=>function(){const n=e.apply(r,arguments);return`[${38+t};5;${n}m`};const wrapAnsi16m=(e,t)=>function(){const n=e.apply(r,arguments);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const n of Object.keys(t)){const r=t[n];for(const n of Object.keys(r)){const s=r[n];t[n]={open:`[${s[0]}m`,close:`[${s[1]}m`};r[n]=t[n];e.set(s[0],s[1])}Object.defineProperty(t,n,{value:r,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const ansi2ansi=e=>e;const rgb2rgb=(e,t,n)=>[e,t,n];t.color.close="[39m";t.bgColor.close="[49m";t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let e of Object.keys(r)){if(typeof r[e]!=="object"){continue}const n=r[e];if(e==="ansi16"){e="ansi"}if("ansi16"in n){t.color.ansi[e]=wrapAnsi16(n.ansi16,0);t.bgColor.ansi[e]=wrapAnsi16(n.ansi16,10)}if("ansi256"in n){t.color.ansi256[e]=wrapAnsi256(n.ansi256,0);t.bgColor.ansi256[e]=wrapAnsi256(n.ansi256,10)}if("rgb"in n){t.color.ansi16m[e]=wrapAnsi16m(n.rgb,0);t.bgColor.ansi16m[e]=wrapAnsi16m(n.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},572:(e,t,n)=>{var r=n(5156);var s={};for(var i in r){if(r.hasOwnProperty(i)){s[r[i]]=i}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var u=o[a].channels;var c=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:u});Object.defineProperty(o[a],"labels",{value:c})}}o.rgb.hsl=function(e){var t=e[0]/255;var n=e[1]/255;var r=e[2]/255;var s=Math.min(t,n,r);var i=Math.max(t,n,r);var o=i-s;var a;var u;var c;if(i===s){a=0}else if(t===i){a=(n-r)/o}else if(n===i){a=2+(r-t)/o}else if(r===i){a=4+(t-n)/o}a=Math.min(a*60,360);if(a<0){a+=360}c=(s+i)/2;if(i===s){u=0}else if(c<=.5){u=o/(i+s)}else{u=o/(2-i-s)}return[a,u*100,c*100]};o.rgb.hsv=function(e){var t;var n;var r;var s;var i;var o=e[0]/255;var a=e[1]/255;var u=e[2]/255;var c=Math.max(o,a,u);var l=c-Math.min(o,a,u);var diffc=function(e){return(c-e)/6/l+1/2};if(l===0){s=i=0}else{i=l/c;t=diffc(o);n=diffc(a);r=diffc(u);if(o===c){s=r-n}else if(a===c){s=1/3+t-r}else if(u===c){s=2/3+n-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,i*100,c*100]};o.rgb.hwb=function(e){var t=e[0];var n=e[1];var r=e[2];var s=o.rgb.hsl(e)[0];var i=1/255*Math.min(t,Math.min(n,r));r=1-1/255*Math.max(t,Math.max(n,r));return[s,i*100,r*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var n=e[1]/255;var r=e[2]/255;var s;var i;var o;var a;a=Math.min(1-t,1-n,1-r);s=(1-t-a)/(1-a)||0;i=(1-n-a)/(1-a)||0;o=(1-r-a)/(1-a)||0;return[s*100,i*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=s[e];if(t){return t}var n=Infinity;var i;for(var o in r){if(r.hasOwnProperty(o)){var a=r[o];var u=comparativeDistance(e,a);if(u<n){n=u;i=o}}}return i};o.keyword.rgb=function(e){return r[e]};o.rgb.xyz=function(e){var t=e[0]/255;var n=e[1]/255;var r=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var s=t*.4124+n*.3576+r*.1805;var i=t*.2126+n*.7152+r*.0722;var o=t*.0193+n*.1192+r*.9505;return[s*100,i*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var n=t[0];var r=t[1];var s=t[2];var i;var a;var u;n/=95.047;r/=100;s/=108.883;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;i=116*r-16;a=500*(n-r);u=200*(r-s);return[i,a,u]};o.hsl.rgb=function(e){var t=e[0]/360;var n=e[1]/100;var r=e[2]/100;var s;var i;var o;var a;var u;if(n===0){u=r*255;return[u,u,u]}if(r<.5){i=r*(1+n)}else{i=r+n-r*n}s=2*r-i;a=[0,0,0];for(var c=0;c<3;c++){o=t+1/3*-(c-1);if(o<0){o++}if(o>1){o--}if(6*o<1){u=s+(i-s)*6*o}else if(2*o<1){u=i}else if(3*o<2){u=s+(i-s)*(2/3-o)*6}else{u=s}a[c]=u*255}return a};o.hsl.hsv=function(e){var t=e[0];var n=e[1]/100;var r=e[2]/100;var s=n;var i=Math.max(r,.01);var o;var a;r*=2;n*=r<=1?r:2-r;s*=i<=1?i:2-i;a=(r+n)/2;o=r===0?2*s/(i+s):2*n/(r+n);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var n=e[1]/100;var r=e[2]/100;var s=Math.floor(t)%6;var i=t-Math.floor(t);var o=255*r*(1-n);var a=255*r*(1-n*i);var u=255*r*(1-n*(1-i));r*=255;switch(s){case 0:return[r,u,o];case 1:return[a,r,o];case 2:return[o,r,u];case 3:return[o,a,r];case 4:return[u,o,r];case 5:return[r,o,a]}};o.hsv.hsl=function(e){var t=e[0];var n=e[1]/100;var r=e[2]/100;var s=Math.max(r,.01);var i;var o;var a;a=(2-n)*r;i=(2-n)*s;o=n*s;o/=i<=1?i:2-i;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var n=e[1]/100;var r=e[2]/100;var s=n+r;var i;var o;var a;var u;if(s>1){n/=s;r/=s}i=Math.floor(6*t);o=1-r;a=6*t-i;if((i&1)!==0){a=1-a}u=n+a*(o-n);var c;var l;var f;switch(i){default:case 6:case 0:c=o;l=u;f=n;break;case 1:c=u;l=o;f=n;break;case 2:c=n;l=o;f=u;break;case 3:c=n;l=u;f=o;break;case 4:c=u;l=n;f=o;break;case 5:c=o;l=n;f=u;break}return[c*255,l*255,f*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var n=e[1]/100;var r=e[2]/100;var s=e[3]/100;var i;var o;var a;i=1-Math.min(1,t*(1-s)+s);o=1-Math.min(1,n*(1-s)+s);a=1-Math.min(1,r*(1-s)+s);return[i*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var n=e[1]/100;var r=e[2]/100;var s;var i;var o;s=t*3.2406+n*-1.5372+r*-.4986;i=t*-.9689+n*1.8758+r*.0415;o=t*.0557+n*-.204+r*1.057;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;s=Math.min(Math.max(0,s),1);i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);return[s*255,i*255,o*255]};o.xyz.lab=function(e){var t=e[0];var n=e[1];var r=e[2];var s;var i;var o;t/=95.047;n/=100;r/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;s=116*n-16;i=500*(t-n);o=200*(n-r);return[s,i,o]};o.lab.xyz=function(e){var t=e[0];var n=e[1];var r=e[2];var s;var i;var o;i=(t+16)/116;s=n/500+i;o=i-r/200;var a=Math.pow(i,3);var u=Math.pow(s,3);var c=Math.pow(o,3);i=a>.008856?a:(i-16/116)/7.787;s=u>.008856?u:(s-16/116)/7.787;o=c>.008856?c:(o-16/116)/7.787;s*=95.047;i*=100;o*=108.883;return[s,i,o]};o.lab.lch=function(e){var t=e[0];var n=e[1];var r=e[2];var s;var i;var o;s=Math.atan2(r,n);i=s*360/2/Math.PI;if(i<0){i+=360}o=Math.sqrt(n*n+r*r);return[t,o,i]};o.lch.lab=function(e){var t=e[0];var n=e[1];var r=e[2];var s;var i;var o;o=r/360*2*Math.PI;s=n*Math.cos(o);i=n*Math.sin(o);return[t,s,i]};o.rgb.ansi16=function(e){var t=e[0];var n=e[1];var r=e[2];var s=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];s=Math.round(s/50);if(s===0){return 30}var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));if(s===2){i+=60}return i};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var n=e[1];var r=e[2];if(t===n&&n===r){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var s=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return s};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var n=(~~(e>50)+1)*.5;var r=(t&1)*n*255;var s=(t>>1&1)*n*255;var i=(t>>2&1)*n*255;return[r,s,i]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var n;var r=Math.floor(e/36)/5*255;var s=Math.floor((n=e%36)/6)/5*255;var i=n%6/5*255;return[r,s,i]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var n=t[0];if(t[0].length===3){n=n.split("").map((function(e){return e+e})).join("")}var r=parseInt(n,16);var s=r>>16&255;var i=r>>8&255;var o=r&255;return[s,i,o]};o.rgb.hcg=function(e){var t=e[0]/255;var n=e[1]/255;var r=e[2]/255;var s=Math.max(Math.max(t,n),r);var i=Math.min(Math.min(t,n),r);var o=s-i;var a;var u;if(o<1){a=i/(1-o)}else{a=0}if(o<=0){u=0}else if(s===t){u=(n-r)/o%6}else if(s===n){u=2+(r-t)/o}else{u=4+(t-n)/o+4}u/=6;u%=1;return[u*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var n=e[2]/100;var r=1;var s=0;if(n<.5){r=2*t*n}else{r=2*t*(1-n)}if(r<1){s=(n-.5*r)/(1-r)}return[e[0],r*100,s*100]};o.hsv.hcg=function(e){var t=e[1]/100;var n=e[2]/100;var r=t*n;var s=0;if(r<1){s=(n-r)/(1-r)}return[e[0],r*100,s*100]};o.hcg.rgb=function(e){var t=e[0]/360;var n=e[1]/100;var r=e[2]/100;if(n===0){return[r*255,r*255,r*255]}var s=[0,0,0];var i=t%1*6;var o=i%1;var a=1-o;var u=0;switch(Math.floor(i)){case 0:s[0]=1;s[1]=o;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=o;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=o;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}u=(1-n)*r;return[(n*s[0]+u)*255,(n*s[1]+u)*255,(n*s[2]+u)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var n=e[2]/100;var r=t+n*(1-t);var s=0;if(r>0){s=t/r}return[e[0],s*100,r*100]};o.hcg.hsl=function(e){var t=e[1]/100;var n=e[2]/100;var r=n*(1-t)+.5*t;var s=0;if(r>0&&r<.5){s=t/(2*r)}else if(r>=.5&&r<1){s=t/(2*(1-r))}return[e[0],s*100,r*100]};o.hcg.hwb=function(e){var t=e[1]/100;var n=e[2]/100;var r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var n=e[2]/100;var r=1-n;var s=r-t;var i=0;if(s<1){i=(r-s)/(1-s)}return[e[0],s*100,i*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var n=(t<<16)+(t<<8)+t;var r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},4057:(e,t,n)=>{var r=n(572);var s=n(4755);var i={};var o=Object.keys(r);function wrapRaw(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var n=e(t);if(typeof n==="object"){for(var r=n.length,s=0;s<r;s++){n[s]=Math.round(n[s])}}return n};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}o.forEach((function(e){i[e]={};Object.defineProperty(i[e],"channels",{value:r[e].channels});Object.defineProperty(i[e],"labels",{value:r[e].labels});var t=s(e);var n=Object.keys(t);n.forEach((function(n){var r=t[n];i[e][n]=wrapRounded(r);i[e][n].raw=wrapRaw(r)}))}));e.exports=i},5156:e=>{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4755:(e,t,n)=>{var r=n(572);function buildGraph(){var e={};var t=Object.keys(r);for(var n=t.length,s=0;s<n;s++){e[t[s]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var n=[e];t[e].distance=0;while(n.length){var s=n.pop();var i=Object.keys(r[s]);for(var o=i.length,a=0;a<o;a++){var u=i[a];var c=t[u];if(c.distance===-1){c.distance=t[s].distance+1;c.parent=s;n.unshift(u)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){var n=[t[e].parent,e];var s=r[t[e].parent][e];var i=t[e].parent;while(t[i].parent){n.unshift(t[i].parent);s=link(r[t[i].parent][i],s);i=t[i].parent}s.conversion=n;return s}e.exports=function(e){var t=deriveBFS(e);var n={};var r=Object.keys(t);for(var s=r.length,i=0;i<s;i++){var o=r[i];var a=t[o];if(a.parent===null){continue}n[o]=wrapConversion(o,t)}return n}},6438:e=>{var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},7278:(e,t,n)=>{const r=n(2037);const s=n(2179);const i=process.env;let o;if(s("no-color")||s("no-colors")||s("color=false")){o=false}else if(s("color")||s("colors")||s("color=true")||s("color=always")){o=true}if("FORCE_COLOR"in i){o=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=r.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}if(i.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},2179:e=>{e.exports=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const s=t.indexOf("--");return r!==-1&&(s===-1?true:r<s)}},2558:e=>{const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return i.get(e)||e}function parseArguments(e,t){const n=[];const i=t.trim().split(/\s*,\s*/g);let o;for(const t of i){if(!isNaN(t)){n.push(Number(t))}else if(o=t.match(r)){n.push(o[2].replace(s,((e,t,n)=>t?unescape(t):n)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let r;while((r=n.exec(e))!==null){const e=r[1];if(r[2]){const n=parseArguments(e,r[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let r=e;for(const e of Object.keys(n)){if(Array.isArray(n[e])){if(!(e in r)){throw new Error(`Unknown Chalk style: ${e}`)}if(n[e].length>0){r=r[e].apply(r,n[e])}else{r=r[e]}}}return r}e.exports=(e,n)=>{const r=[];const s=[];let i=[];n.replace(t,((t,n,o,a,u,c)=>{if(n){i.push(unescape(n))}else if(a){const t=i.join("");i=[];s.push(r.length===0?t:buildStyle(e,r)(t));r.push({inverse:o,styles:parseStyle(a)})}else if(u){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,r)(i.join("")));i=[];r.pop()}else{i.push(c)}}));s.push(i.join(""));if(r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")}},9090:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,r,s)}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))r(t,e,n);s(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=n(5211);const u=o(n(7147));const c=o(n(6904));const l=o(n(1017));const f=n(3837);const h=o(n(2221));const p=i(n(2212));const d=(0,f.promisify)(h.default);const g={badJsonDefault:undefined,jsonParseErrorDefault:undefined,cantReadFileDefault:undefined,ensureDir:false,default:undefined,json5:false,space:2,addNewLineAtEOF:true};class JsonFile{file;options;static read=read;static readAsync=readAsync;static parseJsonString=parseJsonString;static writeAsync=writeAsync;static getAsync=getAsync;static setAsync=setAsync;static mergeAsync=mergeAsync;static deleteKeyAsync=deleteKeyAsync;static deleteKeysAsync=deleteKeysAsync;static rewriteAsync=rewriteAsync;constructor(e,t={}){this.file=e;this.options=t}read(e){return read(this.file,this._getOptions(e))}async readAsync(e){return readAsync(this.file,this._getOptions(e))}async writeAsync(e,t){return writeAsync(this.file,e,this._getOptions(t))}parseJsonString(e,t){return parseJsonString(e,t)}async getAsync(e,t,n){return getAsync(this.file,e,t,this._getOptions(n))}async setAsync(e,t,n){return setAsync(this.file,e,t,this._getOptions(n))}async mergeAsync(e,t){return mergeAsync(this.file,e,this._getOptions(t))}async deleteKeyAsync(e,t){return deleteKeyAsync(this.file,e,this._getOptions(t))}async deleteKeysAsync(e,t){return deleteKeysAsync(this.file,e,this._getOptions(t))}async rewriteAsync(e){return rewriteAsync(this.file,this._getOptions(e))}_getOptions(e){return{...this.options,...e}}}t["default"]=JsonFile;function read(e,t){let n;try{n=u.default.readFileSync(e,"utf8")}catch(r){assertEmptyJsonString(n,e);const s=cantReadFileDefault(t);if(s===undefined){throw new p.default(`Can't read JSON file: ${e}`,r,r.code,e)}else{return s}}return parseJsonString(n,t,e)}async function readAsync(e,t){let n;try{n=await u.default.promises.readFile(e,"utf8")}catch(r){assertEmptyJsonString(n,e);const s=cantReadFileDefault(t);if(s===undefined){throw new p.default(`Can't read JSON file: ${e}`,r,r.code)}else{return s}}return parseJsonString(n,t)}function parseJsonString(e,t,n){assertEmptyJsonString(e,n);try{if(_getOption(t,"json5")){return c.default.parse(e)}else{return JSON.parse(e)}}catch(r){const s=jsonParseErrorDefault(t);if(s===undefined){const t=locationFromSyntaxError(r,e);if(t){const n=(0,a.codeFrameColumns)(e,{start:t});r.codeFrame=n;r.message+=`\n${n}`}throw new p.default(`Error parsing JSON: ${e}`,r,"EJSONPARSE",n)}else{return s}}}async function getAsync(e,t,n,r){const s=await readAsync(e,r);if(t in s){return s[t]}if(n===undefined){throw new p.default(`No value at key path "${String(t)}" in JSON object from: ${e}`)}return n}async function writeAsync(e,t,n){if(n?.ensureDir){await u.default.promises.mkdir(l.default.dirname(e),{recursive:true})}const r=_getOption(n,"space");const s=_getOption(n,"json5");const i=_getOption(n,"addNewLineAtEOF");let o;try{if(s){o=c.default.stringify(t,null,r)}else{o=JSON.stringify(t,null,r)}}catch(t){throw new p.default(`Couldn't JSON.stringify object for file: ${e}`,t)}const a=i?`${o}\n`:o;await d(e,a,{});return t}async function setAsync(e,t,n,r){const s=await readAsync(e,r);return writeAsync(e,{...s,[t]:n},r)}async function mergeAsync(e,t,n){const r=await readAsync(e,n);if(Array.isArray(t)){Object.assign(r,...t)}else{Object.assign(r,t)}return writeAsync(e,r,n)}async function deleteKeyAsync(e,t,n){return deleteKeysAsync(e,[t],n)}async function deleteKeysAsync(e,t,n){const r=await readAsync(e,n);let s=false;for(let e=0;e<t.length;e++){const n=t[e];if(r.hasOwnProperty(n)){delete r[n];s=true}}if(s){return writeAsync(e,r,n)}return r}async function rewriteAsync(e,t){const n=await readAsync(e,t);return writeAsync(e,n,t)}function jsonParseErrorDefault(e={}){if(e.jsonParseErrorDefault===undefined){return e.default}else{return e.jsonParseErrorDefault}}function cantReadFileDefault(e={}){if(e.cantReadFileDefault===undefined){return e.default}else{return e.cantReadFileDefault}}function _getOption(e,t){if(e){if(e[t]!==undefined){return e[t]}}return g[t]}function locationFromSyntaxError(e,t){if("lineNumber"in e&&"columnNumber"in e){return{line:e.lineNumber,column:e.columnNumber}}const n=/at position (\d+)/.exec(e.message);if(n){const e=parseInt(n[1],10);const r=t.slice(0,e+1).split("\n");return{line:r.length,column:r[r.length-1].length}}return null}function assertEmptyJsonString(e,t){if(e?.trim()===""){throw new p.EmptyJsonFileError(t)}}},2212:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.EmptyJsonFileError=void 0;class JsonFileError extends Error{cause;code;fileName;isJsonFileError;constructor(e,t,n,r){let s=e;if(r){s+=`\n${t?"├":"└"}─ File: ${r}`}if(t){s+=`\n└─ Cause: ${t.name}: ${t.message}`}super(s);this.name=this.constructor.name;this.cause=t;this.code=n;this.fileName=r;this.isJsonFileError=true}}t["default"]=JsonFileError;class EmptyJsonFileError extends JsonFileError{constructor(e){super(`Cannot parse an empty JSON string`,undefined,"EJSONEMPTY",e)}}t.EmptyJsonFileError=EmptyJsonFileError},3803:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const r=n(7147);t.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},8838:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const n=process.versions.node.split(".");if(n[0]===undefined||n[1]===undefined){throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`)}const r=Number.parseInt(n[0],10);const s=Number.parseInt(n[1],10);const i=10;const o=10;const a=r>i;const u=r===i&&s>=o;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||u},5667:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.scandirSync=t.scandir=void 0;const r=n(4507);const s=n(9560);const i=n(8662);t.Settings=i.default;function scandir(e,t,n){if(typeof t==="function"){r.read(e,getSettings(),t);return}r.read(e,getSettings(t),n)}t.scandir=scandir;function scandirSync(e,t){const n=getSettings(t);return s.read(e,n)}t.scandirSync=scandirSync;function getSettings(e={}){if(e instanceof i.default){return e}return new i.default(e)}},4507:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const r=n(109);const s=n(5288);const i=n(8838);const o=n(6297);const a=n(3847);function read(e,t,n){if(!t.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){readdirWithFileTypes(e,t,n);return}readdir(e,t,n)}t.read=read;function readdirWithFileTypes(e,t,n){t.fs.readdir(e,{withFileTypes:true},((r,i)=>{if(r!==null){callFailureCallback(n,r);return}const o=i.map((n=>({dirent:n,name:n.name,path:a.joinPathSegments(e,n.name,t.pathSegmentSeparator)})));if(!t.followSymbolicLinks){callSuccessCallback(n,o);return}const u=o.map((e=>makeRplTaskEntry(e,t)));s(u,((e,t)=>{if(e!==null){callFailureCallback(n,e);return}callSuccessCallback(n,t)}))}))}t.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(e,t){return n=>{if(!e.dirent.isSymbolicLink()){n(null,e);return}t.fs.stat(e.path,((r,s)=>{if(r!==null){if(t.throwErrorOnBrokenSymbolicLink){n(r);return}n(null,e);return}e.dirent=o.fs.createDirentFromStats(e.name,s);n(null,e)}))}}function readdir(e,t,n){t.fs.readdir(e,((i,u)=>{if(i!==null){callFailureCallback(n,i);return}const c=u.map((n=>{const s=a.joinPathSegments(e,n,t.pathSegmentSeparator);return e=>{r.stat(s,t.fsStatSettings,((r,i)=>{if(r!==null){e(r);return}const a={name:n,path:s,dirent:o.fs.createDirentFromStats(n,i)};if(t.stats){a.stats=i}e(null,a)}))}}));s(c,((e,t)=>{if(e!==null){callFailureCallback(n,e);return}callSuccessCallback(n,t)}))}))}t.readdir=readdir;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},3847:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=void 0;function joinPathSegments(e,t,n){if(e.endsWith(n)){return e+t}return e+n+t}t.joinPathSegments=joinPathSegments},9560:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const r=n(109);const s=n(8838);const i=n(6297);const o=n(3847);function read(e,t){if(!t.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(e,t)}return readdir(e,t)}t.read=read;function readdirWithFileTypes(e,t){const n=t.fs.readdirSync(e,{withFileTypes:true});return n.map((n=>{const r={dirent:n,name:n.name,path:o.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(r.dirent.isSymbolicLink()&&t.followSymbolicLinks){try{const e=t.fs.statSync(r.path);r.dirent=i.fs.createDirentFromStats(r.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink){throw e}}}return r}))}t.readdirWithFileTypes=readdirWithFileTypes;function readdir(e,t){const n=t.fs.readdirSync(e);return n.map((n=>{const s=o.joinPathSegments(e,n,t.pathSegmentSeparator);const a=r.statSync(s,t.fsStatSettings);const u={name:n,path:s,dirent:i.fs.createDirentFromStats(n,a)};if(t.stats){u.stats=a}return u}))}t.readdir=readdir},8662:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(1017);const s=n(109);const i=n(3803);class Settings{constructor(e={}){this._options=e;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=i.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new s.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},883:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},6297:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fs=void 0;const r=n(883);t.fs=r},2987:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const r=n(7147);t.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},109:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.statSync=t.stat=t.Settings=void 0;const r=n(4147);const s=n(4527);const i=n(2410);t.Settings=i.default;function stat(e,t,n){if(typeof t==="function"){r.read(e,getSettings(),t);return}r.read(e,getSettings(t),n)}t.stat=stat;function statSync(e,t){const n=getSettings(t);return s.read(e,n)}t.statSync=statSync;function getSettings(e={}){if(e instanceof i.default){return e}return new i.default(e)}},4147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t,n){t.fs.lstat(e,((r,s)=>{if(r!==null){callFailureCallback(n,r);return}if(!s.isSymbolicLink()||!t.followSymbolicLink){callSuccessCallback(n,s);return}t.fs.stat(e,((e,r)=>{if(e!==null){if(t.throwErrorOnBrokenSymbolicLink){callFailureCallback(n,e);return}callSuccessCallback(n,s);return}if(t.markSymbolicLink){r.isSymbolicLink=()=>true}callSuccessCallback(n,r)}))}))}t.read=read;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},4527:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t){const n=t.fs.lstatSync(e);if(!n.isSymbolicLink()||!t.followSymbolicLink){return n}try{const n=t.fs.statSync(e);if(t.markSymbolicLink){n.isSymbolicLink=()=>true}return n}catch(e){if(!t.throwErrorOnBrokenSymbolicLink){return n}throw e}}t.read=read},2410:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(2987);class Settings{constructor(e={}){this._options=e;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=r.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},6026:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.walkStream=t.walkSync=t.walk=void 0;const r=n(7523);const s=n(6737);const i=n(3068);const o=n(141);t.Settings=o.default;function walk(e,t,n){if(typeof t==="function"){new r.default(e,getSettings()).read(t);return}new r.default(e,getSettings(t)).read(n)}t.walk=walk;function walkSync(e,t){const n=getSettings(t);const r=new i.default(e,n);return r.read()}t.walkSync=walkSync;function walkStream(e,t){const n=getSettings(t);const r=new s.default(e,n);return r.read()}t.walkStream=walkStream;function getSettings(e={}){if(e instanceof o.default){return e}return new o.default(e)}},7523:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(5732);class AsyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new r.default(this._root,this._settings);this._storage=[]}read(e){this._reader.onError((t=>{callFailureCallback(e,t)}));this._reader.onEntry((e=>{this._storage.push(e)}));this._reader.onEnd((()=>{callSuccessCallback(e,this._storage)}));this._reader.read()}}t["default"]=AsyncProvider;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},6737:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(2781);const s=n(5732);class StreamProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new s.default(this._root,this._settings);this._stream=new r.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((e=>{this._stream.emit("error",e)}));this._reader.onEntry((e=>{this._stream.push(e)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}t["default"]=StreamProvider},3068:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(3595);class SyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}}t["default"]=SyncProvider},5732:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(2361);const s=n(5667);const i=n(7340);const o=n(7988);const a=n(8311);class AsyncReader extends a.default{constructor(e,t){super(e,t);this._settings=t;this._scandir=s.scandir;this._emitter=new r.EventEmitter;this._queue=i(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=()=>{if(!this._isFatalError){this._emitter.emit("end")}}}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)}));return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const n={directory:e,base:t};this._queue.push(n,(e=>{if(e!==null){this._handleError(e)}}))}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,((n,r)=>{if(n!==null){t(n,undefined);return}for(const t of r){this._handleEntry(t,e.base)}t(null,undefined)}))}_handleError(e){if(this._isDestroyed||!o.isFatalError(this._settings,e)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",e)}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError){return}const n=e.path;if(t!==undefined){e.path=o.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,e)){this._emitEntry(e)}if(e.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(n,t===undefined?undefined:e.path)}}_emitEntry(e){this._emitter.emit("entry",e)}}t["default"]=AsyncReader},7988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function isFatalError(e,t){if(e.errorFilter===null){return true}return!e.errorFilter(t)}t.isFatalError=isFatalError;function isAppliedFilter(e,t){return e===null||e(t)}t.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(e,t){return e.split(/[/\\]/).join(t)}t.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(e,t,n){if(e===""){return t}if(e.endsWith(n)){return e+t}return e+n+t}t.joinPathSegments=joinPathSegments},8311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(7988);class Reader{constructor(e,t){this._root=e;this._settings=t;this._root=r.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}t["default"]=Reader},3595:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(5667);const s=n(7988);const i=n(8311);class SyncReader extends i.default{constructor(){super(...arguments);this._scandir=r.scandirSync;this._storage=[];this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values()){this._handleDirectory(e.directory,e.base)}}_handleDirectory(e,t){try{const n=this._scandir(e,this._settings.fsScandirSettings);for(const e of n){this._handleEntry(e,t)}}catch(e){this._handleError(e)}}_handleError(e){if(!s.isFatalError(this._settings,e)){return}throw e}_handleEntry(e,t){const n=e.path;if(t!==undefined){e.path=s.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(s.isAppliedFilter(this._settings.entryFilter,e)){this._pushToStorage(e)}if(e.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(n,t===undefined?undefined:e.path)}}_pushToStorage(e){this._storage.push(e)}}t["default"]=SyncReader},141:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(1017);const s=n(5667);class Settings{constructor(e={}){this._options=e;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY);this.deepFilter=this._getValue(this._options.deepFilter,null);this.entryFilter=this._getValue(this._options.entryFilter,null);this.errorFilter=this._getValue(this._options.errorFilter,null);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep);this.fsScandirSettings=new s.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},9417:e=>{e.exports=balanced;function balanced(e,t,n){if(e instanceof RegExp)e=maybeMatch(e,n);if(t instanceof RegExp)t=maybeMatch(t,n);var r=range(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function maybeMatch(e,t){var n=t.match(e);return n?n[0]:null}balanced.range=range;function range(e,t,n){var r,s,i,o,a;var u=n.indexOf(e);var c=n.indexOf(t,u+1);var l=u;if(u>=0&&c>0){if(e===t){return[u,c]}r=[];i=n.length;while(l>=0&&!a){if(l==u){r.push(l);u=n.indexOf(e,l+1)}else if(r.length==1){a=[r.pop(),c]}else{s=r.pop();if(s<i){i=s;o=c}c=n.indexOf(t,l+1)}l=u<c&&u>=0?u:c}if(r.length){a=[i,o]}}return a}},3717:(e,t,n)=>{var r=n(9417);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var i="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var a="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(i).split("\\}").join(o).split("\\,").join(a).split("\\.").join(u)}function unescapeBraces(e){return e.split(s).join("\\").split(i).join("{").split(o).join("}").split(a).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var n=r("{","}",e);if(!n)return e.split(",");var s=n.pre;var i=n.body;var o=n.post;var a=s.split(",");a[a.length-1]+="{"+i+"}";var u=parseCommaParts(o);if(o.length){a[a.length-1]+=u.shift();a.push.apply(a,u)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[];var s=r("{","}",e);if(!s)return[e];var i=s.pre;var a=s.post.length?expand(s.post,false):[""];if(/\$$/.test(s.pre)){for(var u=0;u<a.length;u++){var c=i+"{"+s.body+"}"+a[u];n.push(c)}}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var h=l||f;var p=s.body.indexOf(",")>=0;if(!h&&!p){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+o+s.post;return expand(e)}return[e]}var d;if(h){d=s.body.split(/\.\./)}else{d=parseCommaParts(s.body);if(d.length===1){d=expand(d[0],false).map(embrace);if(d.length===1){return a.map((function(e){return s.pre+d[0]+e}))}}}var g;if(h){var y=numeric(d[0]);var b=numeric(d[1]);var v=Math.max(d[0].length,d[1].length);var w=d.length==3?Math.abs(numeric(d[2])):1;var S=lte;var A=b<y;if(A){w*=-1;S=gte}var E=d.some(isPadded);g=[];for(var D=y;S(D,b);D+=w){var C;if(f){C=String.fromCharCode(D);if(C==="\\")C=""}else{C=String(D);if(E){var _=v-C.length;if(_>0){var k=new Array(_+1).join("0");if(D<0)C="-"+k+C.slice(1);else C=k+C}}}g.push(C)}}else{g=[];for(var F=0;F<d.length;F++){g.push.apply(g,expand(d[F],false))}}for(var F=0;F<g.length;F++){for(var u=0;u<a.length;u++){var c=i+g[F]+a[u];if(!t||h||c)n.push(c)}}}return n}},610:(e,t,n)=>{const r=n(8750);const s=n(9434);const i=n(5873);const o=n(6477);const braces=(e,t={})=>{let n=[];if(Array.isArray(e)){for(let r of e){let e=braces.create(r,t);if(Array.isArray(e)){n.push(...e)}else{n.push(e)}}}else{n=[].concat(braces.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){n=[...new Set(n)]}return n};braces.parse=(e,t={})=>o(e,t);braces.stringify=(e,t={})=>{if(typeof e==="string"){return r(braces.parse(e,t),t)}return r(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return s(e,t)};braces.expand=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}let n=i(e,t);if(t.noempty===true){n=n.filter(Boolean)}if(t.nodupes===true){n=[...new Set(n)]}return n};braces.create=(e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?braces.compile(e,t):braces.expand(e,t)};e.exports=braces},9434:(e,t,n)=>{const r=n(6330);const s=n(5207);const compile=(e,t={})=>{let walk=(e,n={})=>{let i=s.isInvalidBrace(n);let o=e.invalid===true&&t.escapeInvalid===true;let a=i===true||o===true;let u=t.escapeInvalid===true?"\\":"";let c="";if(e.isOpen===true){return u+e.value}if(e.isClose===true){return u+e.value}if(e.type==="open"){return a?u+e.value:"("}if(e.type==="close"){return a?u+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":a?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){let n=s.reduce(e.nodes);let i=r(...n,{...t,wrap:false,toRegex:true});if(i.length!==0){return n.length>1&&i.length>1?`(${i})`:i}}if(e.nodes){for(let t of e.nodes){c+=walk(t,e)}}return c};return walk(e)};e.exports=compile},8774:e=>{e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5873:(e,t,n)=>{const r=n(6330);const s=n(8750);const i=n(5207);const append=(e="",t="",n=false)=>{let r=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return n?i.flatten(t).map((e=>`{${e}}`)):t}for(let s of e){if(Array.isArray(s)){for(let e of s){r.push(append(e,t,n))}}else{for(let e of t){if(n===true&&typeof e==="string")e=`{${e}}`;r.push(Array.isArray(e)?append(s,e,n):s+e)}}}return i.flatten(r)};const expand=(e,t={})=>{let n=t.rangeLimit===void 0?1e3:t.rangeLimit;let walk=(e,o={})=>{e.queue=[];let a=o;let u=o.queue;while(a.type!=="brace"&&a.type!=="root"&&a.parent){a=a.parent;u=a.queue}if(e.invalid||e.dollar){u.push(append(u.pop(),s(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){u.push(append(u.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){let o=i.reduce(e.nodes);if(i.exceedsLimit(...o,t.step,n)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let a=r(...o,t);if(a.length===0){a=s(e,t)}u.push(append(u.pop(),a));e.nodes=[];return}let c=i.encloseBrace(e);let l=e.queue;let f=e;while(f.type!=="brace"&&f.type!=="root"&&f.parent){f=f.parent;l=f.queue}for(let t=0;t<e.nodes.length;t++){let n=e.nodes[t];if(n.type==="comma"&&e.type==="brace"){if(t===1)l.push("");l.push("");continue}if(n.type==="close"){u.push(append(u.pop(),l,c));continue}if(n.value&&n.type!=="open"){l.push(append(l.pop(),n.value));continue}if(n.nodes){walk(n,e)}}return l};return i.flatten(walk(e))};e.exports=expand},6477:(e,t,n)=>{const r=n(8750);const{MAX_LENGTH:s,CHAR_BACKSLASH:i,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=n(8774);const parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}let n=t||{};let w=typeof n.maxLength==="number"?Math.min(s,n.maxLength):s;if(e.length>w){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${w})`)}let S={type:"root",input:e,nodes:[]};let A=[S];let E=S;let D=S;let C=0;let _=e.length;let k=0;let F=0;let x;let O={};const advance=()=>e[k++];const push=e=>{if(e.type==="text"&&D.type==="dot"){D.type="text"}if(D&&D.type==="text"&&e.type==="text"){D.value+=e.value;return}E.nodes.push(e);e.parent=E;e.prev=D;D=e;return e};push({type:"bos"});while(k<_){E=A[A.length-1];x=advance();if(x===v||x===b){continue}if(x===i){push({type:"text",value:(t.keepEscaping?x:"")+advance()});continue}if(x===d){push({type:"text",value:"\\"+x});continue}if(x===p){C++;let e=true;let t;while(k<_&&(t=advance())){x+=t;if(t===p){C++;continue}if(t===i){x+=advance();continue}if(t===d){C--;if(C===0){break}}}push({type:"text",value:x});continue}if(x===c){E=push({type:"paren",nodes:[]});A.push(E);push({type:"text",value:x});continue}if(x===l){if(E.type!=="paren"){push({type:"text",value:x});continue}E=A.pop();push({type:"text",value:x});E=A[A.length-1];continue}if(x===g||x===y||x===o){let e=x;let n;if(t.keepQuotes!==true){x=""}while(k<_&&(n=advance())){if(n===i){x+=n+advance();continue}if(n===e){if(t.keepQuotes===true)x+=n;break}x+=n}push({type:"text",value:x});continue}if(x===f){F++;let e=D.value&&D.value.slice(-1)==="$"||E.dollar===true;let t={type:"brace",open:true,close:false,dollar:e,depth:F,commas:0,ranges:0,nodes:[]};E=push(t);A.push(E);push({type:"open",value:x});continue}if(x===h){if(E.type!=="brace"){push({type:"text",value:x});continue}let e="close";E=A.pop();E.close=true;push({type:e,value:x});F--;E=A[A.length-1];continue}if(x===a&&F>0){if(E.ranges>0){E.ranges=0;let e=E.nodes.shift();E.nodes=[e,{type:"text",value:r(E)}]}push({type:"comma",value:x});E.commas++;continue}if(x===u&&F>0&&E.commas===0){let e=E.nodes;if(F===0||e.length===0){push({type:"text",value:x});continue}if(D.type==="dot"){E.range=[];D.value+=x;D.type="range";if(E.nodes.length!==3&&E.nodes.length!==5){E.invalid=true;E.ranges=0;D.type="text";continue}E.ranges++;E.args=[];continue}if(D.type==="range"){e.pop();let t=e[e.length-1];t.value+=D.value+x;D=t;E.ranges--;continue}push({type:"dot",value:x});continue}push({type:"text",value:x})}do{E=A.pop();if(E.type!=="root"){E.nodes.forEach((e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}}));let e=A[A.length-1];let t=e.nodes.indexOf(E);e.nodes.splice(t,1,...E.nodes)}}while(A.length>0);push({type:"eos"});return S};e.exports=parse},8750:(e,t,n)=>{const r=n(5207);e.exports=(e,t={})=>{let stringify=(e,n={})=>{let s=t.escapeInvalid&&r.isInvalidBrace(n);let i=e.invalid===true&&t.escapeInvalid===true;let o="";if(e.value){if((s||i)&&r.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(let t of e.nodes){o+=stringify(t)}}return o};return stringify(e)}},5207:(e,t)=>{t.isInteger=e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false};t.find=(e,t)=>e.nodes.find((e=>e.type===t));t.exceedsLimit=(e,n,r=1,s)=>{if(s===false)return false;if(!t.isInteger(e)||!t.isInteger(n))return false;return(Number(n)-Number(e))/Number(r)>=s};t.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];if(!r)return;if(n&&r.type===n||r.type==="open"||r.type==="close"){if(r.escaped!==true){r.value="\\"+r.value;r.escaped=true}}};t.encloseBrace=e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false};t.isInvalidBrace=e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false};t.isOpenOrClose=e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true};t.reduce=e=>e.reduce(((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e}),[]);t.flatten=(...e)=>{const t=[];const flat=e=>{for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?flat(r,t):r!==void 0&&t.push(r)}return t};flat(e);return t}},4780:(e,t,n)=>{const r=n(1017);const s=n(3433);const getExtensions=e=>e.length>1?`{${e.join(",")}}`:e[0];const getPath=(e,t)=>{const n=e[0]==="!"?e.slice(1):e;return r.isAbsolute(n)?n:r.join(t,n)};const addExtensions=(e,t)=>{if(r.extname(e)){return`**/${e}`}return`**/${e}.${getExtensions(t)}`};const getGlob=(e,t)=>{if(t.files&&!Array.isArray(t.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``)}if(t.extensions&&!Array.isArray(t.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``)}if(t.files&&t.extensions){return t.files.map((n=>r.posix.join(e,addExtensions(n,t.extensions))))}if(t.files){return t.files.map((t=>r.posix.join(e,`**/${t}`)))}if(t.extensions){return[r.posix.join(e,`**/*.${getExtensions(t.extensions)}`)]}return[r.posix.join(e,"**")]};e.exports=async(e,t)=>{t={cwd:process.cwd(),...t};if(typeof t.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``)}const n=await Promise.all([].concat(e).map((async e=>{const n=await s.isDirectory(getPath(e,t.cwd));return n?getGlob(e,t):e})));return[].concat.apply([],n)};e.exports.sync=(e,t)=>{t={cwd:process.cwd(),...t};if(typeof t.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``)}const n=[].concat(e).map((e=>s.isDirectorySync(getPath(e,t.cwd))?getGlob(e,t):e));return[].concat.apply([],n)}},8698:(e,t,n)=>{var r=n(2781);var s=["write","end","destroy"];var i=["resume","pause"];var o=["data","close"];var a=Array.prototype.slice;e.exports=duplex;function forEach(e,t){if(e.forEach){return e.forEach(t)}for(var n=0;n<e.length;n++){t(e[n],n)}}function duplex(e,t){var n=new r;var u=false;forEach(s,proxyWriter);forEach(i,proxyReader);forEach(o,proxyStream);t.on("end",handleEnd);e.on("drain",(function(){n.emit("drain")}));e.on("error",reemit);t.on("error",reemit);n.writable=e.writable;n.readable=t.readable;return n;function proxyWriter(t){n[t]=method;function method(){return e[t].apply(e,arguments)}}function proxyReader(e){n[e]=method;function method(){n.emit(e);var r=t[e];if(r){return r.apply(t,arguments)}t.emit(e)}}function proxyStream(e){t.on(e,reemit);function reemit(){var t=a.call(arguments);t.unshift(e);n.emit.apply(n,t)}}function handleEnd(){if(u){return}u=true;var e=a.call(arguments);e.unshift("end");n.emit.apply(n,e)}function reemit(e){n.emit("error",e)}}},4032:(e,t,n)=>{var r=n(2781).Stream,s=t,i=n(421),o=n(8107),a=n(8698),u=n(7078),c=n(1473),l=n(6354),f=n(5121),h=global.setImmediate||process.nextTick;s.Stream=r;s.through=i;s.from=o;s.duplex=a;s.map=u;s.pause=c;s.split=l;s.pipeline=s.connect=s.pipe=f;s.concat=s.merge=function(){var e=[].slice.call(arguments);if(e.length===1&&e[0]instanceof Array){e=e[0]}var t=new r;t.setMaxListeners(0);var n=0;t.writable=t.readable=true;if(e.length){e.forEach((function(r){r.pipe(t,{end:false});var s=false;r.on("end",(function(){if(s)return;s=true;n++;if(n==e.length)t.emit("end")}))}))}else{process.nextTick((function(){t.emit("end")}))}t.write=function(e){this.emit("data",e)};t.destroy=function(){e.forEach((function(e){if(e.destroy)e.destroy()}))};return t};s.writeArray=function(e){if("function"!==typeof e)throw new Error("function writeArray (done): done must be function");var t=new r,n=[],s=false;t.write=function(e){n.push(e)};t.end=function(){s=true;e(null,n)};t.writable=true;t.readable=false;t.destroy=function(){t.writable=t.readable=false;if(s)return;e(new Error("destroyed before end"),n)};return t};s.readArray=function(e){var t=new r,n=0,s=false,i=false;t.readable=true;t.writable=false;if(!Array.isArray(e))throw new Error("event-stream.read expects an array");t.resume=function(){if(i)return;s=false;var r=e.length;while(n<r&&!s&&!i){t.emit("data",e[n++])}if(n==r&&!i)i=true,t.readable=false,t.emit("end")};process.nextTick(t.resume);t.pause=function(){s=true};t.destroy=function(){i=true;t.emit("close")};return t};s.readable=function(e,t){var n=new r,s=0,i=false,o=false,a=false;n.readable=true;n.writable=false;if("function"!==typeof e)throw new Error("event-stream.readable expects async function");n.on("end",(function(){o=true}));function get(r,u){if(r){n.emit("error",r);if(!t)n.emit("end")}else if(arguments.length>1)n.emit("data",u);h((function(){if(o||i||a)return;try{a=true;e.call(n,s++,(function(){a=false;get.apply(null,arguments)}))}catch(e){n.emit("error",e)}}))}n.resume=function(){i=false;get()};process.nextTick(get);n.pause=function(){i=true};n.destroy=function(){n.emit("end");n.emit("close");o=true};return n};s.mapSync=function(e){return s.through((function write(t){var n;try{n=e(t)}catch(e){return this.emit("error",e)}if(n!==undefined)this.emit("data",n)}))};s.log=function(e){return s.through((function(t){var n=[].slice.call(arguments);if(e)console.error(e,t);else console.error(t);this.emit("data",t)}))};s.child=function(e){return s.duplex(e.stdin,e.stdout)};s.parse=function(e){var t=!!(e?e.error:false);return s.through((function(e){var n;try{if(e)n=JSON.parse(e.toString())}catch(n){if(t)return this.emit("error",n);return console.error(n,"attempting to parse:",e)}if(n!==undefined)this.emit("data",n)}))};s.stringify=function(){var e=n(4300).Buffer;return s.mapSync((function(t){return JSON.stringify(e.isBuffer(t)?t.toString():t)+"\n"}))};s.replace=function(e,t){return s.pipeline(s.split(e),s.join(t))};s.join=function(e){if("function"===typeof e)return s.wait(e);var t=true;return s.through((function(n){if(!t)this.emit("data",e);t=false;this.emit("data",n);return true}))};s.wait=function(e){var t=[];return s.through((function(e){t.push(e)}),(function(){var n=Buffer.isBuffer(t[0])?Buffer.concat(t):t.join("");this.emit("data",n);this.emit("end");if(e)e(null,n)}))};s.pipeable=function(){throw new Error("[EVENT-STREAM] es.pipeable is deprecated")}},3664:(e,t,n)=>{const r=n(2708);const s=n(5679);const i=n(4630);const o=n(2405);const a=n(952);const u=n(5444);async function FastGlob(e,t){assertPatternsInput(e);const n=getWorks(e,s.default,t);const r=await Promise.all(n);return u.array.flatten(r)}(function(e){e.glob=e;e.globSync=sync;e.globStream=stream;e.async=e;function sync(e,t){assertPatternsInput(e);const n=getWorks(e,o.default,t);return u.array.flatten(n)}e.sync=sync;function stream(e,t){assertPatternsInput(e);const n=getWorks(e,i.default,t);return u.stream.merge(n)}e.stream=stream;function generateTasks(e,t){assertPatternsInput(e);const n=[].concat(e);const s=new a.default(t);return r.generate(n,s)}e.generateTasks=generateTasks;function isDynamicPattern(e,t){assertPatternsInput(e);const n=new a.default(t);return u.pattern.isDynamicPattern(e,n)}e.isDynamicPattern=isDynamicPattern;function escapePath(e){assertPatternsInput(e);return u.path.escape(e)}e.escapePath=escapePath;function convertPathToPattern(e){assertPatternsInput(e);return u.path.convertPathToPattern(e)}e.convertPathToPattern=convertPathToPattern;let t;(function(e){function escapePath(e){assertPatternsInput(e);return u.path.escapePosixPath(e)}e.escapePath=escapePath;function convertPathToPattern(e){assertPatternsInput(e);return u.path.convertPosixPathToPattern(e)}e.convertPathToPattern=convertPathToPattern})(t=e.posix||(e.posix={}));let n;(function(e){function escapePath(e){assertPatternsInput(e);return u.path.escapeWindowsPath(e)}e.escapePath=escapePath;function convertPathToPattern(e){assertPatternsInput(e);return u.path.convertWindowsPathToPattern(e)}e.convertPathToPattern=convertPathToPattern})(n=e.win32||(e.win32={}))})(FastGlob||(FastGlob={}));function getWorks(e,t,n){const s=[].concat(e);const i=new a.default(n);const o=r.generate(s,i);const u=new t(i);return o.map(u.read,u)}function assertPatternsInput(e){const t=[].concat(e);const n=t.every((e=>u.string.isString(e)&&!u.string.isEmpty(e)));if(!n){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}e.exports=FastGlob},2708:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;const r=n(5444);function generate(e,t){const n=processPatterns(e,t);const s=processPatterns(t.ignore,t);const i=getPositivePatterns(n);const o=getNegativePatternsAsPositive(n,s);const a=i.filter((e=>r.pattern.isStaticPattern(e,t)));const u=i.filter((e=>r.pattern.isDynamicPattern(e,t)));const c=convertPatternsToTasks(a,o,false);const l=convertPatternsToTasks(u,o,true);return c.concat(l)}t.generate=generate;function processPatterns(e,t){let n=e;if(t.braceExpansion){n=r.pattern.expandPatternsWithBraceExpansion(n)}if(t.baseNameMatch){n=n.map((e=>e.includes("/")?e:`**/${e}`))}return n.map((e=>r.pattern.removeDuplicateSlashes(e)))}function convertPatternsToTasks(e,t,n){const s=[];const i=r.pattern.getPatternsOutsideCurrentDirectory(e);const o=r.pattern.getPatternsInsideCurrentDirectory(e);const a=groupPatternsByBaseDirectory(i);const u=groupPatternsByBaseDirectory(o);s.push(...convertPatternGroupsToTasks(a,t,n));if("."in u){s.push(convertPatternGroupToTask(".",o,t,n))}else{s.push(...convertPatternGroupsToTasks(u,t,n))}return s}t.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(e){return r.pattern.getPositivePatterns(e)}t.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(e,t){const n=r.pattern.getNegativePatterns(e).concat(t);const s=n.map(r.pattern.convertToPositivePattern);return s}t.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(e){const t={};return e.reduce(((e,t)=>{const n=r.pattern.getBaseDirectory(t);if(n in e){e[n].push(t)}else{e[n]=[t]}return e}),t)}t.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(e,t,n){return Object.keys(e).map((r=>convertPatternGroupToTask(r,e[r],t,n)))}t.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(e,t,n,s){return{dynamic:s,positive:t,negative:n,base:e,patterns:[].concat(t,n.map(r.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=convertPatternGroupToTask},5679:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(7747);const s=n(257);class ProviderAsync extends s.default{constructor(){super(...arguments);this._reader=new r.default(this._settings)}async read(e){const t=this._getRootDirectory(e);const n=this._getReaderOptions(e);const r=await this.api(t,e,n);return r.map((e=>n.transform(e)))}api(e,t,n){if(t.dynamic){return this._reader.dynamic(e,n)}return this._reader.static(t.patterns,n)}}t["default"]=ProviderAsync},6983:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(5444);const s=n(5295);class DeepFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t}getFilter(e,t,n){const r=this._getMatcher(t);const s=this._getNegativePatternsRe(n);return t=>this._filter(e,t,r,s)}_getMatcher(e){return new s.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){const t=e.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,n,s){if(this._isSkippedByDeep(e,t.path)){return false}if(this._isSkippedSymbolicLink(t)){return false}const i=r.path.removeLeadingDotSegment(t.path);if(this._isSkippedByPositivePatterns(i,n)){return false}return this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,t){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const n=t.split("/").length;if(e===""){return n}const r=e.split("/").length;return n-r}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!r.pattern.matchAny(e,t)}}t["default"]=DeepFilter},1343:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(5444);class EntryFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t;this.index=new Map}getFilter(e,t){const n=r.pattern.convertPatternsToRe(e,this._micromatchOptions);const s=r.pattern.convertPatternsToRe(t,Object.assign(Object.assign({},this._micromatchOptions),{dot:true}));return e=>this._filter(e,n,s)}_filter(e,t,n){const s=r.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(s)){return false}if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)){return false}if(this._isSkippedByAbsoluteNegativePatterns(s,n)){return false}const i=e.dirent.isDirectory();const o=this._isMatchToPatterns(s,t,i)&&!this._isMatchToPatterns(s,n,i);if(this._settings.unique&&o){this._createIndexRecord(s)}return o}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,undefined)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute){return false}const n=r.path.makeAbsolute(this._settings.cwd,e);return r.pattern.matchAny(n,t)}_isMatchToPatterns(e,t,n){const s=r.pattern.matchAny(e,t);if(!s&&n){return r.pattern.matchAny(e+"/",t)}return s}}t["default"]=EntryFilter},6654:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(5444);class ErrorFilter{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return r.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}t["default"]=ErrorFilter},2576:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(5444);class Matcher{constructor(e,t,n){this._patterns=e;this._settings=t;this._micromatchOptions=n;this._storage=[];this._fillStorage()}_fillStorage(){for(const e of this._patterns){const t=this._getPatternSegments(e);const n=this._splitSegmentsIntoSections(t);this._storage.push({complete:n.length<=1,pattern:e,segments:t,sections:n})}}_getPatternSegments(e){const t=r.pattern.getPatternParts(e,this._micromatchOptions);return t.map((e=>{const t=r.pattern.isDynamicPattern(e,this._settings);if(!t){return{dynamic:false,pattern:e}}return{dynamic:true,pattern:e,patternRe:r.pattern.makeRe(e,this._micromatchOptions)}}))}_splitSegmentsIntoSections(e){return r.array.splitWhen(e,(e=>e.dynamic&&r.pattern.hasGlobStar(e.pattern)))}}t["default"]=Matcher},5295:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(2576);class PartialMatcher extends r.default{match(e){const t=e.split("/");const n=t.length;const r=this._storage.filter((e=>!e.complete||e.segments.length>n));for(const e of r){const r=e.sections[0];if(!e.complete&&n>r.length){return true}const s=t.every(((t,n)=>{const r=e.segments[n];if(r.dynamic&&r.patternRe.test(t)){return true}if(!r.dynamic&&r.pattern===t){return true}return false}));if(s){return true}}return false}}t["default"]=PartialMatcher},257:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(1017);const s=n(6983);const i=n(1343);const o=n(6654);const a=n(4029);class Provider{constructor(e){this._settings=e;this.errorFilter=new o.default(this._settings);this.entryFilter=new i.default(this._settings,this._getMicromatchOptions());this.deepFilter=new s.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new a.default(this._settings)}_getRootDirectory(e){return r.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){const t=e.base==="."?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}t["default"]=Provider},4630:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(2781);const s=n(2083);const i=n(257);class ProviderStream extends i.default{constructor(){super(...arguments);this._reader=new s.default(this._settings)}read(e){const t=this._getRootDirectory(e);const n=this._getReaderOptions(e);const s=this.api(t,e,n);const i=new r.Readable({objectMode:true,read:()=>{}});s.once("error",(e=>i.emit("error",e))).on("data",(e=>i.emit("data",n.transform(e)))).once("end",(()=>i.emit("end")));i.once("close",(()=>s.destroy()));return i}api(e,t,n){if(t.dynamic){return this._reader.dynamic(e,n)}return this._reader.static(t.patterns,n)}}t["default"]=ProviderStream},2405:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(6234);const s=n(257);class ProviderSync extends s.default{constructor(){super(...arguments);this._reader=new r.default(this._settings)}read(e){const t=this._getRootDirectory(e);const n=this._getReaderOptions(e);const r=this.api(t,e,n);return r.map(n.transform)}api(e,t,n){if(t.dynamic){return this._reader.dynamic(e,n)}return this._reader.static(t.patterns,n)}}t["default"]=ProviderSync},4029:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(5444);class EntryTransformer{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;if(this._settings.absolute){t=r.path.makeAbsolute(this._settings.cwd,t);t=r.path.unixify(t)}if(this._settings.markDirectories&&e.dirent.isDirectory()){t+="/"}if(!this._settings.objectMode){return t}return Object.assign(Object.assign({},e),{path:t})}}t["default"]=EntryTransformer},7747:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(6026);const s=n(5582);const i=n(2083);class ReaderAsync extends s.default{constructor(){super(...arguments);this._walkAsync=r.walk;this._readerStream=new i.default(this._settings)}dynamic(e,t){return new Promise(((n,r)=>{this._walkAsync(e,t,((e,t)=>{if(e===null){n(t)}else{r(e)}}))}))}async static(e,t){const n=[];const r=this._readerStream.static(e,t);return new Promise(((e,t)=>{r.once("error",t);r.on("data",(e=>n.push(e)));r.once("end",(()=>e(n)))}))}}t["default"]=ReaderAsync},5582:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(1017);const s=n(109);const i=n(5444);class Reader{constructor(e){this._settings=e;this._fsStatSettings=new s.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return r.resolve(this._settings.cwd,e)}_makeEntry(e,t){const n={name:t,path:t,dirent:i.fs.createDirentFromStats(t,e)};if(this._settings.stats){n.stats=e}return n}_isFatalError(e){return!i.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}t["default"]=Reader},2083:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(2781);const s=n(109);const i=n(6026);const o=n(5582);class ReaderStream extends o.default{constructor(){super(...arguments);this._walkStream=i.walkStream;this._stat=s.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){const n=e.map(this._getFullEntryPath,this);const s=new r.PassThrough({objectMode:true});s._write=(r,i,o)=>this._getEntry(n[r],e[r],t).then((e=>{if(e!==null&&t.entryFilter(e)){s.push(e)}if(r===n.length-1){s.end()}o()})).catch(o);for(let e=0;e<n.length;e++){s.write(e)}return s}_getEntry(e,t,n){return this._getStat(e).then((e=>this._makeEntry(e,t))).catch((e=>{if(n.errorFilter(e)){return null}throw e}))}_getStat(e){return new Promise(((t,n)=>{this._stat(e,this._fsStatSettings,((e,r)=>e===null?t(r):n(e)))}))}}t["default"]=ReaderStream},6234:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});const r=n(109);const s=n(6026);const i=n(5582);class ReaderSync extends i.default{constructor(){super(...arguments);this._walkSync=s.walkSync;this._statSync=r.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){const n=[];for(const r of e){const e=this._getFullEntryPath(r);const s=this._getEntry(e,r,t);if(s===null||!t.entryFilter(s)){continue}n.push(s)}return n}_getEntry(e,t,n){try{const n=this._getStat(e);return this._makeEntry(n,t)}catch(e){if(n.errorFilter(e)){return null}throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}t["default"]=ReaderSync},952:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const r=n(7147);const s=n(2037);const i=Math.max(s.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};class Settings{constructor(e={}){this._options=e;this.absolute=this._getValue(this._options.absolute,false);this.baseNameMatch=this._getValue(this._options.baseNameMatch,false);this.braceExpansion=this._getValue(this._options.braceExpansion,true);this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,true);this.concurrency=this._getValue(this._options.concurrency,i);this.cwd=this._getValue(this._options.cwd,process.cwd());this.deep=this._getValue(this._options.deep,Infinity);this.dot=this._getValue(this._options.dot,false);this.extglob=this._getValue(this._options.extglob,true);this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,true);this.fs=this._getFileSystemMethods(this._options.fs);this.globstar=this._getValue(this._options.globstar,true);this.ignore=this._getValue(this._options.ignore,[]);this.markDirectories=this._getValue(this._options.markDirectories,false);this.objectMode=this._getValue(this._options.objectMode,false);this.onlyDirectories=this._getValue(this._options.onlyDirectories,false);this.onlyFiles=this._getValue(this._options.onlyFiles,true);this.stats=this._getValue(this._options.stats,false);this.suppressErrors=this._getValue(this._options.suppressErrors,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,false);this.unique=this._getValue(this._options.unique,true);if(this.onlyDirectories){this.onlyFiles=false}if(this.stats){this.objectMode=true}this.ignore=[].concat(this.ignore)}_getValue(e,t){return e===undefined?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}t["default"]=Settings},5325:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.splitWhen=t.flatten=void 0;function flatten(e){return e.reduce(((e,t)=>[].concat(e,t)),[])}t.flatten=flatten;function splitWhen(e,t){const n=[[]];let r=0;for(const s of e){if(t(s)){r++;n[r]=[]}else{n[r].push(s)}}return n}t.splitWhen=splitWhen},1230:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isEnoentCodeError=void 0;function isEnoentCodeError(e){return e.code==="ENOENT"}t.isEnoentCodeError=isEnoentCodeError},7543:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},5444:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;const r=n(5325);t.array=r;const s=n(1230);t.errno=s;const i=n(7543);t.fs=i;const o=n(3873);t.path=o;const a=n(1221);t.pattern=a;const u=n(8382);t.stream=u;const c=n(2203);t.string=c},3873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.convertPosixPathToPattern=t.convertWindowsPathToPattern=t.convertPathToPattern=t.escapePosixPath=t.escapeWindowsPath=t.escape=t.removeLeadingDotSegment=t.makeAbsolute=t.unixify=void 0;const r=n(2037);const s=n(1017);const i=r.platform()==="win32";const o=2;const a=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;const u=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g;const c=/^\\\\([.?])/;const l=/\\(?![!()+@[\]{}])/g;function unixify(e){return e.replace(/\\/g,"/")}t.unixify=unixify;function makeAbsolute(e,t){return s.resolve(e,t)}t.makeAbsolute=makeAbsolute;function removeLeadingDotSegment(e){if(e.charAt(0)==="."){const t=e.charAt(1);if(t==="/"||t==="\\"){return e.slice(o)}}return e}t.removeLeadingDotSegment=removeLeadingDotSegment;t.escape=i?escapeWindowsPath:escapePosixPath;function escapeWindowsPath(e){return e.replace(u,"\\$2")}t.escapeWindowsPath=escapeWindowsPath;function escapePosixPath(e){return e.replace(a,"\\$2")}t.escapePosixPath=escapePosixPath;t.convertPathToPattern=i?convertWindowsPathToPattern:convertPosixPathToPattern;function convertWindowsPathToPattern(e){return escapeWindowsPath(e).replace(c,"//$1").replace(l,"/")}t.convertWindowsPathToPattern=convertWindowsPathToPattern;function convertPosixPathToPattern(e){return escapePosixPath(e)}t.convertPosixPathToPattern=convertPosixPathToPattern},1221:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.removeDuplicateSlashes=t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;const r=n(1017);const s=n(4655);const i=n(6228);const o="**";const a="\\";const u=/[*?]|^!/;const c=/\[[^[]*]/;const l=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;const f=/[!*+?@]\([^(]*\)/;const h=/,|\.\./;const p=/(?!^)\/{2,}/g;function isStaticPattern(e,t={}){return!isDynamicPattern(e,t)}t.isStaticPattern=isStaticPattern;function isDynamicPattern(e,t={}){if(e===""){return false}if(t.caseSensitiveMatch===false||e.includes(a)){return true}if(u.test(e)||c.test(e)||l.test(e)){return true}if(t.extglob!==false&&f.test(e)){return true}if(t.braceExpansion!==false&&hasBraceExpansion(e)){return true}return false}t.isDynamicPattern=isDynamicPattern;function hasBraceExpansion(e){const t=e.indexOf("{");if(t===-1){return false}const n=e.indexOf("}",t+1);if(n===-1){return false}const r=e.slice(t,n);return h.test(r)}function convertToPositivePattern(e){return isNegativePattern(e)?e.slice(1):e}t.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(e){return"!"+e}t.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(e){return e.startsWith("!")&&e[1]!=="("}t.isNegativePattern=isNegativePattern;function isPositivePattern(e){return!isNegativePattern(e)}t.isPositivePattern=isPositivePattern;function getNegativePatterns(e){return e.filter(isNegativePattern)}t.getNegativePatterns=getNegativePatterns;function getPositivePatterns(e){return e.filter(isPositivePattern)}t.getPositivePatterns=getPositivePatterns;function getPatternsInsideCurrentDirectory(e){return e.filter((e=>!isPatternRelatedToParentDirectory(e)))}t.getPatternsInsideCurrentDirectory=getPatternsInsideCurrentDirectory;function getPatternsOutsideCurrentDirectory(e){return e.filter(isPatternRelatedToParentDirectory)}t.getPatternsOutsideCurrentDirectory=getPatternsOutsideCurrentDirectory;function isPatternRelatedToParentDirectory(e){return e.startsWith("..")||e.startsWith("./..")}t.isPatternRelatedToParentDirectory=isPatternRelatedToParentDirectory;function getBaseDirectory(e){return s(e,{flipBackslashes:false})}t.getBaseDirectory=getBaseDirectory;function hasGlobStar(e){return e.includes(o)}t.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(e){return e.endsWith("/"+o)}t.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(e){const t=r.basename(e);return endsWithSlashGlobStar(e)||isStaticPattern(t)}t.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(e){return e.reduce(((e,t)=>e.concat(expandBraceExpansion(t))),[])}t.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(e){const t=i.braces(e,{expand:true,nodupes:true,keepEscaping:true});t.sort(((e,t)=>e.length-t.length));return t.filter((e=>e!==""))}t.expandBraceExpansion=expandBraceExpansion;function getPatternParts(e,t){let{parts:n}=i.scan(e,Object.assign(Object.assign({},t),{parts:true}));if(n.length===0){n=[e]}if(n[0].startsWith("/")){n[0]=n[0].slice(1);n.unshift("")}return n}t.getPatternParts=getPatternParts;function makeRe(e,t){return i.makeRe(e,t)}t.makeRe=makeRe;function convertPatternsToRe(e,t){return e.map((e=>makeRe(e,t)))}t.convertPatternsToRe=convertPatternsToRe;function matchAny(e,t){return t.some((t=>t.test(e)))}t.matchAny=matchAny;function removeDuplicateSlashes(e){return e.replace(p,"/")}t.removeDuplicateSlashes=removeDuplicateSlashes},8382:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.merge=void 0;const r=n(2578);function merge(e){const t=r(e);e.forEach((e=>{e.once("error",(e=>t.emit("error",e)))}));t.once("close",(()=>propagateCloseEventToSources(e)));t.once("end",(()=>propagateCloseEventToSources(e)));return t}t.merge=merge;function propagateCloseEventToSources(e){e.forEach((e=>e.emit("close")))}},2203:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isEmpty=t.isString=void 0;function isString(e){return typeof e==="string"}t.isString=isString;function isEmpty(e){return e===""}t.isEmpty=isEmpty},7340:(e,t,n)=>{var r=n(2113);function fastqueue(e,t,n){if(typeof e==="function"){n=t;t=e;e=null}if(n<1){throw new Error("fastqueue concurrency must be greater than 1")}var s=r(Task);var i=null;var o=null;var a=0;var u=null;var c={push:push,drain:noop,saturated:noop,pause:pause,paused:false,concurrency:n,running:running,resume:resume,idle:idle,length:length,getQueue:getQueue,unshift:unshift,empty:noop,kill:kill,killAndDrain:killAndDrain,error:error};return c;function running(){return a}function pause(){c.paused=true}function length(){var e=i;var t=0;while(e){e=e.next;t++}return t}function getQueue(){var e=i;var t=[];while(e){t.push(e.value);e=e.next}return t}function resume(){if(!c.paused)return;c.paused=false;for(var e=0;e<c.concurrency;e++){a++;release()}}function idle(){return a===0&&c.length()===0}function push(n,r){var l=s.get();l.context=e;l.release=release;l.value=n;l.callback=r||noop;l.errorHandler=u;if(a===c.concurrency||c.paused){if(o){o.next=l;o=l}else{i=l;o=l;c.saturated()}}else{a++;t.call(e,l.value,l.worked)}}function unshift(n,r){var l=s.get();l.context=e;l.release=release;l.value=n;l.callback=r||noop;l.errorHandler=u;if(a===c.concurrency||c.paused){if(i){l.next=i;i=l}else{i=l;o=l;c.saturated()}}else{a++;t.call(e,l.value,l.worked)}}function release(n){if(n){s.release(n)}var r=i;if(r){if(!c.paused){if(o===i){o=null}i=r.next;r.next=null;t.call(e,r.value,r.worked);if(o===null){c.empty()}}else{a--}}else if(--a===0){c.drain()}}function kill(){i=null;o=null;c.drain=noop}function killAndDrain(){i=null;o=null;c.drain();c.drain=noop}function error(e){u=e}}function noop(){}function Task(){this.value=null;this.callback=noop;this.next=null;this.release=noop;this.context=null;this.errorHandler=null;var e=this;this.worked=function worked(t,n){var r=e.callback;var s=e.errorHandler;var i=e.value;e.value=null;e.callback=noop;if(e.errorHandler){s(t,i)}r.call(e.context,t,n);e.release(e)}}function queueAsPromised(e,t,n){if(typeof e==="function"){n=t;t=e;e=null}function asyncWrapper(e,n){t.call(this,e).then((function(e){n(null,e)}),n)}var r=fastqueue(e,asyncWrapper,n);var s=r.push;var i=r.unshift;r.push=push;r.unshift=unshift;r.drained=drained;return r;function push(e){var t=new Promise((function(t,n){s(e,(function(e,r){if(e){n(e);return}t(r)}))}));t.catch(noop);return t}function unshift(e){var t=new Promise((function(t,n){i(e,(function(e,r){if(e){n(e);return}t(r)}))}));t.catch(noop);return t}function drained(){if(r.idle()){return new Promise((function(e){e()}))}var e=r.drain;var t=new Promise((function(t){r.drain=function(){e();t()}}));return t}}e.exports=fastqueue;e.exports.promise=queueAsPromised},6330:(e,t,n)=>{
|
|
3
|
+
/*!
|
|
4
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
const r=n(3837);const s=n(1861);const isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const transform=e=>t=>e===true?Number(t):String(t);const isValidValue=e=>typeof e==="number"||typeof e==="string"&&e!=="";const isNumber=e=>Number.isInteger(+e);const zeros=e=>{let t=`${e}`;let n=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++n]==="0");return n>0};const stringify=(e,t,n)=>{if(typeof e==="string"||typeof t==="string"){return true}return n.stringify===true};const pad=(e,t,n)=>{if(t>0){let n=e[0]==="-"?"-":"";if(n)e=e.slice(1);e=n+e.padStart(n?t-1:t,"0")}if(n===false){return String(e)}return e};const toMaxLen=(e,t)=>{let n=e[0]==="-"?"-":"";if(n){e=e.slice(1);t--}while(e.length<t)e="0"+e;return n?"-"+e:e};const toSequence=(e,t)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0));e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let n=t.capture?"":"?:";let r="";let s="";let i;if(e.positives.length){r=e.positives.join("|")}if(e.negatives.length){s=`-(${n}${e.negatives.join("|")})`}if(r&&s){i=`${r}|${s}`}else{i=r||s}if(t.wrap){return`(${n}${i})`}return i};const toRange=(e,t,n,r)=>{if(n){return s(e,t,{wrap:false,...r})}let i=String.fromCharCode(e);if(e===t)return i;let o=String.fromCharCode(t);return`[${i}-${o}]`};const toRegex=(e,t,n)=>{if(Array.isArray(e)){let t=n.wrap===true;let r=n.capture?"":"?:";return t?`(${r}${e.join("|")})`:e.join("|")}return s(e,t,n)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+r.inspect(...e));const invalidRange=(e,t,n)=>{if(n.strictRanges===true)throw rangeError([e,t]);return[]};const invalidStep=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const fillNumbers=(e,t,n=1,r={})=>{let s=Number(e);let i=Number(t);if(!Number.isInteger(s)||!Number.isInteger(i)){if(r.strictRanges===true)throw rangeError([e,t]);return[]}if(s===0)s=0;if(i===0)i=0;let o=s>i;let a=String(e);let u=String(t);let c=String(n);n=Math.max(Math.abs(n),1);let l=zeros(a)||zeros(u)||zeros(c);let f=l?Math.max(a.length,u.length,c.length):0;let h=l===false&&stringify(e,t,r)===false;let p=r.transform||transform(h);if(r.toRegex&&n===1){return toRange(toMaxLen(e,f),toMaxLen(t,f),true,r)}let d={negatives:[],positives:[]};let push=e=>d[e<0?"negatives":"positives"].push(Math.abs(e));let g=[];let y=0;while(o?s>=i:s<=i){if(r.toRegex===true&&n>1){push(s)}else{g.push(pad(p(s,y),f,h))}s=o?s-n:s+n;y++}if(r.toRegex===true){return n>1?toSequence(d,r):toRegex(g,null,{wrap:false,...r})}return g};const fillLetters=(e,t,n=1,r={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,r)}let s=r.transform||(e=>String.fromCharCode(e));let i=`${e}`.charCodeAt(0);let o=`${t}`.charCodeAt(0);let a=i>o;let u=Math.min(i,o);let c=Math.max(i,o);if(r.toRegex&&n===1){return toRange(u,c,false,r)}let l=[];let f=0;while(a?i>=o:i<=o){l.push(s(i,f));i=a?i-n:i+n;f++}if(r.toRegex===true){return toRegex(l,null,{wrap:false,options:r})}return l};const fill=(e,t,n,r={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,r)}if(typeof n==="function"){return fill(e,t,1,{transform:n})}if(isObject(n)){return fill(e,t,0,n)}let s={...r};if(s.capture===true)s.wrap=true;n=n||s.step||1;if(!isNumber(n)){if(n!=null&&!isObject(n))return invalidStep(n,s);return fill(e,t,1,n)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,n,s)}return fillLetters(e,t,Math.max(Math.abs(n),1),s)};e.exports=fill},8107:(e,t,n)=>{var r=n(2781);e.exports=function from(e){if(Array.isArray(e)){var t=0,n=e.length;return from((function(r){if(t<n)this.emit("data",e[t++]);else this.emit("end");return true}))}var s=new r,i=0;s.ended=false;s.started=false;s.readable=true;s.writable=false;s.paused=false;s.ended=false;s.pause=function(){s.started=true;s.paused=true};function next(){s.started=true;if(s.ended)return;while(!s.ended&&!s.paused&&e.call(s,i++,(function(){if(!s.ended&&!s.paused)process.nextTick(next)})));}s.resume=function(){s.started=true;s.paused=false;next()};s.on("end",(function(){s.ended=true;s.readable=false;process.nextTick(s.destroy)}));s.destroy=function(){s.ended=true;s.emit("close")};process.nextTick((function(){if(!s.started)s.resume()}));return s}},9618:(e,t,n)=>{const r=n(7758);const s=n(1017);const i=n(8605).mkdirsSync;const o=n(2548).utimesMillisSync;const a=n(3901);function copySync(e,t,n){if(typeof n==="function"){n={filter:n}}n=n||{};n.clobber="clobber"in n?!!n.clobber:true;n.overwrite="overwrite"in n?!!n.overwrite:n.clobber;if(n.preserveTimestamps&&process.arch==="ia32"){process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n"+"\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002")}const{srcStat:o,destStat:u}=a.checkPathsSync(e,t,"copy",n);a.checkParentPathsSync(e,o,t,"copy");if(n.filter&&!n.filter(e,t))return;const c=s.dirname(t);if(!r.existsSync(c))i(c);return getStats(u,e,t,n)}function getStats(e,t,n,s){const i=s.dereference?r.statSync:r.lstatSync;const o=i(t);if(o.isDirectory())return onDir(o,e,t,n,s);else if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return onFile(o,e,t,n,s);else if(o.isSymbolicLink())return onLink(e,t,n,s);else if(o.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);else if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function onFile(e,t,n,r,s){if(!t)return copyFile(e,n,r,s);return mayCopyFile(e,n,r,s)}function mayCopyFile(e,t,n,s){if(s.overwrite){r.unlinkSync(n);return copyFile(e,t,n,s)}else if(s.errorOnExist){throw new Error(`'${n}' already exists`)}}function copyFile(e,t,n,s){r.copyFileSync(t,n);if(s.preserveTimestamps)handleTimestamps(e.mode,t,n);return setDestMode(n,e.mode)}function handleTimestamps(e,t,n){if(fileIsNotWritable(e))makeFileWritable(n,e);return setDestTimestamps(t,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return r.chmodSync(e,t)}function setDestTimestamps(e,t){const n=r.statSync(e);return o(t,n.atime,n.mtime)}function onDir(e,t,n,r,s){if(!t)return mkDirAndCopy(e.mode,n,r,s);return copyDir(n,r,s)}function mkDirAndCopy(e,t,n,s){r.mkdirSync(n);copyDir(t,n,s);return setDestMode(n,e)}function copyDir(e,t,n){r.readdirSync(e).forEach((r=>copyDirItem(r,e,t,n)))}function copyDirItem(e,t,n,r){const i=s.join(t,e);const o=s.join(n,e);if(r.filter&&!r.filter(i,o))return;const{destStat:u}=a.checkPathsSync(i,o,"copy",r);return getStats(u,i,o,r)}function onLink(e,t,n,i){let o=r.readlinkSync(t);if(i.dereference){o=s.resolve(process.cwd(),o)}if(!e){return r.symlinkSync(o,n)}else{let e;try{e=r.readlinkSync(n)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return r.symlinkSync(o,n);throw e}if(i.dereference){e=s.resolve(process.cwd(),e)}if(a.isSrcSubdir(o,e)){throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`)}if(a.isSrcSubdir(e,o)){throw new Error(`Cannot overwrite '${e}' with '${o}'.`)}return copyLink(o,n)}}function copyLink(e,t){r.unlinkSync(t);return r.symlinkSync(e,t)}e.exports=copySync},8834:(e,t,n)=>{const r=n(1176);const s=n(1017);const{mkdirs:i}=n(8605);const{pathExists:o}=n(3835);const{utimesMillis:a}=n(2548);const u=n(3901);async function copy(e,t,n={}){if(typeof n==="function"){n={filter:n}}n.clobber="clobber"in n?!!n.clobber:true;n.overwrite="overwrite"in n?!!n.overwrite:n.clobber;if(n.preserveTimestamps&&process.arch==="ia32"){process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n"+"\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001")}const{srcStat:r,destStat:a}=await u.checkPaths(e,t,"copy",n);await u.checkParentPaths(e,r,t,"copy");const c=await runFilter(e,t,n);if(!c)return;const l=s.dirname(t);const f=await o(l);if(!f){await i(l)}await getStatsAndPerformCopy(a,e,t,n)}async function runFilter(e,t,n){if(!n.filter)return true;return n.filter(e,t)}async function getStatsAndPerformCopy(e,t,n,s){const i=s.dereference?r.stat:r.lstat;const o=await i(t);if(o.isDirectory())return onDir(o,e,t,n,s);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return onFile(o,e,t,n,s);if(o.isSymbolicLink())return onLink(e,t,n,s);if(o.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}async function onFile(e,t,n,s,i){if(!t)return copyFile(e,n,s,i);if(i.overwrite){await r.unlink(s);return copyFile(e,n,s,i)}if(i.errorOnExist){throw new Error(`'${s}' already exists`)}}async function copyFile(e,t,n,s){await r.copyFile(t,n);if(s.preserveTimestamps){if(fileIsNotWritable(e.mode)){await makeFileWritable(n,e.mode)}const s=await r.stat(t);await a(n,s.atime,s.mtime)}return r.chmod(n,e.mode)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return r.chmod(e,t|128)}async function onDir(e,t,n,i,o){if(!t){await r.mkdir(i)}const a=await r.readdir(n);await Promise.all(a.map((async e=>{const t=s.join(n,e);const r=s.join(i,e);const a=await runFilter(t,r,o);if(!a)return;const{destStat:c}=await u.checkPaths(t,r,"copy",o);return getStatsAndPerformCopy(c,t,r,o)})));if(!t){await r.chmod(i,e.mode)}}async function onLink(e,t,n,i){let o=await r.readlink(t);if(i.dereference){o=s.resolve(process.cwd(),o)}if(!e){return r.symlink(o,n)}let a=null;try{a=await r.readlink(n)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return r.symlink(o,n);throw e}if(i.dereference){a=s.resolve(process.cwd(),a)}if(u.isSrcSubdir(o,a)){throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${a}'.`)}if(u.isSrcSubdir(a,o)){throw new Error(`Cannot overwrite '${a}' with '${o}'.`)}await r.unlink(n);return r.symlink(o,n)}e.exports=copy},1335:(e,t,n)=>{const r=n(9046).fromPromise;e.exports={copy:r(n(8834)),copySync:n(9618)}},6970:(e,t,n)=>{const r=n(9046).fromPromise;const s=n(1176);const i=n(1017);const o=n(8605);const a=n(7357);const u=r((async function emptyDir(e){let t;try{t=await s.readdir(e)}catch{return o.mkdirs(e)}return Promise.all(t.map((t=>a.remove(i.join(e,t)))))}));function emptyDirSync(e){let t;try{t=s.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach((t=>{t=i.join(e,t);a.removeSync(t)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:u,emptydir:u}},2164:(e,t,n)=>{const r=n(9046).fromPromise;const s=n(1017);const i=n(1176);const o=n(8605);async function createFile(e){let t;try{t=await i.stat(e)}catch{}if(t&&t.isFile())return;const n=s.dirname(e);let r=null;try{r=await i.stat(n)}catch(t){if(t.code==="ENOENT"){await o.mkdirs(n);await i.writeFile(e,"");return}else{throw t}}if(r.isDirectory()){await i.writeFile(e,"")}else{await i.readdir(n)}}function createFileSync(e){let t;try{t=i.statSync(e)}catch{}if(t&&t.isFile())return;const n=s.dirname(e);try{if(!i.statSync(n).isDirectory()){i.readdirSync(n)}}catch(e){if(e&&e.code==="ENOENT")o.mkdirsSync(n);else throw e}i.writeFileSync(e,"")}e.exports={createFile:r(createFile),createFileSync:createFileSync}},55:(e,t,n)=>{const{createFile:r,createFileSync:s}=n(2164);const{createLink:i,createLinkSync:o}=n(3797);const{createSymlink:a,createSymlinkSync:u}=n(2549);e.exports={createFile:r,createFileSync:s,ensureFile:r,ensureFileSync:s,createLink:i,createLinkSync:o,ensureLink:i,ensureLinkSync:o,createSymlink:a,createSymlinkSync:u,ensureSymlink:a,ensureSymlinkSync:u}},3797:(e,t,n)=>{const r=n(9046).fromPromise;const s=n(1017);const i=n(1176);const o=n(8605);const{pathExists:a}=n(3835);const{areIdentical:u}=n(3901);async function createLink(e,t){let n;try{n=await i.lstat(t)}catch{}let r;try{r=await i.lstat(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}if(n&&u(r,n))return;const c=s.dirname(t);const l=await a(c);if(!l){await o.mkdirs(c)}await i.link(e,t)}function createLinkSync(e,t){let n;try{n=i.lstatSync(t)}catch{}try{const t=i.lstatSync(e);if(n&&u(t,n))return}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const r=s.dirname(t);const a=i.existsSync(r);if(a)return i.linkSync(e,t);o.mkdirsSync(r);return i.linkSync(e,t)}e.exports={createLink:r(createLink),createLinkSync:createLinkSync}},3727:(e,t,n)=>{const r=n(1017);const s=n(1176);const{pathExists:i}=n(3835);const o=n(9046).fromPromise;async function symlinkPaths(e,t){if(r.isAbsolute(e)){try{await s.lstat(e)}catch(e){e.message=e.message.replace("lstat","ensureSymlink");throw e}return{toCwd:e,toDst:e}}const n=r.dirname(t);const o=r.join(n,e);const a=await i(o);if(a){return{toCwd:o,toDst:e}}try{await s.lstat(e)}catch(e){e.message=e.message.replace("lstat","ensureSymlink");throw e}return{toCwd:e,toDst:r.relative(n,e)}}function symlinkPathsSync(e,t){if(r.isAbsolute(e)){const t=s.existsSync(e);if(!t)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}const n=r.dirname(t);const i=r.join(n,e);const o=s.existsSync(i);if(o){return{toCwd:i,toDst:e}}const a=s.existsSync(e);if(!a)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:r.relative(n,e)}}e.exports={symlinkPaths:o(symlinkPaths),symlinkPathsSync:symlinkPathsSync}},8254:(e,t,n)=>{const r=n(1176);const s=n(9046).fromPromise;async function symlinkType(e,t){if(t)return t;let n;try{n=await r.lstat(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}function symlinkTypeSync(e,t){if(t)return t;let n;try{n=r.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}e.exports={symlinkType:s(symlinkType),symlinkTypeSync:symlinkTypeSync}},2549:(e,t,n)=>{const r=n(9046).fromPromise;const s=n(1017);const i=n(1176);const{mkdirs:o,mkdirsSync:a}=n(8605);const{symlinkPaths:u,symlinkPathsSync:c}=n(3727);const{symlinkType:l,symlinkTypeSync:f}=n(8254);const{pathExists:h}=n(3835);const{areIdentical:p}=n(3901);async function createSymlink(e,t,n){let r;try{r=await i.lstat(t)}catch{}if(r&&r.isSymbolicLink()){const[n,r]=await Promise.all([i.stat(e),i.stat(t)]);if(p(n,r))return}const a=await u(e,t);e=a.toDst;const c=await l(a.toCwd,n);const f=s.dirname(t);if(!await h(f)){await o(f)}return i.symlink(e,t,c)}function createSymlinkSync(e,t,n){let r;try{r=i.lstatSync(t)}catch{}if(r&&r.isSymbolicLink()){const n=i.statSync(e);const r=i.statSync(t);if(p(n,r))return}const o=c(e,t);e=o.toDst;n=f(o.toCwd,n);const u=s.dirname(t);const l=i.existsSync(u);if(l)return i.symlinkSync(e,t,n);a(u);return i.symlinkSync(e,t,n)}e.exports={createSymlink:r(createSymlink),createSymlinkSync:createSymlinkSync}},1176:(e,t,n)=>{const r=n(9046).fromCallback;const s=n(7758);const i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>typeof s[e]==="function"));Object.assign(t,s);i.forEach((e=>{t[e]=r(s[e])}));t.exists=function(e,t){if(typeof t==="function"){return s.exists(e,t)}return new Promise((t=>s.exists(e,t)))};t.read=function(e,t,n,r,i,o){if(typeof o==="function"){return s.read(e,t,n,r,i,o)}return new Promise(((o,a)=>{s.read(e,t,n,r,i,((e,t,n)=>{if(e)return a(e);o({bytesRead:t,buffer:n})}))}))};t.write=function(e,t,...n){if(typeof n[n.length-1]==="function"){return s.write(e,t,...n)}return new Promise(((r,i)=>{s.write(e,t,...n,((e,t,n)=>{if(e)return i(e);r({bytesWritten:t,buffer:n})}))}))};t.readv=function(e,t,...n){if(typeof n[n.length-1]==="function"){return s.readv(e,t,...n)}return new Promise(((r,i)=>{s.readv(e,t,...n,((e,t,n)=>{if(e)return i(e);r({bytesRead:t,buffers:n})}))}))};t.writev=function(e,t,...n){if(typeof n[n.length-1]==="function"){return s.writev(e,t,...n)}return new Promise(((r,i)=>{s.writev(e,t,...n,((e,t,n)=>{if(e)return i(e);r({bytesWritten:t,buffers:n})}))}))};if(typeof s.realpath.native==="function"){t.realpath.native=r(s.realpath.native)}else{process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}},5630:(e,t,n)=>{e.exports={...n(1176),...n(1335),...n(6970),...n(55),...n(213),...n(8605),...n(1497),...n(1832),...n(3835),...n(7357)}},213:(e,t,n)=>{const r=n(9046).fromPromise;const s=n(8970);s.outputJson=r(n(531));s.outputJsonSync=n(9421);s.outputJSON=s.outputJson;s.outputJSONSync=s.outputJsonSync;s.writeJSON=s.writeJson;s.writeJSONSync=s.writeJsonSync;s.readJSON=s.readJson;s.readJSONSync=s.readJsonSync;e.exports=s},8970:(e,t,n)=>{const r=n(6160);e.exports={readJson:r.readFile,readJsonSync:r.readFileSync,writeJson:r.writeFile,writeJsonSync:r.writeFileSync}},9421:(e,t,n)=>{const{stringify:r}=n(5902);const{outputFileSync:s}=n(1832);function outputJsonSync(e,t,n){const i=r(t,n);s(e,i,n)}e.exports=outputJsonSync},531:(e,t,n)=>{const{stringify:r}=n(5902);const{outputFile:s}=n(1832);async function outputJson(e,t,n={}){const i=r(t,n);await s(e,i,n)}e.exports=outputJson},8605:(e,t,n)=>{const r=n(9046).fromPromise;const{makeDir:s,makeDirSync:i}=n(2751);const o=r(s);e.exports={mkdirs:o,mkdirsSync:i,mkdirp:o,mkdirpSync:i,ensureDir:o,ensureDirSync:i}},2751:(e,t,n)=>{const r=n(1176);const{checkPath:s}=n(9907);const getMode=e=>{const t={mode:511};if(typeof e==="number")return e;return{...t,...e}.mode};e.exports.makeDir=async(e,t)=>{s(e);return r.mkdir(e,{mode:getMode(t),recursive:true})};e.exports.makeDirSync=(e,t)=>{s(e);return r.mkdirSync(e,{mode:getMode(t),recursive:true})}},9907:(e,t,n)=>{const r=n(1017);e.exports.checkPath=function checkPath(e){if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(r.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}}},1497:(e,t,n)=>{const r=n(9046).fromPromise;e.exports={move:r(n(2231)),moveSync:n(2047)}},2047:(e,t,n)=>{const r=n(7758);const s=n(1017);const i=n(1335).copySync;const o=n(7357).removeSync;const a=n(8605).mkdirpSync;const u=n(3901);function moveSync(e,t,n){n=n||{};const r=n.overwrite||n.clobber||false;const{srcStat:i,isChangingCase:o=false}=u.checkPathsSync(e,t,"move",n);u.checkParentPathsSync(e,i,t,"move");if(!isParentRoot(t))a(s.dirname(t));return doRename(e,t,r,o)}function isParentRoot(e){const t=s.dirname(e);const n=s.parse(t);return n.root===t}function doRename(e,t,n,s){if(s)return rename(e,t,n);if(n){o(t);return rename(e,t,n)}if(r.existsSync(t))throw new Error("dest already exists.");return rename(e,t,n)}function rename(e,t,n){try{r.renameSync(e,t)}catch(r){if(r.code!=="EXDEV")throw r;return moveAcrossDevice(e,t,n)}}function moveAcrossDevice(e,t,n){const r={overwrite:n,errorOnExist:true,preserveTimestamps:true};i(e,t,r);return o(e)}e.exports=moveSync},2231:(e,t,n)=>{const r=n(1176);const s=n(1017);const{copy:i}=n(1335);const{remove:o}=n(7357);const{mkdirp:a}=n(8605);const{pathExists:u}=n(3835);const c=n(3901);async function move(e,t,n={}){const r=n.overwrite||n.clobber||false;const{srcStat:i,isChangingCase:o=false}=await c.checkPaths(e,t,"move",n);await c.checkParentPaths(e,i,t,"move");const u=s.dirname(t);const l=s.parse(u);if(l.root!==u){await a(u)}return doRename(e,t,r,o)}async function doRename(e,t,n,s){if(!s){if(n){await o(t)}else if(await u(t)){throw new Error("dest already exists.")}}try{await r.rename(e,t)}catch(r){if(r.code!=="EXDEV"){throw r}await moveAcrossDevice(e,t,n)}}async function moveAcrossDevice(e,t,n){const r={overwrite:n,errorOnExist:true,preserveTimestamps:true};await i(e,t,r);return o(e)}e.exports=move},1832:(e,t,n)=>{const r=n(9046).fromPromise;const s=n(1176);const i=n(1017);const o=n(8605);const a=n(3835).pathExists;async function outputFile(e,t,n="utf-8"){const r=i.dirname(e);if(!await a(r)){await o.mkdirs(r)}return s.writeFile(e,t,n)}function outputFileSync(e,...t){const n=i.dirname(e);if(!s.existsSync(n)){o.mkdirsSync(n)}s.writeFileSync(e,...t)}e.exports={outputFile:r(outputFile),outputFileSync:outputFileSync}},3835:(e,t,n)=>{const r=n(9046).fromPromise;const s=n(1176);function pathExists(e){return s.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:r(pathExists),pathExistsSync:s.existsSync}},7357:(e,t,n)=>{const r=n(7758);const s=n(9046).fromCallback;function remove(e,t){r.rm(e,{recursive:true,force:true},t)}function removeSync(e){r.rmSync(e,{recursive:true,force:true})}e.exports={remove:s(remove),removeSync:removeSync}},3901:(e,t,n)=>{const r=n(1176);const s=n(1017);const i=n(9046).fromPromise;function getStats(e,t,n){const s=n.dereference?e=>r.stat(e,{bigint:true}):e=>r.lstat(e,{bigint:true});return Promise.all([s(e),s(t).catch((e=>{if(e.code==="ENOENT")return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function getStatsSync(e,t,n){let s;const i=n.dereference?e=>r.statSync(e,{bigint:true}):e=>r.lstatSync(e,{bigint:true});const o=i(e);try{s=i(t)}catch(e){if(e.code==="ENOENT")return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:s}}async function checkPaths(e,t,n,r){const{srcStat:i,destStat:o}=await getStats(e,t,r);if(o){if(areIdentical(i,o)){const r=s.basename(e);const a=s.basename(t);if(n==="move"&&r!==a&&r.toLowerCase()===a.toLowerCase()){return{srcStat:i,destStat:o,isChangingCase:true}}throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!o.isDirectory()){throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`)}if(!i.isDirectory()&&o.isDirectory()){throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}}if(i.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,n))}return{srcStat:i,destStat:o}}function checkPathsSync(e,t,n,r){const{srcStat:i,destStat:o}=getStatsSync(e,t,r);if(o){if(areIdentical(i,o)){const r=s.basename(e);const a=s.basename(t);if(n==="move"&&r!==a&&r.toLowerCase()===a.toLowerCase()){return{srcStat:i,destStat:o,isChangingCase:true}}throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!o.isDirectory()){throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`)}if(!i.isDirectory()&&o.isDirectory()){throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}}if(i.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,n))}return{srcStat:i,destStat:o}}async function checkParentPaths(e,t,n,i){const o=s.resolve(s.dirname(e));const a=s.resolve(s.dirname(n));if(a===o||a===s.parse(a).root)return;let u;try{u=await r.stat(a,{bigint:true})}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,u)){throw new Error(errMsg(e,n,i))}return checkParentPaths(e,t,a,i)}function checkParentPathsSync(e,t,n,i){const o=s.resolve(s.dirname(e));const a=s.resolve(s.dirname(n));if(a===o||a===s.parse(a).root)return;let u;try{u=r.statSync(a,{bigint:true})}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,u)){throw new Error(errMsg(e,n,i))}return checkParentPathsSync(e,t,a,i)}function areIdentical(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function isSrcSubdir(e,t){const n=s.resolve(e).split(s.sep).filter((e=>e));const r=s.resolve(t).split(s.sep).filter((e=>e));return n.every(((e,t)=>r[t]===e))}function errMsg(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:i(checkPaths),checkPathsSync:checkPathsSync,checkParentPaths:i(checkParentPaths),checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir,areIdentical:areIdentical}},2548:(e,t,n)=>{const r=n(1176);const s=n(9046).fromPromise;async function utimesMillis(e,t,n){const s=await r.open(e,"r+");let i=null;try{await r.futimes(s,t,n)}finally{try{await r.close(s)}catch(e){i=e}}if(i){throw i}}function utimesMillisSync(e,t,n){const s=r.openSync(e,"r+");r.futimesSync(s,t,n);return r.closeSync(s)}e.exports={utimesMillis:s(utimesMillis),utimesMillisSync:utimesMillisSync}},4655:(e,t,n)=>{var r=n(4466);var s=n(1017).posix.dirname;var i=n(2037).platform()==="win32";var o="/";var a=/\\/g;var u=/[\{\[].*[\}\]]$/;var c=/(^|[^\\])([\{\[]|\([^\)]+$)/;var l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function globParent(e,t){var n=Object.assign({flipBackslashes:true},t);if(n.flipBackslashes&&i&&e.indexOf(o)<0){e=e.replace(a,o)}if(u.test(e)){e+=o}e+="a";do{e=s(e)}while(r(e)||c.test(e));return e.replace(l,"$1")}},7356:e=>{e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var n={__proto__:t(e)};else var n=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}));return n}},7758:(e,t,n)=>{var r=n(7147);var s=n(263);var i=n(3086);var o=n(7356);var a=n(3837);var u;var c;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");c=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";c="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var l=noop;if(a.debuglog)l=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))l=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!r[u]){var f=global[u]||[];publishQueue(r,f);r.close=function(e){function close(t,n){return e.call(r,t,(function(e){if(!e){resetQueue()}if(typeof n==="function")n.apply(this,arguments)}))}Object.defineProperty(close,c,{value:e});return close}(r.close);r.closeSync=function(e){function closeSync(t){e.apply(r,arguments);resetQueue()}Object.defineProperty(closeSync,c,{value:e});return closeSync}(r.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){l(r[u]);n(9491).equal(r[u].length,0)}))}}if(!global[u]){publishQueue(global,r[u])}e.exports=patch(o(r));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched){e.exports=patch(r);r.__patched=true}function patch(e){s(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,n,r){if(typeof n==="function")r=n,n=null;return go$readFile(e,n,r);function go$readFile(e,n,r,s){return t(e,n,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,n,r],t,s||Date.now(),Date.now()]);else{if(typeof r==="function")r.apply(this,arguments)}}))}}var n=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,r,s){if(typeof r==="function")s=r,r=null;return go$writeFile(e,t,r,s);function go$writeFile(e,t,r,s,i){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$writeFile,[e,t,r,s],n,i||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var r=e.appendFile;if(r)e.appendFile=appendFile;function appendFile(e,t,n,s){if(typeof n==="function")s=n,n=null;return go$appendFile(e,t,n,s);function go$appendFile(e,t,n,s,i){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$appendFile,[e,t,n,s],r,i||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var o=e.copyFile;if(o)e.copyFile=copyFile;function copyFile(e,t,n,r){if(typeof n==="function"){r=n;n=0}return go$copyFile(e,t,n,r);function go$copyFile(e,t,n,r,s){return o(e,t,n,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$copyFile,[e,t,n,r],i,s||Date.now(),Date.now()]);else{if(typeof r==="function")r.apply(this,arguments)}}))}}var a=e.readdir;e.readdir=readdir;var u=/^v[0-5]\./;function readdir(e,t,n){if(typeof t==="function")n=t,t=null;var r=u.test(process.version)?function go$readdir(e,t,n,r){return a(e,fs$readdirCallback(e,t,n,r))}:function go$readdir(e,t,n,r){return a(e,t,fs$readdirCallback(e,t,n,r))};return r(e,t,n);function fs$readdirCallback(e,t,n,s){return function(i,o){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([r,[e,t,n],i,s||Date.now(),Date.now()]);else{if(o&&o.sort)o.sort();if(typeof n==="function")n.call(this,i,o)}}}}if(process.version.substr(0,4)==="v0.8"){var c=i(e);ReadStream=c.ReadStream;WriteStream=c.WriteStream}var l=e.ReadStream;if(l){ReadStream.prototype=Object.create(l.prototype);ReadStream.prototype.open=ReadStream$open}var f=e.WriteStream;if(f){WriteStream.prototype=Object.create(f.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var h=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});var p=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return l.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,n){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return f.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,n){if(t){e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n)}}))}function createReadStream(t,n){return new e.ReadStream(t,n)}function createWriteStream(t,n){return new e.WriteStream(t,n)}var d=e.open;e.open=open;function open(e,t,n,r){if(typeof n==="function")r=n,n=null;return go$open(e,t,n,r);function go$open(e,t,n,r,s){return d(e,t,n,(function(i,o){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$open,[e,t,n,r],i,s||Date.now(),Date.now()]);else{if(typeof r==="function")r.apply(this,arguments)}}))}}return e}function enqueue(e){l("ENQUEUE",e[0].name,e[1]);r[u].push(e);retry()}var h;function resetQueue(){var e=Date.now();for(var t=0;t<r[u].length;++t){if(r[u][t].length>2){r[u][t][3]=e;r[u][t][4]=e}}retry()}function retry(){clearTimeout(h);h=undefined;if(r[u].length===0)return;var e=r[u].shift();var t=e[0];var n=e[1];var s=e[2];var i=e[3];var o=e[4];if(i===undefined){l("RETRY",t.name,n);t.apply(null,n)}else if(Date.now()-i>=6e4){l("TIMEOUT",t.name,n);var a=n.pop();if(typeof a==="function")a.call(null,s)}else{var c=Date.now()-o;var f=Math.max(o-i,1);var p=Math.min(f*1.2,100);if(c>=p){l("RETRY",t.name,n);t.apply(null,n.concat([i]))}else{r[u].push(e)}}if(h===undefined){h=setTimeout(retry,0)}}},3086:(e,t,n)=>{var r=n(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,n){if(!(this instanceof ReadStream))return new ReadStream(t,n);r.call(this);var s=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;n=n||{};var i=Object.keys(n);for(var o=0,a=i.length;o<a;o++){var u=i[o];this[u]=n[u]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){s._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){s.emit("error",e);s.readable=false;return}s.fd=t;s.emit("open",t);s._read()}))}function WriteStream(t,n){if(!(this instanceof WriteStream))return new WriteStream(t,n);r.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;n=n||{};var s=Object.keys(n);for(var i=0,o=s.length;i<o;i++){var a=s[i];this[a]=n[a]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:(e,t,n)=>{var r=n(2057);var s=process.cwd;var i=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!i)i=s.call(process);return i};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var a=process.chdir;process.chdir=function(e){i=null;a.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,a)}e.exports=patch;function patch(e){if(r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,n){if(n)process.nextTick(n)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,n,r){if(r)process.nextTick(r)};e.lchownSync=function(){}}if(o==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(n,r,s){var i=Date.now();var o=0;t(n,r,(function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM"||a.code==="EBUSY")&&Date.now()-i<6e4){setTimeout((function(){e.stat(r,(function(e,i){if(e&&e.code==="ENOENT")t(n,r,CB);else s(a)}))}),o);if(o<100)o+=10;return}if(s)s(a)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(n,r,s,i,o,a){var u;if(a&&typeof a==="function"){var c=0;u=function(l,f,h){if(l&&l.code==="EAGAIN"&&c<10){c++;return t.call(e,n,r,s,i,o,u)}a.apply(this,arguments)}}return t.call(e,n,r,s,i,o,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(n,r,s,i,o){var a=0;while(true){try{return t.call(e,n,r,s,i,o)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,n,s){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,(function(t,r){if(t){if(s)s(t);return}e.fchmod(r,n,(function(t){e.close(r,(function(e){if(s)s(t||e)}))}))}))};e.lchmodSync=function(t,n){var s=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n);var i=true;var o;try{o=e.fchmodSync(s,n);i=false}finally{if(i){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}function patchLutimes(e){if(r.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,n,s,i){e.open(t,r.O_SYMLINK,(function(t,r){if(t){if(i)i(t);return}e.futimes(r,n,s,(function(t){e.close(r,(function(e){if(i)i(t||e)}))}))}))};e.lutimesSync=function(t,n,s){var i=e.openSync(t,r.O_SYMLINK);var o;var a=true;try{o=e.futimesSync(i,n,s);a=false}finally{if(a){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return o}}else if(e.futimes){e.lutimes=function(e,t,n,r){if(r)process.nextTick(r)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(n,r,s){return t.call(e,n,r,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(n,r){try{return t.call(e,n,r)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(n,r,s,i){return t.call(e,n,r,s,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(n,r,s){try{return t.call(e,n,r,s)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(n,r,s){if(typeof r==="function"){s=r;r=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(s)s.apply(this,arguments)}return r?t.call(e,n,r,callback):t.call(e,n,callback)}}function statFixSync(t){if(!t)return t;return function(n,r){var s=r?t.call(e,n,r):t.call(e,n);if(s){if(s.uid<0)s.uid+=4294967296;if(s.gid<0)s.gid+=4294967296}return s}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},4777:e=>{function makeArray(e){return Array.isArray(e)?e:[e]}const t="";const n=" ";const r="\\";const s=/^\s+$/;const i=/(?:[^\\]|^)\\$/;const o=/^\\!/;const a=/^\\#/;const u=/\r?\n/g;const c=/^\.*\/|^\.+$/;const l="/";let f="node-ignore";if(typeof Symbol!=="undefined"){f=Symbol.for("node-ignore")}const h=f;const define=(e,t,n)=>Object.defineProperty(e,t,{value:n});const p=/([0-z])-([0-z])/g;const RETURN_FALSE=()=>false;const sanitizeRange=e=>e.replace(p,((e,n,r)=>n.charCodeAt(0)<=r.charCodeAt(0)?e:t));const cleanRangeBackSlash=e=>{const{length:t}=e;return e.slice(0,t-t%2)};const d=[[/\\?\s+$/,e=>e.indexOf("\\")===0?n:t],[/\\\s/g,()=>n],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>{const r=n.replace(/\\\*/g,"[^\\/]*");return t+r}],[/\\\\\\(?=[$.|*+(){^])/g,()=>r],[/\\\\/g,()=>r],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,s,i)=>t===r?`\\[${n}${cleanRangeBackSlash(s)}${i}`:i==="]"?s.length%2===0?`[${sanitizeRange(n)}${s}]`:"[]":"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>{const n=t?`${t}[^/]+`:"[^/]*";return`${n}(?=$|\\/$)`}]];const g=Object.create(null);const makeRegex=(e,t)=>{let n=g[e];if(!n){n=d.reduce(((t,n)=>t.replace(n[0],n[1].bind(e))),e);g[e]=n}return t?new RegExp(n,"i"):new RegExp(n)};const isString=e=>typeof e==="string";const checkPattern=e=>e&&isString(e)&&!s.test(e)&&!i.test(e)&&e.indexOf("#")!==0;const splitPattern=e=>e.split(u);class IgnoreRule{constructor(e,t,n,r){this.origin=e;this.pattern=t;this.negative=n;this.regex=r}}const createRule=(e,t)=>{const n=e;let r=false;if(e.indexOf("!")===0){r=true;e=e.substr(1)}e=e.replace(o,"!").replace(a,"#");const s=makeRegex(e,t);return new IgnoreRule(n,e,r,s)};const throwError=(e,t)=>{throw new t(e)};const checkPath=(e,t,n)=>{if(!isString(e)){return n(`path must be a string, but got \`${t}\``,TypeError)}if(!e){return n(`path must not be empty`,TypeError)}if(checkPath.isNotRelative(e)){const e="`path.relative()`d";return n(`path should be a ${e} string, but got "${t}"`,RangeError)}return true};const isNotRelative=e=>c.test(e);checkPath.isNotRelative=isNotRelative;checkPath.convert=e=>e;class Ignore{constructor({ignorecase:e=true,ignoreCase:t=e,allowRelativePaths:n=false}={}){define(this,h,true);this._rules=[];this._ignoreCase=t;this._allowRelativePaths=n;this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(e){if(e&&e[h]){this._rules=this._rules.concat(e._rules);this._added=true;return}if(checkPattern(e)){const t=createRule(e,this._ignoreCase);this._added=true;this._rules.push(t)}}add(e){this._added=false;makeArray(isString(e)?splitPattern(e):e).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(e){return this.add(e)}_testOne(e,t){let n=false;let r=false;this._rules.forEach((s=>{const{negative:i}=s;if(r===i&&n!==r||i&&!n&&!r&&!t){return}const o=s.regex.test(e);if(o){n=!i;r=i}}));return{ignored:n,unignored:r}}_test(e,t,n,r){const s=e&&checkPath.convert(e);checkPath(s,e,this._allowRelativePaths?RETURN_FALSE:throwError);return this._t(s,t,n,r)}_t(e,t,n,r){if(e in t){return t[e]}if(!r){r=e.split(l)}r.pop();if(!r.length){return t[e]=this._testOne(e,n)}const s=this._t(r.join(l)+l,t,n,r);return t[e]=s.ignored?s:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,false).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return makeArray(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,true)}}const factory=e=>new Ignore(e);const isPathValid=e=>checkPath(e&&checkPath.convert(e),e,RETURN_FALSE);factory.isPathValid=isPathValid;factory.default=factory;e.exports=factory;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const makePosix=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");checkPath.convert=makePosix;const e=/^[a-z]:\//i;checkPath.isNotRelative=t=>e.test(t)||isNotRelative(t)}},2527:e=>{
|
|
10
|
+
/**
|
|
11
|
+
* @preserve
|
|
12
|
+
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
|
|
13
|
+
*
|
|
14
|
+
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
|
|
15
|
+
* @see http://github.com/homebrewing/brauhaus-diff
|
|
16
|
+
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
|
|
17
|
+
* @see http://github.com/garycourt/murmurhash-js
|
|
18
|
+
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
|
|
19
|
+
* @see http://sites.google.com/site/murmurhash/
|
|
20
|
+
*/
|
|
21
|
+
(function(){var t;function MurmurHash3(e,n){var r=this instanceof MurmurHash3?this:t;r.reset(n);if(typeof e==="string"&&e.length>0){r.hash(e)}if(r!==this){return r}}MurmurHash3.prototype.hash=function(e){var t,n,r,s,i;i=e.length;this.len+=i;n=this.k1;r=0;switch(this.rem){case 0:n^=i>r?e.charCodeAt(r++)&65535:0;case 1:n^=i>r?(e.charCodeAt(r++)&65535)<<8:0;case 2:n^=i>r?(e.charCodeAt(r++)&65535)<<16:0;case 3:n^=i>r?(e.charCodeAt(r)&255)<<24:0;n^=i>r?(e.charCodeAt(r++)&65280)>>8:0}this.rem=i+this.rem&3;i-=this.rem;if(i>0){t=this.h1;while(1){n=n*11601+(n&65535)*3432906752&4294967295;n=n<<15|n>>>17;n=n*13715+(n&65535)*461832192&4294967295;t^=n;t=t<<13|t>>>19;t=t*5+3864292196&4294967295;if(r>=i){break}n=e.charCodeAt(r++)&65535^(e.charCodeAt(r++)&65535)<<8^(e.charCodeAt(r++)&65535)<<16;s=e.charCodeAt(r++);n^=(s&255)<<24^(s&65280)>>8}n=0;switch(this.rem){case 3:n^=(e.charCodeAt(r+2)&65535)<<16;case 2:n^=(e.charCodeAt(r+1)&65535)<<8;case 1:n^=e.charCodeAt(r)&65535}this.h1=t}this.k1=n;return this};MurmurHash3.prototype.result=function(){var e,t;e=this.k1;t=this.h1;if(e>0){e=e*11601+(e&65535)*3432906752&4294967295;e=e<<15|e>>>17;e=e*13715+(e&65535)*461832192&4294967295;t^=e}t^=this.len;t^=t>>>16;t=t*51819+(t&65535)*2246770688&4294967295;t^=t>>>13;t=t*44597+(t&65535)*3266445312&4294967295;t^=t>>>16;return t>>>0};MurmurHash3.prototype.reset=function(e){this.h1=typeof e==="number"?e:0;this.rem=this.k1=this.len=0;return this};t=new MurmurHash3;if(true){e.exports=MurmurHash3}else{}})()},6435:e=>{
|
|
22
|
+
/*!
|
|
23
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
26
|
+
* Licensed under the MIT License.
|
|
27
|
+
*/
|
|
28
|
+
e.exports=function isExtglob(e){if(typeof e!=="string"||e===""){return false}var t;while(t=/(\\).|([@?!+*]\(.*\))/g.exec(e)){if(t[2])return true;e=e.slice(t.index+t[0].length)}return false}},4466:(e,t,n)=>{
|
|
29
|
+
/*!
|
|
30
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
33
|
+
* Released under the MIT License.
|
|
34
|
+
*/
|
|
35
|
+
var r=n(6435);var s={"{":"}","(":")","[":"]"};var strictCheck=function(e){if(e[0]==="!"){return true}var t=0;var n=-2;var r=-2;var i=-2;var o=-2;var a=-2;while(t<e.length){if(e[t]==="*"){return true}if(e[t+1]==="?"&&/[\].+)]/.test(e[t])){return true}if(r!==-1&&e[t]==="["&&e[t+1]!=="]"){if(r<t){r=e.indexOf("]",t)}if(r>t){if(a===-1||a>r){return true}a=e.indexOf("\\",t);if(a===-1||a>r){return true}}}if(i!==-1&&e[t]==="{"&&e[t+1]!=="}"){i=e.indexOf("}",t);if(i>t){a=e.indexOf("\\",t);if(a===-1||a>i){return true}}}if(o!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"){o=e.indexOf(")",t);if(o>t){a=e.indexOf("\\",t);if(a===-1||a>o){return true}}}if(n!==-1&&e[t]==="("&&e[t+1]!=="|"){if(n<t){n=e.indexOf("|",t)}if(n!==-1&&e[n+1]!==")"){o=e.indexOf(")",n);if(o>n){a=e.indexOf("\\",n);if(a===-1||a>o){return true}}}}if(e[t]==="\\"){var u=e[t+1];t+=2;var c=s[u];if(c){var l=e.indexOf(c,t);if(l!==-1){t=l+1}}if(e[t]==="!"){return true}}else{t++}}return false};var relaxedCheck=function(e){if(e[0]==="!"){return true}var t=0;while(t<e.length){if(/[*?{}()[\]]/.test(e[t])){return true}if(e[t]==="\\"){var n=e[t+1];t+=2;var r=s[n];if(r){var i=e.indexOf(r,t);if(i!==-1){t=i+1}}if(e[t]==="!"){return true}}else{t++}}return false};e.exports=function isGlob(e,t){if(typeof e!=="string"||e===""){return false}if(r(e)){return true}var n=strictCheck;if(t&&t.strict===false){n=relaxedCheck}return n(e)}},5680:e=>{
|
|
36
|
+
/*!
|
|
37
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
40
|
+
* Released under the MIT License.
|
|
41
|
+
*/
|
|
42
|
+
e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},7126:(e,t,n)=>{var r=n(7147);var s;if(process.platform==="win32"||global.TESTING_WINDOWS){s=n(2001)}else{s=n(9728)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,n){if(typeof t==="function"){n=t;t={}}if(!n){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(n,r){isexe(e,t||{},(function(e,t){if(e){r(e)}else{n(t)}}))}))}s(e,t||{},(function(e,r){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;r=false}}n(e,r)}))}function sync(e,t){try{return s.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},9728:(e,t,n)=>{e.exports=isexe;isexe.sync=sync;var r=n(7147);function isexe(e,t,n){r.stat(e,(function(e,r){n(e,e?false:checkStat(r,t))}))}function sync(e,t){return checkStat(r.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var n=e.mode;var r=e.uid;var s=e.gid;var i=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var o=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var u=parseInt("010",8);var c=parseInt("001",8);var l=a|u;var f=n&c||n&u&&s===o||n&a&&r===i||n&l&&i===0;return f}},2001:(e,t,n)=>{e.exports=isexe;isexe.sync=sync;var r=n(7147);function checkPathExt(e,t){var n=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!n){return true}n=n.split(";");if(n.indexOf("")!==-1){return true}for(var r=0;r<n.length;r++){var s=n[r].toLowerCase();if(s&&e.substr(-s.length).toLowerCase()===s){return true}}return false}function checkStat(e,t,n){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,n)}function isexe(e,t,n){r.stat(e,(function(r,s){n(r,r?false:checkStat(s,e,t))}))}function sync(e,t){return checkStat(r.statSync(e),e,t)}},1531:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},6904:(e,t,n)=>{const r=n(7583);const s=n(749);const i={parse:r,stringify:s};e.exports=i},7583:(e,t,n)=>{const r=n(7393);let s;let i;let o;let a;let u;let c;let l;let f;let h;e.exports=function parse(e,t){s=String(e);i="start";o=[];a=0;u=1;c=0;l=undefined;f=undefined;h=undefined;do{l=lex();w[i]()}while(l.type!=="eof");if(typeof t==="function"){return internalize({"":h},"",t)}return h};function internalize(e,t,n){const r=e[t];if(r!=null&&typeof r==="object"){if(Array.isArray(r)){for(let e=0;e<r.length;e++){const t=String(e);const s=internalize(r,t,n);if(s===undefined){delete r[t]}else{Object.defineProperty(r,t,{value:s,writable:true,enumerable:true,configurable:true})}}}else{for(const e in r){const t=internalize(r,e,n);if(t===undefined){delete r[e]}else{Object.defineProperty(r,e,{value:t,writable:true,enumerable:true,configurable:true})}}}}return n.call(e,t,r)}let p;let d;let g;let y;let b;function lex(){p="default";d="";g=false;y=1;for(;;){b=peek();const e=v[p]();if(e){return e}}}function peek(){if(s[a]){return String.fromCodePoint(s.codePointAt(a))}}function read(){const e=peek();if(e==="\n"){u++;c=0}else if(e){c+=e.length}else{c++}if(e){a+=e.length}return e}const v={default(){switch(b){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();p="comment";return;case undefined:read();return newToken("eof")}if(r.isSpaceSeparator(b)){read();return}return v[i]()},comment(){switch(b){case"*":read();p="multiLineComment";return;case"/":read();p="singleLineComment";return}throw invalidChar(read())},multiLineComment(){switch(b){case"*":read();p="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk(){switch(b){case"*":read();return;case"/":read();p="default";return;case undefined:throw invalidChar(read())}read();p="multiLineComment"},singleLineComment(){switch(b){case"\n":case"\r":case"\u2028":case"\u2029":read();p="default";return;case undefined:read();return newToken("eof")}read()},value(){switch(b){case"{":case"[":return newToken("punctuator",read());case"n":read();literal("ull");return newToken("null",null);case"t":read();literal("rue");return newToken("boolean",true);case"f":read();literal("alse");return newToken("boolean",false);case"-":case"+":if(read()==="-"){y=-1}p="sign";return;case".":d=read();p="decimalPointLeading";return;case"0":d=read();p="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d=read();p="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":g=read()==='"';d="";p="string";return}throw invalidChar(read())},identifierNameStartEscape(){if(b!=="u"){throw invalidChar(read())}read();const e=unicodeEscape();switch(e){case"$":case"_":break;default:if(!r.isIdStartChar(e)){throw invalidIdentifier()}break}d+=e;p="identifierName"},identifierName(){switch(b){case"$":case"_":case"":case"":d+=read();return;case"\\":read();p="identifierNameEscape";return}if(r.isIdContinueChar(b)){d+=read();return}return newToken("identifier",d)},identifierNameEscape(){if(b!=="u"){throw invalidChar(read())}read();const e=unicodeEscape();switch(e){case"$":case"_":case"":case"":break;default:if(!r.isIdContinueChar(e)){throw invalidIdentifier()}break}d+=e;p="identifierName"},sign(){switch(b){case".":d=read();p="decimalPointLeading";return;case"0":d=read();p="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d=read();p="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",y*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero(){switch(b){case".":d+=read();p="decimalPoint";return;case"e":case"E":d+=read();p="decimalExponent";return;case"x":case"X":d+=read();p="hexadecimal";return}return newToken("numeric",y*0)},decimalInteger(){switch(b){case".":d+=read();p="decimalPoint";return;case"e":case"E":d+=read();p="decimalExponent";return}if(r.isDigit(b)){d+=read();return}return newToken("numeric",y*Number(d))},decimalPointLeading(){if(r.isDigit(b)){d+=read();p="decimalFraction";return}throw invalidChar(read())},decimalPoint(){switch(b){case"e":case"E":d+=read();p="decimalExponent";return}if(r.isDigit(b)){d+=read();p="decimalFraction";return}return newToken("numeric",y*Number(d))},decimalFraction(){switch(b){case"e":case"E":d+=read();p="decimalExponent";return}if(r.isDigit(b)){d+=read();return}return newToken("numeric",y*Number(d))},decimalExponent(){switch(b){case"+":case"-":d+=read();p="decimalExponentSign";return}if(r.isDigit(b)){d+=read();p="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign(){if(r.isDigit(b)){d+=read();p="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger(){if(r.isDigit(b)){d+=read();return}return newToken("numeric",y*Number(d))},hexadecimal(){if(r.isHexDigit(b)){d+=read();p="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger(){if(r.isHexDigit(b)){d+=read();return}return newToken("numeric",y*Number(d))},string(){switch(b){case"\\":read();d+=escape();return;case'"':if(g){read();return newToken("string",d)}d+=read();return;case"'":if(!g){read();return newToken("string",d)}d+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(b);break;case undefined:throw invalidChar(read())}d+=read()},start(){switch(b){case"{":case"[":return newToken("punctuator",read())}p="value"},beforePropertyName(){switch(b){case"$":case"_":d=read();p="identifierName";return;case"\\":read();p="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":g=read()==='"';p="string";return}if(r.isIdStartChar(b)){d+=read();p="identifierName";return}throw invalidChar(read())},afterPropertyName(){if(b===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue(){p="value"},afterPropertyValue(){switch(b){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue(){if(b==="]"){return newToken("punctuator",read())}p="value"},afterArrayValue(){switch(b){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end(){throw invalidChar(read())}};function newToken(e,t){return{type:e,value:t,line:u,column:c}}function literal(e){for(const t of e){const e=peek();if(e!==t){throw invalidChar(read())}read()}}function escape(){const e=peek();switch(e){case"b":read();return"\b";case"f":read();return"\f";case"n":read();return"\n";case"r":read();return"\r";case"t":read();return"\t";case"v":read();return"\v";case"0":read();if(r.isDigit(peek())){throw invalidChar(read())}return"\0";case"x":read();return hexEscape();case"u":read();return unicodeEscape();case"\n":case"\u2028":case"\u2029":read();return"";case"\r":read();if(peek()==="\n"){read()}return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw invalidChar(read());case undefined:throw invalidChar(read())}return read()}function hexEscape(){let e="";let t=peek();if(!r.isHexDigit(t)){throw invalidChar(read())}e+=read();t=peek();if(!r.isHexDigit(t)){throw invalidChar(read())}e+=read();return String.fromCodePoint(parseInt(e,16))}function unicodeEscape(){let e="";let t=4;while(t-- >0){const t=peek();if(!r.isHexDigit(t)){throw invalidChar(read())}e+=read()}return String.fromCodePoint(parseInt(e,16))}const w={start(){if(l.type==="eof"){throw invalidEOF()}push()},beforePropertyName(){switch(l.type){case"identifier":case"string":f=l.value;i="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName(){if(l.type==="eof"){throw invalidEOF()}i="beforePropertyValue"},beforePropertyValue(){if(l.type==="eof"){throw invalidEOF()}push()},beforeArrayValue(){if(l.type==="eof"){throw invalidEOF()}if(l.type==="punctuator"&&l.value==="]"){pop();return}push()},afterPropertyValue(){if(l.type==="eof"){throw invalidEOF()}switch(l.value){case",":i="beforePropertyName";return;case"}":pop()}},afterArrayValue(){if(l.type==="eof"){throw invalidEOF()}switch(l.value){case",":i="beforeArrayValue";return;case"]":pop()}},end(){}};function push(){let e;switch(l.type){case"punctuator":switch(l.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=l.value;break}if(h===undefined){h=e}else{const t=o[o.length-1];if(Array.isArray(t)){t.push(e)}else{Object.defineProperty(t,f,{value:e,writable:true,enumerable:true,configurable:true})}}if(e!==null&&typeof e==="object"){o.push(e);if(Array.isArray(e)){i="beforeArrayValue"}else{i="beforePropertyName"}}else{const e=o[o.length-1];if(e==null){i="end"}else if(Array.isArray(e)){i="afterArrayValue"}else{i="afterPropertyValue"}}}function pop(){o.pop();const e=o[o.length-1];if(e==null){i="end"}else if(Array.isArray(e)){i="afterArrayValue"}else{i="afterPropertyValue"}}function invalidChar(e){if(e===undefined){return syntaxError(`JSON5: invalid end of input at ${u}:${c}`)}return syntaxError(`JSON5: invalid character '${formatChar(e)}' at ${u}:${c}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${u}:${c}`)}function invalidIdentifier(){c-=5;return syntaxError(`JSON5: invalid identifier character at ${u}:${c}`)}function separatorChar(e){console.warn(`JSON5: '${formatChar(e)}' in strings is not valid ECMAScript; consider escaping`)}function formatChar(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e]){return t[e]}if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function syntaxError(e){const t=new SyntaxError(e);t.lineNumber=u;t.columnNumber=c;return t}},749:(e,t,n)=>{const r=n(7393);e.exports=function stringify(e,t,n){const s=[];let i="";let o;let a;let u="";let c;if(t!=null&&typeof t==="object"&&!Array.isArray(t)){n=t.space;c=t.quote;t=t.replacer}if(typeof t==="function"){a=t}else if(Array.isArray(t)){o=[];for(const e of t){let t;if(typeof e==="string"){t=e}else if(typeof e==="number"||e instanceof String||e instanceof Number){t=String(e)}if(t!==undefined&&o.indexOf(t)<0){o.push(t)}}}if(n instanceof Number){n=Number(n)}else if(n instanceof String){n=String(n)}if(typeof n==="number"){if(n>0){n=Math.min(10,Math.floor(n));u=" ".substr(0,n)}}else if(typeof n==="string"){u=n.substr(0,10)}return serializeProperty("",{"":e});function serializeProperty(e,t){let n=t[e];if(n!=null){if(typeof n.toJSON5==="function"){n=n.toJSON5(e)}else if(typeof n.toJSON==="function"){n=n.toJSON(e)}}if(a){n=a.call(t,e,n)}if(n instanceof Number){n=Number(n)}else if(n instanceof String){n=String(n)}else if(n instanceof Boolean){n=n.valueOf()}switch(n){case null:return"null";case true:return"true";case false:return"false"}if(typeof n==="string"){return quoteString(n,false)}if(typeof n==="number"){return String(n)}if(typeof n==="object"){return Array.isArray(n)?serializeArray(n):serializeObject(n)}return undefined}function quoteString(e){const t={"'":.1,'"':.2};const n={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let s="";for(let i=0;i<e.length;i++){const o=e[i];switch(o){case"'":case'"':t[o]++;s+=o;continue;case"\0":if(r.isDigit(e[i+1])){s+="\\x00";continue}}if(n[o]){s+=n[o];continue}if(o<" "){let e=o.charCodeAt(0).toString(16);s+="\\x"+("00"+e).substring(e.length);continue}s+=o}const i=c||Object.keys(t).reduce(((e,n)=>t[e]<t[n]?e:n));s=s.replace(new RegExp(i,"g"),n[i]);return i+s+i}function serializeObject(e){if(s.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}s.push(e);let t=i;i=i+u;let n=o||Object.keys(e);let r=[];for(const t of n){const n=serializeProperty(t,e);if(n!==undefined){let e=serializeKey(t)+":";if(u!==""){e+=" "}e+=n;r.push(e)}}let a;if(r.length===0){a="{}"}else{let e;if(u===""){e=r.join(",");a="{"+e+"}"}else{let n=",\n"+i;e=r.join(n);a="{\n"+i+e+",\n"+t+"}"}}s.pop();i=t;return a}function serializeKey(e){if(e.length===0){return quoteString(e,true)}const t=String.fromCodePoint(e.codePointAt(0));if(!r.isIdStartChar(t)){return quoteString(e,true)}for(let n=t.length;n<e.length;n++){if(!r.isIdContinueChar(String.fromCodePoint(e.codePointAt(n)))){return quoteString(e,true)}}return e}function serializeArray(e){if(s.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}s.push(e);let t=i;i=i+u;let n=[];for(let t=0;t<e.length;t++){const r=serializeProperty(String(t),e);n.push(r!==undefined?r:"null")}let r;if(n.length===0){r="[]"}else{if(u===""){let e=n.join(",");r="["+e+"]"}else{let e=",\n"+i;let s=n.join(e);r="[\n"+i+s+",\n"+t+"]"}}s.pop();i=t;return r}}},1927:e=>{e.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;e.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;e.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},7393:(e,t,n)=>{const r=n(1927);e.exports={isSpaceSeparator(e){return typeof e==="string"&&r.Space_Separator.test(e)},isIdStartChar(e){return typeof e==="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||r.ID_Start.test(e))},isIdContinueChar(e){return typeof e==="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e===""||e===""||r.ID_Continue.test(e))},isDigit(e){return typeof e==="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e==="string"&&/[0-9A-Fa-f]/.test(e)}}},6160:(e,t,n)=>{let r;try{r=n(7758)}catch(e){r=n(7147)}const s=n(9046);const{stringify:i,stripBom:o}=n(5902);async function _readFile(e,t={}){if(typeof t==="string"){t={encoding:t}}const n=t.fs||r;const i="throws"in t?t.throws:true;let a=await s.fromCallback(n.readFile)(e,t);a=o(a);let u;try{u=JSON.parse(a,t?t.reviver:null)}catch(t){if(i){t.message=`${e}: ${t.message}`;throw t}else{return null}}return u}const a=s.fromPromise(_readFile);function readFileSync(e,t={}){if(typeof t==="string"){t={encoding:t}}const n=t.fs||r;const s="throws"in t?t.throws:true;try{let r=n.readFileSync(e,t);r=o(r);return JSON.parse(r,t.reviver)}catch(t){if(s){t.message=`${e}: ${t.message}`;throw t}else{return null}}}async function _writeFile(e,t,n={}){const o=n.fs||r;const a=i(t,n);await s.fromCallback(o.writeFile)(e,a,n)}const u=s.fromPromise(_writeFile);function writeFileSync(e,t,n={}){const s=n.fs||r;const o=i(t,n);return s.writeFileSync(e,o,n)}const c={readFile:a,readFileSync:readFileSync,writeFile:u,writeFileSync:writeFileSync};e.exports=c},5902:e=>{function stringify(e,{EOL:t="\n",finalEOL:n=true,replacer:r=null,spaces:s}={}){const i=n?t:"";const o=JSON.stringify(e,r,s);return o.replace(/\n/g,t)+i}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},7078:(e,t,n)=>{var r=n(2781).Stream;e.exports=function(e,t){var n=new r,s=this,i=0,o=0,a=false,u=false,c=false,l=0,f=false;this.opts=t||{};var h=this.opts.failures?"failure":"error";var p={};n.writable=true;n.readable=true;function queueData(e,t){var r=l+1;if(t===r){if(e!==undefined){n.emit.apply(n,["data",e])}l++;r++}else{p[t]=e}if(p.hasOwnProperty(r)){var s=p[r];delete p[r];return queueData(s,r)}o++;if(i===o){if(u)u=false,n.emit("drain");if(a)end()}}function next(e,t,r){if(c)return;f=true;if(!e||s.opts.failures){queueData(t,r)}if(e){n.emit.apply(n,[h,e])}f=false}function wrappedMapper(t,n,r){return e.call(null,t,(function(e,t){r(e,t,n)}))}n.write=function(e){if(a)throw new Error("map stream is not writable");f=false;i++;try{var t=wrappedMapper(e,i,next);u=t===false;return!u}catch(e){if(f)throw e;next(e);return!u}};function end(e){a=true;n.writable=false;if(e!==undefined){return queueData(e,i)}else if(i==o){n.readable=false,n.emit("end"),n.destroy()}}n.end=function(e){if(a)return;end()};n.destroy=function(){a=c=true;n.writable=n.readable=u=false;process.nextTick((function(){n.emit("close")}))};n.pause=function(){u=true};n.resume=function(){u=false};return n}},2578:(e,t,n)=>{const r=n(2781);const s=r.PassThrough;const i=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=i.call(arguments);let n=false;let r=t[t.length-1];if(r&&!Array.isArray(r)&&r.pipe==null){t.pop()}else{r={}}const o=r.end!==false;const a=r.pipeError===true;if(r.objectMode==null){r.objectMode=true}if(r.highWaterMark==null){r.highWaterMark=64*1024}const u=s(r);function addStream(){for(let t=0,n=arguments.length;t<n;t++){e.push(pauseStreams(arguments[t],r))}mergeStream();return this}function mergeStream(){if(n){return}n=true;let t=e.shift();if(!t){process.nextTick(endStream);return}if(!Array.isArray(t)){t=[t]}let r=t.length+1;function next(){if(--r>0){return}n=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(a){e.removeListener("error",onerror)}next()}function onerror(e){u.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(a){e.on("error",onerror)}e.pipe(u,{end:false});e.resume()}for(let e=0;e<t.length;e++){pipe(t[e])}next()}function endStream(){n=false;u.emit("queueDrain");if(o){u.end()}}u.setMaxListeners(0);u.add=addStream;u.on("unpipe",(function(e){e.emit("merge2UnpipeEnd")}));if(t.length){addStream.apply(null,t)}return u}function pauseStreams(e,t){if(!Array.isArray(e)){if(!e._readableState&&e.pipe){e=e.pipe(s(t))}if(!e._readableState||!e.pause||!e.pipe){throw new Error("Only readable stream can be merged.")}e.pause()}else{for(let n=0,r=e.length;n<r;n++){e[n]=pauseStreams(e[n],t)}}return e}},6228:(e,t,n)=>{const r=n(3837);const s=n(610);const i=n(8569);const o=n(479);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,n)=>{t=[].concat(t);e=[].concat(e);let r=new Set;let s=new Set;let o=new Set;let a=0;let onResult=e=>{o.add(e.output);if(n&&n.onResult){n.onResult(e)}};for(let o=0;o<t.length;o++){let u=i(String(t[o]),{...n,onResult:onResult},true);let c=u.state.negated||u.state.negatedExtglob;if(c)a++;for(let t of e){let e=u(t,true);let n=c?!e.isMatch:e.isMatch;if(!n)continue;if(c){r.add(e.output)}else{r.delete(e.output);s.add(e.output)}}}let u=a===t.length?[...o]:[...s];let c=u.filter((e=>!r.has(e)));if(n&&c.length===0){if(n.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(n.nonull===true||n.nullglob===true){return n.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return c};micromatch.match=micromatch;micromatch.matcher=(e,t)=>i(e,t);micromatch.isMatch=(e,t,n)=>i(t,n)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set;let s=[];let onResult=e=>{if(n.onResult)n.onResult(e);s.push(e.output)};let i=new Set(micromatch(e,t,{...n,onResult:onResult}));for(let e of s){if(!i.has(e)){r.add(e)}}return[...r]};micromatch.contains=(e,t,n)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${r.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,n)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...n,contains:true})};micromatch.matchKeys=(e,t,n)=>{if(!o.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let r=micromatch(Object.keys(e),t,n);let s={};for(let t of r)s[t]=e[t];return s};micromatch.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),n);if(r.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),n);if(!r.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,n)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${r.inspect(e)}"`)}return[].concat(t).every((t=>i(t,n)(e)))};micromatch.capture=(e,t,n)=>{let r=o.isWindows(n);let s=i.makeRe(String(e),{...n,capture:true});let a=s.exec(r?o.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>i.makeRe(...e);micromatch.scan=(...e)=>i.scan(...e);micromatch.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[])){for(let e of s(String(r),t)){n.push(i.parse(e,t))}}return n};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return s(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},5871:e=>{function hasKey(e,t){var n=e;t.slice(0,-1).forEach((function(e){n=n[e]||{}}));var r=t[t.length-1];return r in n}function isNumber(e){if(typeof e==="number"){return true}if(/^0x[0-9a-f]+$/i.test(e)){return true}return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function isConstructorOrProto(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}e.exports=function(e,t){if(!t){t={}}var n={bools:{},strings:{},unknownFn:null};if(typeof t.unknown==="function"){n.unknownFn=t.unknown}if(typeof t.boolean==="boolean"&&t.boolean){n.allBools=true}else{[].concat(t.boolean).filter(Boolean).forEach((function(e){n.bools[e]=true}))}var r={};function aliasIsBoolean(e){return r[e].some((function(e){return n.bools[e]}))}Object.keys(t.alias||{}).forEach((function(e){r[e]=[].concat(t.alias[e]);r[e].forEach((function(t){r[t]=[e].concat(r[e].filter((function(e){return t!==e})))}))}));[].concat(t.string).filter(Boolean).forEach((function(e){n.strings[e]=true;if(r[e]){[].concat(r[e]).forEach((function(e){n.strings[e]=true}))}}));var s=t.default||{};var i={_:[]};function argDefined(e,t){return n.allBools&&/^--[^=]+$/.test(t)||n.strings[e]||n.bools[e]||r[e]}function setKey(e,t,r){var s=e;for(var i=0;i<t.length-1;i++){var o=t[i];if(isConstructorOrProto(s,o)){return}if(s[o]===undefined){s[o]={}}if(s[o]===Object.prototype||s[o]===Number.prototype||s[o]===String.prototype){s[o]={}}if(s[o]===Array.prototype){s[o]=[]}s=s[o]}var a=t[t.length-1];if(isConstructorOrProto(s,a)){return}if(s===Object.prototype||s===Number.prototype||s===String.prototype){s={}}if(s===Array.prototype){s=[]}if(s[a]===undefined||n.bools[a]||typeof s[a]==="boolean"){s[a]=r}else if(Array.isArray(s[a])){s[a].push(r)}else{s[a]=[s[a],r]}}function setArg(e,t,s){if(s&&n.unknownFn&&!argDefined(e,s)){if(n.unknownFn(s)===false){return}}var o=!n.strings[e]&&isNumber(t)?Number(t):t;setKey(i,e.split("."),o);(r[e]||[]).forEach((function(e){setKey(i,e.split("."),o)}))}Object.keys(n.bools).forEach((function(e){setArg(e,s[e]===undefined?false:s[e])}));var o=[];if(e.indexOf("--")!==-1){o=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}for(var a=0;a<e.length;a++){var u=e[a];var c;var l;if(/^--.+=/.test(u)){var f=u.match(/^--([^=]+)=([\s\S]*)$/);c=f[1];var h=f[2];if(n.bools[c]){h=h!=="false"}setArg(c,h,u)}else if(/^--no-.+/.test(u)){c=u.match(/^--no-(.+)/)[1];setArg(c,false,u)}else if(/^--.+/.test(u)){c=u.match(/^--(.+)/)[1];l=e[a+1];if(l!==undefined&&!/^(-|--)[^-]/.test(l)&&!n.bools[c]&&!n.allBools&&(r[c]?!aliasIsBoolean(c):true)){setArg(c,l,u);a+=1}else if(/^(true|false)$/.test(l)){setArg(c,l==="true",u);a+=1}else{setArg(c,n.strings[c]?"":true,u)}}else if(/^-[^-]+/.test(u)){var p=u.slice(1,-1).split("");var d=false;for(var g=0;g<p.length;g++){l=u.slice(g+2);if(l==="-"){setArg(p[g],l,u);continue}if(/[A-Za-z]/.test(p[g])&&l[0]==="="){setArg(p[g],l.slice(1),u);d=true;break}if(/[A-Za-z]/.test(p[g])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(l)){setArg(p[g],l,u);d=true;break}if(p[g+1]&&p[g+1].match(/\W/)){setArg(p[g],u.slice(g+2),u);d=true;break}else{setArg(p[g],n.strings[p[g]]?"":true,u)}}c=u.slice(-1)[0];if(!d&&c!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!n.bools[c]&&(r[c]?!aliasIsBoolean(c):true)){setArg(c,e[a+1],u);a+=1}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(c,e[a+1]==="true",u);a+=1}else{setArg(c,n.strings[c]?"":true,u)}}}else{if(!n.unknownFn||n.unknownFn(u)!==false){i._.push(n.strings._||!isNumber(u)?u:Number(u))}if(t.stopEarly){i._.push.apply(i._,e.slice(a+1));break}}}Object.keys(s).forEach((function(e){if(!hasKey(i,e.split("."))){setKey(i,e.split("."),s[e]);(r[e]||[]).forEach((function(t){setKey(i,t.split("."),s[e])}))}}));if(t["--"]){i["--"]=o.slice()}else{o.forEach((function(e){i._.push(e)}))}return i}},3433:(e,t,n)=>{const{promisify:r}=n(3837);const s=n(7147);async function isType(e,t,n){if(typeof n!=="string"){throw new TypeError(`Expected a string, got ${typeof n}`)}try{const i=await r(s[e])(n);return i[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}function isTypeSync(e,t,n){if(typeof n!=="string"){throw new TypeError(`Expected a string, got ${typeof n}`)}try{return s[e](n)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.isFile=isType.bind(null,"stat","isFile");t.isDirectory=isType.bind(null,"stat","isDirectory");t.isSymlink=isType.bind(null,"lstat","isSymbolicLink");t.isFileSync=isTypeSync.bind(null,"statSync","isFile");t.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");t.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},1473:(e,t,n)=>{e.exports=n(421)},8569:(e,t,n)=>{e.exports=n(3322)},6099:(e,t,n)=>{const r=n(1017);const s="\\\\/";const i=`[^${s}]`;const o="\\.";const a="\\+";const u="\\?";const c="\\/";const l="(?=.)";const f="[^/]";const h=`(?:${c}|$)`;const p=`(?:^|${c})`;const d=`${o}{1,2}${h}`;const g=`(?!${o})`;const y=`(?!${p}${d})`;const b=`(?!${o}{0,1}${h})`;const v=`(?!${d})`;const w=`[^.${c}]`;const S=`${f}*?`;const A={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:u,SLASH_LITERAL:c,ONE_CHAR:l,QMARK:f,END_ANCHOR:h,DOTS_SLASH:d,NO_DOT:g,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:v,QMARK_NO_DOT:w,STAR:S,START_ANCHOR:p};const E={...A,SLASH_LITERAL:`[${s}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${o}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`};const D={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:D,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?E:A}}},2139:(e,t,n)=>{const r=n(6099);const s=n(479);const{MAX_LENGTH:i,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:c}=r;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map((e=>s.escapeRegex(e))).join("..")}return n};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=c[e]||e;const n={...t};const l=typeof n.maxLength==="number"?Math.min(i,n.maxLength):i;let f=e.length;if(f>l){throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${l}`)}const h={type:"bos",value:"",output:n.prepend||""};const p=[h];const d=n.capture?"":"?:";const g=s.isWindows(t);const y=r.globChars(g);const b=r.extglobChars(y);const{DOT_LITERAL:v,PLUS_LITERAL:w,SLASH_LITERAL:S,ONE_CHAR:A,DOTS_SLASH:E,NO_DOT:D,NO_DOT_SLASH:C,NO_DOTS_SLASH:_,QMARK:k,QMARK_NO_DOT:F,STAR:x,START_ANCHOR:O}=y;const globstar=e=>`(${d}(?:(?!${O}${e.dot?E:v}).)*?)`;const P=n.dot?"":D;const T=n.dot?k:F;let B=n.bash===true?globstar(n):x;if(n.capture){B=`(${B})`}if(typeof n.noext==="boolean"){n.noextglob=n.noext}const N={input:e,index:-1,start:0,dot:n.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:p};e=s.removePrefix(e,N);f=e.length;const R=[];const L=[];const M=[];let I=h;let j;const eos=()=>N.index===f-1;const H=N.peek=(t=1)=>e[N.index+t];const W=N.advance=()=>e[++N.index]||"";const remaining=()=>e.slice(N.index+1);const consume=(e="",t=0)=>{N.consumed+=e;N.index+=t};const append=e=>{N.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(H()==="!"&&(H(2)!=="("||H(3)==="?")){W();N.start++;e++}if(e%2===0){return false}N.negated=true;N.start++;return true};const increment=e=>{N[e]++;M.push(e)};const decrement=e=>{N[e]--;M.pop()};const push=e=>{if(I.type==="globstar"){const t=N.braces>0&&(e.type==="comma"||e.type==="brace");const n=e.extglob===true||R.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!n){N.output=N.output.slice(0,-I.output.length);I.type="star";I.value="*";I.output=B;N.output+=I.output}}if(R.length&&e.type!=="paren"){R[R.length-1].inner+=e.value}if(e.value||e.output)append(e);if(I&&I.type==="text"&&e.type==="text"){I.value+=e.value;I.output=(I.output||"")+e.value;return}e.prev=I;p.push(e);I=e};const extglobOpen=(e,t)=>{const r={...b[t],conditions:1,inner:""};r.prev=I;r.parens=N.parens;r.output=N.output;const s=(n.capture?"(":"")+r.open;increment("parens");push({type:e,value:t,output:N.output?"":A});push({type:"paren",extglob:true,value:W(),output:s});R.push(r)};const extglobClose=e=>{let r=e.close+(n.capture?")":"");let s;if(e.type==="negate"){let i=B;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){i=globstar(n)}if(i!==B||eos()||/^\)+$/.test(remaining())){r=e.close=`)$))${i}`}if(e.inner.includes("*")&&(s=remaining())&&/^\.[^\\/.]+$/.test(s)){const n=parse(s,{...t,fastpaths:false}).output;r=e.close=`)${n})${i})`}if(e.prev.type==="bos"){N.negatedExtglob=true}}push({type:"paren",extglob:true,value:j,output:r});decrement("parens")};if(n.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=false;let i=e.replace(u,((e,t,n,s,i,o)=>{if(s==="\\"){r=true;return e}if(s==="?"){if(t){return t+s+(i?k.repeat(i.length):"")}if(o===0){return T+(i?k.repeat(i.length):"")}return k.repeat(n.length)}if(s==="."){return v.repeat(n.length)}if(s==="*"){if(t){return t+s+(i?B:"")}return B}return t?e:`\\${e}`}));if(r===true){if(n.unescape===true){i=i.replace(/\\/g,"")}else{i=i.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(i===e&&n.contains===true){N.output=e;return N}N.output=s.wrapOutput(i,N,t);return N}while(!eos()){j=W();if(j==="\0"){continue}if(j==="\\"){const e=H();if(e==="/"&&n.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){j+="\\";push({type:"text",value:j});continue}const t=/^\\+/.exec(remaining());let r=0;if(t&&t[0].length>2){r=t[0].length;N.index+=r;if(r%2!==0){j+="\\"}}if(n.unescape===true){j=W()}else{j+=W()}if(N.brackets===0){push({type:"text",value:j});continue}}if(N.brackets>0&&(j!=="]"||I.value==="["||I.value==="[^")){if(n.posix!==false&&j===":"){const e=I.value.slice(1);if(e.includes("[")){I.posix=true;if(e.includes(":")){const e=I.value.lastIndexOf("[");const t=I.value.slice(0,e);const n=I.value.slice(e+2);const r=o[n];if(r){I.value=t+r;N.backtrack=true;W();if(!h.output&&p.indexOf(I)===1){h.output=A}continue}}}}if(j==="["&&H()!==":"||j==="-"&&H()==="]"){j=`\\${j}`}if(j==="]"&&(I.value==="["||I.value==="[^")){j=`\\${j}`}if(n.posix===true&&j==="!"&&I.value==="["){j="^"}I.value+=j;append({value:j});continue}if(N.quotes===1&&j!=='"'){j=s.escapeRegex(j);I.value+=j;append({value:j});continue}if(j==='"'){N.quotes=N.quotes===1?0:1;if(n.keepQuotes===true){push({type:"text",value:j})}continue}if(j==="("){increment("parens");push({type:"paren",value:j});continue}if(j===")"){if(N.parens===0&&n.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=R[R.length-1];if(e&&N.parens===e.parens+1){extglobClose(R.pop());continue}push({type:"paren",value:j,output:N.parens?")":"\\)"});decrement("parens");continue}if(j==="["){if(n.nobracket===true||!remaining().includes("]")){if(n.nobracket!==true&&n.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}j=`\\${j}`}else{increment("brackets")}push({type:"bracket",value:j});continue}if(j==="]"){if(n.nobracket===true||I&&I.type==="bracket"&&I.value.length===1){push({type:"text",value:j,output:`\\${j}`});continue}if(N.brackets===0){if(n.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:j,output:`\\${j}`});continue}decrement("brackets");const e=I.value.slice(1);if(I.posix!==true&&e[0]==="^"&&!e.includes("/")){j=`/${j}`}I.value+=j;append({value:j});if(n.literalBrackets===false||s.hasRegexChars(e)){continue}const t=s.escapeRegex(I.value);N.output=N.output.slice(0,-I.value.length);if(n.literalBrackets===true){N.output+=t;I.value=t;continue}I.value=`(${d}${t}|${I.value})`;N.output+=I.value;continue}if(j==="{"&&n.nobrace!==true){increment("braces");const e={type:"brace",value:j,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};L.push(e);push(e);continue}if(j==="}"){const e=L[L.length-1];if(n.nobrace===true||!e){push({type:"text",value:j,output:j});continue}let t=")";if(e.dots===true){const e=p.slice();const r=[];for(let t=e.length-1;t>=0;t--){p.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){r.unshift(e[t].value)}}t=expandRange(r,n);N.backtrack=true}if(e.comma!==true&&e.dots!==true){const n=N.output.slice(0,e.outputIndex);const r=N.tokens.slice(e.tokensIndex);e.value=e.output="\\{";j=t="\\}";N.output=n;for(const e of r){N.output+=e.output||e.value}}push({type:"brace",value:j,output:t});decrement("braces");L.pop();continue}if(j==="|"){if(R.length>0){R[R.length-1].conditions++}push({type:"text",value:j});continue}if(j===","){let e=j;const t=L[L.length-1];if(t&&M[M.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:j,output:e});continue}if(j==="/"){if(I.type==="dot"&&N.index===N.start+1){N.start=N.index+1;N.consumed="";N.output="";p.pop();I=h;continue}push({type:"slash",value:j,output:S});continue}if(j==="."){if(N.braces>0&&I.type==="dot"){if(I.value===".")I.output=v;const e=L[L.length-1];I.type="dots";I.output+=j;I.value+=j;e.dots=true;continue}if(N.braces+N.parens===0&&I.type!=="bos"&&I.type!=="slash"){push({type:"text",value:j,output:v});continue}push({type:"dot",value:j,output:v});continue}if(j==="?"){const e=I&&I.value==="(";if(!e&&n.noextglob!==true&&H()==="("&&H(2)!=="?"){extglobOpen("qmark",j);continue}if(I&&I.type==="paren"){const e=H();let t=j;if(e==="<"&&!s.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(I.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${j}`}push({type:"text",value:j,output:t});continue}if(n.dot!==true&&(I.type==="slash"||I.type==="bos")){push({type:"qmark",value:j,output:F});continue}push({type:"qmark",value:j,output:k});continue}if(j==="!"){if(n.noextglob!==true&&H()==="("){if(H(2)!=="?"||!/[!=<:]/.test(H(3))){extglobOpen("negate",j);continue}}if(n.nonegate!==true&&N.index===0){negate();continue}}if(j==="+"){if(n.noextglob!==true&&H()==="("&&H(2)!=="?"){extglobOpen("plus",j);continue}if(I&&I.value==="("||n.regex===false){push({type:"plus",value:j,output:w});continue}if(I&&(I.type==="bracket"||I.type==="paren"||I.type==="brace")||N.parens>0){push({type:"plus",value:j});continue}push({type:"plus",value:w});continue}if(j==="@"){if(n.noextglob!==true&&H()==="("&&H(2)!=="?"){push({type:"at",extglob:true,value:j,output:""});continue}push({type:"text",value:j});continue}if(j!=="*"){if(j==="$"||j==="^"){j=`\\${j}`}const e=a.exec(remaining());if(e){j+=e[0];N.index+=e[0].length}push({type:"text",value:j});continue}if(I&&(I.type==="globstar"||I.star===true)){I.type="star";I.star=true;I.value+=j;I.output=B;N.backtrack=true;N.globstar=true;consume(j);continue}let t=remaining();if(n.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",j);continue}if(I.type==="star"){if(n.noglobstar===true){consume(j);continue}const r=I.prev;const s=r.prev;const i=r.type==="slash"||r.type==="bos";const o=s&&(s.type==="star"||s.type==="globstar");if(n.bash===true&&(!i||t[0]&&t[0]!=="/")){push({type:"star",value:j,output:""});continue}const a=N.braces>0&&(r.type==="comma"||r.type==="brace");const u=R.length&&(r.type==="pipe"||r.type==="paren");if(!i&&r.type!=="paren"&&!a&&!u){push({type:"star",value:j,output:""});continue}while(t.slice(0,3)==="/**"){const n=e[N.index+4];if(n&&n!=="/"){break}t=t.slice(3);consume("/**",3)}if(r.type==="bos"&&eos()){I.type="globstar";I.value+=j;I.output=globstar(n);N.output=I.output;N.globstar=true;consume(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&!o&&eos()){N.output=N.output.slice(0,-(r.output+I.output).length);r.output=`(?:${r.output}`;I.type="globstar";I.output=globstar(n)+(n.strictSlashes?")":"|$)");I.value+=j;N.globstar=true;N.output+=r.output+I.output;consume(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(r.output+I.output).length);r.output=`(?:${r.output}`;I.type="globstar";I.output=`${globstar(n)}${S}|${S}${e})`;I.value+=j;N.output+=r.output+I.output;N.globstar=true;consume(j+W());push({type:"slash",value:"/",output:""});continue}if(r.type==="bos"&&t[0]==="/"){I.type="globstar";I.value+=j;I.output=`(?:^|${S}|${globstar(n)}${S})`;N.output=I.output;N.globstar=true;consume(j+W());push({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-I.output.length);I.type="globstar";I.output=globstar(n);I.value+=j;N.output+=I.output;N.globstar=true;consume(j);continue}const r={type:"star",value:j,output:B};if(n.bash===true){r.output=".*?";if(I.type==="bos"||I.type==="slash"){r.output=P+r.output}push(r);continue}if(I&&(I.type==="bracket"||I.type==="paren")&&n.regex===true){r.output=j;push(r);continue}if(N.index===N.start||I.type==="slash"||I.type==="dot"){if(I.type==="dot"){N.output+=C;I.output+=C}else if(n.dot===true){N.output+=_;I.output+=_}else{N.output+=P;I.output+=P}if(H()!=="*"){N.output+=A;I.output+=A}}push(r)}while(N.brackets>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));N.output=s.escapeLast(N.output,"[");decrement("brackets")}while(N.parens>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));N.output=s.escapeLast(N.output,"(");decrement("parens")}while(N.braces>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));N.output=s.escapeLast(N.output,"{");decrement("braces")}if(n.strictSlashes!==true&&(I.type==="star"||I.type==="bracket")){push({type:"maybe_slash",value:"",output:`${S}?`})}if(N.backtrack===true){N.output="";for(const e of N.tokens){N.output+=e.output!=null?e.output:e.value;if(e.suffix){N.output+=e.suffix}}}return N};parse.fastpaths=(e,t)=>{const n={...t};const o=typeof n.maxLength==="number"?Math.min(i,n.maxLength):i;const a=e.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}e=c[e]||e;const u=s.isWindows(t);const{DOT_LITERAL:l,SLASH_LITERAL:f,ONE_CHAR:h,DOTS_SLASH:p,NO_DOT:d,NO_DOTS:g,NO_DOTS_SLASH:y,STAR:b,START_ANCHOR:v}=r.globChars(u);const w=n.dot?g:d;const S=n.dot?y:d;const A=n.capture?"":"?:";const E={negated:false,prefix:""};let D=n.bash===true?".*?":b;if(n.capture){D=`(${D})`}const globstar=e=>{if(e.noglobstar===true)return D;return`(${A}(?:(?!${v}${e.dot?p:l}).)*?)`};const create=e=>{switch(e){case"*":return`${w}${h}${D}`;case".*":return`${l}${h}${D}`;case"*.*":return`${w}${D}${l}${h}${D}`;case"*/*":return`${w}${D}${f}${h}${S}${D}`;case"**":return w+globstar(n);case"**/*":return`(?:${w}${globstar(n)}${f})?${S}${h}${D}`;case"**/*.*":return`(?:${w}${globstar(n)}${f})?${S}${D}${l}${h}${D}`;case"**/.*":return`(?:${w}${globstar(n)}${f})?${l}${h}${D}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=create(t[1]);if(!n)return;return n+l+t[2]}}};const C=s.removePrefix(e,E);let _=create(C);if(_&&n.strictSlashes!==true){_+=`${f}?`}return _};e.exports=parse},3322:(e,t,n)=>{const r=n(1017);const s=n(2429);const i=n(2139);const o=n(479);const a=n(6099);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,n=false)=>{if(Array.isArray(e)){const r=e.map((e=>picomatch(e,t,n)));const arrayMatcher=e=>{for(const t of r){const n=t(e);if(n)return n}return false};return arrayMatcher}const r=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!r){throw new TypeError("Expected pattern to be a non-empty string")}const s=t||{};const i=o.isWindows(t);const a=r?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const u=a.state;delete a.state;let isIgnored=()=>false;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(s.ignore,e,n)}const matcher=(n,r=false)=>{const{isMatch:o,match:c,output:l}=picomatch.test(n,a,t,{glob:e,posix:i});const f={glob:e,state:u,regex:a,posix:i,input:n,output:l,match:c,isMatch:o};if(typeof s.onResult==="function"){s.onResult(f)}if(o===false){f.isMatch=false;return r?f:false}if(isIgnored(n)){if(typeof s.onIgnore==="function"){s.onIgnore(f)}f.isMatch=false;return r?f:false}if(typeof s.onMatch==="function"){s.onMatch(f)}return r?f:true};if(n){matcher.state=u}return matcher};picomatch.test=(e,t,n,{glob:r,posix:s}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const i=n||{};const a=i.format||(s?o.toPosixSlashes:null);let u=e===r;let c=u&&a?a(e):e;if(u===false){c=a?a(e):e;u=c===r}if(u===false||i.capture===true){if(i.matchBase===true||i.basename===true){u=picomatch.matchBase(e,t,n,s)}else{u=t.exec(c)}}return{isMatch:Boolean(u),match:u,output:c}};picomatch.matchBase=(e,t,n,s=o.isWindows(n))=>{const i=t instanceof RegExp?t:picomatch.makeRe(t,n);return i.test(r.basename(e))};picomatch.isMatch=(e,t,n)=>picomatch(t,n)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return i(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>s(e,t);picomatch.compileRe=(e,t,n=false,r=false)=>{if(n===true){return e.output}const s=t||{};const i=s.contains?"":"^";const o=s.contains?"":"$";let a=`${i}(?:${e.output})${o}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const u=picomatch.toRegex(a,t);if(r===true){u.state=e}return u};picomatch.makeRe=(e,t={},n=false,r=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let s={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){s.output=i.fastpaths(e,t)}if(!s.output){s=i(e,t)}return picomatch.compileRe(s,t,n,r)};picomatch.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},2429:(e,t,n)=>{const r=n(479);const{CHAR_ASTERISK:s,CHAR_AT:i,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:d,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:v}=n(6099);const isPathSeparator=e=>e===l||e===o;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const n=t||{};const w=e.length-1;const S=n.parts===true||n.scanToEnd===true;const A=[];const E=[];const D=[];let C=e;let _=-1;let k=0;let F=0;let x=false;let O=false;let P=false;let T=false;let B=false;let N=false;let R=false;let L=false;let M=false;let I=false;let j=0;let H;let W;let q={value:"",depth:0,isGlob:false};const eos=()=>_>=w;const peek=()=>C.charCodeAt(_+1);const advance=()=>{H=W;return C.charCodeAt(++_)};while(_<w){W=advance();let e;if(W===o){R=q.backslashes=true;W=advance();if(W===f){N=true}continue}if(N===true||W===f){j++;while(eos()!==true&&(W=advance())){if(W===o){R=q.backslashes=true;advance();continue}if(W===f){j++;continue}if(N!==true&&W===u&&(W=advance())===u){x=q.isBrace=true;P=q.isGlob=true;I=true;if(S===true){continue}break}if(N!==true&&W===a){x=q.isBrace=true;P=q.isGlob=true;I=true;if(S===true){continue}break}if(W===y){j--;if(j===0){N=false;x=q.isBrace=true;I=true;break}}}if(S===true){continue}break}if(W===l){A.push(_);E.push(q);q={value:"",depth:0,isGlob:false};if(I===true)continue;if(H===u&&_===k+1){k+=2;continue}F=_+1;continue}if(n.noext!==true){const e=W===d||W===i||W===s||W===g||W===c;if(e===true&&peek()===h){P=q.isGlob=true;T=q.isExtglob=true;I=true;if(W===c&&_===k){M=true}if(S===true){while(eos()!==true&&(W=advance())){if(W===o){R=q.backslashes=true;W=advance();continue}if(W===b){P=q.isGlob=true;I=true;break}}continue}break}}if(W===s){if(H===s)B=q.isGlobstar=true;P=q.isGlob=true;I=true;if(S===true){continue}break}if(W===g){P=q.isGlob=true;I=true;if(S===true){continue}break}if(W===p){while(eos()!==true&&(e=advance())){if(e===o){R=q.backslashes=true;advance();continue}if(e===v){O=q.isBracket=true;P=q.isGlob=true;I=true;break}}if(S===true){continue}break}if(n.nonegate!==true&&W===c&&_===k){L=q.negated=true;k++;continue}if(n.noparen!==true&&W===h){P=q.isGlob=true;if(S===true){while(eos()!==true&&(W=advance())){if(W===h){R=q.backslashes=true;W=advance();continue}if(W===b){I=true;break}}continue}break}if(P===true){I=true;if(S===true){continue}break}}if(n.noext===true){T=false;P=false}let U=C;let G="";let V="";if(k>0){G=C.slice(0,k);C=C.slice(k);F-=k}if(U&&P===true&&F>0){U=C.slice(0,F);V=C.slice(F)}else if(P===true){U="";V=C}else{U=C}if(U&&U!==""&&U!=="/"&&U!==C){if(isPathSeparator(U.charCodeAt(U.length-1))){U=U.slice(0,-1)}}if(n.unescape===true){if(V)V=r.removeBackslashes(V);if(U&&R===true){U=r.removeBackslashes(U)}}const K={prefix:G,input:e,start:k,base:U,glob:V,isBrace:x,isBracket:O,isGlob:P,isExtglob:T,isGlobstar:B,negated:L,negatedExtglob:M};if(n.tokens===true){K.maxDepth=0;if(!isPathSeparator(W)){E.push(q)}K.tokens=E}if(n.parts===true||n.tokens===true){let t;for(let r=0;r<A.length;r++){const s=t?t+1:k;const i=A[r];const o=e.slice(s,i);if(n.tokens){if(r===0&&k!==0){E[r].isPrefix=true;E[r].value=G}else{E[r].value=o}depth(E[r]);K.maxDepth+=E[r].depth}if(r!==0||o!==""){D.push(o)}t=i}if(t&&t+1<e.length){const r=e.slice(t+1);D.push(r);if(n.tokens){E[E.length-1].value=r;depth(E[E.length-1]);K.maxDepth+=E[E.length-1].depth}}K.slashes=A;K.parts=D}return K};e.exports=scan},479:(e,t,n)=>{const r=n(1017);const s=process.platform==="win32";const{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=n(6099);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(u,"\\$1");t.toPosixSlashes=e=>e.replace(i,"/");t.removeBackslashes=e=>e.replace(o,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return s===true||r.sep==="\\"};t.escapeLast=(e,n,r)=>{const s=e.lastIndexOf(n,r);if(s===-1)return e;if(e[s-1]==="\\")return t.escapeLast(e,n,s-1);return`${e.slice(0,s)}\\${e.slice(s)}`};t.removePrefix=(e,t={})=>{let n=e;if(n.startsWith("./")){n=n.slice(2);t.prefix="./"}return n};t.wrapOutput=(e,t={},n={})=>{const r=n.contains?"":"^";const s=n.contains?"":"$";let i=`${r}(?:${e})${s}`;if(t.negated===true){i=`(?:^(?!${i}).*$)`}return i}},2757:(e,t,n)=>{var r=n(2081).spawn,s=n(4032);e.exports=function childrenOfPid(e,t){var n=null;if(typeof t!=="function"){throw new Error("childrenOfPid(pid, callback) expects callback")}if(typeof e==="number"){e=e.toString()}var i;if(process.platform==="win32"){i=r("wmic.exe",["PROCESS","GET","Name,ProcessId,ParentProcessId,Status"])}else{i=r("ps",["-A","-o","ppid,pid,stat,comm"])}s.connect(i.stdout,s.split(),s.map((function(e,t){var r=e.trim().split(/\s+/);if(!n){n=r;n=n.map(normalizeHeader);return t()}var s={};var i=n.slice();while(i.length){s[i.shift()]=i.length?r.shift():r.join(" ")}return t(null,s)})),s.writeArray((function(n,r){var s={},i=[];s[e]=true;r.forEach((function(e){if(s[e.PPID]){s[e.PID]=true;i.push(e)}}));t(null,i)}))).on("error",t)};function normalizeHeader(e){if(process.platform!=="win32"){return e}switch(e){case"Name":return"COMMAND";break;case"ParentProcessId":return"PPID";break;case"ProcessId":return"PID";break;case"Status":return"STAT";break;default:throw new Error("Unknown process listing header: "+e)}}},9795:e=>{
|
|
43
|
+
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
44
|
+
let t;e.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):e=>(t||(t=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},2113:e=>{function reusify(e){var t=new e;var n=t;function get(){var r=t;if(r.next){t=r.next}else{t=new e;n=t}r.next=null;return r}function release(e){n.next=e;n=e}return{get:get,release:release}}e.exports=reusify},5288:(e,t,n)=>{
|
|
45
|
+
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
46
|
+
e.exports=runParallel;const r=n(9795);function runParallel(e,t){let n,s,i;let o=true;if(Array.isArray(e)){n=[];s=e.length}else{i=Object.keys(e);n={};s=i.length}function done(e){function end(){if(t)t(e,n);t=null}if(o)r(end);else end()}function each(e,t,r){n[e]=r;if(--s===0||t){done(t)}}if(!s){done(null)}else if(i){i.forEach((function(t){e[t]((function(e,n){each(t,e,n)}))}))}else{e.forEach((function(e,t){e((function(e,n){each(t,e,n)}))}))}o=false}},6354:(e,t,n)=>{var r=n(421);var s=n(1576).StringDecoder;e.exports=split;function split(e,t,n){var i=new s;var o="";var a=n&&n.maxLength;if("function"===typeof e)t=e,e=null;if(!e)e=/\r?\n/;function emit(e,n){if(t){try{n=t(n)}catch(t){return e.emit("error",t)}if("undefined"!==typeof n)e.queue(n)}else e.queue(n)}function next(t,n){var r=((o!=null?o:"")+n).split(e);o=r.pop();if(a&&o.length>a)t.emit("error",new Error("maximum buffer reached"));for(var s=0;s<r.length;s++){var i=r[s];emit(t,i)}}return r((function(e){next(this,i.write(e))}),(function(){if(i.end)next(this,i.end());if(o!=null)emit(this,o);this.queue(null)}))}},5121:(e,t,n)=>{var r=n(8698);e.exports=function(){var e=[].slice.call(arguments),t=e[0],n=e[e.length-1],s=r(t,n);if(e.length==1)return e[0];else if(!e.length)throw new Error("connect called with empty args");function recurse(e){if(e.length<2)return;e[0].pipe(e[1]);recurse(e.slice(1))}recurse(e);function onerror(){var e=[].slice.call(arguments);e.unshift("error");s.emit.apply(s,e)}for(var i=1;i<e.length-1;i++)e[i].on("error",onerror);return s}},421:(e,t,n)=>{var r=n(2781);t=e.exports=through;through.through=through;function through(e,t,n){e=e||function(e){this.queue(e)};t=t||function(){this.queue(null)};var s=false,i=false,o=[],a=false;var u=new r;u.readable=u.writable=true;u.paused=false;u.autoDestroy=!(n&&n.autoDestroy===false);u.write=function(t){e.call(this,t);return!u.paused};function drain(){while(o.length&&!u.paused){var e=o.shift();if(null===e)return u.emit("end");else u.emit("data",e)}}u.queue=u.push=function(e){if(a)return u;if(e===null)a=true;o.push(e);drain();return u};u.on("end",(function(){u.readable=false;if(!u.writable&&u.autoDestroy)process.nextTick((function(){u.destroy()}))}));function _end(){u.writable=false;t.call(u);if(!u.readable&&u.autoDestroy)u.destroy()}u.end=function(e){if(s)return;s=true;if(arguments.length)u.write(e);_end();return u};u.destroy=function(){if(i)return;i=true;s=true;o.length=0;u.writable=u.readable=false;u.emit("close");return u};u.pause=function(){if(u.paused)return;u.paused=true;return u};u.resume=function(){if(u.paused){u.paused=false;u.emit("resume")}drain();if(!u.paused)u.emit("drain");return u};return u}},1861:(e,t,n)=>{
|
|
47
|
+
/*!
|
|
48
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
49
|
+
*
|
|
50
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
51
|
+
* Released under the MIT License.
|
|
52
|
+
*/
|
|
53
|
+
const r=n(5680);const toRegexRange=(e,t,n)=>{if(r(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(r(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let s={relaxZeros:true,...n};if(typeof s.strictZeros==="boolean"){s.relaxZeros=s.strictZeros===false}let i=String(s.relaxZeros);let o=String(s.shorthand);let a=String(s.capture);let u=String(s.wrap);let c=e+":"+t+"="+i+o+a+u;if(toRegexRange.cache.hasOwnProperty(c)){return toRegexRange.cache[c].result}let l=Math.min(e,t);let f=Math.max(e,t);if(Math.abs(l-f)===1){let n=e+"|"+t;if(s.capture){return`(${n})`}if(s.wrap===false){return n}return`(?:${n})`}let h=hasPadding(e)||hasPadding(t);let p={min:e,max:t,a:l,b:f};let d=[];let g=[];if(h){p.isPadded=h;p.maxLen=String(p.max).length}if(l<0){let e=f<0?Math.abs(f):1;g=splitToPatterns(e,Math.abs(l),p,s);l=p.a=0}if(f>=0){d=splitToPatterns(l,f,p,s)}p.negatives=g;p.positives=d;p.result=collatePatterns(g,d,s);if(s.capture===true){p.result=`(${p.result})`}else if(s.wrap!==false&&d.length+g.length>1){p.result=`(?:${p.result})`}toRegexRange.cache[c]=p;return p.result};function collatePatterns(e,t,n){let r=filterPatterns(e,t,"-",false,n)||[];let s=filterPatterns(t,e,"",false,n)||[];let i=filterPatterns(e,t,"-?",true,n)||[];let o=r.concat(i).concat(s);return o.join("|")}function splitToRanges(e,t){let n=1;let r=1;let s=countNines(e,n);let i=new Set([t]);while(e<=s&&s<=t){i.add(s);n+=1;s=countNines(e,n)}s=countZeros(t+1,r)-1;while(e<s&&s<=t){i.add(s);r+=1;s=countZeros(t+1,r)-1}i=[...i];i.sort(compare);return i}function rangeToPattern(e,t,n){if(e===t){return{pattern:e,count:[],digits:0}}let r=zip(e,t);let s=r.length;let i="";let o=0;for(let e=0;e<s;e++){let[t,s]=r[e];if(t===s){i+=t}else if(t!=="0"||s!=="9"){i+=toCharacterClass(t,s,n)}else{o++}}if(o){i+=n.shorthand===true?"\\d":"[0-9]"}return{pattern:i,count:[o],digits:s}}function splitToPatterns(e,t,n,r){let s=splitToRanges(e,t);let i=[];let o=e;let a;for(let e=0;e<s.length;e++){let t=s[e];let u=rangeToPattern(String(o),String(t),r);let c="";if(!n.isPadded&&a&&a.pattern===u.pattern){if(a.count.length>1){a.count.pop()}a.count.push(u.count[0]);a.string=a.pattern+toQuantifier(a.count);o=t+1;continue}if(n.isPadded){c=padZeros(t,n,r)}u.string=c+u.pattern+toQuantifier(u.count);i.push(u);o=t+1;a=u}return i}function filterPatterns(e,t,n,r,s){let i=[];for(let s of e){let{string:e}=s;if(!r&&!contains(t,"string",e)){i.push(n+e)}if(r&&contains(t,"string",e)){i.push(n+e)}}return i}function zip(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}function compare(e,t){return e>t?1:t>e?-1:0}function contains(e,t,n){return e.some((e=>e[t]===n))}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,n=""]=e;if(n||t>1){return`{${t+(n?","+n:"")}}`}return""}function toCharacterClass(e,t,n){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,n){if(!t.isPadded){return e}let r=Math.abs(t.maxLen-String(e).length);let s=n.relaxZeros!==false;switch(r){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:{return s?`0{0,${r}}`:`0{${r}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},9046:(e,t)=>{t.fromCallback=function(e){return Object.defineProperty((function(...t){if(typeof t[t.length-1]==="function")e.apply(this,t);else{return new Promise(((n,r)=>{t.push(((e,t)=>e!=null?r(e):n(t)));e.apply(this,t)}))}}),"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if(typeof n!=="function")return e.apply(this,t);else{t.pop();e.apply(this,t).then((e=>n(null,e)),n)}}),"name",{value:e.name})}},6143:(e,t,n)=>{const r=n(7126);const{join:s,delimiter:i,sep:o,posix:a}=n(1017);const u=process.platform==="win32";const c=new RegExp(`[${a.sep}${o===a.sep?"":o}]`.replace(/(\\)/g,"\\$1"));const l=new RegExp(`^\\.${c.source}`);const getNotFoundError=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"});const getPathInfo=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:r=i})=>{const s=e.match(c)?[""]:[...u?[process.cwd()]:[],...(t||"").split(r)];if(u){const t=n||[".EXE",".CMD",".BAT",".COM"].join(r);const i=t.split(r).reduce(((e,t)=>{e.push(t);e.push(t.toLowerCase());return e}),[]);if(e.includes(".")&&i[0]!==""){i.unshift("")}return{pathEnv:s,pathExt:i,pathExtExe:t}}return{pathEnv:s,pathExt:[""]}};const getPathPart=(e,t)=>{const n=/^".*"$/.test(e)?e.slice(1,-1):e;const r=!n&&l.test(t)?t.slice(0,2):"";return r+s(n,t)};const which=async(e,t={})=>{const{pathEnv:n,pathExt:s,pathExtExe:i}=getPathInfo(e,t);const o=[];for(const a of n){const n=getPathPart(a,e);for(const e of s){const s=n+e;const a=await r(s,{pathExt:i,ignoreErrors:true});if(a){if(!t.all){return s}o.push(s)}}}if(t.all&&o.length){return o}if(t.nothrow){return null}throw getNotFoundError(e)};const whichSync=(e,t={})=>{const{pathEnv:n,pathExt:s,pathExtExe:i}=getPathInfo(e,t);const o=[];for(const a of n){const n=getPathPart(a,e);for(const e of s){const s=n+e;const a=r.sync(s,{pathExt:i,ignoreErrors:true});if(a){if(!t.all){return s}o.push(s)}}}if(t.all&&o.length){return o}if(t.nothrow){return null}throw getNotFoundError(e)};e.exports=which;which.sync=whichSync},2221:(e,t,n)=>{e.exports=writeFile;e.exports.sync=writeFileSync;e.exports._getTmpname=getTmpname;e.exports._cleanupOnExit=cleanupOnExit;var r=n(7758);var s=n(2527);var i=n(7392);var o=n(1017);var a={};var u=function getId(){try{var e=n(1267);return e.threadId}catch(e){return 0}}();var c=0;function getTmpname(e){return e+"."+s(__filename).hash(String(process.pid)).hash(String(u)).hash(String(++c)).result()}function cleanupOnExit(e){return function(){try{r.unlinkSync(typeof e==="function"?e():e)}catch(e){}}}function writeFile(e,t,n,s){if(n){if(n instanceof Function){s=n;n={}}else if(typeof n==="string"){n={encoding:n}}}else{n={}}var u=n.Promise||global.Promise;var c;var l;var f;var h=i(cleanupOnExit((()=>f)));var p=o.resolve(e);new u((function serializeSameFile(e){if(!a[p])a[p]=[];a[p].push(e);if(a[p].length===1)e()})).then((function getRealPath(){return new u((function(t){r.realpath(e,(function(n,r){c=r||e;f=getTmpname(c);t()}))}))})).then((function stat(){return new u((function stat(e){if(n.mode&&n.chown)e();else{r.stat(c,(function(t,r){if(t||!r)e();else{n=Object.assign({},n);if(n.mode==null){n.mode=r.mode}if(n.chown==null&&process.getuid){n.chown={uid:r.uid,gid:r.gid}}e()}}))}}))})).then((function thenWriteFile(){return new u((function(e,t){r.open(f,"w",n.mode,(function(n,r){l=r;if(n)t(n);else e()}))}))})).then((function write(){return new u((function(e,s){if(Buffer.isBuffer(t)){r.write(l,t,0,t.length,0,(function(t){if(t)s(t);else e()}))}else if(t!=null){r.write(l,String(t),0,String(n.encoding||"utf8"),(function(t){if(t)s(t);else e()}))}else e()}))})).then((function syncAndClose(){return new u((function(e,t){if(n.fsync!==false){r.fsync(l,(function(n){if(n)r.close(l,(()=>t(n)));else r.close(l,e)}))}else{r.close(l,e)}}))})).then((function chown(){l=null;if(n.chown){return new u((function(e,t){r.chown(f,n.chown.uid,n.chown.gid,(function(n){if(n)t(n);else e()}))}))}})).then((function chmod(){if(n.mode){return new u((function(e,t){r.chmod(f,n.mode,(function(n){if(n)t(n);else e()}))}))}})).then((function rename(){return new u((function(e,t){r.rename(f,c,(function(n){if(n)t(n);else e()}))}))})).then((function success(){h();s()}),(function fail(e){return new u((e=>l?r.close(l,e):e())).then((()=>{h();r.unlink(f,(function(){s(e)}))}))})).then((function checkQueue(){a[p].shift();if(a[p].length>0){a[p][0]()}else delete a[p]}))}function writeFileSync(e,t,n){if(typeof n==="string")n={encoding:n};else if(!n)n={};try{e=r.realpathSync(e)}catch(e){}var s=getTmpname(e);if(!n.mode||!n.chown){try{var o=r.statSync(e);n=Object.assign({},n);if(!n.mode){n.mode=o.mode}if(!n.chown&&process.getuid){n.chown={uid:o.uid,gid:o.gid}}}catch(e){}}var a;var u=cleanupOnExit(s);var c=i(u);try{a=r.openSync(s,"w",n.mode);if(Buffer.isBuffer(t)){r.writeSync(a,t,0,t.length,0)}else if(t!=null){r.writeSync(a,String(t),0,String(n.encoding||"utf8"))}if(n.fsync!==false){r.fsyncSync(a)}r.closeSync(a);if(n.chown)r.chownSync(s,n.chown.uid,n.chown.gid);if(n.mode)r.chmodSync(s,n.mode);r.renameSync(s,e);c()}catch(e){if(a){try{r.closeSync(a)}catch(e){}}c();u();throw e}}},7392:(e,t,n)=>{var r=global.process;const processOk=function(e){return e&&typeof e==="object"&&typeof e.removeListener==="function"&&typeof e.emit==="function"&&typeof e.reallyExit==="function"&&typeof e.listeners==="function"&&typeof e.kill==="function"&&typeof e.pid==="number"&&typeof e.on==="function"};if(!processOk(r)){e.exports=function(){return function(){}}}else{var s=n(9491);var i=n(5904);var o=/^win/i.test(r.platform);var a=n(2361);if(typeof a!=="function"){a=a.EventEmitter}var u;if(r.__signal_exit_emitter__){u=r.__signal_exit_emitter__}else{u=r.__signal_exit_emitter__=new a;u.count=0;u.emitted={}}if(!u.infinite){u.setMaxListeners(Infinity);u.infinite=true}e.exports=function(e,t){if(!processOk(global.process)){return function(){}}s.equal(typeof e,"function","a callback must be provided for exit handler");if(h===false){p()}var n="exit";if(t&&t.alwaysLast){n="afterexit"}var remove=function(){u.removeListener(n,e);if(u.listeners("exit").length===0&&u.listeners("afterexit").length===0){c()}};u.on(n,e);return remove};var c=function unload(){if(!h||!processOk(global.process)){return}h=false;i.forEach((function(e){try{r.removeListener(e,f[e])}catch(e){}}));r.emit=y;r.reallyExit=d;u.count-=1};e.exports.unload=c;var l=function emit(e,t,n){if(u.emitted[e]){return}u.emitted[e]=true;u.emit(e,t,n)};var f={};i.forEach((function(e){f[e]=function listener(){if(!processOk(global.process)){return}var t=r.listeners(e);if(t.length===u.count){c();l("exit",null,e);l("afterexit",null,e);if(o&&e==="SIGHUP"){e="SIGINT"}r.kill(r.pid,e)}}}));e.exports.signals=function(){return i};var h=false;var p=function load(){if(h||!processOk(global.process)){return}h=true;u.count+=1;i=i.filter((function(e){try{r.on(e,f[e]);return true}catch(e){return false}}));r.emit=b;r.reallyExit=g};e.exports.load=p;var d=r.reallyExit;var g=function processReallyExit(e){if(!processOk(global.process)){return}r.exitCode=e||0;l("exit",r.exitCode,null);l("afterexit",r.exitCode,null);d.call(r,r.exitCode)};var y=r.emit;var b=function processEmit(e,t){if(e==="exit"&&processOk(global.process)){if(t!==undefined){r.exitCode=t}var n=y.apply(this,arguments);l("exit",r.exitCode,null);l("afterexit",r.exitCode,null);return n}else{return y.apply(this,arguments)}}}},5904:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},9491:t=>{t.exports=e(import.meta.url)("assert")},4300:t=>{t.exports=e(import.meta.url)("buffer")},2081:t=>{t.exports=e(import.meta.url)("child_process")},2057:t=>{t.exports=e(import.meta.url)("constants")},2361:t=>{t.exports=e(import.meta.url)("events")},7147:t=>{t.exports=e(import.meta.url)("fs")},2037:t=>{t.exports=e(import.meta.url)("os")},1017:t=>{t.exports=e(import.meta.url)("path")},7282:t=>{t.exports=e(import.meta.url)("process")},2781:t=>{t.exports=e(import.meta.url)("stream")},1576:t=>{t.exports=e(import.meta.url)("string_decoder")},3837:t=>{t.exports=e(import.meta.url)("util")},1267:t=>{t.exports=e(import.meta.url)("worker_threads")},8875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isIdentifierChar=isIdentifierChar;t.isIdentifierName=isIdentifierName;t.isIdentifierStart=isIdentifierStart;let n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let r="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const s=new RegExp("["+n+"]");const i=new RegExp("["+n+r+"]");n=r=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let n=65536;for(let r=0,s=t.length;r<s;r+=2){n+=t[r];if(n>e)return false;n+=t[r+1];if(n>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&s.test(String.fromCharCode(e))}return isInAstralSet(e,o)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&i.test(String.fromCharCode(e))}return isInAstralSet(e,o)||isInAstralSet(e,a)}function isIdentifierName(e){let t=true;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if((r&64512)===55296&&n+1<e.length){const t=e.charCodeAt(++n);if((t&64512)===56320){r=65536+((r&1023)<<10)+(t&1023)}}if(t){t=false;if(!isIdentifierStart(r)){return false}}else if(!isIdentifierChar(r)){return false}}return!t}},2738:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"isIdentifierChar",{enumerable:true,get:function(){return r.isIdentifierChar}});Object.defineProperty(t,"isIdentifierName",{enumerable:true,get:function(){return r.isIdentifierName}});Object.defineProperty(t,"isIdentifierStart",{enumerable:true,get:function(){return r.isIdentifierStart}});Object.defineProperty(t,"isKeyword",{enumerable:true,get:function(){return s.isKeyword}});Object.defineProperty(t,"isReservedWord",{enumerable:true,get:function(){return s.isReservedWord}});Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return s.isStrictBindOnlyReservedWord}});Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:true,get:function(){return s.isStrictBindReservedWord}});Object.defineProperty(t,"isStrictReservedWord",{enumerable:true,get:function(){return s.isStrictReservedWord}});var r=n(8875);var s=n(17)},17:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isKeyword=isKeyword;t.isReservedWord=isReservedWord;t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;t.isStrictBindReservedWord=isStrictBindReservedWord;t.isStrictReservedWord=isStrictReservedWord;const n={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const r=new Set(n.keyword);const s=new Set(n.strict);const i=new Set(n.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||s.has(e)}function isStrictBindOnlyReservedWord(e){return i.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return r.has(e)}},7654:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=highlight;t.shouldHighlight=shouldHighlight;var r=n(1531);var s=n(2738);var i=_interopRequireWildcard(n(7658),true);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function(e){return e?n:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=s?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}const o=new Set(["as","async","from","get","of","set"]);function getDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}const a=/\r\n|[\n\r\u2028\u2029]/;const u=/^[()[\]{}]$/;let c;{const e=/^[a-z][\w-]*$/i;const getTokenType=function(t,n,r){if(t.type==="name"){if((0,s.isKeyword)(t.value)||(0,s.isStrictReservedWord)(t.value,true)||o.has(t.value)){return"keyword"}if(e.test(t.value)&&(r[n-1]==="<"||r.slice(n-2,n)=="</")){return"jsxIdentifier"}if(t.value[0]!==t.value[0].toLowerCase()){return"capitalized"}}if(t.type==="punctuator"&&u.test(t.value)){return"bracket"}if(t.type==="invalid"&&(t.value==="@"||t.value==="#")){return"punctuator"}return t.type};c=function*(e){let t;while(t=r.default.exec(e)){const n=r.matchToToken(t);yield{type:getTokenType(n,t.index,e),value:n.value}}}}function highlightTokens(e,t){let n="";for(const{type:r,value:s}of c(t)){const t=e[r];if(t){n+=s.split(a).map((e=>t(e))).join("\n")}else{n+=s}}return n}function shouldHighlight(e){return i.default.level>0||e.forceColor}let l=undefined;function getChalk(e){if(e){var t;(t=l)!=null?t:l=new i.default.constructor({enabled:true,level:1});return l}return i.default}{t.getChalk=e=>getChalk(e.forceColor)}function highlight(e,t={}){if(e!==""&&shouldHighlight(t)){const n=getDefs(getChalk(t.forceColor));return highlightTokens(n,e)}else{return e}}},4379:(e,t,n)=>{const{Argument:r}=n(9414);const{Command:s}=n(552);const{CommanderError:i,InvalidArgumentError:o}=n(2625);const{Help:a}=n(5153);const{Option:u}=n(6558);t=e.exports=new s;t.program=t;t.Command=s;t.Option=u;t.Argument=r;t.Help=a;t.CommanderError=i;t.InvalidArgumentError=o;t.InvalidOptionArgumentError=o},9414:(e,t,n)=>{const{InvalidArgumentError:r}=n(2625);class Argument{constructor(e,t){this.description=t||"";this.variadic=false;this.parseArg=undefined;this.defaultValue=undefined;this.defaultValueDescription=undefined;this.argChoices=undefined;switch(e[0]){case"<":this.required=true;this._name=e.slice(1,-1);break;case"[":this.required=false;this._name=e.slice(1,-1);break;default:this.required=true;this._name=e;break}if(this._name.length>3&&this._name.slice(-3)==="..."){this.variadic=true;this._name=this._name.slice(0,-3)}}name(){return this._name}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}argParser(e){this.parseArg=e;return this}choices(e){this.argChoices=e.slice();this.parseArg=(e,t)=>{if(!this.argChoices.includes(e)){throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(e,t)}return e};return this}argRequired(){this.required=true;return this}argOptional(){this.required=false;return this}}function humanReadableArgName(e){const t=e.name()+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}t.Argument=Argument;t.humanReadableArgName=humanReadableArgName},552:(e,t,n)=>{const r=n(2361).EventEmitter;const s=n(2081);const i=n(1017);const o=n(7147);const a=n(7282);const{Argument:u,humanReadableArgName:c}=n(9414);const{CommanderError:l}=n(2625);const{Help:f}=n(5153);const{Option:h,splitOptionFlags:p,DualOptions:d}=n(6558);const{suggestSimilar:g}=n(7592);class Command extends r{constructor(e){super();this.commands=[];this.options=[];this.parent=null;this._allowUnknownOption=false;this._allowExcessArguments=true;this.registeredArguments=[];this._args=this.registeredArguments;this.args=[];this.rawArgs=[];this.processedArgs=[];this._scriptPath=null;this._name=e||"";this._optionValues={};this._optionValueSources={};this._storeOptionsAsProperties=false;this._actionHandler=null;this._executableHandler=false;this._executableFile=null;this._executableDir=null;this._defaultCommandName=null;this._exitCallback=null;this._aliases=[];this._combineFlagAndOptionalValue=true;this._description="";this._summary="";this._argsDescription=undefined;this._enablePositionalOptions=false;this._passThroughOptions=false;this._lifeCycleHooks={};this._showHelpAfterError=false;this._showSuggestionAfterError=true;this._outputConfiguration={writeOut:e=>a.stdout.write(e),writeErr:e=>a.stderr.write(e),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:undefined,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:undefined,outputError:(e,t)=>t(e)};this._hidden=false;this._hasHelpOption=true;this._helpFlags="-h, --help";this._helpDescription="display help for command";this._helpShortFlag="-h";this._helpLongFlag="--help";this._addImplicitHelpCommand=undefined;this._helpCommandName="help";this._helpCommandnameAndArgs="help [command]";this._helpCommandDescription="display help for command";this._helpConfiguration={}}copyInheritedSettings(e){this._outputConfiguration=e._outputConfiguration;this._hasHelpOption=e._hasHelpOption;this._helpFlags=e._helpFlags;this._helpDescription=e._helpDescription;this._helpShortFlag=e._helpShortFlag;this._helpLongFlag=e._helpLongFlag;this._helpCommandName=e._helpCommandName;this._helpCommandnameAndArgs=e._helpCommandnameAndArgs;this._helpCommandDescription=e._helpCommandDescription;this._helpConfiguration=e._helpConfiguration;this._exitCallback=e._exitCallback;this._storeOptionsAsProperties=e._storeOptionsAsProperties;this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue;this._allowExcessArguments=e._allowExcessArguments;this._enablePositionalOptions=e._enablePositionalOptions;this._showHelpAfterError=e._showHelpAfterError;this._showSuggestionAfterError=e._showSuggestionAfterError;return this}_getCommandAndAncestors(){const e=[];for(let t=this;t;t=t.parent){e.push(t)}return e}command(e,t,n){let r=t;let s=n;if(typeof r==="object"&&r!==null){s=r;r=null}s=s||{};const[,i,o]=e.match(/([^ ]+) *(.*)/);const a=this.createCommand(i);if(r){a.description(r);a._executableHandler=true}if(s.isDefault)this._defaultCommandName=a._name;a._hidden=!!(s.noHelp||s.hidden);a._executableFile=s.executableFile||null;if(o)a.arguments(o);this.commands.push(a);a.parent=this;a.copyInheritedSettings(this);if(r)return this;return a}createCommand(e){return new Command(e)}createHelp(){return Object.assign(new f,this.configureHelp())}configureHelp(e){if(e===undefined)return this._helpConfiguration;this._helpConfiguration=e;return this}configureOutput(e){if(e===undefined)return this._outputConfiguration;Object.assign(this._outputConfiguration,e);return this}showHelpAfterError(e=true){if(typeof e!=="string")e=!!e;this._showHelpAfterError=e;return this}showSuggestionAfterError(e=true){this._showSuggestionAfterError=!!e;return this}addCommand(e,t){if(!e._name){throw new Error(`Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()`)}t=t||{};if(t.isDefault)this._defaultCommandName=e._name;if(t.noHelp||t.hidden)e._hidden=true;this.commands.push(e);e.parent=this;return this}createArgument(e,t){return new u(e,t)}argument(e,t,n,r){const s=this.createArgument(e,t);if(typeof n==="function"){s.default(r).argParser(n)}else{s.default(n)}this.addArgument(s);return this}arguments(e){e.trim().split(/ +/).forEach((e=>{this.argument(e)}));return this}addArgument(e){const t=this.registeredArguments.slice(-1)[0];if(t&&t.variadic){throw new Error(`only the last argument can be variadic '${t.name()}'`)}if(e.required&&e.defaultValue!==undefined&&e.parseArg===undefined){throw new Error(`a default value for a required argument is never used: '${e.name()}'`)}this.registeredArguments.push(e);return this}addHelpCommand(e,t){if(e===false){this._addImplicitHelpCommand=false}else{this._addImplicitHelpCommand=true;if(typeof e==="string"){this._helpCommandName=e.split(" ")[0];this._helpCommandnameAndArgs=e}this._helpCommandDescription=t||this._helpCommandDescription}return this}_hasImplicitHelpCommand(){if(this._addImplicitHelpCommand===undefined){return this.commands.length&&!this._actionHandler&&!this._findCommand("help")}return this._addImplicitHelpCommand}hook(e,t){const n=["preSubcommand","preAction","postAction"];if(!n.includes(e)){throw new Error(`Unexpected value for event passed to hook : '${e}'.\nExpecting one of '${n.join("', '")}'`)}if(this._lifeCycleHooks[e]){this._lifeCycleHooks[e].push(t)}else{this._lifeCycleHooks[e]=[t]}return this}exitOverride(e){if(e){this._exitCallback=e}else{this._exitCallback=e=>{if(e.code!=="commander.executeSubCommandAsync"){throw e}else{}}}return this}_exit(e,t,n){if(this._exitCallback){this._exitCallback(new l(e,t,n))}a.exit(e)}action(e){const listener=t=>{const n=this.registeredArguments.length;const r=t.slice(0,n);if(this._storeOptionsAsProperties){r[n]=this}else{r[n]=this.opts()}r.push(this);return e.apply(this,r)};this._actionHandler=listener;return this}createOption(e,t){return new h(e,t)}_callParseArg(e,t,n,r){try{return e.parseArg(t,n)}catch(e){if(e.code==="commander.invalidArgument"){const t=`${r} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}addOption(e){const t=e.name();const n=e.attributeName();if(e.negate){const t=e.long.replace(/^--no-/,"--");if(!this._findOption(t)){this.setOptionValueWithSource(n,e.defaultValue===undefined?true:e.defaultValue,"default")}}else if(e.defaultValue!==undefined){this.setOptionValueWithSource(n,e.defaultValue,"default")}this.options.push(e);const handleOptionValue=(t,r,s)=>{if(t==null&&e.presetArg!==undefined){t=e.presetArg}const i=this.getOptionValue(n);if(t!==null&&e.parseArg){t=this._callParseArg(e,t,i,r)}else if(t!==null&&e.variadic){t=e._concatValue(t,i)}if(t==null){if(e.negate){t=false}else if(e.isBoolean()||e.optional){t=true}else{t=""}}this.setOptionValueWithSource(n,t,s)};this.on("option:"+t,(t=>{const n=`error: option '${e.flags}' argument '${t}' is invalid.`;handleOptionValue(t,n,"cli")}));if(e.envVar){this.on("optionEnv:"+t,(t=>{const n=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;handleOptionValue(t,n,"env")}))}return this}_optionEx(e,t,n,r,s){if(typeof t==="object"&&t instanceof h){throw new Error("To add an Option object use addOption() instead of option() or requiredOption()")}const i=this.createOption(t,n);i.makeOptionMandatory(!!e.mandatory);if(typeof r==="function"){i.default(s).argParser(r)}else if(r instanceof RegExp){const e=r;r=(t,n)=>{const r=e.exec(t);return r?r[0]:n};i.default(s).argParser(r)}else{i.default(r)}return this.addOption(i)}option(e,t,n,r){return this._optionEx({},e,t,n,r)}requiredOption(e,t,n,r){return this._optionEx({mandatory:true},e,t,n,r)}combineFlagAndOptionalValue(e=true){this._combineFlagAndOptionalValue=!!e;return this}allowUnknownOption(e=true){this._allowUnknownOption=!!e;return this}allowExcessArguments(e=true){this._allowExcessArguments=!!e;return this}enablePositionalOptions(e=true){this._enablePositionalOptions=!!e;return this}passThroughOptions(e=true){this._passThroughOptions=!!e;if(!!this.parent&&e&&!this.parent._enablePositionalOptions){throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)")}return this}storeOptionsAsProperties(e=true){if(this.options.length){throw new Error("call .storeOptionsAsProperties() before adding options")}this._storeOptionsAsProperties=!!e;return this}getOptionValue(e){if(this._storeOptionsAsProperties){return this[e]}return this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,undefined)}setOptionValueWithSource(e,t,n){if(this._storeOptionsAsProperties){this[e]=t}else{this._optionValues[e]=t}this._optionValueSources[e]=n;return this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;this._getCommandAndAncestors().forEach((n=>{if(n.getOptionValueSource(e)!==undefined){t=n.getOptionValueSource(e)}}));return t}_prepareUserArgs(e,t){if(e!==undefined&&!Array.isArray(e)){throw new Error("first parameter to parse must be array or undefined")}t=t||{};if(e===undefined){e=a.argv;if(a.versions&&a.versions.electron){t.from="electron"}}this.rawArgs=e.slice();let n;switch(t.from){case undefined:case"node":this._scriptPath=e[1];n=e.slice(2);break;case"electron":if(a.defaultApp){this._scriptPath=e[1];n=e.slice(2)}else{n=e.slice(1)}break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);this._name=this._name||"program";return n}parse(e,t){const n=this._prepareUserArgs(e,t);this._parseCommand([],n);return this}async parseAsync(e,t){const n=this._prepareUserArgs(e,t);await this._parseCommand([],n);return this}_executeSubCommand(e,t){t=t.slice();let n=false;const r=[".js",".ts",".tsx",".mjs",".cjs"];function findFile(e,t){const n=i.resolve(e,t);if(o.existsSync(n))return n;if(r.includes(i.extname(t)))return undefined;const s=r.find((e=>o.existsSync(`${n}${e}`)));if(s)return`${n}${s}`;return undefined}this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();let u=e._executableFile||`${this._name}-${e._name}`;let c=this._executableDir||"";if(this._scriptPath){let e;try{e=o.realpathSync(this._scriptPath)}catch(t){e=this._scriptPath}c=i.resolve(i.dirname(e),c)}if(c){let t=findFile(c,u);if(!t&&!e._executableFile&&this._scriptPath){const n=i.basename(this._scriptPath,i.extname(this._scriptPath));if(n!==this._name){t=findFile(c,`${n}-${e._name}`)}}u=t||u}n=r.includes(i.extname(u));let f;if(a.platform!=="win32"){if(n){t.unshift(u);t=incrementNodeInspectorPort(a.execArgv).concat(t);f=s.spawn(a.argv[0],t,{stdio:"inherit"})}else{f=s.spawn(u,t,{stdio:"inherit"})}}else{t.unshift(u);t=incrementNodeInspectorPort(a.execArgv).concat(t);f=s.spawn(a.execPath,t,{stdio:"inherit"})}if(!f.killed){const e=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];e.forEach((e=>{a.on(e,(()=>{if(f.killed===false&&f.exitCode===null){f.kill(e)}}))}))}const h=this._exitCallback;if(!h){f.on("close",a.exit.bind(a))}else{f.on("close",(()=>{h(new l(a.exitCode||0,"commander.executeSubCommandAsync","(close)"))}))}f.on("error",(t=>{if(t.code==="ENOENT"){const t=c?`searched for local subcommand relative to directory '${c}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory";const n=`'${u}' does not exist\n - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${t}`;throw new Error(n)}else if(t.code==="EACCES"){throw new Error(`'${u}' not executable`)}if(!h){a.exit(1)}else{const e=new l(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t;h(e)}}));this.runningCommand=f}_dispatchSubcommand(e,t,n){const r=this._findCommand(e);if(!r)this.help({error:true});let s;s=this._chainOrCallSubCommandHook(s,r,"preSubcommand");s=this._chainOrCall(s,(()=>{if(r._executableHandler){this._executeSubCommand(r,t.concat(n))}else{return r._parseCommand(t,n)}}));return s}_dispatchHelpCommand(e){if(!e){this.help()}const t=this._findCommand(e);if(t&&!t._executableHandler){t.help()}return this._dispatchSubcommand(e,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){this.registeredArguments.forEach(((e,t)=>{if(e.required&&this.args[t]==null){this.missingArgument(e.name())}}));if(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic){return}if(this.args.length>this.registeredArguments.length){this._excessArguments(this.args)}}_processArguments(){const myParseArg=(e,t,n)=>{let r=t;if(t!==null&&e.parseArg){const s=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;r=this._callParseArg(e,t,n,s)}return r};this._checkNumberOfArguments();const e=[];this.registeredArguments.forEach(((t,n)=>{let r=t.defaultValue;if(t.variadic){if(n<this.args.length){r=this.args.slice(n);if(t.parseArg){r=r.reduce(((e,n)=>myParseArg(t,n,e)),t.defaultValue)}}else if(r===undefined){r=[]}}else if(n<this.args.length){r=this.args[n];if(t.parseArg){r=myParseArg(t,r,t.defaultValue)}}e[n]=r}));this.processedArgs=e}_chainOrCall(e,t){if(e&&e.then&&typeof e.then==="function"){return e.then((()=>t()))}return t()}_chainOrCallHooks(e,t){let n=e;const r=[];this._getCommandAndAncestors().reverse().filter((e=>e._lifeCycleHooks[t]!==undefined)).forEach((e=>{e._lifeCycleHooks[t].forEach((t=>{r.push({hookedCommand:e,callback:t})}))}));if(t==="postAction"){r.reverse()}r.forEach((e=>{n=this._chainOrCall(n,(()=>e.callback(e.hookedCommand,this)))}));return n}_chainOrCallSubCommandHook(e,t,n){let r=e;if(this._lifeCycleHooks[n]!==undefined){this._lifeCycleHooks[n].forEach((e=>{r=this._chainOrCall(r,(()=>e(this,t)))}))}return r}_parseCommand(e,t){const n=this.parseOptions(t);this._parseOptionsEnv();this._parseOptionsImplied();e=e.concat(n.operands);t=n.unknown;this.args=e.concat(t);if(e&&this._findCommand(e[0])){return this._dispatchSubcommand(e[0],e.slice(1),t)}if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName){return this._dispatchHelpCommand(e[1])}if(this._defaultCommandName){outputHelpIfRequested(this,t);return this._dispatchSubcommand(this._defaultCommandName,e,t)}if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName){this.help({error:true})}outputHelpIfRequested(this,n.unknown);this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();const checkForUnknownOptions=()=>{if(n.unknown.length>0){this.unknownOption(n.unknown[0])}};const r=`command:${this.name()}`;if(this._actionHandler){checkForUnknownOptions();this._processArguments();let n;n=this._chainOrCallHooks(n,"preAction");n=this._chainOrCall(n,(()=>this._actionHandler(this.processedArgs)));if(this.parent){n=this._chainOrCall(n,(()=>{this.parent.emit(r,e,t)}))}n=this._chainOrCallHooks(n,"postAction");return n}if(this.parent&&this.parent.listenerCount(r)){checkForUnknownOptions();this._processArguments();this.parent.emit(r,e,t)}else if(e.length){if(this._findCommand("*")){return this._dispatchSubcommand("*",e,t)}if(this.listenerCount("command:*")){this.emit("command:*",e,t)}else if(this.commands.length){this.unknownCommand()}else{checkForUnknownOptions();this._processArguments()}}else if(this.commands.length){checkForUnknownOptions();this.help({error:true})}else{checkForUnknownOptions();this._processArguments()}}_findCommand(e){if(!e)return undefined;return this.commands.find((t=>t._name===e||t._aliases.includes(e)))}_findOption(e){return this.options.find((t=>t.is(e)))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((e=>{e.options.forEach((t=>{if(t.mandatory&&e.getOptionValue(t.attributeName())===undefined){e.missingMandatoryOptionValue(t)}}))}))}_checkForConflictingLocalOptions(){const e=this.options.filter((e=>{const t=e.attributeName();if(this.getOptionValue(t)===undefined){return false}return this.getOptionValueSource(t)!=="default"}));const t=e.filter((e=>e.conflictsWith.length>0));t.forEach((t=>{const n=e.find((e=>t.conflictsWith.includes(e.attributeName())));if(n){this._conflictingOption(t,n)}}))}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((e=>{e._checkForConflictingLocalOptions()}))}parseOptions(e){const t=[];const n=[];let r=t;const s=e.slice();function maybeOption(e){return e.length>1&&e[0]==="-"}let i=null;while(s.length){const e=s.shift();if(e==="--"){if(r===n)r.push(e);r.push(...s);break}if(i&&!maybeOption(e)){this.emit(`option:${i.name()}`,e);continue}i=null;if(maybeOption(e)){const t=this._findOption(e);if(t){if(t.required){const e=s.shift();if(e===undefined)this.optionMissingArgument(t);this.emit(`option:${t.name()}`,e)}else if(t.optional){let e=null;if(s.length>0&&!maybeOption(s[0])){e=s.shift()}this.emit(`option:${t.name()}`,e)}else{this.emit(`option:${t.name()}`)}i=t.variadic?t:null;continue}}if(e.length>2&&e[0]==="-"&&e[1]!=="-"){const t=this._findOption(`-${e[1]}`);if(t){if(t.required||t.optional&&this._combineFlagAndOptionalValue){this.emit(`option:${t.name()}`,e.slice(2))}else{this.emit(`option:${t.name()}`);s.unshift(`-${e.slice(2)}`)}continue}}if(/^--[^=]+=/.test(e)){const t=e.indexOf("=");const n=this._findOption(e.slice(0,t));if(n&&(n.required||n.optional)){this.emit(`option:${n.name()}`,e.slice(t+1));continue}}if(maybeOption(e)){r=n}if((this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&n.length===0){if(this._findCommand(e)){t.push(e);if(s.length>0)n.push(...s);break}else if(e===this._helpCommandName&&this._hasImplicitHelpCommand()){t.push(e);if(s.length>0)t.push(...s);break}else if(this._defaultCommandName){n.push(e);if(s.length>0)n.push(...s);break}}if(this._passThroughOptions){r.push(e);if(s.length>0)r.push(...s);break}r.push(e)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){const e={};const t=this.options.length;for(let n=0;n<t;n++){const t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce(((e,t)=>Object.assign(e,t.opts())),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr);if(typeof this._showHelpAfterError==="string"){this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`)}else if(this._showHelpAfterError){this._outputConfiguration.writeErr("\n");this.outputHelp({error:true})}const n=t||{};const r=n.exitCode||1;const s=n.code||"commander.error";this._exit(r,s,e)}_parseOptionsEnv(){this.options.forEach((e=>{if(e.envVar&&e.envVar in a.env){const t=e.attributeName();if(this.getOptionValue(t)===undefined||["default","config","env"].includes(this.getOptionValueSource(t))){if(e.required||e.optional){this.emit(`optionEnv:${e.name()}`,a.env[e.envVar])}else{this.emit(`optionEnv:${e.name()}`)}}}}))}_parseOptionsImplied(){const e=new d(this.options);const hasCustomOptionValue=e=>this.getOptionValue(e)!==undefined&&!["default","implied"].includes(this.getOptionValueSource(e));this.options.filter((t=>t.implied!==undefined&&hasCustomOptionValue(t.attributeName())&&e.valueFromOption(this.getOptionValue(t.attributeName()),t))).forEach((e=>{Object.keys(e.implied).filter((e=>!hasCustomOptionValue(e))).forEach((t=>{this.setOptionValueWithSource(t,e.implied[t],"implied")}))}))}missingArgument(e){const t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){const t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){const t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){const findBestOptionFromValue=e=>{const t=e.attributeName();const n=this.getOptionValue(t);const r=this.options.find((e=>e.negate&&t===e.attributeName()));const s=this.options.find((e=>!e.negate&&t===e.attributeName()));if(r&&(r.presetArg===undefined&&n===false||r.presetArg!==undefined&&n===r.presetArg)){return r}return s||e};const getErrorMessage=e=>{const t=findBestOptionFromValue(e);const n=t.attributeName();const r=this.getOptionValueSource(n);if(r==="env"){return`environment variable '${t.envVar}'`}return`option '${t.flags}'`};const n=`error: ${getErrorMessage(e)} cannot be used with ${getErrorMessage(t)}`;this.error(n,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[];let r=this;do{const e=r.createHelp().visibleOptions(r).filter((e=>e.long)).map((e=>e.long));n=n.concat(e);r=r.parent}while(r&&!r._enablePositionalOptions);t=g(e,n)}const n=`error: unknown option '${e}'${t}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;const t=this.registeredArguments.length;const n=t===1?"":"s";const r=this.parent?` for '${this.name()}'`:"";const s=`error: too many arguments${r}. Expected ${t} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){const e=this.args[0];let t="";if(this._showSuggestionAfterError){const n=[];this.createHelp().visibleCommands(this).forEach((e=>{n.push(e.name());if(e.alias())n.push(e.alias())}));t=g(e,n)}const n=`error: unknown command '${e}'${t}`;this.error(n,{code:"commander.unknownCommand"})}version(e,t,n){if(e===undefined)return this._version;this._version=e;t=t||"-V, --version";n=n||"output the version number";const r=this.createOption(t,n);this._versionOptionName=r.attributeName();this.options.push(r);this.on("option:"+r.name(),(()=>{this._outputConfiguration.writeOut(`${e}\n`);this._exit(0,"commander.version",e)}));return this}description(e,t){if(e===undefined&&t===undefined)return this._description;this._description=e;if(t){this._argsDescription=t}return this}summary(e){if(e===undefined)return this._summary;this._summary=e;return this}alias(e){if(e===undefined)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler){t=this.commands[this.commands.length-1]}if(e===t._name)throw new Error("Command alias can't be the same as its name");t._aliases.push(e);return this}aliases(e){if(e===undefined)return this._aliases;e.forEach((e=>this.alias(e)));return this}usage(e){if(e===undefined){if(this._usage)return this._usage;const e=this.registeredArguments.map((e=>c(e)));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?e:[]).join(" ")}this._usage=e;return this}name(e){if(e===undefined)return this._name;this._name=e;return this}nameFromFilename(e){this._name=i.basename(e,i.extname(e));return this}executableDir(e){if(e===undefined)return this._executableDir;this._executableDir=e;return this}helpInformation(e){const t=this.createHelp();if(t.helpWidth===undefined){t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()}return t.formatHelp(this,t)}_getHelpContext(e){e=e||{};const t={error:!!e.error};let n;if(t.error){n=e=>this._outputConfiguration.writeErr(e)}else{n=e=>this._outputConfiguration.writeOut(e)}t.write=e.write||n;t.command=this;return t}outputHelp(e){let t;if(typeof e==="function"){t=e;e=undefined}const n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach((e=>e.emit("beforeAllHelp",n)));this.emit("beforeHelp",n);let r=this.helpInformation(n);if(t){r=t(r);if(typeof r!=="string"&&!Buffer.isBuffer(r)){throw new Error("outputHelp callback must return a string or a Buffer")}}n.write(r);if(this._helpLongFlag){this.emit(this._helpLongFlag)}this.emit("afterHelp",n);this._getCommandAndAncestors().forEach((e=>e.emit("afterAllHelp",n)))}helpOption(e,t){if(typeof e==="boolean"){this._hasHelpOption=e;return this}this._helpFlags=e||this._helpFlags;this._helpDescription=t||this._helpDescription;const n=p(this._helpFlags);this._helpShortFlag=n.shortFlag;this._helpLongFlag=n.longFlag;return this}help(e){this.outputHelp(e);let t=a.exitCode||0;if(t===0&&e&&typeof e!=="function"&&e.error){t=1}this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){const n=["beforeAll","before","after","afterAll"];if(!n.includes(e)){throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${n.join("', '")}'`)}const r=`${e}Help`;this.on(r,(e=>{let n;if(typeof t==="function"){n=t({error:e.error,command:e.command})}else{n=t}if(n){e.write(`${n}\n`)}}));return this}}function outputHelpIfRequested(e,t){const n=e._hasHelpOption&&t.find((t=>t===e._helpLongFlag||t===e._helpShortFlag));if(n){e.outputHelp();e._exit(0,"commander.helpDisplayed","(outputHelp)")}}function incrementNodeInspectorPort(e){return e.map((e=>{if(!e.startsWith("--inspect")){return e}let t;let n="127.0.0.1";let r="9229";let s;if((s=e.match(/^(--inspect(-brk)?)$/))!==null){t=s[1]}else if((s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null){t=s[1];if(/^\d+$/.test(s[3])){r=s[3]}else{n=s[3]}}else if((s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null){t=s[1];n=s[3];r=s[4]}if(t&&r!=="0"){return`${t}=${n}:${parseInt(r)+1}`}return e}))}t.Command=Command},2625:(e,t)=>{class CommanderError extends Error{constructor(e,t,n){super(n);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=t;this.exitCode=e;this.nestedError=undefined}}class InvalidArgumentError extends CommanderError{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name}}t.CommanderError=CommanderError;t.InvalidArgumentError=InvalidArgumentError},5153:(e,t,n)=>{const{humanReadableArgName:r}=n(9414);class Help{constructor(){this.helpWidth=undefined;this.sortSubcommands=false;this.sortOptions=false;this.showGlobalOptions=false}visibleCommands(e){const t=e.commands.filter((e=>!e._hidden));if(e._hasImplicitHelpCommand()){const[,n,r]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/);const s=e.createCommand(n).helpOption(false);s.description(e._helpCommandDescription);if(r)s.arguments(r);t.push(s)}if(this.sortSubcommands){t.sort(((e,t)=>e.name().localeCompare(t.name())))}return t}compareOptions(e,t){const getSortKey=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return getSortKey(e).localeCompare(getSortKey(t))}visibleOptions(e){const t=e.options.filter((e=>!e.hidden));const n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag);const r=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||r){let s;if(!n){s=e.createOption(e._helpLongFlag,e._helpDescription)}else if(!r){s=e.createOption(e._helpShortFlag,e._helpDescription)}else{s=e.createOption(e._helpFlags,e._helpDescription)}t.push(s)}if(this.sortOptions){t.sort(this.compareOptions)}return t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];const t=[];for(let n=e.parent;n;n=n.parent){const e=n.options.filter((e=>!e.hidden));t.push(...e)}if(this.sortOptions){t.sort(this.compareOptions)}return t}visibleArguments(e){if(e._argsDescription){e.registeredArguments.forEach((t=>{t.description=t.description||e._argsDescription[t.name()]||""}))}if(e.registeredArguments.find((e=>e.description))){return e.registeredArguments}return[]}subcommandTerm(e){const t=e.registeredArguments.map((e=>r(e))).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce(((e,n)=>Math.max(e,t.subcommandTerm(n).length)),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce(((e,n)=>Math.max(e,t.optionTerm(n).length)),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce(((e,n)=>Math.max(e,t.optionTerm(n).length)),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce(((e,n)=>Math.max(e,t.argumentTerm(n).length)),0)}commandUsage(e){let t=e._name;if(e._aliases[0]){t=t+"|"+e._aliases[0]}let n="";for(let t=e.parent;t;t=t.parent){n=t.name()+" "+n}return n+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){const t=[];if(e.argChoices){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined){const n=e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==="boolean";if(n){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}}if(e.presetArg!==undefined&&e.optional){t.push(`preset: ${JSON.stringify(e.presetArg)}`)}if(e.envVar!==undefined){t.push(`env: ${e.envVar}`)}if(t.length>0){return`${e.description} (${t.join(", ")})`}return e.description}argumentDescription(e){const t=[];if(e.argChoices){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}if(t.length>0){const n=`(${t.join(", ")})`;if(e.description){return`${e.description} ${n}`}return n}return e.description}formatHelp(e,t){const n=t.padWidth(e,t);const r=t.helpWidth||80;const s=2;const i=2;function formatItem(e,o){if(o){const a=`${e.padEnd(n+i)}${o}`;return t.wrap(a,r-s,n+i)}return e}function formatList(e){return e.join("\n").replace(/^/gm," ".repeat(s))}let o=[`Usage: ${t.commandUsage(e)}`,""];const a=t.commandDescription(e);if(a.length>0){o=o.concat([t.wrap(a,r,0),""])}const u=t.visibleArguments(e).map((e=>formatItem(t.argumentTerm(e),t.argumentDescription(e))));if(u.length>0){o=o.concat(["Arguments:",formatList(u),""])}const c=t.visibleOptions(e).map((e=>formatItem(t.optionTerm(e),t.optionDescription(e))));if(c.length>0){o=o.concat(["Options:",formatList(c),""])}if(this.showGlobalOptions){const n=t.visibleGlobalOptions(e).map((e=>formatItem(t.optionTerm(e),t.optionDescription(e))));if(n.length>0){o=o.concat(["Global Options:",formatList(n),""])}}const l=t.visibleCommands(e).map((e=>formatItem(t.subcommandTerm(e),t.subcommandDescription(e))));if(l.length>0){o=o.concat(["Commands:",formatList(l),""])}return o.join("\n")}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,n,r=40){const s=" \\f\\t\\v - \ufeff";const i=new RegExp(`[\\n][${s}]+`);if(e.match(i))return e;const o=t-n;if(o<r)return e;const a=e.slice(0,n);const u=e.slice(n).replace("\r\n","\n");const c=" ".repeat(n);const l="";const f=`\\s${l}`;const h=new RegExp(`\n|.{1,${o-1}}([${f}]|$)|[^${f}]+?([${f}]|$)`,"g");const p=u.match(h)||[];return a+p.map(((e,t)=>{if(e==="\n")return"";return(t>0?c:"")+e.trimEnd()})).join("\n")}}t.Help=Help},6558:(e,t,n)=>{const{InvalidArgumentError:r}=n(2625);class Option{constructor(e,t){this.flags=e;this.description=t||"";this.required=e.includes("<");this.optional=e.includes("[");this.variadic=/\w\.\.\.[>\]]$/.test(e);this.mandatory=false;const n=splitOptionFlags(e);this.short=n.shortFlag;this.long=n.longFlag;this.negate=false;if(this.long){this.negate=this.long.startsWith("--no-")}this.defaultValue=undefined;this.defaultValueDescription=undefined;this.presetArg=undefined;this.envVar=undefined;this.parseArg=undefined;this.hidden=false;this.argChoices=undefined;this.conflictsWith=[];this.implied=undefined}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}preset(e){this.presetArg=e;return this}conflicts(e){this.conflictsWith=this.conflictsWith.concat(e);return this}implies(e){let t=e;if(typeof e==="string"){t={[e]:true}}this.implied=Object.assign(this.implied||{},t);return this}env(e){this.envVar=e;return this}argParser(e){this.parseArg=e;return this}makeOptionMandatory(e=true){this.mandatory=!!e;return this}hideHelp(e=true){this.hidden=!!e;return this}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}choices(e){this.argChoices=e.slice();this.parseArg=(e,t)=>{if(!this.argChoices.includes(e)){throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(e,t)}return e};return this}name(){if(this.long){return this.long.replace(/^--/,"")}return this.short.replace(/^-/,"")}attributeName(){return camelcase(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class DualOptions{constructor(e){this.positiveOptions=new Map;this.negativeOptions=new Map;this.dualOptions=new Set;e.forEach((e=>{if(e.negate){this.negativeOptions.set(e.attributeName(),e)}else{this.positiveOptions.set(e.attributeName(),e)}}));this.negativeOptions.forEach(((e,t)=>{if(this.positiveOptions.has(t)){this.dualOptions.add(t)}}))}valueFromOption(e,t){const n=t.attributeName();if(!this.dualOptions.has(n))return true;const r=this.negativeOptions.get(n).presetArg;const s=r!==undefined?r:false;return t.negate===(s===e)}}function camelcase(e){return e.split("-").reduce(((e,t)=>e+t[0].toUpperCase()+t.slice(1)))}function splitOptionFlags(e){let t;let n;const r=e.split(/[ |,]+/);if(r.length>1&&!/^[[<]/.test(r[1]))t=r.shift();n=r.shift();if(!t&&/^-[^-]$/.test(n)){t=n;n=undefined}return{shortFlag:t,longFlag:n}}t.Option=Option;t.splitOptionFlags=splitOptionFlags;t.DualOptions=DualOptions},7592:(e,t)=>{const n=3;function editDistance(e,t){if(Math.abs(e.length-t.length)>n)return Math.max(e.length,t.length);const r=[];for(let t=0;t<=e.length;t++){r[t]=[t]}for(let e=0;e<=t.length;e++){r[0][e]=e}for(let n=1;n<=t.length;n++){for(let s=1;s<=e.length;s++){let i=1;if(e[s-1]===t[n-1]){i=0}else{i=1}r[s][n]=Math.min(r[s-1][n]+1,r[s][n-1]+1,r[s-1][n-1]+i);if(s>1&&n>1&&e[s-1]===t[n-2]&&e[s-2]===t[n-1]){r[s][n]=Math.min(r[s][n],r[s-2][n-2]+1)}}}return r[e.length][t.length]}function suggestSimilar(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));const r=e.startsWith("--");if(r){e=e.slice(2);t=t.map((e=>e.slice(2)))}let s=[];let i=n;const o=.4;t.forEach((t=>{if(t.length<=1)return;const n=editDistance(e,t);const r=Math.max(e.length,t.length);const a=(r-n)/r;if(a>o){if(n<i){i=n;s=[t]}else if(n===i){s.push(t)}}}));s.sort(((e,t)=>e.localeCompare(t)));if(r){s=s.map((e=>`--${e}`))}if(s.length>1){return`\n(Did you mean one of ${s.join(", ")}?)`}if(s.length===1){return`\n(Did you mean ${s[0]}?)`}return""}t.suggestSimilar=suggestSimilar},8109:(e,t,n)=>{var r=n(5589);var s=n(9338);var i=n(6011);var o=n(5161);var a=n(2986);var u=n(2289);var c=n(45);function resolveCollection(e,t,n,r,s,i){const o=n.type==="block-map"?a.resolveBlockMap(e,t,n,r,i):n.type==="block-seq"?u.resolveBlockSeq(e,t,n,r,i):c.resolveFlowCollection(e,t,n,r,i);const l=o.constructor;if(s==="!"||s===l.tagName){o.tag=l.tagName;return o}if(s)o.tag=s;return o}function composeCollection(e,t,n,a,u){const c=!a?null:t.directives.tagName(a.source,(e=>u(a,"TAG_RESOLVE_FAILED",e)));const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!a||!c||c==="!"||c===i.YAMLMap.tagName&&l==="map"||c===o.YAMLSeq.tagName&&l==="seq"||!l){return resolveCollection(e,t,n,u,c)}let f=t.schema.tags.find((e=>e.tag===c&&e.collection===l));if(!f){const r=t.schema.knownTags[c];if(r&&r.collection===l){t.schema.tags.push(Object.assign({},r,{default:false}));f=r}else{if(r?.collection){u(a,"BAD_COLLECTION_TYPE",`${r.tag} used for ${l} collection, but expects ${r.collection}`,true)}else{u(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${c}`,true)}return resolveCollection(e,t,n,u,c)}}const h=resolveCollection(e,t,n,u,c,f);const p=f.resolve?.(h,(e=>u(a,"TAG_RESOLVE_FAILED",e)),t.options)??h;const d=r.isNode(p)?p:new s.Scalar(p);d.range=h.range;d.tag=c;if(f?.format)d.format=f.format;return d}t.composeCollection=composeCollection},5050:(e,t,n)=>{var r=n(42);var s=n(8676);var i=n(1250);var o=n(6985);function composeDoc(e,t,{offset:n,start:a,value:u,end:c},l){const f=Object.assign({_directives:t},e);const h=new r.Document(undefined,f);const p={atRoot:true,directives:h.directives,options:h.options,schema:h.schema};const d=o.resolveProps(a,{indicator:"doc-start",next:u??c?.[0],offset:n,onError:l,startOnNewline:true});if(d.found){h.directives.docStart=true;if(u&&(u.type==="block-map"||u.type==="block-seq")&&!d.hasNewline)l(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}h.contents=u?s.composeNode(p,u,d,l):s.composeEmptyNode(p,d.end,a,null,d,l);const g=h.contents.range[2];const y=i.resolveEnd(c,g,false,l);if(y.comment)h.comment=y.comment;h.range=[n,g,y.offset];return h}t.composeDoc=composeDoc},8676:(e,t,n)=>{var r=n(5639);var s=n(8109);var i=n(4766);var o=n(1250);var a=n(8781);const u={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,n,r){const{spaceBefore:o,comment:a,anchor:c,tag:l}=n;let f;let h=true;switch(t.type){case"alias":f=composeAlias(e,t,r);if(c||l)r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":f=i.composeScalar(e,t,l,r);if(c)f.anchor=c.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":f=s.composeCollection(u,e,t,l,r);if(c)f.anchor=c.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",s);f=composeEmptyNode(e,t.offset,undefined,null,n,r);h=false}}if(c&&f.anchor==="")r(c,"BAD_ALIAS","Anchor cannot be an empty string");if(o)f.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")f.comment=a;else f.commentBefore=a}if(e.options.keepSourceTokens&&h)f.srcToken=t;return f}function composeEmptyNode(e,t,n,r,{spaceBefore:s,comment:o,anchor:u,tag:c,end:l},f){const h={type:"scalar",offset:a.emptyScalarPosition(t,n,r),indent:-1,source:""};const p=i.composeScalar(e,h,c,f);if(u){p.anchor=u.source.substring(1);if(p.anchor==="")f(u,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(o){p.comment=o;p.range[2]=l}return p}function composeAlias({options:e},{offset:t,source:n,end:s},i){const a=new r.Alias(n.substring(1));if(a.source==="")i(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const u=t+n.length;const c=o.resolveEnd(s,u,e.strict,i);a.range=[t,u,c.offset];if(c.comment)a.comment=c.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},4766:(e,t,n)=>{var r=n(5589);var s=n(9338);var i=n(9485);var o=n(7578);function composeScalar(e,t,n,a){const{value:u,type:c,comment:l,range:f}=t.type==="block-scalar"?i.resolveBlockScalar(t,e.options.strict,a):o.resolveFlowScalar(t,e.options.strict,a);const h=n?e.directives.tagName(n.source,(e=>a(n,"TAG_RESOLVE_FAILED",e))):null;const p=n&&h?findScalarTagByName(e.schema,u,h,n,a):t.type==="scalar"?findScalarTagByTest(e,u,t,a):e.schema[r.SCALAR];let d;try{const i=p.resolve(u,(e=>a(n??t,"TAG_RESOLVE_FAILED",e)),e.options);d=r.isScalar(i)?i:new s.Scalar(i)}catch(e){const r=e instanceof Error?e.message:String(e);a(n??t,"TAG_RESOLVE_FAILED",r);d=new s.Scalar(u)}d.range=f;d.source=u;if(c)d.type=c;if(h)d.tag=h;if(p.format)d.format=p.format;if(l)d.comment=l;return d}function findScalarTagByName(e,t,n,s,i){if(n==="!")return e[r.SCALAR];const o=[];for(const t of e.tags){if(!t.collection&&t.tag===n){if(t.default&&t.test)o.push(t);else return t}}for(const e of o)if(e.test?.test(t))return e;const a=e.knownTags[n];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str");return e[r.SCALAR]}function findScalarTagByTest({directives:e,schema:t},n,s,i){const o=t.tags.find((e=>e.default&&e.test?.test(n)))||t[r.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(n)))??t[r.SCALAR];if(o.tag!==a.tag){const t=e.tagString(o.tag);const n=e.tagString(a.tag);const r=`Value may be parsed as either ${t} or ${n}`;i(s,"TAG_RESOLVE_FAILED",r,true)}}return o}t.composeScalar=composeScalar},9493:(e,t,n)=>{var r=n(5400);var s=n(42);var i=n(4236);var o=n(5589);var a=n(5050);var u=n(1250);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n==="string"?n.length:1)]}function parsePrelude(e){let t="";let n=false;let r=false;for(let s=0;s<e.length;++s){const i=e[s];switch(i[0]){case"#":t+=(t===""?"":r?"\n\n":"\n")+(i.substring(1)||" ");n=true;r=false;break;case"%":if(e[s+1]?.[0]!=="#")s+=1;n=false;break;default:if(!n)r=true;n=false}}return{comment:t,afterEmptyLine:r}}class Composer{constructor(e={}){this.doc=null;this.atDirectives=false;this.prelude=[];this.errors=[];this.warnings=[];this.onError=(e,t,n,r)=>{const s=getErrorPos(e);if(r)this.warnings.push(new i.YAMLWarning(s,t,n));else this.errors.push(new i.YAMLParseError(s,t,n))};this.directives=new r.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=parsePrelude(this.prelude);if(n){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${n}`:n}else if(r||e.directives.docStart||!s){e.commentBefore=n}else if(o.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(o.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=s.commentBefore;s.commentBefore=e?`${n}\n${e}`:n}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",n,r)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const n=new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(n);else this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=u.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const n=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");n.range=[0,t,t];this.decorate(n,false);yield n}}}t.Composer=Composer},2986:(e,t,n)=>{var r=n(246);var s=n(6011);var i=n(6985);var o=n(976);var a=n(3669);var u=n(6899);const c="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},n,l,f,h){const p=h?.nodeClass??s.YAMLMap;const d=new p(n.schema);if(n.atRoot)n.atRoot=false;let g=l.offset;let y=null;for(const s of l.items){const{start:h,key:p,sep:b,value:v}=s;const w=i.resolveProps(h,{indicator:"explicit-key-ind",next:p??b?.[0],offset:g,onError:f,startOnNewline:true});const S=!w.found;if(S){if(p){if(p.type==="block-seq")f(g,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==l.indent)f(g,"BAD_INDENT",c)}if(!w.anchor&&!w.tag&&!b){y=w.end;if(w.comment){if(d.comment)d.comment+="\n"+w.comment;else d.comment=w.comment}continue}if(w.hasNewlineAfterProp||o.containsNewline(p)){f(p??h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(w.found?.indent!==l.indent){f(g,"BAD_INDENT",c)}const A=w.end;const E=p?e(n,p,w,f):t(n,A,h,null,w,f);if(n.schema.compat)a.flowIndentCheck(l.indent,p,f);if(u.mapIncludes(n,d.items,E))f(A,"DUPLICATE_KEY","Map keys must be unique");const D=i.resolveProps(b??[],{indicator:"map-value-ind",next:v,offset:E.range[2],onError:f,startOnNewline:!p||p.type==="block-scalar"});g=D.end;if(D.found){if(S){if(v?.type==="block-map"&&!D.hasNewline)f(g,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(n.options.strict&&w.start<D.found.offset-1024)f(E.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}const i=v?e(n,v,D,f):t(n,g,b,null,D,f);if(n.schema.compat)a.flowIndentCheck(l.indent,v,f);g=i.range[2];const o=new r.Pair(E,i);if(n.options.keepSourceTokens)o.srcToken=s;d.items.push(o)}else{if(S)f(E.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(D.comment){if(E.comment)E.comment+="\n"+D.comment;else E.comment=D.comment}const e=new r.Pair(E);if(n.options.keepSourceTokens)e.srcToken=s;d.items.push(e)}}if(y&&y<g)f(y,"IMPOSSIBLE","Map comment with trailing content");d.range=[l.offset,g,y??g];return d}t.resolveBlockMap=resolveBlockMap},9485:(e,t,n)=>{var r=n(9338);function resolveBlockScalar(e,t,n){const s=e.offset;const i=parseBlockScalarHeader(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[s,s,s]};const o=i.mode===">"?r.Scalar.BLOCK_FOLDED:r.Scalar.BLOCK_LITERAL;const a=e.source?splitLines(e.source):[];let u=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")u=e;else break}if(u===0){const t=i.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let n=s+i.length;if(e.source)n+=e.source.length;return{value:t,type:o,comment:i.comment,range:[s,n,n]}}let c=e.indent+i.indent;let l=e.offset+i.length;let f=0;for(let e=0;e<u;++e){const[t,r]=a[e];if(r===""||r==="\r"){if(i.indent===0&&t.length>c)c=t.length}else{if(t.length<c){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(l+t.length,"MISSING_CHAR",e)}if(i.indent===0)c=t.length;f=e;break}l+=t.length+r.length+1}for(let e=a.length-1;e>=u;--e){if(a[e][0].length>c)u=e+1}let h="";let p="";let d=false;for(let e=0;e<f;++e)h+=a[e][0].slice(c)+"\n";for(let e=f;e<u;++e){let[t,s]=a[e];l+=t.length+s.length+1;const u=s[s.length-1]==="\r";if(u)s=s.slice(0,-1);if(s&&t.length<c){const e=i.indent?"explicit indentation indicator":"first line";const r=`Block scalar lines must not be less indented than their ${e}`;n(l-s.length-(u?2:1),"BAD_INDENT",r);t=""}if(o===r.Scalar.BLOCK_LITERAL){h+=p+t.slice(c)+s;p="\n"}else if(t.length>c||s[0]==="\t"){if(p===" ")p="\n";else if(!d&&p==="\n")p="\n\n";h+=p+t.slice(c)+s;p="\n";d=true}else if(s===""){if(p==="\n")h+="\n";else p="\n"}else{h+=p+s;p=" ";d=false}}switch(i.chomp){case"-":break;case"+":for(let e=u;e<a.length;++e)h+="\n"+a[e][0].slice(c);if(h[h.length-1]!=="\n")h+="\n";break;default:h+="\n"}const g=s+i.length+e.source.length;return{value:h,type:o,comment:i.comment,range:[s,g,g]}}function parseBlockScalarHeader({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header"){r(t[0],"IMPOSSIBLE","Block scalar header not found");return null}const{source:s}=t[0];const i=s[0];let o=0;let a="";let u=-1;for(let t=1;t<s.length;++t){const n=s[t];if(!a&&(n==="-"||n==="+"))a=n;else{const r=Number(n);if(!o&&r)o=r;else if(u===-1)u=e+t}}if(u!==-1)r(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let c=false;let l="";let f=s.length;for(let e=1;e<t.length;++e){const s=t[e];switch(s.type){case"space":c=true;case"newline":f+=s.source.length;break;case"comment":if(n&&!c){const e="Comments must be separated from other tokens by white space characters";r(s,"MISSING_CHAR",e)}f+=s.source.length;l=s.source.substring(1);break;case"error":r(s,"UNEXPECTED_TOKEN",s.message);f+=s.source.length;break;default:{const e=`Unexpected token in block scalar header: ${s.type}`;r(s,"UNEXPECTED_TOKEN",e);const t=s.source;if(t&&typeof t==="string")f+=t.length}}}return{mode:i,indent:o,chomp:a,comment:l,length:f}}function splitLines(e){const t=e.split(/\n( *)/);const n=t[0];const r=n.match(/^( *)/);const s=r?.[1]?[r[1],n.slice(r[1].length)]:["",n];const i=[s];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}t.resolveBlockScalar=resolveBlockScalar},2289:(e,t,n)=>{var r=n(5161);var s=n(6985);var i=n(3669);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},n,o,a,u){const c=u?.nodeClass??r.YAMLSeq;const l=new c(n.schema);if(n.atRoot)n.atRoot=false;let f=o.offset;let h=null;for(const{start:r,value:u}of o.items){const c=s.resolveProps(r,{indicator:"seq-item-ind",next:u,offset:f,onError:a,startOnNewline:true});if(!c.found){if(c.anchor||c.tag||u){if(u&&u.type==="block-seq")a(c.end,"BAD_INDENT","All sequence items must start at the same column");else a(f,"MISSING_CHAR","Sequence item without - indicator")}else{h=c.end;if(c.comment)l.comment=c.comment;continue}}const p=u?e(n,u,c,a):t(n,c.end,r,null,c,a);if(n.schema.compat)i.flowIndentCheck(o.indent,u,a);f=p.range[2];l.items.push(p)}l.range=[o.offset,f,h??f];return l}t.resolveBlockSeq=resolveBlockSeq},1250:(e,t)=>{function resolveEnd(e,t,n,r){let s="";if(e){let i=false;let o="";for(const a of e){const{source:e,type:u}=a;switch(u){case"space":i=true;break;case"comment":{if(n&&!i)r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=o+t;o="";break}case"newline":if(s)o+=e;i=true;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},45:(e,t,n)=>{var r=n(5589);var s=n(246);var i=n(6011);var o=n(5161);var a=n(1250);var u=n(6985);var c=n(976);var l=n(6899);const f="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},n,h,p,d){const g=h.start.source==="{";const y=g?"flow map":"flow sequence";const b=d?.nodeClass??(g?i.YAMLMap:o.YAMLSeq);const v=new b(n.schema);v.flow=true;const w=n.atRoot;if(w)n.atRoot=false;let S=h.offset+h.start.source.length;for(let o=0;o<h.items.length;++o){const a=h.items[o];const{start:d,key:b,sep:w,value:A}=a;const E=u.resolveProps(d,{flow:y,indicator:"explicit-key-ind",next:b??w?.[0],offset:S,onError:p,startOnNewline:false});if(!E.found){if(!E.anchor&&!E.tag&&!w&&!A){if(o===0&&E.comma)p(E.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`);else if(o<h.items.length-1)p(E.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${y}`);if(E.comment){if(v.comment)v.comment+="\n"+E.comment;else v.comment=E.comment}S=E.end;continue}if(!g&&n.options.strict&&c.containsNewline(b))p(b,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(o===0){if(E.comma)p(E.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`)}else{if(!E.comma)p(E.start,"MISSING_CHAR",`Missing , between ${y} items`);if(E.comment){let e="";e:for(const t of d){switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}}if(e){let t=v.items[v.items.length-1];if(r.isPair(t))t=t.value??t.key;if(t.comment)t.comment+="\n"+e;else t.comment=e;E.comment=E.comment.substring(e.length+1)}}}if(!g&&!w&&!E.found){const r=A?e(n,A,E,p):t(n,E.end,w,null,E,p);v.items.push(r);S=r.range[2];if(isBlock(A))p(r.range,"BLOCK_IN_FLOW",f)}else{const r=E.end;const o=b?e(n,b,E,p):t(n,r,d,null,E,p);if(isBlock(b))p(o.range,"BLOCK_IN_FLOW",f);const c=u.resolveProps(w??[],{flow:y,indicator:"map-value-ind",next:A,offset:o.range[2],onError:p,startOnNewline:false});if(c.found){if(!g&&!E.found&&n.options.strict){if(w)for(const e of w){if(e===c.found)break;if(e.type==="newline"){p(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(E.start<c.found.offset-1024)p(c.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(A){if("source"in A&&A.source&&A.source[0]===":")p(A,"MISSING_CHAR",`Missing space after : in ${y}`);else p(c.start,"MISSING_CHAR",`Missing , or : between ${y} items`)}const h=A?e(n,A,c,p):c.found?t(n,c.end,w,null,c,p):null;if(h){if(isBlock(A))p(h.range,"BLOCK_IN_FLOW",f)}else if(c.comment){if(o.comment)o.comment+="\n"+c.comment;else o.comment=c.comment}const D=new s.Pair(o,h);if(n.options.keepSourceTokens)D.srcToken=a;if(g){const e=v;if(l.mapIncludes(n,e.items,o))p(r,"DUPLICATE_KEY","Map keys must be unique");e.items.push(D)}else{const e=new i.YAMLMap(n.schema);e.flow=true;e.items.push(D);v.items.push(e)}S=h?h.range[2]:c.end}}const A=g?"}":"]";const[E,...D]=h.end;let C=S;if(E&&E.source===A)C=E.offset+E.source.length;else{const e=y[0].toUpperCase()+y.substring(1);const t=w?`${e} must end with a ${A}`:`${e} in block collection must be sufficiently indented and end with a ${A}`;p(S,w?"MISSING_CHAR":"BAD_INDENT",t);if(E&&E.source.length!==1)D.unshift(E)}if(D.length>0){const e=a.resolveEnd(D,C,n.options.strict,p);if(e.comment){if(v.comment)v.comment+="\n"+e.comment;else v.comment=e.comment}v.range=[h.offset,C,e.offset]}else{v.range=[h.offset,C,C]}return v}t.resolveFlowCollection=resolveFlowCollection},7578:(e,t,n)=>{var r=n(9338);var s=n(1250);function resolveFlowScalar(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let c;let l;const _onError=(e,t,r)=>n(i+e,t,r);switch(o){case"scalar":c=r.Scalar.PLAIN;l=plainValue(a,_onError);break;case"single-quoted-scalar":c=r.Scalar.QUOTE_SINGLE;l=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":c=r.Scalar.QUOTE_DOUBLE;l=doubleQuotedValue(a,_onError);break;default:n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`);return{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}const f=i+a.length;const h=s.resolveEnd(u,f,t,n);return{value:l,type:c,comment:h.comment,range:[i,f,h.offset]}}function plainValue(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}if(n)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,n;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy");n=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(e){t=/(.*?)[ \t]*\r?\n/sy;n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let s=r[1];let i=" ";let o=t.lastIndex;n.lastIndex=o;while(r=n.exec(e)){if(r[1]===""){if(i==="\n")s+=i;else i="\n"}else{s+=i+r[1];i=" "}o=n.lastIndex}const a=/[ \t]*(.*)/sy;a.lastIndex=o;r=a.exec(e);return s+i+(r?.[1]??"")}function doubleQuotedValue(e,t){let n="";for(let r=1;r<e.length-1;++r){const s=e[r];if(s==="\r"&&e[r+1]==="\n")continue;if(s==="\n"){const{fold:t,offset:s}=foldNewline(e,r);n+=t;r=s}else if(s==="\\"){let s=e[++r];const o=i[s];if(o)n+=o;else if(s==="\n"){s=e[r+1];while(s===" "||s==="\t")s=e[++r+1]}else if(s==="\r"&&e[r+1]==="\n"){s=e[++r+1];while(s===" "||s==="\t")s=e[++r+1]}else if(s==="x"||s==="u"||s==="U"){const i={x:2,u:4,U:8}[s];n+=parseCharCode(e,r+1,i,t);r+=i}else{const s=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);n+=s}}else if(s===" "||s==="\t"){const t=r;let i=e[r+1];while(i===" "||i==="\t")i=e[++r+1];if(i!=="\n"&&!(i==="\r"&&e[r+2]==="\n"))n+=r>t?e.slice(t,r+1):s}else{n+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return n}function foldNewline(e,t){let n="";let r=e[t+1];while(r===" "||r==="\t"||r==="\n"||r==="\r"){if(r==="\r"&&e[t+2]!=="\n")break;if(r==="\n")n+="\n";t+=1;r=e[t+1]}if(!n)n=" ";return{fold:n,offset:t}}const i={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,n,r){const s=e.substr(t,n);const i=s.length===n&&/^[0-9a-fA-F]+$/.test(s);const o=i?parseInt(s,16):NaN;if(isNaN(o)){const s=e.substr(t-2,n+2);r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(o)}t.resolveFlowScalar=resolveFlowScalar},6985:(e,t)=>{function resolveProps(e,{flow:t,indicator:n,next:r,offset:s,onError:i,startOnNewline:o}){let a=false;let u=o;let c=o;let l="";let f="";let h=false;let p=false;let d=false;let g=null;let y=null;let b=null;let v=null;let w=null;for(const r of e){if(d){if(r.type!=="space"&&r.type!=="newline"&&r.type!=="comma")i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");d=false}switch(r.type){case"space":if(!t&&u&&n!=="doc-start"&&r.source[0]==="\t")i(r,"TAB_AS_INDENT","Tabs are not allowed as indentation");c=true;break;case"comment":{if(!c)i(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";if(!l)l=e;else l+=f+e;f="";u=false;break}case"newline":if(u){if(l)l+=r.source;else a=true}else f+=r.source;u=true;h=true;if(g||y)p=true;c=true;break;case"anchor":if(g)i(r,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(r.source.endsWith(":"))i(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);g=r;if(w===null)w=r.offset;u=false;c=false;d=true;break;case"tag":{if(y)i(r,"MULTIPLE_TAGS","A node can have at most one tag");y=r;if(w===null)w=r.offset;u=false;c=false;d=true;break}case n:if(g||y)i(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`);if(v)i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`);v=r;u=false;c=false;break;case"comma":if(t){if(b)i(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);b=r;u=false;c=false;break}default:i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`);u=false;c=false}}const S=e[e.length-1];const A=S?S.offset+S.source.length:s;if(d&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!==""))i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");return{comma:b,found:v,spaceBefore:a,comment:l,hasNewline:h,hasNewlineAfterProp:p,anchor:g,tag:y,end:A,start:w??A}}t.resolveProps=resolveProps},976:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},8781:(e,t)=>{function emptyScalarPosition(e,t,n){if(t){if(n===null)n=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}n=t[++r];while(n?.type==="space"){e+=n.source.length;n=t[++r]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},3669:(e,t,n)=>{var r=n(976);function flowIndentCheck(e,t,n){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&r.containsNewline(t)){const e="Flow end indicator should be more indented than parent";n(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},6899:(e,t,n)=>{var r=n(5589);function mapIncludes(e,t,n){const{uniqueKeys:s}=e.options;if(s===false)return false;const i=typeof s==="function"?s:(t,n)=>t===n||r.isScalar(t)&&r.isScalar(n)&&t.value===n.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>i(e.key,n)))}t.mapIncludes=mapIncludes},42:(e,t,n)=>{var r=n(5639);var s=n(3466);var i=n(5589);var o=n(246);var a=n(2463);var u=n(6831);var c=n(5225);var l=n(8459);var f=n(3412);var h=n(9652);var p=n(5400);class Document{constructor(e,t,n){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,i.NODE_TYPE,{value:i.DOC});let r=null;if(typeof t==="function"||Array.isArray(t)){r=t}else if(n===undefined&&t){n=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},n);this.options=s;let{version:o}=s;if(n?._directives){this.directives=n._directives.atDocument();if(this.directives.yaml.explicit)o=this.directives.yaml.version}else this.directives=new p.Directives({version:o});this.setSchema(o,n);this.contents=e===undefined?null:this.createNode(e,r,n)}clone(){const e=Object.create(Document.prototype,{[i.NODE_TYPE]:{value:i.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=i.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=l.anchorNames(this);e.anchor=!t||n.has(t)?l.findNewAnchor(t||"a",n):t}return new r.Alias(e.anchor)}createNode(e,t,n){let r=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);r=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);r=t}else if(n===undefined&&t){n=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:o,flow:a,keepUndefined:u,onTagObj:c,tag:f}=n??{};const{onAnchor:p,setAnchors:d,sourceObjects:g}=l.createNodeAnchors(this,o||"a");const y={aliasDuplicateObjects:s??true,keepUndefined:u??false,onAnchor:p,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:g};const b=h.createNode(e,f,y);if(a&&i.isCollection(b))b.flow=true;d();return b}createPair(e,t,n={}){const r=this.createNode(e,null,n);const s=this.createNode(t,null,n);return new o.Pair(r,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return i.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&i.isScalar(this.contents)?this.contents.value:this.contents;return i.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return i.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return i.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let n;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});n={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});n={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new u.Schema(Object.assign(n,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:s,reviver:i}={}){const o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=a.toJS(this.contents,t??"",o);if(typeof s==="function")for(const{count:e,res:t}of o.anchors.values())s(t,e);return typeof i==="function"?f.applyReviver(i,{"":u},"",u):u}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return c.stringifyDocument(this,e)}}function assertCollection(e){if(i.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},8459:(e,t,n)=>{var r=n(5589);var s=n(6796);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const n=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(n)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,n){if(n.anchor)t.add(n.anchor)}});return t}function findNewAnchor(e,t){for(let n=1;true;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function createNodeAnchors(e,t){const n=[];const s=new Map;let i=null;return{onAnchor:r=>{n.push(r);if(!i)i=anchorNames(e);const s=findNewAnchor(t,i);i.add(s);return s},setAnchors:()=>{for(const e of n){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(r.isScalar(t.node)||r.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},3412:(e,t)=>{function applyReviver(e,t,n,r){if(r&&typeof r==="object"){if(Array.isArray(r)){for(let t=0,n=r.length;t<n;++t){const n=r[t];const s=applyReviver(e,r,String(t),n);if(s===undefined)delete r[t];else if(s!==n)r[t]=s}}else if(r instanceof Map){for(const t of Array.from(r.keys())){const n=r.get(t);const s=applyReviver(e,r,t,n);if(s===undefined)r.delete(t);else if(s!==n)r.set(t,s)}}else if(r instanceof Set){for(const t of Array.from(r)){const n=applyReviver(e,r,t,t);if(n===undefined)r.delete(t);else if(n!==t){r.delete(t);r.add(n)}}}else{for(const[t,n]of Object.entries(r)){const s=applyReviver(e,r,t,n);if(s===undefined)delete r[t];else if(s!==n)r[t]=s}}}return e.call(t,n,r)}t.applyReviver=applyReviver},9652:(e,t,n)=>{var r=n(5639);var s=n(5589);var i=n(9338);const o="tag:yaml.org,2002:";function findTagObject(e,t,n){if(t){const e=n.filter((e=>e.tag===t));const r=e.find((e=>!e.format))??e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,n){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=n.schema[s.MAP].createNode?.(n.schema,null,n);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:u,onTagObj:c,schema:l,sourceObjects:f}=n;let h=undefined;if(a&&e&&typeof e==="object"){h=f.get(e);if(h){if(!h.anchor)h.anchor=u(e);return new r.Alias(h.anchor)}else{h={anchor:null,node:null};f.set(e,h)}}if(t?.startsWith("!!"))t=o+t.slice(2);let p=findTagObject(e,t,l.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new i.Scalar(e);if(h)h.node=t;return t}p=e instanceof Map?l[s.MAP]:Symbol.iterator in Object(e)?l[s.SEQ]:l[s.MAP]}if(c){c(p);delete n.onTagObj}const d=p?.createNode?p.createNode(n.schema,e,n):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(n.schema,e,n):new i.Scalar(e);if(t)d.tag=t;else if(!p.default)d.tag=p.tag;if(h)h.node=d;return d}t.createNode=createNode},5400:(e,t,n)=>{var r=n(5589);var s=n(6796);const i={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>i[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const n=e.trim().split(/[ \t]+/);const r=n.shift();switch(r){case"%TAG":{if(n.length!==2){t(0,"%TAG directive should contain exactly two parts");if(n.length<2)return false}const[e,r]=n;this.tags[e]=r;return true}case"%YAML":{this.yaml.explicit=true;if(n.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=n;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const n=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,n);return false}}default:t(0,`Unknown directive ${r}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const n=e.slice(2,-1);if(n==="!"||n==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return n}const[,n,r]=e.match(/^(.*!)([^!]*)$/s);if(!r)t(`The ${e} tag has no suffix`);const s=this.tags[n];if(s){try{return s+decodeURIComponent(r)}catch(e){t(String(e));return null}}if(n==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,n]of Object.entries(this.tags)){if(e.startsWith(n))return t+escapeTagName(e.substring(n.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const n=Object.entries(this.tags);let i;if(e&&n.length>0&&r.isNode(e.contents)){const t={};s.visit(e.contents,((e,n)=>{if(r.isNode(n)&&n.tag)t[n.tag]=true}));i=Object.keys(t)}else i=[];for(const[r,s]of n){if(r==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||i.some((e=>e.startsWith(s))))t.push(`%TAG ${r} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},4236:(e,t)=>{class YAMLError extends Error{constructor(e,t,n,r){super();this.name=e;this.code=n;this.message=r;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class YAMLWarning extends YAMLError{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const prettifyError=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:r,col:s}=n.linePos[0];n.message+=` at line ${r}, column ${s}`;let i=s-1;let o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const e=Math.min(i-39,o.length-79);o="…"+o.substring(e);i-=e-1}if(o.length>80)o=o.substring(0,79)+"…";if(r>1&&/^ *$/.test(o.substring(0,i))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);if(n.length>80)n=n.substring(0,79)+"…\n";o=n+o}if(/[^ ]/.test(o)){let e=1;const t=n.linePos[1];if(t&&t.line===r&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-i))}const a=" ".repeat(i)+"^".repeat(e);n.message+=`:\n\n${o}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},4083:(e,t,n)=>{var r;var s=n(9493);var i=n(42);var o=n(6831);var a=n(4236);var u=n(5639);var c=n(5589);var l=n(246);var f=n(9338);var h=n(6011);var p=n(5161);var d=n(9169);var g=n(5976);var y=n(1929);var b=n(3328);var v=n(8649);var w=n(6796);r=s.Composer;r=i.Document;r=o.Schema;r=a.YAMLError;r=a.YAMLParseError;r=a.YAMLWarning;r=u.Alias;r=c.isAlias;r=c.isCollection;r=c.isDocument;r=c.isMap;r=c.isNode;r=c.isPair;r=c.isScalar;r=c.isSeq;r=l.Pair;r=f.Scalar;r=h.YAMLMap;r=p.YAMLSeq;r=d;r=g.Lexer;r=y.LineCounter;r=b.Parser;r=v.parse;r=v.parseAllDocuments;r=v.parseDocument;r=v.stringify;r=w.visit;r=w.visitAsync},6909:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},5639:(e,t,n)=>{var r=n(8459);var s=n(6796);var i=n(5589);var o=n(1399);var a=n(2463);class Alias extends o.NodeBase{constructor(e){super(i.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,n)=>{if(n===this)return s.visit.BREAK;if(n.anchor===this.source)t=n}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:s}=t;const i=this.resolve(r);if(!i){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let o=n.get(i);if(!o){a.toJS(i,null,t);o=n.get(i)}if(!o||o.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){o.count+=1;if(o.aliasCount===0)o.aliasCount=getAliasCount(r,i,n);if(o.count*o.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return o.res}toString(e,t,n){const s=`*${this.source}`;if(e){r.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,n){if(i.isAlias(t)){const r=t.resolve(e);const s=n&&r&&n.get(r);return s?s.count*s.aliasCount:0}else if(i.isCollection(t)){let r=0;for(const s of t.items){const t=getAliasCount(e,s,n);if(t>r)r=t}return r}else if(i.isPair(t)){const r=getAliasCount(e,t.key,n);const s=getAliasCount(e,t.value,n);return Math.max(r,s)}return 1}t.Alias=Alias},3466:(e,t,n)=>{var r=n(9652);var s=n(5589);var i=n(1399);function collectionFromPath(e,t,n){let s=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(typeof n==="number"&&Number.isInteger(n)&&n>=0){const e=[];e[n]=s;s=e}else{s=new Map([[n,s]])}}return r.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends i.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[n,...r]=e;const i=this.get(n,true);if(s.isCollection(i))i.addIn(r,t);else if(i===undefined&&this.schema)this.set(n,collectionFromPath(this.schema,r,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const r=this.get(t,true);if(s.isCollection(r))return r.deleteIn(n);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e;const i=this.get(n,true);if(r.length===0)return!t&&s.isScalar(i)?i.value:i;else return s.isCollection(i)?i.getIn(r,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const n=t.value;return n==null||e&&s.isScalar(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const r=this.get(t,true);return s.isCollection(r)?r.hasIn(n):false}setIn(e,t){const[n,...r]=e;if(r.length===0){this.set(n,t)}else{const e=this.get(n,true);if(s.isCollection(e))e.setIn(r,t);else if(e===undefined&&this.schema)this.set(n,collectionFromPath(this.schema,r,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},1399:(e,t,n)=>{var r=n(3412);var s=n(5589);var i=n(2463);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:o,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=i.toJS(this,"",u);if(typeof o==="function")for(const{count:e,res:t}of u.anchors.values())o(t,e);return typeof a==="function"?r.applyReviver(a,{"":c},"",c):c}}t.NodeBase=NodeBase},246:(e,t,n)=>{var r=n(9652);var s=n(4875);var i=n(4676);var o=n(5589);function createPair(e,t,n){const s=r.createNode(e,undefined,n);const i=r.createNode(t,undefined,n);return new Pair(s,i)}class Pair{constructor(e,t=null){Object.defineProperty(this,o.NODE_TYPE,{value:o.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:n}=this;if(o.isNode(t))t=t.clone(e);if(o.isNode(n))n=n.clone(e);return new Pair(t,n)}toJSON(e,t){const n=t?.mapAsMap?new Map:{};return i.addPairToJSMap(t,n,this)}toString(e,t,n){return e?.doc?s.stringifyPair(this,e,t,n):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},9338:(e,t,n)=>{var r=n(5589);var s=n(1399);var i=n(2463);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(r.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:i.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},6011:(e,t,n)=>{var r=n(2466);var s=n(4676);var i=n(3466);var o=n(5589);var a=n(246);var u=n(9338);function findPair(e,t){const n=o.isScalar(t)?t.value:t;for(const r of e){if(o.isPair(r)){if(r.key===t||r.key===n)return r;if(o.isScalar(r.key)&&r.key.value===n)return r}}return undefined}class YAMLMap extends i.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(o.MAP,e);this.items=[]}static from(e,t,n){const{keepUndefined:r,replacer:s}=n;const i=new this(e);const add=(e,o)=>{if(typeof s==="function")o=s.call(t,e,o);else if(Array.isArray(s)&&!s.includes(e))return;if(o!==undefined||r)i.items.push(a.createPair(e,o,n))};if(t instanceof Map){for(const[e,n]of t)add(e,n)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){i.items.sort(e.sortMapEntries)}return i}add(e,t){let n;if(o.isPair(e))n=e;else if(!e||typeof e!=="object"||!("key"in e)){n=new a.Pair(e,e?.value)}else n=new a.Pair(e.key,e.value);const r=findPair(this.items,n.key);const s=this.schema?.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);if(o.isScalar(r.value)&&u.isScalarValue(n.value))r.value.value=n.value;else r.value=n.value}else if(s){const e=this.items.findIndex((e=>s(n,e)<0));if(e===-1)this.items.push(n);else this.items.splice(e,0,n)}else{this.items.push(n)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const n=this.items.splice(this.items.indexOf(t),1);return n.length>0}get(e,t){const n=findPair(this.items,e);const r=n?.value;return(!t&&o.isScalar(r)?r.value:r)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,n){const r=n?new n:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(r);for(const e of this.items)s.addPairToJSMap(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items){if(!o.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return r.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},5161:(e,t,n)=>{var r=n(9652);var s=n(2466);var i=n(3466);var o=n(5589);var a=n(9338);var u=n(2463);class YAMLSeq extends i.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(o.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const n=this.items.splice(t,1);return n.length>0}get(e,t){const n=asItemIndex(e);if(typeof n!=="number")return undefined;const r=this.items[n];return!t&&o.isScalar(r)?r.value:r}has(e){const t=asItemIndex(e);return typeof t==="number"&&t<this.items.length}set(e,t){const n=asItemIndex(e);if(typeof n!=="number")throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[n];if(o.isScalar(r)&&a.isScalarValue(t))r.value=t;else this.items[n]=t}toJSON(e,t){const n=[];if(t?.onCreate)t.onCreate(n);let r=0;for(const e of this.items)n.push(u.toJS(e,String(r++),t));return n}toString(e,t,n){if(!e)return JSON.stringify(this);return s.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t})}static from(e,t,n){const{replacer:s}=n;const i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let o of t){if(typeof s==="function"){const n=t instanceof Set?o:String(e++);o=s.call(t,n,o)}i.items.push(r.createNode(o,undefined,n))}}return i}}function asItemIndex(e){let t=o.isScalar(e)?e.value:e;if(t&&typeof t==="string")t=Number(t);return typeof t==="number"&&Number.isInteger(t)&&t>=0?t:null}t.YAMLSeq=YAMLSeq},4676:(e,t,n)=>{var r=n(6909);var s=n(8409);var i=n(5589);var o=n(9338);var a=n(2463);const u="<<";function addPairToJSMap(e,t,{key:n,value:r}){if(e?.doc.schema.merge&&isMergeKey(n)){r=i.isAlias(r)?r.resolve(e.doc):r;if(i.isSeq(r))for(const n of r.items)mergeToJSMap(e,t,n);else if(Array.isArray(r))for(const n of r)mergeToJSMap(e,t,n);else mergeToJSMap(e,t,r)}else{const s=a.toJS(n,"",e);if(t instanceof Map){t.set(s,a.toJS(r,s,e))}else if(t instanceof Set){t.add(s)}else{const i=stringifyKey(n,s,e);const o=a.toJS(r,i,e);if(i in t)Object.defineProperty(t,i,{value:o,writable:true,enumerable:true,configurable:true});else t[i]=o}}return t}const isMergeKey=e=>e===u||i.isScalar(e)&&e.value===u&&(!e.type||e.type===o.Scalar.PLAIN);function mergeToJSMap(e,t,n){const r=e&&i.isAlias(n)?n.resolve(e.doc):n;if(!i.isMap(r))throw new Error("Merge sources must be maps or map aliases");const s=r.toJSON(null,e,Map);for(const[e,n]of s){if(t instanceof Map){if(!t.has(e))t.set(e,n)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:n,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,n){if(t===null)return"";if(typeof t!=="object")return String(t);if(i.isNode(e)&&n?.doc){const t=s.createStringifyContext(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const i=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(i);if(e.length>40)e=e.substring(0,36)+'..."';r.warn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);n.mapKeyWarned=true}return i}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},5589:(e,t)=>{const n=Symbol.for("yaml.alias");const r=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const i=Symbol.for("yaml.pair");const o=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const u=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[u]===n;const isDocument=e=>!!e&&typeof e==="object"&&e[u]===r;const isMap=e=>!!e&&typeof e==="object"&&e[u]===s;const isPair=e=>!!e&&typeof e==="object"&&e[u]===i;const isScalar=e=>!!e&&typeof e==="object"&&e[u]===o;const isSeq=e=>!!e&&typeof e==="object"&&e[u]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[u]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[u]){case n:case s:case o:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=n;t.DOC=r;t.MAP=s;t.NODE_TYPE=u;t.PAIR=i;t.SCALAR=o;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},2463:(e,t,n)=>{var r=n(5589);function toJS(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),n)));if(e&&typeof e.toJSON==="function"){if(!n||!r.hasAnchor(e))return e.toJSON(t,n);const s={aliasCount:0,count:1,res:undefined};n.anchors.set(e,s);n.onCreate=e=>{s.res=e;delete n.onCreate};const i=e.toJSON(t,n);if(n.onCreate)n.onCreate(i);return i}if(typeof e==="bigint"&&!n?.keep)return Number(e);return e}t.toJS=toJS},9027:(e,t,n)=>{var r=n(9485);var s=n(7578);var i=n(4236);var o=n(6226);function resolveAsScalar(e,t=true,n){if(e){const _onError=(e,t,r)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(n)n(s,t,r);else throw new i.YAMLParseError([s,s+1],t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return r.resolveBlockScalar(e,t,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:n=false,indent:r,inFlow:s=false,offset:i=-1,type:a="PLAIN"}=t;const u=o.stringifyString({type:a,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const c=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(u[0]){case"|":case">":{const e=u.indexOf("\n");const t=u.substring(0,e);const n=u.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:i,indent:r,source:t}];if(!addEndtoBlockProps(s,c))s.push({type:"newline",offset:-1,indent:r,source:"\n"});return{type:"block-scalar",offset:i,indent:r,props:s,source:n}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:u,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:u,end:c};default:return{type:"scalar",offset:i,indent:r,source:u,end:c}}}function setScalarValue(e,t,n={}){let{afterKey:r=false,implicitKey:s=false,inFlow:i=false,type:a}=n;let u="indent"in e?e.indent:null;if(r&&typeof u==="number")u+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const c=o.stringifyString({type:a,value:t},{implicitKey:s||u===null,indent:u!==null&&u>0?" ".repeat(u):"",inFlow:i,options:{blockQuote:true,lineWidth:-1}});switch(c[0]){case"|":case">":setBlockScalarValue(e,c);break;case'"':setFlowScalarValue(e,c,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,c,"single-quoted-scalar");break;default:setFlowScalarValue(e,c,"scalar")}}function setBlockScalarValue(e,t){const n=t.indexOf("\n");const r=t.substring(0,n);const s=t.substring(n+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=r;e.source=s}else{const{offset:t}=e;const n="indent"in e?e.indent:-1;const i=[{type:"block-scalar-header",offset:t,indent:n,source:r}];if(!addEndtoBlockProps(i,"end"in e?e.end:undefined))i.push({type:"newline",offset:-1,indent:n,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:i,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":e.push(n);return true}return false}function setFlowScalarValue(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n;e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of r)e.offset+=s;delete e.props;Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const r=e.offset+t.length;const s={type:"newline",offset:r,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:n,source:t,end:[s]});break}default:{const r="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},6307:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=stringifyToken(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=stringifyItem(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=stringifyItem(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function stringifyItem({start:e,key:t,sep:n,value:r}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(n)for(const e of n)s+=e.source;if(r)s+=stringifyToken(r);return s}t.stringify=stringify},8497:(e,t)=>{const n=Symbol("break visit");const r=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=n;visit.SKIP=r;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let n=e;for(const[e,r]of t){const t=n?.[e];if(t&&"items"in t){n=t.items[r]}else return undefined}return n};visit.parentCollection=(e,t)=>{const n=visit.itemAtPath(e,t.slice(0,-1));const r=t[t.length-1][0];const s=n?.[r];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,r){let i=r(t,e);if(typeof i==="symbol")return i;for(const o of["key","value"]){const a=t[o];if(a&&"items"in a){for(let t=0;t<a.items.length;++t){const i=_visit(Object.freeze(e.concat([[o,t]])),a.items[t],r);if(typeof i==="number")t=i-1;else if(i===n)return n;else if(i===s){a.items.splice(t,1);t-=1}}if(typeof i==="function"&&o==="key")i=i(t,e)}}return typeof i==="function"?i(t,e):i}t.visit=visit},9169:(e,t,n)=>{var r=n(9027);var s=n(6307);var i=n(8497);const o="\ufeff";const a="";const u="";const c="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case o:return"<BOM>";case a:return"<DOC>";case u:return"<FLOW_END>";case c:return"<SCALAR>";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case o:return"byte-order-mark";case a:return"doc-mode";case u:return"flow-error-end";case c:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=r.createScalarToken;t.resolveAsScalar=r.resolveAsScalar;t.setScalarValue=r.setScalarValue;t.stringify=s.stringify;t.visit=i.visit;t.BOM=o;t.DOCUMENT=a;t.FLOW_END=u;t.SCALAR=c;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},5976:(e,t,n)=>{var r=n(9169);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s="0123456789ABCDEFabcdef".split("");const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split("");const o=",[]{}".split("");const a=" ,[]{}\n\r\t".split("");const isNotAnchorChar=e=>!e||a.includes(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";while(n&&(t||this.hasChars(1)))n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;while(t===" ")t=this.buffer[++n+e];if(t==="\r"){const t=this.buffer[n+e+1];if(t==="\n"||!t&&!this.atEnd)return e+n+1}return t==="\n"||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&e<this.pos){e=this.buffer.indexOf("\n",this.pos);this.lineEndPos=e}if(e===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[e-1]==="\r")e-=1;return this.buffer.substring(this.pos,e)}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){this.buffer=this.buffer.substring(this.pos);this.pos=0;this.lineEndPos=null;this.next=e;return null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===r.BOM){yield*this.pushCount(1);e=e.substring(1)}if(e[0]==="%"){let t=e.length;const n=e.indexOf("#");if(n!==-1){const r=e[n-1];if(r===" "||r==="\t")t=n-1}while(true){const n=e[t-1];if(n===" "||n==="\t")t-=1;else break}const r=(yield*this.pushCount(t))+(yield*this.pushSpaces(true));yield*this.pushCount(e.length-r);this.pushNewline();return"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(true);yield*this.pushCount(e.length-t);yield*this.pushNewline();return"stream"}yield r.DOCUMENT;return yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if(e==="---"&&isEmpty(this.charAt(3))){yield*this.pushCount(3);this.indentValue=0;this.indentNext=0;return"doc"}else if(e==="..."&&isEmpty(this.charAt(3))){yield*this.pushCount(3);return"stream"}}this.indentValue=yield*this.pushSpaces(false);if(this.indentNext>this.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let n=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=n=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(n!==-1&&n<this.indentNext&&s[0]!=="#"||n===0&&(s.startsWith("---")||s.startsWith("..."))&&isEmpty(s[3])){const e=n===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}");if(!e){this.flowLevel=0;yield r.FLOW_END;return yield*this.parseLineStart()}}let i=0;while(s[i]===","){i+=(yield*this.pushCount(1));i+=(yield*this.pushSpaces(true));this.flowKey=false}i+=(yield*this.pushIndicators());switch(s[i]){case undefined:return"flow";case"#":yield*this.pushCount(s.length-i);return"flow";case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel+=1;return"flow";case"}":case"]":yield*this.pushCount(1);this.flowKey=true;this.flowLevel-=1;return this.flowLevel?"flow":"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"flow";case'"':case"'":this.flowKey=true;return yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||isEmpty(e)||e===","){this.flowKey=false;yield*this.pushCount(1);yield*this.pushSpaces(true);return"flow"}}default:this.flowKey=false;return yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if(e==="'"){while(t!==-1&&this.buffer[t+1]==="'")t=this.buffer.indexOf("'",t+2)}else{while(t!==-1){let e=0;while(this.buffer[t-1-e]==="\\")e+=1;if(e%2===0)break;t=this.buffer.indexOf('"',t+1)}}const n=this.buffer.substring(0,t);let r=n.indexOf("\n",this.pos);if(r!==-1){while(r!==-1){const e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf("\n",e)}if(r!==-1){t=r-(n[r-1]==="\r"?2:1)}}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}yield*this.pushToIndex(t+1,false);return this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1;this.blockScalarKeep=false;let e=this.pos;while(true){const t=this.buffer[++e];if(t==="+")this.blockScalarKeep=true;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let n;e:for(let r=this.pos;n=this.buffer[r];++r){switch(n){case" ":t+=1;break;case"\n":e=r;t=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else this.indentNext+=this.blockScalarIndent;do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}if(!this.blockScalarKeep){do{let n=e-1;let r=this.buffer[n];if(r==="\r")r=this.buffer[--n];const s=n;while(r===" "||r==="\t")r=this.buffer[--n];if(r==="\n"&&n>=this.pos&&n+1+t>s)e=n;else break}while(true)}yield r.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let n=this.pos-1;let s;while(s=this.buffer[++n]){if(s===":"){const r=this.buffer[n+1];if(isEmpty(r)||e&&r===",")break;t=n}else if(isEmpty(s)){let r=this.buffer[n+1];if(s==="\r"){if(r==="\n"){n+=1;s="\n";r=this.buffer[n+1]}else t=n}if(r==="#"||e&&o.includes(r))break;if(s==="\n"){const e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&o.includes(s))break;t=n}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield r.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);if(n){yield n;this.pos+=n.length;return n.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&o.includes(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(i.includes(t))t=this.buffer[++e];else if(t==="%"&&s.includes(this.buffer[e+1])&&s.includes(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let n;do{n=this.buffer[++t]}while(n===" "||e&&n==="\t");const r=t-this.pos;if(r>0){yield this.buffer.substr(this.pos,r);this.pos=t}return r}*pushUntil(e){let t=this.pos;let n=this.buffer[t];while(!e(n))n=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},1929:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let n=this.lineStarts.length;while(t<n){const r=t+n>>1;if(this.lineStarts[r]<e)t=r+1;else n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};const r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}}t.LineCounter=LineCounter},3328:(e,t,n)=>{var r=n(9169);var s=n(5976);function includesToken(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return true;return false}function findNonEmptyIndex(e){for(let t=0;t<e.length;++t){switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}}return-1}function isFlowToken(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return true;default:return false}}function getPrevProps(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function getFirstKeyStartProps(e){if(e.length===0)return[];let t=e.length;e:while(--t>=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",r.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=r.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(n.sep){n.value=t}else{Object.assign(n,{key:t,sep:[]});this.onKeyLine=!includesToken(n.start,"explicit-key-ind");return}break}case"block-seq":{const n=e.items[e.items.length-1];if(n.value)e.items.push({start:[],value:t});else n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];if(!n||n.value)e.items.push({start:[],key:t,sep:[]});else if(n.sep)n.value=t;else Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const n=t.items[t.items.length-1];if(n&&!n.sep&&!n.value&&n.start.length>0&&findNonEmptyIndex(n.start)===-1&&(t.indent===0||n.start.every((e=>e.type!=="comment"||e.indent<t.indent)))){if(e.type==="document")e.end=n.start;else e.items.push({start:n.start});t.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")e.start.push(this.sourceToken);this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{if(findNonEmptyIndex(e.start)!==-1){yield*this.pop();yield*this.step()}else e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const t=this.startBlockValue(e);if(t)this.stack.push(t);else{yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}}*scalar(e){if(this.type==="map-value-ind"){const t=getPrevProps(this.peek(2));const n=getFirstKeyStartProps(t);let r;if(e.end){r=e.end;r.push(this.sourceToken);delete e.end}else r=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=true;this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":e.source=this.source;this.atNewLine=true;this.indent=0;if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}yield*this.pop();break;default:yield*this.pop();yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":this.onKeyLine=false;if(t.value){const n="end"in t.value?t.value.end:undefined;const r=Array.isArray(n)?n[n.length-1]:undefined;if(r?.type==="comment")n?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"space":case"comment":if(t.value){e.items.push({start:[this.sourceToken]})}else if(t.sep){t.sep.push(this.sourceToken)}else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2];const r=n?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,t.start);r.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent&&t.sep;let r=[];if(n&&t.sep&&!t.value){const n=[];for(let r=0;r<t.sep.length;++r){const s=t.sep[r];switch(s.type){case"newline":n.push(r);break;case"space":break;case"comment":if(s.indent>e.indent)n.length=0;break;default:n.length=0}}if(n.length>=2)r=t.sep.splice(n[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){r.push(this.sourceToken);e.items.push({start:r});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!includesToken(t.start,"explicit-key-ind")){t.start.push(this.sourceToken)}else if(n||t.value){r.push(this.sourceToken);e.items.push({start:r})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]})}this.onKeyLine=true;return;case"map-value-ind":if(includesToken(t.start,"explicit-key-ind")){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const n=t.key;const r=t.sep;r.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else if(r.length>0){t.sep=t.sep.concat(r,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:r,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);if(n||t.value){e.items.push({start:r,key:s,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(s)}else{Object.assign(t,{key:s,sep:[]});this.onKeyLine=true}return}default:{const s=this.startBlockValue(e);if(s){if(n&&s.type!=="block-seq"&&includesToken(t.start,"explicit-key-ind")){e.items.push({start:r})}this.stack.push(s);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:undefined;const r=Array.isArray(n)?n[n.length-1]:undefined;if(r?.type==="comment")n?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2];const r=n?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,t.start);r.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:n,sep:[]});else if(t.sep)this.stack.push(n);else Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);if(n)this.stack.push(n);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const n=getPrevProps(t);const r=getFirstKeyStartProps(n);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=i}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const n=getFirstKeyStartProps(t);n.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const n=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},8649:(e,t,n)=>{var r=n(9493);var s=n(42);var i=n(4236);var o=n(6909);var a=n(1929);var u=n(3328);function parseOptions(e){const t=e.prettyErrors!==false;const n=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:n,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:n,prettyErrors:s}=parseOptions(t);const o=new u.Parser(n?.addNewLine);const a=new r.Composer(t);const c=Array.from(a.compose(o.parse(e)));if(s&&n)for(const t of c){t.errors.forEach(i.prettifyError(e,n));t.warnings.forEach(i.prettifyError(e,n))}if(c.length>0)return c;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:n,prettyErrors:s}=parseOptions(t);const o=new u.Parser(n?.addNewLine);const a=new r.Composer(t);let c=null;for(const t of a.compose(o.parse(e),true,e.length)){if(!c)c=t;else if(c.options.logLevel!=="silent"){c.errors.push(new i.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&n){c.errors.forEach(i.prettifyError(e,n));c.warnings.forEach(i.prettifyError(e,n))}return c}function parse(e,t,n){let r=undefined;if(typeof t==="function"){r=t}else if(n===undefined&&t&&typeof t==="object"){n=t}const s=parseDocument(e,n);if(!s)return null;s.warnings.forEach((e=>o.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:r},n))}function stringify(e,t,n){let r=null;if(typeof t==="function"||Array.isArray(t)){r=t}else if(n===undefined&&t){n=t}if(typeof n==="string")n=n.length;if(typeof n==="number"){const e=Math.round(n);n=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=n??t??{};if(!e)return undefined}return new s.Document(e,r,n).toString(n)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},6831:(e,t,n)=>{var r=n(5589);var s=n(83);var i=n(1693);var o=n(2201);var a=n(4138);const sortMapEntriesByKey=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:u,schema:c,sortMapEntries:l,toStringDefaults:f}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!n;this.name=typeof c==="string"&&c||"core";this.knownTags=u?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=f??null;Object.defineProperty(this,r.MAP,{value:s.map});Object.defineProperty(this,r.SCALAR,{value:o.string});Object.defineProperty(this,r.SEQ,{value:i.seq});this.sortMapEntries=typeof l==="function"?l:l===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},83:(e,t,n)=>{var r=n(5589);var s=n(6011);const i={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!r.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,n)=>s.YAMLMap.from(e,t,n)};t.map=i},6703:(e,t,n)=>{var r=n(9338);const s={identify:e=>e==null,createNode:()=>new r.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new r.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1693:(e,t,n)=>{var r=n(5589);var s=n(5161);const i={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!r.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,n)=>s.YAMLSeq.from(e,t,n)};t.seq=i},2201:(e,t,n)=>{var r=n(6226);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,s){t=Object.assign({actualString:true},t);return r.stringifyString(e,t,n,s)}};t.string=s},2045:(e,t,n)=>{var r=n(9338);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new r.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&s.test.test(e)){const n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?n.options.trueStr:n.options.falseStr}};t.boolTag=s},6810:(e,t,n)=>{var r=n(9338);var s=n(4174);const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new r.Scalar(parseFloat(e));const n=e.indexOf(".");if(n!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-n-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=o;t.floatNaN=i},3019:(e,t,n)=>{var r=n(4174);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function intStringify(e,t,n){const{value:s}=e;if(intIdentify(s)&&s>=0)return n+s.toString(t);return r.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>intResolve(e,2,8,n),stringify:e=>intStringify(e,8,"0o")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>intResolve(e,0,10,n),stringify:r.stringifyNumber};const o={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>intResolve(e,2,16,n),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intHex=o;t.intOct=s},27:(e,t,n)=>{var r=n(83);var s=n(6703);var i=n(1693);var o=n(2201);var a=n(2045);var u=n(6810);var c=n(3019);const l=[r.map,i.seq,o.string,s.nullTag,a.boolTag,c.intOct,c.int,c.intHex,u.floatNaN,u.floatExp,u.float];t.schema=l},4545:(e,t,n)=>{var r=n(9338);var s=n(83);var i=n(1693);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const o=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new r.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const u=[s.map,i.seq].concat(o,a);t.schema=u},4138:(e,t,n)=>{var r=n(83);var s=n(6703);var i=n(1693);var o=n(2201);var a=n(2045);var u=n(6810);var c=n(3019);var l=n(27);var f=n(4545);var h=n(5724);var p=n(8974);var d=n(9841);var g=n(5389);var y=n(7847);var b=n(1156);const v=new Map([["core",l.schema],["failsafe",[r.map,i.seq,o.string]],["json",f.schema],["yaml11",g.schema],["yaml-1.1",g.schema]]);const w={binary:h.binary,bool:a.boolTag,float:u.float,floatExp:u.floatExp,floatNaN:u.floatNaN,floatTime:b.floatTime,int:c.int,intHex:c.intHex,intOct:c.intOct,intTime:b.intTime,map:r.map,null:s.nullTag,omap:p.omap,pairs:d.pairs,seq:i.seq,set:y.set,timestamp:b.timestamp};const S={"tag:yaml.org,2002:binary":h.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":d.pairs,"tag:yaml.org,2002:set":y.set,"tag:yaml.org,2002:timestamp":b.timestamp};function getTags(e,t){let n=v.get(t);if(!n){if(Array.isArray(e))n=[];else{const e=Array.from(v.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)n=n.concat(t)}else if(typeof e==="function"){n=e(n.slice())}return n.map((e=>{if(typeof e!=="string")return e;const t=w[e];if(t)return t;const n=Object.keys(w).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}t.coreKnownTags=S;t.getTags=getTags},5724:(e,t,n)=>{var r=n(9338);var s=n(6226);const i={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}else{t("This environment does not support reading binary tags; either Buffer or atob is required");return e}},stringify({comment:e,type:t,value:n},i,o,a){const u=n;let c;if(typeof Buffer==="function"){c=u instanceof Buffer?u.toString("base64"):Buffer.from(u.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t<u.length;++t)e+=String.fromCharCode(u[t]);c=btoa(e)}else{throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required")}if(!t)t=r.Scalar.BLOCK_LITERAL;if(t!==r.Scalar.QUOTE_DOUBLE){const e=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth);const n=Math.ceil(c.length/e);const s=new Array(n);for(let t=0,r=0;t<n;++t,r+=e){s[t]=c.substr(r,e)}c=s.join(t===r.Scalar.BLOCK_LITERAL?"\n":" ")}return s.stringifyString({comment:e,type:t,value:c},i,o,a)}};t.binary=i},2631:(e,t,n)=>{var r=n(9338);function boolStringify({value:e,source:t},n){const r=e?s:i;if(t&&r.test.test(t))return t;return e?n.options.trueStr:n.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new r.Scalar(true),stringify:boolStringify};const i={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new r.Scalar(false),stringify:boolStringify};t.falseTag=i;t.trueTag=s},8035:(e,t,n)=>{var r=n(9338);var s=n(4174);const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new r.Scalar(parseFloat(e.replace(/_/g,"")));const n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");if(r[r.length-1]==="0")t.minFractionDigits=r.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=o;t.floatNaN=i},9503:(e,t,n)=>{var r=n(4174);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,n,{intAsBigInt:r}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const i=parseInt(e,n);return s==="-"?-1*i:i}function intStringify(e,t,n){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+n+e.substr(1):n+e}return r.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>intResolve(e,2,2,n),stringify:e=>intStringify(e,2,"0b")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>intResolve(e,1,8,n),stringify:e=>intStringify(e,8,"0")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>intResolve(e,0,10,n),stringify:r.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>intResolve(e,2,16,n),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intBin=s;t.intHex=a;t.intOct=i},8974:(e,t,n)=>{var r=n(5589);var s=n(2463);var i=n(6011);var o=n(5161);var a=n(9841);class YAMLOMap extends o.YAMLSeq{constructor(){super();this.add=i.YAMLMap.prototype.add.bind(this);this.delete=i.YAMLMap.prototype.delete.bind(this);this.get=i.YAMLMap.prototype.get.bind(this);this.has=i.YAMLMap.prototype.has.bind(this);this.set=i.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;if(t?.onCreate)t.onCreate(n);for(const e of this.items){let i,o;if(r.isPair(e)){i=s.toJS(e.key,"",t);o=s.toJS(e.value,i,t)}else{i=s.toJS(e,"",t)}if(n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,o)}return n}static from(e,t,n){const r=a.createPairs(e,t,n);const s=new this;s.items=r.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const u={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=a.resolvePairs(e,t);const s=[];for(const{key:e}of n.items){if(r.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,n)},createNode:(e,t,n)=>YAMLOMap.from(e,t,n)};t.YAMLOMap=YAMLOMap;t.omap=u},9841:(e,t,n)=>{var r=n(5589);var s=n(246);var i=n(9338);var o=n(5161);function resolvePairs(e,t){if(r.isSeq(e)){for(let n=0;n<e.items.length;++n){let o=e.items[n];if(r.isPair(o))continue;else if(r.isMap(o)){if(o.items.length>1)t("Each pair must have its own sequence indicator");const e=o.items[0]||new s.Pair(new i.Scalar(null));if(o.commentBefore)e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore;if(o.comment){const t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[n]=r.isPair(o)?o:new s.Pair(o)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,n){const{replacer:r}=n;const i=new o.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof r==="function")e=r.call(t,String(a++),e);let o,u;if(Array.isArray(e)){if(e.length===2){o=e[0];u=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){o=t[0];u=e[o]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{o=e}i.items.push(s.createPair(o,u,n))}return i}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},5389:(e,t,n)=>{var r=n(83);var s=n(6703);var i=n(1693);var o=n(2201);var a=n(5724);var u=n(2631);var c=n(8035);var l=n(9503);var f=n(8974);var h=n(9841);var p=n(7847);var d=n(1156);const g=[r.map,i.seq,o.string,s.nullTag,u.trueTag,u.falseTag,l.intBin,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float,a.binary,f.omap,h.pairs,p.set,d.intTime,d.floatTime,d.timestamp];t.schema=g},7847:(e,t,n)=>{var r=n(5589);var s=n(246);var i=n(6011);class YAMLSet extends i.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(r.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const n=i.findPair(this.items,t.key);if(!n)this.items.push(t)}get(e,t){const n=i.findPair(this.items,e);return!t&&r.isPair(n)?r.isScalar(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const n=i.findPair(this.items,e);if(n&&!t){this.items.splice(this.items.indexOf(n),1)}else if(!n&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,n);else throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:r}=n;const i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof r==="function")e=r.call(t,e,e);i.items.push(s.createPair(e,null,n))}return i}}YAMLSet.tag="tag:yaml.org,2002:set";const o={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>YAMLSet.from(e,t,n),resolve(e,t){if(r.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=o},1156:(e,t,n)=>{var r=n(4174);function parseSexagesimal(e,t){const n=e[0];const r=n==="-"||n==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return n==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return r.stringifyNumber(e);let n="";if(t<0){n="-";t*=num(-1)}const s=num(60);const i=[t%s];if(t<60){i.unshift(0)}else{t=(t-i[0])/s;i.unshift(t%s);if(t>=60){t=(t-i[0])/s;i.unshift(t)}}return n+i.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>parseSexagesimal(e,n),stringify:stringifySexagesimal};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const o={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(o.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,s,i,a,u]=t.map(Number);const c=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(n,r-1,s,i||0,a||0,u||0,c);const f=t[8];if(f&&f!=="Z"){let e=parseSexagesimal(f,false);if(Math.abs(e)<30)e*=60;l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=i;t.intTime=s;t.timestamp=o},2889:(e,t)=>{const n="flow";const r="block";const s="quoted";function foldFlowLines(e,t,n="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:a=20,onFold:u,onOverflow:c}={}){if(!o||o<0)return e;const l=Math.max(1+a,1+o-t.length);if(e.length<=l)return e;const f=[];const h={};let p=o-t.length;if(typeof i==="number"){if(i>o-Math.max(2,a))f.push(0);else p=o-i}let d=undefined;let g=undefined;let y=false;let b=-1;let v=-1;let w=-1;if(n===r){b=consumeMoreIndentedLines(e,b);if(b!==-1)p=b+l}for(let t;t=e[b+=1];){if(n===s&&t==="\\"){v=b;switch(e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}w=b}if(t==="\n"){if(n===r)b=consumeMoreIndentedLines(e,b);p=b+l;d=undefined}else{if(t===" "&&g&&g!==" "&&g!=="\n"&&g!=="\t"){const t=e[b+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")d=b}if(b>=p){if(d){f.push(d);p=d+l;d=undefined}else if(n===s){while(g===" "||g==="\t"){g=t;t=e[b+=1];y=true}const n=b>w+1?b-2:v-1;if(h[n])return e;f.push(n);h[n]=true;p=n+l;d=undefined}else{y=true}}}g=t}if(y&&c)c();if(f.length===0)return e;if(u)u();let S=e.slice(0,f[0]);for(let r=0;r<f.length;++r){const i=f[r];const o=f[r+1]||e.length;if(i===0)S=`\n${t}${e.slice(0,o)}`;else{if(n===s&&h[i])S+=`${e[i]}\\`;S+=`\n${t}${e.slice(i+1,o)}`}}return S}function consumeMoreIndentedLines(e,t){let n=e[t+1];while(n===" "||n==="\t"){do{n=e[t+=1]}while(n&&n!=="\n");n=e[t+1]}return t}t.FOLD_BLOCK=r;t.FOLD_FLOW=n;t.FOLD_QUOTED=s;t.foldFlowLines=foldFlowLines},8409:(e,t,n)=>{var r=n(8459);var s=n(5589);var i=n(5182);var o=n(6226);function createStringifyContext(e,t){const n=Object.assign({blockQuote:true,commentString:i.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=false;break;case"flow":r=true;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent==="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function getTagObject(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let n=undefined;let r;if(s.isScalar(t)){r=t.value;const s=e.filter((e=>e.identify?.(r)));n=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{r=t;n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass))}if(!n){const e=r?.constructor?.name??typeof r;throw new Error(`Tag not resolved for ${e} value`)}return n}function stringifyProps(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&r.anchorIsValid(a)){n.add(a);o.push(`&${a}`)}const u=e.tag?e.tag:t.default?null:t.tag;if(u)o.push(i.directives.tagString(u));return o.join(" ")}function stringify(e,t,n,r){if(s.isPair(e))return e.toString(t,n,r);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let i=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});if(!i)i=getTagObject(t.doc.schema.tags,a);const u=stringifyProps(a,i,t);if(u.length>0)t.indentAtStart=(t.indentAtStart??0)+u.length+1;const c=typeof i.stringify==="function"?i.stringify(a,t,n,r):s.isScalar(a)?o.stringifyString(a,t,n,r):a.toString(t,n,r);if(!u)return c;return s.isScalar(a)||c[0]==="{"||c[0]==="["?`${u} ${c}`:`${u}\n${t.indent}${c}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},2466:(e,t,n)=>{var r=n(3466);var s=n(5589);var i=n(8409);var o=n(5182);function stringifyCollection(e,t,n){const r=t.inFlow??e.flow;const s=r?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,n)}function stringifyBlockCollection({comment:e,items:t},n,{blockItemPrefix:r,flowChars:a,itemIndent:u,onChompKeep:c,onComment:l}){const{indent:f,options:{commentString:h}}=n;const p=Object.assign({},n,{indent:u,type:null});let d=false;const g=[];for(let e=0;e<t.length;++e){const a=t[e];let c=null;if(s.isNode(a)){if(!d&&a.spaceBefore)g.push("");addCommentBefore(n,g,a.commentBefore,d);if(a.comment)c=a.comment}else if(s.isPair(a)){const e=s.isNode(a.key)?a.key:null;if(e){if(!d&&e.spaceBefore)g.push("");addCommentBefore(n,g,e.commentBefore,d)}}d=false;let l=i.stringify(a,p,(()=>c=null),(()=>d=true));if(c)l+=o.lineComment(l,u,h(c));if(d&&c)d=false;g.push(r+l)}let y;if(g.length===0){y=a.start+a.end}else{y=g[0];for(let e=1;e<g.length;++e){const t=g[e];y+=t?`\n${f}${t}`:"\n"}}if(e){y+="\n"+o.indentComment(h(e),f);if(l)l()}else if(d&&c)c();return y}function stringifyFlowCollection({comment:e,items:t},n,{flowChars:a,itemIndent:u,onComment:c}){const{indent:l,indentStep:f,flowCollectionPadding:h,options:{commentString:p}}=n;u+=f;const d=Object.assign({},n,{indent:u,inFlow:true,type:null});let g=false;let y=0;const b=[];for(let e=0;e<t.length;++e){const r=t[e];let a=null;if(s.isNode(r)){if(r.spaceBefore)b.push("");addCommentBefore(n,b,r.commentBefore,false);if(r.comment)a=r.comment}else if(s.isPair(r)){const e=s.isNode(r.key)?r.key:null;if(e){if(e.spaceBefore)b.push("");addCommentBefore(n,b,e.commentBefore,false);if(e.comment)g=true}const t=s.isNode(r.value)?r.value:null;if(t){if(t.comment)a=t.comment;if(t.commentBefore)g=true}else if(r.value==null&&e?.comment){a=e.comment}}if(a)g=true;let c=i.stringify(r,d,(()=>a=null));if(e<t.length-1)c+=",";if(a)c+=o.lineComment(c,u,p(a));if(!g&&(b.length>y||c.includes("\n")))g=true;b.push(c);y=b.length}let v;const{start:w,end:S}=a;if(b.length===0){v=w+S}else{if(!g){const e=b.reduce(((e,t)=>e+t.length+2),2);g=e>r.Collection.maxFlowStringSingleLineLength}if(g){v=w;for(const e of b)v+=e?`\n${f}${l}${e}`:"\n";v+=`\n${l}${S}`}else{v=`${w}${h}${b.join(" ")}${h}${S}`}}if(e){v+=o.lineComment(v,l,p(e));if(c)c()}return v}function addCommentBefore({indent:e,options:{commentString:t}},n,r,s){if(r&&s)r=r.replace(/^\n+/,"");if(r){const s=o.indentComment(t(r),e);n.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},5182:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,n)=>e.endsWith("\n")?indentComment(n,t):n.includes("\n")?"\n"+indentComment(n,t):(e.endsWith(" ")?"":" ")+n;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},5225:(e,t,n)=>{var r=n(5589);var s=n(8409);var i=n(5182);function stringifyDocument(e,t){const n=[];let o=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){n.push(t);o=true}else if(e.directives.docStart)o=true}if(o)n.push("---");const a=s.createStringifyContext(e,t);const{commentString:u}=a.options;if(e.commentBefore){if(n.length!==1)n.unshift("");const t=u(e.commentBefore);n.unshift(i.indentComment(t,""))}let c=false;let l=null;if(e.contents){if(r.isNode(e.contents)){if(e.contents.spaceBefore&&o)n.push("");if(e.contents.commentBefore){const t=u(e.contents.commentBefore);n.push(i.indentComment(t,""))}a.forceBlockIndent=!!e.comment;l=e.contents.comment}const t=l?undefined:()=>c=true;let f=s.stringify(e.contents,a,(()=>l=null),t);if(l)f+=i.lineComment(f,"",u(l));if((f[0]==="|"||f[0]===">")&&n[n.length-1]==="---"){n[n.length-1]=`--- ${f}`}else n.push(f)}else{n.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=u(e.comment);if(t.includes("\n")){n.push("...");n.push(i.indentComment(t,""))}else{n.push(`... ${t}`)}}else{n.push("...")}}else{let t=e.comment;if(t&&c)t=t.replace(/^\n+/,"");if(t){if((!c||l)&&n[n.length-1]!=="")n.push("");n.push(i.indentComment(u(t),""))}}return n.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},4174:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==="bigint")return String(r);const s=typeof r==="number"?r:Number(r);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let e=i.indexOf(".");if(e<0){e=i.length;i+="."}let n=t-(i.length-e-1);while(n-- >0)i+="0"}return i}t.stringifyNumber=stringifyNumber},4875:(e,t,n)=>{var r=n(5589);var s=n(9338);var i=n(8409);var o=n(5182);function stringifyPair({key:e,value:t},n,a,u){const{allNullValues:c,doc:l,indent:f,indentStep:h,options:{commentString:p,indentSeq:d,simpleKeys:g}}=n;let y=r.isNode(e)&&e.comment||null;if(g){if(y){throw new Error("With simple keys, key nodes cannot have comments")}if(r.isCollection(e)){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let b=!g&&(!e||y&&t==null&&!n.inFlow||r.isCollection(e)||(r.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));n=Object.assign({},n,{allNullValues:false,implicitKey:!b&&(g||!c),indent:f+h});let v=false;let w=false;let S=i.stringify(e,n,(()=>v=true),(()=>w=true));if(!b&&!n.inFlow&&S.length>1024){if(g)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");b=true}if(n.inFlow){if(c||t==null){if(v&&a)a();return S===""?"?":b?`? ${S}`:S}}else if(c&&!g||t==null&&b){S=`? ${S}`;if(y&&!v){S+=o.lineComment(S,n.indent,p(y))}else if(w&&u)u();return S}if(v)y=null;if(b){if(y)S+=o.lineComment(S,n.indent,p(y));S=`? ${S}\n${f}:`}else{S=`${S}:`;if(y)S+=o.lineComment(S,n.indent,p(y))}let A,E,D;if(r.isNode(t)){A=!!t.spaceBefore;E=t.commentBefore;D=t.comment}else{A=false;E=null;D=null;if(t&&typeof t==="object")t=l.createNode(t)}n.implicitKey=false;if(!b&&!y&&r.isScalar(t))n.indentAtStart=S.length+1;w=false;if(!d&&h.length>=2&&!n.inFlow&&!b&&r.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){n.indent=n.indent.substring(2)}let C=false;const _=i.stringify(t,n,(()=>C=true),(()=>w=true));let k=" ";if(y||A||E){k=A?"\n":"";if(E){const e=p(E);k+=`\n${o.indentComment(e,n.indent)}`}if(_===""&&!n.inFlow){if(k==="\n")k="\n\n"}else{k+=`\n${n.indent}`}}else if(!b&&r.isCollection(t)){const e=_[0];const r=_.indexOf("\n");const s=r!==-1;const i=n.inFlow??t.flow??t.items.length===0;if(s||!i){let t=false;if(s&&(e==="&"||e==="!")){let n=_.indexOf(" ");if(e==="&"&&n!==-1&&n<r&&_[n+1]==="!"){n=_.indexOf(" ",n+1)}if(n===-1||r<n)t=true}if(!t)k=`\n${n.indent}`}}else if(_===""||_[0]==="\n"){k=""}S+=k+_;if(n.inFlow){if(C&&a)a()}else if(D&&!C){S+=o.lineComment(S,n.indent,p(D))}else if(w&&u){u()}return S}t.stringifyPair=stringifyPair},6226:(e,t,n)=>{var r=n(9338);var s=n(2889);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,n){if(!t||t<0)return false;const r=t-n;const s=e.length;if(s<=r)return false;for(let t=0,n=0;t<s;++t){if(e[t]==="\n"){if(t-n>r)return true;n=t+1;if(s-n<=r)return false}}return true}function doubleQuotedString(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t;const i=t.options.doubleQuotedMinMultiLineLength;const o=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let u=0;for(let e=0,t=n[e];t;t=n[++e]){if(t===" "&&n[e+1]==="\\"&&n[e+2]==="n"){a+=n.slice(u,e)+"\\ ";e+=1;u=e;t="\\"}if(t==="\\")switch(n[e+1]){case"u":{a+=n.slice(u,e);const t=n.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=n.substr(e,6)}e+=5;u=e+1}break;case"n":if(r||n[e+2]==='"'||n.length<i){e+=1}else{a+=n.slice(u,e)+"\n\n";while(n[e+2]==="\\"&&n[e+3]==="n"&&n[e+4]!=='"'){a+="\n";e+=2}a+=o;if(n[e+2]===" ")a+="\\";e+=1;u=e+1}break;default:e+=1}}a=u?a+n.slice(u):n;return r?a:s.foldFlowLines(a,o,s.FOLD_QUOTED,getFoldOptions(t,false))}function singleQuotedString(e,t){if(t.options.singleQuote===false||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return doubleQuotedString(e,t);const n=t.indent||(containsDocumentMarker(e)?" ":"");const r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:s.foldFlowLines(r,n,s.FOLD_FLOW,getFoldOptions(t,false))}function quotedString(e,t){const{singleQuote:n}=t.options;let r;if(n===false)r=doubleQuotedString;else{const t=e.includes('"');const s=e.includes("'");if(t&&!s)r=singleQuotedString;else if(s&&!t)r=doubleQuotedString;else r=n?singleQuotedString:doubleQuotedString}return r(e,t)}let i;try{i=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{i=/\n+(?!\n|$)/g}function blockString({comment:e,type:t,value:n},o,a,u){const{blockQuote:c,commentString:l,lineWidth:f}=o.options;if(!c||/\n[\t ]+$/.test(n)||/^\s*$/.test(n)){return quotedString(n,o)}const h=o.indent||(o.forceBlockIndent||containsDocumentMarker(n)?" ":"");const p=c==="literal"?true:c==="folded"||t===r.Scalar.BLOCK_FOLDED?false:t===r.Scalar.BLOCK_LITERAL?true:!lineLengthOverLimit(n,f,h.length);if(!n)return p?"|\n":">\n";let d;let g;for(g=n.length;g>0;--g){const e=n[g-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let y=n.substring(g);const b=y.indexOf("\n");if(b===-1){d="-"}else if(n===y||b!==y.length-1){d="+";if(u)u()}else{d=""}if(y){n=n.slice(0,-y.length);if(y[y.length-1]==="\n")y=y.slice(0,-1);y=y.replace(i,`$&${h}`)}let v=false;let w;let S=-1;for(w=0;w<n.length;++w){const e=n[w];if(e===" ")v=true;else if(e==="\n")S=w;else break}let A=n.substring(0,S<w?S+1:w);if(A){n=n.substring(A.length);A=A.replace(/\n+/g,`$&${h}`)}const E=h?"2":"1";let D=(p?"|":">")+(v?E:"")+d;if(e){D+=" "+l(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){n=n.replace(/\n+/g,`$&${h}`);return`${D}\n${h}${A}${n}${y}`}n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`);const C=s.foldFlowLines(`${A}${n}${y}`,h,s.FOLD_BLOCK,getFoldOptions(o,true));return`${D}\n${h}${C}`}function plainString(e,t,n,i){const{type:o,value:a}=e;const{actualString:u,implicitKey:c,indent:l,indentStep:f,inFlow:h}=t;if(c&&a.includes("\n")||h&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return c||h||!a.includes("\n")?quotedString(a,t):blockString(e,t,n,i)}if(!c&&!h&&o!==r.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,n,i)}if(containsDocumentMarker(a)){if(l===""){t.forceBlockIndent=true;return blockString(e,t,n,i)}else if(c&&l===f){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${l}`);if(u){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:n}=t.doc.schema;if(n.some(test)||e?.some(test))return quotedString(a,t)}return c?p:s.foldFlowLines(p,l,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,n,s){const{implicitKey:i,inFlow:o}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:u}=e;if(u!==r.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))u=r.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case r.Scalar.BLOCK_FOLDED:case r.Scalar.BLOCK_LITERAL:return i||o?quotedString(a.value,t):blockString(a,t,n,s);case r.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case r.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case r.Scalar.PLAIN:return plainString(a,t,n,s);default:return null}};let c=_stringify(u);if(c===null){const{defaultKeyType:e,defaultStringType:n}=t.options;const r=i&&e||n;c=_stringify(r);if(c===null)throw new Error(`Unsupported default string type ${r}`)}return c}t.stringifyString=stringifyString},6796:(e,t,n)=>{var r=n(5589);const s=Symbol("break visit");const i=Symbol("skip children");const o=Symbol("remove node");function visit(e,t){const n=initVisitor(t);if(r.isDocument(e)){const t=visit_(null,e.contents,n,Object.freeze([e]));if(t===o)e.contents=null}else visit_(null,e,n,Object.freeze([]))}visit.BREAK=s;visit.SKIP=i;visit.REMOVE=o;function visit_(e,t,n,i){const a=callVisitor(e,t,n,i);if(r.isNode(a)||r.isPair(a)){replaceNode(e,i,a);return visit_(e,a,n,i)}if(typeof a!=="symbol"){if(r.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const r=visit_(e,t.items[e],n,i);if(typeof r==="number")e=r-1;else if(r===s)return s;else if(r===o){t.items.splice(e,1);e-=1}}}else if(r.isPair(t)){i=Object.freeze(i.concat(t));const e=visit_("key",t.key,n,i);if(e===s)return s;else if(e===o)t.key=null;const r=visit_("value",t.value,n,i);if(r===s)return s;else if(r===o)t.value=null}}return a}async function visitAsync(e,t){const n=initVisitor(t);if(r.isDocument(e)){const t=await visitAsync_(null,e.contents,n,Object.freeze([e]));if(t===o)e.contents=null}else await visitAsync_(null,e,n,Object.freeze([]))}visitAsync.BREAK=s;visitAsync.SKIP=i;visitAsync.REMOVE=o;async function visitAsync_(e,t,n,i){const a=await callVisitor(e,t,n,i);if(r.isNode(a)||r.isPair(a)){replaceNode(e,i,a);return visitAsync_(e,a,n,i)}if(typeof a!=="symbol"){if(r.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const r=await visitAsync_(e,t.items[e],n,i);if(typeof r==="number")e=r-1;else if(r===s)return s;else if(r===o){t.items.splice(e,1);e-=1}}}else if(r.isPair(t)){i=Object.freeze(i.concat(t));const e=await visitAsync_("key",t.key,n,i);if(e===s)return s;else if(e===o)t.key=null;const r=await visitAsync_("value",t.value,n,i);if(r===s)return s;else if(r===o)t.value=null}}return a}function initVisitor(e){if(typeof e==="object"&&(e.Collection||e.Node||e.Value)){return Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e)}return e}function callVisitor(e,t,n,s){if(typeof n==="function")return n(e,t,s);if(r.isMap(t))return n.Map?.(e,t,s);if(r.isSeq(t))return n.Seq?.(e,t,s);if(r.isPair(t))return n.Pair?.(e,t,s);if(r.isScalar(t))return n.Scalar?.(e,t,s);if(r.isAlias(t))return n.Alias?.(e,t,s);return undefined}function replaceNode(e,t,n){const s=t[t.length-1];if(r.isCollection(s)){s.items[e]=n}else if(r.isPair(s)){if(e==="key")s.key=n;else s.value=n}else if(r.isDocument(s)){s.contents=n}else{const e=r.isAlias(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}}t.visit=visit;t.visitAsync=visitAsync},2598:e=>{e.exports=JSON.parse('{"name":"create-expo-nightly","version":"0.0.1","license":"MIT","description":"A tool to create an Expo app for react-native nightlies testing","keywords":["expo","nightlies","react-native","testing"],"bin":"build/index.js","main":"build/index.js","type":"module","files":["build"],"scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","clean":"expo-module clean","lint":"expo-module lint","prepare":"expo-module clean && ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","prepublishOnly":"expo-module prepublishOnly","test":"expo-module test","typecheck":"expo-module typecheck","watch":"ncc build ./src/index.ts -o build/ --watch"},"homepage":"https://github.com/expo/expo/tree/main/packages/create-expo-nightly#readme","bugs":{"url":"https://github.com/expo/expo/issues"},"repository":{"type":"git","url":"https://github.com/expo/expo.git","directory":"packages/create-expo-nightly"},"devDependencies":{"@expo/json-file":"^8.2.37","@tsconfig/node20":"^20.1.2","@vercel/ncc":"^0.38.1","chalk":"^5.3.0","commander":"^11.1.0","expo-module-scripts":"^3.4.0","fs-extra":"^11.2.0","glob":"^10.3.10","zx":"^7.2.3"}}')}};var n={};function __nccwpck_require__(e){var r=n[e];if(r!==undefined){return r.exports}var s=n[e]={id:e,loaded:false,exports:{}};var i=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete n[e]}s.loaded=true;return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(n,r){if(r&1)n=this(n);if(r&8)return n;if(typeof n==="object"&&n){if(r&4&&n.__esModule)return n;if(r&16&&typeof n.then==="function")return n}var s=Object.create(null);__nccwpck_require__.r(s);var i={};t=t||[null,e({}),e([]),e(e)];for(var o=r&2&&n;typeof o=="object"&&!~t.indexOf(o);o=e(o)){Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>n[e]))}i["default"]=()=>n;__nccwpck_require__.d(s,i);return s}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var n in t){if(__nccwpck_require__.o(t,n)&&!__nccwpck_require__.o(e,n)){Object.defineProperty(e,n,{enumerable:true,get:t[n]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var r={};(()=>{var t={};__nccwpck_require__.r(t);__nccwpck_require__.d(t,{generateGlobTasks:()=>Dn,generateGlobTasksSync:()=>Cn,globby:()=>wn,globbyStream:()=>An,globbySync:()=>Sn,isDynamicPattern:()=>En,isGitIgnored:()=>isGitIgnored,isGitIgnoredSync:()=>isGitIgnoredSync});const n=10;const wrapAnsi16=(e=0)=>t=>`[${t+e}m`;const wrapAnsi256=(e=0)=>t=>`[${38+e};5;${t}m`;const wrapAnsi16m=(e=0)=>(t,n,r)=>`[${38+e};2;${t};${n};${r}m`;const r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const s=Object.keys(r.modifier);const i=Object.keys(r.color);const o=Object.keys(r.bgColor);const a=[...i,...o];function assembleStyles(){const e=new Map;for(const[t,n]of Object.entries(r)){for(const[t,s]of Object.entries(n)){r[t]={open:`[${s[0]}m`,close:`[${s[1]}m`};n[t]=r[t];e.set(s[0],s[1])}Object.defineProperty(r,t,{value:n,enumerable:false})}Object.defineProperty(r,"codes",{value:e,enumerable:false});r.color.close="[39m";r.bgColor.close="[49m";r.color.ansi=wrapAnsi16();r.color.ansi256=wrapAnsi256();r.color.ansi16m=wrapAnsi16m();r.bgColor.ansi=wrapAnsi16(n);r.bgColor.ansi256=wrapAnsi256(n);r.bgColor.ansi16m=wrapAnsi16m(n);Object.defineProperties(r,{rgbToAnsi256:{value(e,t,n){if(e===t&&t===n){if(e<8){return 16}if(e>248){return 231}return Math.round((e-8)/247*24)+232}return 16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:false},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t){return[0,0,0]}let[n]=t;if(n.length===3){n=[...n].map((e=>e+e)).join("")}const r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:false},hexToAnsi256:{value:e=>r.rgbToAnsi256(...r.hexToRgb(e)),enumerable:false},ansi256ToAnsi:{value(e){if(e<8){return 30+e}if(e<16){return 90+(e-8)}let t;let n;let r;if(e>=232){t=((e-232)*10+8)/255;n=t;r=t}else{e-=16;const s=e%36;t=Math.floor(e/36)/5;n=Math.floor(s/6)/5;r=s%6/5}const s=Math.max(t,n,r)*2;if(s===0){return 30}let i=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));if(s===2){i+=60}return i},enumerable:false},rgbToAnsi:{value:(e,t,n)=>r.ansi256ToAnsi(r.rgbToAnsi256(e,t,n)),enumerable:false},hexToAnsi:{value:e=>r.ansi256ToAnsi(r.hexToAnsi256(e)),enumerable:false}});return r}const u=assembleStyles();const c=u;const l=e(import.meta.url)("node:process");const f=e(import.meta.url)("node:os");const h=e(import.meta.url)("node:tty");function hasFlag(e,t=(globalThis.Deno?globalThis.Deno.args:l.argv)){const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const s=t.indexOf("--");return r!==-1&&(s===-1||r<s)}const{env:p}=l;let d;if(hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")){d=0}else if(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always")){d=1}function envForceColor(){if("FORCE_COLOR"in p){if(p.FORCE_COLOR==="true"){return 1}if(p.FORCE_COLOR==="false"){return 0}return p.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(p.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function _supportsColor(e,{streamIsTTY:t,sniffFlags:n=true}={}){const r=envForceColor();if(r!==undefined){d=r}const s=n?d:r;if(s===0){return 0}if(n){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor")){return 3}if(hasFlag("color=256")){return 2}}if("TF_BUILD"in p&&"AGENT_NAME"in p){return 1}if(e&&!t&&s===undefined){return 0}const i=s||0;if(p.TERM==="dumb"){return i}if(l.platform==="win32"){const e=f.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in p){if("GITHUB_ACTIONS"in p||"GITEA_ACTIONS"in p){return 3}if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in p))||p.CI_NAME==="codeship"){return 1}return i}if("TEAMCITY_VERSION"in p){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0}if(p.COLORTERM==="truecolor"){return 3}if(p.TERM==="xterm-kitty"){return 3}if("TERM_PROGRAM"in p){const e=Number.parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":{return e>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(p.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)){return 1}if("COLORTERM"in p){return 1}return i}function createSupportsColor(e,t={}){const n=_supportsColor(e,{streamIsTTY:e&&e.isTTY,...t});return translateLevel(n)}const g={stdout:createSupportsColor({isTTY:h.isatty(1)}),stderr:createSupportsColor({isTTY:h.isatty(2)})};const y=g;function stringReplaceAll(e,t,n){let r=e.indexOf(t);if(r===-1){return e}const s=t.length;let i=0;let o="";do{o+=e.slice(i,r)+t+n;i=r+s;r=e.indexOf(t,i)}while(r!==-1);o+=e.slice(i);return o}function stringEncaseCRLFWithFirstIndex(e,t,n,r){let s=0;let i="";do{const o=e[r-1]==="\r";i+=e.slice(s,o?r-1:r)+t+(o?"\r\n":"\n")+n;s=r+1;r=e.indexOf("\n",s)}while(r!==-1);i+=e.slice(s);return i}const{stdout:b,stderr:v}=y;const w=Symbol("GENERATOR");const S=Symbol("STYLER");const A=Symbol("IS_EMPTY");const E=["ansi","ansi","ansi256","ansi16m"];const D=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const n=b?b.level:0;e.level=t.level===undefined?n:t.level};class Chalk{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const chalk=(...e)=>e.join(" ");applyOptions(chalk,e);Object.setPrototypeOf(chalk,createChalk.prototype);return chalk};function createChalk(e){return chalkFactory(e)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[e,t]of Object.entries(c)){D[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this[S]),this[A]);Object.defineProperty(this,e,{value:n});return n}}}D.visible={get(){const e=createBuilder(this,this[S],true);Object.defineProperty(this,"visible",{value:e});return e}};const getModelAnsi=(e,t,n,...r)=>{if(e==="rgb"){if(t==="ansi16m"){return c[n].ansi16m(...r)}if(t==="ansi256"){return c[n].ansi256(c.rgbToAnsi256(...r))}return c[n].ansi(c.rgbToAnsi(...r))}if(e==="hex"){return getModelAnsi("rgb",t,n,...c.hexToRgb(...r))}return c[n][e](...r)};const C=["rgb","hex","ansi256"];for(const e of C){D[e]={get(){const{level:t}=this;return function(...n){const r=createStyler(getModelAnsi(e,E[t],"color",...n),c.color.close,this[S]);return createBuilder(this,r,this[A])}}};const t="bg"+e[0].toUpperCase()+e.slice(1);D[t]={get(){const{level:t}=this;return function(...n){const r=createStyler(getModelAnsi(e,E[t],"bgColor",...n),c.bgColor.close,this[S]);return createBuilder(this,r,this[A])}}}}const _=Object.defineProperties((()=>{}),{...D,level:{enumerable:true,get(){return this[w].level},set(e){this[w].level=e}}});const createStyler=(e,t,n)=>{let r;let s;if(n===undefined){r=e;s=t}else{r=n.openAll+e;s=t+n.closeAll}return{open:e,close:t,openAll:r,closeAll:s,parent:n}};const createBuilder=(e,t,n)=>{const builder=(...e)=>applyStyle(builder,e.length===1?""+e[0]:e.join(" "));Object.setPrototypeOf(builder,_);builder[w]=e;builder[S]=t;builder[A]=n;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e[A]?"":t}let n=e[S];if(n===undefined){return t}const{openAll:r,closeAll:s}=n;if(t.includes("")){while(n!==undefined){t=stringReplaceAll(t,n.close,n.open);n=n.parent}}const i=t.indexOf("\n");if(i!==-1){t=stringEncaseCRLFWithFirstIndex(t,s,r,i)}return r+t+s};Object.defineProperties(createChalk.prototype,D);const k=createChalk();const F=createChalk({level:v?v.level:0});const x=k;var O=__nccwpck_require__(4379);const{program:P,createCommand:T,createArgument:B,createOption:N,CommanderError:R,InvalidArgumentError:L,InvalidOptionArgumentError:M,Command:I,Argument:j,Option:H,Help:W}=O;var q=__nccwpck_require__(1017);var U=__nccwpck_require__.n(q);var G=__nccwpck_require__(9090);var V=__nccwpck_require__.n(G);var K=__nccwpck_require__(5630);var z=__nccwpck_require__.n(K);const Y=e(import.meta.url)("fs/promises");var J=__nccwpck_require__.n(Y);var Q=__nccwpck_require__(3717);const X=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>X){throw new TypeError("pattern is too long")}};const Z={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",true],"[:alpha:]":["\\p{L}\\p{Nl}",true],"[:ascii:]":["\\x"+"00-\\x"+"7f",false],"[:blank:]":["\\p{Zs}\\t",true],"[:cntrl:]":["\\p{Cc}",true],"[:digit:]":["\\p{Nd}",true],"[:graph:]":["\\p{Z}\\p{C}",true,true],"[:lower:]":["\\p{Ll}",true],"[:print:]":["\\p{C}",true],"[:punct:]":["\\p{P}",true],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",true],"[:upper:]":["\\p{Lu}",true],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",true],"[:xdigit:]":["A-Fa-f0-9",false]};const braceEscape=e=>e.replace(/[[\]\\-]/g,"\\$&");const regexpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const rangesToString=e=>e.join("");const parseClass=(e,t)=>{const n=t;if(e.charAt(n)!=="["){throw new Error("not in a brace expression")}const r=[];const s=[];let i=n+1;let o=false;let a=false;let u=false;let c=false;let l=n;let f="";e:while(i<e.length){const t=e.charAt(i);if((t==="!"||t==="^")&&i===n+1){c=true;i++;continue}if(t==="]"&&o&&!u){l=i+1;break}o=true;if(t==="\\"){if(!u){u=true;i++;continue}}if(t==="["&&!u){for(const[t,[o,u,c]]of Object.entries(Z)){if(e.startsWith(t,i)){if(f){return["$.",false,e.length-n,true]}i+=t.length;if(c)s.push(o);else r.push(o);a=a||u;continue e}}}u=false;if(f){if(t>f){r.push(braceEscape(f)+"-"+braceEscape(t))}else if(t===f){r.push(braceEscape(t))}f="";i++;continue}if(e.startsWith("-]",i+1)){r.push(braceEscape(t+"-"));i+=2;continue}if(e.startsWith("-",i+1)){f=t;i+=2;continue}r.push(braceEscape(t));i++}if(l<i){return["",false,0,false]}if(!r.length&&!s.length){return["$.",false,e.length-n,true]}if(s.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!c){const e=r[0].length===2?r[0].slice(-1):r[0];return[regexpEscape(e),false,l-n,false]}const h="["+(c?"^":"")+rangesToString(r)+"]";const p="["+(c?"":"^")+rangesToString(s)+"]";const d=r.length&&s.length?"("+h+"|"+p+")":r.length?h:p;return[d,a,l-n,true]};const unescape_unescape=(e,{windowsPathsNoEscape:t=false}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");const ee=new Set(["!","?","+","*","@"]);const isExtglobType=e=>ee.has(e);const te="(?!(?:^|/)\\.\\.?(?:$|/))";const ne="(?!\\.)";const re=new Set(["[","."]);const se=new Set(["..","."]);const ie=new Set("().*{}+?[]^$\\!");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const oe="[^/]";const ae=oe+"*?";const ue=oe+"+?";class AST{type;#e;#t;#n=false;#r=[];#s;#i;#o;#a=false;#u;#c;#l=false;constructor(e,t,n={}){this.type=e;if(e)this.#t=true;this.#s=t;this.#e=this.#s?this.#s.#e:this;this.#u=this.#e===this?n:this.#e.#u;this.#o=this.#e===this?[]:this.#e.#o;if(e==="!"&&!this.#e.#a)this.#o.push(this);this.#i=this.#s?this.#s.#r.length:0}get hasMagic(){if(this.#t!==undefined)return this.#t;for(const e of this.#r){if(typeof e==="string")continue;if(e.type||e.hasMagic)return this.#t=true}return this.#t}toString(){if(this.#c!==undefined)return this.#c;if(!this.type){return this.#c=this.#r.map((e=>String(e))).join("")}else{return this.#c=this.type+"("+this.#r.map((e=>String(e))).join("|")+")"}}#f(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString();this.#a=true;let e;while(e=this.#o.pop()){if(e.type!=="!")continue;let t=e;let n=t.#s;while(n){for(let r=t.#i+1;!n.type&&r<n.#r.length;r++){for(const t of e.#r){if(typeof t==="string"){throw new Error("string part in extglob AST??")}t.copyIn(n.#r[r])}}t=n;n=t.#s}}return this}push(...e){for(const t of e){if(t==="")continue;if(typeof t!=="string"&&!(t instanceof AST&&t.#s===this)){throw new Error("invalid part: "+t)}this.#r.push(t)}}toJSON(){const e=this.type===null?this.#r.slice().map((e=>typeof e==="string"?e:e.toJSON())):[this.type,...this.#r.map((e=>e.toJSON()))];if(this.isStart()&&!this.type)e.unshift([]);if(this.isEnd()&&(this===this.#e||this.#e.#a&&this.#s?.type==="!")){e.push({})}return e}isStart(){if(this.#e===this)return true;if(!this.#s?.isStart())return false;if(this.#i===0)return true;const e=this.#s;for(let t=0;t<this.#i;t++){const n=e.#r[t];if(!(n instanceof AST&&n.type==="!")){return false}}return true}isEnd(){if(this.#e===this)return true;if(this.#s?.type==="!")return true;if(!this.#s?.isEnd())return false;if(!this.type)return this.#s?.isEnd();const e=this.#s?this.#s.#r.length:0;return this.#i===e-1}copyIn(e){if(typeof e==="string")this.push(e);else this.push(e.clone(this))}clone(e){const t=new AST(this.type,e);for(const e of this.#r){t.copyIn(e)}return t}static#h(e,t,n,r){let s=false;let i=false;let o=-1;let a=false;if(t.type===null){let u=n;let c="";while(u<e.length){const n=e.charAt(u++);if(s||n==="\\"){s=!s;c+=n;continue}if(i){if(u===o+1){if(n==="^"||n==="!"){a=true}}else if(n==="]"&&!(u===o+2&&a)){i=false}c+=n;continue}else if(n==="["){i=true;o=u;a=false;c+=n;continue}if(!r.noext&&isExtglobType(n)&&e.charAt(u)==="("){t.push(c);c="";const s=new AST(n,t);u=AST.#h(e,s,u,r);t.push(s);continue}c+=n}t.push(c);return u}let u=n+1;let c=new AST(null,t);const l=[];let f="";while(u<e.length){const n=e.charAt(u++);if(s||n==="\\"){s=!s;f+=n;continue}if(i){if(u===o+1){if(n==="^"||n==="!"){a=true}}else if(n==="]"&&!(u===o+2&&a)){i=false}f+=n;continue}else if(n==="["){i=true;o=u;a=false;f+=n;continue}if(isExtglobType(n)&&e.charAt(u)==="("){c.push(f);f="";const t=new AST(n,c);c.push(t);u=AST.#h(e,t,u,r);continue}if(n==="|"){c.push(f);f="";l.push(c);c=new AST(null,t);continue}if(n===")"){if(f===""&&t.#r.length===0){t.#l=true}c.push(f);f="";t.push(...l,c);return u}f+=n}t.type=null;t.#t=undefined;t.#r=[e.substring(n-1)];return u}static fromGlob(e,t={}){const n=new AST(null,undefined,t);AST.#h(e,n,0,t);return n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();const e=this.toString();const[t,n,r,s]=this.toRegExpSource();const i=r||this.#t||this.#u.nocase&&!this.#u.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase();if(!i){return n}const o=(this.#u.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${t}$`,o),{_src:t,_glob:e})}toRegExpSource(e){const t=e??!!this.#u.dot;if(this.#e===this)this.#f();if(!this.type){const n=this.isStart()&&this.isEnd();const r=this.#r.map((t=>{const[r,s,i,o]=typeof t==="string"?AST.#p(t,this.#t,n):t.toRegExpSource(e);this.#t=this.#t||i;this.#n=this.#n||o;return r})).join("");let s="";if(this.isStart()){if(typeof this.#r[0]==="string"){const n=this.#r.length===1&&se.has(this.#r[0]);if(!n){const n=re;const i=t&&n.has(r.charAt(0))||r.startsWith("\\.")&&n.has(r.charAt(2))||r.startsWith("\\.\\.")&&n.has(r.charAt(4));const o=!t&&!e&&n.has(r.charAt(0));s=i?te:o?ne:""}}}let i="";if(this.isEnd()&&this.#e.#a&&this.#s?.type==="!"){i="(?:$|\\/)"}const o=s+r+i;return[o,unescape_unescape(r),this.#t=!!this.#t,this.#n]}const n=this.type==="*"||this.type==="+";const r=this.type==="!"?"(?:(?!(?:":"(?:";let s=this.#d(t);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const e=this.toString();this.#r=[e];this.type=null;this.#t=undefined;return[e,unescape_unescape(this.toString()),false,false]}let i=!n||e||t||!ne?"":this.#d(true);if(i===s){i=""}if(i){s=`(?:${s})(?:${i})*?`}let o="";if(this.type==="!"&&this.#l){o=(this.isStart()&&!t?ne:"")+ue}else{const n=this.type==="!"?"))"+(this.isStart()&&!t&&!e?ne:"")+ae+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&i?")":this.type==="*"&&i?`)?`:`)${this.type}`;o=r+s+n}return[o,unescape_unescape(s),this.#t=!!this.#t,this.#n]}#d(e){return this.#r.map((t=>{if(typeof t==="string"){throw new Error("string type in extglob ast??")}const[n,r,s,i]=t.toRegExpSource(e);this.#n=this.#n||i;return n})).filter((e=>!(this.isStart()&&this.isEnd())||!!e)).join("|")}static#p(e,t,n=false){let r=false;let s="";let i=false;for(let o=0;o<e.length;o++){const a=e.charAt(o);if(r){r=false;s+=(ie.has(a)?"\\":"")+a;continue}if(a==="\\"){if(o===e.length-1){s+="\\\\"}else{r=true}continue}if(a==="["){const[n,r,a,u]=parseClass(e,o);if(a){s+=n;i=i||r;o+=a-1;t=t||u;continue}}if(a==="*"){if(n&&e==="*")s+=ue;else s+=ae;t=true;continue}if(a==="?"){s+=oe;t=true;continue}s+=regExpEscape(a)}return[s,unescape_unescape(e),!!t,i]}}const escape_escape=(e,{windowsPathsNoEscape:t=false}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");const minimatch=(e,t,n={})=>{assertValidPattern(t);if(!n.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,n).match(e)};const ce=/^\*+([^+@!?\*\[\(]*)$/;const starDotExtTest=e=>t=>!t.startsWith(".")&&t.endsWith(e);const starDotExtTestDot=e=>t=>t.endsWith(e);const starDotExtTestNocase=e=>{e=e.toLowerCase();return t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)};const starDotExtTestNocaseDot=e=>{e=e.toLowerCase();return t=>t.toLowerCase().endsWith(e)};const le=/^\*+\.\*+$/;const starDotStarTest=e=>!e.startsWith(".")&&e.includes(".");const starDotStarTestDot=e=>e!=="."&&e!==".."&&e.includes(".");const fe=/^\.\*+$/;const dotStarTest=e=>e!=="."&&e!==".."&&e.startsWith(".");const he=/^\*+$/;const starTest=e=>e.length!==0&&!e.startsWith(".");const starTestDot=e=>e.length!==0&&e!=="."&&e!=="..";const pe=/^\?+([^+@!?\*\[\(]*)?$/;const qmarksTestNocase=([e,t=""])=>{const n=qmarksTestNoExt([e]);if(!t)return n;t=t.toLowerCase();return e=>n(e)&&e.toLowerCase().endsWith(t)};const qmarksTestNocaseDot=([e,t=""])=>{const n=qmarksTestNoExtDot([e]);if(!t)return n;t=t.toLowerCase();return e=>n(e)&&e.toLowerCase().endsWith(t)};const qmarksTestDot=([e,t=""])=>{const n=qmarksTestNoExtDot([e]);return!t?n:e=>n(e)&&e.endsWith(t)};const qmarksTest=([e,t=""])=>{const n=qmarksTestNoExt([e]);return!t?n:e=>n(e)&&e.endsWith(t)};const qmarksTestNoExt=([e])=>{const t=e.length;return e=>e.length===t&&!e.startsWith(".")};const qmarksTestNoExtDot=([e])=>{const t=e.length;return e=>e.length===t&&e!=="."&&e!==".."};const de=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";const me={win32:{sep:"\\"},posix:{sep:"/"}};const ge=de==="win32"?me.win32.sep:me.posix.sep;minimatch.sep=ge;const ye=Symbol("globstar **");minimatch.GLOBSTAR=ye;const be="[^/]";const ve=be+"*?";const we="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const Se="(?:(?!(?:\\/|^)\\.).)*?";const filter=(e,t={})=>n=>minimatch(n,e,t);minimatch.filter=filter;const ext=(e,t={})=>Object.assign({},e,t);const defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}const t=minimatch;const m=(n,r,s={})=>t(n,r,ext(e,s));return Object.assign(m,{Minimatch:class Minimatch extends t.Minimatch{constructor(t,n={}){super(t,ext(e,n))}static defaults(n){return t.defaults(ext(e,n)).Minimatch}},AST:class AST extends t.AST{constructor(t,n,r={}){super(t,n,ext(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,ext(e,r))}},unescape:(n,r={})=>t.unescape(n,ext(e,r)),escape:(n,r={})=>t.escape(n,ext(e,r)),filter:(n,r={})=>t.filter(n,ext(e,r)),defaults:n=>t.defaults(ext(e,n)),makeRe:(n,r={})=>t.makeRe(n,ext(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,ext(e,r)),match:(n,r,s={})=>t.match(n,r,ext(e,s)),sep:t.sep,GLOBSTAR:ye})};minimatch.defaults=defaults;const braceExpand=(e,t={})=>{assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return Q(e)};minimatch.braceExpand=braceExpand;const makeRe=(e,t={})=>new Minimatch(e,t).makeRe();minimatch.makeRe=makeRe;const match=(e,t,n={})=>{const r=new Minimatch(t,n);e=e.filter((e=>r.match(e)));if(r.options.nonull&&!e.length){e.push(t)}return e};minimatch.match=match;const Ae=/[?*]|[+@!]\(.*?\)|\[|\]/;const mjs_regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){assertValidPattern(e);t=t||{};this.options=t;this.pattern=e;this.platform=t.platform||de;this.isWindows=this.platform==="win32";this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.preserveMultipleSlashes=!!t.preserveMultipleSlashes;this.regexp=null;this.negate=false;this.nonegate=!!t.nonegate;this.comment=false;this.empty=false;this.partial=!!t.partial;this.nocase=!!this.options.nocase;this.windowsNoMagicRoot=t.windowsNoMagicRoot!==undefined?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase);this.globSet=[];this.globParts=[];this.set=[];this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1){return true}for(const e of this.set){for(const t of e){if(typeof t!=="string")return true}}return false}debug(...e){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();this.globSet=[...new Set(this.braceExpand())];if(t.debug){this.debug=(...e)=>console.error(...e)}this.debug(this.pattern,this.globSet);const n=this.globSet.map((e=>this.slashSplit(e)));this.globParts=this.preprocess(n);this.debug(this.pattern,this.globParts);let r=this.globParts.map(((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){const t=e[0]===""&&e[1]===""&&(e[2]==="?"||!Ae.test(e[2]))&&!Ae.test(e[3]);const n=/^[a-z]:/i.test(e[0]);if(t){return[...e.slice(0,4),...e.slice(4).map((e=>this.parse(e)))]}else if(n){return[e[0],...e.slice(1).map((e=>this.parse(e)))]}}return e.map((e=>this.parse(e)))}));this.debug(this.pattern,r);this.set=r.filter((e=>e.indexOf(false)===-1));if(this.isWindows){for(let e=0;e<this.set.length;e++){const t=this.set[e];if(t[0]===""&&t[1]===""&&this.globParts[e][2]==="?"&&typeof t[3]==="string"&&/^[a-z]:$/i.test(t[3])){t[2]="?"}}}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar){for(let t=0;t<e.length;t++){for(let n=0;n<e[t].length;n++){if(e[t][n]==="**"){e[t][n]="*"}}}}const{optimizationLevel:t=1}=this.options;if(t>=2){e=this.firstPhasePreProcess(e);e=this.secondPhasePreProcess(e)}else if(t>=1){e=this.levelOneOptimize(e)}else{e=this.adjascentGlobstarOptimize(e)}return e}adjascentGlobstarOptimize(e){return e.map((e=>{let t=-1;while(-1!==(t=e.indexOf("**",t+1))){let n=t;while(e[n+1]==="**"){n++}if(n!==t){e.splice(t,n-t)}}return e}))}levelOneOptimize(e){return e.map((e=>{e=e.reduce(((e,t)=>{const n=e[e.length-1];if(t==="**"&&n==="**"){return e}if(t===".."){if(n&&n!==".."&&n!=="."&&n!=="**"){e.pop();return e}}e.push(t);return e}),[]);return e.length===0?[""]:e}))}levelTwoFileOptimize(e){if(!Array.isArray(e)){e=this.slashSplit(e)}let t=false;do{t=false;if(!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){const r=e[n];if(n===1&&r===""&&e[0]==="")continue;if(r==="."||r===""){t=true;e.splice(n,1);n--}}if(e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")){t=true;e.pop()}}let n=0;while(-1!==(n=e.indexOf("..",n+1))){const r=e[n-1];if(r&&r!=="."&&r!==".."&&r!=="**"){t=true;e.splice(n-1,2);n-=2}}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=false;do{t=false;for(let n of e){let r=-1;while(-1!==(r=n.indexOf("**",r+1))){let s=r;while(n[s+1]==="**"){s++}if(s>r){n.splice(r+1,s-r)}let i=n[r+1];const o=n[r+2];const a=n[r+3];if(i!=="..")continue;if(!o||o==="."||o===".."||!a||a==="."||a===".."){continue}t=true;n.splice(r,1);const u=n.slice(0);u[r]="**";e.push(u);r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){const r=n[e];if(e===1&&r===""&&n[0]==="")continue;if(r==="."||r===""){t=true;n.splice(e,1);e--}}if(n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")){t=true;n.pop()}}let s=0;while(-1!==(s=n.indexOf("..",s+1))){const e=n[s-1];if(e&&e!=="."&&e!==".."&&e!=="**"){t=true;const e=s===1&&n[s+1]==="**";const r=e?["."]:[];n.splice(s-1,2,...r);if(n.length===0)n.push("");s-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++){for(let n=t+1;n<e.length;n++){const r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(!r)continue;e[t]=r;e[n]=[]}}return e.filter((e=>e.length))}partsMatch(e,t,n=false){let r=0;let s=0;let i=[];let o="";while(r<e.length&&s<t.length){if(e[r]===t[s]){i.push(o==="b"?t[s]:e[r]);r++;s++}else if(n&&e[r]==="**"&&t[s]===e[r+1]){i.push(e[r]);r++}else if(n&&t[s]==="**"&&e[r]===t[s+1]){i.push(t[s]);s++}else if(e[r]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(o==="b")return false;o="a";i.push(e[r]);r++;s++}else if(t[s]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(o==="a")return false;o="b";i.push(t[s]);r++;s++}else{return false}}return e.length===t.length&&i}parseNegate(){if(this.nonegate)return;const e=this.pattern;let t=false;let n=0;for(let r=0;r<e.length&&e.charAt(r)==="!";r++){t=!t;n++}if(n)this.pattern=e.slice(n);this.negate=t}matchOne(e,t,n=false){const r=this.options;if(this.isWindows){const n=typeof e[0]==="string"&&/^[a-z]:$/i.test(e[0]);const r=!n&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]);const s=typeof t[0]==="string"&&/^[a-z]:$/i.test(t[0]);const i=!s&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]==="string"&&/^[a-z]:$/i.test(t[3]);const o=r?3:n?0:undefined;const a=i?3:s?0:undefined;if(typeof o==="number"&&typeof a==="number"){const[n,r]=[e[o],t[a]];if(n.toLowerCase()===r.toLowerCase()){t[a]=n;if(a>o){t=t.slice(a)}else if(o>a){e=e.slice(o)}}}}const{optimizationLevel:s=1}=this.options;if(s>=2){e=this.levelTwoFileOptimize(e)}this.debug("matchOne",this,{file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var i=0,o=0,a=e.length,u=t.length;i<a&&o<u;i++,o++){this.debug("matchOne loop");var c=t[o];var l=e[i];this.debug(t,c,l);if(c===false){return false}if(c===ye){this.debug("GLOBSTAR",[t,c,l]);var f=i;var h=o+1;if(h===u){this.debug("** at the end");for(;i<a;i++){if(e[i]==="."||e[i]===".."||!r.dot&&e[i].charAt(0)===".")return false}return true}while(f<a){var p=e[f];this.debug("\nglobstar while",e,f,t,h,p);if(this.matchOne(e.slice(f),t.slice(h),n)){this.debug("globstar found match!",f,a,p);return true}else{if(p==="."||p===".."||!r.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,f,t,h);break}this.debug("globstar swallow a segment, and continue");f++}}if(n){this.debug("\n>>> no match, partial?",e,f,t,h);if(f===a){return true}}return false}let s;if(typeof c==="string"){s=l===c;this.debug("string match",c,l,s)}else{s=c.test(l);this.debug("pattern match",c,l,s)}if(!s)return false}if(i===a&&o===u){return true}else if(i===a){return n}else if(o===u){return i===a-1&&e[i]===""}else{throw new Error("wtf?")}}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e){assertValidPattern(e);const t=this.options;if(e==="**")return ye;if(e==="")return"";let n;let r=null;if(n=e.match(he)){r=t.dot?starTestDot:starTest}else if(n=e.match(ce)){r=(t.nocase?t.dot?starDotExtTestNocaseDot:starDotExtTestNocase:t.dot?starDotExtTestDot:starDotExtTest)(n[1])}else if(n=e.match(pe)){r=(t.nocase?t.dot?qmarksTestNocaseDot:qmarksTestNocase:t.dot?qmarksTestDot:qmarksTest)(n)}else if(n=e.match(le)){r=t.dot?starDotStarTestDot:starDotStarTest}else if(n=e.match(fe)){r=dotStarTest}const s=AST.fromGlob(e,this.options).toMMPattern();return r?Object.assign(s,{test:r}):s}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const e=this.set;if(!e.length){this.regexp=false;return this.regexp}const t=this.options;const n=t.noglobstar?ve:t.dot?we:Se;const r=new Set(t.nocase?["i"]:[]);let s=e.map((e=>{const t=e.map((e=>{if(e instanceof RegExp){for(const t of e.flags.split(""))r.add(t)}return typeof e==="string"?mjs_regExpEscape(e):e===ye?ye:e._src}));t.forEach(((e,r)=>{const s=t[r+1];const i=t[r-1];if(e!==ye||i===ye){return}if(i===undefined){if(s!==undefined&&s!==ye){t[r+1]="(?:\\/|"+n+"\\/)?"+s}else{t[r]=n}}else if(s===undefined){t[r-1]=i+"(?:\\/|"+n+")?"}else if(s!==ye){t[r-1]=i+"(?:\\/|\\/"+n+"\\/)"+s;t[r+1]=ye}}));return t.filter((e=>e!==ye)).join("/")})).join("|");const[i,o]=e.length>1?["(?:",")"]:["",""];s="^"+i+s+o+"$";if(this.negate)s="^(?!"+s+").+$";try{this.regexp=new RegExp(s,[...r].join(""))}catch(e){this.regexp=false}return this.regexp}slashSplit(e){if(this.preserveMultipleSlashes){return e.split("/")}else if(this.isWindows&&/^\/\/[^\/]+/.test(e)){return["",...e.split(/\/+/)]}else{return e.split(/\/+/)}}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment){return false}if(this.empty){return e===""}if(e==="/"&&t){return true}const n=this.options;if(this.isWindows){e=e.split("\\").join("/")}const r=this.slashSplit(e);this.debug(this.pattern,"split",r);const s=this.set;this.debug(this.pattern,"set",s);let i=r[r.length-1];if(!i){for(let e=r.length-2;!i&&e>=0;e--){i=r[e]}}for(let e=0;e<s.length;e++){const o=s[e];let a=r;if(n.matchBase&&o.length===1){a=[i]}const u=this.matchOne(a,o,t);if(u){if(n.flipNegate){return true}return!this.negate}}if(n.flipNegate){return false}return this.negate}static defaults(e){return minimatch.defaults(e).Minimatch}}minimatch.AST=AST;minimatch.Minimatch=Minimatch;minimatch.escape=escape_escape;minimatch.unescape=unescape_unescape;const Ee=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const De=new Set;const Ce=typeof process==="object"&&!!process?process:{};const emitWarning=(e,t,n,r)=>{typeof Ce.emitWarning==="function"?Ce.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)};let _e=globalThis.AbortController;let ke=globalThis.AbortSignal;if(typeof _e==="undefined"){ke=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(e,t){this._onabort.push(t)}};_e=class AbortController{constructor(){warnACPolyfill()}signal=new ke;abort(e){if(this.signal.aborted)return;this.signal.reason=e;this.signal.aborted=true;for(const t of this.signal._onabort){t(e)}this.signal.onabort?.(e)}};let e=Ce.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!e)return;e=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=e=>!De.has(e);const Fe=Symbol("type");const isPosInt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e);const getUintArray=e=>!isPosInt(e)?null:e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(e){super(e);this.fill(0)}}class Stack{heap;length;static#m=false;static create(e){const t=getUintArray(e);if(!t)return[];Stack.#m=true;const n=new Stack(e,t);Stack.#m=false;return n}constructor(e,t){if(!Stack.#m){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new t(e);this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class LRUCache{#g;#y;#b;#v;#w;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#S;#A;#E;#D;#C;#_;#k;#F;#x;#O;#P;#T;#B;#N;#R;#L;#M;static unsafeExposeInternals(e){return{starts:e.#B,ttls:e.#N,sizes:e.#T,keyMap:e.#E,keyList:e.#D,valList:e.#C,next:e.#_,prev:e.#k,get head(){return e.#F},get tail(){return e.#x},free:e.#O,isBackgroundFetch:t=>e.#I(t),backgroundFetch:(t,n,r,s)=>e.#$(t,n,r,s),moveToTail:t=>e.#j(t),indexes:t=>e.#H(t),rindexes:t=>e.#W(t),isStale:t=>e.#q(t)}}get max(){return this.#g}get maxSize(){return this.#y}get calculatedSize(){return this.#A}get size(){return this.#S}get fetchMethod(){return this.#w}get dispose(){return this.#b}get disposeAfter(){return this.#v}constructor(e){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:s,updateAgeOnGet:i,updateAgeOnHas:o,allowStale:a,dispose:u,disposeAfter:c,noDisposeOnSet:l,noUpdateTTL:f,maxSize:h=0,maxEntrySize:p=0,sizeCalculation:d,fetchMethod:g,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:w,ignoreFetchAbort:S}=e;if(t!==0&&!isPosInt(t)){throw new TypeError("max option must be a nonnegative integer")}const A=t?getUintArray(t):Array;if(!A){throw new Error("invalid max value: "+t)}this.#g=t;this.#y=h;this.maxEntrySize=p||this.#y;this.sizeCalculation=d;if(this.sizeCalculation){if(!this.#y&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(g!==undefined&&typeof g!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#w=g;this.#L=!!g;this.#E=new Map;this.#D=new Array(t).fill(undefined);this.#C=new Array(t).fill(undefined);this.#_=new A(t);this.#k=new A(t);this.#F=0;this.#x=0;this.#O=Stack.create(t);this.#S=0;this.#A=0;if(typeof u==="function"){this.#b=u}if(typeof c==="function"){this.#v=c;this.#P=[]}else{this.#v=undefined;this.#P=undefined}this.#R=!!this.#b;this.#M=!!this.#v;this.noDisposeOnSet=!!l;this.noUpdateTTL=!!f;this.noDeleteOnFetchRejection=!!y;this.allowStaleOnFetchRejection=!!v;this.allowStaleOnFetchAbort=!!w;this.ignoreFetchAbort=!!S;if(this.maxEntrySize!==0){if(this.#y!==0){if(!isPosInt(this.#y)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#U()}this.allowStale=!!a;this.noDeleteOnStaleGet=!!b;this.updateAgeOnGet=!!i;this.updateAgeOnHas=!!o;this.ttlResolution=isPosInt(r)||r===0?r:1;this.ttlAutopurge=!!s;this.ttl=n||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#G()}if(this.#g===0&&this.ttl===0&&this.#y===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#g&&!this.#y){const e="LRU_CACHE_UNBOUNDED";if(shouldWarn(e)){De.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(t,"UnboundedCacheWarning",e,LRUCache)}}}getRemainingTTL(e){return this.#E.has(e)?Infinity:0}#G(){const e=new ZeroArray(this.#g);const t=new ZeroArray(this.#g);this.#N=e;this.#B=t;this.#V=(n,r,s=Ee.now())=>{t[n]=r!==0?s:0;e[n]=r;if(r!==0&&this.ttlAutopurge){const e=setTimeout((()=>{if(this.#q(n)){this.delete(this.#D[n])}}),r+1);if(e.unref){e.unref()}}};this.#K=n=>{t[n]=e[n]!==0?Ee.now():0};this.#z=(r,s)=>{if(e[s]){const i=e[s];const o=t[s];if(!i||!o)return;r.ttl=i;r.start=o;r.now=n||getNow();const a=r.now-o;r.remainingTTL=i-a}};let n=0;const getNow=()=>{const e=Ee.now();if(this.ttlResolution>0){n=e;const t=setTimeout((()=>n=0),this.ttlResolution);if(t.unref){t.unref()}}return e};this.getRemainingTTL=r=>{const s=this.#E.get(r);if(s===undefined){return 0}const i=e[s];const o=t[s];if(!i||!o){return Infinity}const a=(n||getNow())-o;return i-a};this.#q=r=>{const s=t[r];const i=e[r];return!!i&&!!s&&(n||getNow())-s>i}}#K=()=>{};#z=()=>{};#V=()=>{};#q=()=>false;#U(){const e=new ZeroArray(this.#g);this.#A=0;this.#T=e;this.#Y=t=>{this.#A-=e[t];e[t]=0};this.#J=(e,t,n,r)=>{if(this.#I(t)){return 0}if(!isPosInt(n)){if(r){if(typeof r!=="function"){throw new TypeError("sizeCalculation must be a function")}n=r(t,e);if(!isPosInt(n)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return n};this.#Q=(t,n,r)=>{e[t]=n;if(this.#y){const n=this.#y-e[t];while(this.#A>n){this.#X(true)}}this.#A+=e[t];if(r){r.entrySize=n;r.totalCalculatedSize=this.#A}}}#Y=e=>{};#Q=(e,t,n)=>{};#J=(e,t,n,r)=>{if(n||r){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#H({allowStale:e=this.allowStale}={}){if(this.#S){for(let t=this.#x;true;){if(!this.#Z(t)){break}if(e||!this.#q(t)){yield t}if(t===this.#F){break}else{t=this.#k[t]}}}}*#W({allowStale:e=this.allowStale}={}){if(this.#S){for(let t=this.#F;true;){if(!this.#Z(t)){break}if(e||!this.#q(t)){yield t}if(t===this.#x){break}else{t=this.#_[t]}}}}#Z(e){return e!==undefined&&this.#E.get(this.#D[e])===e}*entries(){for(const e of this.#H()){if(this.#C[e]!==undefined&&this.#D[e]!==undefined&&!this.#I(this.#C[e])){yield[this.#D[e],this.#C[e]]}}}*rentries(){for(const e of this.#W()){if(this.#C[e]!==undefined&&this.#D[e]!==undefined&&!this.#I(this.#C[e])){yield[this.#D[e],this.#C[e]]}}}*keys(){for(const e of this.#H()){const t=this.#D[e];if(t!==undefined&&!this.#I(this.#C[e])){yield t}}}*rkeys(){for(const e of this.#W()){const t=this.#D[e];if(t!==undefined&&!this.#I(this.#C[e])){yield t}}}*values(){for(const e of this.#H()){const t=this.#C[e];if(t!==undefined&&!this.#I(this.#C[e])){yield this.#C[e]}}}*rvalues(){for(const e of this.#W()){const t=this.#C[e];if(t!==undefined&&!this.#I(this.#C[e])){yield this.#C[e]}}}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.#H()){const r=this.#C[n];const s=this.#I(r)?r.__staleWhileFetching:r;if(s===undefined)continue;if(e(s,this.#D[n],this)){return this.get(this.#D[n],t)}}}forEach(e,t=this){for(const n of this.#H()){const r=this.#C[n];const s=this.#I(r)?r.__staleWhileFetching:r;if(s===undefined)continue;e.call(t,s,this.#D[n],this)}}rforEach(e,t=this){for(const n of this.#W()){const r=this.#C[n];const s=this.#I(r)?r.__staleWhileFetching:r;if(s===undefined)continue;e.call(t,s,this.#D[n],this)}}purgeStale(){let e=false;for(const t of this.#W({allowStale:true})){if(this.#q(t)){this.delete(this.#D[t]);e=true}}return e}info(e){const t=this.#E.get(e);if(t===undefined)return undefined;const n=this.#C[t];const r=this.#I(n)?n.__staleWhileFetching:n;if(r===undefined)return undefined;const s={value:r};if(this.#N&&this.#B){const e=this.#N[t];const n=this.#B[t];if(e&&n){const t=e-(Ee.now()-n);s.ttl=t;s.start=Date.now()}}if(this.#T){s.size=this.#T[t]}return s}dump(){const e=[];for(const t of this.#H({allowStale:true})){const n=this.#D[t];const r=this.#C[t];const s=this.#I(r)?r.__staleWhileFetching:r;if(s===undefined||n===undefined)continue;const i={value:s};if(this.#N&&this.#B){i.ttl=this.#N[t];const e=Ee.now()-this.#B[t];i.start=Math.floor(Date.now()-e)}if(this.#T){i.size=this.#T[t]}e.unshift([n,i])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=Ee.now()-e}this.set(t,n.value,n)}}set(e,t,n={}){if(t===undefined){this.delete(e);return this}const{ttl:r=this.ttl,start:s,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=n;let{noUpdateTTL:u=this.noUpdateTTL}=n;const c=this.#J(e,t,n.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize){if(a){a.set="miss";a.maxEntrySizeExceeded=true}this.delete(e);return this}let l=this.#S===0?undefined:this.#E.get(e);if(l===undefined){l=this.#S===0?this.#x:this.#O.length!==0?this.#O.pop():this.#S===this.#g?this.#X(false):this.#S;this.#D[l]=e;this.#C[l]=t;this.#E.set(e,l);this.#_[this.#x]=l;this.#k[l]=this.#x;this.#x=l;this.#S++;this.#Q(l,c,a);if(a)a.set="add";u=false}else{this.#j(l);const n=this.#C[l];if(t!==n){if(this.#L&&this.#I(n)){n.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=n;if(t!==undefined&&!i){if(this.#R){this.#b?.(t,e,"set")}if(this.#M){this.#P?.push([t,e,"set"])}}}else if(!i){if(this.#R){this.#b?.(n,e,"set")}if(this.#M){this.#P?.push([n,e,"set"])}}this.#Y(l);this.#Q(l,c,a);this.#C[l]=t;if(a){a.set="replace";const e=n&&this.#I(n)?n.__staleWhileFetching:n;if(e!==undefined)a.oldValue=e}}else if(a){a.set="update"}}if(r!==0&&!this.#N){this.#G()}if(this.#N){if(!u){this.#V(l,r,s)}if(a)this.#z(a,l)}if(!i&&this.#M&&this.#P){const e=this.#P;let t;while(t=e?.shift()){this.#v?.(...t)}}return this}pop(){try{while(this.#S){const e=this.#C[this.#F];this.#X(true);if(this.#I(e)){if(e.__staleWhileFetching){return e.__staleWhileFetching}}else if(e!==undefined){return e}}}finally{if(this.#M&&this.#P){const e=this.#P;let t;while(t=e?.shift()){this.#v?.(...t)}}}}#X(e){const t=this.#F;const n=this.#D[t];const r=this.#C[t];if(this.#L&&this.#I(r)){r.__abortController.abort(new Error("evicted"))}else if(this.#R||this.#M){if(this.#R){this.#b?.(r,n,"evict")}if(this.#M){this.#P?.push([r,n,"evict"])}}this.#Y(t);if(e){this.#D[t]=undefined;this.#C[t]=undefined;this.#O.push(t)}if(this.#S===1){this.#F=this.#x=0;this.#O.length=0}else{this.#F=this.#_[t]}this.#E.delete(n);this.#S--;return t}has(e,t={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t;const s=this.#E.get(e);if(s!==undefined){const e=this.#C[s];if(this.#I(e)&&e.__staleWhileFetching===undefined){return false}if(!this.#q(s)){if(n){this.#K(s)}if(r){r.has="hit";this.#z(r,s)}return true}else if(r){r.has="stale";this.#z(r,s)}}else if(r){r.has="miss"}return false}peek(e,t={}){const{allowStale:n=this.allowStale}=t;const r=this.#E.get(e);if(r===undefined||!n&&this.#q(r)){return}const s=this.#C[r];return this.#I(s)?s.__staleWhileFetching:s}#$(e,t,n,r){const s=t===undefined?undefined:this.#C[t];if(this.#I(s)){return s}const i=new _e;const{signal:o}=n;o?.addEventListener("abort",(()=>i.abort(o.reason)),{signal:i.signal});const a={signal:i.signal,options:n,context:r};const cb=(r,s=false)=>{const{aborted:o}=i.signal;const c=n.ignoreFetchAbort&&r!==undefined;if(n.status){if(o&&!s){n.status.fetchAborted=true;n.status.fetchError=i.signal.reason;if(c)n.status.fetchAbortIgnored=true}else{n.status.fetchResolved=true}}if(o&&!c&&!s){return fetchFail(i.signal.reason)}const l=u;if(this.#C[t]===u){if(r===undefined){if(l.__staleWhileFetching){this.#C[t]=l.__staleWhileFetching}else{this.delete(e)}}else{if(n.status)n.status.fetchUpdated=true;this.set(e,r,a.options)}}return r};const eb=e=>{if(n.status){n.status.fetchRejected=true;n.status.fetchError=e}return fetchFail(e)};const fetchFail=r=>{const{aborted:s}=i.signal;const o=s&&n.allowStaleOnFetchAbort;const a=o||n.allowStaleOnFetchRejection;const c=a||n.noDeleteOnFetchRejection;const l=u;if(this.#C[t]===u){const n=!c||l.__staleWhileFetching===undefined;if(n){this.delete(e)}else if(!o){this.#C[t]=l.__staleWhileFetching}}if(a){if(n.status&&l.__staleWhileFetching!==undefined){n.status.returnedStale=true}return l.__staleWhileFetching}else if(l.__returned===l){throw r}};const pcall=(t,r)=>{const o=this.#w?.(e,s,a);if(o&&o instanceof Promise){o.then((e=>t(e===undefined?undefined:e)),r)}i.signal.addEventListener("abort",(()=>{if(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort){t(undefined);if(n.allowStaleOnFetchAbort){t=e=>cb(e,true)}}}))};if(n.status)n.status.fetchDispatched=true;const u=new Promise(pcall).then(cb,eb);const c=Object.assign(u,{__abortController:i,__staleWhileFetching:s,__returned:undefined});if(t===undefined){this.set(e,c,{...a.options,status:undefined});t=this.#E.get(e)}else{this.#C[t]=c}return c}#I(e){if(!this.#L)return false;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof _e}async fetch(e,t={}){const{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:h=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:d,forceRefresh:g=false,status:y,signal:b}=t;if(!this.#L){if(y)y.fetch="get";return this.get(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:s,status:y})}const v={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:s,ttl:i,noDisposeOnSet:o,size:a,sizeCalculation:u,noUpdateTTL:c,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:p,ignoreFetchAbort:h,status:y,signal:b};let w=this.#E.get(e);if(w===undefined){if(y)y.fetch="miss";const t=this.#$(e,w,v,d);return t.__returned=t}else{const t=this.#C[w];if(this.#I(t)){const e=n&&t.__staleWhileFetching!==undefined;if(y){y.fetch="inflight";if(e)y.returnedStale=true}return e?t.__staleWhileFetching:t.__returned=t}const s=this.#q(w);if(!g&&!s){if(y)y.fetch="hit";this.#j(w);if(r){this.#K(w)}if(y)this.#z(y,w);return t}const i=this.#$(e,w,v,d);const o=i.__staleWhileFetching!==undefined;const a=o&&n;if(y){y.fetch=s?"stale":"refresh";if(a&&s)y.returnedStale=true}return a?i.__staleWhileFetching:i.__returned=i}}get(e,t={}){const{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:i}=t;const o=this.#E.get(e);if(o!==undefined){const t=this.#C[o];const a=this.#I(t);if(i)this.#z(i,o);if(this.#q(o)){if(i)i.get="stale";if(!a){if(!s){this.delete(e)}if(i&&n)i.returnedStale=true;return n?t:undefined}else{if(i&&n&&t.__staleWhileFetching!==undefined){i.returnedStale=true}return n?t.__staleWhileFetching:undefined}}else{if(i)i.get="hit";if(a){return t.__staleWhileFetching}this.#j(o);if(r){this.#K(o)}return t}}else if(i){i.get="miss"}}#ee(e,t){this.#k[t]=e;this.#_[e]=t}#j(e){if(e!==this.#x){if(e===this.#F){this.#F=this.#_[e]}else{this.#ee(this.#k[e],this.#_[e])}this.#ee(this.#x,e);this.#x=e}}delete(e){let t=false;if(this.#S!==0){const n=this.#E.get(e);if(n!==undefined){t=true;if(this.#S===1){this.clear()}else{this.#Y(n);const t=this.#C[n];if(this.#I(t)){t.__abortController.abort(new Error("deleted"))}else if(this.#R||this.#M){if(this.#R){this.#b?.(t,e,"delete")}if(this.#M){this.#P?.push([t,e,"delete"])}}this.#E.delete(e);this.#D[n]=undefined;this.#C[n]=undefined;if(n===this.#x){this.#x=this.#k[n]}else if(n===this.#F){this.#F=this.#_[n]}else{const e=this.#k[n];this.#_[e]=this.#_[n];const t=this.#_[n];this.#k[t]=this.#k[n]}this.#S--;this.#O.push(n)}}}if(this.#M&&this.#P?.length){const e=this.#P;let t;while(t=e?.shift()){this.#v?.(...t)}}return t}clear(){for(const e of this.#W({allowStale:true})){const t=this.#C[e];if(this.#I(t)){t.__abortController.abort(new Error("deleted"))}else{const n=this.#D[e];if(this.#R){this.#b?.(t,n,"delete")}if(this.#M){this.#P?.push([t,n,"delete"])}}}this.#E.clear();this.#C.fill(undefined);this.#D.fill(undefined);if(this.#N&&this.#B){this.#N.fill(0);this.#B.fill(0)}if(this.#T){this.#T.fill(0)}this.#F=0;this.#x=0;this.#O.length=0;this.#A=0;this.#S=0;if(this.#M&&this.#P){const e=this.#P;let t;while(t=e?.shift()){this.#v?.(...t)}}}}const xe=e(import.meta.url)("url");var Oe=__nccwpck_require__(7147);var Pe=__nccwpck_require__.t(Oe,2);var Te=__nccwpck_require__(2361);var Be=__nccwpck_require__(2781);var Ne=__nccwpck_require__(1576);const Re=typeof process==="object"&&process?process:{stdout:null,stderr:null};const isStream=e=>!!e&&typeof e==="object"&&(e instanceof Minipass||e instanceof Be||isReadable(e)||isWritable(e));const isReadable=e=>!!e&&typeof e==="object"&&e instanceof Te.EventEmitter&&typeof e.pipe==="function"&&e.pipe!==Be.Writable.prototype.pipe;const isWritable=e=>!!e&&typeof e==="object"&&e instanceof Te.EventEmitter&&typeof e.write==="function"&&typeof e.end==="function";const Le=Symbol("EOF");const Me=Symbol("maybeEmitEnd");const Ie=Symbol("emittedEnd");const $e=Symbol("emittingEnd");const je=Symbol("emittedError");const He=Symbol("closed");const We=Symbol("read");const qe=Symbol("flush");const Ue=Symbol("flushChunk");const Ge=Symbol("encoding");const Ve=Symbol("decoder");const Ke=Symbol("flowing");const ze=Symbol("paused");const Ye=Symbol("resume");const Je=Symbol("buffer");const Qe=Symbol("pipes");const Xe=Symbol("bufferLength");const Ze=Symbol("bufferPush");const et=Symbol("bufferShift");const tt=Symbol("objectMode");const nt=Symbol("destroyed");const rt=Symbol("error");const st=Symbol("emitData");const it=Symbol("emitEnd");const ot=Symbol("emitEnd2");const at=Symbol("async");const ut=Symbol("abort");const ct=Symbol("aborted");const lt=Symbol("signal");const ft=Symbol("dataListeners");const ht=Symbol("discarded");const defer=e=>Promise.resolve().then(e);const nodefer=e=>e();const isEndish=e=>e==="end"||e==="finish"||e==="prefinish";const isArrayBufferLike=e=>e instanceof ArrayBuffer||!!e&&typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const isArrayBufferView=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);class Pipe{src;dest;opts;ondrain;constructor(e,t,n){this.src=e;this.dest=t;this.opts=n;this.ondrain=()=>e[Ye]();this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(e,t,n){super(e,t,n);this.proxyErrors=e=>t.emit("error",e);e.on("error",this.proxyErrors)}}const isObjectModeOptions=e=>!!e.objectMode;const isEncodingOptions=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer";class Minipass extends Te.EventEmitter{[Ke]=false;[ze]=false;[Qe]=[];[Je]=[];[tt];[Ge];[at];[Ve];[Le]=false;[Ie]=false;[$e]=false;[He]=false;[je]=null;[Xe]=0;[nt]=false;[lt];[ct]=false;[ft]=0;[ht]=false;writable=true;readable=true;constructor(...e){const t=e[0]||{};super();if(t.objectMode&&typeof t.encoding==="string"){throw new TypeError("Encoding and objectMode may not be used together")}if(isObjectModeOptions(t)){this[tt]=true;this[Ge]=null}else if(isEncodingOptions(t)){this[Ge]=t.encoding;this[tt]=false}else{this[tt]=false;this[Ge]=null}this[at]=!!t.async;this[Ve]=this[Ge]?new Ne.StringDecoder(this[Ge]):null;if(t&&t.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[Je]})}if(t&&t.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[Qe]})}const{signal:n}=t;if(n){this[lt]=n;if(n.aborted){this[ut]()}else{n.addEventListener("abort",(()=>this[ut]()))}}}get bufferLength(){return this[Xe]}get encoding(){return this[Ge]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[tt]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[at]}set["async"](e){this[at]=this[at]||!!e}[ut](){this[ct]=true;this.emit("abort",this[lt]?.reason);this.destroy(this[lt]?.reason)}get aborted(){return this[ct]}set aborted(e){}write(e,t,n){if(this[ct])return false;if(this[Le])throw new Error("write after end");if(this[nt]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function"){n=t;t="utf8"}if(!t)t="utf8";const r=this[at]?defer:nodefer;if(!this[tt]&&!Buffer.isBuffer(e)){if(isArrayBufferView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(isArrayBufferLike(e)){e=Buffer.from(e)}else if(typeof e!=="string"){throw new Error("Non-contiguous data written to non-objectMode stream")}}if(this[tt]){if(this[Ke]&&this[Xe]!==0)this[qe](true);if(this[Ke])this.emit("data",e);else this[Ze](e);if(this[Xe]!==0)this.emit("readable");if(n)r(n);return this[Ke]}if(!e.length){if(this[Xe]!==0)this.emit("readable");if(n)r(n);return this[Ke]}if(typeof e==="string"&&!(t===this[Ge]&&!this[Ve]?.lastNeed)){e=Buffer.from(e,t)}if(Buffer.isBuffer(e)&&this[Ge]){e=this[Ve].write(e)}if(this[Ke]&&this[Xe]!==0)this[qe](true);if(this[Ke])this.emit("data",e);else this[Ze](e);if(this[Xe]!==0)this.emit("readable");if(n)r(n);return this[Ke]}read(e){if(this[nt])return null;this[ht]=false;if(this[Xe]===0||e===0||e&&e>this[Xe]){this[Me]();return null}if(this[tt])e=null;if(this[Je].length>1&&!this[tt]){this[Je]=[this[Ge]?this[Je].join(""):Buffer.concat(this[Je],this[Xe])]}const t=this[We](e||null,this[Je][0]);this[Me]();return t}[We](e,t){if(this[tt])this[et]();else{const n=t;if(e===n.length||e===null)this[et]();else if(typeof n==="string"){this[Je][0]=n.slice(e);t=n.slice(0,e);this[Xe]-=e}else{this[Je][0]=n.subarray(e);t=n.subarray(0,e);this[Xe]-=e}}this.emit("data",t);if(!this[Je].length&&!this[Le])this.emit("drain");return t}end(e,t,n){if(typeof e==="function"){n=e;e=undefined}if(typeof t==="function"){n=t;t="utf8"}if(e!==undefined)this.write(e,t);if(n)this.once("end",n);this[Le]=true;this.writable=false;if(this[Ke]||!this[ze])this[Me]();return this}[Ye](){if(this[nt])return;if(!this[ft]&&!this[Qe].length){this[ht]=true}this[ze]=false;this[Ke]=true;this.emit("resume");if(this[Je].length)this[qe]();else if(this[Le])this[Me]();else this.emit("drain")}resume(){return this[Ye]()}pause(){this[Ke]=false;this[ze]=true;this[ht]=false}get destroyed(){return this[nt]}get flowing(){return this[Ke]}get paused(){return this[ze]}[Ze](e){if(this[tt])this[Xe]+=1;else this[Xe]+=e.length;this[Je].push(e)}[et](){if(this[tt])this[Xe]-=1;else this[Xe]-=this[Je][0].length;return this[Je].shift()}[qe](e=false){do{}while(this[Ue](this[et]())&&this[Je].length);if(!e&&!this[Je].length&&!this[Le])this.emit("drain")}[Ue](e){this.emit("data",e);return this[Ke]}pipe(e,t){if(this[nt])return e;this[ht]=false;const n=this[Ie];t=t||{};if(e===Re.stdout||e===Re.stderr)t.end=false;else t.end=t.end!==false;t.proxyErrors=!!t.proxyErrors;if(n){if(t.end)e.end()}else{this[Qe].push(!t.proxyErrors?new Pipe(this,e,t):new PipeProxyErrors(this,e,t));if(this[at])defer((()=>this[Ye]()));else this[Ye]()}return e}unpipe(e){const t=this[Qe].find((t=>t.dest===e));if(t){if(this[Qe].length===1){if(this[Ke]&&this[ft]===0){this[Ke]=false}this[Qe]=[]}else this[Qe].splice(this[Qe].indexOf(t),1);t.unpipe()}}addListener(e,t){return this.on(e,t)}on(e,t){const n=super.on(e,t);if(e==="data"){this[ht]=false;this[ft]++;if(!this[Qe].length&&!this[Ke]){this[Ye]()}}else if(e==="readable"&&this[Xe]!==0){super.emit("readable")}else if(isEndish(e)&&this[Ie]){super.emit(e);this.removeAllListeners(e)}else if(e==="error"&&this[je]){const e=t;if(this[at])defer((()=>e.call(this,this[je])));else e.call(this,this[je])}return n}removeListener(e,t){return this.off(e,t)}off(e,t){const n=super.off(e,t);if(e==="data"){this[ft]=this.listeners("data").length;if(this[ft]===0&&!this[ht]&&!this[Qe].length){this[Ke]=false}}return n}removeAllListeners(e){const t=super.removeAllListeners(e);if(e==="data"||e===undefined){this[ft]=0;if(!this[ht]&&!this[Qe].length){this[Ke]=false}}return t}get emittedEnd(){return this[Ie]}[Me](){if(!this[$e]&&!this[Ie]&&!this[nt]&&this[Je].length===0&&this[Le]){this[$e]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[He])this.emit("close");this[$e]=false}}emit(e,...t){const n=t[0];if(e!=="error"&&e!=="close"&&e!==nt&&this[nt]){return false}else if(e==="data"){return!this[tt]&&!n?false:this[at]?(defer((()=>this[st](n))),true):this[st](n)}else if(e==="end"){return this[it]()}else if(e==="close"){this[He]=true;if(!this[Ie]&&!this[nt])return false;const e=super.emit("close");this.removeAllListeners("close");return e}else if(e==="error"){this[je]=n;super.emit(rt,n);const e=!this[lt]||this.listeners("error").length?super.emit("error",n):false;this[Me]();return e}else if(e==="resume"){const e=super.emit("resume");this[Me]();return e}else if(e==="finish"||e==="prefinish"){const t=super.emit(e);this.removeAllListeners(e);return t}const r=super.emit(e,...t);this[Me]();return r}[st](e){for(const t of this[Qe]){if(t.dest.write(e)===false)this.pause()}const t=this[ht]?false:super.emit("data",e);this[Me]();return t}[it](){if(this[Ie])return false;this[Ie]=true;this.readable=false;return this[at]?(defer((()=>this[ot]())),true):this[ot]()}[ot](){if(this[Ve]){const e=this[Ve].end();if(e){for(const t of this[Qe]){t.dest.write(e)}if(!this[ht])super.emit("data",e)}}for(const e of this[Qe]){e.end()}const e=super.emit("end");this.removeAllListeners("end");return e}async collect(){const e=Object.assign([],{dataLength:0});if(!this[tt])e.dataLength=0;const t=this.promise();this.on("data",(t=>{e.push(t);if(!this[tt])e.dataLength+=t.length}));await t;return e}async concat(){if(this[tt]){throw new Error("cannot concat in objectMode")}const e=await this.collect();return this[Ge]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise(((e,t)=>{this.on(nt,(()=>t(new Error("stream destroyed"))));this.on("error",(e=>t(e)));this.on("end",(()=>e()))}))}[Symbol.asyncIterator](){this[ht]=false;let e=false;const stop=async()=>{this.pause();e=true;return{value:undefined,done:true}};const next=()=>{if(e)return stop();const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[Le])return stop();let n;let r;const onerr=e=>{this.off("data",ondata);this.off("end",onend);this.off(nt,ondestroy);stop();r(e)};const ondata=e=>{this.off("error",onerr);this.off("end",onend);this.off(nt,ondestroy);this.pause();n({value:e,done:!!this[Le]})};const onend=()=>{this.off("error",onerr);this.off("data",ondata);this.off(nt,ondestroy);stop();n({done:true,value:undefined})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((e,t)=>{r=t;n=e;this.once(nt,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[ht]=false;let e=false;const stop=()=>{this.pause();this.off(rt,stop);this.off(nt,stop);this.off("end",stop);e=true;return{done:true,value:undefined}};const next=()=>{if(e)return stop();const t=this.read();return t===null?stop():{done:false,value:t}};this.once("end",stop);this.once(rt,stop);this.once(nt,stop);return{next:next,throw:stop,return:stop,[Symbol.iterator](){return this}}}destroy(e){if(this[nt]){if(e)this.emit("error",e);else this.emit(nt);return this}this[nt]=true;this[ht]=true;this[Je].length=0;this[Xe]=0;const t=this;if(typeof t.close==="function"&&!this[He])t.close();if(e)this.emit("error",e);else this.emit(nt);return this}static get isStream(){return isStream}}const pt=Oe.realpathSync.native;const dt={lstatSync:Oe.lstatSync,readdir:Oe.readdir,readdirSync:Oe.readdirSync,readlinkSync:Oe.readlinkSync,realpathSync:pt,promises:{lstat:Y.lstat,readdir:Y.readdir,readlink:Y.readlink,realpath:Y.realpath}};const fsFromOption=e=>!e||e===dt||e===Pe?dt:{...dt,...e,promises:{...dt.promises,...e.promises||{}}};const mt=/^\\\\\?\\([a-z]:)\\?$/i;const uncToDrive=e=>e.replace(/\//g,"\\").replace(mt,"$1\\");const gt=/[\\\/]/;const yt=0;const bt=1;const vt=2;const wt=4;const St=6;const At=8;const Et=10;const Dt=12;const Ct=15;const _t=~Ct;const kt=16;const Ft=32;const xt=64;const Ot=128;const Pt=256;const Tt=512;const Bt=xt|Ot|Tt;const Nt=1023;const entToType=e=>e.isFile()?At:e.isDirectory()?wt:e.isSymbolicLink()?Et:e.isCharacterDevice()?vt:e.isBlockDevice()?St:e.isSocket()?Dt:e.isFIFO()?bt:yt;const Rt=new Map;const normalize=e=>{const t=Rt.get(e);if(t)return t;const n=e.normalize("NFKD");Rt.set(e,n);return n};const Lt=new Map;const normalizeNocase=e=>{const t=Lt.get(e);if(t)return t;const n=normalize(e.toLowerCase());Lt.set(e,n);return n};class ResolveCache extends LRUCache{constructor(){super({max:256})}}class ChildrenCache extends LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:e=>e.length+1})}}const Mt=Symbol("PathScurry setAsCwd");class PathBase{name;root;roots;parent;nocase;#te;#ne;get dev(){return this.#ne}#re;get mode(){return this.#re}#se;get nlink(){return this.#se}#ie;get uid(){return this.#ie}#oe;get gid(){return this.#oe}#ae;get rdev(){return this.#ae}#ue;get blksize(){return this.#ue}#ce;get ino(){return this.#ce}#S;get size(){return this.#S}#le;get blocks(){return this.#le}#fe;get atimeMs(){return this.#fe}#he;get mtimeMs(){return this.#he}#pe;get ctimeMs(){return this.#pe}#de;get birthtimeMs(){return this.#de}#me;get atime(){return this.#me}#ge;get mtime(){return this.#ge}#ye;get ctime(){return this.#ye}#be;get birthtime(){return this.#be}#ve;#we;#Se;#Ae;#Ee;#De;#Ce;#_e;#ke;#Fe;get path(){return(this.parent||this).fullpath()}constructor(e,t=yt,n,r,s,i,o){this.name=e;this.#ve=s?normalizeNocase(e):normalize(e);this.#Ce=t&Nt;this.nocase=s;this.roots=r;this.root=n||this;this.#_e=i;this.#Se=o.fullpath;this.#Ee=o.relative;this.#De=o.relativePosix;this.parent=o.parent;if(this.parent){this.#te=this.parent.#te}else{this.#te=fsFromOption(o.fs)}}depth(){if(this.#we!==undefined)return this.#we;if(!this.parent)return this.#we=0;return this.#we=this.parent.depth()+1}childrenCache(){return this.#_e}resolve(e){if(!e){return this}const t=this.getRootString(e);const n=e.substring(t.length);const r=n.split(this.splitSep);const s=t?this.getRoot(t).#xe(r):this.#xe(r);return s}#xe(e){let t=this;for(const n of e){t=t.child(n)}return t}children(){const e=this.#_e.get(this);if(e){return e}const t=Object.assign([],{provisional:0});this.#_e.set(this,t);this.#Ce&=~kt;return t}child(e,t){if(e===""||e==="."){return this}if(e===".."){return this.parent||this}const n=this.children();const r=this.nocase?normalizeNocase(e):normalize(e);for(const e of n){if(e.#ve===r){return e}}const s=this.parent?this.sep:"";const i=this.#Se?this.#Se+s+e:undefined;const o=this.newChild(e,yt,{...t,parent:this,fullpath:i});if(!this.canReaddir()){o.#Ce|=Ot}n.push(o);return o}relative(){if(this.#Ee!==undefined){return this.#Ee}const e=this.name;const t=this.parent;if(!t){return this.#Ee=this.name}const n=t.relative();return n+(!n||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.#De!==undefined)return this.#De;const e=this.name;const t=this.parent;if(!t){return this.#De=this.fullpathPosix()}const n=t.relativePosix();return n+(!n||!t.parent?"":"/")+e}fullpath(){if(this.#Se!==undefined){return this.#Se}const e=this.name;const t=this.parent;if(!t){return this.#Se=this.name}const n=t.fullpath();const r=n+(!t.parent?"":this.sep)+e;return this.#Se=r}fullpathPosix(){if(this.#Ae!==undefined)return this.#Ae;if(this.sep==="/")return this.#Ae=this.fullpath();if(!this.parent){const e=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(e)){return this.#Ae=`//?/${e}`}else{return this.#Ae=e}}const e=this.parent;const t=e.fullpathPosix();const n=t+(!t||!e.parent?"":"/")+this.name;return this.#Ae=n}isUnknown(){return(this.#Ce&Ct)===yt}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#Ce&Ct)===At}isDirectory(){return(this.#Ce&Ct)===wt}isCharacterDevice(){return(this.#Ce&Ct)===vt}isBlockDevice(){return(this.#Ce&Ct)===St}isFIFO(){return(this.#Ce&Ct)===bt}isSocket(){return(this.#Ce&Ct)===Dt}isSymbolicLink(){return(this.#Ce&Et)===Et}lstatCached(){return this.#Ce&Ft?this:undefined}readlinkCached(){return this.#ke}realpathCached(){return this.#Fe}readdirCached(){const e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#ke)return true;if(!this.parent)return false;const e=this.#Ce&Ct;return!(e!==yt&&e!==Et||this.#Ce&Pt||this.#Ce&Ot)}calledReaddir(){return!!(this.#Ce&kt)}isENOENT(){return!!(this.#Ce&Ot)}isNamed(e){return!this.nocase?this.#ve===normalize(e):this.#ve===normalizeNocase(e)}async readlink(){const e=this.#ke;if(e){return e}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const e=await this.#te.promises.readlink(this.fullpath());const t=this.parent.resolve(e);if(t){return this.#ke=t}}catch(e){this.#Oe(e.code);return undefined}}readlinkSync(){const e=this.#ke;if(e){return e}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const e=this.#te.readlinkSync(this.fullpath());const t=this.parent.resolve(e);if(t){return this.#ke=t}}catch(e){this.#Oe(e.code);return undefined}}#Pe(e){this.#Ce|=kt;for(let t=e.provisional;t<e.length;t++){e[t].#Te()}}#Te(){if(this.#Ce&Ot)return;this.#Ce=(this.#Ce|Ot)&_t;this.#Be()}#Be(){const e=this.children();e.provisional=0;for(const t of e){t.#Te()}}#Ne(){this.#Ce|=Tt;this.#Re()}#Re(){if(this.#Ce&xt)return;let e=this.#Ce;if((e&Ct)===wt)e&=_t;this.#Ce=e|xt;this.#Be()}#Le(e=""){if(e==="ENOTDIR"||e==="EPERM"){this.#Re()}else if(e==="ENOENT"){this.#Te()}else{this.children().provisional=0}}#Me(e=""){if(e==="ENOTDIR"){const e=this.parent;e.#Re()}else if(e==="ENOENT"){this.#Te()}}#Oe(e=""){let t=this.#Ce;t|=Pt;if(e==="ENOENT")t|=Ot;if(e==="EINVAL"||e==="UNKNOWN"){t&=_t}this.#Ce=t;if(e==="ENOTDIR"&&this.parent){this.parent.#Re()}}#Ie(e,t){return this.#$e(e,t)||this.#je(e,t)}#je(e,t){const n=entToType(e);const r=this.newChild(e.name,n,{parent:this});const s=r.#Ce&Ct;if(s!==wt&&s!==Et&&s!==yt){r.#Ce|=xt}t.unshift(r);t.provisional++;return r}#$e(e,t){for(let n=t.provisional;n<t.length;n++){const r=t[n];const s=this.nocase?normalizeNocase(e.name):normalize(e.name);if(s!==r.#ve){continue}return this.#He(e,r,n,t)}}#He(e,t,n,r){const s=t.name;t.#Ce=t.#Ce&_t|entToType(e);if(s!==e.name)t.name=e.name;if(n!==r.provisional){if(n===r.length-1)r.pop();else r.splice(n,1);r.unshift(t)}r.provisional++;return t}async lstat(){if((this.#Ce&Ot)===0){try{this.#We(await this.#te.promises.lstat(this.fullpath()));return this}catch(e){this.#Me(e.code)}}}lstatSync(){if((this.#Ce&Ot)===0){try{this.#We(this.#te.lstatSync(this.fullpath()));return this}catch(e){this.#Me(e.code)}}}#We(e){const{atime:t,atimeMs:n,birthtime:r,birthtimeMs:s,blksize:i,blocks:o,ctime:a,ctimeMs:u,dev:c,gid:l,ino:f,mode:h,mtime:p,mtimeMs:d,nlink:g,rdev:y,size:b,uid:v}=e;this.#me=t;this.#fe=n;this.#be=r;this.#de=s;this.#ue=i;this.#le=o;this.#ye=a;this.#pe=u;this.#ne=c;this.#oe=l;this.#ce=f;this.#re=h;this.#ge=p;this.#he=d;this.#se=g;this.#ae=y;this.#S=b;this.#ie=v;const w=entToType(e);this.#Ce=this.#Ce&_t|w|Ft;if(w!==yt&&w!==wt&&w!==Et){this.#Ce|=xt}}#qe=[];#Ue=false;#Ge(e){this.#Ue=false;const t=this.#qe.slice();this.#qe.length=0;t.forEach((t=>t(null,e)))}readdirCB(e,t=false){if(!this.canReaddir()){if(t)e(null,[]);else queueMicrotask((()=>e(null,[])));return}const n=this.children();if(this.calledReaddir()){const r=n.slice(0,n.provisional);if(t)e(null,r);else queueMicrotask((()=>e(null,r)));return}this.#qe.push(e);if(this.#Ue){return}this.#Ue=true;const r=this.fullpath();this.#te.readdir(r,{withFileTypes:true},((e,t)=>{if(e){this.#Le(e.code);n.provisional=0}else{for(const e of t){this.#Ie(e,n)}this.#Pe(n)}this.#Ge(n.slice(0,n.provisional));return}))}#Ve;async readdir(){if(!this.canReaddir()){return[]}const e=this.children();if(this.calledReaddir()){return e.slice(0,e.provisional)}const t=this.fullpath();if(this.#Ve){await this.#Ve}else{let resolve=()=>{};this.#Ve=new Promise((e=>resolve=e));try{for(const n of await this.#te.promises.readdir(t,{withFileTypes:true})){this.#Ie(n,e)}this.#Pe(e)}catch(t){this.#Le(t.code);e.provisional=0}this.#Ve=undefined;resolve()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir()){return[]}const e=this.children();if(this.calledReaddir()){return e.slice(0,e.provisional)}const t=this.fullpath();try{for(const n of this.#te.readdirSync(t,{withFileTypes:true})){this.#Ie(n,e)}this.#Pe(e)}catch(t){this.#Le(t.code);e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#Ce&Bt)return false;const e=Ct&this.#Ce;if(!(e===yt||e===wt||e===Et)){return false}return true}shouldWalk(e,t){return(this.#Ce&wt)===wt&&!(this.#Ce&Bt)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#Fe)return this.#Fe;if((Tt|Pt|Ot)&this.#Ce)return undefined;try{const e=await this.#te.promises.realpath(this.fullpath());return this.#Fe=this.resolve(e)}catch(e){this.#Ne()}}realpathSync(){if(this.#Fe)return this.#Fe;if((Tt|Pt|Ot)&this.#Ce)return undefined;try{const e=this.#te.realpathSync(this.fullpath());return this.#Fe=this.resolve(e)}catch(e){this.#Ne()}}[Mt](e){if(e===this)return;const t=new Set([]);let n=[];let r=this;while(r&&r.parent){t.add(r);r.#Ee=n.join(this.sep);r.#De=n.join("/");r=r.parent;n.push("..")}r=e;while(r&&r.parent&&!t.has(r)){r.#Ee=undefined;r.#De=undefined;r=r.parent}}}class PathWin32 extends PathBase{sep="\\";splitSep=gt;constructor(e,t=yt,n,r,s,i,o){super(e,t,n,r,s,i,o)}newChild(e,t=yt,n={}){return new PathWin32(e,t,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(e){return q.win32.parse(e).root}getRoot(e){e=uncToDrive(e.toUpperCase());if(e===this.root.name){return this.root}for(const[t,n]of Object.entries(this.roots)){if(this.sameRoot(e,t)){return this.roots[e]=n}}return this.roots[e]=new PathScurryWin32(e,this).root}sameRoot(e,t=this.root.name){e=e.toUpperCase().replace(/\//g,"\\").replace(mt,"$1\\");return e===t}}class PathPosix extends PathBase{splitSep="/";sep="/";constructor(e,t=yt,n,r,s,i,o){super(e,t,n,r,s,i,o)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=yt,n={}){return new PathPosix(e,t,this.root,this.roots,this.nocase,this.childrenCache(),n)}}class PathScurryBase{root;rootPath;roots;cwd;#Ke;#ze;#_e;nocase;#te;constructor(e=process.cwd(),t,n,{nocase:r,childrenCacheSize:s=16*1024,fs:i=dt}={}){this.#te=fsFromOption(i);if(e instanceof URL||e.startsWith("file://")){e=(0,xe.fileURLToPath)(e)}const o=t.resolve(e);this.roots=Object.create(null);this.rootPath=this.parseRootPath(o);this.#Ke=new ResolveCache;this.#ze=new ResolveCache;this.#_e=new ChildrenCache(s);const a=o.substring(this.rootPath.length).split(n);if(a.length===1&&!a[0]){a.pop()}if(r===undefined){throw new TypeError("must provide nocase setting to PathScurryBase ctor")}this.nocase=r;this.root=this.newRoot(this.#te);this.roots[this.rootPath]=this.root;let u=this.root;let c=a.length-1;const l=t.sep;let f=this.rootPath;let h=false;for(const e of a){const t=c--;u=u.child(e,{relative:new Array(t).fill("..").join(l),relativePosix:new Array(t).fill("..").join("/"),fullpath:f+=(h?"":l)+e});h=true}this.cwd=u}depth(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.depth()}childrenCache(){return this.#_e}resolve(...e){let t="";for(let n=e.length-1;n>=0;n--){const r=e[n];if(!r||r===".")continue;t=t?`${r}/${t}`:r;if(this.isAbsolute(r)){break}}const n=this.#Ke.get(t);if(n!==undefined){return n}const r=this.cwd.resolve(t).fullpath();this.#Ke.set(t,r);return r}resolvePosix(...e){let t="";for(let n=e.length-1;n>=0;n--){const r=e[n];if(!r||r===".")continue;t=t?`${r}/${t}`:r;if(this.isAbsolute(r)){break}}const n=this.#ze.get(t);if(n!==undefined){return n}const r=this.cwd.resolve(t).fullpathPosix();this.#ze.set(t,r);return r}relative(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.relative()}relativePosix(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.relativePosix()}basename(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.name}dirname(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:true}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:n}=t;if(!e.canReaddir()){return[]}else{const t=await e.readdir();return n?t:t.map((e=>e.name))}}readdirSync(e=this.cwd,t={withFileTypes:true}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:n=true}=t;if(!e.canReaddir()){return[]}else if(n){return e.readdirSync()}else{return e.readdirSync().map((e=>e.name))}}async lstat(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.lstat()}lstatSync(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:false}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e.withFileTypes;e=this.cwd}const n=await e.readlink();return t?n:n?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:false}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e.withFileTypes;e=this.cwd}const n=e.readlinkSync();return t?n:n?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:false}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e.withFileTypes;e=this.cwd}const n=await e.realpath();return t?n:n?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:false}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e.withFileTypes;e=this.cwd}const n=e.realpathSync();return t?n:n?.fullpath()}async walk(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:n=true,follow:r=false,filter:s,walkFilter:i}=t;const o=[];if(!s||s(e)){o.push(n?e:e.fullpath())}const a=new Set;const walk=(e,t)=>{a.add(e);e.readdirCB(((e,u)=>{if(e){return t(e)}let c=u.length;if(!c)return t();const next=()=>{if(--c===0){t()}};for(const e of u){if(!s||s(e)){o.push(n?e:e.fullpath())}if(r&&e.isSymbolicLink()){e.realpath().then((e=>e?.isUnknown()?e.lstat():e)).then((e=>e?.shouldWalk(a,i)?walk(e,next):next()))}else{if(e.shouldWalk(a,i)){walk(e,next)}else{next()}}}}),true)};const u=e;return new Promise(((e,t)=>{walk(u,(n=>{if(n)return t(n);e(o)}))}))}walkSync(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:n=true,follow:r=false,filter:s,walkFilter:i}=t;const o=[];if(!s||s(e)){o.push(n?e:e.fullpath())}const a=new Set([e]);for(const e of a){const t=e.readdirSync();for(const e of t){if(!s||s(e)){o.push(n?e:e.fullpath())}let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;if(t.isUnknown())t.lstatSync()}if(t.shouldWalk(a,i)){a.add(t)}}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}return this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:n=true,follow:r=false,filter:s,walkFilter:i}=t;if(!s||s(e)){yield n?e:e.fullpath()}const o=new Set([e]);for(const e of o){const t=e.readdirSync();for(const e of t){if(!s||s(e)){yield n?e:e.fullpath()}let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;if(t.isUnknown())t.lstatSync()}if(t.shouldWalk(o,i)){o.add(t)}}}}stream(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:n=true,follow:r=false,filter:s,walkFilter:i}=t;const o=new Minipass({objectMode:true});if(!s||s(e)){o.write(n?e:e.fullpath())}const a=new Set;const u=[e];let c=0;const process=()=>{let e=false;while(!e){const t=u.shift();if(!t){if(c===0)o.end();return}c++;a.add(t);const onReaddir=(t,f,h=false)=>{if(t)return o.emit("error",t);if(r&&!h){const e=[];for(const t of f){if(t.isSymbolicLink()){e.push(t.realpath().then((e=>e?.isUnknown()?e.lstat():e)))}}if(e.length){Promise.all(e).then((()=>onReaddir(null,f,true)));return}}for(const t of f){if(t&&(!s||s(t))){if(!o.write(n?t:t.fullpath())){e=true}}}c--;for(const e of f){const t=e.realpathCached()||e;if(t.shouldWalk(a,i)){u.push(t)}}if(e&&!o.flowing){o.once("drain",process)}else if(!l){process()}};let l=true;t.readdirCB(onReaddir,true);l=false}};process();return o}streamSync(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:n=true,follow:r=false,filter:s,walkFilter:i}=t;const o=new Minipass({objectMode:true});const a=new Set;if(!s||s(e)){o.write(n?e:e.fullpath())}const u=[e];let c=0;const process=()=>{let e=false;while(!e){const t=u.shift();if(!t){if(c===0)o.end();return}c++;a.add(t);const l=t.readdirSync();for(const t of l){if(!s||s(t)){if(!o.write(n?t:t.fullpath())){e=true}}}c--;for(const e of l){let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;if(t.isUnknown())t.lstatSync()}if(t.shouldWalk(a,i)){u.push(t)}}}if(e&&!o.flowing)o.once("drain",process)};process();return o}chdir(e=this.cwd){const t=this.cwd;this.cwd=typeof e==="string"?this.cwd.resolve(e):e;this.cwd[Mt](t)}}class PathScurryWin32 extends PathScurryBase{sep="\\";constructor(e=process.cwd(),t={}){const{nocase:n=true}=t;super(e,q.win32,"\\",{...t,nocase:n});this.nocase=n;for(let e=this.cwd;e;e=e.parent){e.nocase=this.nocase}}parseRootPath(e){return q.win32.parse(e).root.toUpperCase()}newRoot(e){return new PathWin32(this.rootPath,wt,undefined,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}}class PathScurryPosix extends PathScurryBase{sep="/";constructor(e=process.cwd(),t={}){const{nocase:n=false}=t;super(e,q.posix,"/",{...t,nocase:n});this.nocase=n}parseRootPath(e){return"/"}newRoot(e){return new PathPosix(this.rootPath,wt,undefined,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}}class PathScurryDarwin extends PathScurryPosix{constructor(e=process.cwd(),t={}){const{nocase:n=true}=t;super(e,{...t,nocase:n})}}const It=process.platform==="win32"?PathWin32:PathPosix;const $t=process.platform==="win32"?PathScurryWin32:process.platform==="darwin"?PathScurryDarwin:PathScurryPosix;const isPatternList=e=>e.length>=1;const isGlobList=e=>e.length>=1;class Pattern{#Ye;#Je;#Qe;length;#Xe;#Ze;#et;#tt;#nt;#rt;#st=true;constructor(e,t,n,r){if(!isPatternList(e)){throw new TypeError("empty pattern list")}if(!isGlobList(t)){throw new TypeError("empty glob list")}if(t.length!==e.length){throw new TypeError("mismatched pattern list and glob list lengths")}this.length=e.length;if(n<0||n>=this.length){throw new TypeError("index out of range")}this.#Ye=e;this.#Je=t;this.#Qe=n;this.#Xe=r;if(this.#Qe===0){if(this.isUNC()){const[e,t,n,r,...s]=this.#Ye;const[i,o,a,u,...c]=this.#Je;if(s[0]===""){s.shift();c.shift()}const l=[e,t,n,r,""].join("/");const f=[i,o,a,u,""].join("/");this.#Ye=[l,...s];this.#Je=[f,...c];this.length=this.#Ye.length}else if(this.isDrive()||this.isAbsolute()){const[e,...t]=this.#Ye;const[n,...r]=this.#Je;if(t[0]===""){t.shift();r.shift()}const s=e+"/";const i=n+"/";this.#Ye=[s,...t];this.#Je=[i,...r];this.length=this.#Ye.length}}}pattern(){return this.#Ye[this.#Qe]}isString(){return typeof this.#Ye[this.#Qe]==="string"}isGlobstar(){return this.#Ye[this.#Qe]===ye}isRegExp(){return this.#Ye[this.#Qe]instanceof RegExp}globString(){return this.#et=this.#et||(this.#Qe===0?this.isAbsolute()?this.#Je[0]+this.#Je.slice(1).join("/"):this.#Je.join("/"):this.#Je.slice(this.#Qe).join("/"))}hasMore(){return this.length>this.#Qe+1}rest(){if(this.#Ze!==undefined)return this.#Ze;if(!this.hasMore())return this.#Ze=null;this.#Ze=new Pattern(this.#Ye,this.#Je,this.#Qe+1,this.#Xe);this.#Ze.#rt=this.#rt;this.#Ze.#nt=this.#nt;this.#Ze.#tt=this.#tt;return this.#Ze}isUNC(){const e=this.#Ye;return this.#nt!==undefined?this.#nt:this.#nt=this.#Xe==="win32"&&this.#Qe===0&&e[0]===""&&e[1]===""&&typeof e[2]==="string"&&!!e[2]&&typeof e[3]==="string"&&!!e[3]}isDrive(){const e=this.#Ye;return this.#tt!==undefined?this.#tt:this.#tt=this.#Xe==="win32"&&this.#Qe===0&&this.length>1&&typeof e[0]==="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){const e=this.#Ye;return this.#rt!==undefined?this.#rt:this.#rt=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){const e=this.#Ye[0];return typeof e==="string"&&this.isAbsolute()&&this.#Qe===0?e:""}checkFollowGlobstar(){return!(this.#Qe===0||!this.isGlobstar()||!this.#st)}markFollowGlobstar(){if(this.#Qe===0||!this.isGlobstar()||!this.#st)return false;this.#st=false;return true}}const jt=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Ignore{relative;relativeChildren;absolute;absoluteChildren;constructor(e,{nobrace:t,nocase:n,noext:r,noglobstar:s,platform:i=jt}){this.relative=[];this.absolute=[];this.relativeChildren=[];this.absoluteChildren=[];const o={dot:true,nobrace:t,nocase:n,noext:r,noglobstar:s,optimizationLevel:2,platform:i,nocomment:true,nonegate:true};for(const t of e){const e=new Minimatch(t,o);for(let t=0;t<e.set.length;t++){const n=e.set[t];const r=e.globParts[t];if(!n||!r){throw new Error("invalid pattern object")}const s=new Pattern(n,r,0,i);const a=new Minimatch(s.globString(),o);const u=r[r.length-1]==="**";const c=s.isAbsolute();if(c)this.absolute.push(a);else this.relative.push(a);if(u){if(c)this.absoluteChildren.push(a);else this.relativeChildren.push(a)}}}}ignored(e){const t=e.fullpath();const n=`${t}/`;const r=e.relative()||".";const s=`${r}/`;for(const e of this.relative){if(e.match(r)||e.match(s))return true}for(const e of this.absolute){if(e.match(t)||e.match(n))return true}return false}childrenIgnored(e){const t=e.fullpath()+"/";const n=(e.relative()||".")+"/";for(const e of this.relativeChildren){if(e.match(n))return true}for(const e of this.absoluteChildren){if(e.match(t))return true}return false}}class HasWalkedCache{store;constructor(e=new Map){this.store=e}copy(){return new HasWalkedCache(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){const n=e.fullpath();const r=this.store.get(n);if(r)r.add(t.globString());else this.store.set(n,new Set([t.globString()]))}}class MatchRecord{store=new Map;add(e,t,n){const r=(t?2:0)|(n?1:0);const s=this.store.get(e);this.store.set(e,s===undefined?r:r&s)}entries(){return[...this.store.entries()].map((([e,t])=>[e,!!(t&2),!!(t&1)]))}}class SubWalks{store=new Map;add(e,t){if(!e.canReaddir()){return}const n=this.store.get(e);if(n){if(!n.find((e=>e.globString()===t.globString()))){n.push(t)}}else this.store.set(e,[t])}get(e){const t=this.store.get(e);if(!t){throw new Error("attempting to walk unknown path")}return t}entries(){return this.keys().map((e=>[e,this.store.get(e)]))}keys(){return[...this.store.keys()].filter((e=>e.canReaddir()))}}class Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(e,t){this.opts=e;this.follow=!!e.follow;this.dot=!!e.dot;this.hasWalkedCache=t?t.copy():new HasWalkedCache}processPatterns(e,t){this.patterns=t;const n=t.map((t=>[e,t]));for(let[e,t]of n){this.hasWalkedCache.storeWalked(e,t);const n=t.root();const r=t.isAbsolute()&&this.opts.absolute!==false;if(n){e=e.resolve(n==="/"&&this.opts.root!==undefined?this.opts.root:n);const r=t.rest();if(!r){this.matches.add(e,true,false);continue}else{t=r}}if(e.isENOENT())continue;let s;let i;let o=false;while(typeof(s=t.pattern())==="string"&&(i=t.rest())){const n=e.resolve(s);e=n;t=i;o=true}s=t.pattern();i=t.rest();if(o){if(this.hasWalkedCache.hasWalked(e,t))continue;this.hasWalkedCache.storeWalked(e,t)}if(typeof s==="string"){const t=s===".."||s===""||s===".";this.matches.add(e.resolve(s),r,t);continue}else if(s===ye){if(!e.isSymbolicLink()||this.follow||t.checkFollowGlobstar()){this.subwalks.add(e,t)}const n=i?.pattern();const s=i?.rest();if(!i||(n===""||n===".")&&!s){this.matches.add(e,r,n===""||n===".")}else{if(n===".."){const t=e.parent||e;if(!s)this.matches.add(t,r,true);else if(!this.hasWalkedCache.hasWalked(t,s)){this.subwalks.add(t,s)}}}}else if(s instanceof RegExp){this.subwalks.add(e,t)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Processor(this.opts,this.hasWalkedCache)}filterEntries(e,t){const n=this.subwalks.get(e);const r=this.child();for(const e of t){for(const t of n){const n=t.isAbsolute();const s=t.pattern();const i=t.rest();if(s===ye){r.testGlobstar(e,t,i,n)}else if(s instanceof RegExp){r.testRegExp(e,s,i,n)}else{r.testString(e,s,i,n)}}}return r}testGlobstar(e,t,n,r){if(this.dot||!e.name.startsWith(".")){if(!t.hasMore()){this.matches.add(e,r,false)}if(e.canReaddir()){if(this.follow||!e.isSymbolicLink()){this.subwalks.add(e,t)}else if(e.isSymbolicLink()){if(n&&t.checkFollowGlobstar()){this.subwalks.add(e,n)}else if(t.markFollowGlobstar()){this.subwalks.add(e,t)}}}}if(n){const t=n.pattern();if(typeof t==="string"&&t!==".."&&t!==""&&t!=="."){this.testString(e,t,n.rest(),r)}else if(t===".."){const t=e.parent||e;this.subwalks.add(t,n)}else if(t instanceof RegExp){this.testRegExp(e,t,n.rest(),r)}}}testRegExp(e,t,n,r){if(!t.test(e.name))return;if(!n){this.matches.add(e,r,false)}else{this.subwalks.add(e,n)}}testString(e,t,n,r){if(!e.isNamed(t))return;if(!n){this.matches.add(e,r,false)}else{this.subwalks.add(e,n)}}}const makeIgnore=(e,t)=>typeof e==="string"?new Ignore([e],t):Array.isArray(e)?new Ignore(e,t):e;class GlobUtil{path;patterns;opts;seen=new Set;paused=false;aborted=false;#it=[];#ot;#at;signal;maxDepth;constructor(e,t,n){this.patterns=e;this.path=t;this.opts=n;this.#at=!n.posix&&n.platform==="win32"?"\\":"/";if(n.ignore){this.#ot=makeIgnore(n.ignore,n)}this.maxDepth=n.maxDepth||Infinity;if(n.signal){this.signal=n.signal;this.signal.addEventListener("abort",(()=>{this.#it.length=0}))}}#ut(e){return this.seen.has(e)||!!this.#ot?.ignored?.(e)}#ct(e){return!!this.#ot?.childrenIgnored?.(e)}pause(){this.paused=true}resume(){if(this.signal?.aborted)return;this.paused=false;let e=undefined;while(!this.paused&&(e=this.#it.shift())){e()}}onResume(e){if(this.signal?.aborted)return;if(!this.paused){e()}else{this.#it.push(e)}}async matchCheck(e,t){if(t&&this.opts.nodir)return undefined;let n;if(this.opts.realpath){n=e.realpathCached()||await e.realpath();if(!n)return undefined;e=n}const r=e.isUnknown()||this.opts.stat;return this.matchCheckTest(r?await e.lstat():e,t)}matchCheckTest(e,t){return e&&(this.maxDepth===Infinity||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&!this.#ut(e)?e:undefined}matchCheckSync(e,t){if(t&&this.opts.nodir)return undefined;let n;if(this.opts.realpath){n=e.realpathCached()||e.realpathSync();if(!n)return undefined;e=n}const r=e.isUnknown()||this.opts.stat;return this.matchCheckTest(r?e.lstatSync():e,t)}matchFinish(e,t){if(this.#ut(e))return;const n=this.opts.absolute===undefined?t:this.opts.absolute;this.seen.add(e);const r=this.opts.mark&&e.isDirectory()?this.#at:"";if(this.opts.withFileTypes){this.matchEmit(e)}else if(n){const t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+r)}else{const t=this.opts.posix?e.relativePosix():e.relative();const n=this.opts.dotRelative&&!t.startsWith(".."+this.#at)?"."+this.#at:"";this.matchEmit(!t?"."+r:n+t+r)}}async match(e,t,n){const r=await this.matchCheck(e,n);if(r)this.matchFinish(r,t)}matchSync(e,t,n){const r=this.matchCheckSync(e,n);if(r)this.matchFinish(r,t)}walkCB(e,t,n){if(this.signal?.aborted)n();this.walkCB2(e,t,new Processor(this.opts),n)}walkCB2(e,t,n,r){if(this.#ct(e))return r();if(this.signal?.aborted)r();if(this.paused){this.onResume((()=>this.walkCB2(e,t,n,r)));return}n.processPatterns(e,t);let s=1;const next=()=>{if(--s===0)r()};for(const[e,t,r]of n.matches.entries()){if(this.#ut(e))continue;s++;this.match(e,t,r).then((()=>next()))}for(const e of n.subwalkTargets()){if(this.maxDepth!==Infinity&&e.depth()>=this.maxDepth){continue}s++;const t=e.readdirCached();if(e.calledReaddir())this.walkCB3(e,t,n,next);else{e.readdirCB(((t,r)=>this.walkCB3(e,r,n,next)),true)}}next()}walkCB3(e,t,n,r){n=n.filterEntries(e,t);let s=1;const next=()=>{if(--s===0)r()};for(const[e,t,r]of n.matches.entries()){if(this.#ut(e))continue;s++;this.match(e,t,r).then((()=>next()))}for(const[e,t]of n.subwalks.entries()){s++;this.walkCB2(e,t,n.child(),next)}next()}walkCBSync(e,t,n){if(this.signal?.aborted)n();this.walkCB2Sync(e,t,new Processor(this.opts),n)}walkCB2Sync(e,t,n,r){if(this.#ct(e))return r();if(this.signal?.aborted)r();if(this.paused){this.onResume((()=>this.walkCB2Sync(e,t,n,r)));return}n.processPatterns(e,t);let s=1;const next=()=>{if(--s===0)r()};for(const[e,t,r]of n.matches.entries()){if(this.#ut(e))continue;this.matchSync(e,t,r)}for(const e of n.subwalkTargets()){if(this.maxDepth!==Infinity&&e.depth()>=this.maxDepth){continue}s++;const t=e.readdirSync();this.walkCB3Sync(e,t,n,next)}next()}walkCB3Sync(e,t,n,r){n=n.filterEntries(e,t);let s=1;const next=()=>{if(--s===0)r()};for(const[e,t,r]of n.matches.entries()){if(this.#ut(e))continue;this.matchSync(e,t,r)}for(const[e,t]of n.subwalks.entries()){s++;this.walkCB2Sync(e,t,n.child(),next)}next()}}class GlobWalker extends GlobUtil{matches;constructor(e,t,n){super(e,t,n);this.matches=new Set}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){await this.path.lstat()}await new Promise(((e,t)=>{this.walkCB(this.path,this.patterns,(()=>{if(this.signal?.aborted){t(this.signal.reason)}else{e(this.matches)}}))}));return this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason}));return this.matches}}class GlobStream extends GlobUtil{results;constructor(e,t,n){super(e,t,n);this.results=new Minipass({signal:this.signal,objectMode:true});this.results.on("drain",(()=>this.resume()));this.results.on("resume",(()=>this.resume()))}matchEmit(e){this.results.write(e);if(!this.results.flowing)this.pause()}stream(){const e=this.path;if(e.isUnknown()){e.lstat().then((()=>{this.walkCB(e,this.patterns,(()=>this.results.end()))}))}else{this.walkCB(e,this.patterns,(()=>this.results.end()))}return this.results}streamSync(){if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>this.results.end()));return this.results}}const Ht=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Glob{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");this.withFileTypes=!!t.withFileTypes;this.signal=t.signal;this.follow=!!t.follow;this.dot=!!t.dot;this.dotRelative=!!t.dotRelative;this.nodir=!!t.nodir;this.mark=!!t.mark;if(!t.cwd){this.cwd=""}else if(t.cwd instanceof URL||t.cwd.startsWith("file://")){t.cwd=(0,xe.fileURLToPath)(t.cwd)}this.cwd=t.cwd||"";this.root=t.root;this.magicalBraces=!!t.magicalBraces;this.nobrace=!!t.nobrace;this.noext=!!t.noext;this.realpath=!!t.realpath;this.absolute=t.absolute;this.noglobstar=!!t.noglobstar;this.matchBase=!!t.matchBase;this.maxDepth=typeof t.maxDepth==="number"?t.maxDepth:Infinity;this.stat=!!t.stat;this.ignore=t.ignore;if(this.withFileTypes&&this.absolute!==undefined){throw new Error("cannot set absolute and withFileTypes:true")}if(typeof e==="string"){e=[e]}this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){e=e.map((e=>e.replace(/\\/g,"/")))}if(this.matchBase){if(t.noglobstar){throw new TypeError("base matching requires globstar")}e=e.map((e=>e.includes("/")?e:`./**/${e}`))}this.pattern=e;this.platform=t.platform||Ht;this.opts={...t,platform:this.platform};if(t.scurry){this.scurry=t.scurry;if(t.nocase!==undefined&&t.nocase!==t.scurry.nocase){throw new Error("nocase option contradicts provided scurry option")}}else{const e=t.platform==="win32"?PathScurryWin32:t.platform==="darwin"?PathScurryDarwin:t.platform?PathScurryPosix:$t;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;const n=this.platform==="darwin"||this.platform==="win32";const r={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:true,noext:this.noext,nonegate:true,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug};const s=this.pattern.map((e=>new Minimatch(e,r)));const[i,o]=s.reduce(((e,t)=>{e[0].push(...t.set);e[1].push(...t.globParts);return e}),[[],[]]);this.patterns=i.map(((e,t)=>{const n=o[t];if(!n)throw new Error("invalid pattern object");return new Pattern(e,n,0,this.platform)}))}async walk(){return[...await new GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).walk()]}walkSync(){return[...new GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).walkSync()]}stream(){return new GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).stream()}streamSync(){return new GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}const hasMagic=(e,t={})=>{if(!Array.isArray(e)){e=[e]}for(const n of e){if(new Minimatch(n,t).hasMagic())return true}return false};function globStreamSync(e,t={}){return new Glob(e,t).streamSync()}function globStream(e,t={}){return new Glob(e,t).stream()}function globSync(e,t={}){return new Glob(e,t).walkSync()}async function glob_(e,t={}){return new Glob(e,t).walk()}function globIterateSync(e,t={}){return new Glob(e,t).iterateSync()}function globIterate(e,t={}){return new Glob(e,t).iterate()}const Wt=globStreamSync;const qt=Object.assign(globStream,{sync:globStreamSync});const Ut=globIterateSync;const Gt=Object.assign(globIterate,{sync:globIterateSync});const Vt=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync});const Kt=Object.assign(glob_,{glob:glob_,globSync:globSync,sync:Vt,globStream:globStream,stream:qt,globStreamSync:globStreamSync,streamSync:Wt,globIterate:globIterate,iterate:Gt,globIterateSync:globIterateSync,iterateSync:Ut,Glob:Glob,hasMagic:hasMagic,escape:escape_escape,unescape:unescape_unescape});Kt.glob=Kt;const zt=e(import.meta.url)("node:path");var Yt=__nccwpck_require__.n(zt);const Jt=e(import.meta.url)("node:assert");var Qt=__nccwpck_require__.n(Jt);const Xt=e(import.meta.url)("node:child_process");const Zt=e(import.meta.url)("node:async_hooks");const en=e(import.meta.url)("node:util");var tn=__nccwpck_require__(6143);var nn=__nccwpck_require__(2757);const rn=(0,en.promisify)(nn);function noop(){}function randomId(){return Math.random().toString(36).slice(2)}function util_isString(e){return typeof e==="string"}function quote(e){if(/^[a-z0-9/_.\-@:=]+$/i.test(e)||e===""){return e}return`$'`+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0")+`'`}function quotePowerShell(e){if(/^[a-z0-9/_.\-]+$/i.test(e)||e===""){return e}return`'`+e.replace(/'/g,"''")+`'`}function exitCodeInfo(e){return{2:"Misuse of shell builtins",126:"Invoked command cannot execute",127:"Command not found",128:"Invalid exit argument",129:"Hangup",130:"Interrupt",131:"Quit and dump core",132:"Illegal instruction",133:"Trace/breakpoint trap",134:"Process aborted",135:'Bus error: "access to undefined portion of memory object"',136:'Floating point exception: "erroneous arithmetic operation"',137:"Kill (terminate immediately)",138:"User-defined 1",139:"Segmentation violation",140:"User-defined 2",141:"Write to pipe with no one reading",142:"Signal raised by alarm",143:"Termination (request to terminate)",145:"Child process terminated, stopped (or continued*)",146:"Continue if stopped",147:"Stop executing temporarily",148:"Terminal stop signal",149:'Background process attempting to read from tty ("in")',150:'Background process attempting to write to tty ("out")',151:"Urgent data available on socket",152:"CPU time limit exceeded",153:"File size limit exceeded",154:'Signal raised by timer counting virtual time: "virtual timer expired"',155:"Profiling timer expired",157:"Pollable event",159:"Bad syscall"}[e||-1]}function errnoMessage(e){if(e===undefined){return"Unknown error"}return{0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"}[-e]||"Unknown error"}function util_parseDuration(e){if(typeof e=="number"){if(isNaN(e)||e<0)throw new Error(`Invalid duration: "${e}".`);return e}else if(/\d+s/.test(e)){return+e.slice(0,-1)*1e3}else if(/\d+ms/.test(e)){return+e.slice(0,-2)}throw new Error(`Unknown duration: "${e}".`)}function formatCmd(e){if(e==undefined)return x.grey("undefined");const t=[...e];let n="$ ";let r="";let s;let i=root;let o=0;while(i){s=t.shift()||"EOF";if(s=="\n"){n+=style(i,r)+"\n> ";r="";continue}const e=s=="EOF"?undefined:i();if(e!=i){n+=style(i,r);r=""}i=e==root?e():e;r+=s}function style(e,t){if(t=="")return"";if(sn.includes(t)){return x.cyanBright(t)}if(e==word&&o==0){o++;return x.greenBright(t)}if(e==syntax){o=0;return x.cyanBright(t)}if(e==dollar)return x.yellowBright(t);if(e?.name.startsWith("str"))return x.yellowBright(t);return t}function isSyntax(e){return"()[]{}<>;:+|&=".includes(e)}function root(){if(/\s/.test(s))return space;if(isSyntax(s))return syntax;if(/[$]/.test(s))return dollar;if(/["]/.test(s))return strDouble;if(/[']/.test(s))return strSingle;return word}function space(){if(/\s/.test(s))return space;return root}function word(){if(/[0-9a-z/_.]/i.test(s))return word;return root}function syntax(){if(isSyntax(s))return syntax;return root}function dollar(){if(/[']/.test(s))return str;return root}function str(){if(/[']/.test(s))return strEnd;if(/[\\]/.test(s))return strBackslash;return str}function strBackslash(){return strEscape}function strEscape(){return str}function strDouble(){if(/["]/.test(s))return strEnd;return strDouble}function strSingle(){if(/[']/.test(s))return strEnd;return strSingle}function strEnd(){return root}return n+"\n"}const sn=["if","then","else","elif","fi","case","esac","for","select","while","until","do","done","in"];const on=Symbol("processCwd");const an=new Zt.AsyncLocalStorage;const un=(0,Zt.createHook)({init:syncCwd,before:syncCwd,promiseResolve:syncCwd,after:syncCwd,destroy:syncCwd});un.enable();const cn={[on]:process.cwd(),verbose:true,env:process.env,shell:true,prefix:"",quote:()=>{throw new Error("No quote function is defined: https://ï.at/no-quote-func")},spawn:Xt.spawn,log:log};try{cn.shell=tn.sync("bash");cn.prefix="set -euo pipefail;";cn.quote=quote}catch(e){if(process.platform=="win32"){cn.shell=tn.sync("powershell.exe");cn.quote=quotePowerShell}}function getStore(){return an.getStore()||cn}const ln=new Proxy((function(e,...t){const n=(new Error).stack.split(/^\s*at\s/m)[2].trim();if(e.some((e=>e==undefined))){throw new Error(`Malformed command at ${n}`)}let r,s;const i=new ProcessPromise(((...e)=>[r,s]=e));let o=e[0],a=0;while(a<t.length){let n;if(Array.isArray(t[a])){n=t[a].map((e=>ln.quote(substitute(e)))).join(" ")}else{n=ln.quote(substitute(t[a]))}o+=n+e[++a]}i._bind(o,n,r,s,getStore());setImmediate((()=>i.isHalted||i.run()));return i}),{set(e,t,n){const r=t in Function.prototype?e:getStore();Reflect.set(r,t,n);return true},get(e,t){const n=t in Function.prototype?e:getStore();return Reflect.get(n,t)}});function substitute(e){if(e?.stdout){return e.stdout.replace(/\n$/,"")}return`${e}`}class ProcessPromise extends Promise{constructor(){super(...arguments);this._command="";this._from="";this._resolve=noop;this._reject=noop;this._snapshot=getStore();this._stdio=["inherit","pipe","pipe"];this._nothrow=false;this._quiet=false;this._resolved=false;this._halted=false;this._piped=false;this._prerun=noop;this._postrun=noop}_bind(e,t,n,r,s){this._command=e;this._from=t;this._resolve=n;this._reject=r;this._snapshot={...s}}run(){const e=this._snapshot;if(this.child)return this;this._prerun();e.log({kind:"cmd",cmd:this._command,verbose:e.verbose&&!this._quiet});this.child=e.spawn(e.prefix+this._command,{cwd:e.cwd??e[on],shell:typeof e.shell==="string"?e.shell:true,stdio:this._stdio,windowsHide:true,env:e.env});this.child.on("close",((e,s)=>{let i=`exit code: ${e}`;if(e!=0||s!=null){i=`${n||"\n"} at ${this._from}`;i+=`\n exit code: ${e}${exitCodeInfo(e)?" ("+exitCodeInfo(e)+")":""}`;if(s!=null){i+=`\n signal: ${s}`}}let o=new core_ProcessOutput(e,s,t,n,r,i);if(e===0||this._nothrow){this._resolve(o)}else{this._reject(o)}this._resolved=true}));this.child.on("error",(e=>{const s=`${e.message}\n`+` errno: ${e.errno} (${errnoMessage(e.errno)})\n`+` code: ${e.code}\n`+` at ${this._from}`;this._reject(new core_ProcessOutput(null,null,t,n,r,s));this._resolved=true}));let t="",n="",r="";let onStdout=n=>{e.log({kind:"stdout",data:n,verbose:e.verbose&&!this._quiet});t+=n;r+=n};let onStderr=t=>{e.log({kind:"stderr",data:t,verbose:e.verbose&&!this._quiet});n+=t;r+=t};if(!this._piped)this.child.stdout?.on("data",onStdout);this.child.stderr?.on("data",onStderr);this._postrun();if(this._timeout&&this._timeoutSignal){const e=setTimeout((()=>this.kill(this._timeoutSignal)),this._timeout);this.finally((()=>clearTimeout(e))).catch(noop)}return this}get stdin(){this.stdio("pipe");this.run();Jt(this.child);if(this.child.stdin==null)throw new Error("The stdin of subprocess is null.");return this.child.stdin}get stdout(){this.run();Jt(this.child);if(this.child.stdout==null)throw new Error("The stdout of subprocess is null.");return this.child.stdout}get stderr(){this.run();Jt(this.child);if(this.child.stderr==null)throw new Error("The stderr of subprocess is null.");return this.child.stderr}get exitCode(){return this.then((e=>e.exitCode),(e=>e.exitCode))}then(e,t){if(this.isHalted&&!this.child){throw new Error("The process is halted!")}return super.then(e,t)}catch(e){return super.catch(e)}pipe(e){if(typeof e=="string")throw new Error("The pipe() method does not take strings. Forgot $?");if(this._resolved){if(e instanceof ProcessPromise)e.stdin.end();throw new Error("The pipe() method shouldn't be called after promise is already resolved!")}this._piped=true;if(e instanceof ProcessPromise){e.stdio("pipe");e._prerun=this.run.bind(this);e._postrun=()=>{if(!e.child)throw new Error("Access to stdin of pipe destination without creation a subprocess.");this.stdout.pipe(e.stdin)};return e}else{this._postrun=()=>this.stdout.pipe(e);return this}}async kill(e="SIGTERM"){if(!this.child)throw new Error("Trying to kill a process without creating one.");if(!this.child.pid)throw new Error("The process pid is undefined.");let t=await rn(this.child.pid);for(const n of t){try{process.kill(+n.PID,e)}catch(e){}}try{process.kill(this.child.pid,e)}catch(e){}}stdio(e,t="pipe",n="pipe"){this._stdio=[e,t,n];return this}nothrow(){this._nothrow=true;return this}quiet(){this._quiet=true;return this}timeout(e,t="SIGTERM"){this._timeout=util_parseDuration(e);this._timeoutSignal=t;return this}halt(){this._halted=true;return this}get isHalted(){return this._halted}}class core_ProcessOutput extends Error{constructor(e,t,n,r,s,i){super(i);this._code=e;this._signal=t;this._stdout=n;this._stderr=r;this._combined=s}toString(){return this._combined}get stdout(){return this._stdout}get stderr(){return this._stderr}get exitCode(){return this._code}get signal(){return this._signal}[en.inspect.custom](){let stringify=(e,t)=>e.length===0?"''":t((0,en.inspect)(e));return`ProcessOutput {\n stdout: ${stringify(this.stdout,x.green)},\n stderr: ${stringify(this.stderr,x.red)},\n signal: ${(0,en.inspect)(this.signal)},\n exitCode: ${(this.exitCode===0?x.green:x.red)(this.exitCode)}${exitCodeInfo(this.exitCode)?x.grey(" ("+exitCodeInfo(this.exitCode)+")"):""}\n}`}}function core_within(e){return an.run({...getStore()},e)}function syncCwd(){if(ln[on]!=process.cwd())process.chdir(ln[on])}function cd(e){if(e instanceof core_ProcessOutput){e=e.toString().replace(/\n+$/,"")}ln.log({kind:"cd",dir:e});process.chdir(e);ln[on]=process.cwd()}function log(e){switch(e.kind){case"cmd":if(!e.verbose)return;process.stderr.write(formatCmd(e.cmd));break;case"stdout":case"stderr":if(!e.verbose)return;process.stderr.write(e.data);break;case"cd":if(!ln.verbose)return;process.stderr.write("$ "+x.greenBright("cd")+` ${e.dir}\n`);break;case"fetch":if(!ln.verbose)return;const t=e.init?" "+(0,en.inspect)(e.init):"";process.stderr.write("$ "+x.greenBright("fetch")+` ${e.url}${t}\n`);break;case"retry":if(!ln.verbose)return;process.stderr.write(e.error+"\n")}}const fn=e(import.meta.url)("node:fs");var hn=__nccwpck_require__(2578);var pn=__nccwpck_require__(3664);var dn=__nccwpck_require__(4780);var mn=__nccwpck_require__(4777);function slash(e){const t=/^\\\\\?\\/.test(e);const n=/[^\u0000-\u0080]+/.test(e);if(t||n){return e}return e.replace(/\\/g,"/")}const gn=e(import.meta.url)("node:url");const yn=e(import.meta.url)("node:stream");const toPath=e=>e instanceof URL?(0,gn.fileURLToPath)(e):e;class FilterStream extends yn.Transform{constructor(e){super({objectMode:true,transform(t,n,r){r(undefined,e(t)?t:undefined)}})}}const isNegativePattern=e=>e[0]==="!";const bn={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:true,dot:true};const vn="**/.gitignore";const applyBaseToPattern=(e,t)=>isNegativePattern(e)?"!"+zt.posix.join(t,e.slice(1)):zt.posix.join(t,e);const parseIgnoreFile=(e,t)=>{const n=slash(zt.relative(t,zt.dirname(e.filePath)));return e.content.split(/\r?\n/).filter((e=>e&&!e.startsWith("#"))).map((e=>applyBaseToPattern(e,n)))};const toRelativePath=(e,t)=>{t=slash(t);if(zt.isAbsolute(e)){if(slash(e).startsWith(t)){return zt.relative(t,e)}throw new Error(`Path ${e} is not in cwd ${t}`)}return e};const getIsIgnoredPredicate=(e,t)=>{const n=e.flatMap((e=>parseIgnoreFile(e,t)));const r=mn().add(n);return e=>{e=toPath(e);e=toRelativePath(e,t);return e?r.ignores(slash(e)):false}};const normalizeOptions=(e={})=>({cwd:toPath(e.cwd)||l.cwd(),suppressErrors:Boolean(e.suppressErrors),deep:typeof e.deep==="number"?e.deep:Number.POSITIVE_INFINITY});const isIgnoredByIgnoreFiles=async(e,t)=>{const{cwd:n,suppressErrors:r,deep:s}=normalizeOptions(t);const i=await pn(e,{cwd:n,suppressErrors:r,deep:s,...bn});const o=await Promise.all(i.map((async e=>({filePath:e,content:await fn.promises.readFile(e,"utf8")}))));return getIsIgnoredPredicate(o,n)};const isIgnoredByIgnoreFilesSync=(e,t)=>{const{cwd:n,suppressErrors:r,deep:s}=normalizeOptions(t);const i=pn.sync(e,{cwd:n,suppressErrors:r,deep:s,...bn});const o=i.map((e=>({filePath:e,content:fn.readFileSync(e,"utf8")})));return getIsIgnoredPredicate(o,n)};const isGitIgnored=e=>isIgnoredByIgnoreFiles(vn,e);const isGitIgnoredSync=e=>isIgnoredByIgnoreFilesSync(vn,e);const assertPatternsInput=e=>{if(e.some((e=>typeof e!=="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const toPatternsArray=e=>{e=[...new Set([e].flat())];assertPatternsInput(e);return e};const checkCwdOption=e=>{if(!e.cwd){return}let t;try{t=fn.statSync(e.cwd)}catch{return}if(!t.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const globby_normalizeOptions=(e={})=>{e={...e,ignore:e.ignore||[],expandDirectories:e.expandDirectories===undefined?true:e.expandDirectories,cwd:toPath(e.cwd)};checkCwdOption(e);return e};const normalizeArguments=e=>async(t,n)=>e(toPatternsArray(t),globby_normalizeOptions(n));const normalizeArgumentsSync=e=>(t,n)=>e(toPatternsArray(t),globby_normalizeOptions(n));const getIgnoreFilesPatterns=e=>{const{ignoreFiles:t,gitignore:n}=e;const r=t?toPatternsArray(t):[];if(n){r.push(vn)}return r};const getFilter=async e=>{const t=getIgnoreFilesPatterns(e);return createFilterFunction(t.length>0&&await isIgnoredByIgnoreFiles(t,e))};const getFilterSync=e=>{const t=getIgnoreFilesPatterns(e);return createFilterFunction(t.length>0&&isIgnoredByIgnoreFilesSync(t,e))};const createFilterFunction=e=>{const t=new Set;return n=>{const r=n.path||n;const s=zt.normalize(r);const i=t.has(s)||e&&e(r);t.add(s);return!i}};const unionFastGlobResults=(e,t)=>e.flat().filter((e=>t(e)));const unionFastGlobStreams=(e,t)=>hn(e).pipe(new FilterStream((e=>t(e))));const convertNegativePatterns=(e,t)=>{const n=[];while(e.length>0){const r=e.findIndex((e=>isNegativePattern(e)));if(r===-1){n.push({patterns:e,options:t});break}const s=e[r].slice(1);for(const e of n){e.options.ignore.push(s)}if(r!==0){n.push({patterns:e.slice(0,r),options:{...t,ignore:[...t.ignore,s]}})}e=e.slice(r+1)}return n};const getDirGlobOptions=(e,t)=>({...t?{cwd:t}:{},...Array.isArray(e)?{files:e}:e});const generateTasks=async(e,t)=>{const n=convertNegativePatterns(e,t);const{cwd:r,expandDirectories:s}=t;if(!s){return n}const i=getDirGlobOptions(s,r);const o=r?{cwd:r}:undefined;return Promise.all(n.map((async e=>{let{patterns:t,options:n}=e;[t,n.ignore]=await Promise.all([dn(t,i),dn(n.ignore,o)]);return{patterns:t,options:n}})))};const generateTasksSync=(e,t)=>{const n=convertNegativePatterns(e,t);const{cwd:r,expandDirectories:s}=t;if(!s){return n}const i=getDirGlobOptions(s,r);const o=r?{cwd:r}:undefined;return n.map((e=>{let{patterns:t,options:n}=e;t=dn.sync(t,i);n.ignore=dn.sync(n.ignore,o);return{patterns:t,options:n}}))};const wn=normalizeArguments((async(e,t)=>{const[n,r]=await Promise.all([generateTasks(e,t),getFilter(t)]);const s=await Promise.all(n.map((e=>pn(e.patterns,e.options))));return unionFastGlobResults(s,r)}));const Sn=normalizeArgumentsSync(((e,t)=>{const n=generateTasksSync(e,t);const r=getFilterSync(t);const s=n.map((e=>pn.sync(e.patterns,e.options)));return unionFastGlobResults(s,r)}));const An=normalizeArgumentsSync(((e,t)=>{const n=generateTasksSync(e,t);const r=getFilterSync(t);const s=n.map((e=>pn.stream(e.patterns,e.options)));return unionFastGlobStreams(s,r)}));const En=normalizeArgumentsSync(((e,t)=>e.some((e=>pn.isDynamicPattern(e,t)))));const Dn=normalizeArguments(generateTasks);const Cn=normalizeArgumentsSync(generateTasksSync);var _n=__nccwpck_require__(5871);const kn=e(import.meta.url)("node:readline");var Fn=__nccwpck_require__(4083);function utils_isWritable(e){try{fs.accessSync(e,fs.constants.W_OK);return true}catch(e){return false}}function utils_controlPath(e){let t="ssh-"+e;if("CI"in process.env&&utils_isWritable("/dev/shm")){return`/dev/shm/${t}`}return`${os.homedir()}/.ssh/${t}`}function utils_escapeshellarg(e){if(/^[a-z0-9/_.\-@:=]+$/i.test(e)||e===""){return e}return`$'`+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0")+`'`}function ssh(e,t={}){const $=function(n,...r){const s=(new Error).stack.split(/^\s*at\s/m)[2].trim();if(n.some((e=>e==undefined))){throw new Error(`Malformed command at ${s}`)}let i=n[0],o=0;while(o<r.length){let e;if(Array.isArray(r[o])){e=r[o].map((e=>escapeshellarg(e))).join(" ")}else{e=escapeshellarg(r[o])}i+=e+n[++o]}let a,u;const c=new Promise(((...e)=>[a,u]=e));const l="id$"+Math.random().toString(36).slice(2);const f=[e,"-o","ControlMaster=auto","-o","ControlPath="+controlPath(e),"-o","ControlPersist=5m",...t.port?["-p",`${t.port}`]:[],...t.forwardAgent?["-A"]:[],...(t.options||[]).flatMap((e=>["-o",e])),`: ${l}; `+(t.shell||"bash -ls")];if(process.env.WEBPOD_DEBUG){console.log("ssh",f.join(" "))}const h=spawn("ssh",f,{stdio:["pipe","pipe","pipe"],windowsHide:true});let p="",d="",g="";const onStdout=e=>{p+=e;g+=e};const onStderr=e=>{d+=e;g+=e};h.stdout.on("data",onStdout);h.stderr.on("data",onStderr);h.on("close",(e=>{if(e===0){a(new Result(s,e,p,d,g))}else{u(new Result(s,e,p,d,g))}}));h.on("error",(e=>{u(new Result(s,null,p,d,g,e))}));h.stdin.write(i);h.stdin.end();return c};$.exit=()=>spawnSync("ssh",[e,"-O","exit","-o",`ControlPath=${controlPath(e)}`]);return $}class Result extends String{constructor(e,t,n,r,s,i){super(s);this.source=e;this.stdout=n;this.stderr=r;this.exitCode=t;this.error=i}}let xn=_n(process.argv.slice(2));function updateArgv(e){xn=minimist(e);global.argv=xn}const On=Object.assign((function globby(e,t){return wn(e,t)}),t);const Pn=null&&On;function sleep(e){return new Promise((t=>{setTimeout(t,parseDuration(e))}))}async function fetch(e,t){$.log({kind:"fetch",url:e,init:t});return nodeFetch(e,t)}function echo(e,...t){let n;const r=e.length-1;if(Array.isArray(e)&&e.every(isString)&&r===t.length){n=t.map(((t,n)=>e[n]+stringify(t))).join("")+e[r]}else{n=[e,...t].map(stringify).join(" ")}console.log(n)}function stringify(e){if(e instanceof ProcessOutput){return e.toString().replace(/\n$/,"")}return`${e}`}async function question(e,t){let n=undefined;if(t&&Array.isArray(t.choices)){n=function completer(e){const n=t.choices;const r=n.filter((t=>t.startsWith(e)));return[r.length?r:n,e]}}const r=createInterface({input:process.stdin,output:process.stdout,terminal:true,completer:n});return new Promise((t=>r.question(e??"",(e=>{r.close();t(e)}))))}async function stdin(){let e="";process.stdin.setEncoding("utf8");for await(const t of process.stdin){e+=t}return e}async function retry(e,t,n){const r=e;let s;let i=0;let o;if(typeof t=="function"){s=t}else{if(typeof t=="object"){o=t}else{i=parseDuration(t)}assert(n);s=n}let a;let u=0;while(e-- >0){u++;try{return await s()}catch(t){let n=0;if(i>0)n=i;if(o)n=o.next().value;$.log({kind:"retry",error:chalk.bgRed.white(" FAIL ")+` Attempt: ${u}${r==Infinity?"":`/${r}`}`+(n>0?`; next in ${n}ms`:"")});a=t;if(e==0)break;if(n)await sleep(n)}}throw a}function*expBackoff(e="60s",t="100ms"){const n=parseDuration(e);const r=parseDuration(t);let s=1;while(true){const e=Math.floor(Math.random()*r);yield Math.min(2**s++,n)+e}}async function spinner(e,t){if(typeof e=="function"){t=e;e=""}let n=0;const spin=()=>process.stderr.write(` ${"⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏"[n++%10]} ${e}\r`);return within((async()=>{$.verbose=false;const e=setInterval(spin,100);let n;try{n=await t()}finally{clearInterval(e);process.stderr.write(" ".repeat(process.stdout.columns-1)+"\r")}return n}))}function nothrow(e){return e.nothrow()}function quiet(e){return e.quiet()}let Tn=false;async function runAsync(e,t,n){ln.verbose=n?.verbose??Tn;if(n?.cwd){cd(n.cwd)}return await(ln`${e} ${t}`)}async function setDefaultVerbose(e){Tn=e}let Bn=null;const Nn=["@expo/fingerprint","create-expo","eslint-config-universe","expo-barcode-scanner","expo-dev-client-components","expo-doctor","expo-env-info","expo-face-detector","expo-module-scripts","expo-module-template","expo-module-template-local","expo-test-runner","install-expo-modules","pod-install","uri-scheme"];const Rn=["@react-native/assets-registry","@react-native/dev-middleware","@react-native/babel-preset","react-native"];async function registerPackageLinkingAsync(e,t){await runAsync("bun",["link"],{cwd:t.path})}async function addLinkablePackagesToAppAsync(e,t){const n=await V().readAsync(Yt().join(e,"package.json"));const r=n.dependencies??{};for(const e of t){r[e.name]=`link:${e.name}`}await V().mergeAsync(Yt().join(e,"package.json"),{dependencies:r})}async function reinstallPackagesAsync(e){await Promise.all([J().rm(Yt().join(e,"node_modules"),{recursive:true,force:true}),J().rm(Yt().join(e,"bun.lockb"),{force:true}),J().rm(Yt().join(e,"yarn.lock"),{force:true})]);await runAsync("bun",["install"],{cwd:e})}async function getExpoPackagesAsync(e){if(Bn!=null){return Bn}const t=await Kt("**/package.json",{cwd:Yt().join(e,"packages"),ignore:["**/example/**","**/node_modules/**","**/__tests__/**","**/__mocks__/**","**/__fixtures__/**","**/e2e/**"]});const n=await Promise.all(t.filter((e=>{for(const t of Nn){if(e.startsWith(t)){return false}}return true})).flatMap((async t=>{const n=Yt().join(e,"packages",Yt().dirname(t));return await createPackageAsync(n)})));Bn=n.sort(((e,t)=>e.name.localeCompare(t.name)));return Bn}async function getReactNativeTransitivePackagesAsync(e){const t=await Promise.all(Rn.map((t=>{const n=Yt().join(e,"node_modules",t);return createPackageAsync(n)})));return t}async function createPackageAsync(e){const t=Yt().join(e,"package.json");const n=Yt().dirname(t);const r=await V().readAsync(t);const s=r.name;const i=r.version;return{name:s,path:n,version:i}}async function setupExpoRepoAsync(e,t){if(!await z().pathExists(e)){console.log(`Cloning expo repository to ${e}`);console.time("Cloned expo repository");await runAsync("git",["clone","--depth=1","https://github.com/expo/expo.git",U().basename(e)],{cwd:U().dirname(e)});console.timeEnd("Cloned expo repository")}else{console.log(`Updating expo repository at ${e}`)}console.log(`Running \`yarn install\` in ${e}`);console.time("Installed dependencies in expo repository");await setupDependenciesAsync(e,t);await runAsync("yarn",["install"],{cwd:e});console.timeEnd("Installed dependencies in expo repository")}async function packExpoBareTemplateTarballAsync(e,t){const{stdout:n}=await runAsync("npm",["pack","--json","--pack-destination",t],{cwd:U().join(e,"templates","expo-template-bare-minimum")});const r=JSON.parse(n);const s=r[0].filename;return U().join(t,s)}async function setupDependenciesAsync(e,t){const n=U().join(e,"package.json");const r=await V().readAsync(n);const s=r.resolutions??{};for(const e of Rn){s[e]=`${t}`}await V().mergeAsync(n,{resolutions:s})}async function getNpmVersionAsync(e,t){const{stdout:n}=await runAsync("npm",["view",`${e}@${t}`,"version"]);return n.trim()}async function createExpoApp(e,t,n){const r=n.template??"blank-typescript";if(await z().pathExists(e)){throw new Error(`Project already exists at ${e}`)}await runAsync("bunx",["create-expo-app",e,"--no-install",`--template`,r]);await Project_setupDependenciesAsync(e);await setupEntryAsync(e);await setupMetroConfigAsync(e,t);await setupAppJsonAsync(e,{appId:n.appId,newArchEnabled:n.newArchEnabled})}async function Project_setupDependenciesAsync(e){await V().mergeAsync(U().join(e,"package.json"),{dependencies:{}})}async function setupEntryAsync(e){await z().writeFile(U().join(e,"index.js"),`import { registerRootComponent } from 'expo';\n\nimport App from './App';\n\n// registerRootComponent calls AppRegistry.registerComponent('main', () => App);\n// It also ensures that whether you load the app in Expo Go or in a native build,\n// the environment is set up appropriately\nregisterRootComponent(App);\n`);await V().deleteKeyAsync(U().join(e,"package.json"),"main")}async function setupMetroConfigAsync(e,t){await z().writeFile(U().join(e,"metro.config.js"),`const { getDefaultConfig } = require('expo/metro-config');\n\n/** @type {import('expo/metro-config').MetroConfig} */\nconst config = getDefaultConfig(__dirname);\n\nconfig.watchFolders = [\n ...config.watchFolders ?? [],\n __dirname,\n '${t}',\n];\n\nconfig.resolver.nodeModulesPaths = [\n ...config.resolver.nodeModulesPaths ?? [],\n '${t}/node_modules',\n];\n\nmodule.exports = config;`)}async function prebuildAppAsync(e,t){await runAsync("npx",["expo","prebuild","--no-install","--template",t],{cwd:e});console.log(`Installing CocoaPods dependencies`);console.time("Installed CocoaPods dependencies");await runAsync("pod",["install"],{cwd:U().join(e,"ios")});console.timeEnd("Installed CocoaPods dependencies")}async function setupAppJsonAsync(e,{appId:t,newArchEnabled:n}){const r=U().join(e,"app.json");const s=await V().readAsync(r);const i=s.expo;Qt()(isJSONObject(i));const o=i.android??{};const a=i.ios??{};Qt()(isJSONObject(o));Qt()(isJSONObject(a));o.package=t;a.bundleIdentifier=t;const u=i.plugins??[];Qt()(isJSONArray(u));u.push(["expo-build-properties",{android:{minSdkVersion:23,newArchEnabled:n},ios:{newArchEnabled:n}}]);i.runtimeVersion={policy:"appVersion"};i.android=o;i.ios=a;i.plugins=u;await V().writeAsync(r,s)}function isJSONObject(e){return e!=null&&typeof e==="object"&&!Array.isArray(e)}function isJSONArray(e){return e!=null&&Array.isArray(e)}async function checkRequiredToolsAsync(e){const t=await Promise.all(e.map((e=>tn(e,{nothrow:true}))));for(const[n,r]of t.entries()){if(!r){throw new Error(`Missing required tool: ${e[n]}`)}}}const Ln=__nccwpck_require__(2598);const Mn=new I(Ln.name).version(Ln.version).description("Create an app for react-native nightlies testing.").argument("[path]","The output path for the app.",".").option("--name","The name of the app to create.","test-nightlies").option("--expo-repo <path>",'The path to the expo repository. (default: Cloning to the "expo" directory in the output app)').option("-v, --verbose","Verbose output.").option("--app-id <name>","The Android applicationId and iOS bundleIdentifier.","dev.expo.testnightlies").option("--prebuild","To run prebuild steps.").option("--enable-new-architecture","Enable the New Architecture mode.").parse(process.argv);async function src_runAsync(e){const t=Mn.opts();setDefaultVerbose(!!t.verbose);await checkRequiredToolsAsync(["bun","git","npm","pod","yarn"]);const n=t.name;const r=U().join(U().resolve(Mn.args[0]||"."),n);const s={appId:t.appId,newArchEnabled:!!t.enableNewArchitecture};const i=t.expoRepo??U().join(r,"expo");const o=await getNpmVersionAsync("react-native","nightly");console.log(x.cyan(`Setting up app at ${x.bold(r)} with ${x.bold("react-native@"+o)}`));await createExpoApp(r,i,s);await setupExpoRepoAsync(i,o);const a=[...await getExpoPackagesAsync(i),...await getReactNativeTransitivePackagesAsync(i)];console.log(x.cyan(`Registering bun links`));for(const e of a){console.log(` ${e.name}`);await registerPackageLinkingAsync(i,e)}await addLinkablePackagesToAppAsync(r,a);console.log(x.cyan(`Reinstalling packages`));await reinstallPackagesAsync(r);if(t.prebuild){console.log(x.cyan(`Running prebuild steps`));const e=await packExpoBareTemplateTarballAsync(i,r);await prebuildAppAsync(r,e)}}(async()=>{Mn.parse(process.argv);try{await src_runAsync(Ln.name)}catch(e){console.error("Uncaught Error",e);process.exit(1)}})()})();
|