@turbo/workspaces 0.0.2 → 0.0.3

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/dist/cli.js CHANGED
@@ -1,51 +1,51 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var Rn=Object.create;var ar=Object.defineProperty;var Pn=Object.getOwnPropertyDescriptor;var Tn=Object.getOwnPropertyNames;var In=Object.getPrototypeOf,Ln=Object.prototype.hasOwnProperty;var Nn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Tn(e))!Ln.call(t,i)&&i!==r&&ar(t,i,{get:()=>e[i],enumerable:!(n=Pn(e,i))||n.enumerable});return t};var st=(t,e,r)=>(r=t!=null?Rn(In(t)):{},Nn(e||!t||!t.__esModule?ar(r,"default",{value:t,enumerable:!0}):r,t));var or=st(require("chalk")),On=require("commander");var Er=st(require("inquirer")),fe=st(require("path"));var bt=st(require("chalk")),ur=st(require("gradient-string")),qt=2,Kt=class{constructor({interactive:e,dry:r}={}){this.interactive=e!=null?e:!0,this.dry=r!=null?r:!1,this.step=1}logger(...e){this.interactive&&console.log(...e)}indented(e,...r){this.logger(" ".repeat(qt*e),...r)}header(e){this.blankLine(),this.logger(bt.default.bold(e))}installerFrames(){let e=`${" ".repeat(qt)} - ${this.dry?bt.default.yellow("SKIPPED | "):bt.default.green("OK | ")}`;return[`${e} `,`${e}> `,`${e}>> `,`${e}>>>`]}gradient(e){return(0,ur.default)("#0099F7","#F11712")(e.toString())}hero(){this.logger(bt.default.bold(this.gradient(`
2
+ "use strict";var Tn=Object.create;var sr=Object.defineProperty;var In=Object.getOwnPropertyDescriptor;var Ln=Object.getOwnPropertyNames;var Mn=Object.getPrototypeOf,jn=Object.prototype.hasOwnProperty;var Nn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ln(e))!jn.call(t,i)&&i!==r&&sr(t,i,{get:()=>e[i],enumerable:!(n=In(e,i))||n.enumerable});return t};var st=(t,e,r)=>(r=t!=null?Tn(Mn(t)):{},Nn(e||!t||!t.__esModule?sr(r,"default",{value:t,enumerable:!0}):r,t));var ur=st(require("chalk")),Pn=require("commander");var Cr=st(require("inquirer")),he=st(require("path"));var bt=st(require("chalk")),cr=st(require("gradient-string")),Jt=2,Tt=class{constructor({interactive:e,dry:r}={}){this.interactive=e!=null?e:!0,this.dry=r!=null?r:!1,this.step=1}logger(...e){this.interactive&&console.log(...e)}indented(e,...r){this.logger(" ".repeat(Jt*e),...r)}header(e){this.blankLine(),this.logger(bt.default.bold(e))}installerFrames(){let e=`${" ".repeat(Jt)} - ${this.dry?bt.default.yellow("SKIPPED | "):bt.default.green("OK | ")}`;return[`${e} `,`${e}> `,`${e}>> `,`${e}>>>`]}gradient(e){return(0,cr.default)("#0099F7","#F11712")(e.toString())}hero(){this.logger(bt.default.bold(this.gradient(`
3
3
  >>> TURBOREPO
4
- `)))}info(...e){this.logger(...e)}mainStep(e){this.blankLine(),this.logger(`${this.step}. ${bt.default.underline(e)}`),this.step+=1}subStep(...e){this.logger(" ".repeat(qt),"-",this.dry?bt.default.yellow("SKIPPED |"):bt.default.green("OK |"),...e)}subStepFailure(...e){this.logger(" ".repeat(qt),"-",bt.default.red("ERROR |"),...e)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...e){this.logger(" ".repeat(qt*3),"-",this.dry?bt.default.yellow("SKIPPED |"):bt.default.green("OK |"),...e)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...e){this.logger(" ".repeat(qt*3),"-",this.dry?bt.default.yellow("SKIPPED |"):bt.default.green("OK |"),...e)}blankLine(){this.logger()}error(...e){console.error(...e)}};var Bt=st(require("chalk"));var re=st(require("fs-extra")),Pt=st(require("path")),sr=st(require("fast-glob")),cr=st(require("js-yaml"));var ct=class extends Error{constructor(e){super(e),this.name="ConvertError",Error.captureStackTrace(this,ct)}};var jn=/^(?!_)(.+)@(.+)$/;function At({workspaceRoot:t}){let e=Pt.default.join(t,"package.json");try{return re.default.readJsonSync(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new ct(`no "package.json" found at ${t}`);if(r.code==="EJSONPARSE")throw new ct(`failed to parse "package.json" at ${t}`)}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Vt({workspaceRoot:t}){let{packageManager:e}=At({workspaceRoot:t});if(e)try{let r=e.match(jn);if(r){let[n,i]=r;return i}}catch{}}function Mt({workspaceRoot:t}){let e=At({workspaceRoot:t});return e.name?e.name:Pt.default.basename(t)}function Be({workspaceRoot:t}){let e=Pt.default.join(t,"pnpm-workspace.yaml");if(re.default.existsSync(e))try{let r=cr.default.load(re.default.readFileSync(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new ct(`failed to parse ${e}`)}return[]}function Jt({root:t,lockFile:e,workspaceConfig:r}){let n=s=>Pt.default.join(t,s),i={root:t,lockfile:n(e),packageJson:n("package.json"),nodeModules:n("node_modules")};return r&&(i.workspaceConfig=n(r)),i}function Yt({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let n=`${r}/package.json`;return sr.default.sync(n,{onlyFiles:!0,absolute:!0,cwd:t})}).map(r=>{let n=Pt.default.dirname(r);return{name:Mt({workspaceRoot:n}),paths:{root:n,packageJson:r,nodeModules:Pt.default.join(n,"node_modules")}}}):[]}function Tt({directory:t}){let e=Pt.default.resolve(process.cwd(),t);return{exists:re.default.existsSync(e),absolute:e}}var _t=st(require("fs-extra")),Qt=st(require("path")),dr=st(require("execa"));var lr=st(require("fs-extra")),pr=st(require("chalk")),fr=st(require("path"));function Mn({dependencyList:t,project:e,to:r}){let n=[];return e.workspaceData.workspaces.forEach(i=>{let{name:s}=i;if(t[s]){let u=t[s],o=u.startsWith("workspace:")?u.slice(10):u;t[s]=r.name==="pnpm"?`workspace:${o}`:o,n.push(s)}}),{dependencyList:t,updated:n}}function kt({project:t,workspace:e,to:r,logger:n,options:i}){if(["yarn","npm"].includes(r.name)&&["yarn","npm"].includes(t.packageManager))return;let s=At({workspaceRoot:e.paths.root}),u={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},o=["dependencies","devDependencies","peerDependencies","optionalDependencies"];o.forEach(l=>{let f=s[l];if(f){let{updated:d,dependencyList:m}=Mn({dependencyList:f,project:t,to:r});s[l]=m,u[l]=d}});let a=l=>{let f=u[l].length;if(f>0)return`${pr.default.green(f.toString())} ${l}`},c=o.map(a).filter(Boolean),p=`./${fr.default.relative(t.paths.root,e.paths.packageJson)}`;if(c.length>=1){let l="updating";c.forEach((f,d)=>{c.length===1?l+=` ${f} in ${p}`:d===c.length-1?l+=`and ${f} in ${p}`:l+=` ${f}, `}),n.workspaceStep(l)}else n.workspaceStep(`no workspace dependencies found in ${p}`);i!=null&&i.dry||lr.default.writeJSONSync(e.paths.packageJson,s,{spaces:2})}async function hr(t){let e=Qt.default.join(t.workspaceRoot,"pnpm-lock.yaml"),r=Qt.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),n=Vt({workspaceRoot:t.workspaceRoot});return _t.default.existsSync(e)||_t.default.existsSync(r)||n==="pnpm"}async function $n(t){if(!await hr(t))throw new ct("Not a pnpm project");return{name:Mt(t),packageManager:"pnpm",paths:Jt({root:t.workspaceRoot,lockFile:"pnpm-lock.yaml",workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:Be(t),workspaces:Yt({workspaceGlobs:Be(t),...t})}}}async function Hn(t){let{project:e,to:r,logger:n,options:i}=t,s=e.workspaceData.globs.length>0;n.mainStep(`Creating ${e.packageManager}${s?"workspaces":""}`);let u=At({workspaceRoot:e.paths.root});n.rootHeader(),u.packageManager=`${r.name}@${r.version}`,n.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),i!=null&&i.dry||(_t.default.writeJSONSync(e.paths.packageJson,u,{spaces:2}),s&&(n.rootStep('adding "pnpm-workspace.yaml"'),_t.default.writeFileSync(Qt.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
4
+ `)))}info(...e){this.logger(...e)}mainStep(e){this.blankLine(),this.logger(`${this.step}. ${bt.default.underline(e)}`),this.step+=1}subStep(...e){this.logger(" ".repeat(Jt),"-",this.dry?bt.default.yellow("SKIPPED |"):bt.default.green("OK |"),...e)}subStepFailure(...e){this.logger(" ".repeat(Jt),"-",bt.default.red("ERROR |"),...e)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...e){this.logger(" ".repeat(Jt*3),"-",this.dry?bt.default.yellow("SKIPPED |"):bt.default.green("OK |"),...e)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...e){this.logger(" ".repeat(Jt*3),"-",this.dry?bt.default.yellow("SKIPPED |"):bt.default.green("OK |"),...e)}blankLine(){this.logger()}error(...e){console.error(...e)}};var Ot=st(require("chalk"));var ne=st(require("fs-extra")),It=st(require("path")),lr=st(require("fast-glob")),pr=st(require("js-yaml"));var ct=class extends Error{constructor(r,n){var i;super(r);this.name="ConvertError",this.type=(i=n==null?void 0:n.type)!=null?i:"unknown",Error.captureStackTrace(this,ct)}};var $n=/^(?!_)(.+)@(.+)$/;function At({workspaceRoot:t}){let e=It.default.join(t,"package.json");try{return ne.default.readJsonSync(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new ct(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new ct(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Vt({workspaceRoot:t}){let{packageManager:e}=At({workspaceRoot:t});if(e)try{let r=e.match($n);if(r){let[n,i]=r;return i}}catch{}}function Wt({workspaceRoot:t}){let e=At({workspaceRoot:t}),r=It.default.basename(t),{name:n=r,description:i}=e;return{name:n,description:i}}function Re({workspaceRoot:t}){let e=It.default.join(t,"pnpm-workspace.yaml");if(ne.default.existsSync(e))try{let r=pr.default.load(ne.default.readFileSync(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new ct(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function Yt({root:t,lockFile:e,workspaceConfig:r}){let n=s=>It.default.join(t,s),i={root:t,lockfile:n(e),packageJson:n("package.json"),nodeModules:n("node_modules")};return r&&(i.workspaceConfig=n(r)),i}function Qt({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let n=`${r}/package.json`;return lr.default.sync(n,{onlyFiles:!0,absolute:!0,cwd:t})}).map(r=>{let n=It.default.dirname(r),{name:i,description:s}=Wt({workspaceRoot:n});return{name:i,description:s,paths:{root:n,packageJson:r,nodeModules:It.default.join(n,"node_modules")}}}):[]}function Lt({directory:t}){let e=It.default.resolve(process.cwd(),t);return{exists:ne.default.existsSync(e),absolute:e}}function Bt({packageManager:t,action:e,project:r}){let n=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${n?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}var _t=st(require("fs-extra")),Xt=st(require("path")),mr=st(require("execa"));var fr=st(require("fs-extra")),dr=st(require("chalk")),hr=st(require("path"));function Hn({dependencyList:t,project:e,to:r}){let n=[];return e.workspaceData.workspaces.forEach(i=>{let{name:s}=i;if(t[s]){let u=t[s],o=u.startsWith("workspace:")?u.slice(10):u;t[s]=r.name==="pnpm"?`workspace:${o}`:o,n.push(s)}}),{dependencyList:t,updated:n}}function kt({project:t,workspace:e,to:r,logger:n,options:i}){if(["yarn","npm"].includes(r.name)&&["yarn","npm"].includes(t.packageManager))return;let s=At({workspaceRoot:e.paths.root}),u={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},o=["dependencies","devDependencies","peerDependencies","optionalDependencies"];o.forEach(l=>{let f=s[l];if(f){let{updated:d,dependencyList:m}=Hn({dependencyList:f,project:t,to:r});s[l]=m,u[l]=d}});let a=l=>{let f=u[l].length;if(f>0)return`${dr.default.green(f.toString())} ${l}`},c=o.map(a).filter(Boolean),p=`./${hr.default.relative(t.paths.root,e.paths.packageJson)}`;if(c.length>=1){let l="updating";c.forEach((f,d)=>{c.length===1?l+=` ${f} in ${p}`:d===c.length-1?l+=`and ${f} in ${p}`:l+=` ${f}, `}),n.workspaceStep(l)}else n.workspaceStep(`no workspace dependencies found in ${p}`);i!=null&&i.dry||fr.default.writeJSONSync(e.paths.packageJson,s,{spaces:2})}async function gr(t){let e=Xt.default.join(t.workspaceRoot,"pnpm-lock.yaml"),r=Xt.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),n=Vt({workspaceRoot:t.workspaceRoot});return _t.default.existsSync(e)||_t.default.existsSync(r)||n==="pnpm"}async function Gn(t){if(!await gr(t))throw new ct("Not a pnpm project",{type:"package_manager-unexpected"});let{name:r,description:n}=Wt(t);return{name:r,description:n,packageManager:"pnpm",paths:Yt({root:t.workspaceRoot,lockFile:"pnpm-lock.yaml",workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:Re(t),workspaces:Qt({workspaceGlobs:Re(t),...t})}}}async function Wn(t){let{project:e,to:r,logger:n,options:i}=t,s=e.workspaceData.globs.length>0;n.mainStep(Bt({action:"create",packageManager:"pnpm",project:e}));let u=At({workspaceRoot:e.paths.root});n.rootHeader(),u.packageManager=`${r.name}@${r.version}`,n.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),i!=null&&i.dry||(_t.default.writeJSONSync(e.paths.packageJson,u,{spaces:2}),s&&(n.rootStep('adding "pnpm-workspace.yaml"'),_t.default.writeFileSync(Xt.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
5
5
  ${e.workspaceData.globs.map(o=>` - "${o}"`).join(`
6
- `)}`))),s&&(kt({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:n,options:i}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(o=>kt({workspace:o,project:e,to:r,logger:n,options:i})))}async function Gn(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(`Removing ${e.packageManager}${i?"workspaces":""}`);let s=At({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&i&&(r.subStep('removing "pnpm-workspace.yaml"'),n!=null&&n.dry||_t.default.rmSync(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(n!=null&&n.dry)){_t.default.writeJSONSync(e.paths.packageJson,s,{spaces:2});let u=[e.paths.nodeModules,...e.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(u.map(o=>_t.default.rm(o,{recursive:!0,force:!0})))}catch{throw new ct("Failed to remove node_modules")}}}async function Wn(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${Qt.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||_t.default.rmSync(e.paths.lockfile,{force:!0})}async function Un(t){let{project:e,logger:r,options:n}=t;if(e.packageManager!=="pnpm"&&(r.subStep(`converting ${Qt.default.relative(e.paths.root,e.paths.lockfile)} to pnpm-lock.yaml`),!(n!=null&&n.dry)&&_t.default.existsSync(e.paths.lockfile)))try{await(0,dr.default)("pnpm",["import"],{stdio:"ignore",cwd:e.paths.root})}finally{_t.default.rmSync(e.paths.lockfile,{force:!0})}}var qn={detect:hr,read:$n,create:Hn,remove:Gn,clean:Wn,convertLock:Un},mr=qn;var $t=st(require("fs-extra")),Oe=st(require("path"));async function gr(t){let e=Oe.default.join(t.workspaceRoot,"package-lock.json"),r=Vt({workspaceRoot:t.workspaceRoot});return $t.default.existsSync(e)||r==="npm"}async function Kn(t){if(!await gr(t))throw new ct("Not an npm project");let r=At(t);return{name:Mt(t),packageManager:"npm",paths:Jt({root:t.workspaceRoot,lockFile:"package-lock.json"}),workspaceData:{globs:r.workspaces||[],workspaces:Yt({workspaceGlobs:r.workspaces,...t})}}}async function Vn(t){let{project:e,options:r,to:n,logger:i}=t,s=e.workspaceData.globs.length>0;i.mainStep(`Creating ${e.packageManager}${s?"workspaces":""}`);let u=At({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),u.packageManager=`${n.name}@${n.version}`,s&&(i.rootStep(`adding "workspaces" field to ${e.name} root "package.json"`),u.workspaces=e.workspaceData.globs,kt({workspace:{name:"root",paths:e.paths},project:e,to:n,logger:i,options:r}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(o=>kt({workspace:o,project:e,to:n,logger:i,options:r}))),r!=null&&r.dry||$t.default.writeJSONSync(e.paths.packageJson,u,{spaces:2})}async function Jn(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(`Creating ${e.packageManager}${i?"workspaces":""}`);let s=At({workspaceRoot:e.paths.root});if(i&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(n!=null&&n.dry)){$t.default.writeJSONSync(e.paths.packageJson,s,{spaces:2});let u=[e.paths.nodeModules,...e.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(u.map(o=>$t.default.rm(o,{recursive:!0,force:!0})))}catch{throw new ct("Failed to remove node_modules")}}}async function Yn(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${Oe.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||$t.default.rmSync(e.paths.lockfile,{force:!0})}async function Qn(t){let{project:e,options:r}=t;e.packageManager!=="npm"&&(r!=null&&r.dry||$t.default.rmSync(e.paths.lockfile,{force:!0}))}var Xn={detect:gr,read:Kn,create:Vn,remove:Jn,clean:Yn,convertLock:Qn},yr=Xn;var Ht=st(require("fs-extra")),ne=st(require("path"));async function Dr(t){let e=ne.default.join(t.workspaceRoot,"yarn.lock"),r=Vt({workspaceRoot:t.workspaceRoot});return Ht.default.existsSync(e)||r==="yarn"}async function Zn(t){if(!await Dr(t))throw new ct("Not a yarn project");let r=At(t);return{name:Mt(t),packageManager:"yarn",paths:Jt({root:t.workspaceRoot,lockFile:"yarn.lock"}),workspaceData:{globs:r.workspaces||[],workspaces:Yt({workspaceGlobs:r.workspaces,...t})}}}async function zn(t){let{project:e,to:r,logger:n,options:i}=t,s=e.workspaceData.globs.length>0;n.mainStep(`Creating ${e.packageManager}${s?"workspaces":""}`);let u=At({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${ne.default.relative(e.paths.root,e.paths.packageJson)}`),u.packageManager=`${r.name}@${r.version}`,s&&(n.rootStep(`adding "workspaces" field to ${ne.default.relative(e.paths.root,e.paths.packageJson)}`),u.workspaces=e.workspaceData.globs,kt({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:n,options:i}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(o=>kt({workspace:o,project:e,to:r,logger:n,options:i}))),i!=null&&i.dry||Ht.default.writeJSONSync(e.paths.packageJson,u,{spaces:2})}async function ti(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(`Removing ${e.packageManager}${i?"workspaces":""}`);let s=At({workspaceRoot:e.paths.root});if(i&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(n!=null&&n.dry)){Ht.default.writeJSONSync(e.paths.packageJson,s,{spaces:2});let u=[e.paths.nodeModules,...e.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(u.map(o=>Ht.default.rm(o,{recursive:!0,force:!0})))}catch{throw new ct("Failed to remove node_modules")}}}async function ei(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${ne.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||Ht.default.rmSync(e.paths.lockfile,{force:!0})}async function ri(t){let{project:e,options:r}=t;e.packageManager!=="yarn"&&(r!=null&&r.dry||Ht.default.rmSync(e.paths.lockfile,{force:!0}))}var ni={detect:Dr,read:Zn,create:zn,remove:ti,clean:ei,convertLock:ri},vr=ni;var ii={pnpm:mr,yarn:vr,npm:yr},Gt=ii;async function ie({root:t}){let{exists:e,absolute:r}=Tt({directory:t});if(!e)throw new ct(`Could not find directory at ${r}. Ensure the directory exists.`);for(let{detect:n,read:i}of Object.values(Gt))if(await n({workspaceRoot:r}))return i({workspaceRoot:r});throw new ct("Could not determine workspace manager. Add `packageManager` to `package.json` or ensure a lockfile is present.")}async function de(t){let e=new Kt;e.hero();let r=await Er.default.prompt({type:"input",name:"directoryInput",message:"Where is the root of the repo?",when:!t,default:".",validate:f=>{let{exists:d,absolute:m}=Tt({directory:f});return d?!0:`Directory ${Bt.default.dim(`(${m})`)} does not exist`},filter:f=>f.trim()}),{directoryInput:n=t}=r,{exists:i,absolute:s}=Tt({directory:n});if(!i)return console.error(`Directory ${Bt.default.dim(`(${s})`)} does not exist`),process.exit(1);let u=await ie({root:s}),o=u.workspaceData.workspaces.length,a=o>0,c={};u.workspaceData.workspaces.forEach(f=>{let m=fe.default.relative(s,f.paths.root).split(fe.default.sep)[0];c[m]||(c[m]=[]),c[m].push(f)});let p=f=>`${f.name} (${Bt.default.italic(`./${fe.default.relative(s,f.paths.root)}`)})`,l=({number:f,directory:d,workspaces:m})=>{e.indented(2,`${f}. ${Bt.default.bold(d)}`),m.forEach((D,v)=>{e.indented(3,`${v+1}. ${p(D)}`)})};e.header("Repository Summary"),e.indented(1,`${Bt.default.underline(u.name)}:`),e.indented(1,`Package Manager: ${Bt.default.bold(Bt.default.italic(u.packageManager))}`),a&&(e.indented(1,`Workspaces (${Bt.default.bold(o.toString())}):`),Object.keys(c).forEach((f,d)=>{l({number:d+1,directory:f,workspaces:c[f]})}),e.blankLine())}var nr=st(require("inquirer"));var ir=st(require("chalk"));var oi=Object.create,Ar=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,ui=Object.getOwnPropertyNames,si=Object.getPrototypeOf,ci=Object.prototype.hasOwnProperty,W=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),li=(t,e)=>()=>(t&&(e=t(t=0)),e),R=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),pi=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ui(e))!ci.call(t,i)&&i!==r&&Ar(t,i,{get:()=>e[i],enumerable:!(n=ai(e,i))||n.enumerable});return t},It=(t,e,r)=>(r=t!=null?oi(si(t)):{},pi(e||!t||!t.__esModule?Ar(r,"default",{value:t,enumerable:!0}):r,t)),B=li(()=>{});B();var di=R((t,e)=>{B();function r(n){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),hi=R((t,e)=>{B();var r=di().default;function n(){"use strict";e.exports=n=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var i={},s=Object.prototype,u=s.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",p=o.toStringTag||"@@toStringTag";function l(F,b,M){return Object.defineProperty(F,b,{value:M,enumerable:!0,configurable:!0,writable:!0}),F[b]}try{l({},"")}catch{l=function(F,b,M){return F[b]=M}}function f(F,b,M,T){var $=b&&b.prototype instanceof D?b:D,j=Object.create($.prototype),q=new k(T||[]);return j._invoke=function(J,Z,N){var nt="suspendedStart";return function(ot,ut){if(nt==="executing")throw new Error("Generator is already running");if(nt==="completed"){if(ot==="throw")throw ut;return I()}for(N.method=ot,N.arg=ut;;){var O=N.delegate;if(O){var L=_(O,N);if(L){if(L===m)continue;return L}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(nt==="suspendedStart")throw nt="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);nt="executing";var G=d(J,Z,N);if(G.type==="normal"){if(nt=N.done?"completed":"suspendedYield",G.arg===m)continue;return{value:G.arg,done:N.done}}G.type==="throw"&&(nt="completed",N.method="throw",N.arg=G.arg)}}}(F,M,q),j}function d(F,b,M){try{return{type:"normal",arg:F.call(b,M)}}catch(T){return{type:"throw",arg:T}}}i.wrap=f;var m={};function D(){}function v(){}function E(){}var h={};l(h,a,function(){return this});var y=Object.getPrototypeOf,S=y&&y(y(P([])));S&&S!==s&&u.call(S,a)&&(h=S);var g=E.prototype=D.prototype=Object.create(h);function A(F){["next","throw","return"].forEach(function(b){l(F,b,function(M){return this._invoke(b,M)})})}function C(F,b){function M($,j,q,J){var Z=d(F[$],F,j);if(Z.type!=="throw"){var N=Z.arg,nt=N.value;return nt&&r(nt)=="object"&&u.call(nt,"__await")?b.resolve(nt.__await).then(function(ot){M("next",ot,q,J)},function(ot){M("throw",ot,q,J)}):b.resolve(nt).then(function(ot){N.value=ot,q(N)},function(ot){return M("throw",ot,q,J)})}J(Z.arg)}var T;this._invoke=function($,j){function q(){return new b(function(J,Z){M($,j,J,Z)})}return T=T?T.then(q,q):q()}}function _(F,b){var M=F.iterator[b.method];if(M===void 0){if(b.delegate=null,b.method==="throw"){if(F.iterator.return&&(b.method="return",b.arg=void 0,_(F,b),b.method==="throw"))return m;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var T=d(M,F.iterator,b.arg);if(T.type==="throw")return b.method="throw",b.arg=T.arg,b.delegate=null,m;var $=T.arg;return $?$.done?(b[F.resultName]=$.value,b.next=F.nextLoc,b.method!=="return"&&(b.method="next",b.arg=void 0),b.delegate=null,m):$:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,m)}function w(F){var b={tryLoc:F[0]};1 in F&&(b.catchLoc=F[1]),2 in F&&(b.finallyLoc=F[2],b.afterLoc=F[3]),this.tryEntries.push(b)}function x(F){var b=F.completion||{};b.type="normal",delete b.arg,F.completion=b}function k(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(w,this),this.reset(!0)}function P(F){if(F){var b=F[a];if(b)return b.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var M=-1,T=function $(){for(;++M<F.length;)if(u.call(F,M))return $.value=F[M],$.done=!1,$;return $.value=void 0,$.done=!0,$};return T.next=T}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=E,l(g,"constructor",E),l(E,"constructor",v),v.displayName=l(E,p,"GeneratorFunction"),i.isGeneratorFunction=function(F){var b=typeof F=="function"&&F.constructor;return!!b&&(b===v||(b.displayName||b.name)==="GeneratorFunction")},i.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,E):(F.__proto__=E,l(F,p,"GeneratorFunction")),F.prototype=Object.create(g),F},i.awrap=function(F){return{__await:F}},A(C.prototype),l(C.prototype,c,function(){return this}),i.AsyncIterator=C,i.async=function(F,b,M,T,$){$===void 0&&($=Promise);var j=new C(f(F,b,M,T),$);return i.isGeneratorFunction(b)?j:j.next().then(function(q){return q.done?q.value:j.next()})},A(g),l(g,p,"Generator"),l(g,a,function(){return this}),l(g,"toString",function(){return"[object Generator]"}),i.keys=function(F){var b=[];for(var M in F)b.push(M);return b.reverse(),function T(){for(;b.length;){var $=b.pop();if($ in F)return T.value=$,T.done=!1,T}return T.done=!0,T}},i.values=P,k.prototype={constructor:k,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!F)for(var b in this)b.charAt(0)==="t"&&u.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=void 0)},stop:function(){this.done=!0;var F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var b=this;function M(Z,N){return j.type="throw",j.arg=F,b.next=Z,N&&(b.method="next",b.arg=void 0),!!N}for(var T=this.tryEntries.length-1;T>=0;--T){var $=this.tryEntries[T],j=$.completion;if($.tryLoc==="root")return M("end");if($.tryLoc<=this.prev){var q=u.call($,"catchLoc"),J=u.call($,"finallyLoc");if(q&&J){if(this.prev<$.catchLoc)return M($.catchLoc,!0);if(this.prev<$.finallyLoc)return M($.finallyLoc)}else if(q){if(this.prev<$.catchLoc)return M($.catchLoc,!0)}else{if(!J)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return M($.finallyLoc)}}}},abrupt:function(F,b){for(var M=this.tryEntries.length-1;M>=0;--M){var T=this.tryEntries[M];if(T.tryLoc<=this.prev&&u.call(T,"finallyLoc")&&this.prev<T.finallyLoc){var $=T;break}}$&&(F==="break"||F==="continue")&&$.tryLoc<=b&&b<=$.finallyLoc&&($=null);var j=$?$.completion:{};return j.type=F,j.arg=b,$?(this.method="next",this.next=$.finallyLoc,m):this.complete(j)},complete:function(F,b){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&b&&(this.next=b),m},finish:function(F){for(var b=this.tryEntries.length-1;b>=0;--b){var M=this.tryEntries[b];if(M.finallyLoc===F)return this.complete(M.completion,M.afterLoc),x(M),m}},catch:function(F){for(var b=this.tryEntries.length-1;b>=0;--b){var M=this.tryEntries[b];if(M.tryLoc===F){var T=M.completion;if(T.type==="throw"){var $=T.arg;x(M)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(F,b,M){return this.delegate={iterator:P(F),resultName:b,nextLoc:M},this.method==="next"&&(this.arg=void 0),m}},i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}),mi=R((t,e)=>{B();var r=hi()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),gi=R((t,e)=>{"use strict";B();var r=(n,...i)=>new Promise(s=>{s(n(...i))});e.exports=r,e.exports.default=r}),yi=R((t,e)=>{"use strict";B();var r=gi(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],u=0,o=()=>{u--,s.length>0&&s.shift()()},a=(l,f,...d)=>{u++;let m=r(l,...d);f(m),m.then(o,o)},c=(l,f,...d)=>{u<i?a(l,f,...d):s.push(a.bind(null,l,f,...d))},p=(l,...f)=>new Promise(d=>c(l,d,...f));return Object.defineProperties(p,{activeCount:{get:()=>u},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),p};e.exports=n,e.exports.default=n}),Di=R((t,e)=>{"use strict";B();var r=yi(),n=class extends Error{constructor(o){super(),this.value=o}},i=async(o,a)=>a(await o),s=async o=>{let a=await Promise.all(o);if(a[1]===!0)throw new n(a[0]);return!1},u=async(o,a,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let p=r(c.concurrency),l=[...o].map(d=>[d,p(i,d,a)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(l.map(d=>f(s,d)))}catch(d){if(d instanceof n)return d.value;throw d}};e.exports=u,e.exports.default=u}),vi=R((t,e)=>{"use strict";B();var r=W("path"),n=W("fs"),{promisify:i}=W("util"),s=Di(),u=i(n.stat),o=i(n.lstat),a={directory:"isDirectory",file:"isFile"};function c({type:l}){if(!(l in a))throw new Error(`Invalid type specified: ${l}`)}var p=(l,f)=>l===void 0||f[a[l]]();e.exports=async(l,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?u:o;return s(l,async m=>{try{let D=await d(r.resolve(f.cwd,m));return p(f.type,D)}catch{return!1}},f)},e.exports.sync=(l,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?n.statSync:n.lstatSync;for(let m of l)try{let D=d(r.resolve(f.cwd,m));if(p(f.type,D))return m}catch{}}}),Ei=R((t,e)=>{"use strict";B();var r=W("fs"),{promisify:n}=W("util"),i=n(r.access);e.exports=async s=>{try{return await i(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),Ai=R((t,e)=>{"use strict";B();var r=W("path"),n=vi(),i=Ei(),s=Symbol("findUp.stop");e.exports=async(u,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(u),l=async f=>{if(typeof u!="function")return n(p,f);let d=await u(f.cwd);return typeof d=="string"?n([d],f):d};for(;;){let f=await l({...o,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},e.exports.sync=(u,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(u),l=f=>{if(typeof u!="function")return n.sync(p,f);let d=u(f.cwd);return typeof d=="string"?n.sync([d],f):d};for(;;){let f=l({...o,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},e.exports.exists=i,e.exports.sync.exists=i.sync,e.exports.stop=s}),wt=R(t=>{"use strict";B(),t.fromCallback=function(e){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")e.apply(this,arguments);else return new Promise((r,n)=>{arguments[arguments.length]=(i,s)=>{if(i)return n(i);r(s)},arguments.length++,e.apply(this,arguments)})},"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty(function(){let r=arguments[arguments.length-1];if(typeof r!="function")return e.apply(this,arguments);e.apply(this,arguments).then(n=>r(null,n),r)},"name",{value:e.name})}}),Ci=R((t,e)=>{B();var r=W("constants"),n=process.cwd,i=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(a){i=null,u.call(process,a)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;e.exports=o;function o(a){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(a),a.lutimes||p(a),a.chown=d(a.chown),a.fchown=d(a.fchown),a.lchown=d(a.lchown),a.chmod=l(a.chmod),a.fchmod=l(a.fchmod),a.lchmod=l(a.lchmod),a.chownSync=m(a.chownSync),a.fchownSync=m(a.fchownSync),a.lchownSync=m(a.lchownSync),a.chmodSync=f(a.chmodSync),a.fchmodSync=f(a.fchmodSync),a.lchmodSync=f(a.lchmodSync),a.stat=D(a.stat),a.fstat=D(a.fstat),a.lstat=D(a.lstat),a.statSync=v(a.statSync),a.fstatSync=v(a.fstatSync),a.lstatSync=v(a.lstatSync),a.chmod&&!a.lchmod&&(a.lchmod=function(h,y,S){S&&process.nextTick(S)},a.lchmodSync=function(){}),a.chown&&!a.lchown&&(a.lchown=function(h,y,S,g){g&&process.nextTick(g)},a.lchownSync=function(){}),s==="win32"&&(a.rename=typeof a.rename!="function"?a.rename:function(h){function y(S,g,A){var C=Date.now(),_=0;h(S,g,function w(x){if(x&&(x.code==="EACCES"||x.code==="EPERM")&&Date.now()-C<6e4){setTimeout(function(){a.stat(g,function(k,P){k&&k.code==="ENOENT"?h(S,g,w):A(x)})},_),_<100&&(_+=10);return}A&&A(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(y,h),y}(a.rename)),a.read=typeof a.read!="function"?a.read:function(h){function y(S,g,A,C,_,w){var x;if(w&&typeof w=="function"){var k=0;x=function(P,I,F){if(P&&P.code==="EAGAIN"&&k<10)return k++,h.call(a,S,g,A,C,_,x);w.apply(this,arguments)}}return h.call(a,S,g,A,C,_,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(y,h),y}(a.read),a.readSync=typeof a.readSync!="function"?a.readSync:function(h){return function(y,S,g,A,C){for(var _=0;;)try{return h.call(a,y,S,g,A,C)}catch(w){if(w.code==="EAGAIN"&&_<10){_++;continue}throw w}}}(a.readSync);function c(h){h.lchmod=function(y,S,g){h.open(y,r.O_WRONLY|r.O_SYMLINK,S,function(A,C){if(A){g&&g(A);return}h.fchmod(C,S,function(_){h.close(C,function(w){g&&g(_||w)})})})},h.lchmodSync=function(y,S){var g=h.openSync(y,r.O_WRONLY|r.O_SYMLINK,S),A=!0,C;try{C=h.fchmodSync(g,S),A=!1}finally{if(A)try{h.closeSync(g)}catch{}else h.closeSync(g)}return C}}function p(h){r.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(y,S,g,A){h.open(y,r.O_SYMLINK,function(C,_){if(C){A&&A(C);return}h.futimes(_,S,g,function(w){h.close(_,function(x){A&&A(w||x)})})})},h.lutimesSync=function(y,S,g){var A=h.openSync(y,r.O_SYMLINK),C,_=!0;try{C=h.futimesSync(A,S,g),_=!1}finally{if(_)try{h.closeSync(A)}catch{}else h.closeSync(A)}return C}):h.futimes&&(h.lutimes=function(y,S,g,A){A&&process.nextTick(A)},h.lutimesSync=function(){})}function l(h){return h&&function(y,S,g){return h.call(a,y,S,function(A){E(A)&&(A=null),g&&g.apply(this,arguments)})}}function f(h){return h&&function(y,S){try{return h.call(a,y,S)}catch(g){if(!E(g))throw g}}}function d(h){return h&&function(y,S,g,A){return h.call(a,y,S,g,function(C){E(C)&&(C=null),A&&A.apply(this,arguments)})}}function m(h){return h&&function(y,S,g){try{return h.call(a,y,S,g)}catch(A){if(!E(A))throw A}}}function D(h){return h&&function(y,S,g){typeof S=="function"&&(g=S,S=null);function A(C,_){_&&(_.uid<0&&(_.uid+=4294967296),_.gid<0&&(_.gid+=4294967296)),g&&g.apply(this,arguments)}return S?h.call(a,y,S,A):h.call(a,y,A)}}function v(h){return h&&function(y,S){var g=S?h.call(a,y,S):h.call(a,y);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}function E(h){if(!h||h.code==="ENOSYS")return!0;var y=!process.getuid||process.getuid()!==0;return!!(y&&(h.code==="EINVAL"||h.code==="EPERM"))}}}),Si=R((t,e)=>{B();var r=W("stream").Stream;e.exports=n;function n(i){return{ReadStream:s,WriteStream:u};function s(o,a){if(!(this instanceof s))return new s(o,a);r.call(this);var c=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var p=Object.keys(a),l=0,f=p.length;l<f;l++){var d=p[l];this[d]=a[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}i.open(this.path,this.flags,this.mode,function(m,D){if(m){c.emit("error",m),c.readable=!1;return}c.fd=D,c.emit("open",D),c._read()})}function u(o,a){if(!(this instanceof u))return new u(o,a);r.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var c=Object.keys(a),p=0,l=c.length;p<l;p++){var f=c[p];this[f]=a[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),bi=R((t,e)=>{"use strict";B(),e.exports=n;var r=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var s={__proto__:r(i)};else var s=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(s,u,Object.getOwnPropertyDescriptor(i,u))}),s}}),mt=R((t,e)=>{B();var r=W("fs"),n=Ci(),i=Si(),s=bi(),u=W("util"),o,a;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),a=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",a="___graceful-fs.previous");function c(){}function p(h,y){Object.defineProperty(h,o,{get:function(){return y}})}var l=c;u.debuglog?l=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var h=u.format.apply(u,arguments);h="GFS4: "+h.split(/\n/).join(`
7
- GFS4: `),console.error(h)}),r[o]||(f=global[o]||[],p(r,f),r.close=function(h){function y(S,g){return h.call(r,S,function(A){A||v(),typeof g=="function"&&g.apply(this,arguments)})}return Object.defineProperty(y,a,{value:h}),y}(r.close),r.closeSync=function(h){function y(S){h.apply(r,arguments),v()}return Object.defineProperty(y,a,{value:h}),y}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(r[o]),W("assert").equal(r[o].length,0)}));var f;global[o]||p(global,r[o]),e.exports=d(s(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(e.exports=d(r),r.__patched=!0);function d(h){n(h),h.gracefulify=d,h.createReadStream=N,h.createWriteStream=nt;var y=h.readFile;h.readFile=S;function S(O,L,G){return typeof L=="function"&&(G=L,L=null),K(O,L,G);function K(it,et,Q,X){return y(it,et,function(rt){rt&&(rt.code==="EMFILE"||rt.code==="ENFILE")?m([K,[it,et,Q],rt,X||Date.now(),Date.now()]):typeof Q=="function"&&Q.apply(this,arguments)})}}var g=h.writeFile;h.writeFile=A;function A(O,L,G,K){return typeof G=="function"&&(K=G,G=null),it(O,L,G,K);function it(et,Q,X,rt,lt){return g(et,Q,X,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?m([it,[et,Q,X,rt],z,lt||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var C=h.appendFile;C&&(h.appendFile=_);function _(O,L,G,K){return typeof G=="function"&&(K=G,G=null),it(O,L,G,K);function it(et,Q,X,rt,lt){return C(et,Q,X,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?m([it,[et,Q,X,rt],z,lt||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var w=h.copyFile;w&&(h.copyFile=x);function x(O,L,G,K){return typeof G=="function"&&(K=G,G=0),it(O,L,G,K);function it(et,Q,X,rt,lt){return w(et,Q,X,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?m([it,[et,Q,X,rt],z,lt||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var k=h.readdir;h.readdir=I;var P=/^v[0-5]\./;function I(O,L,G){typeof L=="function"&&(G=L,L=null);var K=P.test(process.version)?function(et,Q,X,rt){return k(et,it(et,Q,X,rt))}:function(et,Q,X,rt){return k(et,Q,it(et,Q,X,rt))};return K(O,L,G);function it(et,Q,X,rt){return function(lt,z){lt&&(lt.code==="EMFILE"||lt.code==="ENFILE")?m([K,[et,Q,X],lt,rt||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof X=="function"&&X.call(this,lt,z))}}}if(process.version.substr(0,4)==="v0.8"){var F=i(h);j=F.ReadStream,J=F.WriteStream}var b=h.ReadStream;b&&(j.prototype=Object.create(b.prototype),j.prototype.open=q);var M=h.WriteStream;M&&(J.prototype=Object.create(M.prototype),J.prototype.open=Z),Object.defineProperty(h,"ReadStream",{get:function(){return j},set:function(O){j=O},enumerable:!0,configurable:!0}),Object.defineProperty(h,"WriteStream",{get:function(){return J},set:function(O){J=O},enumerable:!0,configurable:!0});var T=j;Object.defineProperty(h,"FileReadStream",{get:function(){return T},set:function(O){T=O},enumerable:!0,configurable:!0});var $=J;Object.defineProperty(h,"FileWriteStream",{get:function(){return $},set:function(O){$=O},enumerable:!0,configurable:!0});function j(O,L){return this instanceof j?(b.apply(this,arguments),this):j.apply(Object.create(j.prototype),arguments)}function q(){var O=this;ut(O.path,O.flags,O.mode,function(L,G){L?(O.autoClose&&O.destroy(),O.emit("error",L)):(O.fd=G,O.emit("open",G),O.read())})}function J(O,L){return this instanceof J?(M.apply(this,arguments),this):J.apply(Object.create(J.prototype),arguments)}function Z(){var O=this;ut(O.path,O.flags,O.mode,function(L,G){L?(O.destroy(),O.emit("error",L)):(O.fd=G,O.emit("open",G))})}function N(O,L){return new h.ReadStream(O,L)}function nt(O,L){return new h.WriteStream(O,L)}var ot=h.open;h.open=ut;function ut(O,L,G,K){return typeof G=="function"&&(K=G,G=null),it(O,L,G,K);function it(et,Q,X,rt,lt){return ot(et,Q,X,function(z,Y){z&&(z.code==="EMFILE"||z.code==="ENFILE")?m([it,[et,Q,X,rt],z,lt||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}return h}function m(h){l("ENQUEUE",h[0].name,h[1]),r[o].push(h),E()}var D;function v(){for(var h=Date.now(),y=0;y<r[o].length;++y)r[o][y].length>2&&(r[o][y][3]=h,r[o][y][4]=h);E()}function E(){if(clearTimeout(D),D=void 0,r[o].length!==0){var h=r[o].shift(),y=h[0],S=h[1],g=h[2],A=h[3],C=h[4];if(A===void 0)l("RETRY",y.name,S),y.apply(null,S);else if(Date.now()-A>=6e4){l("TIMEOUT",y.name,S);var _=S.pop();typeof _=="function"&&_.call(null,g)}else{var w=Date.now()-C,x=Math.max(C-A,1),k=Math.min(x*1.2,100);w>=k?(l("RETRY",y.name,S),y.apply(null,S.concat([A]))):r[o].push(h)}D===void 0&&(D=setTimeout(E,0))}}}),Cr=R(t=>{"use strict";B();var e=wt().fromCallback,r=mt(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof r[i]=="function");Object.keys(r).forEach(i=>{i!=="promises"&&(t[i]=r[i])}),n.forEach(i=>{t[i]=e(r[i])}),t.exists=function(i,s){return typeof s=="function"?r.exists(i,s):new Promise(u=>r.exists(i,u))},t.read=function(i,s,u,o,a,c){return typeof c=="function"?r.read(i,s,u,o,a,c):new Promise((p,l)=>{r.read(i,s,u,o,a,(f,d,m)=>{if(f)return l(f);p({bytesRead:d,buffer:m})})})},t.write=function(i,s,...u){return typeof u[u.length-1]=="function"?r.write(i,s,...u):new Promise((o,a)=>{r.write(i,s,...u,(c,p,l)=>{if(c)return a(c);o({bytesWritten:p,buffer:l})})})},typeof r.realpath.native=="function"&&(t.realpath.native=e(r.realpath.native))}),Sr=R((t,e)=>{"use strict";B();var r=W("path");function n(u){return u=r.normalize(r.resolve(u)).split(r.sep),u.length>0?u[0]:null}var i=/[<>:"|?*]/;function s(u){let o=n(u);return u=u.replace(o,""),i.test(u)}e.exports={getRootPath:n,invalidWin32Path:s}}),wi=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=Sr().invalidWin32Path,s=parseInt("0777",8);function u(o,a,c,p){if(typeof a=="function"?(c=a,a={}):(!a||typeof a!="object")&&(a={mode:a}),process.platform==="win32"&&i(o)){let d=new Error(o+" contains invalid WIN32 path characters.");return d.code="EINVAL",c(d)}let l=a.mode,f=a.fs||r;l===void 0&&(l=s&~process.umask()),p||(p=null),c=c||function(){},o=n.resolve(o),f.mkdir(o,l,d=>{if(!d)return p=p||o,c(null,p);switch(d.code){case"ENOENT":if(n.dirname(o)===o)return c(d);u(n.dirname(o),a,(m,D)=>{m?c(m,D):u(o,a,c,D)});break;default:f.stat(o,(m,D)=>{m||!D.isDirectory()?c(d,p):c(null,p)});break}})}e.exports=u}),Fi=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=Sr().invalidWin32Path,s=parseInt("0777",8);function u(o,a,c){(!a||typeof a!="object")&&(a={mode:a});let p=a.mode,l=a.fs||r;if(process.platform==="win32"&&i(o)){let f=new Error(o+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}p===void 0&&(p=s&~process.umask()),c||(c=null),o=n.resolve(o);try{l.mkdirSync(o,p),c=c||o}catch(f){if(f.code==="ENOENT"){if(n.dirname(o)===o)throw f;c=u(n.dirname(o),a,c),u(o,a,c)}else{let d;try{d=l.statSync(o)}catch{throw f}if(!d.isDirectory())throw f}}return c}e.exports=u}),Ft=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=r(wi()),i=Fi();e.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),br=R((t,e)=>{"use strict";B();var r=mt(),n=W("os"),i=W("path");function s(){let p=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));p=i.join(n.tmpdir(),p);let l=new Date(1435410243862);r.writeFileSync(p,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=r.openSync(p,"r+");return r.futimesSync(f,l,l),r.closeSync(f),r.statSync(p).mtime>1435410243e3}function u(p){let l=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let f=new Date(1435410243862);r.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return p(d);r.open(l,"r+",(m,D)=>{if(m)return p(m);r.futimes(D,f,f,v=>{if(v)return p(v);r.close(D,E=>{if(E)return p(E);r.stat(l,(h,y)=>{if(h)return p(h);p(null,y.mtime>1435410243e3)})})})})})}function o(p){if(typeof p=="number")return Math.floor(p/1e3)*1e3;if(p instanceof Date)return new Date(Math.floor(p.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function a(p,l,f,d){r.open(p,"r+",(m,D)=>{if(m)return d(m);r.futimes(D,l,f,v=>{r.close(D,E=>{d&&d(v||E)})})})}function c(p,l,f){let d=r.openSync(p,"r+");return r.futimesSync(d,l,f),r.closeSync(d)}e.exports={hasMillisRes:u,hasMillisResSync:s,timeRemoveMillis:o,utimesMillis:a,utimesMillisSync:c}}),ge=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=10,s=5,u=0,o=process.versions.node.split("."),a=Number.parseInt(o[0],10),c=Number.parseInt(o[1],10),p=Number.parseInt(o[2],10);function l(){return a>i||a===i&&(c>s||c===s&&p>=u)}function f(S,g,A){l()?r.stat(S,{bigint:!0},(C,_)=>{if(C)return A(C);r.stat(g,{bigint:!0},(w,x)=>w?w.code==="ENOENT"?A(null,{srcStat:_,destStat:null}):A(w):A(null,{srcStat:_,destStat:x}))}):r.stat(S,(C,_)=>{if(C)return A(C);r.stat(g,(w,x)=>w?w.code==="ENOENT"?A(null,{srcStat:_,destStat:null}):A(w):A(null,{srcStat:_,destStat:x}))})}function d(S,g){let A,C;l()?A=r.statSync(S,{bigint:!0}):A=r.statSync(S);try{l()?C=r.statSync(g,{bigint:!0}):C=r.statSync(g)}catch(_){if(_.code==="ENOENT")return{srcStat:A,destStat:null};throw _}return{srcStat:A,destStat:C}}function m(S,g,A,C){f(S,g,(_,w)=>{if(_)return C(_);let{srcStat:x,destStat:k}=w;return k&&k.ino&&k.dev&&k.ino===x.ino&&k.dev===x.dev?C(new Error("Source and destination must not be the same.")):x.isDirectory()&&h(S,g)?C(new Error(y(S,g,A))):C(null,{srcStat:x,destStat:k})})}function D(S,g,A){let{srcStat:C,destStat:_}=d(S,g);if(_&&_.ino&&_.dev&&_.ino===C.ino&&_.dev===C.dev)throw new Error("Source and destination must not be the same.");if(C.isDirectory()&&h(S,g))throw new Error(y(S,g,A));return{srcStat:C,destStat:_}}function v(S,g,A,C,_){let w=n.resolve(n.dirname(S)),x=n.resolve(n.dirname(A));if(x===w||x===n.parse(x).root)return _();l()?r.stat(x,{bigint:!0},(k,P)=>k?k.code==="ENOENT"?_():_(k):P.ino&&P.dev&&P.ino===g.ino&&P.dev===g.dev?_(new Error(y(S,A,C))):v(S,g,x,C,_)):r.stat(x,(k,P)=>k?k.code==="ENOENT"?_():_(k):P.ino&&P.dev&&P.ino===g.ino&&P.dev===g.dev?_(new Error(y(S,A,C))):v(S,g,x,C,_))}function E(S,g,A,C){let _=n.resolve(n.dirname(S)),w=n.resolve(n.dirname(A));if(w===_||w===n.parse(w).root)return;let x;try{l()?x=r.statSync(w,{bigint:!0}):x=r.statSync(w)}catch(k){if(k.code==="ENOENT")return;throw k}if(x.ino&&x.dev&&x.ino===g.ino&&x.dev===g.dev)throw new Error(y(S,A,C));return E(S,g,w,C)}function h(S,g){let A=n.resolve(S).split(n.sep).filter(_=>_),C=n.resolve(g).split(n.sep).filter(_=>_);return A.reduce((_,w,x)=>_&&C[x]===w,!0)}function y(S,g,A){return`Cannot ${A} '${S}' to a subdirectory of itself, '${g}'.`}e.exports={checkPaths:m,checkPathsSync:D,checkParentPaths:v,checkParentPathsSync:E,isSrcSubdir:h}}),_i=R((t,e)=>{"use strict";B(),e.exports=function(r){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(r)}catch{return new Buffer(r)}return new Buffer(r)}}),ki=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=Ft().mkdirsSync,s=br().utimesMillisSync,u=ge();function o(g,A,C){typeof C=="function"&&(C={filter:C}),C=C||{},C.clobber="clobber"in C?!!C.clobber:!0,C.overwrite="overwrite"in C?!!C.overwrite:C.clobber,C.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
6
+ `)}`))),s&&(kt({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:n,options:i}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(o=>kt({workspace:o,project:e,to:r,logger:n,options:i})))}async function Un(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(Bt({action:"remove",packageManager:"pnpm",project:e}));let s=At({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&i&&(r.subStep('removing "pnpm-workspace.yaml"'),n!=null&&n.dry||_t.default.rmSync(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(n!=null&&n.dry)){_t.default.writeJSONSync(e.paths.packageJson,s,{spaces:2});let u=[e.paths.nodeModules,...e.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(u.map(o=>_t.default.rm(o,{recursive:!0,force:!0})))}catch{throw new ct("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function qn(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${Xt.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||_t.default.rmSync(e.paths.lockfile,{force:!0})}async function Kn(t){let{project:e,logger:r,options:n}=t;if(e.packageManager!=="pnpm"&&(r.subStep(`converting ${Xt.default.relative(e.paths.root,e.paths.lockfile)} to pnpm-lock.yaml`),!(n!=null&&n.dry)&&_t.default.existsSync(e.paths.lockfile)))try{await(0,mr.default)("pnpm",["import"],{stdio:"ignore",cwd:e.paths.root})}finally{_t.default.rmSync(e.paths.lockfile,{force:!0})}}var Jn={detect:gr,read:Gn,create:Wn,remove:Un,clean:qn,convertLock:Kn},yr=Jn;var Mt=st(require("fs-extra")),ie=st(require("path"));async function Dr(t){let e=ie.default.join(t.workspaceRoot,"package-lock.json"),r=Vt({workspaceRoot:t.workspaceRoot});return Mt.default.existsSync(e)||r==="npm"}async function Vn(t){if(!await Dr(t))throw new ct("Not an npm project",{type:"package_manager-unexpected"});let r=At(t),{name:n,description:i}=Wt(t);return{name:n,description:i,packageManager:"npm",paths:Yt({root:t.workspaceRoot,lockFile:"package-lock.json"}),workspaceData:{globs:r.workspaces||[],workspaces:Qt({workspaceGlobs:r.workspaces,...t})}}}async function Yn(t){let{project:e,options:r,to:n,logger:i}=t,s=e.workspaceData.globs.length>0;i.mainStep(Bt({packageManager:"npm",action:"create",project:e}));let u=At({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${ie.default.relative(e.paths.root,e.paths.packageJson)}`),u.packageManager=`${n.name}@${n.version}`,s?(i.rootStep(`adding "workspaces" field to ${ie.default.relative(e.paths.root,e.paths.packageJson)}`),u.workspaces=e.workspaceData.globs,r!=null&&r.dry||Mt.default.writeJSONSync(e.paths.packageJson,u,{spaces:2}),kt({workspace:{name:"root",paths:e.paths},project:e,to:n,logger:i,options:r}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(o=>kt({workspace:o,project:e,to:n,logger:i,options:r}))):r!=null&&r.dry||Mt.default.writeJSONSync(e.paths.packageJson,u,{spaces:2})}async function Qn(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(Bt({packageManager:"npm",action:"remove",project:e}));let s=At({workspaceRoot:e.paths.root});if(i&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(n!=null&&n.dry)){Mt.default.writeJSONSync(e.paths.packageJson,s,{spaces:2});let u=[e.paths.nodeModules,...e.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(u.map(o=>Mt.default.rm(o,{recursive:!0,force:!0})))}catch{throw new ct("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Xn(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${ie.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||Mt.default.rmSync(e.paths.lockfile,{force:!0})}async function Zn(t){let{project:e,options:r}=t;e.packageManager!=="npm"&&(r!=null&&r.dry||Mt.default.rmSync(e.paths.lockfile,{force:!0}))}var zn={detect:Dr,read:Vn,create:Yn,remove:Qn,clean:Xn,convertLock:Zn},vr=zn;var jt=st(require("fs-extra")),oe=st(require("path"));async function Er(t){let e=oe.default.join(t.workspaceRoot,"yarn.lock"),r=Vt({workspaceRoot:t.workspaceRoot});return jt.default.existsSync(e)||r==="yarn"}async function ti(t){if(!await Er(t))throw new ct("Not a yarn project",{type:"package_manager-unexpected"});let r=At(t),{name:n,description:i}=Wt(t);return{name:n,description:i,packageManager:"yarn",paths:Yt({root:t.workspaceRoot,lockFile:"yarn.lock"}),workspaceData:{globs:r.workspaces||[],workspaces:Qt({workspaceGlobs:r.workspaces,...t})}}}async function ei(t){let{project:e,to:r,logger:n,options:i}=t,s=e.workspaceData.globs.length>0;n.mainStep(Bt({packageManager:"yarn",action:"create",project:e}));let u=At({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${oe.default.relative(e.paths.root,e.paths.packageJson)}`),u.packageManager=`${r.name}@${r.version}`,s?(n.rootStep(`adding "workspaces" field to ${oe.default.relative(e.paths.root,e.paths.packageJson)}`),u.workspaces=e.workspaceData.globs,i!=null&&i.dry||jt.default.writeJSONSync(e.paths.packageJson,u,{spaces:2}),kt({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:n,options:i}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(o=>kt({workspace:o,project:e,to:r,logger:n,options:i}))):i!=null&&i.dry||jt.default.writeJSONSync(e.paths.packageJson,u,{spaces:2})}async function ri(t){let{project:e,logger:r,options:n}=t,i=e.workspaceData.globs.length>0;r.mainStep(Bt({packageManager:"yarn",action:"remove",project:e}));let s=At({workspaceRoot:e.paths.root});if(i&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(n!=null&&n.dry)){jt.default.writeJSONSync(e.paths.packageJson,s,{spaces:2});let u=[e.paths.nodeModules,...e.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(u.map(o=>jt.default.rm(o,{recursive:!0,force:!0})))}catch{throw new ct("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function ni(t){let{project:e,logger:r,options:n}=t;r.subStep(`removing ${oe.default.relative(e.paths.root,e.paths.lockfile)}`),n!=null&&n.dry||jt.default.rmSync(e.paths.lockfile,{force:!0})}async function ii(t){let{project:e,options:r}=t;e.packageManager!=="yarn"&&(r!=null&&r.dry||jt.default.rmSync(e.paths.lockfile,{force:!0}))}var oi={detect:Er,read:ti,create:ei,remove:ri,clean:ni,convertLock:ii},Ar=oi;var ai={pnpm:yr,yarn:Ar,npm:vr},Ut=ai;async function ae({root:t}){let{exists:e,absolute:r}=Lt({directory:t});if(!e)throw new ct(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:n,read:i}of Object.values(Ut))if(await n({workspaceRoot:r}))return i({workspaceRoot:r});throw new ct("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}async function me(t){let e=new Tt;e.hero();let r=await Cr.default.prompt({type:"input",name:"directoryInput",message:"Where is the root of the repo?",when:!t,default:".",validate:f=>{let{exists:d,absolute:m}=Lt({directory:f});return d?!0:`Directory ${Ot.default.dim(`(${m})`)} does not exist`},filter:f=>f.trim()}),{directoryInput:n=t}=r,{exists:i,absolute:s}=Lt({directory:n});if(!i)return console.error(`Directory ${Ot.default.dim(`(${s})`)} does not exist`),process.exit(1);let u=await ae({root:s}),o=u.workspaceData.workspaces.length,a=o>0,c={};u.workspaceData.workspaces.forEach(f=>{let m=he.default.relative(s,f.paths.root).split(he.default.sep)[0];c[m]||(c[m]=[]),c[m].push(f)});let p=f=>`${f.name} (${Ot.default.italic(`./${he.default.relative(s,f.paths.root)}`)})`,l=({number:f,directory:d,workspaces:m})=>{e.indented(2,`${f}. ${Ot.default.bold(d)}`),m.forEach((D,v)=>{e.indented(3,`${v+1}. ${p(D)}`)})};e.header("Repository Summary"),e.indented(1,`${Ot.default.underline(u.name)}:`),e.indented(1,`Package Manager: ${Ot.default.bold(Ot.default.italic(u.packageManager))}`),a&&(e.indented(1,`Workspaces (${Ot.default.bold(o.toString())}):`),Object.keys(c).forEach((f,d)=>{l({number:d+1,directory:f,workspaces:c[f]})}),e.blankLine())}var or=st(require("inquirer"));var ar=st(require("chalk"));var ui=Object.create,Sr=Object.defineProperty,si=Object.getOwnPropertyDescriptor,ci=Object.getOwnPropertyNames,li=Object.getPrototypeOf,pi=Object.prototype.hasOwnProperty,W=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),fi=(t,e)=>()=>(t&&(e=t(t=0)),e),R=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),di=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ci(e))!pi.call(t,i)&&i!==r&&Sr(t,i,{get:()=>e[i],enumerable:!(n=si(e,i))||n.enumerable});return t},Nt=(t,e,r)=>(r=t!=null?ui(li(t)):{},di(e||!t||!t.__esModule?Sr(r,"default",{value:t,enumerable:!0}):r,t)),B=fi(()=>{});B();var mi=R((t,e)=>{B();function r(n){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),gi=R((t,e)=>{B();var r=mi().default;function n(){"use strict";e.exports=n=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var i={},s=Object.prototype,u=s.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",p=o.toStringTag||"@@toStringTag";function l(F,b,N){return Object.defineProperty(F,b,{value:N,enumerable:!0,configurable:!0,writable:!0}),F[b]}try{l({},"")}catch{l=function(F,b,N){return F[b]=N}}function f(F,b,N,T){var $=b&&b.prototype instanceof D?b:D,j=Object.create($.prototype),q=new k(T||[]);return j._invoke=function(V,Z,M){var nt="suspendedStart";return function(ot,ut){if(nt==="executing")throw new Error("Generator is already running");if(nt==="completed"){if(ot==="throw")throw ut;return I()}for(M.method=ot,M.arg=ut;;){var O=M.delegate;if(O){var L=_(O,M);if(L){if(L===m)continue;return L}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(nt==="suspendedStart")throw nt="completed",M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);nt="executing";var G=d(V,Z,M);if(G.type==="normal"){if(nt=M.done?"completed":"suspendedYield",G.arg===m)continue;return{value:G.arg,done:M.done}}G.type==="throw"&&(nt="completed",M.method="throw",M.arg=G.arg)}}}(F,N,q),j}function d(F,b,N){try{return{type:"normal",arg:F.call(b,N)}}catch(T){return{type:"throw",arg:T}}}i.wrap=f;var m={};function D(){}function v(){}function E(){}var h={};l(h,a,function(){return this});var y=Object.getPrototypeOf,S=y&&y(y(P([])));S&&S!==s&&u.call(S,a)&&(h=S);var g=E.prototype=D.prototype=Object.create(h);function A(F){["next","throw","return"].forEach(function(b){l(F,b,function(N){return this._invoke(b,N)})})}function C(F,b){function N($,j,q,V){var Z=d(F[$],F,j);if(Z.type!=="throw"){var M=Z.arg,nt=M.value;return nt&&r(nt)=="object"&&u.call(nt,"__await")?b.resolve(nt.__await).then(function(ot){N("next",ot,q,V)},function(ot){N("throw",ot,q,V)}):b.resolve(nt).then(function(ot){M.value=ot,q(M)},function(ot){return N("throw",ot,q,V)})}V(Z.arg)}var T;this._invoke=function($,j){function q(){return new b(function(V,Z){N($,j,V,Z)})}return T=T?T.then(q,q):q()}}function _(F,b){var N=F.iterator[b.method];if(N===void 0){if(b.delegate=null,b.method==="throw"){if(F.iterator.return&&(b.method="return",b.arg=void 0,_(F,b),b.method==="throw"))return m;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var T=d(N,F.iterator,b.arg);if(T.type==="throw")return b.method="throw",b.arg=T.arg,b.delegate=null,m;var $=T.arg;return $?$.done?(b[F.resultName]=$.value,b.next=F.nextLoc,b.method!=="return"&&(b.method="next",b.arg=void 0),b.delegate=null,m):$:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,m)}function w(F){var b={tryLoc:F[0]};1 in F&&(b.catchLoc=F[1]),2 in F&&(b.finallyLoc=F[2],b.afterLoc=F[3]),this.tryEntries.push(b)}function x(F){var b=F.completion||{};b.type="normal",delete b.arg,F.completion=b}function k(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(w,this),this.reset(!0)}function P(F){if(F){var b=F[a];if(b)return b.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var N=-1,T=function $(){for(;++N<F.length;)if(u.call(F,N))return $.value=F[N],$.done=!1,$;return $.value=void 0,$.done=!0,$};return T.next=T}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=E,l(g,"constructor",E),l(E,"constructor",v),v.displayName=l(E,p,"GeneratorFunction"),i.isGeneratorFunction=function(F){var b=typeof F=="function"&&F.constructor;return!!b&&(b===v||(b.displayName||b.name)==="GeneratorFunction")},i.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,E):(F.__proto__=E,l(F,p,"GeneratorFunction")),F.prototype=Object.create(g),F},i.awrap=function(F){return{__await:F}},A(C.prototype),l(C.prototype,c,function(){return this}),i.AsyncIterator=C,i.async=function(F,b,N,T,$){$===void 0&&($=Promise);var j=new C(f(F,b,N,T),$);return i.isGeneratorFunction(b)?j:j.next().then(function(q){return q.done?q.value:j.next()})},A(g),l(g,p,"Generator"),l(g,a,function(){return this}),l(g,"toString",function(){return"[object Generator]"}),i.keys=function(F){var b=[];for(var N in F)b.push(N);return b.reverse(),function T(){for(;b.length;){var $=b.pop();if($ in F)return T.value=$,T.done=!1,T}return T.done=!0,T}},i.values=P,k.prototype={constructor:k,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!F)for(var b in this)b.charAt(0)==="t"&&u.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=void 0)},stop:function(){this.done=!0;var F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var b=this;function N(Z,M){return j.type="throw",j.arg=F,b.next=Z,M&&(b.method="next",b.arg=void 0),!!M}for(var T=this.tryEntries.length-1;T>=0;--T){var $=this.tryEntries[T],j=$.completion;if($.tryLoc==="root")return N("end");if($.tryLoc<=this.prev){var q=u.call($,"catchLoc"),V=u.call($,"finallyLoc");if(q&&V){if(this.prev<$.catchLoc)return N($.catchLoc,!0);if(this.prev<$.finallyLoc)return N($.finallyLoc)}else if(q){if(this.prev<$.catchLoc)return N($.catchLoc,!0)}else{if(!V)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return N($.finallyLoc)}}}},abrupt:function(F,b){for(var N=this.tryEntries.length-1;N>=0;--N){var T=this.tryEntries[N];if(T.tryLoc<=this.prev&&u.call(T,"finallyLoc")&&this.prev<T.finallyLoc){var $=T;break}}$&&(F==="break"||F==="continue")&&$.tryLoc<=b&&b<=$.finallyLoc&&($=null);var j=$?$.completion:{};return j.type=F,j.arg=b,$?(this.method="next",this.next=$.finallyLoc,m):this.complete(j)},complete:function(F,b){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&b&&(this.next=b),m},finish:function(F){for(var b=this.tryEntries.length-1;b>=0;--b){var N=this.tryEntries[b];if(N.finallyLoc===F)return this.complete(N.completion,N.afterLoc),x(N),m}},catch:function(F){for(var b=this.tryEntries.length-1;b>=0;--b){var N=this.tryEntries[b];if(N.tryLoc===F){var T=N.completion;if(T.type==="throw"){var $=T.arg;x(N)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(F,b,N){return this.delegate={iterator:P(F),resultName:b,nextLoc:N},this.method==="next"&&(this.arg=void 0),m}},i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}),yi=R((t,e)=>{B();var r=gi()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),Di=R((t,e)=>{"use strict";B();var r=(n,...i)=>new Promise(s=>{s(n(...i))});e.exports=r,e.exports.default=r}),vi=R((t,e)=>{"use strict";B();var r=Di(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],u=0,o=()=>{u--,s.length>0&&s.shift()()},a=(l,f,...d)=>{u++;let m=r(l,...d);f(m),m.then(o,o)},c=(l,f,...d)=>{u<i?a(l,f,...d):s.push(a.bind(null,l,f,...d))},p=(l,...f)=>new Promise(d=>c(l,d,...f));return Object.defineProperties(p,{activeCount:{get:()=>u},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),p};e.exports=n,e.exports.default=n}),Ei=R((t,e)=>{"use strict";B();var r=vi(),n=class extends Error{constructor(o){super(),this.value=o}},i=async(o,a)=>a(await o),s=async o=>{let a=await Promise.all(o);if(a[1]===!0)throw new n(a[0]);return!1},u=async(o,a,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let p=r(c.concurrency),l=[...o].map(d=>[d,p(i,d,a)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(l.map(d=>f(s,d)))}catch(d){if(d instanceof n)return d.value;throw d}};e.exports=u,e.exports.default=u}),Ai=R((t,e)=>{"use strict";B();var r=W("path"),n=W("fs"),{promisify:i}=W("util"),s=Ei(),u=i(n.stat),o=i(n.lstat),a={directory:"isDirectory",file:"isFile"};function c({type:l}){if(!(l in a))throw new Error(`Invalid type specified: ${l}`)}var p=(l,f)=>l===void 0||f[a[l]]();e.exports=async(l,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?u:o;return s(l,async m=>{try{let D=await d(r.resolve(f.cwd,m));return p(f.type,D)}catch{return!1}},f)},e.exports.sync=(l,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?n.statSync:n.lstatSync;for(let m of l)try{let D=d(r.resolve(f.cwd,m));if(p(f.type,D))return m}catch{}}}),Ci=R((t,e)=>{"use strict";B();var r=W("fs"),{promisify:n}=W("util"),i=n(r.access);e.exports=async s=>{try{return await i(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),Si=R((t,e)=>{"use strict";B();var r=W("path"),n=Ai(),i=Ci(),s=Symbol("findUp.stop");e.exports=async(u,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(u),l=async f=>{if(typeof u!="function")return n(p,f);let d=await u(f.cwd);return typeof d=="string"?n([d],f):d};for(;;){let f=await l({...o,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},e.exports.sync=(u,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(u),l=f=>{if(typeof u!="function")return n.sync(p,f);let d=u(f.cwd);return typeof d=="string"?n.sync([d],f):d};for(;;){let f=l({...o,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},e.exports.exists=i,e.exports.sync.exists=i.sync,e.exports.stop=s}),wt=R(t=>{"use strict";B(),t.fromCallback=function(e){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")e.apply(this,arguments);else return new Promise((r,n)=>{arguments[arguments.length]=(i,s)=>{if(i)return n(i);r(s)},arguments.length++,e.apply(this,arguments)})},"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty(function(){let r=arguments[arguments.length-1];if(typeof r!="function")return e.apply(this,arguments);e.apply(this,arguments).then(n=>r(null,n),r)},"name",{value:e.name})}}),bi=R((t,e)=>{B();var r=W("constants"),n=process.cwd,i=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(a){i=null,u.call(process,a)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;e.exports=o;function o(a){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(a),a.lutimes||p(a),a.chown=d(a.chown),a.fchown=d(a.fchown),a.lchown=d(a.lchown),a.chmod=l(a.chmod),a.fchmod=l(a.fchmod),a.lchmod=l(a.lchmod),a.chownSync=m(a.chownSync),a.fchownSync=m(a.fchownSync),a.lchownSync=m(a.lchownSync),a.chmodSync=f(a.chmodSync),a.fchmodSync=f(a.fchmodSync),a.lchmodSync=f(a.lchmodSync),a.stat=D(a.stat),a.fstat=D(a.fstat),a.lstat=D(a.lstat),a.statSync=v(a.statSync),a.fstatSync=v(a.fstatSync),a.lstatSync=v(a.lstatSync),a.chmod&&!a.lchmod&&(a.lchmod=function(h,y,S){S&&process.nextTick(S)},a.lchmodSync=function(){}),a.chown&&!a.lchown&&(a.lchown=function(h,y,S,g){g&&process.nextTick(g)},a.lchownSync=function(){}),s==="win32"&&(a.rename=typeof a.rename!="function"?a.rename:function(h){function y(S,g,A){var C=Date.now(),_=0;h(S,g,function w(x){if(x&&(x.code==="EACCES"||x.code==="EPERM")&&Date.now()-C<6e4){setTimeout(function(){a.stat(g,function(k,P){k&&k.code==="ENOENT"?h(S,g,w):A(x)})},_),_<100&&(_+=10);return}A&&A(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(y,h),y}(a.rename)),a.read=typeof a.read!="function"?a.read:function(h){function y(S,g,A,C,_,w){var x;if(w&&typeof w=="function"){var k=0;x=function(P,I,F){if(P&&P.code==="EAGAIN"&&k<10)return k++,h.call(a,S,g,A,C,_,x);w.apply(this,arguments)}}return h.call(a,S,g,A,C,_,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(y,h),y}(a.read),a.readSync=typeof a.readSync!="function"?a.readSync:function(h){return function(y,S,g,A,C){for(var _=0;;)try{return h.call(a,y,S,g,A,C)}catch(w){if(w.code==="EAGAIN"&&_<10){_++;continue}throw w}}}(a.readSync);function c(h){h.lchmod=function(y,S,g){h.open(y,r.O_WRONLY|r.O_SYMLINK,S,function(A,C){if(A){g&&g(A);return}h.fchmod(C,S,function(_){h.close(C,function(w){g&&g(_||w)})})})},h.lchmodSync=function(y,S){var g=h.openSync(y,r.O_WRONLY|r.O_SYMLINK,S),A=!0,C;try{C=h.fchmodSync(g,S),A=!1}finally{if(A)try{h.closeSync(g)}catch{}else h.closeSync(g)}return C}}function p(h){r.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(y,S,g,A){h.open(y,r.O_SYMLINK,function(C,_){if(C){A&&A(C);return}h.futimes(_,S,g,function(w){h.close(_,function(x){A&&A(w||x)})})})},h.lutimesSync=function(y,S,g){var A=h.openSync(y,r.O_SYMLINK),C,_=!0;try{C=h.futimesSync(A,S,g),_=!1}finally{if(_)try{h.closeSync(A)}catch{}else h.closeSync(A)}return C}):h.futimes&&(h.lutimes=function(y,S,g,A){A&&process.nextTick(A)},h.lutimesSync=function(){})}function l(h){return h&&function(y,S,g){return h.call(a,y,S,function(A){E(A)&&(A=null),g&&g.apply(this,arguments)})}}function f(h){return h&&function(y,S){try{return h.call(a,y,S)}catch(g){if(!E(g))throw g}}}function d(h){return h&&function(y,S,g,A){return h.call(a,y,S,g,function(C){E(C)&&(C=null),A&&A.apply(this,arguments)})}}function m(h){return h&&function(y,S,g){try{return h.call(a,y,S,g)}catch(A){if(!E(A))throw A}}}function D(h){return h&&function(y,S,g){typeof S=="function"&&(g=S,S=null);function A(C,_){_&&(_.uid<0&&(_.uid+=4294967296),_.gid<0&&(_.gid+=4294967296)),g&&g.apply(this,arguments)}return S?h.call(a,y,S,A):h.call(a,y,A)}}function v(h){return h&&function(y,S){var g=S?h.call(a,y,S):h.call(a,y);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}function E(h){if(!h||h.code==="ENOSYS")return!0;var y=!process.getuid||process.getuid()!==0;return!!(y&&(h.code==="EINVAL"||h.code==="EPERM"))}}}),wi=R((t,e)=>{B();var r=W("stream").Stream;e.exports=n;function n(i){return{ReadStream:s,WriteStream:u};function s(o,a){if(!(this instanceof s))return new s(o,a);r.call(this);var c=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var p=Object.keys(a),l=0,f=p.length;l<f;l++){var d=p[l];this[d]=a[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}i.open(this.path,this.flags,this.mode,function(m,D){if(m){c.emit("error",m),c.readable=!1;return}c.fd=D,c.emit("open",D),c._read()})}function u(o,a){if(!(this instanceof u))return new u(o,a);r.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var c=Object.keys(a),p=0,l=c.length;p<l;p++){var f=c[p];this[f]=a[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Fi=R((t,e)=>{"use strict";B(),e.exports=n;var r=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var s={__proto__:r(i)};else var s=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(s,u,Object.getOwnPropertyDescriptor(i,u))}),s}}),mt=R((t,e)=>{B();var r=W("fs"),n=bi(),i=wi(),s=Fi(),u=W("util"),o,a;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),a=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",a="___graceful-fs.previous");function c(){}function p(h,y){Object.defineProperty(h,o,{get:function(){return y}})}var l=c;u.debuglog?l=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var h=u.format.apply(u,arguments);h="GFS4: "+h.split(/\n/).join(`
7
+ GFS4: `),console.error(h)}),r[o]||(f=global[o]||[],p(r,f),r.close=function(h){function y(S,g){return h.call(r,S,function(A){A||v(),typeof g=="function"&&g.apply(this,arguments)})}return Object.defineProperty(y,a,{value:h}),y}(r.close),r.closeSync=function(h){function y(S){h.apply(r,arguments),v()}return Object.defineProperty(y,a,{value:h}),y}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(r[o]),W("assert").equal(r[o].length,0)}));var f;global[o]||p(global,r[o]),e.exports=d(s(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(e.exports=d(r),r.__patched=!0);function d(h){n(h),h.gracefulify=d,h.createReadStream=M,h.createWriteStream=nt;var y=h.readFile;h.readFile=S;function S(O,L,G){return typeof L=="function"&&(G=L,L=null),K(O,L,G);function K(it,et,Q,X){return y(it,et,function(rt){rt&&(rt.code==="EMFILE"||rt.code==="ENFILE")?m([K,[it,et,Q],rt,X||Date.now(),Date.now()]):typeof Q=="function"&&Q.apply(this,arguments)})}}var g=h.writeFile;h.writeFile=A;function A(O,L,G,K){return typeof G=="function"&&(K=G,G=null),it(O,L,G,K);function it(et,Q,X,rt,lt){return g(et,Q,X,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?m([it,[et,Q,X,rt],z,lt||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var C=h.appendFile;C&&(h.appendFile=_);function _(O,L,G,K){return typeof G=="function"&&(K=G,G=null),it(O,L,G,K);function it(et,Q,X,rt,lt){return C(et,Q,X,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?m([it,[et,Q,X,rt],z,lt||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var w=h.copyFile;w&&(h.copyFile=x);function x(O,L,G,K){return typeof G=="function"&&(K=G,G=0),it(O,L,G,K);function it(et,Q,X,rt,lt){return w(et,Q,X,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?m([it,[et,Q,X,rt],z,lt||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var k=h.readdir;h.readdir=I;var P=/^v[0-5]\./;function I(O,L,G){typeof L=="function"&&(G=L,L=null);var K=P.test(process.version)?function(et,Q,X,rt){return k(et,it(et,Q,X,rt))}:function(et,Q,X,rt){return k(et,Q,it(et,Q,X,rt))};return K(O,L,G);function it(et,Q,X,rt){return function(lt,z){lt&&(lt.code==="EMFILE"||lt.code==="ENFILE")?m([K,[et,Q,X],lt,rt||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof X=="function"&&X.call(this,lt,z))}}}if(process.version.substr(0,4)==="v0.8"){var F=i(h);j=F.ReadStream,V=F.WriteStream}var b=h.ReadStream;b&&(j.prototype=Object.create(b.prototype),j.prototype.open=q);var N=h.WriteStream;N&&(V.prototype=Object.create(N.prototype),V.prototype.open=Z),Object.defineProperty(h,"ReadStream",{get:function(){return j},set:function(O){j=O},enumerable:!0,configurable:!0}),Object.defineProperty(h,"WriteStream",{get:function(){return V},set:function(O){V=O},enumerable:!0,configurable:!0});var T=j;Object.defineProperty(h,"FileReadStream",{get:function(){return T},set:function(O){T=O},enumerable:!0,configurable:!0});var $=V;Object.defineProperty(h,"FileWriteStream",{get:function(){return $},set:function(O){$=O},enumerable:!0,configurable:!0});function j(O,L){return this instanceof j?(b.apply(this,arguments),this):j.apply(Object.create(j.prototype),arguments)}function q(){var O=this;ut(O.path,O.flags,O.mode,function(L,G){L?(O.autoClose&&O.destroy(),O.emit("error",L)):(O.fd=G,O.emit("open",G),O.read())})}function V(O,L){return this instanceof V?(N.apply(this,arguments),this):V.apply(Object.create(V.prototype),arguments)}function Z(){var O=this;ut(O.path,O.flags,O.mode,function(L,G){L?(O.destroy(),O.emit("error",L)):(O.fd=G,O.emit("open",G))})}function M(O,L){return new h.ReadStream(O,L)}function nt(O,L){return new h.WriteStream(O,L)}var ot=h.open;h.open=ut;function ut(O,L,G,K){return typeof G=="function"&&(K=G,G=null),it(O,L,G,K);function it(et,Q,X,rt,lt){return ot(et,Q,X,function(z,Y){z&&(z.code==="EMFILE"||z.code==="ENFILE")?m([it,[et,Q,X,rt],z,lt||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}return h}function m(h){l("ENQUEUE",h[0].name,h[1]),r[o].push(h),E()}var D;function v(){for(var h=Date.now(),y=0;y<r[o].length;++y)r[o][y].length>2&&(r[o][y][3]=h,r[o][y][4]=h);E()}function E(){if(clearTimeout(D),D=void 0,r[o].length!==0){var h=r[o].shift(),y=h[0],S=h[1],g=h[2],A=h[3],C=h[4];if(A===void 0)l("RETRY",y.name,S),y.apply(null,S);else if(Date.now()-A>=6e4){l("TIMEOUT",y.name,S);var _=S.pop();typeof _=="function"&&_.call(null,g)}else{var w=Date.now()-C,x=Math.max(C-A,1),k=Math.min(x*1.2,100);w>=k?(l("RETRY",y.name,S),y.apply(null,S.concat([A]))):r[o].push(h)}D===void 0&&(D=setTimeout(E,0))}}}),br=R(t=>{"use strict";B();var e=wt().fromCallback,r=mt(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof r[i]=="function");Object.keys(r).forEach(i=>{i!=="promises"&&(t[i]=r[i])}),n.forEach(i=>{t[i]=e(r[i])}),t.exists=function(i,s){return typeof s=="function"?r.exists(i,s):new Promise(u=>r.exists(i,u))},t.read=function(i,s,u,o,a,c){return typeof c=="function"?r.read(i,s,u,o,a,c):new Promise((p,l)=>{r.read(i,s,u,o,a,(f,d,m)=>{if(f)return l(f);p({bytesRead:d,buffer:m})})})},t.write=function(i,s,...u){return typeof u[u.length-1]=="function"?r.write(i,s,...u):new Promise((o,a)=>{r.write(i,s,...u,(c,p,l)=>{if(c)return a(c);o({bytesWritten:p,buffer:l})})})},typeof r.realpath.native=="function"&&(t.realpath.native=e(r.realpath.native))}),wr=R((t,e)=>{"use strict";B();var r=W("path");function n(u){return u=r.normalize(r.resolve(u)).split(r.sep),u.length>0?u[0]:null}var i=/[<>:"|?*]/;function s(u){let o=n(u);return u=u.replace(o,""),i.test(u)}e.exports={getRootPath:n,invalidWin32Path:s}}),_i=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=wr().invalidWin32Path,s=parseInt("0777",8);function u(o,a,c,p){if(typeof a=="function"?(c=a,a={}):(!a||typeof a!="object")&&(a={mode:a}),process.platform==="win32"&&i(o)){let d=new Error(o+" contains invalid WIN32 path characters.");return d.code="EINVAL",c(d)}let l=a.mode,f=a.fs||r;l===void 0&&(l=s&~process.umask()),p||(p=null),c=c||function(){},o=n.resolve(o),f.mkdir(o,l,d=>{if(!d)return p=p||o,c(null,p);switch(d.code){case"ENOENT":if(n.dirname(o)===o)return c(d);u(n.dirname(o),a,(m,D)=>{m?c(m,D):u(o,a,c,D)});break;default:f.stat(o,(m,D)=>{m||!D.isDirectory()?c(d,p):c(null,p)});break}})}e.exports=u}),ki=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=wr().invalidWin32Path,s=parseInt("0777",8);function u(o,a,c){(!a||typeof a!="object")&&(a={mode:a});let p=a.mode,l=a.fs||r;if(process.platform==="win32"&&i(o)){let f=new Error(o+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}p===void 0&&(p=s&~process.umask()),c||(c=null),o=n.resolve(o);try{l.mkdirSync(o,p),c=c||o}catch(f){if(f.code==="ENOENT"){if(n.dirname(o)===o)throw f;c=u(n.dirname(o),a,c),u(o,a,c)}else{let d;try{d=l.statSync(o)}catch{throw f}if(!d.isDirectory())throw f}}return c}e.exports=u}),Ft=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=r(_i()),i=ki();e.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),Fr=R((t,e)=>{"use strict";B();var r=mt(),n=W("os"),i=W("path");function s(){let p=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));p=i.join(n.tmpdir(),p);let l=new Date(1435410243862);r.writeFileSync(p,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=r.openSync(p,"r+");return r.futimesSync(f,l,l),r.closeSync(f),r.statSync(p).mtime>1435410243e3}function u(p){let l=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let f=new Date(1435410243862);r.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return p(d);r.open(l,"r+",(m,D)=>{if(m)return p(m);r.futimes(D,f,f,v=>{if(v)return p(v);r.close(D,E=>{if(E)return p(E);r.stat(l,(h,y)=>{if(h)return p(h);p(null,y.mtime>1435410243e3)})})})})})}function o(p){if(typeof p=="number")return Math.floor(p/1e3)*1e3;if(p instanceof Date)return new Date(Math.floor(p.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function a(p,l,f,d){r.open(p,"r+",(m,D)=>{if(m)return d(m);r.futimes(D,l,f,v=>{r.close(D,E=>{d&&d(v||E)})})})}function c(p,l,f){let d=r.openSync(p,"r+");return r.futimesSync(d,l,f),r.closeSync(d)}e.exports={hasMillisRes:u,hasMillisResSync:s,timeRemoveMillis:o,utimesMillis:a,utimesMillisSync:c}}),De=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=10,s=5,u=0,o=process.versions.node.split("."),a=Number.parseInt(o[0],10),c=Number.parseInt(o[1],10),p=Number.parseInt(o[2],10);function l(){return a>i||a===i&&(c>s||c===s&&p>=u)}function f(S,g,A){l()?r.stat(S,{bigint:!0},(C,_)=>{if(C)return A(C);r.stat(g,{bigint:!0},(w,x)=>w?w.code==="ENOENT"?A(null,{srcStat:_,destStat:null}):A(w):A(null,{srcStat:_,destStat:x}))}):r.stat(S,(C,_)=>{if(C)return A(C);r.stat(g,(w,x)=>w?w.code==="ENOENT"?A(null,{srcStat:_,destStat:null}):A(w):A(null,{srcStat:_,destStat:x}))})}function d(S,g){let A,C;l()?A=r.statSync(S,{bigint:!0}):A=r.statSync(S);try{l()?C=r.statSync(g,{bigint:!0}):C=r.statSync(g)}catch(_){if(_.code==="ENOENT")return{srcStat:A,destStat:null};throw _}return{srcStat:A,destStat:C}}function m(S,g,A,C){f(S,g,(_,w)=>{if(_)return C(_);let{srcStat:x,destStat:k}=w;return k&&k.ino&&k.dev&&k.ino===x.ino&&k.dev===x.dev?C(new Error("Source and destination must not be the same.")):x.isDirectory()&&h(S,g)?C(new Error(y(S,g,A))):C(null,{srcStat:x,destStat:k})})}function D(S,g,A){let{srcStat:C,destStat:_}=d(S,g);if(_&&_.ino&&_.dev&&_.ino===C.ino&&_.dev===C.dev)throw new Error("Source and destination must not be the same.");if(C.isDirectory()&&h(S,g))throw new Error(y(S,g,A));return{srcStat:C,destStat:_}}function v(S,g,A,C,_){let w=n.resolve(n.dirname(S)),x=n.resolve(n.dirname(A));if(x===w||x===n.parse(x).root)return _();l()?r.stat(x,{bigint:!0},(k,P)=>k?k.code==="ENOENT"?_():_(k):P.ino&&P.dev&&P.ino===g.ino&&P.dev===g.dev?_(new Error(y(S,A,C))):v(S,g,x,C,_)):r.stat(x,(k,P)=>k?k.code==="ENOENT"?_():_(k):P.ino&&P.dev&&P.ino===g.ino&&P.dev===g.dev?_(new Error(y(S,A,C))):v(S,g,x,C,_))}function E(S,g,A,C){let _=n.resolve(n.dirname(S)),w=n.resolve(n.dirname(A));if(w===_||w===n.parse(w).root)return;let x;try{l()?x=r.statSync(w,{bigint:!0}):x=r.statSync(w)}catch(k){if(k.code==="ENOENT")return;throw k}if(x.ino&&x.dev&&x.ino===g.ino&&x.dev===g.dev)throw new Error(y(S,A,C));return E(S,g,w,C)}function h(S,g){let A=n.resolve(S).split(n.sep).filter(_=>_),C=n.resolve(g).split(n.sep).filter(_=>_);return A.reduce((_,w,x)=>_&&C[x]===w,!0)}function y(S,g,A){return`Cannot ${A} '${S}' to a subdirectory of itself, '${g}'.`}e.exports={checkPaths:m,checkPathsSync:D,checkParentPaths:v,checkParentPathsSync:E,isSrcSubdir:h}}),xi=R((t,e)=>{"use strict";B(),e.exports=function(r){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(r)}catch{return new Buffer(r)}return new Buffer(r)}}),Bi=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=Ft().mkdirsSync,s=Fr().utimesMillisSync,u=De();function o(g,A,C){typeof C=="function"&&(C={filter:C}),C=C||{},C.clobber="clobber"in C?!!C.clobber:!0,C.overwrite="overwrite"in C?!!C.overwrite:C.clobber,C.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
8
8
 
9
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:_,destStat:w}=u.checkPathsSync(g,A,"copy");return u.checkParentPathsSync(g,_,A,"copy"),a(w,g,A,C)}function a(g,A,C,_){if(_.filter&&!_.filter(A,C))return;let w=n.dirname(C);return r.existsSync(w)||i(w),c(g,A,C,_)}function c(g,A,C,_){if(!(_.filter&&!_.filter(A,C)))return p(g,A,C,_)}function p(g,A,C,_){let w=(_.dereference?r.statSync:r.lstatSync)(A);if(w.isDirectory())return D(w,g,A,C,_);if(w.isFile()||w.isCharacterDevice()||w.isBlockDevice())return l(w,g,A,C,_);if(w.isSymbolicLink())return y(g,A,C,_)}function l(g,A,C,_,w){return A?f(g,C,_,w):d(g,C,_,w)}function f(g,A,C,_){if(_.overwrite)return r.unlinkSync(C),d(g,A,C,_);if(_.errorOnExist)throw new Error(`'${C}' already exists`)}function d(g,A,C,_){return typeof r.copyFileSync=="function"?(r.copyFileSync(A,C),r.chmodSync(C,g.mode),_.preserveTimestamps?s(C,g.atime,g.mtime):void 0):m(g,A,C,_)}function m(g,A,C,_){let w=_i()(65536),x=r.openSync(A,"r"),k=r.openSync(C,"w",g.mode),P=0;for(;P<g.size;){let I=r.readSync(x,w,0,65536,P);r.writeSync(k,w,0,I),P+=I}_.preserveTimestamps&&r.futimesSync(k,g.atime,g.mtime),r.closeSync(x),r.closeSync(k)}function D(g,A,C,_,w){if(!A)return v(g,C,_,w);if(A&&!A.isDirectory())throw new Error(`Cannot overwrite non-directory '${_}' with directory '${C}'.`);return E(C,_,w)}function v(g,A,C,_){return r.mkdirSync(C),E(A,C,_),r.chmodSync(C,g.mode)}function E(g,A,C){r.readdirSync(g).forEach(_=>h(_,g,A,C))}function h(g,A,C,_){let w=n.join(A,g),x=n.join(C,g),{destStat:k}=u.checkPathsSync(w,x,"copy");return c(k,w,x,_)}function y(g,A,C,_){let w=r.readlinkSync(A);if(_.dereference&&(w=n.resolve(process.cwd(),w)),g){let x;try{x=r.readlinkSync(C)}catch(k){if(k.code==="EINVAL"||k.code==="UNKNOWN")return r.symlinkSync(w,C);throw k}if(_.dereference&&(x=n.resolve(process.cwd(),x)),u.isSrcSubdir(w,x))throw new Error(`Cannot copy '${w}' to a subdirectory of itself, '${x}'.`);if(r.statSync(C).isDirectory()&&u.isSrcSubdir(x,w))throw new Error(`Cannot overwrite '${x}' with '${w}'.`);return S(w,C)}else return r.symlinkSync(w,C)}function S(g,A){return r.unlinkSync(A),r.symlinkSync(g,A)}e.exports=o}),wr=R((t,e)=>{"use strict";B(),e.exports={copySync:ki()}}),Ot=R((t,e)=>{"use strict";B();var r=wt().fromPromise,n=Cr();function i(s){return n.access(s).then(()=>!0).catch(()=>!1)}e.exports={pathExists:r(i),pathExistsSync:n.existsSync}}),xi=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=Ft().mkdirs,s=Ot().pathExists,u=br().utimesMillis,o=ge();function a(w,x,k,P){typeof k=="function"&&!P?(P=k,k={}):typeof k=="function"&&(k={filter:k}),P=P||function(){},k=k||{},k.clobber="clobber"in k?!!k.clobber:!0,k.overwrite="overwrite"in k?!!k.overwrite:k.clobber,k.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
9
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:_,destStat:w}=u.checkPathsSync(g,A,"copy");return u.checkParentPathsSync(g,_,A,"copy"),a(w,g,A,C)}function a(g,A,C,_){if(_.filter&&!_.filter(A,C))return;let w=n.dirname(C);return r.existsSync(w)||i(w),c(g,A,C,_)}function c(g,A,C,_){if(!(_.filter&&!_.filter(A,C)))return p(g,A,C,_)}function p(g,A,C,_){let w=(_.dereference?r.statSync:r.lstatSync)(A);if(w.isDirectory())return D(w,g,A,C,_);if(w.isFile()||w.isCharacterDevice()||w.isBlockDevice())return l(w,g,A,C,_);if(w.isSymbolicLink())return y(g,A,C,_)}function l(g,A,C,_,w){return A?f(g,C,_,w):d(g,C,_,w)}function f(g,A,C,_){if(_.overwrite)return r.unlinkSync(C),d(g,A,C,_);if(_.errorOnExist)throw new Error(`'${C}' already exists`)}function d(g,A,C,_){return typeof r.copyFileSync=="function"?(r.copyFileSync(A,C),r.chmodSync(C,g.mode),_.preserveTimestamps?s(C,g.atime,g.mtime):void 0):m(g,A,C,_)}function m(g,A,C,_){let w=xi()(65536),x=r.openSync(A,"r"),k=r.openSync(C,"w",g.mode),P=0;for(;P<g.size;){let I=r.readSync(x,w,0,65536,P);r.writeSync(k,w,0,I),P+=I}_.preserveTimestamps&&r.futimesSync(k,g.atime,g.mtime),r.closeSync(x),r.closeSync(k)}function D(g,A,C,_,w){if(!A)return v(g,C,_,w);if(A&&!A.isDirectory())throw new Error(`Cannot overwrite non-directory '${_}' with directory '${C}'.`);return E(C,_,w)}function v(g,A,C,_){return r.mkdirSync(C),E(A,C,_),r.chmodSync(C,g.mode)}function E(g,A,C){r.readdirSync(g).forEach(_=>h(_,g,A,C))}function h(g,A,C,_){let w=n.join(A,g),x=n.join(C,g),{destStat:k}=u.checkPathsSync(w,x,"copy");return c(k,w,x,_)}function y(g,A,C,_){let w=r.readlinkSync(A);if(_.dereference&&(w=n.resolve(process.cwd(),w)),g){let x;try{x=r.readlinkSync(C)}catch(k){if(k.code==="EINVAL"||k.code==="UNKNOWN")return r.symlinkSync(w,C);throw k}if(_.dereference&&(x=n.resolve(process.cwd(),x)),u.isSrcSubdir(w,x))throw new Error(`Cannot copy '${w}' to a subdirectory of itself, '${x}'.`);if(r.statSync(C).isDirectory()&&u.isSrcSubdir(x,w))throw new Error(`Cannot overwrite '${x}' with '${w}'.`);return S(w,C)}else return r.symlinkSync(w,C)}function S(g,A){return r.unlinkSync(A),r.symlinkSync(g,A)}e.exports=o}),_r=R((t,e)=>{"use strict";B(),e.exports={copySync:Bi()}}),Rt=R((t,e)=>{"use strict";B();var r=wt().fromPromise,n=br();function i(s){return n.access(s).then(()=>!0).catch(()=>!1)}e.exports={pathExists:r(i),pathExistsSync:n.existsSync}}),Oi=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=Ft().mkdirs,s=Rt().pathExists,u=Fr().utimesMillis,o=De();function a(w,x,k,P){typeof k=="function"&&!P?(P=k,k={}):typeof k=="function"&&(k={filter:k}),P=P||function(){},k=k||{},k.clobber="clobber"in k?!!k.clobber:!0,k.overwrite="overwrite"in k?!!k.overwrite:k.clobber,k.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
10
10
 
11
- see https://github.com/jprichardson/node-fs-extra/issues/269`),o.checkPaths(w,x,"copy",(I,F)=>{if(I)return P(I);let{srcStat:b,destStat:M}=F;o.checkParentPaths(w,b,x,"copy",T=>T?P(T):k.filter?p(c,M,w,x,k,P):c(M,w,x,k,P))})}function c(w,x,k,P,I){let F=n.dirname(k);s(F,(b,M)=>{if(b)return I(b);if(M)return l(w,x,k,P,I);i(F,T=>T?I(T):l(w,x,k,P,I))})}function p(w,x,k,P,I,F){Promise.resolve(I.filter(k,P)).then(b=>b?w(x,k,P,I,F):F(),b=>F(b))}function l(w,x,k,P,I){return P.filter?p(f,w,x,k,P,I):f(w,x,k,P,I)}function f(w,x,k,P,I){(P.dereference?r.stat:r.lstat)(x,(F,b)=>{if(F)return I(F);if(b.isDirectory())return h(b,w,x,k,P,I);if(b.isFile()||b.isCharacterDevice()||b.isBlockDevice())return d(b,w,x,k,P,I);if(b.isSymbolicLink())return C(w,x,k,P,I)})}function d(w,x,k,P,I,F){return x?m(w,k,P,I,F):D(w,k,P,I,F)}function m(w,x,k,P,I){if(P.overwrite)r.unlink(k,F=>F?I(F):D(w,x,k,P,I));else return P.errorOnExist?I(new Error(`'${k}' already exists`)):I()}function D(w,x,k,P,I){return typeof r.copyFile=="function"?r.copyFile(x,k,F=>F?I(F):E(w,k,P,I)):v(w,x,k,P,I)}function v(w,x,k,P,I){let F=r.createReadStream(x);F.on("error",b=>I(b)).once("open",()=>{let b=r.createWriteStream(k,{mode:w.mode});b.on("error",M=>I(M)).on("open",()=>F.pipe(b)).once("close",()=>E(w,k,P,I))})}function E(w,x,k,P){r.chmod(x,w.mode,I=>I?P(I):k.preserveTimestamps?u(x,w.atime,w.mtime,P):P())}function h(w,x,k,P,I,F){return x?x&&!x.isDirectory()?F(new Error(`Cannot overwrite non-directory '${P}' with directory '${k}'.`)):S(k,P,I,F):y(w,k,P,I,F)}function y(w,x,k,P,I){r.mkdir(k,F=>{if(F)return I(F);S(x,k,P,b=>b?I(b):r.chmod(k,w.mode,I))})}function S(w,x,k,P){r.readdir(w,(I,F)=>I?P(I):g(F,w,x,k,P))}function g(w,x,k,P,I){let F=w.pop();return F?A(w,F,x,k,P,I):I()}function A(w,x,k,P,I,F){let b=n.join(k,x),M=n.join(P,x);o.checkPaths(b,M,"copy",(T,$)=>{if(T)return F(T);let{destStat:j}=$;l(j,b,M,I,q=>q?F(q):g(w,k,P,I,F))})}function C(w,x,k,P,I){r.readlink(x,(F,b)=>{if(F)return I(F);if(P.dereference&&(b=n.resolve(process.cwd(),b)),w)r.readlink(k,(M,T)=>M?M.code==="EINVAL"||M.code==="UNKNOWN"?r.symlink(b,k,I):I(M):(P.dereference&&(T=n.resolve(process.cwd(),T)),o.isSrcSubdir(b,T)?I(new Error(`Cannot copy '${b}' to a subdirectory of itself, '${T}'.`)):w.isDirectory()&&o.isSrcSubdir(T,b)?I(new Error(`Cannot overwrite '${T}' with '${b}'.`)):_(b,k,I)));else return r.symlink(b,k,I)})}function _(w,x,k){r.unlink(x,P=>P?k(P):r.symlink(w,x,k))}e.exports=a}),Fr=R((t,e)=>{"use strict";B();var r=wt().fromCallback;e.exports={copy:r(xi())}}),Bi=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=W("assert"),s=process.platform==="win32";function u(v){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(E=>{v[E]=v[E]||r[E],E=E+"Sync",v[E]=v[E]||r[E]}),v.maxBusyTries=v.maxBusyTries||3}function o(v,E,h){let y=0;typeof E=="function"&&(h=E,E={}),i(v,"rimraf: missing path"),i.strictEqual(typeof v,"string","rimraf: path should be a string"),i.strictEqual(typeof h,"function","rimraf: callback function required"),i(E,"rimraf: invalid options argument provided"),i.strictEqual(typeof E,"object","rimraf: options should be object"),u(E),a(v,E,function S(g){if(g){if((g.code==="EBUSY"||g.code==="ENOTEMPTY"||g.code==="EPERM")&&y<E.maxBusyTries){y++;let A=y*100;return setTimeout(()=>a(v,E,S),A)}g.code==="ENOENT"&&(g=null)}h(g)})}function a(v,E,h){i(v),i(E),i(typeof h=="function"),E.lstat(v,(y,S)=>{if(y&&y.code==="ENOENT")return h(null);if(y&&y.code==="EPERM"&&s)return c(v,E,y,h);if(S&&S.isDirectory())return l(v,E,y,h);E.unlink(v,g=>{if(g){if(g.code==="ENOENT")return h(null);if(g.code==="EPERM")return s?c(v,E,g,h):l(v,E,g,h);if(g.code==="EISDIR")return l(v,E,g,h)}return h(g)})})}function c(v,E,h,y){i(v),i(E),i(typeof y=="function"),h&&i(h instanceof Error),E.chmod(v,438,S=>{S?y(S.code==="ENOENT"?null:h):E.stat(v,(g,A)=>{g?y(g.code==="ENOENT"?null:h):A.isDirectory()?l(v,E,h,y):E.unlink(v,y)})})}function p(v,E,h){let y;i(v),i(E),h&&i(h instanceof Error);try{E.chmodSync(v,438)}catch(S){if(S.code==="ENOENT")return;throw h}try{y=E.statSync(v)}catch(S){if(S.code==="ENOENT")return;throw h}y.isDirectory()?m(v,E,h):E.unlinkSync(v)}function l(v,E,h,y){i(v),i(E),h&&i(h instanceof Error),i(typeof y=="function"),E.rmdir(v,S=>{S&&(S.code==="ENOTEMPTY"||S.code==="EEXIST"||S.code==="EPERM")?f(v,E,y):S&&S.code==="ENOTDIR"?y(h):y(S)})}function f(v,E,h){i(v),i(E),i(typeof h=="function"),E.readdir(v,(y,S)=>{if(y)return h(y);let g=S.length,A;if(g===0)return E.rmdir(v,h);S.forEach(C=>{o(n.join(v,C),E,_=>{if(!A){if(_)return h(A=_);--g===0&&E.rmdir(v,h)}})})})}function d(v,E){let h;E=E||{},u(E),i(v,"rimraf: missing path"),i.strictEqual(typeof v,"string","rimraf: path should be a string"),i(E,"rimraf: missing options"),i.strictEqual(typeof E,"object","rimraf: options should be object");try{h=E.lstatSync(v)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&s&&p(v,E,y)}try{h&&h.isDirectory()?m(v,E,null):E.unlinkSync(v)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return s?p(v,E,y):m(v,E,y);if(y.code!=="EISDIR")throw y;m(v,E,y)}}function m(v,E,h){i(v),i(E),h&&i(h instanceof Error);try{E.rmdirSync(v)}catch(y){if(y.code==="ENOTDIR")throw h;if(y.code==="ENOTEMPTY"||y.code==="EEXIST"||y.code==="EPERM")D(v,E);else if(y.code!=="ENOENT")throw y}}function D(v,E){if(i(v),i(E),E.readdirSync(v).forEach(h=>d(n.join(v,h),E)),s){let h=Date.now();do try{return E.rmdirSync(v,E)}catch{}while(Date.now()-h<500)}else return E.rmdirSync(v,E)}e.exports=o,o.sync=d}),ye=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=Bi();e.exports={remove:r(n),removeSync:n.sync}}),Oi=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=mt(),i=W("path"),s=Ft(),u=ye(),o=r(function(c,p){p=p||function(){},n.readdir(c,(l,f)=>{if(l)return s.mkdirs(c,p);f=f.map(m=>i.join(c,m)),d();function d(){let m=f.pop();if(!m)return p();u.remove(m,D=>{if(D)return p(D);d()})}})});function a(c){let p;try{p=n.readdirSync(c)}catch{return s.mkdirsSync(c)}p.forEach(l=>{l=i.join(c,l),u.removeSync(l)})}e.exports={emptyDirSync:a,emptydirSync:a,emptyDir:o,emptydir:o}}),Ri=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=W("path"),i=mt(),s=Ft(),u=Ot().pathExists;function o(c,p){function l(){i.writeFile(c,"",f=>{if(f)return p(f);p()})}i.stat(c,(f,d)=>{if(!f&&d.isFile())return p();let m=n.dirname(c);u(m,(D,v)=>{if(D)return p(D);if(v)return l();s.mkdirs(m,E=>{if(E)return p(E);l()})})})}function a(c){let p;try{p=i.statSync(c)}catch{}if(p&&p.isFile())return;let l=n.dirname(c);i.existsSync(l)||s.mkdirsSync(l),i.writeFileSync(c,"")}e.exports={createFile:r(o),createFileSync:a}}),Pi=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=W("path"),i=mt(),s=Ft(),u=Ot().pathExists;function o(c,p,l){function f(d,m){i.link(d,m,D=>{if(D)return l(D);l(null)})}u(p,(d,m)=>{if(d)return l(d);if(m)return l(null);i.lstat(c,D=>{if(D)return D.message=D.message.replace("lstat","ensureLink"),l(D);let v=n.dirname(p);u(v,(E,h)=>{if(E)return l(E);if(h)return f(c,p);s.mkdirs(v,y=>{if(y)return l(y);f(c,p)})})})})}function a(c,p){if(i.existsSync(p))return;try{i.lstatSync(c)}catch(f){throw f.message=f.message.replace("lstat","ensureLink"),f}let l=n.dirname(p);return i.existsSync(l)||s.mkdirsSync(l),i.linkSync(c,p)}e.exports={createLink:r(o),createLinkSync:a}}),Ti=R((t,e)=>{"use strict";B();var r=W("path"),n=mt(),i=Ot().pathExists;function s(o,a,c){if(r.isAbsolute(o))return n.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),c(p)):c(null,{toCwd:o,toDst:o}));{let p=r.dirname(a),l=r.join(p,o);return i(l,(f,d)=>f?c(f):d?c(null,{toCwd:l,toDst:o}):n.lstat(o,m=>m?(m.message=m.message.replace("lstat","ensureSymlink"),c(m)):c(null,{toCwd:o,toDst:r.relative(p,o)})))}}function u(o,a){let c;if(r.isAbsolute(o)){if(c=n.existsSync(o),!c)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let p=r.dirname(a),l=r.join(p,o);if(c=n.existsSync(l),c)return{toCwd:l,toDst:o};if(c=n.existsSync(o),!c)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:r.relative(p,o)}}}e.exports={symlinkPaths:s,symlinkPathsSync:u}}),Ii=R((t,e)=>{"use strict";B();var r=mt();function n(s,u,o){if(o=typeof u=="function"?u:o,u=typeof u=="function"?!1:u,u)return o(null,u);r.lstat(s,(a,c)=>{if(a)return o(null,"file");u=c&&c.isDirectory()?"dir":"file",o(null,u)})}function i(s,u){let o;if(u)return u;try{o=r.lstatSync(s)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}e.exports={symlinkType:n,symlinkTypeSync:i}}),Li=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=W("path"),i=mt(),s=Ft(),u=s.mkdirs,o=s.mkdirsSync,a=Ti(),c=a.symlinkPaths,p=a.symlinkPathsSync,l=Ii(),f=l.symlinkType,d=l.symlinkTypeSync,m=Ot().pathExists;function D(E,h,y,S){S=typeof y=="function"?y:S,y=typeof y=="function"?!1:y,m(h,(g,A)=>{if(g)return S(g);if(A)return S(null);c(E,h,(C,_)=>{if(C)return S(C);E=_.toDst,f(_.toCwd,y,(w,x)=>{if(w)return S(w);let k=n.dirname(h);m(k,(P,I)=>{if(P)return S(P);if(I)return i.symlink(E,h,x,S);u(k,F=>{if(F)return S(F);i.symlink(E,h,x,S)})})})})})}function v(E,h,y){if(i.existsSync(h))return;let S=p(E,h);E=S.toDst,y=d(S.toCwd,y);let g=n.dirname(h);return i.existsSync(g)||o(g),i.symlinkSync(E,h,y)}e.exports={createSymlink:r(D),createSymlinkSync:v}}),Ni=R((t,e)=>{"use strict";B();var r=Ri(),n=Pi(),i=Li();e.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),ji=R((t,e)=>{B();var r;try{r=mt()}catch{r=W("fs")}function n(p,l,f){f==null&&(f=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var d=l.fs||r,m=!0;"throws"in l&&(m=l.throws),d.readFile(p,l,function(D,v){if(D)return f(D);v=a(v);var E;try{E=JSON.parse(v,l?l.reviver:null)}catch(h){return m?(h.message=p+": "+h.message,f(h)):f(null,null)}f(null,E)})}function i(p,l){l=l||{},typeof l=="string"&&(l={encoding:l});var f=l.fs||r,d=!0;"throws"in l&&(d=l.throws);try{var m=f.readFileSync(p,l);return m=a(m),JSON.parse(m,l.reviver)}catch(D){if(d)throw D.message=p+": "+D.message,D;return null}}function s(p,l){var f,d=`
12
- `;typeof l=="object"&&l!==null&&(l.spaces&&(f=l.spaces),l.EOL&&(d=l.EOL));var m=JSON.stringify(p,l?l.replacer:null,f);return m.replace(/\n/g,d)+d}function u(p,l,f,d){d==null&&(d=f,f={}),f=f||{};var m=f.fs||r,D="";try{D=s(l,f)}catch(v){d&&d(v,null);return}m.writeFile(p,D,f,d)}function o(p,l,f){f=f||{};var d=f.fs||r,m=s(l,f);return d.writeFileSync(p,m,f)}function a(p){return Buffer.isBuffer(p)&&(p=p.toString("utf8")),p=p.replace(/^\uFEFF/,""),p}var c={readFile:n,readFileSync:i,writeFile:u,writeFileSync:o};e.exports=c}),Te=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=ji();e.exports={readJson:r(n.readFile),readJsonSync:n.readFileSync,writeJson:r(n.writeFile),writeJsonSync:n.writeFileSync}}),Mi=R((t,e)=>{"use strict";B();var r=W("path"),n=Ft(),i=Ot().pathExists,s=Te();function u(o,a,c,p){typeof c=="function"&&(p=c,c={});let l=r.dirname(o);i(l,(f,d)=>{if(f)return p(f);if(d)return s.writeJson(o,a,c,p);n.mkdirs(l,m=>{if(m)return p(m);s.writeJson(o,a,c,p)})})}e.exports=u}),$i=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=Ft(),s=Te();function u(o,a,c){let p=n.dirname(o);r.existsSync(p)||i.mkdirsSync(p),s.writeJsonSync(o,a,c)}e.exports=u}),Hi=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=Te();n.outputJson=r(Mi()),n.outputJsonSync=$i(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,e.exports=n}),Gi=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=wr().copySync,s=ye().removeSync,u=Ft().mkdirpSync,o=ge();function a(f,d,m){m=m||{};let D=m.overwrite||m.clobber||!1,{srcStat:v}=o.checkPathsSync(f,d,"move");return o.checkParentPathsSync(f,v,d,"move"),u(n.dirname(d)),c(f,d,D)}function c(f,d,m){if(m)return s(d),p(f,d,m);if(r.existsSync(d))throw new Error("dest already exists.");return p(f,d,m)}function p(f,d,m){try{r.renameSync(f,d)}catch(D){if(D.code!=="EXDEV")throw D;return l(f,d,m)}}function l(f,d,m){return i(f,d,{overwrite:m,errorOnExist:!0}),s(f)}e.exports=a}),Wi=R((t,e)=>{"use strict";B(),e.exports={moveSync:Gi()}}),Ui=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=Fr().copy,s=ye().remove,u=Ft().mkdirp,o=Ot().pathExists,a=ge();function c(d,m,D,v){typeof D=="function"&&(v=D,D={});let E=D.overwrite||D.clobber||!1;a.checkPaths(d,m,"move",(h,y)=>{if(h)return v(h);let{srcStat:S}=y;a.checkParentPaths(d,S,m,"move",g=>{if(g)return v(g);u(n.dirname(m),A=>A?v(A):p(d,m,E,v))})})}function p(d,m,D,v){if(D)return s(m,E=>E?v(E):l(d,m,D,v));o(m,(E,h)=>E?v(E):h?v(new Error("dest already exists.")):l(d,m,D,v))}function l(d,m,D,v){r.rename(d,m,E=>E?E.code!=="EXDEV"?v(E):f(d,m,D,v):v())}function f(d,m,D,v){i(d,m,{overwrite:D,errorOnExist:!0},E=>E?v(E):s(d,v))}e.exports=c}),qi=R((t,e)=>{"use strict";B();var r=wt().fromCallback;e.exports={move:r(Ui())}}),Ki=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=mt(),i=W("path"),s=Ft(),u=Ot().pathExists;function o(c,p,l,f){typeof l=="function"&&(f=l,l="utf8");let d=i.dirname(c);u(d,(m,D)=>{if(m)return f(m);if(D)return n.writeFile(c,p,l,f);s.mkdirs(d,v=>{if(v)return f(v);n.writeFile(c,p,l,f)})})}function a(c,...p){let l=i.dirname(c);if(n.existsSync(l))return n.writeFileSync(c,...p);s.mkdirsSync(l),n.writeFileSync(c,...p)}e.exports={outputFile:r(o),outputFileSync:a}}),Vi=R((t,e)=>{"use strict";B(),e.exports=Object.assign({},Cr(),wr(),Fr(),Oi(),Ni(),Hi(),Ft(),Wi(),qi(),Ki(),Ot(),ye());var r=W("fs");Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(e.exports,"promises",{get(){return r.promises}})});B();B();var Kc=It(mi());B();B();function Ji(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}B();B();function Re(t){return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(t)}B();function Yi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qi(t,e){if(e&&(Re(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yi(t)}B();function me(t){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},me(t)}B();B();function oe(t,e){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},oe(t,e)}function Xi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oe(t,e)}B();B();function Zi(t){return Function.toString.call(t).indexOf("[native code]")!==-1}B();B();function zi(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function he(t,e,r){return zi()?he=Reflect.construct.bind():he=function(n,i,s){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(n,u),a=new o;return s&&oe(a,s.prototype),a},he.apply(null,arguments)}function Pe(t){var e=typeof Map=="function"?new Map:void 0;return Pe=function(r){if(r===null||!Zi(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return he(r,arguments,me(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),oe(n,r)},Pe(t)}var Vc=It(Ai()),Jc=It(Vi()),Yc=function(t){Xi(e,t);function e(r){var n;return Ji(this,e),n=Qi(this,me(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(Pe(Error));B();var eo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.splitWhen=t.flatten=void 0;function e(n){return n.reduce((i,s)=>[].concat(i,s),[])}t.flatten=e;function r(n,i){let s=[[]],u=0;for(let o of n)i(o)?(u++,s[u]=[]):s[u].push(o);return s}t.splitWhen=r}),ro=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEnoentCodeError=void 0;function e(r){return r.code==="ENOENT"}t.isEnoentCodeError=e}),no=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new e(n,i)}t.createDirentFromStats=r}),io=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;var e=W("path"),r=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(a){return a.replace(/\\/g,"/")}t.unixify=i;function s(a,c){return e.resolve(a,c)}t.makeAbsolute=s;function u(a){return a.replace(n,"\\$2")}t.escape=u;function o(a){if(a.charAt(0)==="."){let c=a.charAt(1);if(c==="/"||c==="\\")return a.slice(r)}return a}t.removeLeadingDotSegment=o}),oo=R((t,e)=>{B(),e.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(n[2])return!0;r=r.slice(n.index+n[0].length)}return!1}}),ao=R((t,e)=>{B();var r=oo(),n={"{":"}","(":")","[":"]"},i=function(u){if(u[0]==="!")return!0;for(var o=0,a=-2,c=-2,p=-2,l=-2,f=-2;o<u.length;){if(u[o]==="*"||u[o+1]==="?"&&/[\].+)]/.test(u[o])||c!==-1&&u[o]==="["&&u[o+1]!=="]"&&(c<o&&(c=u.indexOf("]",o)),c>o&&(f===-1||f>c||(f=u.indexOf("\\",o),f===-1||f>c)))||p!==-1&&u[o]==="{"&&u[o+1]!=="}"&&(p=u.indexOf("}",o),p>o&&(f=u.indexOf("\\",o),f===-1||f>p))||l!==-1&&u[o]==="("&&u[o+1]==="?"&&/[:!=]/.test(u[o+2])&&u[o+3]!==")"&&(l=u.indexOf(")",o),l>o&&(f=u.indexOf("\\",o),f===-1||f>l))||a!==-1&&u[o]==="("&&u[o+1]!=="|"&&(a<o&&(a=u.indexOf("|",o)),a!==-1&&u[a+1]!==")"&&(l=u.indexOf(")",a),l>a&&(f=u.indexOf("\\",a),f===-1||f>l))))return!0;if(u[o]==="\\"){var d=u[o+1];o+=2;var m=n[d];if(m){var D=u.indexOf(m,o);D!==-1&&(o=D+1)}if(u[o]==="!")return!0}else o++}return!1},s=function(u){if(u[0]==="!")return!0;for(var o=0;o<u.length;){if(/[*?{}()[\]]/.test(u[o]))return!0;if(u[o]==="\\"){var a=u[o+1];o+=2;var c=n[a];if(c){var p=u.indexOf(c,o);p!==-1&&(o=p+1)}if(u[o]==="!")return!0}else o++}return!1};e.exports=function(u,o){if(typeof u!="string"||u==="")return!1;if(r(u))return!0;var a=i;return o&&o.strict===!1&&(a=s),a(u)}}),uo=R((t,e)=>{"use strict";B();var r=ao(),n=W("path").posix.dirname,i=W("os").platform()==="win32",s="/",u=/\\/g,o=/[\{\[].*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function(p,l){var f=Object.assign({flipBackslashes:!0},l);f.flipBackslashes&&i&&p.indexOf(s)<0&&(p=p.replace(u,s)),o.test(p)&&(p+=s),p+="a";do p=n(p);while(r(p)||a.test(p));return p.replace(c,"$1")}}),We=R(t=>{"use strict";B(),t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,r)=>e.nodes.find(n=>n.type===r),t.exceedsLimit=(e,r,n=1,i)=>i===!1||!t.isInteger(e)||!t.isInteger(r)?!1:(Number(r)-Number(e))/Number(n)>=i,t.escapeNode=(e,r=0,n)=>{let i=e.nodes[r];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1,t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]),t.flatten=(...e)=>{let r=[],n=i=>{for(let s=0;s<i.length;s++){let u=i[s];Array.isArray(u)?n(u,r):u!==void 0&&r.push(u)}return r};return n(e),r}}),Ue=R((t,e)=>{"use strict";B();var r=We();e.exports=(n,i={})=>{let s=(u,o={})=>{let a=i.escapeInvalid&&r.isInvalidBrace(o),c=u.invalid===!0&&i.escapeInvalid===!0,p="";if(u.value)return(a||c)&&r.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let l of u.nodes)p+=s(l);return p};return s(n)}}),so=R((t,e)=>{"use strict";B(),e.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}),co=R((t,e)=>{"use strict";B();var r=so(),n=(h,y,S)=>{if(r(h)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(y===void 0||h===y)return String(h);if(r(y)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let g={relaxZeros:!0,...S};typeof g.strictZeros=="boolean"&&(g.relaxZeros=g.strictZeros===!1);let A=String(g.relaxZeros),C=String(g.shorthand),_=String(g.capture),w=String(g.wrap),x=h+":"+y+"="+A+C+_+w;if(n.cache.hasOwnProperty(x))return n.cache[x].result;let k=Math.min(h,y),P=Math.max(h,y);if(Math.abs(k-P)===1){let T=h+"|"+y;return g.capture?`(${T})`:g.wrap===!1?T:`(?:${T})`}let I=v(h)||v(y),F={min:h,max:y,a:k,b:P},b=[],M=[];if(I&&(F.isPadded=I,F.maxLen=String(F.max).length),k<0){let T=P<0?Math.abs(P):1;M=o(T,Math.abs(k),F,g),k=F.a=0}return P>=0&&(b=o(k,P,F,g)),F.negatives=M,F.positives=b,F.result=i(M,b,g),g.capture===!0?F.result=`(${F.result})`:g.wrap!==!1&&b.length+M.length>1&&(F.result=`(?:${F.result})`),n.cache[x]=F,F.result};function i(h,y,S){let g=a(h,y,"-",!1,S)||[],A=a(y,h,"",!1,S)||[],C=a(h,y,"-?",!0,S)||[];return g.concat(C).concat(A).join("|")}function s(h,y){let S=1,g=1,A=f(h,S),C=new Set([y]);for(;h<=A&&A<=y;)C.add(A),S+=1,A=f(h,S);for(A=d(y+1,g)-1;h<A&&A<=y;)C.add(A),g+=1,A=d(y+1,g)-1;return C=[...C],C.sort(p),C}function u(h,y,S){if(h===y)return{pattern:h,count:[],digits:0};let g=c(h,y),A=g.length,C="",_=0;for(let w=0;w<A;w++){let[x,k]=g[w];x===k?C+=x:x!=="0"||k!=="9"?C+=D(x,k,S):_++}return _&&(C+=S.shorthand===!0?"\\d":"[0-9]"),{pattern:C,count:[_],digits:A}}function o(h,y,S,g){let A=s(h,y),C=[],_=h,w;for(let x=0;x<A.length;x++){let k=A[x],P=u(String(_),String(k),g),I="";if(!S.isPadded&&w&&w.pattern===P.pattern){w.count.length>1&&w.count.pop(),w.count.push(P.count[0]),w.string=w.pattern+m(w.count),_=k+1;continue}S.isPadded&&(I=E(k,S,g)),P.string=I+P.pattern+m(P.count),C.push(P),_=k+1,w=P}return C}function a(h,y,S,g,A){let C=[];for(let _ of h){let{string:w}=_;!g&&!l(y,"string",w)&&C.push(S+w),g&&l(y,"string",w)&&C.push(S+w)}return C}function c(h,y){let S=[];for(let g=0;g<h.length;g++)S.push([h[g],y[g]]);return S}function p(h,y){return h>y?1:y>h?-1:0}function l(h,y,S){return h.some(g=>g[y]===S)}function f(h,y){return Number(String(h).slice(0,-y)+"9".repeat(y))}function d(h,y){return h-h%Math.pow(10,y)}function m(h){let[y=0,S=""]=h;return S||y>1?`{${y+(S?","+S:"")}}`:""}function D(h,y,S){return`[${h}${y-h===1?"":"-"}${y}]`}function v(h){return/^-?(0+)\d/.test(h)}function E(h,y,S){if(!y.isPadded)return h;let g=Math.abs(y.maxLen-String(h).length),A=S.relaxZeros!==!1;switch(g){case 0:return"";case 1:return A?"0?":"0";case 2:return A?"0{0,2}":"00";default:return A?`0{0,${g}}`:`0{${g}}`}}n.cache={},n.clearCache=()=>n.cache={},e.exports=n}),Gr=R((t,e)=>{"use strict";B();var r=W("util"),n=co(),i=g=>g!==null&&typeof g=="object"&&!Array.isArray(g),s=g=>A=>g===!0?Number(A):String(A),u=g=>typeof g=="number"||typeof g=="string"&&g!=="",o=g=>Number.isInteger(+g),a=g=>{let A=`${g}`,C=-1;if(A[0]==="-"&&(A=A.slice(1)),A==="0")return!1;for(;A[++C]==="0";);return C>0},c=(g,A,C)=>typeof g=="string"||typeof A=="string"?!0:C.stringify===!0,p=(g,A,C)=>{if(A>0){let _=g[0]==="-"?"-":"";_&&(g=g.slice(1)),g=_+g.padStart(_?A-1:A,"0")}return C===!1?String(g):g},l=(g,A)=>{let C=g[0]==="-"?"-":"";for(C&&(g=g.slice(1),A--);g.length<A;)g="0"+g;return C?"-"+g:g},f=(g,A)=>{g.negatives.sort((k,P)=>k<P?-1:k>P?1:0),g.positives.sort((k,P)=>k<P?-1:k>P?1:0);let C=A.capture?"":"?:",_="",w="",x;return g.positives.length&&(_=g.positives.join("|")),g.negatives.length&&(w=`-(${C}${g.negatives.join("|")})`),_&&w?x=`${_}|${w}`:x=_||w,A.wrap?`(${C}${x})`:x},d=(g,A,C,_)=>{if(C)return n(g,A,{wrap:!1,..._});let w=String.fromCharCode(g);if(g===A)return w;let x=String.fromCharCode(A);return`[${w}-${x}]`},m=(g,A,C)=>{if(Array.isArray(g)){let _=C.wrap===!0,w=C.capture?"":"?:";return _?`(${w}${g.join("|")})`:g.join("|")}return n(g,A,C)},D=(...g)=>new RangeError("Invalid range arguments: "+r.inspect(...g)),v=(g,A,C)=>{if(C.strictRanges===!0)throw D([g,A]);return[]},E=(g,A)=>{if(A.strictRanges===!0)throw new TypeError(`Expected step "${g}" to be a number`);return[]},h=(g,A,C=1,_={})=>{let w=Number(g),x=Number(A);if(!Number.isInteger(w)||!Number.isInteger(x)){if(_.strictRanges===!0)throw D([g,A]);return[]}w===0&&(w=0),x===0&&(x=0);let k=w>x,P=String(g),I=String(A),F=String(C);C=Math.max(Math.abs(C),1);let b=a(P)||a(I)||a(F),M=b?Math.max(P.length,I.length,F.length):0,T=b===!1&&c(g,A,_)===!1,$=_.transform||s(T);if(_.toRegex&&C===1)return d(l(g,M),l(A,M),!0,_);let j={negatives:[],positives:[]},q=N=>j[N<0?"negatives":"positives"].push(Math.abs(N)),J=[],Z=0;for(;k?w>=x:w<=x;)_.toRegex===!0&&C>1?q(w):J.push(p($(w,Z),M,T)),w=k?w-C:w+C,Z++;return _.toRegex===!0?C>1?f(j,_):m(J,null,{wrap:!1,..._}):J},y=(g,A,C=1,_={})=>{if(!o(g)&&g.length>1||!o(A)&&A.length>1)return v(g,A,_);let w=_.transform||(T=>String.fromCharCode(T)),x=`${g}`.charCodeAt(0),k=`${A}`.charCodeAt(0),P=x>k,I=Math.min(x,k),F=Math.max(x,k);if(_.toRegex&&C===1)return d(I,F,!1,_);let b=[],M=0;for(;P?x>=k:x<=k;)b.push(w(x,M)),x=P?x-C:x+C,M++;return _.toRegex===!0?m(b,null,{wrap:!1,options:_}):b},S=(g,A,C,_={})=>{if(A==null&&u(g))return[g];if(!u(g)||!u(A))return v(g,A,_);if(typeof C=="function")return S(g,A,1,{transform:C});if(i(C))return S(g,A,0,C);let w={..._};return w.capture===!0&&(w.wrap=!0),C=C||w.step||1,o(C)?o(g)&&o(A)?h(g,A,C,w):y(g,A,Math.max(Math.abs(C),1),w):C!=null&&!i(C)?E(C,w):S(g,A,1,C)};e.exports=S}),lo=R((t,e)=>{"use strict";B();var r=Gr(),n=We(),i=(s,u={})=>{let o=(a,c={})=>{let p=n.isInvalidBrace(c),l=a.invalid===!0&&u.escapeInvalid===!0,f=p===!0||l===!0,d=u.escapeInvalid===!0?"\\":"",m="";if(a.isOpen===!0||a.isClose===!0)return d+a.value;if(a.type==="open")return f?d+a.value:"(";if(a.type==="close")return f?d+a.value:")";if(a.type==="comma")return a.prev.type==="comma"?"":f?a.value:"|";if(a.value)return a.value;if(a.nodes&&a.ranges>0){let D=n.reduce(a.nodes),v=r(...D,{...u,wrap:!1,toRegex:!0});if(v.length!==0)return D.length>1&&v.length>1?`(${v})`:v}if(a.nodes)for(let D of a.nodes)m+=o(D,a);return m};return o(s)};e.exports=i}),po=R((t,e)=>{"use strict";B();var r=Gr(),n=Ue(),i=We(),s=(o="",a="",c=!1)=>{let p=[];if(o=[].concat(o),a=[].concat(a),!a.length)return o;if(!o.length)return c?i.flatten(a).map(l=>`{${l}}`):a;for(let l of o)if(Array.isArray(l))for(let f of l)p.push(s(f,a,c));else for(let f of a)c===!0&&typeof f=="string"&&(f=`{${f}}`),p.push(Array.isArray(f)?s(l,f,c):l+f);return i.flatten(p)},u=(o,a={})=>{let c=a.rangeLimit===void 0?1e3:a.rangeLimit,p=(l,f={})=>{l.queue=[];let d=f,m=f.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,m=d.queue;if(l.invalid||l.dollar){m.push(s(m.pop(),n(l,a)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){m.push(s(m.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let h=i.reduce(l.nodes);if(i.exceedsLimit(...h,a.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let y=r(...h,a);y.length===0&&(y=n(l,a)),m.push(s(m.pop(),y)),l.nodes=[];return}let D=i.encloseBrace(l),v=l.queue,E=l;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,v=E.queue;for(let h=0;h<l.nodes.length;h++){let y=l.nodes[h];if(y.type==="comma"&&l.type==="brace"){h===1&&v.push(""),v.push("");continue}if(y.type==="close"){m.push(s(m.pop(),v,D));continue}if(y.value&&y.type!=="open"){v.push(s(v.pop(),y.value));continue}y.nodes&&p(y,l)}return v};return i.flatten(p(o))};e.exports=u}),fo=R((t,e)=>{"use strict";B(),e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
13
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),ho=R((t,e)=>{"use strict";B();var r=Ue(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:s,CHAR_COMMA:u,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:a,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:D,CHAR_NO_BREAK_SPACE:v,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=fo(),h=(y,S={})=>{if(typeof y!="string")throw new TypeError("Expected a string");let g=S||{},A=typeof g.maxLength=="number"?Math.min(n,g.maxLength):n;if(y.length>A)throw new SyntaxError(`Input length (${y.length}), exceeds max characters (${A})`);let C={type:"root",input:y,nodes:[]},_=[C],w=C,x=C,k=0,P=y.length,I=0,F=0,b,M={},T=()=>y[I++],$=j=>{if(j.type==="text"&&x.type==="dot"&&(x.type="text"),x&&x.type==="text"&&j.type==="text"){x.value+=j.value;return}return w.nodes.push(j),j.parent=w,j.prev=x,x=j,j};for($({type:"bos"});I<P;)if(w=_[_.length-1],b=T(),!(b===E||b===v)){if(b===i){$({type:"text",value:(S.keepEscaping?b:"")+T()});continue}if(b===d){$({type:"text",value:"\\"+b});continue}if(b===f){k++;let j=!0,q;for(;I<P&&(q=T());){if(b+=q,q===f){k++;continue}if(q===i){b+=T();continue}if(q===d&&(k--,k===0))break}$({type:"text",value:b});continue}if(b===a){w=$({type:"paren",nodes:[]}),_.push(w),$({type:"text",value:b});continue}if(b===c){if(w.type!=="paren"){$({type:"text",value:b});continue}w=_.pop(),$({type:"text",value:b}),w=_[_.length-1];continue}if(b===m||b===D||b===s){let j=b,q;for(S.keepQuotes!==!0&&(b="");I<P&&(q=T());){if(q===i){b+=q+T();continue}if(q===j){S.keepQuotes===!0&&(b+=q);break}b+=q}$({type:"text",value:b});continue}if(b===p){F++;let j=x.value&&x.value.slice(-1)==="$"||w.dollar===!0;w=$({type:"brace",open:!0,close:!1,dollar:j,depth:F,commas:0,ranges:0,nodes:[]}),_.push(w),$({type:"open",value:b});continue}if(b===l){if(w.type!=="brace"){$({type:"text",value:b});continue}let j="close";w=_.pop(),w.close=!0,$({type:j,value:b}),F--,w=_[_.length-1];continue}if(b===u&&F>0){if(w.ranges>0){w.ranges=0;let j=w.nodes.shift();w.nodes=[j,{type:"text",value:r(w)}]}$({type:"comma",value:b}),w.commas++;continue}if(b===o&&F>0&&w.commas===0){let j=w.nodes;if(F===0||j.length===0){$({type:"text",value:b});continue}if(x.type==="dot"){if(w.range=[],x.value+=b,x.type="range",w.nodes.length!==3&&w.nodes.length!==5){w.invalid=!0,w.ranges=0,x.type="text";continue}w.ranges++,w.args=[];continue}if(x.type==="range"){j.pop();let q=j[j.length-1];q.value+=x.value+b,x=q,w.ranges--;continue}$({type:"dot",value:b});continue}$({type:"text",value:b})}do if(w=_.pop(),w.type!=="root"){w.nodes.forEach(J=>{J.nodes||(J.type==="open"&&(J.isOpen=!0),J.type==="close"&&(J.isClose=!0),J.nodes||(J.type="text"),J.invalid=!0)});let j=_[_.length-1],q=j.nodes.indexOf(w);j.nodes.splice(q,1,...w.nodes)}while(_.length>0);return $({type:"eos"}),C};e.exports=h}),mo=R((t,e)=>{"use strict";B();var r=Ue(),n=lo(),i=po(),s=ho(),u=(o,a={})=>{let c=[];if(Array.isArray(o))for(let p of o){let l=u.create(p,a);Array.isArray(l)?c.push(...l):c.push(l)}else c=[].concat(u.create(o,a));return a&&a.expand===!0&&a.nodupes===!0&&(c=[...new Set(c)]),c};u.parse=(o,a={})=>s(o,a),u.stringify=(o,a={})=>r(typeof o=="string"?u.parse(o,a):o,a),u.compile=(o,a={})=>(typeof o=="string"&&(o=u.parse(o,a)),n(o,a)),u.expand=(o,a={})=>{typeof o=="string"&&(o=u.parse(o,a));let c=i(o,a);return a.noempty===!0&&(c=c.filter(Boolean)),a.nodupes===!0&&(c=[...new Set(c)]),c},u.create=(o,a={})=>o===""||o.length<3?[o]:a.expand!==!0?u.compile(o,a):u.expand(o,a),e.exports=u}),Se=R((t,e)=>{"use strict";B();var r=W("path"),n="\\\\/",i=`[^${n}]`,s="\\.",u="\\+",o="\\?",a="\\/",c="(?=.)",p="[^/]",l=`(?:${a}|$)`,f=`(?:^|${a})`,d=`${s}{1,2}${l}`,m=`(?!${s})`,D=`(?!${f}${d})`,v=`(?!${s}{0,1}${l})`,E=`(?!${d})`,h=`[^.${a}]`,y=`${p}*?`,S={DOT_LITERAL:s,PLUS_LITERAL:u,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,QMARK:p,END_ANCHOR:l,DOTS_SLASH:d,NO_DOT:m,NO_DOTS:D,NO_DOT_SLASH:v,NO_DOTS_SLASH:E,QMARK_NO_DOT:h,STAR:y,START_ANCHOR:f},g={...S,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${s}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${s})`,NO_DOTS:`(?!(?:^|[${n}])${s}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${s}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${s}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},A={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:A,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(C){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${C.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(C){return C===!0?g:S}}}),be=R(t=>{"use strict";B();var e=W("path"),r=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:u}=Se();t.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),t.hasRegexChars=o=>s.test(o),t.isRegexChar=o=>o.length===1&&t.hasRegexChars(o),t.escapeRegex=o=>o.replace(u,"\\$1"),t.toPosixSlashes=o=>o.replace(n,"/"),t.removeBackslashes=o=>o.replace(i,a=>a==="\\"?"":a),t.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},t.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||e.sep==="\\",t.escapeLast=(o,a,c)=>{let p=o.lastIndexOf(a,c);return p===-1?o:o[p-1]==="\\"?t.escapeLast(o,a,p-1):`${o.slice(0,p)}\\${o.slice(p)}`},t.removePrefix=(o,a={})=>{let c=o;return c.startsWith("./")&&(c=c.slice(2),a.prefix="./"),c},t.wrapOutput=(o,a={},c={})=>{let p=c.contains?"":"^",l=c.contains?"":"$",f=`${p}(?:${o})${l}`;return a.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}}),go=R((t,e)=>{"use strict";B();var r=be(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:u,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:d,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:D,CHAR_RIGHT_PARENTHESES:v,CHAR_RIGHT_SQUARE_BRACKET:E}=Se(),h=g=>g===c||g===s,y=g=>{g.isPrefix!==!0&&(g.depth=g.isGlobstar?1/0:1)},S=(g,A)=>{let C=A||{},_=g.length-1,w=C.parts===!0||C.scanToEnd===!0,x=[],k=[],P=[],I=g,F=-1,b=0,M=0,T=!1,$=!1,j=!1,q=!1,J=!1,Z=!1,N=!1,nt=!1,ot=!1,ut=!1,O=0,L,G,K={value:"",depth:0,isGlob:!1},it=()=>F>=_,et=()=>I.charCodeAt(F+1),Q=()=>(L=G,I.charCodeAt(++F));for(;F<_;){G=Q();let Y;if(G===s){N=K.backslashes=!0,G=Q(),G===p&&(Z=!0);continue}if(Z===!0||G===p){for(O++;it()!==!0&&(G=Q());){if(G===s){N=K.backslashes=!0,Q();continue}if(G===p){O++;continue}if(Z!==!0&&G===o&&(G=Q())===o){if(T=K.isBrace=!0,j=K.isGlob=!0,ut=!0,w===!0)continue;break}if(Z!==!0&&G===u){if(T=K.isBrace=!0,j=K.isGlob=!0,ut=!0,w===!0)continue;break}if(G===D&&(O--,O===0)){Z=!1,T=K.isBrace=!0,ut=!0;break}}if(w===!0)continue;break}if(G===c){if(x.push(F),k.push(K),K={value:"",depth:0,isGlob:!1},ut===!0)continue;if(L===o&&F===b+1){b+=2;continue}M=F+1;continue}if(C.noext!==!0&&(G===d||G===i||G===n||G===m||G===a)&&et()===l){if(j=K.isGlob=!0,q=K.isExtglob=!0,ut=!0,G===a&&F===b&&(ot=!0),w===!0){for(;it()!==!0&&(G=Q());){if(G===s){N=K.backslashes=!0,G=Q();continue}if(G===v){j=K.isGlob=!0,ut=!0;break}}continue}break}if(G===n){if(L===n&&(J=K.isGlobstar=!0),j=K.isGlob=!0,ut=!0,w===!0)continue;break}if(G===m){if(j=K.isGlob=!0,ut=!0,w===!0)continue;break}if(G===f){for(;it()!==!0&&(Y=Q());){if(Y===s){N=K.backslashes=!0,Q();continue}if(Y===E){$=K.isBracket=!0,j=K.isGlob=!0,ut=!0;break}}if(w===!0)continue;break}if(C.nonegate!==!0&&G===a&&F===b){nt=K.negated=!0,b++;continue}if(C.noparen!==!0&&G===l){if(j=K.isGlob=!0,w===!0){for(;it()!==!0&&(G=Q());){if(G===l){N=K.backslashes=!0,G=Q();continue}if(G===v){ut=!0;break}}continue}break}if(j===!0){if(ut=!0,w===!0)continue;break}}C.noext===!0&&(q=!1,j=!1);let X=I,rt="",lt="";b>0&&(rt=I.slice(0,b),I=I.slice(b),M-=b),X&&j===!0&&M>0?(X=I.slice(0,M),lt=I.slice(M)):j===!0?(X="",lt=I):X=I,X&&X!==""&&X!=="/"&&X!==I&&h(X.charCodeAt(X.length-1))&&(X=X.slice(0,-1)),C.unescape===!0&&(lt&&(lt=r.removeBackslashes(lt)),X&&N===!0&&(X=r.removeBackslashes(X)));let z={prefix:rt,input:g,start:b,base:X,glob:lt,isBrace:T,isBracket:$,isGlob:j,isExtglob:q,isGlobstar:J,negated:nt,negatedExtglob:ot};if(C.tokens===!0&&(z.maxDepth=0,h(G)||k.push(K),z.tokens=k),C.parts===!0||C.tokens===!0){let Y;for(let yt=0;yt<x.length;yt++){let ke=Y?Y+1:b,U=x[yt],at=g.slice(ke,U);C.tokens&&(yt===0&&b!==0?(k[yt].isPrefix=!0,k[yt].value=rt):k[yt].value=at,y(k[yt]),z.maxDepth+=k[yt].depth),(yt!==0||at!=="")&&P.push(at),Y=U}if(Y&&Y+1<g.length){let yt=g.slice(Y+1);P.push(yt),C.tokens&&(k[k.length-1].value=yt,y(k[k.length-1]),z.maxDepth+=k[k.length-1].depth)}z.slashes=x,z.parts=P}return z};e.exports=S}),yo=R((t,e)=>{"use strict";B();var r=Se(),n=be(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=r,c=(f,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...f,d);f.sort();let m=`[${f.join("-")}]`;try{new RegExp(m)}catch{return f.map(D=>n.escapeRegex(D)).join("..")}return m},p=(f,d)=>`Missing ${f}: "${d}" - use "\\\\${d}" to match literal characters`,l=(f,d)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=a[f]||f;let m={...d},D=typeof m.maxLength=="number"?Math.min(i,m.maxLength):i,v=f.length;if(v>D)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${D}`);let E={type:"bos",value:"",output:m.prepend||""},h=[E],y=m.capture?"":"?:",S=n.isWindows(d),g=r.globChars(S),A=r.extglobChars(g),{DOT_LITERAL:C,PLUS_LITERAL:_,SLASH_LITERAL:w,ONE_CHAR:x,DOTS_SLASH:k,NO_DOT:P,NO_DOT_SLASH:I,NO_DOTS_SLASH:F,QMARK:b,QMARK_NO_DOT:M,STAR:T,START_ANCHOR:$}=g,j=U=>`(${y}(?:(?!${$}${U.dot?k:C}).)*?)`,q=m.dot?"":P,J=m.dot?b:M,Z=m.bash===!0?j(m):T;m.capture&&(Z=`(${Z})`),typeof m.noext=="boolean"&&(m.noextglob=m.noext);let N={input:f,index:-1,start:0,dot:m.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};f=n.removePrefix(f,N),v=f.length;let nt=[],ot=[],ut=[],O=E,L,G=()=>N.index===v-1,K=N.peek=(U=1)=>f[N.index+U],it=N.advance=()=>f[++N.index]||"",et=()=>f.slice(N.index+1),Q=(U="",at=0)=>{N.consumed+=U,N.index+=at},X=U=>{N.output+=U.output!=null?U.output:U.value,Q(U.value)},rt=()=>{let U=1;for(;K()==="!"&&(K(2)!=="("||K(3)==="?");)it(),N.start++,U++;return U%2===0?!1:(N.negated=!0,N.start++,!0)},lt=U=>{N[U]++,ut.push(U)},z=U=>{N[U]--,ut.pop()},Y=U=>{if(O.type==="globstar"){let at=N.braces>0&&(U.type==="comma"||U.type==="brace"),H=U.extglob===!0||nt.length&&(U.type==="pipe"||U.type==="paren");U.type!=="slash"&&U.type!=="paren"&&!at&&!H&&(N.output=N.output.slice(0,-O.output.length),O.type="star",O.value="*",O.output=Z,N.output+=O.output)}if(nt.length&&U.type!=="paren"&&(nt[nt.length-1].inner+=U.value),(U.value||U.output)&&X(U),O&&O.type==="text"&&U.type==="text"){O.value+=U.value,O.output=(O.output||"")+U.value;return}U.prev=O,h.push(U),O=U},yt=(U,at)=>{let H={...A[at],conditions:1,inner:""};H.prev=O,H.parens=N.parens,H.output=N.output;let tt=(m.capture?"(":"")+H.open;lt("parens"),Y({type:U,value:at,output:N.output?"":x}),Y({type:"paren",extglob:!0,value:it(),output:tt}),nt.push(H)},ke=U=>{let at=U.close+(m.capture?")":""),H;if(U.type==="negate"){let tt=Z;if(U.inner&&U.inner.length>1&&U.inner.includes("/")&&(tt=j(m)),(tt!==Z||G()||/^\)+$/.test(et()))&&(at=U.close=`)$))${tt}`),U.inner.includes("*")&&(H=et())&&/^\.[^\\/.]+$/.test(H)){let pt=l(H,{...d,fastpaths:!1}).output;at=U.close=`)${pt})${tt})`}U.prev.type==="bos"&&(N.negatedExtglob=!0)}Y({type:"paren",extglob:!0,value:L,output:at}),z("parens")};if(m.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let U=!1,at=f.replace(o,(H,tt,pt,Et,ht,xe)=>Et==="\\"?(U=!0,H):Et==="?"?tt?tt+Et+(ht?b.repeat(ht.length):""):xe===0?J+(ht?b.repeat(ht.length):""):b.repeat(pt.length):Et==="."?C.repeat(pt.length):Et==="*"?tt?tt+Et+(ht?Z:""):Z:tt?H:`\\${H}`);return U===!0&&(m.unescape===!0?at=at.replace(/\\/g,""):at=at.replace(/\\+/g,H=>H.length%2===0?"\\\\":H?"\\":"")),at===f&&m.contains===!0?(N.output=f,N):(N.output=n.wrapOutput(at,N,d),N)}for(;!G();){if(L=it(),L==="\0")continue;if(L==="\\"){let H=K();if(H==="/"&&m.bash!==!0||H==="."||H===";")continue;if(!H){L+="\\",Y({type:"text",value:L});continue}let tt=/^\\+/.exec(et()),pt=0;if(tt&&tt[0].length>2&&(pt=tt[0].length,N.index+=pt,pt%2!==0&&(L+="\\")),m.unescape===!0?L=it():L+=it(),N.brackets===0){Y({type:"text",value:L});continue}}if(N.brackets>0&&(L!=="]"||O.value==="["||O.value==="[^")){if(m.posix!==!1&&L===":"){let H=O.value.slice(1);if(H.includes("[")&&(O.posix=!0,H.includes(":"))){let tt=O.value.lastIndexOf("["),pt=O.value.slice(0,tt),Et=O.value.slice(tt+2),ht=s[Et];if(ht){O.value=pt+ht,N.backtrack=!0,it(),!E.output&&h.indexOf(O)===1&&(E.output=x);continue}}}(L==="["&&K()!==":"||L==="-"&&K()==="]")&&(L=`\\${L}`),L==="]"&&(O.value==="["||O.value==="[^")&&(L=`\\${L}`),m.posix===!0&&L==="!"&&O.value==="["&&(L="^"),O.value+=L,X({value:L});continue}if(N.quotes===1&&L!=='"'){L=n.escapeRegex(L),O.value+=L,X({value:L});continue}if(L==='"'){N.quotes=N.quotes===1?0:1,m.keepQuotes===!0&&Y({type:"text",value:L});continue}if(L==="("){lt("parens"),Y({type:"paren",value:L});continue}if(L===")"){if(N.parens===0&&m.strictBrackets===!0)throw new SyntaxError(p("opening","("));let H=nt[nt.length-1];if(H&&N.parens===H.parens+1){ke(nt.pop());continue}Y({type:"paren",value:L,output:N.parens?")":"\\)"}),z("parens");continue}if(L==="["){if(m.nobracket===!0||!et().includes("]")){if(m.nobracket!==!0&&m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));L=`\\${L}`}else lt("brackets");Y({type:"bracket",value:L});continue}if(L==="]"){if(m.nobracket===!0||O&&O.type==="bracket"&&O.value.length===1){Y({type:"text",value:L,output:`\\${L}`});continue}if(N.brackets===0){if(m.strictBrackets===!0)throw new SyntaxError(p("opening","["));Y({type:"text",value:L,output:`\\${L}`});continue}z("brackets");let H=O.value.slice(1);if(O.posix!==!0&&H[0]==="^"&&!H.includes("/")&&(L=`/${L}`),O.value+=L,X({value:L}),m.literalBrackets===!1||n.hasRegexChars(H))continue;let tt=n.escapeRegex(O.value);if(N.output=N.output.slice(0,-O.value.length),m.literalBrackets===!0){N.output+=tt,O.value=tt;continue}O.value=`(${y}${tt}|${O.value})`,N.output+=O.value;continue}if(L==="{"&&m.nobrace!==!0){lt("braces");let H={type:"brace",value:L,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};ot.push(H),Y(H);continue}if(L==="}"){let H=ot[ot.length-1];if(m.nobrace===!0||!H){Y({type:"text",value:L,output:L});continue}let tt=")";if(H.dots===!0){let pt=h.slice(),Et=[];for(let ht=pt.length-1;ht>=0&&(h.pop(),pt[ht].type!=="brace");ht--)pt[ht].type!=="dots"&&Et.unshift(pt[ht].value);tt=c(Et,m),N.backtrack=!0}if(H.comma!==!0&&H.dots!==!0){let pt=N.output.slice(0,H.outputIndex),Et=N.tokens.slice(H.tokensIndex);H.value=H.output="\\{",L=tt="\\}",N.output=pt;for(let ht of Et)N.output+=ht.output||ht.value}Y({type:"brace",value:L,output:tt}),z("braces"),ot.pop();continue}if(L==="|"){nt.length>0&&nt[nt.length-1].conditions++,Y({type:"text",value:L});continue}if(L===","){let H=L,tt=ot[ot.length-1];tt&&ut[ut.length-1]==="braces"&&(tt.comma=!0,H="|"),Y({type:"comma",value:L,output:H});continue}if(L==="/"){if(O.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",h.pop(),O=E;continue}Y({type:"slash",value:L,output:w});continue}if(L==="."){if(N.braces>0&&O.type==="dot"){O.value==="."&&(O.output=C);let H=ot[ot.length-1];O.type="dots",O.output+=L,O.value+=L,H.dots=!0;continue}if(N.braces+N.parens===0&&O.type!=="bos"&&O.type!=="slash"){Y({type:"text",value:L,output:C});continue}Y({type:"dot",value:L,output:C});continue}if(L==="?"){if(!(O&&O.value==="(")&&m.noextglob!==!0&&K()==="("&&K(2)!=="?"){yt("qmark",L);continue}if(O&&O.type==="paren"){let H=K(),tt=L;if(H==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(O.value==="("&&!/[!=<:]/.test(H)||H==="<"&&!/<([!=]|\w+>)/.test(et()))&&(tt=`\\${L}`),Y({type:"text",value:L,output:tt});continue}if(m.dot!==!0&&(O.type==="slash"||O.type==="bos")){Y({type:"qmark",value:L,output:M});continue}Y({type:"qmark",value:L,output:b});continue}if(L==="!"){if(m.noextglob!==!0&&K()==="("&&(K(2)!=="?"||!/[!=<:]/.test(K(3)))){yt("negate",L);continue}if(m.nonegate!==!0&&N.index===0){rt();continue}}if(L==="+"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){yt("plus",L);continue}if(O&&O.value==="("||m.regex===!1){Y({type:"plus",value:L,output:_});continue}if(O&&(O.type==="bracket"||O.type==="paren"||O.type==="brace")||N.parens>0){Y({type:"plus",value:L});continue}Y({type:"plus",value:_});continue}if(L==="@"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){Y({type:"at",extglob:!0,value:L,output:""});continue}Y({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);let H=u.exec(et());H&&(L+=H[0],N.index+=H[0].length),Y({type:"text",value:L});continue}if(O&&(O.type==="globstar"||O.star===!0)){O.type="star",O.star=!0,O.value+=L,O.output=Z,N.backtrack=!0,N.globstar=!0,Q(L);continue}let U=et();if(m.noextglob!==!0&&/^\([^?]/.test(U)){yt("star",L);continue}if(O.type==="star"){if(m.noglobstar===!0){Q(L);continue}let H=O.prev,tt=H.prev,pt=H.type==="slash"||H.type==="bos",Et=tt&&(tt.type==="star"||tt.type==="globstar");if(m.bash===!0&&(!pt||U[0]&&U[0]!=="/")){Y({type:"star",value:L,output:""});continue}let ht=N.braces>0&&(H.type==="comma"||H.type==="brace"),xe=nt.length&&(H.type==="pipe"||H.type==="paren");if(!pt&&H.type!=="paren"&&!ht&&!xe){Y({type:"star",value:L,output:""});continue}for(;U.slice(0,3)==="/**";){let pe=f[N.index+4];if(pe&&pe!=="/")break;U=U.slice(3),Q("/**",3)}if(H.type==="bos"&&G()){O.type="globstar",O.value+=L,O.output=j(m),N.output=O.output,N.globstar=!0,Q(L);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&!Et&&G()){N.output=N.output.slice(0,-(H.output+O.output).length),H.output=`(?:${H.output}`,O.type="globstar",O.output=j(m)+(m.strictSlashes?")":"|$)"),O.value+=L,N.globstar=!0,N.output+=H.output+O.output,Q(L);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&U[0]==="/"){let pe=U[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(H.output+O.output).length),H.output=`(?:${H.output}`,O.type="globstar",O.output=`${j(m)}${w}|${w}${pe})`,O.value+=L,N.output+=H.output+O.output,N.globstar=!0,Q(L+it()),Y({type:"slash",value:"/",output:""});continue}if(H.type==="bos"&&U[0]==="/"){O.type="globstar",O.value+=L,O.output=`(?:^|${w}|${j(m)}${w})`,N.output=O.output,N.globstar=!0,Q(L+it()),Y({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-O.output.length),O.type="globstar",O.output=j(m),O.value+=L,N.output+=O.output,N.globstar=!0,Q(L);continue}let at={type:"star",value:L,output:Z};if(m.bash===!0){at.output=".*?",(O.type==="bos"||O.type==="slash")&&(at.output=q+at.output),Y(at);continue}if(O&&(O.type==="bracket"||O.type==="paren")&&m.regex===!0){at.output=L,Y(at);continue}(N.index===N.start||O.type==="slash"||O.type==="dot")&&(O.type==="dot"?(N.output+=I,O.output+=I):m.dot===!0?(N.output+=F,O.output+=F):(N.output+=q,O.output+=q),K()!=="*"&&(N.output+=x,O.output+=x)),Y(at)}for(;N.brackets>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));N.output=n.escapeLast(N.output,"["),z("brackets")}for(;N.parens>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing",")"));N.output=n.escapeLast(N.output,"("),z("parens")}for(;N.braces>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","}"));N.output=n.escapeLast(N.output,"{"),z("braces")}if(m.strictSlashes!==!0&&(O.type==="star"||O.type==="bracket")&&Y({type:"maybe_slash",value:"",output:`${w}?`}),N.backtrack===!0){N.output="";for(let U of N.tokens)N.output+=U.output!=null?U.output:U.value,U.suffix&&(N.output+=U.suffix)}return N};l.fastpaths=(f,d)=>{let m={...d},D=typeof m.maxLength=="number"?Math.min(i,m.maxLength):i,v=f.length;if(v>D)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${D}`);f=a[f]||f;let E=n.isWindows(d),{DOT_LITERAL:h,SLASH_LITERAL:y,ONE_CHAR:S,DOTS_SLASH:g,NO_DOT:A,NO_DOTS:C,NO_DOTS_SLASH:_,STAR:w,START_ANCHOR:x}=r.globChars(E),k=m.dot?C:A,P=m.dot?_:A,I=m.capture?"":"?:",F={negated:!1,prefix:""},b=m.bash===!0?".*?":w;m.capture&&(b=`(${b})`);let M=q=>q.noglobstar===!0?b:`(${I}(?:(?!${x}${q.dot?g:h}).)*?)`,T=q=>{switch(q){case"*":return`${k}${S}${b}`;case".*":return`${h}${S}${b}`;case"*.*":return`${k}${b}${h}${S}${b}`;case"*/*":return`${k}${b}${y}${S}${P}${b}`;case"**":return k+M(m);case"**/*":return`(?:${k}${M(m)}${y})?${P}${S}${b}`;case"**/*.*":return`(?:${k}${M(m)}${y})?${P}${b}${h}${S}${b}`;case"**/.*":return`(?:${k}${M(m)}${y})?${h}${S}${b}`;default:{let J=/^(.*?)\.(\w+)$/.exec(q);if(!J)return;let Z=T(J[1]);return Z?Z+h+J[2]:void 0}}},$=n.removePrefix(f,F),j=T($);return j&&m.strictSlashes!==!0&&(j+=`${y}?`),j},e.exports=l}),Do=R((t,e)=>{"use strict";B();var r=W("path"),n=go(),i=yo(),s=be(),u=Se(),o=c=>c&&typeof c=="object"&&!Array.isArray(c),a=(c,p,l=!1)=>{if(Array.isArray(c)){let y=c.map(S=>a(S,p,l));return S=>{for(let g of y){let A=g(S);if(A)return A}return!1}}let f=o(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");let d=p||{},m=s.isWindows(p),D=f?a.compileRe(c,p):a.makeRe(c,p,!1,!0),v=D.state;delete D.state;let E=()=>!1;if(d.ignore){let y={...p,ignore:null,onMatch:null,onResult:null};E=a(d.ignore,y,l)}let h=(y,S=!1)=>{let{isMatch:g,match:A,output:C}=a.test(y,D,p,{glob:c,posix:m}),_={glob:c,state:v,regex:D,posix:m,input:y,output:C,match:A,isMatch:g};return typeof d.onResult=="function"&&d.onResult(_),g===!1?(_.isMatch=!1,S?_:!1):E(y)?(typeof d.onIgnore=="function"&&d.onIgnore(_),_.isMatch=!1,S?_:!1):(typeof d.onMatch=="function"&&d.onMatch(_),S?_:!0)};return l&&(h.state=v),h};a.test=(c,p,l,{glob:f,posix:d}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let m=l||{},D=m.format||(d?s.toPosixSlashes:null),v=c===f,E=v&&D?D(c):c;return v===!1&&(E=D?D(c):c,v=E===f),(v===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?v=a.matchBase(c,p,l,d):v=p.exec(E)),{isMatch:Boolean(v),match:v,output:E}},a.matchBase=(c,p,l,f=s.isWindows(l))=>(p instanceof RegExp?p:a.makeRe(p,l)).test(r.basename(c)),a.isMatch=(c,p,l)=>a(p,l)(c),a.parse=(c,p)=>Array.isArray(c)?c.map(l=>a.parse(l,p)):i(c,{...p,fastpaths:!1}),a.scan=(c,p)=>n(c,p),a.compileRe=(c,p,l=!1,f=!1)=>{if(l===!0)return c.output;let d=p||{},m=d.contains?"":"^",D=d.contains?"":"$",v=`${m}(?:${c.output})${D}`;c&&c.negated===!0&&(v=`^(?!${v}).*$`);let E=a.toRegex(v,p);return f===!0&&(E.state=c),E},a.makeRe=(c,p={},l=!1,f=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(d.output=i.fastpaths(c,p)),d.output||(d=i(c,p)),a.compileRe(d,p,l,f)},a.toRegex=(c,p)=>{try{let l=p||{};return new RegExp(c,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},a.constants=u,e.exports=a}),vo=R((t,e)=>{"use strict";B(),e.exports=Do()}),Eo=R((t,e)=>{"use strict";B();var r=W("util"),n=mo(),i=vo(),s=be(),u=a=>a===""||a==="./",o=(a,c,p)=>{c=[].concat(c),a=[].concat(a);let l=new Set,f=new Set,d=new Set,m=0,D=E=>{d.add(E.output),p&&p.onResult&&p.onResult(E)};for(let E=0;E<c.length;E++){let h=i(String(c[E]),{...p,onResult:D},!0),y=h.state.negated||h.state.negatedExtglob;y&&m++;for(let S of a){let g=h(S,!0);!(y?!g.isMatch:g.isMatch)||(y?l.add(g.output):(l.delete(g.output),f.add(g.output)))}}let v=(m===c.length?[...d]:[...f]).filter(E=>!l.has(E));if(p&&v.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?c.map(E=>E.replace(/\\/g,"")):c}return v};o.match=o,o.matcher=(a,c)=>i(a,c),o.isMatch=(a,c,p)=>i(c,p)(a),o.any=o.isMatch,o.not=(a,c,p={})=>{c=[].concat(c).map(String);let l=new Set,f=[],d=D=>{p.onResult&&p.onResult(D),f.push(D.output)},m=new Set(o(a,c,{...p,onResult:d}));for(let D of f)m.has(D)||l.add(D);return[...l]},o.contains=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);if(Array.isArray(c))return c.some(l=>o.contains(a,l,p));if(typeof c=="string"){if(u(a)||u(c))return!1;if(a.includes(c)||a.startsWith("./")&&a.slice(2).includes(c))return!0}return o.isMatch(a,c,{...p,contains:!0})},o.matchKeys=(a,c,p)=>{if(!s.isObject(a))throw new TypeError("Expected the first argument to be an object");let l=o(Object.keys(a),c,p),f={};for(let d of l)f[d]=a[d];return f},o.some=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=i(String(f),p);if(l.some(m=>d(m)))return!0}return!1},o.every=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=i(String(f),p);if(!l.every(m=>d(m)))return!1}return!0},o.all=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);return[].concat(c).every(l=>i(l,p)(a))},o.capture=(a,c,p)=>{let l=s.isWindows(p),f=i.makeRe(String(a),{...p,capture:!0}).exec(l?s.toPosixSlashes(c):c);if(f)return f.slice(1).map(d=>d===void 0?"":d)},o.makeRe=(...a)=>i.makeRe(...a),o.scan=(...a)=>i.scan(...a),o.parse=(a,c)=>{let p=[];for(let l of[].concat(a||[]))for(let f of n(String(l),c))p.push(i.parse(f,c));return p},o.braces=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!/\{.*\}/.test(a)?[a]:n(a,c)},o.braceExpand=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return o.braces(a,{...c,expand:!0})},e.exports=o}),Ao=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;var e=W("path"),r=uo(),n=Eo(),i="**",s="\\",u=/[*?]|^!/,o=/\[[^[]*]/,a=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,p=/,|\.\./;function l(T,$={}){return!f(T,$)}t.isStaticPattern=l;function f(T,$={}){return T===""?!1:!!($.caseSensitiveMatch===!1||T.includes(s)||u.test(T)||o.test(T)||a.test(T)||$.extglob!==!1&&c.test(T)||$.braceExpansion!==!1&&d(T))}t.isDynamicPattern=f;function d(T){let $=T.indexOf("{");if($===-1)return!1;let j=T.indexOf("}",$+1);if(j===-1)return!1;let q=T.slice($,j);return p.test(q)}function m(T){return v(T)?T.slice(1):T}t.convertToPositivePattern=m;function D(T){return"!"+T}t.convertToNegativePattern=D;function v(T){return T.startsWith("!")&&T[1]!=="("}t.isNegativePattern=v;function E(T){return!v(T)}t.isPositivePattern=E;function h(T){return T.filter(v)}t.getNegativePatterns=h;function y(T){return T.filter(E)}t.getPositivePatterns=y;function S(T){return T.filter($=>!A($))}t.getPatternsInsideCurrentDirectory=S;function g(T){return T.filter(A)}t.getPatternsOutsideCurrentDirectory=g;function A(T){return T.startsWith("..")||T.startsWith("./..")}t.isPatternRelatedToParentDirectory=A;function C(T){return r(T,{flipBackslashes:!1})}t.getBaseDirectory=C;function _(T){return T.includes(i)}t.hasGlobStar=_;function w(T){return T.endsWith("/"+i)}t.endsWithSlashGlobStar=w;function x(T){let $=e.basename(T);return w(T)||l($)}t.isAffectDepthOfReadingPattern=x;function k(T){return T.reduce(($,j)=>$.concat(P(j)),[])}t.expandPatternsWithBraceExpansion=k;function P(T){return n.braces(T,{expand:!0,nodupes:!0})}t.expandBraceExpansion=P;function I(T,$){let{parts:j}=n.scan(T,Object.assign(Object.assign({},$),{parts:!0}));return j.length===0&&(j=[T]),j[0].startsWith("/")&&(j[0]=j[0].slice(1),j.unshift("")),j}t.getPatternParts=I;function F(T,$){return n.makeRe(T,$)}t.makeRe=F;function b(T,$){return T.map(j=>F(j,$))}t.convertPatternsToRe=b;function M(T,$){return $.some(j=>j.test(T))}t.matchAny=M}),Co=R((t,e)=>{"use strict";B();var r=W("stream"),n=r.PassThrough,i=Array.prototype.slice;e.exports=s;function s(){let o=[],a=i.call(arguments),c=!1,p=a[a.length-1];p&&!Array.isArray(p)&&p.pipe==null?a.pop():p={};let l=p.end!==!1,f=p.pipeError===!0;p.objectMode==null&&(p.objectMode=!0),p.highWaterMark==null&&(p.highWaterMark=64*1024);let d=n(p);function m(){for(let E=0,h=arguments.length;E<h;E++)o.push(u(arguments[E],p));return D(),this}function D(){if(c)return;c=!0;let E=o.shift();if(!E){process.nextTick(v);return}Array.isArray(E)||(E=[E]);let h=E.length+1;function y(){--h>0||(c=!1,D())}function S(g){function A(){g.removeListener("merge2UnpipeEnd",A),g.removeListener("end",A),f&&g.removeListener("error",C),y()}function C(_){d.emit("error",_)}if(g._readableState.endEmitted)return y();g.on("merge2UnpipeEnd",A),g.on("end",A),f&&g.on("error",C),g.pipe(d,{end:!1}),g.resume()}for(let g=0;g<E.length;g++)S(E[g]);y()}function v(){c=!1,d.emit("queueDrain"),l&&d.end()}return d.setMaxListeners(0),d.add=m,d.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),a.length&&m.apply(null,a),d}function u(o,a){if(Array.isArray(o))for(let c=0,p=o.length;c<p;c++)o[c]=u(o[c],a);else{if(!o._readableState&&o.pipe&&(o=o.pipe(n(a))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}),So=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var e=Co();function r(i){let s=e(i);return i.forEach(u=>{u.once("error",o=>s.emit("error",o))}),s.once("close",()=>n(i)),s.once("end",()=>n(i)),s}t.merge=r;function n(i){i.forEach(s=>s.emit("close"))}}),bo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.isString=void 0;function e(n){return typeof n=="string"}t.isString=e;function r(n){return n===""}t.isEmpty=r}),jt=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;var e=eo();t.array=e;var r=ro();t.errno=r;var n=no();t.fs=n;var i=io();t.path=i;var s=Ao();t.pattern=s;var u=So();t.stream=u;var o=bo();t.string=o}),wo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;var e=jt();function r(c,p){let l=i(c),f=s(c,p.ignore),d=l.filter(E=>e.pattern.isStaticPattern(E,p)),m=l.filter(E=>e.pattern.isDynamicPattern(E,p)),D=n(d,f,!1),v=n(m,f,!0);return D.concat(v)}t.generate=r;function n(c,p,l){let f=[],d=e.pattern.getPatternsOutsideCurrentDirectory(c),m=e.pattern.getPatternsInsideCurrentDirectory(c),D=u(d),v=u(m);return f.push(...o(D,p,l)),"."in v?f.push(a(".",m,p,l)):f.push(...o(v,p,l)),f}t.convertPatternsToTasks=n;function i(c){return e.pattern.getPositivePatterns(c)}t.getPositivePatterns=i;function s(c,p){return e.pattern.getNegativePatterns(c).concat(p).map(e.pattern.convertToPositivePattern)}t.getNegativePatternsAsPositive=s;function u(c){let p={};return c.reduce((l,f)=>{let d=e.pattern.getBaseDirectory(f);return d in l?l[d].push(f):l[d]=[f],l},p)}t.groupPatternsByBaseDirectory=u;function o(c,p,l){return Object.keys(c).map(f=>a(f,c[f],p,l))}t.convertPatternGroupsToTasks=o;function a(c,p,l,f){return{dynamic:f,positive:p,negative:l,base:c,patterns:[].concat(p,l.map(e.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=a}),Fo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeDuplicateSlashes=t.transform=void 0;var e=/(?!^)\/{2,}/g;function r(i){return i.map(s=>n(s))}t.transform=r;function n(i){return i.replace(e,"/")}t.removeDuplicateSlashes=n}),_o=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(i,s,u){s.fs.lstat(i,(o,a)=>{if(o!==null){r(u,o);return}if(!a.isSymbolicLink()||!s.followSymbolicLink){n(u,a);return}s.fs.stat(i,(c,p)=>{if(c!==null){if(s.throwErrorOnBrokenSymbolicLink){r(u,c);return}n(u,a);return}s.markSymbolicLink&&(p.isSymbolicLink=()=>!0),n(u,p)})})}t.read=e;function r(i,s){i(s)}function n(i,s){i(null,s)}}),ko=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(r,n){let i=n.fs.lstatSync(r);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let s=n.fs.statSync(r);return n.markSymbolicLink&&(s.isSymbolicLink=()=>!0),s}catch(s){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw s}}t.read=e}),xo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=W("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync};function r(n){return n===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),n)}t.createFileSystemAdapter=r}),Bo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=xo(),r=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=e.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};t.default=r}),ee=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.statSync=t.stat=t.Settings=void 0;var e=_o(),r=ko(),n=Bo();t.Settings=n.default;function i(o,a,c){if(typeof a=="function"){e.read(o,u(),a);return}e.read(o,u(a),c)}t.stat=i;function s(o,a){let c=u(a);return r.read(o,c)}t.statSync=s;function u(o={}){return o instanceof n.default?o:new n.default(o)}}),Oo=R((t,e)=>{B();var r;e.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(r||(r=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),Ro=R((t,e)=>{B(),e.exports=n;var r=Oo();function n(i,s){let u,o,a,c=!0;Array.isArray(i)?(u=[],o=i.length):(a=Object.keys(i),u={},o=a.length);function p(f){function d(){s&&s(f,u),s=null}c?r(d):d()}function l(f,d,m){u[f]=m,(--o===0||d)&&p(d)}o?a?a.forEach(function(f){i[f](function(d,m){l(f,d,m)})}):i.forEach(function(f,d){f(function(m,D){l(d,m,D)})}):p(null),c=!1}}),Wr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var e=process.versions.node.split(".");if(e[0]===void 0||e[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(e[0],10),n=Number.parseInt(e[1],10),i=10,s=10,u=r>i,o=r===i&&n>=s;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||o}),Po=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new e(n,i)}t.createDirentFromStats=r}),Ur=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.fs=void 0;var e=Po();t.fs=e}),qr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=void 0;function e(r,n,i){return r.endsWith(i)?r+n:r+i+n}t.joinPathSegments=e}),To=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=ee(),r=Ro(),n=Wr(),i=Ur(),s=qr();function u(f,d,m){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(f,d,m);return}c(f,d,m)}t.read=u;function o(f,d,m){d.fs.readdir(f,{withFileTypes:!0},(D,v)=>{if(D!==null){p(m,D);return}let E=v.map(y=>({dirent:y,name:y.name,path:s.joinPathSegments(f,y.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){l(m,E);return}let h=E.map(y=>a(y,d));r(h,(y,S)=>{if(y!==null){p(m,y);return}l(m,S)})})}t.readdirWithFileTypes=o;function a(f,d){return m=>{if(!f.dirent.isSymbolicLink()){m(null,f);return}d.fs.stat(f.path,(D,v)=>{if(D!==null){if(d.throwErrorOnBrokenSymbolicLink){m(D);return}m(null,f);return}f.dirent=i.fs.createDirentFromStats(f.name,v),m(null,f)})}}function c(f,d,m){d.fs.readdir(f,(D,v)=>{if(D!==null){p(m,D);return}let E=v.map(h=>{let y=s.joinPathSegments(f,h,d.pathSegmentSeparator);return S=>{e.stat(y,d.fsStatSettings,(g,A)=>{if(g!==null){S(g);return}let C={name:h,path:y,dirent:i.fs.createDirentFromStats(h,A)};d.stats&&(C.stats=A),S(null,C)})}});r(E,(h,y)=>{if(h!==null){p(m,h);return}l(m,y)})})}t.readdir=c;function p(f,d){f(d)}function l(f,d){f(null,d)}}),Io=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=ee(),r=Wr(),n=Ur(),i=qr();function s(a,c){return!c.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(a,c):o(a,c)}t.read=s;function u(a,c){return c.fs.readdirSync(a,{withFileTypes:!0}).map(p=>{let l={dirent:p,name:p.name,path:i.joinPathSegments(a,p.name,c.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let f=c.fs.statSync(l.path);l.dirent=n.fs.createDirentFromStats(l.name,f)}catch(f){if(c.throwErrorOnBrokenSymbolicLink)throw f}return l})}t.readdirWithFileTypes=u;function o(a,c){return c.fs.readdirSync(a).map(p=>{let l=i.joinPathSegments(a,p,c.pathSegmentSeparator),f=e.statSync(l,c.fsStatSettings),d={name:p,path:l,dirent:n.fs.createDirentFromStats(p,f)};return c.stats&&(d.stats=f),d})}t.readdir=o}),Lo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=W("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};function r(n){return n===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),n)}t.createFileSystemAdapter=r}),No=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=ee(),n=Lo(),i=class{constructor(s={}){this._options=s,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(s,u){return s!=null?s:u}};t.default=i}),qe=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.scandirSync=t.scandir=void 0;var e=To(),r=Io(),n=No();t.Settings=n.default;function i(o,a,c){if(typeof a=="function"){e.read(o,u(),a);return}e.read(o,u(a),c)}t.scandir=i;function s(o,a){let c=u(a);return r.read(o,c)}t.scandirSync=s;function u(o={}){return o instanceof n.default?o:new n.default(o)}}),jo=R((t,e)=>{"use strict";B();function r(n){var i=new n,s=i;function u(){var a=i;return a.next?i=a.next:(i=new n,s=i),a.next=null,a}function o(a){s.next=a,s=a}return{get:u,release:o}}e.exports=r}),Mo=R((t,e)=>{"use strict";B();var r=jo();function n(o,a,c){if(typeof o=="function"&&(c=a,a=o,o=null),c<1)throw new Error("fastqueue concurrency must be greater than 1");var p=r(s),l=null,f=null,d=0,m=null,D={push:A,drain:i,saturated:i,pause:E,paused:!1,concurrency:c,running:v,resume:S,idle:g,length:h,getQueue:y,unshift:C,empty:i,kill:w,killAndDrain:x,error:k};return D;function v(){return d}function E(){D.paused=!0}function h(){for(var P=l,I=0;P;)P=P.next,I++;return I}function y(){for(var P=l,I=[];P;)I.push(P.value),P=P.next;return I}function S(){if(D.paused){D.paused=!1;for(var P=0;P<D.concurrency;P++)d++,_()}}function g(){return d===0&&D.length()===0}function A(P,I){var F=p.get();F.context=o,F.release=_,F.value=P,F.callback=I||i,F.errorHandler=m,d===D.concurrency||D.paused?f?(f.next=F,f=F):(l=F,f=F,D.saturated()):(d++,a.call(o,F.value,F.worked))}function C(P,I){var F=p.get();F.context=o,F.release=_,F.value=P,F.callback=I||i,d===D.concurrency||D.paused?l?(F.next=l,l=F):(l=F,f=F,D.saturated()):(d++,a.call(o,F.value,F.worked))}function _(P){P&&p.release(P);var I=l;I?D.paused?d--:(f===l&&(f=null),l=I.next,I.next=null,a.call(o,I.value,I.worked),f===null&&D.empty()):--d===0&&D.drain()}function w(){l=null,f=null,D.drain=i}function x(){l=null,f=null,D.drain(),D.drain=i}function k(P){m=P}}function i(){}function s(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var o=this;this.worked=function(a,c){var p=o.callback,l=o.errorHandler,f=o.value;o.value=null,o.callback=i,o.errorHandler&&l(a,f),p.call(o.context,a,c),o.release(o)}}function u(o,a,c){typeof o=="function"&&(c=a,a=o,o=null);function p(E,h){a.call(this,E).then(function(y){h(null,y)},h)}var l=n(o,p,c),f=l.push,d=l.unshift;return l.push=m,l.unshift=D,l.drained=v,l;function m(E){var h=new Promise(function(y,S){f(E,function(g,A){if(g){S(g);return}y(A)})});return h.catch(i),h}function D(E){var h=new Promise(function(y,S){d(E,function(g,A){if(g){S(g);return}y(A)})});return h.catch(i),h}function v(){var E=l.drain,h=new Promise(function(y){l.drain=function(){E(),y()}});return h}}e.exports=n,e.exports.promise=u}),Ke=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function e(s,u){return s.errorFilter===null?!0:!s.errorFilter(u)}t.isFatalError=e;function r(s,u){return s===null||s(u)}t.isAppliedFilter=r;function n(s,u){return s.split(/[/\\]/).join(u)}t.replacePathSegmentSeparator=n;function i(s,u,o){return s===""?u:s.endsWith(o)?s+u:s+o+u}t.joinPathSegments=i}),Kr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Ke(),r=class{constructor(n,i){this._root=n,this._settings=i,this._root=e.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};t.default=r}),Vr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("events"),r=qe(),n=Mo(),i=Ke(),s=Kr(),u=class extends s.default{constructor(o,a){super(o,a),this._settings=a,this._scandir=r.scandir,this._emitter=new e.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,a){let c={directory:o,base:a};this._queue.push(c,p=>{p!==null&&this._handleError(p)})}_worker(o,a){this._scandir(o.directory,this._settings.fsScandirSettings,(c,p)=>{if(c!==null){a(c,void 0);return}for(let l of p)this._handleEntry(l,o.base);a(null,void 0)})}_handleError(o){this._isDestroyed||!i.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,a){if(this._isDestroyed||this._isFatalError)return;let c=o.path;a!==void 0&&(o.path=i.joinPathSegments(a,o.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(c,a===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};t.default=u}),$o=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vr(),r=class{constructor(s,u){this._root=s,this._settings=u,this._reader=new e.default(this._root,this._settings),this._storage=[]}read(s){this._reader.onError(u=>{n(s,u)}),this._reader.onEntry(u=>{this._storage.push(u)}),this._reader.onEnd(()=>{i(s,this._storage)}),this._reader.read()}};t.default=r;function n(s,u){s(u)}function i(s,u){s(null,u)}}),Ho=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=Vr(),n=class{constructor(i,s){this._root=i,this._settings=s,this._reader=new r.default(this._root,this._settings),this._stream=new e.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};t.default=n}),Go=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=qe(),r=Ke(),n=Kr(),i=class extends n.default{constructor(){super(...arguments),this._scandir=e.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(s,u){this._queue.add({directory:s,base:u})}_handleQueue(){for(let s of this._queue.values())this._handleDirectory(s.directory,s.base)}_handleDirectory(s,u){try{let o=this._scandir(s,this._settings.fsScandirSettings);for(let a of o)this._handleEntry(a,u)}catch(o){this._handleError(o)}}_handleError(s){if(r.isFatalError(this._settings,s))throw s}_handleEntry(s,u){let o=s.path;u!==void 0&&(s.path=r.joinPathSegments(u,s.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,s)&&this._pushToStorage(s),s.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(o,u===void 0?void 0:s.path)}_pushToStorage(s){this._storage.push(s)}};t.default=i}),Wo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Go(),r=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new e.default(this._root,this._settings)}read(){return this._reader.read()}};t.default=r}),Uo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=qe(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,s){return i!=null?i:s}};t.default=n}),Ve=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.walkStream=t.walkSync=t.walk=void 0;var e=$o(),r=Ho(),n=Wo(),i=Uo();t.Settings=i.default;function s(c,p,l){if(typeof p=="function"){new e.default(c,a()).read(p);return}new e.default(c,a(p)).read(l)}t.walk=s;function u(c,p){let l=a(p);return new n.default(c,l).read()}t.walkSync=u;function o(c,p){let l=a(p);return new r.default(c,l).read()}t.walkStream=o;function a(c={}){return c instanceof i.default?c:new i.default(c)}}),Je=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=ee(),n=jt(),i=class{constructor(s){this._settings=s,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(s){return e.resolve(this._settings.cwd,s)}_makeEntry(s,u){let o={name:u,path:u,dirent:n.fs.createDirentFromStats(u,s)};return this._settings.stats&&(o.stats=s),o}_isFatalError(s){return!n.errno.isEnoentCodeError(s)&&!this._settings.suppressErrors}};t.default=i}),Jr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=ee(),n=Ve(),i=Je(),s=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=r.stat}dynamic(u,o){return this._walkStream(u,o)}static(u,o){let a=u.map(this._getFullEntryPath,this),c=new e.PassThrough({objectMode:!0});c._write=(p,l,f)=>this._getEntry(a[p],u[p],o).then(d=>{d!==null&&o.entryFilter(d)&&c.push(d),p===a.length-1&&c.end(),f()}).catch(f);for(let p=0;p<a.length;p++)c.write(p);return c}_getEntry(u,o,a){return this._getStat(u).then(c=>this._makeEntry(c,o)).catch(c=>{if(a.errorFilter(c))return null;throw c})}_getStat(u){return new Promise((o,a)=>{this._stat(u,this._fsStatSettings,(c,p)=>c===null?o(p):a(c))})}};t.default=s}),qo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Ve(),r=Je(),n=Jr(),i=class extends r.default{constructor(){super(...arguments),this._walkAsync=e.walk,this._readerStream=new n.default(this._settings)}dynamic(s,u){return new Promise((o,a)=>{this._walkAsync(s,u,(c,p)=>{c===null?o(p):a(c)})})}async static(s,u){let o=[],a=this._readerStream.static(s,u);return new Promise((c,p)=>{a.once("error",p),a.on("data",l=>o.push(l)),a.once("end",()=>c(o))})}};t.default=i}),Ko=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=jt(),r=class{constructor(n,i,s){this._patterns=n,this._settings=i,this._micromatchOptions=s,this._storage=[],this._fillStorage()}_fillStorage(){let n=e.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let s=this._getPatternSegments(i),u=this._splitSegmentsIntoSections(s);this._storage.push({complete:u.length<=1,pattern:i,segments:s,sections:u})}}_getPatternSegments(n){return e.pattern.getPatternParts(n,this._micromatchOptions).map(i=>e.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:e.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return e.array.splitWhen(n,i=>i.dynamic&&e.pattern.hasGlobStar(i.pattern))}};t.default=r}),Vo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Ko(),r=class extends e.default{match(n){let i=n.split("/"),s=i.length,u=this._storage.filter(o=>!o.complete||o.segments.length>s);for(let o of u){let a=o.sections[0];if(!o.complete&&s>a.length||i.every((c,p)=>{let l=o.segments[p];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};t.default=r}),Jo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=jt(),r=Vo(),n=class{constructor(i,s){this._settings=i,this._micromatchOptions=s}getFilter(i,s,u){let o=this._getMatcher(s),a=this._getNegativePatternsRe(u);return c=>this._filter(i,c,o,a)}_getMatcher(i){return new r.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let s=i.filter(e.pattern.isAffectDepthOfReadingPattern);return e.pattern.convertPatternsToRe(s,this._micromatchOptions)}_filter(i,s,u,o){if(this._isSkippedByDeep(i,s.path)||this._isSkippedSymbolicLink(s))return!1;let a=e.path.removeLeadingDotSegment(s.path);return this._isSkippedByPositivePatterns(a,u)?!1:this._isSkippedByNegativePatterns(a,o)}_isSkippedByDeep(i,s){return this._settings.deep===1/0?!1:this._getEntryLevel(i,s)>=this._settings.deep}_getEntryLevel(i,s){let u=s.split("/").length;if(i==="")return u;let o=i.split("/").length;return u-o}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,s){return!this._settings.baseNameMatch&&!s.match(i)}_isSkippedByNegativePatterns(i,s){return!e.pattern.matchAny(i,s)}};t.default=n}),Yo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=jt(),r=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let s=e.pattern.convertPatternsToRe(n,this._micromatchOptions),u=e.pattern.convertPatternsToRe(i,this._micromatchOptions);return o=>this._filter(o,s,u)}_filter(n,i,s){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,s))return!1;let u=this._settings.baseNameMatch?n.name:n.path,o=n.dirent.isDirectory(),a=this._isMatchToPatterns(u,i,o)&&!this._isMatchToPatterns(n.path,s,o);return this._settings.unique&&a&&this._createIndexRecord(n),a}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let s=e.path.makeAbsolute(this._settings.cwd,n);return e.pattern.matchAny(s,i)}_isMatchToPatterns(n,i,s){let u=e.path.removeLeadingDotSegment(n),o=e.pattern.matchAny(u,i);return!o&&s?e.pattern.matchAny(u+"/",i):o}};t.default=r}),Qo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=jt(),r=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return e.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};t.default=r}),Xo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=jt(),r=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=e.path.makeAbsolute(this._settings.cwd,i),i=e.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};t.default=r}),Ye=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=Jo(),n=Yo(),i=Qo(),s=Xo(),u=class{constructor(o){this._settings=o,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new s.default(this._settings)}_getRootDirectory(o){return e.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let a=o.base==="."?"":o.base;return{basePath:a,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(a,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};t.default=u}),Zo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=qo(),r=Ye(),n=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}async read(i){let s=this._getRootDirectory(i),u=this._getReaderOptions(i);return(await this.api(s,i,u)).map(o=>u.transform(o))}api(i,s,u){return s.dynamic?this._reader.dynamic(i,u):this._reader.static(s.patterns,u)}};t.default=n}),zo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=Jr(),n=Ye(),i=class extends n.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(s){let u=this._getRootDirectory(s),o=this._getReaderOptions(s),a=this.api(u,s,o),c=new e.Readable({objectMode:!0,read:()=>{}});return a.once("error",p=>c.emit("error",p)).on("data",p=>c.emit("data",o.transform(p))).once("end",()=>c.emit("end")),c.once("close",()=>a.destroy()),c}api(s,u,o){return u.dynamic?this._reader.dynamic(s,o):this._reader.static(u.patterns,o)}};t.default=i}),ta=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=ee(),r=Ve(),n=Je(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=e.statSync}dynamic(s,u){return this._walkSync(s,u)}static(s,u){let o=[];for(let a of s){let c=this._getFullEntryPath(a),p=this._getEntry(c,a,u);p===null||!u.entryFilter(p)||o.push(p)}return o}_getEntry(s,u,o){try{let a=this._getStat(s);return this._makeEntry(a,u)}catch(a){if(o.errorFilter(a))return null;throw a}}_getStat(s){return this._statSync(s,this._fsStatSettings)}};t.default=i}),ea=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=ta(),r=Ye(),n=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(i){let s=this._getRootDirectory(i),u=this._getReaderOptions(i);return this.api(s,i,u).map(u.transform)}api(i,s,u){return s.dynamic?this._reader.dynamic(i,u):this._reader.static(s.patterns,u)}};t.default=n}),ra=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var e=W("fs"),r=W("os"),n=Math.max(r.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:e.lstat,lstatSync:e.lstatSync,stat:e.stat,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};var i=class{constructor(s={}){this._options=s,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(s,u){return s===void 0?u:s}_getFileSystemMethods(s={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),s)}};t.default=i}),na=R((t,e)=>{"use strict";B();var r=wo(),n=Fo(),i=Zo(),s=zo(),u=ea(),o=ra(),a=jt();async function c(f,d){l(f);let m=p(f,i.default,d),D=await Promise.all(m);return a.array.flatten(D)}(function(f){function d(h,y){l(h);let S=p(h,u.default,y);return a.array.flatten(S)}f.sync=d;function m(h,y){l(h);let S=p(h,s.default,y);return a.stream.merge(S)}f.stream=m;function D(h,y){l(h);let S=n.transform([].concat(h)),g=new o.default(y);return r.generate(S,g)}f.generateTasks=D;function v(h,y){l(h);let S=new o.default(y);return a.pattern.isDynamicPattern(h,S)}f.isDynamicPattern=v;function E(h){return l(h),a.path.escape(h)}f.escapePath=E})(c||(c={}));function p(f,d,m){let D=n.transform([].concat(f)),v=new o.default(m),E=r.generate(D,v),h=new d(v);return E.map(h.read,h)}function l(f){if(![].concat(f).every(d=>a.string.isString(d)&&!a.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}e.exports=c});B();B();function Yr(t){return typeof t>"u"||t===null}function ia(t){return typeof t=="object"&&t!==null}function oa(t){return Array.isArray(t)?t:Yr(t)?[]:[t]}function aa(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function ua(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function sa(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var ca=Yr,la=ia,pa=oa,fa=ua,da=sa,ha=aa,gt={isNothing:ca,isObject:la,toArray:pa,repeat:fa,isNegativeZero:da,extend:ha};function Qr(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
11
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),o.checkPaths(w,x,"copy",(I,F)=>{if(I)return P(I);let{srcStat:b,destStat:N}=F;o.checkParentPaths(w,b,x,"copy",T=>T?P(T):k.filter?p(c,N,w,x,k,P):c(N,w,x,k,P))})}function c(w,x,k,P,I){let F=n.dirname(k);s(F,(b,N)=>{if(b)return I(b);if(N)return l(w,x,k,P,I);i(F,T=>T?I(T):l(w,x,k,P,I))})}function p(w,x,k,P,I,F){Promise.resolve(I.filter(k,P)).then(b=>b?w(x,k,P,I,F):F(),b=>F(b))}function l(w,x,k,P,I){return P.filter?p(f,w,x,k,P,I):f(w,x,k,P,I)}function f(w,x,k,P,I){(P.dereference?r.stat:r.lstat)(x,(F,b)=>{if(F)return I(F);if(b.isDirectory())return h(b,w,x,k,P,I);if(b.isFile()||b.isCharacterDevice()||b.isBlockDevice())return d(b,w,x,k,P,I);if(b.isSymbolicLink())return C(w,x,k,P,I)})}function d(w,x,k,P,I,F){return x?m(w,k,P,I,F):D(w,k,P,I,F)}function m(w,x,k,P,I){if(P.overwrite)r.unlink(k,F=>F?I(F):D(w,x,k,P,I));else return P.errorOnExist?I(new Error(`'${k}' already exists`)):I()}function D(w,x,k,P,I){return typeof r.copyFile=="function"?r.copyFile(x,k,F=>F?I(F):E(w,k,P,I)):v(w,x,k,P,I)}function v(w,x,k,P,I){let F=r.createReadStream(x);F.on("error",b=>I(b)).once("open",()=>{let b=r.createWriteStream(k,{mode:w.mode});b.on("error",N=>I(N)).on("open",()=>F.pipe(b)).once("close",()=>E(w,k,P,I))})}function E(w,x,k,P){r.chmod(x,w.mode,I=>I?P(I):k.preserveTimestamps?u(x,w.atime,w.mtime,P):P())}function h(w,x,k,P,I,F){return x?x&&!x.isDirectory()?F(new Error(`Cannot overwrite non-directory '${P}' with directory '${k}'.`)):S(k,P,I,F):y(w,k,P,I,F)}function y(w,x,k,P,I){r.mkdir(k,F=>{if(F)return I(F);S(x,k,P,b=>b?I(b):r.chmod(k,w.mode,I))})}function S(w,x,k,P){r.readdir(w,(I,F)=>I?P(I):g(F,w,x,k,P))}function g(w,x,k,P,I){let F=w.pop();return F?A(w,F,x,k,P,I):I()}function A(w,x,k,P,I,F){let b=n.join(k,x),N=n.join(P,x);o.checkPaths(b,N,"copy",(T,$)=>{if(T)return F(T);let{destStat:j}=$;l(j,b,N,I,q=>q?F(q):g(w,k,P,I,F))})}function C(w,x,k,P,I){r.readlink(x,(F,b)=>{if(F)return I(F);if(P.dereference&&(b=n.resolve(process.cwd(),b)),w)r.readlink(k,(N,T)=>N?N.code==="EINVAL"||N.code==="UNKNOWN"?r.symlink(b,k,I):I(N):(P.dereference&&(T=n.resolve(process.cwd(),T)),o.isSrcSubdir(b,T)?I(new Error(`Cannot copy '${b}' to a subdirectory of itself, '${T}'.`)):w.isDirectory()&&o.isSrcSubdir(T,b)?I(new Error(`Cannot overwrite '${T}' with '${b}'.`)):_(b,k,I)));else return r.symlink(b,k,I)})}function _(w,x,k){r.unlink(x,P=>P?k(P):r.symlink(w,x,k))}e.exports=a}),kr=R((t,e)=>{"use strict";B();var r=wt().fromCallback;e.exports={copy:r(Oi())}}),Ri=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=W("assert"),s=process.platform==="win32";function u(v){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(E=>{v[E]=v[E]||r[E],E=E+"Sync",v[E]=v[E]||r[E]}),v.maxBusyTries=v.maxBusyTries||3}function o(v,E,h){let y=0;typeof E=="function"&&(h=E,E={}),i(v,"rimraf: missing path"),i.strictEqual(typeof v,"string","rimraf: path should be a string"),i.strictEqual(typeof h,"function","rimraf: callback function required"),i(E,"rimraf: invalid options argument provided"),i.strictEqual(typeof E,"object","rimraf: options should be object"),u(E),a(v,E,function S(g){if(g){if((g.code==="EBUSY"||g.code==="ENOTEMPTY"||g.code==="EPERM")&&y<E.maxBusyTries){y++;let A=y*100;return setTimeout(()=>a(v,E,S),A)}g.code==="ENOENT"&&(g=null)}h(g)})}function a(v,E,h){i(v),i(E),i(typeof h=="function"),E.lstat(v,(y,S)=>{if(y&&y.code==="ENOENT")return h(null);if(y&&y.code==="EPERM"&&s)return c(v,E,y,h);if(S&&S.isDirectory())return l(v,E,y,h);E.unlink(v,g=>{if(g){if(g.code==="ENOENT")return h(null);if(g.code==="EPERM")return s?c(v,E,g,h):l(v,E,g,h);if(g.code==="EISDIR")return l(v,E,g,h)}return h(g)})})}function c(v,E,h,y){i(v),i(E),i(typeof y=="function"),h&&i(h instanceof Error),E.chmod(v,438,S=>{S?y(S.code==="ENOENT"?null:h):E.stat(v,(g,A)=>{g?y(g.code==="ENOENT"?null:h):A.isDirectory()?l(v,E,h,y):E.unlink(v,y)})})}function p(v,E,h){let y;i(v),i(E),h&&i(h instanceof Error);try{E.chmodSync(v,438)}catch(S){if(S.code==="ENOENT")return;throw h}try{y=E.statSync(v)}catch(S){if(S.code==="ENOENT")return;throw h}y.isDirectory()?m(v,E,h):E.unlinkSync(v)}function l(v,E,h,y){i(v),i(E),h&&i(h instanceof Error),i(typeof y=="function"),E.rmdir(v,S=>{S&&(S.code==="ENOTEMPTY"||S.code==="EEXIST"||S.code==="EPERM")?f(v,E,y):S&&S.code==="ENOTDIR"?y(h):y(S)})}function f(v,E,h){i(v),i(E),i(typeof h=="function"),E.readdir(v,(y,S)=>{if(y)return h(y);let g=S.length,A;if(g===0)return E.rmdir(v,h);S.forEach(C=>{o(n.join(v,C),E,_=>{if(!A){if(_)return h(A=_);--g===0&&E.rmdir(v,h)}})})})}function d(v,E){let h;E=E||{},u(E),i(v,"rimraf: missing path"),i.strictEqual(typeof v,"string","rimraf: path should be a string"),i(E,"rimraf: missing options"),i.strictEqual(typeof E,"object","rimraf: options should be object");try{h=E.lstatSync(v)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&s&&p(v,E,y)}try{h&&h.isDirectory()?m(v,E,null):E.unlinkSync(v)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return s?p(v,E,y):m(v,E,y);if(y.code!=="EISDIR")throw y;m(v,E,y)}}function m(v,E,h){i(v),i(E),h&&i(h instanceof Error);try{E.rmdirSync(v)}catch(y){if(y.code==="ENOTDIR")throw h;if(y.code==="ENOTEMPTY"||y.code==="EEXIST"||y.code==="EPERM")D(v,E);else if(y.code!=="ENOENT")throw y}}function D(v,E){if(i(v),i(E),E.readdirSync(v).forEach(h=>d(n.join(v,h),E)),s){let h=Date.now();do try{return E.rmdirSync(v,E)}catch{}while(Date.now()-h<500)}else return E.rmdirSync(v,E)}e.exports=o,o.sync=d}),ve=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=Ri();e.exports={remove:r(n),removeSync:n.sync}}),Pi=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=mt(),i=W("path"),s=Ft(),u=ve(),o=r(function(c,p){p=p||function(){},n.readdir(c,(l,f)=>{if(l)return s.mkdirs(c,p);f=f.map(m=>i.join(c,m)),d();function d(){let m=f.pop();if(!m)return p();u.remove(m,D=>{if(D)return p(D);d()})}})});function a(c){let p;try{p=n.readdirSync(c)}catch{return s.mkdirsSync(c)}p.forEach(l=>{l=i.join(c,l),u.removeSync(l)})}e.exports={emptyDirSync:a,emptydirSync:a,emptyDir:o,emptydir:o}}),Ti=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=W("path"),i=mt(),s=Ft(),u=Rt().pathExists;function o(c,p){function l(){i.writeFile(c,"",f=>{if(f)return p(f);p()})}i.stat(c,(f,d)=>{if(!f&&d.isFile())return p();let m=n.dirname(c);u(m,(D,v)=>{if(D)return p(D);if(v)return l();s.mkdirs(m,E=>{if(E)return p(E);l()})})})}function a(c){let p;try{p=i.statSync(c)}catch{}if(p&&p.isFile())return;let l=n.dirname(c);i.existsSync(l)||s.mkdirsSync(l),i.writeFileSync(c,"")}e.exports={createFile:r(o),createFileSync:a}}),Ii=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=W("path"),i=mt(),s=Ft(),u=Rt().pathExists;function o(c,p,l){function f(d,m){i.link(d,m,D=>{if(D)return l(D);l(null)})}u(p,(d,m)=>{if(d)return l(d);if(m)return l(null);i.lstat(c,D=>{if(D)return D.message=D.message.replace("lstat","ensureLink"),l(D);let v=n.dirname(p);u(v,(E,h)=>{if(E)return l(E);if(h)return f(c,p);s.mkdirs(v,y=>{if(y)return l(y);f(c,p)})})})})}function a(c,p){if(i.existsSync(p))return;try{i.lstatSync(c)}catch(f){throw f.message=f.message.replace("lstat","ensureLink"),f}let l=n.dirname(p);return i.existsSync(l)||s.mkdirsSync(l),i.linkSync(c,p)}e.exports={createLink:r(o),createLinkSync:a}}),Li=R((t,e)=>{"use strict";B();var r=W("path"),n=mt(),i=Rt().pathExists;function s(o,a,c){if(r.isAbsolute(o))return n.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),c(p)):c(null,{toCwd:o,toDst:o}));{let p=r.dirname(a),l=r.join(p,o);return i(l,(f,d)=>f?c(f):d?c(null,{toCwd:l,toDst:o}):n.lstat(o,m=>m?(m.message=m.message.replace("lstat","ensureSymlink"),c(m)):c(null,{toCwd:o,toDst:r.relative(p,o)})))}}function u(o,a){let c;if(r.isAbsolute(o)){if(c=n.existsSync(o),!c)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let p=r.dirname(a),l=r.join(p,o);if(c=n.existsSync(l),c)return{toCwd:l,toDst:o};if(c=n.existsSync(o),!c)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:r.relative(p,o)}}}e.exports={symlinkPaths:s,symlinkPathsSync:u}}),Mi=R((t,e)=>{"use strict";B();var r=mt();function n(s,u,o){if(o=typeof u=="function"?u:o,u=typeof u=="function"?!1:u,u)return o(null,u);r.lstat(s,(a,c)=>{if(a)return o(null,"file");u=c&&c.isDirectory()?"dir":"file",o(null,u)})}function i(s,u){let o;if(u)return u;try{o=r.lstatSync(s)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}e.exports={symlinkType:n,symlinkTypeSync:i}}),ji=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=W("path"),i=mt(),s=Ft(),u=s.mkdirs,o=s.mkdirsSync,a=Li(),c=a.symlinkPaths,p=a.symlinkPathsSync,l=Mi(),f=l.symlinkType,d=l.symlinkTypeSync,m=Rt().pathExists;function D(E,h,y,S){S=typeof y=="function"?y:S,y=typeof y=="function"?!1:y,m(h,(g,A)=>{if(g)return S(g);if(A)return S(null);c(E,h,(C,_)=>{if(C)return S(C);E=_.toDst,f(_.toCwd,y,(w,x)=>{if(w)return S(w);let k=n.dirname(h);m(k,(P,I)=>{if(P)return S(P);if(I)return i.symlink(E,h,x,S);u(k,F=>{if(F)return S(F);i.symlink(E,h,x,S)})})})})})}function v(E,h,y){if(i.existsSync(h))return;let S=p(E,h);E=S.toDst,y=d(S.toCwd,y);let g=n.dirname(h);return i.existsSync(g)||o(g),i.symlinkSync(E,h,y)}e.exports={createSymlink:r(D),createSymlinkSync:v}}),Ni=R((t,e)=>{"use strict";B();var r=Ti(),n=Ii(),i=ji();e.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),$i=R((t,e)=>{B();var r;try{r=mt()}catch{r=W("fs")}function n(p,l,f){f==null&&(f=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var d=l.fs||r,m=!0;"throws"in l&&(m=l.throws),d.readFile(p,l,function(D,v){if(D)return f(D);v=a(v);var E;try{E=JSON.parse(v,l?l.reviver:null)}catch(h){return m?(h.message=p+": "+h.message,f(h)):f(null,null)}f(null,E)})}function i(p,l){l=l||{},typeof l=="string"&&(l={encoding:l});var f=l.fs||r,d=!0;"throws"in l&&(d=l.throws);try{var m=f.readFileSync(p,l);return m=a(m),JSON.parse(m,l.reviver)}catch(D){if(d)throw D.message=p+": "+D.message,D;return null}}function s(p,l){var f,d=`
12
+ `;typeof l=="object"&&l!==null&&(l.spaces&&(f=l.spaces),l.EOL&&(d=l.EOL));var m=JSON.stringify(p,l?l.replacer:null,f);return m.replace(/\n/g,d)+d}function u(p,l,f,d){d==null&&(d=f,f={}),f=f||{};var m=f.fs||r,D="";try{D=s(l,f)}catch(v){d&&d(v,null);return}m.writeFile(p,D,f,d)}function o(p,l,f){f=f||{};var d=f.fs||r,m=s(l,f);return d.writeFileSync(p,m,f)}function a(p){return Buffer.isBuffer(p)&&(p=p.toString("utf8")),p=p.replace(/^\uFEFF/,""),p}var c={readFile:n,readFileSync:i,writeFile:u,writeFileSync:o};e.exports=c}),Ie=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=$i();e.exports={readJson:r(n.readFile),readJsonSync:n.readFileSync,writeJson:r(n.writeFile),writeJsonSync:n.writeFileSync}}),Hi=R((t,e)=>{"use strict";B();var r=W("path"),n=Ft(),i=Rt().pathExists,s=Ie();function u(o,a,c,p){typeof c=="function"&&(p=c,c={});let l=r.dirname(o);i(l,(f,d)=>{if(f)return p(f);if(d)return s.writeJson(o,a,c,p);n.mkdirs(l,m=>{if(m)return p(m);s.writeJson(o,a,c,p)})})}e.exports=u}),Gi=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=Ft(),s=Ie();function u(o,a,c){let p=n.dirname(o);r.existsSync(p)||i.mkdirsSync(p),s.writeJsonSync(o,a,c)}e.exports=u}),Wi=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=Ie();n.outputJson=r(Hi()),n.outputJsonSync=Gi(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,e.exports=n}),Ui=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=_r().copySync,s=ve().removeSync,u=Ft().mkdirpSync,o=De();function a(f,d,m){m=m||{};let D=m.overwrite||m.clobber||!1,{srcStat:v}=o.checkPathsSync(f,d,"move");return o.checkParentPathsSync(f,v,d,"move"),u(n.dirname(d)),c(f,d,D)}function c(f,d,m){if(m)return s(d),p(f,d,m);if(r.existsSync(d))throw new Error("dest already exists.");return p(f,d,m)}function p(f,d,m){try{r.renameSync(f,d)}catch(D){if(D.code!=="EXDEV")throw D;return l(f,d,m)}}function l(f,d,m){return i(f,d,{overwrite:m,errorOnExist:!0}),s(f)}e.exports=a}),qi=R((t,e)=>{"use strict";B(),e.exports={moveSync:Ui()}}),Ki=R((t,e)=>{"use strict";B();var r=mt(),n=W("path"),i=kr().copy,s=ve().remove,u=Ft().mkdirp,o=Rt().pathExists,a=De();function c(d,m,D,v){typeof D=="function"&&(v=D,D={});let E=D.overwrite||D.clobber||!1;a.checkPaths(d,m,"move",(h,y)=>{if(h)return v(h);let{srcStat:S}=y;a.checkParentPaths(d,S,m,"move",g=>{if(g)return v(g);u(n.dirname(m),A=>A?v(A):p(d,m,E,v))})})}function p(d,m,D,v){if(D)return s(m,E=>E?v(E):l(d,m,D,v));o(m,(E,h)=>E?v(E):h?v(new Error("dest already exists.")):l(d,m,D,v))}function l(d,m,D,v){r.rename(d,m,E=>E?E.code!=="EXDEV"?v(E):f(d,m,D,v):v())}function f(d,m,D,v){i(d,m,{overwrite:D,errorOnExist:!0},E=>E?v(E):s(d,v))}e.exports=c}),Ji=R((t,e)=>{"use strict";B();var r=wt().fromCallback;e.exports={move:r(Ki())}}),Vi=R((t,e)=>{"use strict";B();var r=wt().fromCallback,n=mt(),i=W("path"),s=Ft(),u=Rt().pathExists;function o(c,p,l,f){typeof l=="function"&&(f=l,l="utf8");let d=i.dirname(c);u(d,(m,D)=>{if(m)return f(m);if(D)return n.writeFile(c,p,l,f);s.mkdirs(d,v=>{if(v)return f(v);n.writeFile(c,p,l,f)})})}function a(c,...p){let l=i.dirname(c);if(n.existsSync(l))return n.writeFileSync(c,...p);s.mkdirsSync(l),n.writeFileSync(c,...p)}e.exports={outputFile:r(o),outputFileSync:a}}),Yi=R((t,e)=>{"use strict";B(),e.exports=Object.assign({},br(),_r(),kr(),Pi(),Ni(),Wi(),Ft(),qi(),Ji(),Vi(),Rt(),ve());var r=W("fs");Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(e.exports,"promises",{get(){return r.promises}})});B();B();var Kc=Nt(yi());B();B();function Qi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}B();B();function Pe(t){return Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(t)}B();function Xi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zi(t,e){if(e&&(Pe(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xi(t)}B();function ye(t){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(t)}B();B();function ue(t,e){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ue(t,e)}function zi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ue(t,e)}B();B();function to(t){return Function.toString.call(t).indexOf("[native code]")!==-1}B();B();function eo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ge(t,e,r){return eo()?ge=Reflect.construct.bind():ge=function(n,i,s){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(n,u),a=new o;return s&&ue(a,s.prototype),a},ge.apply(null,arguments)}function Te(t){var e=typeof Map=="function"?new Map:void 0;return Te=function(r){if(r===null||!to(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return ge(r,arguments,ye(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ue(n,r)},Te(t)}var Jc=Nt(Si()),Vc=Nt(Yi()),Yc=function(t){zi(e,t);function e(r){var n;return Qi(this,e),n=Zi(this,ye(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(Te(Error));B();var no=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.splitWhen=t.flatten=void 0;function e(n){return n.reduce((i,s)=>[].concat(i,s),[])}t.flatten=e;function r(n,i){let s=[[]],u=0;for(let o of n)i(o)?(u++,s[u]=[]):s[u].push(o);return s}t.splitWhen=r}),io=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEnoentCodeError=void 0;function e(r){return r.code==="ENOENT"}t.isEnoentCodeError=e}),oo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new e(n,i)}t.createDirentFromStats=r}),ao=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;var e=W("path"),r=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(a){return a.replace(/\\/g,"/")}t.unixify=i;function s(a,c){return e.resolve(a,c)}t.makeAbsolute=s;function u(a){return a.replace(n,"\\$2")}t.escape=u;function o(a){if(a.charAt(0)==="."){let c=a.charAt(1);if(c==="/"||c==="\\")return a.slice(r)}return a}t.removeLeadingDotSegment=o}),uo=R((t,e)=>{B(),e.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(n[2])return!0;r=r.slice(n.index+n[0].length)}return!1}}),so=R((t,e)=>{B();var r=uo(),n={"{":"}","(":")","[":"]"},i=function(u){if(u[0]==="!")return!0;for(var o=0,a=-2,c=-2,p=-2,l=-2,f=-2;o<u.length;){if(u[o]==="*"||u[o+1]==="?"&&/[\].+)]/.test(u[o])||c!==-1&&u[o]==="["&&u[o+1]!=="]"&&(c<o&&(c=u.indexOf("]",o)),c>o&&(f===-1||f>c||(f=u.indexOf("\\",o),f===-1||f>c)))||p!==-1&&u[o]==="{"&&u[o+1]!=="}"&&(p=u.indexOf("}",o),p>o&&(f=u.indexOf("\\",o),f===-1||f>p))||l!==-1&&u[o]==="("&&u[o+1]==="?"&&/[:!=]/.test(u[o+2])&&u[o+3]!==")"&&(l=u.indexOf(")",o),l>o&&(f=u.indexOf("\\",o),f===-1||f>l))||a!==-1&&u[o]==="("&&u[o+1]!=="|"&&(a<o&&(a=u.indexOf("|",o)),a!==-1&&u[a+1]!==")"&&(l=u.indexOf(")",a),l>a&&(f=u.indexOf("\\",a),f===-1||f>l))))return!0;if(u[o]==="\\"){var d=u[o+1];o+=2;var m=n[d];if(m){var D=u.indexOf(m,o);D!==-1&&(o=D+1)}if(u[o]==="!")return!0}else o++}return!1},s=function(u){if(u[0]==="!")return!0;for(var o=0;o<u.length;){if(/[*?{}()[\]]/.test(u[o]))return!0;if(u[o]==="\\"){var a=u[o+1];o+=2;var c=n[a];if(c){var p=u.indexOf(c,o);p!==-1&&(o=p+1)}if(u[o]==="!")return!0}else o++}return!1};e.exports=function(u,o){if(typeof u!="string"||u==="")return!1;if(r(u))return!0;var a=i;return o&&o.strict===!1&&(a=s),a(u)}}),co=R((t,e)=>{"use strict";B();var r=so(),n=W("path").posix.dirname,i=W("os").platform()==="win32",s="/",u=/\\/g,o=/[\{\[].*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function(p,l){var f=Object.assign({flipBackslashes:!0},l);f.flipBackslashes&&i&&p.indexOf(s)<0&&(p=p.replace(u,s)),o.test(p)&&(p+=s),p+="a";do p=n(p);while(r(p)||a.test(p));return p.replace(c,"$1")}}),Ue=R(t=>{"use strict";B(),t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,r)=>e.nodes.find(n=>n.type===r),t.exceedsLimit=(e,r,n=1,i)=>i===!1||!t.isInteger(e)||!t.isInteger(r)?!1:(Number(r)-Number(e))/Number(n)>=i,t.escapeNode=(e,r=0,n)=>{let i=e.nodes[r];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1,t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]),t.flatten=(...e)=>{let r=[],n=i=>{for(let s=0;s<i.length;s++){let u=i[s];Array.isArray(u)?n(u,r):u!==void 0&&r.push(u)}return r};return n(e),r}}),qe=R((t,e)=>{"use strict";B();var r=Ue();e.exports=(n,i={})=>{let s=(u,o={})=>{let a=i.escapeInvalid&&r.isInvalidBrace(o),c=u.invalid===!0&&i.escapeInvalid===!0,p="";if(u.value)return(a||c)&&r.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let l of u.nodes)p+=s(l);return p};return s(n)}}),lo=R((t,e)=>{"use strict";B(),e.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}),po=R((t,e)=>{"use strict";B();var r=lo(),n=(h,y,S)=>{if(r(h)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(y===void 0||h===y)return String(h);if(r(y)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let g={relaxZeros:!0,...S};typeof g.strictZeros=="boolean"&&(g.relaxZeros=g.strictZeros===!1);let A=String(g.relaxZeros),C=String(g.shorthand),_=String(g.capture),w=String(g.wrap),x=h+":"+y+"="+A+C+_+w;if(n.cache.hasOwnProperty(x))return n.cache[x].result;let k=Math.min(h,y),P=Math.max(h,y);if(Math.abs(k-P)===1){let T=h+"|"+y;return g.capture?`(${T})`:g.wrap===!1?T:`(?:${T})`}let I=v(h)||v(y),F={min:h,max:y,a:k,b:P},b=[],N=[];if(I&&(F.isPadded=I,F.maxLen=String(F.max).length),k<0){let T=P<0?Math.abs(P):1;N=o(T,Math.abs(k),F,g),k=F.a=0}return P>=0&&(b=o(k,P,F,g)),F.negatives=N,F.positives=b,F.result=i(N,b,g),g.capture===!0?F.result=`(${F.result})`:g.wrap!==!1&&b.length+N.length>1&&(F.result=`(?:${F.result})`),n.cache[x]=F,F.result};function i(h,y,S){let g=a(h,y,"-",!1,S)||[],A=a(y,h,"",!1,S)||[],C=a(h,y,"-?",!0,S)||[];return g.concat(C).concat(A).join("|")}function s(h,y){let S=1,g=1,A=f(h,S),C=new Set([y]);for(;h<=A&&A<=y;)C.add(A),S+=1,A=f(h,S);for(A=d(y+1,g)-1;h<A&&A<=y;)C.add(A),g+=1,A=d(y+1,g)-1;return C=[...C],C.sort(p),C}function u(h,y,S){if(h===y)return{pattern:h,count:[],digits:0};let g=c(h,y),A=g.length,C="",_=0;for(let w=0;w<A;w++){let[x,k]=g[w];x===k?C+=x:x!=="0"||k!=="9"?C+=D(x,k,S):_++}return _&&(C+=S.shorthand===!0?"\\d":"[0-9]"),{pattern:C,count:[_],digits:A}}function o(h,y,S,g){let A=s(h,y),C=[],_=h,w;for(let x=0;x<A.length;x++){let k=A[x],P=u(String(_),String(k),g),I="";if(!S.isPadded&&w&&w.pattern===P.pattern){w.count.length>1&&w.count.pop(),w.count.push(P.count[0]),w.string=w.pattern+m(w.count),_=k+1;continue}S.isPadded&&(I=E(k,S,g)),P.string=I+P.pattern+m(P.count),C.push(P),_=k+1,w=P}return C}function a(h,y,S,g,A){let C=[];for(let _ of h){let{string:w}=_;!g&&!l(y,"string",w)&&C.push(S+w),g&&l(y,"string",w)&&C.push(S+w)}return C}function c(h,y){let S=[];for(let g=0;g<h.length;g++)S.push([h[g],y[g]]);return S}function p(h,y){return h>y?1:y>h?-1:0}function l(h,y,S){return h.some(g=>g[y]===S)}function f(h,y){return Number(String(h).slice(0,-y)+"9".repeat(y))}function d(h,y){return h-h%Math.pow(10,y)}function m(h){let[y=0,S=""]=h;return S||y>1?`{${y+(S?","+S:"")}}`:""}function D(h,y,S){return`[${h}${y-h===1?"":"-"}${y}]`}function v(h){return/^-?(0+)\d/.test(h)}function E(h,y,S){if(!y.isPadded)return h;let g=Math.abs(y.maxLen-String(h).length),A=S.relaxZeros!==!1;switch(g){case 0:return"";case 1:return A?"0?":"0";case 2:return A?"0{0,2}":"00";default:return A?`0{0,${g}}`:`0{${g}}`}}n.cache={},n.clearCache=()=>n.cache={},e.exports=n}),Ur=R((t,e)=>{"use strict";B();var r=W("util"),n=po(),i=g=>g!==null&&typeof g=="object"&&!Array.isArray(g),s=g=>A=>g===!0?Number(A):String(A),u=g=>typeof g=="number"||typeof g=="string"&&g!=="",o=g=>Number.isInteger(+g),a=g=>{let A=`${g}`,C=-1;if(A[0]==="-"&&(A=A.slice(1)),A==="0")return!1;for(;A[++C]==="0";);return C>0},c=(g,A,C)=>typeof g=="string"||typeof A=="string"?!0:C.stringify===!0,p=(g,A,C)=>{if(A>0){let _=g[0]==="-"?"-":"";_&&(g=g.slice(1)),g=_+g.padStart(_?A-1:A,"0")}return C===!1?String(g):g},l=(g,A)=>{let C=g[0]==="-"?"-":"";for(C&&(g=g.slice(1),A--);g.length<A;)g="0"+g;return C?"-"+g:g},f=(g,A)=>{g.negatives.sort((k,P)=>k<P?-1:k>P?1:0),g.positives.sort((k,P)=>k<P?-1:k>P?1:0);let C=A.capture?"":"?:",_="",w="",x;return g.positives.length&&(_=g.positives.join("|")),g.negatives.length&&(w=`-(${C}${g.negatives.join("|")})`),_&&w?x=`${_}|${w}`:x=_||w,A.wrap?`(${C}${x})`:x},d=(g,A,C,_)=>{if(C)return n(g,A,{wrap:!1,..._});let w=String.fromCharCode(g);if(g===A)return w;let x=String.fromCharCode(A);return`[${w}-${x}]`},m=(g,A,C)=>{if(Array.isArray(g)){let _=C.wrap===!0,w=C.capture?"":"?:";return _?`(${w}${g.join("|")})`:g.join("|")}return n(g,A,C)},D=(...g)=>new RangeError("Invalid range arguments: "+r.inspect(...g)),v=(g,A,C)=>{if(C.strictRanges===!0)throw D([g,A]);return[]},E=(g,A)=>{if(A.strictRanges===!0)throw new TypeError(`Expected step "${g}" to be a number`);return[]},h=(g,A,C=1,_={})=>{let w=Number(g),x=Number(A);if(!Number.isInteger(w)||!Number.isInteger(x)){if(_.strictRanges===!0)throw D([g,A]);return[]}w===0&&(w=0),x===0&&(x=0);let k=w>x,P=String(g),I=String(A),F=String(C);C=Math.max(Math.abs(C),1);let b=a(P)||a(I)||a(F),N=b?Math.max(P.length,I.length,F.length):0,T=b===!1&&c(g,A,_)===!1,$=_.transform||s(T);if(_.toRegex&&C===1)return d(l(g,N),l(A,N),!0,_);let j={negatives:[],positives:[]},q=M=>j[M<0?"negatives":"positives"].push(Math.abs(M)),V=[],Z=0;for(;k?w>=x:w<=x;)_.toRegex===!0&&C>1?q(w):V.push(p($(w,Z),N,T)),w=k?w-C:w+C,Z++;return _.toRegex===!0?C>1?f(j,_):m(V,null,{wrap:!1,..._}):V},y=(g,A,C=1,_={})=>{if(!o(g)&&g.length>1||!o(A)&&A.length>1)return v(g,A,_);let w=_.transform||(T=>String.fromCharCode(T)),x=`${g}`.charCodeAt(0),k=`${A}`.charCodeAt(0),P=x>k,I=Math.min(x,k),F=Math.max(x,k);if(_.toRegex&&C===1)return d(I,F,!1,_);let b=[],N=0;for(;P?x>=k:x<=k;)b.push(w(x,N)),x=P?x-C:x+C,N++;return _.toRegex===!0?m(b,null,{wrap:!1,options:_}):b},S=(g,A,C,_={})=>{if(A==null&&u(g))return[g];if(!u(g)||!u(A))return v(g,A,_);if(typeof C=="function")return S(g,A,1,{transform:C});if(i(C))return S(g,A,0,C);let w={..._};return w.capture===!0&&(w.wrap=!0),C=C||w.step||1,o(C)?o(g)&&o(A)?h(g,A,C,w):y(g,A,Math.max(Math.abs(C),1),w):C!=null&&!i(C)?E(C,w):S(g,A,1,C)};e.exports=S}),fo=R((t,e)=>{"use strict";B();var r=Ur(),n=Ue(),i=(s,u={})=>{let o=(a,c={})=>{let p=n.isInvalidBrace(c),l=a.invalid===!0&&u.escapeInvalid===!0,f=p===!0||l===!0,d=u.escapeInvalid===!0?"\\":"",m="";if(a.isOpen===!0||a.isClose===!0)return d+a.value;if(a.type==="open")return f?d+a.value:"(";if(a.type==="close")return f?d+a.value:")";if(a.type==="comma")return a.prev.type==="comma"?"":f?a.value:"|";if(a.value)return a.value;if(a.nodes&&a.ranges>0){let D=n.reduce(a.nodes),v=r(...D,{...u,wrap:!1,toRegex:!0});if(v.length!==0)return D.length>1&&v.length>1?`(${v})`:v}if(a.nodes)for(let D of a.nodes)m+=o(D,a);return m};return o(s)};e.exports=i}),ho=R((t,e)=>{"use strict";B();var r=Ur(),n=qe(),i=Ue(),s=(o="",a="",c=!1)=>{let p=[];if(o=[].concat(o),a=[].concat(a),!a.length)return o;if(!o.length)return c?i.flatten(a).map(l=>`{${l}}`):a;for(let l of o)if(Array.isArray(l))for(let f of l)p.push(s(f,a,c));else for(let f of a)c===!0&&typeof f=="string"&&(f=`{${f}}`),p.push(Array.isArray(f)?s(l,f,c):l+f);return i.flatten(p)},u=(o,a={})=>{let c=a.rangeLimit===void 0?1e3:a.rangeLimit,p=(l,f={})=>{l.queue=[];let d=f,m=f.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,m=d.queue;if(l.invalid||l.dollar){m.push(s(m.pop(),n(l,a)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){m.push(s(m.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let h=i.reduce(l.nodes);if(i.exceedsLimit(...h,a.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let y=r(...h,a);y.length===0&&(y=n(l,a)),m.push(s(m.pop(),y)),l.nodes=[];return}let D=i.encloseBrace(l),v=l.queue,E=l;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,v=E.queue;for(let h=0;h<l.nodes.length;h++){let y=l.nodes[h];if(y.type==="comma"&&l.type==="brace"){h===1&&v.push(""),v.push("");continue}if(y.type==="close"){m.push(s(m.pop(),v,D));continue}if(y.value&&y.type!=="open"){v.push(s(v.pop(),y.value));continue}y.nodes&&p(y,l)}return v};return i.flatten(p(o))};e.exports=u}),mo=R((t,e)=>{"use strict";B(),e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
13
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),go=R((t,e)=>{"use strict";B();var r=qe(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:s,CHAR_COMMA:u,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:a,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:D,CHAR_NO_BREAK_SPACE:v,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=mo(),h=(y,S={})=>{if(typeof y!="string")throw new TypeError("Expected a string");let g=S||{},A=typeof g.maxLength=="number"?Math.min(n,g.maxLength):n;if(y.length>A)throw new SyntaxError(`Input length (${y.length}), exceeds max characters (${A})`);let C={type:"root",input:y,nodes:[]},_=[C],w=C,x=C,k=0,P=y.length,I=0,F=0,b,N={},T=()=>y[I++],$=j=>{if(j.type==="text"&&x.type==="dot"&&(x.type="text"),x&&x.type==="text"&&j.type==="text"){x.value+=j.value;return}return w.nodes.push(j),j.parent=w,j.prev=x,x=j,j};for($({type:"bos"});I<P;)if(w=_[_.length-1],b=T(),!(b===E||b===v)){if(b===i){$({type:"text",value:(S.keepEscaping?b:"")+T()});continue}if(b===d){$({type:"text",value:"\\"+b});continue}if(b===f){k++;let j=!0,q;for(;I<P&&(q=T());){if(b+=q,q===f){k++;continue}if(q===i){b+=T();continue}if(q===d&&(k--,k===0))break}$({type:"text",value:b});continue}if(b===a){w=$({type:"paren",nodes:[]}),_.push(w),$({type:"text",value:b});continue}if(b===c){if(w.type!=="paren"){$({type:"text",value:b});continue}w=_.pop(),$({type:"text",value:b}),w=_[_.length-1];continue}if(b===m||b===D||b===s){let j=b,q;for(S.keepQuotes!==!0&&(b="");I<P&&(q=T());){if(q===i){b+=q+T();continue}if(q===j){S.keepQuotes===!0&&(b+=q);break}b+=q}$({type:"text",value:b});continue}if(b===p){F++;let j=x.value&&x.value.slice(-1)==="$"||w.dollar===!0;w=$({type:"brace",open:!0,close:!1,dollar:j,depth:F,commas:0,ranges:0,nodes:[]}),_.push(w),$({type:"open",value:b});continue}if(b===l){if(w.type!=="brace"){$({type:"text",value:b});continue}let j="close";w=_.pop(),w.close=!0,$({type:j,value:b}),F--,w=_[_.length-1];continue}if(b===u&&F>0){if(w.ranges>0){w.ranges=0;let j=w.nodes.shift();w.nodes=[j,{type:"text",value:r(w)}]}$({type:"comma",value:b}),w.commas++;continue}if(b===o&&F>0&&w.commas===0){let j=w.nodes;if(F===0||j.length===0){$({type:"text",value:b});continue}if(x.type==="dot"){if(w.range=[],x.value+=b,x.type="range",w.nodes.length!==3&&w.nodes.length!==5){w.invalid=!0,w.ranges=0,x.type="text";continue}w.ranges++,w.args=[];continue}if(x.type==="range"){j.pop();let q=j[j.length-1];q.value+=x.value+b,x=q,w.ranges--;continue}$({type:"dot",value:b});continue}$({type:"text",value:b})}do if(w=_.pop(),w.type!=="root"){w.nodes.forEach(V=>{V.nodes||(V.type==="open"&&(V.isOpen=!0),V.type==="close"&&(V.isClose=!0),V.nodes||(V.type="text"),V.invalid=!0)});let j=_[_.length-1],q=j.nodes.indexOf(w);j.nodes.splice(q,1,...w.nodes)}while(_.length>0);return $({type:"eos"}),C};e.exports=h}),yo=R((t,e)=>{"use strict";B();var r=qe(),n=fo(),i=ho(),s=go(),u=(o,a={})=>{let c=[];if(Array.isArray(o))for(let p of o){let l=u.create(p,a);Array.isArray(l)?c.push(...l):c.push(l)}else c=[].concat(u.create(o,a));return a&&a.expand===!0&&a.nodupes===!0&&(c=[...new Set(c)]),c};u.parse=(o,a={})=>s(o,a),u.stringify=(o,a={})=>r(typeof o=="string"?u.parse(o,a):o,a),u.compile=(o,a={})=>(typeof o=="string"&&(o=u.parse(o,a)),n(o,a)),u.expand=(o,a={})=>{typeof o=="string"&&(o=u.parse(o,a));let c=i(o,a);return a.noempty===!0&&(c=c.filter(Boolean)),a.nodupes===!0&&(c=[...new Set(c)]),c},u.create=(o,a={})=>o===""||o.length<3?[o]:a.expand!==!0?u.compile(o,a):u.expand(o,a),e.exports=u}),we=R((t,e)=>{"use strict";B();var r=W("path"),n="\\\\/",i=`[^${n}]`,s="\\.",u="\\+",o="\\?",a="\\/",c="(?=.)",p="[^/]",l=`(?:${a}|$)`,f=`(?:^|${a})`,d=`${s}{1,2}${l}`,m=`(?!${s})`,D=`(?!${f}${d})`,v=`(?!${s}{0,1}${l})`,E=`(?!${d})`,h=`[^.${a}]`,y=`${p}*?`,S={DOT_LITERAL:s,PLUS_LITERAL:u,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,QMARK:p,END_ANCHOR:l,DOTS_SLASH:d,NO_DOT:m,NO_DOTS:D,NO_DOT_SLASH:v,NO_DOTS_SLASH:E,QMARK_NO_DOT:h,STAR:y,START_ANCHOR:f},g={...S,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${s}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${s})`,NO_DOTS:`(?!(?:^|[${n}])${s}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${s}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${s}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},A={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:A,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(C){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${C.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(C){return C===!0?g:S}}}),Fe=R(t=>{"use strict";B();var e=W("path"),r=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:u}=we();t.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),t.hasRegexChars=o=>s.test(o),t.isRegexChar=o=>o.length===1&&t.hasRegexChars(o),t.escapeRegex=o=>o.replace(u,"\\$1"),t.toPosixSlashes=o=>o.replace(n,"/"),t.removeBackslashes=o=>o.replace(i,a=>a==="\\"?"":a),t.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},t.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||e.sep==="\\",t.escapeLast=(o,a,c)=>{let p=o.lastIndexOf(a,c);return p===-1?o:o[p-1]==="\\"?t.escapeLast(o,a,p-1):`${o.slice(0,p)}\\${o.slice(p)}`},t.removePrefix=(o,a={})=>{let c=o;return c.startsWith("./")&&(c=c.slice(2),a.prefix="./"),c},t.wrapOutput=(o,a={},c={})=>{let p=c.contains?"":"^",l=c.contains?"":"$",f=`${p}(?:${o})${l}`;return a.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}}),Do=R((t,e)=>{"use strict";B();var r=Fe(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:u,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:d,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:D,CHAR_RIGHT_PARENTHESES:v,CHAR_RIGHT_SQUARE_BRACKET:E}=we(),h=g=>g===c||g===s,y=g=>{g.isPrefix!==!0&&(g.depth=g.isGlobstar?1/0:1)},S=(g,A)=>{let C=A||{},_=g.length-1,w=C.parts===!0||C.scanToEnd===!0,x=[],k=[],P=[],I=g,F=-1,b=0,N=0,T=!1,$=!1,j=!1,q=!1,V=!1,Z=!1,M=!1,nt=!1,ot=!1,ut=!1,O=0,L,G,K={value:"",depth:0,isGlob:!1},it=()=>F>=_,et=()=>I.charCodeAt(F+1),Q=()=>(L=G,I.charCodeAt(++F));for(;F<_;){G=Q();let Y;if(G===s){M=K.backslashes=!0,G=Q(),G===p&&(Z=!0);continue}if(Z===!0||G===p){for(O++;it()!==!0&&(G=Q());){if(G===s){M=K.backslashes=!0,Q();continue}if(G===p){O++;continue}if(Z!==!0&&G===o&&(G=Q())===o){if(T=K.isBrace=!0,j=K.isGlob=!0,ut=!0,w===!0)continue;break}if(Z!==!0&&G===u){if(T=K.isBrace=!0,j=K.isGlob=!0,ut=!0,w===!0)continue;break}if(G===D&&(O--,O===0)){Z=!1,T=K.isBrace=!0,ut=!0;break}}if(w===!0)continue;break}if(G===c){if(x.push(F),k.push(K),K={value:"",depth:0,isGlob:!1},ut===!0)continue;if(L===o&&F===b+1){b+=2;continue}N=F+1;continue}if(C.noext!==!0&&(G===d||G===i||G===n||G===m||G===a)&&et()===l){if(j=K.isGlob=!0,q=K.isExtglob=!0,ut=!0,G===a&&F===b&&(ot=!0),w===!0){for(;it()!==!0&&(G=Q());){if(G===s){M=K.backslashes=!0,G=Q();continue}if(G===v){j=K.isGlob=!0,ut=!0;break}}continue}break}if(G===n){if(L===n&&(V=K.isGlobstar=!0),j=K.isGlob=!0,ut=!0,w===!0)continue;break}if(G===m){if(j=K.isGlob=!0,ut=!0,w===!0)continue;break}if(G===f){for(;it()!==!0&&(Y=Q());){if(Y===s){M=K.backslashes=!0,Q();continue}if(Y===E){$=K.isBracket=!0,j=K.isGlob=!0,ut=!0;break}}if(w===!0)continue;break}if(C.nonegate!==!0&&G===a&&F===b){nt=K.negated=!0,b++;continue}if(C.noparen!==!0&&G===l){if(j=K.isGlob=!0,w===!0){for(;it()!==!0&&(G=Q());){if(G===l){M=K.backslashes=!0,G=Q();continue}if(G===v){ut=!0;break}}continue}break}if(j===!0){if(ut=!0,w===!0)continue;break}}C.noext===!0&&(q=!1,j=!1);let X=I,rt="",lt="";b>0&&(rt=I.slice(0,b),I=I.slice(b),N-=b),X&&j===!0&&N>0?(X=I.slice(0,N),lt=I.slice(N)):j===!0?(X="",lt=I):X=I,X&&X!==""&&X!=="/"&&X!==I&&h(X.charCodeAt(X.length-1))&&(X=X.slice(0,-1)),C.unescape===!0&&(lt&&(lt=r.removeBackslashes(lt)),X&&M===!0&&(X=r.removeBackslashes(X)));let z={prefix:rt,input:g,start:b,base:X,glob:lt,isBrace:T,isBracket:$,isGlob:j,isExtglob:q,isGlobstar:V,negated:nt,negatedExtglob:ot};if(C.tokens===!0&&(z.maxDepth=0,h(G)||k.push(K),z.tokens=k),C.parts===!0||C.tokens===!0){let Y;for(let yt=0;yt<x.length;yt++){let Be=Y?Y+1:b,U=x[yt],at=g.slice(Be,U);C.tokens&&(yt===0&&b!==0?(k[yt].isPrefix=!0,k[yt].value=rt):k[yt].value=at,y(k[yt]),z.maxDepth+=k[yt].depth),(yt!==0||at!=="")&&P.push(at),Y=U}if(Y&&Y+1<g.length){let yt=g.slice(Y+1);P.push(yt),C.tokens&&(k[k.length-1].value=yt,y(k[k.length-1]),z.maxDepth+=k[k.length-1].depth)}z.slashes=x,z.parts=P}return z};e.exports=S}),vo=R((t,e)=>{"use strict";B();var r=we(),n=Fe(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=r,c=(f,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...f,d);f.sort();let m=`[${f.join("-")}]`;try{new RegExp(m)}catch{return f.map(D=>n.escapeRegex(D)).join("..")}return m},p=(f,d)=>`Missing ${f}: "${d}" - use "\\\\${d}" to match literal characters`,l=(f,d)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=a[f]||f;let m={...d},D=typeof m.maxLength=="number"?Math.min(i,m.maxLength):i,v=f.length;if(v>D)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${D}`);let E={type:"bos",value:"",output:m.prepend||""},h=[E],y=m.capture?"":"?:",S=n.isWindows(d),g=r.globChars(S),A=r.extglobChars(g),{DOT_LITERAL:C,PLUS_LITERAL:_,SLASH_LITERAL:w,ONE_CHAR:x,DOTS_SLASH:k,NO_DOT:P,NO_DOT_SLASH:I,NO_DOTS_SLASH:F,QMARK:b,QMARK_NO_DOT:N,STAR:T,START_ANCHOR:$}=g,j=U=>`(${y}(?:(?!${$}${U.dot?k:C}).)*?)`,q=m.dot?"":P,V=m.dot?b:N,Z=m.bash===!0?j(m):T;m.capture&&(Z=`(${Z})`),typeof m.noext=="boolean"&&(m.noextglob=m.noext);let M={input:f,index:-1,start:0,dot:m.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};f=n.removePrefix(f,M),v=f.length;let nt=[],ot=[],ut=[],O=E,L,G=()=>M.index===v-1,K=M.peek=(U=1)=>f[M.index+U],it=M.advance=()=>f[++M.index]||"",et=()=>f.slice(M.index+1),Q=(U="",at=0)=>{M.consumed+=U,M.index+=at},X=U=>{M.output+=U.output!=null?U.output:U.value,Q(U.value)},rt=()=>{let U=1;for(;K()==="!"&&(K(2)!=="("||K(3)==="?");)it(),M.start++,U++;return U%2===0?!1:(M.negated=!0,M.start++,!0)},lt=U=>{M[U]++,ut.push(U)},z=U=>{M[U]--,ut.pop()},Y=U=>{if(O.type==="globstar"){let at=M.braces>0&&(U.type==="comma"||U.type==="brace"),H=U.extglob===!0||nt.length&&(U.type==="pipe"||U.type==="paren");U.type!=="slash"&&U.type!=="paren"&&!at&&!H&&(M.output=M.output.slice(0,-O.output.length),O.type="star",O.value="*",O.output=Z,M.output+=O.output)}if(nt.length&&U.type!=="paren"&&(nt[nt.length-1].inner+=U.value),(U.value||U.output)&&X(U),O&&O.type==="text"&&U.type==="text"){O.value+=U.value,O.output=(O.output||"")+U.value;return}U.prev=O,h.push(U),O=U},yt=(U,at)=>{let H={...A[at],conditions:1,inner:""};H.prev=O,H.parens=M.parens,H.output=M.output;let tt=(m.capture?"(":"")+H.open;lt("parens"),Y({type:U,value:at,output:M.output?"":x}),Y({type:"paren",extglob:!0,value:it(),output:tt}),nt.push(H)},Be=U=>{let at=U.close+(m.capture?")":""),H;if(U.type==="negate"){let tt=Z;if(U.inner&&U.inner.length>1&&U.inner.includes("/")&&(tt=j(m)),(tt!==Z||G()||/^\)+$/.test(et()))&&(at=U.close=`)$))${tt}`),U.inner.includes("*")&&(H=et())&&/^\.[^\\/.]+$/.test(H)){let pt=l(H,{...d,fastpaths:!1}).output;at=U.close=`)${pt})${tt})`}U.prev.type==="bos"&&(M.negatedExtglob=!0)}Y({type:"paren",extglob:!0,value:L,output:at}),z("parens")};if(m.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let U=!1,at=f.replace(o,(H,tt,pt,Et,ht,Oe)=>Et==="\\"?(U=!0,H):Et==="?"?tt?tt+Et+(ht?b.repeat(ht.length):""):Oe===0?V+(ht?b.repeat(ht.length):""):b.repeat(pt.length):Et==="."?C.repeat(pt.length):Et==="*"?tt?tt+Et+(ht?Z:""):Z:tt?H:`\\${H}`);return U===!0&&(m.unescape===!0?at=at.replace(/\\/g,""):at=at.replace(/\\+/g,H=>H.length%2===0?"\\\\":H?"\\":"")),at===f&&m.contains===!0?(M.output=f,M):(M.output=n.wrapOutput(at,M,d),M)}for(;!G();){if(L=it(),L==="\0")continue;if(L==="\\"){let H=K();if(H==="/"&&m.bash!==!0||H==="."||H===";")continue;if(!H){L+="\\",Y({type:"text",value:L});continue}let tt=/^\\+/.exec(et()),pt=0;if(tt&&tt[0].length>2&&(pt=tt[0].length,M.index+=pt,pt%2!==0&&(L+="\\")),m.unescape===!0?L=it():L+=it(),M.brackets===0){Y({type:"text",value:L});continue}}if(M.brackets>0&&(L!=="]"||O.value==="["||O.value==="[^")){if(m.posix!==!1&&L===":"){let H=O.value.slice(1);if(H.includes("[")&&(O.posix=!0,H.includes(":"))){let tt=O.value.lastIndexOf("["),pt=O.value.slice(0,tt),Et=O.value.slice(tt+2),ht=s[Et];if(ht){O.value=pt+ht,M.backtrack=!0,it(),!E.output&&h.indexOf(O)===1&&(E.output=x);continue}}}(L==="["&&K()!==":"||L==="-"&&K()==="]")&&(L=`\\${L}`),L==="]"&&(O.value==="["||O.value==="[^")&&(L=`\\${L}`),m.posix===!0&&L==="!"&&O.value==="["&&(L="^"),O.value+=L,X({value:L});continue}if(M.quotes===1&&L!=='"'){L=n.escapeRegex(L),O.value+=L,X({value:L});continue}if(L==='"'){M.quotes=M.quotes===1?0:1,m.keepQuotes===!0&&Y({type:"text",value:L});continue}if(L==="("){lt("parens"),Y({type:"paren",value:L});continue}if(L===")"){if(M.parens===0&&m.strictBrackets===!0)throw new SyntaxError(p("opening","("));let H=nt[nt.length-1];if(H&&M.parens===H.parens+1){Be(nt.pop());continue}Y({type:"paren",value:L,output:M.parens?")":"\\)"}),z("parens");continue}if(L==="["){if(m.nobracket===!0||!et().includes("]")){if(m.nobracket!==!0&&m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));L=`\\${L}`}else lt("brackets");Y({type:"bracket",value:L});continue}if(L==="]"){if(m.nobracket===!0||O&&O.type==="bracket"&&O.value.length===1){Y({type:"text",value:L,output:`\\${L}`});continue}if(M.brackets===0){if(m.strictBrackets===!0)throw new SyntaxError(p("opening","["));Y({type:"text",value:L,output:`\\${L}`});continue}z("brackets");let H=O.value.slice(1);if(O.posix!==!0&&H[0]==="^"&&!H.includes("/")&&(L=`/${L}`),O.value+=L,X({value:L}),m.literalBrackets===!1||n.hasRegexChars(H))continue;let tt=n.escapeRegex(O.value);if(M.output=M.output.slice(0,-O.value.length),m.literalBrackets===!0){M.output+=tt,O.value=tt;continue}O.value=`(${y}${tt}|${O.value})`,M.output+=O.value;continue}if(L==="{"&&m.nobrace!==!0){lt("braces");let H={type:"brace",value:L,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};ot.push(H),Y(H);continue}if(L==="}"){let H=ot[ot.length-1];if(m.nobrace===!0||!H){Y({type:"text",value:L,output:L});continue}let tt=")";if(H.dots===!0){let pt=h.slice(),Et=[];for(let ht=pt.length-1;ht>=0&&(h.pop(),pt[ht].type!=="brace");ht--)pt[ht].type!=="dots"&&Et.unshift(pt[ht].value);tt=c(Et,m),M.backtrack=!0}if(H.comma!==!0&&H.dots!==!0){let pt=M.output.slice(0,H.outputIndex),Et=M.tokens.slice(H.tokensIndex);H.value=H.output="\\{",L=tt="\\}",M.output=pt;for(let ht of Et)M.output+=ht.output||ht.value}Y({type:"brace",value:L,output:tt}),z("braces"),ot.pop();continue}if(L==="|"){nt.length>0&&nt[nt.length-1].conditions++,Y({type:"text",value:L});continue}if(L===","){let H=L,tt=ot[ot.length-1];tt&&ut[ut.length-1]==="braces"&&(tt.comma=!0,H="|"),Y({type:"comma",value:L,output:H});continue}if(L==="/"){if(O.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",h.pop(),O=E;continue}Y({type:"slash",value:L,output:w});continue}if(L==="."){if(M.braces>0&&O.type==="dot"){O.value==="."&&(O.output=C);let H=ot[ot.length-1];O.type="dots",O.output+=L,O.value+=L,H.dots=!0;continue}if(M.braces+M.parens===0&&O.type!=="bos"&&O.type!=="slash"){Y({type:"text",value:L,output:C});continue}Y({type:"dot",value:L,output:C});continue}if(L==="?"){if(!(O&&O.value==="(")&&m.noextglob!==!0&&K()==="("&&K(2)!=="?"){yt("qmark",L);continue}if(O&&O.type==="paren"){let H=K(),tt=L;if(H==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(O.value==="("&&!/[!=<:]/.test(H)||H==="<"&&!/<([!=]|\w+>)/.test(et()))&&(tt=`\\${L}`),Y({type:"text",value:L,output:tt});continue}if(m.dot!==!0&&(O.type==="slash"||O.type==="bos")){Y({type:"qmark",value:L,output:N});continue}Y({type:"qmark",value:L,output:b});continue}if(L==="!"){if(m.noextglob!==!0&&K()==="("&&(K(2)!=="?"||!/[!=<:]/.test(K(3)))){yt("negate",L);continue}if(m.nonegate!==!0&&M.index===0){rt();continue}}if(L==="+"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){yt("plus",L);continue}if(O&&O.value==="("||m.regex===!1){Y({type:"plus",value:L,output:_});continue}if(O&&(O.type==="bracket"||O.type==="paren"||O.type==="brace")||M.parens>0){Y({type:"plus",value:L});continue}Y({type:"plus",value:_});continue}if(L==="@"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){Y({type:"at",extglob:!0,value:L,output:""});continue}Y({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);let H=u.exec(et());H&&(L+=H[0],M.index+=H[0].length),Y({type:"text",value:L});continue}if(O&&(O.type==="globstar"||O.star===!0)){O.type="star",O.star=!0,O.value+=L,O.output=Z,M.backtrack=!0,M.globstar=!0,Q(L);continue}let U=et();if(m.noextglob!==!0&&/^\([^?]/.test(U)){yt("star",L);continue}if(O.type==="star"){if(m.noglobstar===!0){Q(L);continue}let H=O.prev,tt=H.prev,pt=H.type==="slash"||H.type==="bos",Et=tt&&(tt.type==="star"||tt.type==="globstar");if(m.bash===!0&&(!pt||U[0]&&U[0]!=="/")){Y({type:"star",value:L,output:""});continue}let ht=M.braces>0&&(H.type==="comma"||H.type==="brace"),Oe=nt.length&&(H.type==="pipe"||H.type==="paren");if(!pt&&H.type!=="paren"&&!ht&&!Oe){Y({type:"star",value:L,output:""});continue}for(;U.slice(0,3)==="/**";){let de=f[M.index+4];if(de&&de!=="/")break;U=U.slice(3),Q("/**",3)}if(H.type==="bos"&&G()){O.type="globstar",O.value+=L,O.output=j(m),M.output=O.output,M.globstar=!0,Q(L);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&!Et&&G()){M.output=M.output.slice(0,-(H.output+O.output).length),H.output=`(?:${H.output}`,O.type="globstar",O.output=j(m)+(m.strictSlashes?")":"|$)"),O.value+=L,M.globstar=!0,M.output+=H.output+O.output,Q(L);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&U[0]==="/"){let de=U[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(H.output+O.output).length),H.output=`(?:${H.output}`,O.type="globstar",O.output=`${j(m)}${w}|${w}${de})`,O.value+=L,M.output+=H.output+O.output,M.globstar=!0,Q(L+it()),Y({type:"slash",value:"/",output:""});continue}if(H.type==="bos"&&U[0]==="/"){O.type="globstar",O.value+=L,O.output=`(?:^|${w}|${j(m)}${w})`,M.output=O.output,M.globstar=!0,Q(L+it()),Y({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-O.output.length),O.type="globstar",O.output=j(m),O.value+=L,M.output+=O.output,M.globstar=!0,Q(L);continue}let at={type:"star",value:L,output:Z};if(m.bash===!0){at.output=".*?",(O.type==="bos"||O.type==="slash")&&(at.output=q+at.output),Y(at);continue}if(O&&(O.type==="bracket"||O.type==="paren")&&m.regex===!0){at.output=L,Y(at);continue}(M.index===M.start||O.type==="slash"||O.type==="dot")&&(O.type==="dot"?(M.output+=I,O.output+=I):m.dot===!0?(M.output+=F,O.output+=F):(M.output+=q,O.output+=q),K()!=="*"&&(M.output+=x,O.output+=x)),Y(at)}for(;M.brackets>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));M.output=n.escapeLast(M.output,"["),z("brackets")}for(;M.parens>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing",")"));M.output=n.escapeLast(M.output,"("),z("parens")}for(;M.braces>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","}"));M.output=n.escapeLast(M.output,"{"),z("braces")}if(m.strictSlashes!==!0&&(O.type==="star"||O.type==="bracket")&&Y({type:"maybe_slash",value:"",output:`${w}?`}),M.backtrack===!0){M.output="";for(let U of M.tokens)M.output+=U.output!=null?U.output:U.value,U.suffix&&(M.output+=U.suffix)}return M};l.fastpaths=(f,d)=>{let m={...d},D=typeof m.maxLength=="number"?Math.min(i,m.maxLength):i,v=f.length;if(v>D)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${D}`);f=a[f]||f;let E=n.isWindows(d),{DOT_LITERAL:h,SLASH_LITERAL:y,ONE_CHAR:S,DOTS_SLASH:g,NO_DOT:A,NO_DOTS:C,NO_DOTS_SLASH:_,STAR:w,START_ANCHOR:x}=r.globChars(E),k=m.dot?C:A,P=m.dot?_:A,I=m.capture?"":"?:",F={negated:!1,prefix:""},b=m.bash===!0?".*?":w;m.capture&&(b=`(${b})`);let N=q=>q.noglobstar===!0?b:`(${I}(?:(?!${x}${q.dot?g:h}).)*?)`,T=q=>{switch(q){case"*":return`${k}${S}${b}`;case".*":return`${h}${S}${b}`;case"*.*":return`${k}${b}${h}${S}${b}`;case"*/*":return`${k}${b}${y}${S}${P}${b}`;case"**":return k+N(m);case"**/*":return`(?:${k}${N(m)}${y})?${P}${S}${b}`;case"**/*.*":return`(?:${k}${N(m)}${y})?${P}${b}${h}${S}${b}`;case"**/.*":return`(?:${k}${N(m)}${y})?${h}${S}${b}`;default:{let V=/^(.*?)\.(\w+)$/.exec(q);if(!V)return;let Z=T(V[1]);return Z?Z+h+V[2]:void 0}}},$=n.removePrefix(f,F),j=T($);return j&&m.strictSlashes!==!0&&(j+=`${y}?`),j},e.exports=l}),Eo=R((t,e)=>{"use strict";B();var r=W("path"),n=Do(),i=vo(),s=Fe(),u=we(),o=c=>c&&typeof c=="object"&&!Array.isArray(c),a=(c,p,l=!1)=>{if(Array.isArray(c)){let y=c.map(S=>a(S,p,l));return S=>{for(let g of y){let A=g(S);if(A)return A}return!1}}let f=o(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");let d=p||{},m=s.isWindows(p),D=f?a.compileRe(c,p):a.makeRe(c,p,!1,!0),v=D.state;delete D.state;let E=()=>!1;if(d.ignore){let y={...p,ignore:null,onMatch:null,onResult:null};E=a(d.ignore,y,l)}let h=(y,S=!1)=>{let{isMatch:g,match:A,output:C}=a.test(y,D,p,{glob:c,posix:m}),_={glob:c,state:v,regex:D,posix:m,input:y,output:C,match:A,isMatch:g};return typeof d.onResult=="function"&&d.onResult(_),g===!1?(_.isMatch=!1,S?_:!1):E(y)?(typeof d.onIgnore=="function"&&d.onIgnore(_),_.isMatch=!1,S?_:!1):(typeof d.onMatch=="function"&&d.onMatch(_),S?_:!0)};return l&&(h.state=v),h};a.test=(c,p,l,{glob:f,posix:d}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let m=l||{},D=m.format||(d?s.toPosixSlashes:null),v=c===f,E=v&&D?D(c):c;return v===!1&&(E=D?D(c):c,v=E===f),(v===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?v=a.matchBase(c,p,l,d):v=p.exec(E)),{isMatch:Boolean(v),match:v,output:E}},a.matchBase=(c,p,l,f=s.isWindows(l))=>(p instanceof RegExp?p:a.makeRe(p,l)).test(r.basename(c)),a.isMatch=(c,p,l)=>a(p,l)(c),a.parse=(c,p)=>Array.isArray(c)?c.map(l=>a.parse(l,p)):i(c,{...p,fastpaths:!1}),a.scan=(c,p)=>n(c,p),a.compileRe=(c,p,l=!1,f=!1)=>{if(l===!0)return c.output;let d=p||{},m=d.contains?"":"^",D=d.contains?"":"$",v=`${m}(?:${c.output})${D}`;c&&c.negated===!0&&(v=`^(?!${v}).*$`);let E=a.toRegex(v,p);return f===!0&&(E.state=c),E},a.makeRe=(c,p={},l=!1,f=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(d.output=i.fastpaths(c,p)),d.output||(d=i(c,p)),a.compileRe(d,p,l,f)},a.toRegex=(c,p)=>{try{let l=p||{};return new RegExp(c,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},a.constants=u,e.exports=a}),Ao=R((t,e)=>{"use strict";B(),e.exports=Eo()}),Co=R((t,e)=>{"use strict";B();var r=W("util"),n=yo(),i=Ao(),s=Fe(),u=a=>a===""||a==="./",o=(a,c,p)=>{c=[].concat(c),a=[].concat(a);let l=new Set,f=new Set,d=new Set,m=0,D=E=>{d.add(E.output),p&&p.onResult&&p.onResult(E)};for(let E=0;E<c.length;E++){let h=i(String(c[E]),{...p,onResult:D},!0),y=h.state.negated||h.state.negatedExtglob;y&&m++;for(let S of a){let g=h(S,!0);!(y?!g.isMatch:g.isMatch)||(y?l.add(g.output):(l.delete(g.output),f.add(g.output)))}}let v=(m===c.length?[...d]:[...f]).filter(E=>!l.has(E));if(p&&v.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?c.map(E=>E.replace(/\\/g,"")):c}return v};o.match=o,o.matcher=(a,c)=>i(a,c),o.isMatch=(a,c,p)=>i(c,p)(a),o.any=o.isMatch,o.not=(a,c,p={})=>{c=[].concat(c).map(String);let l=new Set,f=[],d=D=>{p.onResult&&p.onResult(D),f.push(D.output)},m=new Set(o(a,c,{...p,onResult:d}));for(let D of f)m.has(D)||l.add(D);return[...l]},o.contains=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);if(Array.isArray(c))return c.some(l=>o.contains(a,l,p));if(typeof c=="string"){if(u(a)||u(c))return!1;if(a.includes(c)||a.startsWith("./")&&a.slice(2).includes(c))return!0}return o.isMatch(a,c,{...p,contains:!0})},o.matchKeys=(a,c,p)=>{if(!s.isObject(a))throw new TypeError("Expected the first argument to be an object");let l=o(Object.keys(a),c,p),f={};for(let d of l)f[d]=a[d];return f},o.some=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=i(String(f),p);if(l.some(m=>d(m)))return!0}return!1},o.every=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=i(String(f),p);if(!l.every(m=>d(m)))return!1}return!0},o.all=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);return[].concat(c).every(l=>i(l,p)(a))},o.capture=(a,c,p)=>{let l=s.isWindows(p),f=i.makeRe(String(a),{...p,capture:!0}).exec(l?s.toPosixSlashes(c):c);if(f)return f.slice(1).map(d=>d===void 0?"":d)},o.makeRe=(...a)=>i.makeRe(...a),o.scan=(...a)=>i.scan(...a),o.parse=(a,c)=>{let p=[];for(let l of[].concat(a||[]))for(let f of n(String(l),c))p.push(i.parse(f,c));return p},o.braces=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!/\{.*\}/.test(a)?[a]:n(a,c)},o.braceExpand=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return o.braces(a,{...c,expand:!0})},e.exports=o}),So=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;var e=W("path"),r=co(),n=Co(),i="**",s="\\",u=/[*?]|^!/,o=/\[[^[]*]/,a=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,p=/,|\.\./;function l(T,$={}){return!f(T,$)}t.isStaticPattern=l;function f(T,$={}){return T===""?!1:!!($.caseSensitiveMatch===!1||T.includes(s)||u.test(T)||o.test(T)||a.test(T)||$.extglob!==!1&&c.test(T)||$.braceExpansion!==!1&&d(T))}t.isDynamicPattern=f;function d(T){let $=T.indexOf("{");if($===-1)return!1;let j=T.indexOf("}",$+1);if(j===-1)return!1;let q=T.slice($,j);return p.test(q)}function m(T){return v(T)?T.slice(1):T}t.convertToPositivePattern=m;function D(T){return"!"+T}t.convertToNegativePattern=D;function v(T){return T.startsWith("!")&&T[1]!=="("}t.isNegativePattern=v;function E(T){return!v(T)}t.isPositivePattern=E;function h(T){return T.filter(v)}t.getNegativePatterns=h;function y(T){return T.filter(E)}t.getPositivePatterns=y;function S(T){return T.filter($=>!A($))}t.getPatternsInsideCurrentDirectory=S;function g(T){return T.filter(A)}t.getPatternsOutsideCurrentDirectory=g;function A(T){return T.startsWith("..")||T.startsWith("./..")}t.isPatternRelatedToParentDirectory=A;function C(T){return r(T,{flipBackslashes:!1})}t.getBaseDirectory=C;function _(T){return T.includes(i)}t.hasGlobStar=_;function w(T){return T.endsWith("/"+i)}t.endsWithSlashGlobStar=w;function x(T){let $=e.basename(T);return w(T)||l($)}t.isAffectDepthOfReadingPattern=x;function k(T){return T.reduce(($,j)=>$.concat(P(j)),[])}t.expandPatternsWithBraceExpansion=k;function P(T){return n.braces(T,{expand:!0,nodupes:!0})}t.expandBraceExpansion=P;function I(T,$){let{parts:j}=n.scan(T,Object.assign(Object.assign({},$),{parts:!0}));return j.length===0&&(j=[T]),j[0].startsWith("/")&&(j[0]=j[0].slice(1),j.unshift("")),j}t.getPatternParts=I;function F(T,$){return n.makeRe(T,$)}t.makeRe=F;function b(T,$){return T.map(j=>F(j,$))}t.convertPatternsToRe=b;function N(T,$){return $.some(j=>j.test(T))}t.matchAny=N}),bo=R((t,e)=>{"use strict";B();var r=W("stream"),n=r.PassThrough,i=Array.prototype.slice;e.exports=s;function s(){let o=[],a=i.call(arguments),c=!1,p=a[a.length-1];p&&!Array.isArray(p)&&p.pipe==null?a.pop():p={};let l=p.end!==!1,f=p.pipeError===!0;p.objectMode==null&&(p.objectMode=!0),p.highWaterMark==null&&(p.highWaterMark=64*1024);let d=n(p);function m(){for(let E=0,h=arguments.length;E<h;E++)o.push(u(arguments[E],p));return D(),this}function D(){if(c)return;c=!0;let E=o.shift();if(!E){process.nextTick(v);return}Array.isArray(E)||(E=[E]);let h=E.length+1;function y(){--h>0||(c=!1,D())}function S(g){function A(){g.removeListener("merge2UnpipeEnd",A),g.removeListener("end",A),f&&g.removeListener("error",C),y()}function C(_){d.emit("error",_)}if(g._readableState.endEmitted)return y();g.on("merge2UnpipeEnd",A),g.on("end",A),f&&g.on("error",C),g.pipe(d,{end:!1}),g.resume()}for(let g=0;g<E.length;g++)S(E[g]);y()}function v(){c=!1,d.emit("queueDrain"),l&&d.end()}return d.setMaxListeners(0),d.add=m,d.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),a.length&&m.apply(null,a),d}function u(o,a){if(Array.isArray(o))for(let c=0,p=o.length;c<p;c++)o[c]=u(o[c],a);else{if(!o._readableState&&o.pipe&&(o=o.pipe(n(a))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}),wo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var e=bo();function r(i){let s=e(i);return i.forEach(u=>{u.once("error",o=>s.emit("error",o))}),s.once("close",()=>n(i)),s.once("end",()=>n(i)),s}t.merge=r;function n(i){i.forEach(s=>s.emit("close"))}}),Fo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.isString=void 0;function e(n){return typeof n=="string"}t.isString=e;function r(n){return n===""}t.isEmpty=r}),Gt=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;var e=no();t.array=e;var r=io();t.errno=r;var n=oo();t.fs=n;var i=ao();t.path=i;var s=So();t.pattern=s;var u=wo();t.stream=u;var o=Fo();t.string=o}),_o=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;var e=Gt();function r(c,p){let l=i(c),f=s(c,p.ignore),d=l.filter(E=>e.pattern.isStaticPattern(E,p)),m=l.filter(E=>e.pattern.isDynamicPattern(E,p)),D=n(d,f,!1),v=n(m,f,!0);return D.concat(v)}t.generate=r;function n(c,p,l){let f=[],d=e.pattern.getPatternsOutsideCurrentDirectory(c),m=e.pattern.getPatternsInsideCurrentDirectory(c),D=u(d),v=u(m);return f.push(...o(D,p,l)),"."in v?f.push(a(".",m,p,l)):f.push(...o(v,p,l)),f}t.convertPatternsToTasks=n;function i(c){return e.pattern.getPositivePatterns(c)}t.getPositivePatterns=i;function s(c,p){return e.pattern.getNegativePatterns(c).concat(p).map(e.pattern.convertToPositivePattern)}t.getNegativePatternsAsPositive=s;function u(c){let p={};return c.reduce((l,f)=>{let d=e.pattern.getBaseDirectory(f);return d in l?l[d].push(f):l[d]=[f],l},p)}t.groupPatternsByBaseDirectory=u;function o(c,p,l){return Object.keys(c).map(f=>a(f,c[f],p,l))}t.convertPatternGroupsToTasks=o;function a(c,p,l,f){return{dynamic:f,positive:p,negative:l,base:c,patterns:[].concat(p,l.map(e.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=a}),ko=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeDuplicateSlashes=t.transform=void 0;var e=/(?!^)\/{2,}/g;function r(i){return i.map(s=>n(s))}t.transform=r;function n(i){return i.replace(e,"/")}t.removeDuplicateSlashes=n}),xo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(i,s,u){s.fs.lstat(i,(o,a)=>{if(o!==null){r(u,o);return}if(!a.isSymbolicLink()||!s.followSymbolicLink){n(u,a);return}s.fs.stat(i,(c,p)=>{if(c!==null){if(s.throwErrorOnBrokenSymbolicLink){r(u,c);return}n(u,a);return}s.markSymbolicLink&&(p.isSymbolicLink=()=>!0),n(u,p)})})}t.read=e;function r(i,s){i(s)}function n(i,s){i(null,s)}}),Bo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(r,n){let i=n.fs.lstatSync(r);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let s=n.fs.statSync(r);return n.markSymbolicLink&&(s.isSymbolicLink=()=>!0),s}catch(s){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw s}}t.read=e}),Oo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=W("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync};function r(n){return n===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),n)}t.createFileSystemAdapter=r}),Ro=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Oo(),r=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=e.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};t.default=r}),re=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.statSync=t.stat=t.Settings=void 0;var e=xo(),r=Bo(),n=Ro();t.Settings=n.default;function i(o,a,c){if(typeof a=="function"){e.read(o,u(),a);return}e.read(o,u(a),c)}t.stat=i;function s(o,a){let c=u(a);return r.read(o,c)}t.statSync=s;function u(o={}){return o instanceof n.default?o:new n.default(o)}}),Po=R((t,e)=>{B();var r;e.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(r||(r=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),To=R((t,e)=>{B(),e.exports=n;var r=Po();function n(i,s){let u,o,a,c=!0;Array.isArray(i)?(u=[],o=i.length):(a=Object.keys(i),u={},o=a.length);function p(f){function d(){s&&s(f,u),s=null}c?r(d):d()}function l(f,d,m){u[f]=m,(--o===0||d)&&p(d)}o?a?a.forEach(function(f){i[f](function(d,m){l(f,d,m)})}):i.forEach(function(f,d){f(function(m,D){l(d,m,D)})}):p(null),c=!1}}),qr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var e=process.versions.node.split(".");if(e[0]===void 0||e[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(e[0],10),n=Number.parseInt(e[1],10),i=10,s=10,u=r>i,o=r===i&&n>=s;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||o}),Io=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new e(n,i)}t.createDirentFromStats=r}),Kr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.fs=void 0;var e=Io();t.fs=e}),Jr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=void 0;function e(r,n,i){return r.endsWith(i)?r+n:r+i+n}t.joinPathSegments=e}),Lo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=re(),r=To(),n=qr(),i=Kr(),s=Jr();function u(f,d,m){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(f,d,m);return}c(f,d,m)}t.read=u;function o(f,d,m){d.fs.readdir(f,{withFileTypes:!0},(D,v)=>{if(D!==null){p(m,D);return}let E=v.map(y=>({dirent:y,name:y.name,path:s.joinPathSegments(f,y.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){l(m,E);return}let h=E.map(y=>a(y,d));r(h,(y,S)=>{if(y!==null){p(m,y);return}l(m,S)})})}t.readdirWithFileTypes=o;function a(f,d){return m=>{if(!f.dirent.isSymbolicLink()){m(null,f);return}d.fs.stat(f.path,(D,v)=>{if(D!==null){if(d.throwErrorOnBrokenSymbolicLink){m(D);return}m(null,f);return}f.dirent=i.fs.createDirentFromStats(f.name,v),m(null,f)})}}function c(f,d,m){d.fs.readdir(f,(D,v)=>{if(D!==null){p(m,D);return}let E=v.map(h=>{let y=s.joinPathSegments(f,h,d.pathSegmentSeparator);return S=>{e.stat(y,d.fsStatSettings,(g,A)=>{if(g!==null){S(g);return}let C={name:h,path:y,dirent:i.fs.createDirentFromStats(h,A)};d.stats&&(C.stats=A),S(null,C)})}});r(E,(h,y)=>{if(h!==null){p(m,h);return}l(m,y)})})}t.readdir=c;function p(f,d){f(d)}function l(f,d){f(null,d)}}),Mo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=re(),r=qr(),n=Kr(),i=Jr();function s(a,c){return!c.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(a,c):o(a,c)}t.read=s;function u(a,c){return c.fs.readdirSync(a,{withFileTypes:!0}).map(p=>{let l={dirent:p,name:p.name,path:i.joinPathSegments(a,p.name,c.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let f=c.fs.statSync(l.path);l.dirent=n.fs.createDirentFromStats(l.name,f)}catch(f){if(c.throwErrorOnBrokenSymbolicLink)throw f}return l})}t.readdirWithFileTypes=u;function o(a,c){return c.fs.readdirSync(a).map(p=>{let l=i.joinPathSegments(a,p,c.pathSegmentSeparator),f=e.statSync(l,c.fsStatSettings),d={name:p,path:l,dirent:n.fs.createDirentFromStats(p,f)};return c.stats&&(d.stats=f),d})}t.readdir=o}),jo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=W("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};function r(n){return n===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),n)}t.createFileSystemAdapter=r}),No=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=re(),n=jo(),i=class{constructor(s={}){this._options=s,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(s,u){return s!=null?s:u}};t.default=i}),Ke=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.scandirSync=t.scandir=void 0;var e=Lo(),r=Mo(),n=No();t.Settings=n.default;function i(o,a,c){if(typeof a=="function"){e.read(o,u(),a);return}e.read(o,u(a),c)}t.scandir=i;function s(o,a){let c=u(a);return r.read(o,c)}t.scandirSync=s;function u(o={}){return o instanceof n.default?o:new n.default(o)}}),$o=R((t,e)=>{"use strict";B();function r(n){var i=new n,s=i;function u(){var a=i;return a.next?i=a.next:(i=new n,s=i),a.next=null,a}function o(a){s.next=a,s=a}return{get:u,release:o}}e.exports=r}),Ho=R((t,e)=>{"use strict";B();var r=$o();function n(o,a,c){if(typeof o=="function"&&(c=a,a=o,o=null),c<1)throw new Error("fastqueue concurrency must be greater than 1");var p=r(s),l=null,f=null,d=0,m=null,D={push:A,drain:i,saturated:i,pause:E,paused:!1,concurrency:c,running:v,resume:S,idle:g,length:h,getQueue:y,unshift:C,empty:i,kill:w,killAndDrain:x,error:k};return D;function v(){return d}function E(){D.paused=!0}function h(){for(var P=l,I=0;P;)P=P.next,I++;return I}function y(){for(var P=l,I=[];P;)I.push(P.value),P=P.next;return I}function S(){if(D.paused){D.paused=!1;for(var P=0;P<D.concurrency;P++)d++,_()}}function g(){return d===0&&D.length()===0}function A(P,I){var F=p.get();F.context=o,F.release=_,F.value=P,F.callback=I||i,F.errorHandler=m,d===D.concurrency||D.paused?f?(f.next=F,f=F):(l=F,f=F,D.saturated()):(d++,a.call(o,F.value,F.worked))}function C(P,I){var F=p.get();F.context=o,F.release=_,F.value=P,F.callback=I||i,d===D.concurrency||D.paused?l?(F.next=l,l=F):(l=F,f=F,D.saturated()):(d++,a.call(o,F.value,F.worked))}function _(P){P&&p.release(P);var I=l;I?D.paused?d--:(f===l&&(f=null),l=I.next,I.next=null,a.call(o,I.value,I.worked),f===null&&D.empty()):--d===0&&D.drain()}function w(){l=null,f=null,D.drain=i}function x(){l=null,f=null,D.drain(),D.drain=i}function k(P){m=P}}function i(){}function s(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var o=this;this.worked=function(a,c){var p=o.callback,l=o.errorHandler,f=o.value;o.value=null,o.callback=i,o.errorHandler&&l(a,f),p.call(o.context,a,c),o.release(o)}}function u(o,a,c){typeof o=="function"&&(c=a,a=o,o=null);function p(E,h){a.call(this,E).then(function(y){h(null,y)},h)}var l=n(o,p,c),f=l.push,d=l.unshift;return l.push=m,l.unshift=D,l.drained=v,l;function m(E){var h=new Promise(function(y,S){f(E,function(g,A){if(g){S(g);return}y(A)})});return h.catch(i),h}function D(E){var h=new Promise(function(y,S){d(E,function(g,A){if(g){S(g);return}y(A)})});return h.catch(i),h}function v(){var E=l.drain,h=new Promise(function(y){l.drain=function(){E(),y()}});return h}}e.exports=n,e.exports.promise=u}),Je=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function e(s,u){return s.errorFilter===null?!0:!s.errorFilter(u)}t.isFatalError=e;function r(s,u){return s===null||s(u)}t.isAppliedFilter=r;function n(s,u){return s.split(/[/\\]/).join(u)}t.replacePathSegmentSeparator=n;function i(s,u,o){return s===""?u:s.endsWith(o)?s+u:s+o+u}t.joinPathSegments=i}),Vr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Je(),r=class{constructor(n,i){this._root=n,this._settings=i,this._root=e.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};t.default=r}),Yr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("events"),r=Ke(),n=Ho(),i=Je(),s=Vr(),u=class extends s.default{constructor(o,a){super(o,a),this._settings=a,this._scandir=r.scandir,this._emitter=new e.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,a){let c={directory:o,base:a};this._queue.push(c,p=>{p!==null&&this._handleError(p)})}_worker(o,a){this._scandir(o.directory,this._settings.fsScandirSettings,(c,p)=>{if(c!==null){a(c,void 0);return}for(let l of p)this._handleEntry(l,o.base);a(null,void 0)})}_handleError(o){this._isDestroyed||!i.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,a){if(this._isDestroyed||this._isFatalError)return;let c=o.path;a!==void 0&&(o.path=i.joinPathSegments(a,o.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(c,a===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};t.default=u}),Go=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Yr(),r=class{constructor(s,u){this._root=s,this._settings=u,this._reader=new e.default(this._root,this._settings),this._storage=[]}read(s){this._reader.onError(u=>{n(s,u)}),this._reader.onEntry(u=>{this._storage.push(u)}),this._reader.onEnd(()=>{i(s,this._storage)}),this._reader.read()}};t.default=r;function n(s,u){s(u)}function i(s,u){s(null,u)}}),Wo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=Yr(),n=class{constructor(i,s){this._root=i,this._settings=s,this._reader=new r.default(this._root,this._settings),this._stream=new e.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};t.default=n}),Uo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Ke(),r=Je(),n=Vr(),i=class extends n.default{constructor(){super(...arguments),this._scandir=e.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(s,u){this._queue.add({directory:s,base:u})}_handleQueue(){for(let s of this._queue.values())this._handleDirectory(s.directory,s.base)}_handleDirectory(s,u){try{let o=this._scandir(s,this._settings.fsScandirSettings);for(let a of o)this._handleEntry(a,u)}catch(o){this._handleError(o)}}_handleError(s){if(r.isFatalError(this._settings,s))throw s}_handleEntry(s,u){let o=s.path;u!==void 0&&(s.path=r.joinPathSegments(u,s.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,s)&&this._pushToStorage(s),s.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(o,u===void 0?void 0:s.path)}_pushToStorage(s){this._storage.push(s)}};t.default=i}),qo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Uo(),r=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new e.default(this._root,this._settings)}read(){return this._reader.read()}};t.default=r}),Ko=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=Ke(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,s){return i!=null?i:s}};t.default=n}),Ve=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.walkStream=t.walkSync=t.walk=void 0;var e=Go(),r=Wo(),n=qo(),i=Ko();t.Settings=i.default;function s(c,p,l){if(typeof p=="function"){new e.default(c,a()).read(p);return}new e.default(c,a(p)).read(l)}t.walk=s;function u(c,p){let l=a(p);return new n.default(c,l).read()}t.walkSync=u;function o(c,p){let l=a(p);return new r.default(c,l).read()}t.walkStream=o;function a(c={}){return c instanceof i.default?c:new i.default(c)}}),Ye=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=re(),n=Gt(),i=class{constructor(s){this._settings=s,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(s){return e.resolve(this._settings.cwd,s)}_makeEntry(s,u){let o={name:u,path:u,dirent:n.fs.createDirentFromStats(u,s)};return this._settings.stats&&(o.stats=s),o}_isFatalError(s){return!n.errno.isEnoentCodeError(s)&&!this._settings.suppressErrors}};t.default=i}),Qr=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=re(),n=Ve(),i=Ye(),s=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=r.stat}dynamic(u,o){return this._walkStream(u,o)}static(u,o){let a=u.map(this._getFullEntryPath,this),c=new e.PassThrough({objectMode:!0});c._write=(p,l,f)=>this._getEntry(a[p],u[p],o).then(d=>{d!==null&&o.entryFilter(d)&&c.push(d),p===a.length-1&&c.end(),f()}).catch(f);for(let p=0;p<a.length;p++)c.write(p);return c}_getEntry(u,o,a){return this._getStat(u).then(c=>this._makeEntry(c,o)).catch(c=>{if(a.errorFilter(c))return null;throw c})}_getStat(u){return new Promise((o,a)=>{this._stat(u,this._fsStatSettings,(c,p)=>c===null?o(p):a(c))})}};t.default=s}),Jo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Ve(),r=Ye(),n=Qr(),i=class extends r.default{constructor(){super(...arguments),this._walkAsync=e.walk,this._readerStream=new n.default(this._settings)}dynamic(s,u){return new Promise((o,a)=>{this._walkAsync(s,u,(c,p)=>{c===null?o(p):a(c)})})}async static(s,u){let o=[],a=this._readerStream.static(s,u);return new Promise((c,p)=>{a.once("error",p),a.on("data",l=>o.push(l)),a.once("end",()=>c(o))})}};t.default=i}),Vo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Gt(),r=class{constructor(n,i,s){this._patterns=n,this._settings=i,this._micromatchOptions=s,this._storage=[],this._fillStorage()}_fillStorage(){let n=e.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let s=this._getPatternSegments(i),u=this._splitSegmentsIntoSections(s);this._storage.push({complete:u.length<=1,pattern:i,segments:s,sections:u})}}_getPatternSegments(n){return e.pattern.getPatternParts(n,this._micromatchOptions).map(i=>e.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:e.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return e.array.splitWhen(n,i=>i.dynamic&&e.pattern.hasGlobStar(i.pattern))}};t.default=r}),Yo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Vo(),r=class extends e.default{match(n){let i=n.split("/"),s=i.length,u=this._storage.filter(o=>!o.complete||o.segments.length>s);for(let o of u){let a=o.sections[0];if(!o.complete&&s>a.length||i.every((c,p)=>{let l=o.segments[p];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};t.default=r}),Qo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Gt(),r=Yo(),n=class{constructor(i,s){this._settings=i,this._micromatchOptions=s}getFilter(i,s,u){let o=this._getMatcher(s),a=this._getNegativePatternsRe(u);return c=>this._filter(i,c,o,a)}_getMatcher(i){return new r.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let s=i.filter(e.pattern.isAffectDepthOfReadingPattern);return e.pattern.convertPatternsToRe(s,this._micromatchOptions)}_filter(i,s,u,o){if(this._isSkippedByDeep(i,s.path)||this._isSkippedSymbolicLink(s))return!1;let a=e.path.removeLeadingDotSegment(s.path);return this._isSkippedByPositivePatterns(a,u)?!1:this._isSkippedByNegativePatterns(a,o)}_isSkippedByDeep(i,s){return this._settings.deep===1/0?!1:this._getEntryLevel(i,s)>=this._settings.deep}_getEntryLevel(i,s){let u=s.split("/").length;if(i==="")return u;let o=i.split("/").length;return u-o}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,s){return!this._settings.baseNameMatch&&!s.match(i)}_isSkippedByNegativePatterns(i,s){return!e.pattern.matchAny(i,s)}};t.default=n}),Xo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Gt(),r=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let s=e.pattern.convertPatternsToRe(n,this._micromatchOptions),u=e.pattern.convertPatternsToRe(i,this._micromatchOptions);return o=>this._filter(o,s,u)}_filter(n,i,s){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,s))return!1;let u=this._settings.baseNameMatch?n.name:n.path,o=n.dirent.isDirectory(),a=this._isMatchToPatterns(u,i,o)&&!this._isMatchToPatterns(n.path,s,o);return this._settings.unique&&a&&this._createIndexRecord(n),a}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let s=e.path.makeAbsolute(this._settings.cwd,n);return e.pattern.matchAny(s,i)}_isMatchToPatterns(n,i,s){let u=e.path.removeLeadingDotSegment(n),o=e.pattern.matchAny(u,i);return!o&&s?e.pattern.matchAny(u+"/",i):o}};t.default=r}),Zo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Gt(),r=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return e.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};t.default=r}),zo=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Gt(),r=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=e.path.makeAbsolute(this._settings.cwd,i),i=e.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};t.default=r}),Qe=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("path"),r=Qo(),n=Xo(),i=Zo(),s=zo(),u=class{constructor(o){this._settings=o,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new s.default(this._settings)}_getRootDirectory(o){return e.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let a=o.base==="."?"":o.base;return{basePath:a,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(a,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};t.default=u}),ta=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=Jo(),r=Qe(),n=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}async read(i){let s=this._getRootDirectory(i),u=this._getReaderOptions(i);return(await this.api(s,i,u)).map(o=>u.transform(o))}api(i,s,u){return s.dynamic?this._reader.dynamic(i,u):this._reader.static(s.patterns,u)}};t.default=n}),ea=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=W("stream"),r=Qr(),n=Qe(),i=class extends n.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(s){let u=this._getRootDirectory(s),o=this._getReaderOptions(s),a=this.api(u,s,o),c=new e.Readable({objectMode:!0,read:()=>{}});return a.once("error",p=>c.emit("error",p)).on("data",p=>c.emit("data",o.transform(p))).once("end",()=>c.emit("end")),c.once("close",()=>a.destroy()),c}api(s,u,o){return u.dynamic?this._reader.dynamic(s,o):this._reader.static(u.patterns,o)}};t.default=i}),ra=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=re(),r=Ve(),n=Ye(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=e.statSync}dynamic(s,u){return this._walkSync(s,u)}static(s,u){let o=[];for(let a of s){let c=this._getFullEntryPath(a),p=this._getEntry(c,a,u);p===null||!u.entryFilter(p)||o.push(p)}return o}_getEntry(s,u,o){try{let a=this._getStat(s);return this._makeEntry(a,u)}catch(a){if(o.errorFilter(a))return null;throw a}}_getStat(s){return this._statSync(s,this._fsStatSettings)}};t.default=i}),na=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var e=ra(),r=Qe(),n=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(i){let s=this._getRootDirectory(i),u=this._getReaderOptions(i);return this.api(s,i,u).map(u.transform)}api(i,s,u){return s.dynamic?this._reader.dynamic(i,u):this._reader.static(s.patterns,u)}};t.default=n}),ia=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var e=W("fs"),r=W("os"),n=Math.max(r.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:e.lstat,lstatSync:e.lstatSync,stat:e.stat,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};var i=class{constructor(s={}){this._options=s,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(s,u){return s===void 0?u:s}_getFileSystemMethods(s={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),s)}};t.default=i}),oa=R((t,e)=>{"use strict";B();var r=_o(),n=ko(),i=ta(),s=ea(),u=na(),o=ia(),a=Gt();async function c(f,d){l(f);let m=p(f,i.default,d),D=await Promise.all(m);return a.array.flatten(D)}(function(f){function d(h,y){l(h);let S=p(h,u.default,y);return a.array.flatten(S)}f.sync=d;function m(h,y){l(h);let S=p(h,s.default,y);return a.stream.merge(S)}f.stream=m;function D(h,y){l(h);let S=n.transform([].concat(h)),g=new o.default(y);return r.generate(S,g)}f.generateTasks=D;function v(h,y){l(h);let S=new o.default(y);return a.pattern.isDynamicPattern(h,S)}f.isDynamicPattern=v;function E(h){return l(h),a.path.escape(h)}f.escapePath=E})(c||(c={}));function p(f,d,m){let D=n.transform([].concat(f)),v=new o.default(m),E=r.generate(D,v),h=new d(v);return E.map(h.read,h)}function l(f){if(![].concat(f).every(d=>a.string.isString(d)&&!a.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}e.exports=c});B();B();function Xr(t){return typeof t>"u"||t===null}function aa(t){return typeof t=="object"&&t!==null}function ua(t){return Array.isArray(t)?t:Xr(t)?[]:[t]}function sa(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function ca(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function la(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var pa=Xr,fa=aa,da=ua,ha=ca,ma=la,ga=sa,gt={isNothing:pa,isObject:fa,toArray:da,repeat:ha,isNegativeZero:ma,extend:ga};function Zr(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
14
14
 
15
- `+t.mark.snippet),n+" "+r):n}function ue(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Qr(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ue.prototype=Object.create(Error.prototype);ue.prototype.constructor=ue;ue.prototype.toString=function(t){return this.name+": "+Qr(this,t)};var Ct=ue;function Ie(t,e,r,n,i){var s="",u="",o=Math.floor(i/2)-1;return n-e>o&&(s=" ... ",e=n-o+s.length),r-n>o&&(u=" ...",r=n+o-u.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+u,pos:n-e+s.length}}function Le(t,e){return gt.repeat(" ",e-t.length)+t}function ma(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,u=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&u<0&&(u=n.length-2);u<0&&(u=n.length-1);var o="",a,c,p=Math.min(t.line+e.linesAfter,i.length).toString().length,l=e.maxLength-(e.indent+p+3);for(a=1;a<=e.linesBefore&&!(u-a<0);a++)c=Ie(t.buffer,n[u-a],i[u-a],t.position-(n[u]-n[u-a]),l),o=gt.repeat(" ",e.indent)+Le((t.line-a+1).toString(),p)+" | "+c.str+`
16
- `+o;for(c=Ie(t.buffer,n[u],i[u],t.position,l),o+=gt.repeat(" ",e.indent)+Le((t.line+1).toString(),p)+" | "+c.str+`
15
+ `+t.mark.snippet),n+" "+r):n}function ce(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Zr(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ce.prototype=Object.create(Error.prototype);ce.prototype.constructor=ce;ce.prototype.toString=function(t){return this.name+": "+Zr(this,t)};var Ct=ce;function Le(t,e,r,n,i){var s="",u="",o=Math.floor(i/2)-1;return n-e>o&&(s=" ... ",e=n-o+s.length),r-n>o&&(u=" ...",r=n+o-u.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+u,pos:n-e+s.length}}function Me(t,e){return gt.repeat(" ",e-t.length)+t}function ya(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,u=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&u<0&&(u=n.length-2);u<0&&(u=n.length-1);var o="",a,c,p=Math.min(t.line+e.linesAfter,i.length).toString().length,l=e.maxLength-(e.indent+p+3);for(a=1;a<=e.linesBefore&&!(u-a<0);a++)c=Le(t.buffer,n[u-a],i[u-a],t.position-(n[u]-n[u-a]),l),o=gt.repeat(" ",e.indent)+Me((t.line-a+1).toString(),p)+" | "+c.str+`
16
+ `+o;for(c=Le(t.buffer,n[u],i[u],t.position,l),o+=gt.repeat(" ",e.indent)+Me((t.line+1).toString(),p)+" | "+c.str+`
17
17
  `,o+=gt.repeat("-",e.indent+p+3+c.pos)+`^
18
- `,a=1;a<=e.linesAfter&&!(u+a>=i.length);a++)c=Ie(t.buffer,n[u+a],i[u+a],t.position-(n[u]-n[u+a]),l),o+=gt.repeat(" ",e.indent)+Le((t.line+a+1).toString(),p)+" | "+c.str+`
19
- `;return o.replace(/\n$/,"")}var ga=ma,ya=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Da=["scalar","sequence","mapping"];function va(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function Ea(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(ya.indexOf(r)===-1)throw new Ct('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=va(e.styleAliases||null),Da.indexOf(this.kind)===-1)throw new Ct('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Dt=Ea;function _r(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(s,u){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=u)}),r[i]=n}),r}function Aa(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function je(t){return this.extend(t)}je.prototype.extend=function(t){var e=[],r=[];if(t instanceof Dt)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Ct("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.forEach(function(i){if(!(i instanceof Dt))throw new Ct("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Ct("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Ct("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof Dt))throw new Ct("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(je.prototype);return n.implicit=(this.implicit||[]).concat(e),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=_r(n,"implicit"),n.compiledExplicit=_r(n,"explicit"),n.compiledTypeMap=Aa(n.compiledImplicit,n.compiledExplicit),n};var Ca=je,Sa=new Dt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),ba=new Dt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),wa=new Dt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Fa=new Ca({explicit:[Sa,ba,wa]});function _a(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function ka(){return null}function xa(t){return t===null}var Ba=new Dt("tag:yaml.org,2002:null",{kind:"scalar",resolve:_a,construct:ka,predicate:xa,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Oa(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Ra(t){return t==="true"||t==="True"||t==="TRUE"}function Pa(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Ta=new Dt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Oa,construct:Ra,predicate:Pa,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Ia(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function La(t){return 48<=t&&t<=55}function Na(t){return 48<=t&&t<=57}function ja(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!Ia(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!La(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!Na(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function Ma(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function $a(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!gt.isNegativeZero(t)}var Ha=new Dt("tag:yaml.org,2002:int",{kind:"scalar",resolve:ja,construct:Ma,predicate:$a,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ga=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Wa(t){return!(t===null||!Ga.test(t)||t[t.length-1]==="_")}function Ua(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var qa=/^[-+]?[0-9]+e/;function Ka(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(gt.isNegativeZero(t))return"-0.0";return r=t.toString(10),qa.test(r)?r.replace("e",".e"):r}function Va(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||gt.isNegativeZero(t))}var Ja=new Dt("tag:yaml.org,2002:float",{kind:"scalar",resolve:Wa,construct:Ua,predicate:Va,represent:Ka,defaultStyle:"lowercase"}),Ya=Fa.extend({implicit:[Ba,Ta,Ha,Ja]}),Qa=Ya,Xr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Zr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Xa(t){return t===null?!1:Xr.exec(t)!==null||Zr.exec(t)!==null}function Za(t){var e,r,n,i,s,u,o,a=0,c=null,p,l,f;if(e=Xr.exec(t),e===null&&(e=Zr.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(s=+e[4],u=+e[5],o=+e[6],e[7]){for(a=e[7].slice(0,3);a.length<3;)a+="0";a=+a}return e[9]&&(p=+e[10],l=+(e[11]||0),c=(p*60+l)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,n,i,s,u,o,a)),c&&f.setTime(f.getTime()-c),f}function za(t){return t.toISOString()}var tu=new Dt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Xa,construct:Za,instanceOf:Date,represent:za});function eu(t){return t==="<<"||t===null}var ru=new Dt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:eu}),Qe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
- \r`;function nu(t){if(t===null)return!1;var e,r,n=0,i=t.length,s=Qe;for(r=0;r<i;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function iu(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,s=Qe,u=0,o=[];for(e=0;e<i;e++)e%4===0&&e&&(o.push(u>>16&255),o.push(u>>8&255),o.push(u&255)),u=u<<6|s.indexOf(n.charAt(e));return r=i%4*6,r===0?(o.push(u>>16&255),o.push(u>>8&255),o.push(u&255)):r===18?(o.push(u>>10&255),o.push(u>>2&255)):r===12&&o.push(u>>4&255),new Uint8Array(o)}function ou(t){var e="",r=0,n,i,s=t.length,u=Qe;for(n=0;n<s;n++)n%3===0&&n&&(e+=u[r>>18&63],e+=u[r>>12&63],e+=u[r>>6&63],e+=u[r&63]),r=(r<<8)+t[n];return i=s%3,i===0?(e+=u[r>>18&63],e+=u[r>>12&63],e+=u[r>>6&63],e+=u[r&63]):i===2?(e+=u[r>>10&63],e+=u[r>>4&63],e+=u[r<<2&63],e+=u[64]):i===1&&(e+=u[r>>2&63],e+=u[r<<4&63],e+=u[64],e+=u[64]),e}function au(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var uu=new Dt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nu,construct:iu,predicate:au,represent:ou}),su=Object.prototype.hasOwnProperty,cu=Object.prototype.toString;function lu(t){if(t===null)return!0;var e=[],r,n,i,s,u,o=t;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],u=!1,cu.call(i)!=="[object Object]")return!1;for(s in i)if(su.call(i,s))if(!u)u=!0;else return!1;if(!u)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function pu(t){return t!==null?t:[]}var fu=new Dt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:lu,construct:pu}),du=Object.prototype.toString;function hu(t){if(t===null)return!0;var e,r,n,i,s,u=t;for(s=new Array(u.length),e=0,r=u.length;e<r;e+=1){if(n=u[e],du.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[e]=[i[0],n[i[0]]]}return!0}function mu(t){if(t===null)return[];var e,r,n,i,s,u=t;for(s=new Array(u.length),e=0,r=u.length;e<r;e+=1)n=u[e],i=Object.keys(n),s[e]=[i[0],n[i[0]]];return s}var gu=new Dt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:hu,construct:mu}),yu=Object.prototype.hasOwnProperty;function Du(t){if(t===null)return!0;var e,r=t;for(e in r)if(yu.call(r,e)&&r[e]!==null)return!1;return!0}function vu(t){return t!==null?t:{}}var Eu=new Dt("tag:yaml.org,2002:set",{kind:"mapping",resolve:Du,construct:vu}),zr=Qa.extend({implicit:[tu,ru],explicit:[uu,fu,gu,Eu]}),Nt=Object.prototype.hasOwnProperty,De=1,tn=2,en=3,ve=4,Ne=1,Au=2,kr=3,Cu=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Su=/[\x85\u2028\u2029]/,bu=/[,\[\]\{\}]/,rn=/^(?:!|!!|![a-z\-]+!)$/i,nn=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function xr(t){return Object.prototype.toString.call(t)}function xt(t){return t===10||t===13}function Ut(t){return t===9||t===32}function St(t){return t===9||t===32||t===10||t===13}function Zt(t){return t===44||t===91||t===93||t===123||t===125}function wu(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Fu(t){return t===120?2:t===117?4:t===85?8:0}function _u(t){return 48<=t&&t<=57?t-48:-1}function Br(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
21
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function ku(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var on=new Array(256),an=new Array(256);for(Wt=0;Wt<256;Wt++)on[Wt]=Br(Wt)?1:0,an[Wt]=Br(Wt);var Wt;function xu(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||zr,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function un(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=ga(r),new Ct(e,r)}function V(t,e){throw un(t,e)}function Ee(t,e){t.onWarning&&t.onWarning.call(null,un(t,e))}var Or={YAML:function(t,e,r){var n,i,s;t.version!==null&&V(t,"duplication of %YAML directive"),r.length!==1&&V(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&V(t,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),s=parseInt(n[2],10),i!==1&&V(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Ee(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var n,i;r.length!==2&&V(t,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],rn.test(n)||V(t,"ill-formed tag handle (first argument) of the TAG directive"),Nt.call(t.tagMap,n)&&V(t,'there is a previously declared suffix for "'+n+'" tag handle'),nn.test(i)||V(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{V(t,"tag prefix is malformed: "+i)}t.tagMap[n]=i}};function Lt(t,e,r,n){var i,s,u,o;if(e<r){if(o=t.input.slice(e,r),n)for(i=0,s=o.length;i<s;i+=1)u=o.charCodeAt(i),u===9||32<=u&&u<=1114111||V(t,"expected valid JSON character");else Cu.test(o)&&V(t,"the stream contains non-printable characters");t.result+=o}}function Rr(t,e,r,n){var i,s,u,o;for(gt.isObject(r)||V(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),u=0,o=i.length;u<o;u+=1)s=i[u],Nt.call(e,s)||(e[s]=r[s],n[s]=!0)}function zt(t,e,r,n,i,s,u,o,a){var c,p;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,p=i.length;c<p;c+=1)Array.isArray(i[c])&&V(t,"nested arrays are not supported inside keys"),typeof i=="object"&&xr(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&xr(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,p=s.length;c<p;c+=1)Rr(t,e,s[c],r);else Rr(t,e,s,r);else!t.json&&!Nt.call(r,i)&&Nt.call(e,i)&&(t.line=u||t.line,t.lineStart=o||t.lineStart,t.position=a||t.position,V(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[i]=s,delete r[i];return e}function Xe(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):V(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function dt(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Ut(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(xt(i))for(Xe(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&Ee(t,"deficient indentation"),n}function we(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||St(r)))}function Ze(t,e){e===1?t.result+=" ":e>1&&(t.result+=gt.repeat(`
22
- `,e-1))}function Bu(t,e,r){var n,i,s,u,o,a,c,p,l=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),St(d)||Zt(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=t.input.charCodeAt(t.position+1),St(i)||r&&Zt(i)))return!1;for(t.kind="scalar",t.result="",s=u=t.position,o=!1;d!==0;){if(d===58){if(i=t.input.charCodeAt(t.position+1),St(i)||r&&Zt(i))break}else if(d===35){if(n=t.input.charCodeAt(t.position-1),St(n))break}else{if(t.position===t.lineStart&&we(t)||r&&Zt(d))break;if(xt(d))if(a=t.line,c=t.lineStart,p=t.lineIndent,dt(t,!1,-1),t.lineIndent>=e){o=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=u,t.line=a,t.lineStart=c,t.lineIndent=p;break}}o&&(Lt(t,s,u,!1),Ze(t,t.line-a),s=u=t.position,o=!1),Ut(d)||(u=t.position+1),d=t.input.charCodeAt(++t.position)}return Lt(t,s,u,!1),t.result?!0:(t.kind=l,t.result=f,!1)}function Ou(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Lt(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else xt(r)?(Lt(t,n,i,!0),Ze(t,dt(t,!1,e)),n=i=t.position):t.position===t.lineStart&&we(t)?V(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);V(t,"unexpected end of the stream within a single quoted scalar")}function Ru(t,e){var r,n,i,s,u,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return Lt(t,r,t.position,!0),t.position++,!0;if(o===92){if(Lt(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),xt(o))dt(t,!1,e);else if(o<256&&on[o])t.result+=an[o],t.position++;else if((u=Fu(o))>0){for(i=u,s=0;i>0;i--)o=t.input.charCodeAt(++t.position),(u=wu(o))>=0?s=(s<<4)+u:V(t,"expected hexadecimal character");t.result+=ku(s),t.position++}else V(t,"unknown escape sequence");r=n=t.position}else xt(o)?(Lt(t,r,n,!0),Ze(t,dt(t,!1,e)),r=n=t.position):t.position===t.lineStart&&we(t)?V(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}V(t,"unexpected end of the stream within a double quoted scalar")}function Pu(t,e){var r=!0,n,i,s,u=t.tag,o,a=t.anchor,c,p,l,f,d,m=Object.create(null),D,v,E,h;if(h=t.input.charCodeAt(t.position),h===91)p=93,d=!1,o=[];else if(h===123)p=125,d=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),h=t.input.charCodeAt(++t.position);h!==0;){if(dt(t,!0,e),h=t.input.charCodeAt(t.position),h===p)return t.position++,t.tag=u,t.anchor=a,t.kind=d?"mapping":"sequence",t.result=o,!0;r?h===44&&V(t,"expected the node content, but found ','"):V(t,"missed comma between flow collection entries"),v=D=E=null,l=f=!1,h===63&&(c=t.input.charCodeAt(t.position+1),St(c)&&(l=f=!0,t.position++,dt(t,!0,e))),n=t.line,i=t.lineStart,s=t.position,te(t,e,De,!1,!0),v=t.tag,D=t.result,dt(t,!0,e),h=t.input.charCodeAt(t.position),(f||t.line===n)&&h===58&&(l=!0,h=t.input.charCodeAt(++t.position),dt(t,!0,e),te(t,e,De,!1,!0),E=t.result),d?zt(t,o,m,v,D,E,n,i,s):l?o.push(zt(t,null,m,v,D,E,n,i,s)):o.push(D),dt(t,!0,e),h=t.input.charCodeAt(t.position),h===44?(r=!0,h=t.input.charCodeAt(++t.position)):r=!1}V(t,"unexpected end of the stream within a flow collection")}function Tu(t,e){var r,n,i=Ne,s=!1,u=!1,o=e,a=0,c=!1,p,l;if(l=t.input.charCodeAt(t.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(t.kind="scalar",t.result="";l!==0;)if(l=t.input.charCodeAt(++t.position),l===43||l===45)Ne===i?i=l===43?kr:Au:V(t,"repeat of a chomping mode identifier");else if((p=_u(l))>=0)p===0?V(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?V(t,"repeat of an indentation width identifier"):(o=e+p-1,u=!0);else break;if(Ut(l)){do l=t.input.charCodeAt(++t.position);while(Ut(l));if(l===35)do l=t.input.charCodeAt(++t.position);while(!xt(l)&&l!==0)}for(;l!==0;){for(Xe(t),t.lineIndent=0,l=t.input.charCodeAt(t.position);(!u||t.lineIndent<o)&&l===32;)t.lineIndent++,l=t.input.charCodeAt(++t.position);if(!u&&t.lineIndent>o&&(o=t.lineIndent),xt(l)){a++;continue}if(t.lineIndent<o){i===kr?t.result+=gt.repeat(`
23
- `,s?1+a:a):i===Ne&&s&&(t.result+=`
24
- `);break}for(n?Ut(l)?(c=!0,t.result+=gt.repeat(`
18
+ `,a=1;a<=e.linesAfter&&!(u+a>=i.length);a++)c=Le(t.buffer,n[u+a],i[u+a],t.position-(n[u]-n[u+a]),l),o+=gt.repeat(" ",e.indent)+Me((t.line+a+1).toString(),p)+" | "+c.str+`
19
+ `;return o.replace(/\n$/,"")}var Da=ya,va=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ea=["scalar","sequence","mapping"];function Aa(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function Ca(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(va.indexOf(r)===-1)throw new Ct('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Aa(e.styleAliases||null),Ea.indexOf(this.kind)===-1)throw new Ct('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Dt=Ca;function xr(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(s,u){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=u)}),r[i]=n}),r}function Sa(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function Ne(t){return this.extend(t)}Ne.prototype.extend=function(t){var e=[],r=[];if(t instanceof Dt)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Ct("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.forEach(function(i){if(!(i instanceof Dt))throw new Ct("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Ct("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Ct("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof Dt))throw new Ct("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Ne.prototype);return n.implicit=(this.implicit||[]).concat(e),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=xr(n,"implicit"),n.compiledExplicit=xr(n,"explicit"),n.compiledTypeMap=Sa(n.compiledImplicit,n.compiledExplicit),n};var ba=Ne,wa=new Dt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Fa=new Dt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),_a=new Dt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),ka=new ba({explicit:[wa,Fa,_a]});function xa(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Ba(){return null}function Oa(t){return t===null}var Ra=new Dt("tag:yaml.org,2002:null",{kind:"scalar",resolve:xa,construct:Ba,predicate:Oa,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Pa(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Ta(t){return t==="true"||t==="True"||t==="TRUE"}function Ia(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var La=new Dt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Pa,construct:Ta,predicate:Ia,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Ma(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function ja(t){return 48<=t&&t<=55}function Na(t){return 48<=t&&t<=57}function $a(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!Ma(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!ja(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!Na(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function Ha(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function Ga(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!gt.isNegativeZero(t)}var Wa=new Dt("tag:yaml.org,2002:int",{kind:"scalar",resolve:$a,construct:Ha,predicate:Ga,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ua=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function qa(t){return!(t===null||!Ua.test(t)||t[t.length-1]==="_")}function Ka(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var Ja=/^[-+]?[0-9]+e/;function Va(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(gt.isNegativeZero(t))return"-0.0";return r=t.toString(10),Ja.test(r)?r.replace("e",".e"):r}function Ya(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||gt.isNegativeZero(t))}var Qa=new Dt("tag:yaml.org,2002:float",{kind:"scalar",resolve:qa,construct:Ka,predicate:Ya,represent:Va,defaultStyle:"lowercase"}),Xa=ka.extend({implicit:[Ra,La,Wa,Qa]}),Za=Xa,zr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),tn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function za(t){return t===null?!1:zr.exec(t)!==null||tn.exec(t)!==null}function tu(t){var e,r,n,i,s,u,o,a=0,c=null,p,l,f;if(e=zr.exec(t),e===null&&(e=tn.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(s=+e[4],u=+e[5],o=+e[6],e[7]){for(a=e[7].slice(0,3);a.length<3;)a+="0";a=+a}return e[9]&&(p=+e[10],l=+(e[11]||0),c=(p*60+l)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,n,i,s,u,o,a)),c&&f.setTime(f.getTime()-c),f}function eu(t){return t.toISOString()}var ru=new Dt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:za,construct:tu,instanceOf:Date,represent:eu});function nu(t){return t==="<<"||t===null}var iu=new Dt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nu}),Xe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
+ \r`;function ou(t){if(t===null)return!1;var e,r,n=0,i=t.length,s=Xe;for(r=0;r<i;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function au(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,s=Xe,u=0,o=[];for(e=0;e<i;e++)e%4===0&&e&&(o.push(u>>16&255),o.push(u>>8&255),o.push(u&255)),u=u<<6|s.indexOf(n.charAt(e));return r=i%4*6,r===0?(o.push(u>>16&255),o.push(u>>8&255),o.push(u&255)):r===18?(o.push(u>>10&255),o.push(u>>2&255)):r===12&&o.push(u>>4&255),new Uint8Array(o)}function uu(t){var e="",r=0,n,i,s=t.length,u=Xe;for(n=0;n<s;n++)n%3===0&&n&&(e+=u[r>>18&63],e+=u[r>>12&63],e+=u[r>>6&63],e+=u[r&63]),r=(r<<8)+t[n];return i=s%3,i===0?(e+=u[r>>18&63],e+=u[r>>12&63],e+=u[r>>6&63],e+=u[r&63]):i===2?(e+=u[r>>10&63],e+=u[r>>4&63],e+=u[r<<2&63],e+=u[64]):i===1&&(e+=u[r>>2&63],e+=u[r<<4&63],e+=u[64],e+=u[64]),e}function su(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var cu=new Dt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ou,construct:au,predicate:su,represent:uu}),lu=Object.prototype.hasOwnProperty,pu=Object.prototype.toString;function fu(t){if(t===null)return!0;var e=[],r,n,i,s,u,o=t;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],u=!1,pu.call(i)!=="[object Object]")return!1;for(s in i)if(lu.call(i,s))if(!u)u=!0;else return!1;if(!u)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function du(t){return t!==null?t:[]}var hu=new Dt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:fu,construct:du}),mu=Object.prototype.toString;function gu(t){if(t===null)return!0;var e,r,n,i,s,u=t;for(s=new Array(u.length),e=0,r=u.length;e<r;e+=1){if(n=u[e],mu.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[e]=[i[0],n[i[0]]]}return!0}function yu(t){if(t===null)return[];var e,r,n,i,s,u=t;for(s=new Array(u.length),e=0,r=u.length;e<r;e+=1)n=u[e],i=Object.keys(n),s[e]=[i[0],n[i[0]]];return s}var Du=new Dt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:gu,construct:yu}),vu=Object.prototype.hasOwnProperty;function Eu(t){if(t===null)return!0;var e,r=t;for(e in r)if(vu.call(r,e)&&r[e]!==null)return!1;return!0}function Au(t){return t!==null?t:{}}var Cu=new Dt("tag:yaml.org,2002:set",{kind:"mapping",resolve:Eu,construct:Au}),en=Za.extend({implicit:[ru,iu],explicit:[cu,hu,Du,Cu]}),Ht=Object.prototype.hasOwnProperty,Ee=1,rn=2,nn=3,Ae=4,je=1,Su=2,Br=3,bu=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wu=/[\x85\u2028\u2029]/,Fu=/[,\[\]\{\}]/,on=/^(?:!|!!|![a-z\-]+!)$/i,an=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Or(t){return Object.prototype.toString.call(t)}function xt(t){return t===10||t===13}function Kt(t){return t===9||t===32}function St(t){return t===9||t===32||t===10||t===13}function zt(t){return t===44||t===91||t===93||t===123||t===125}function _u(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function ku(t){return t===120?2:t===117?4:t===85?8:0}function xu(t){return 48<=t&&t<=57?t-48:-1}function Rr(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
21
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function Bu(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var un=new Array(256),sn=new Array(256);for(qt=0;qt<256;qt++)un[qt]=Rr(qt)?1:0,sn[qt]=Rr(qt);var qt;function Ou(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||en,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function cn(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Da(r),new Ct(e,r)}function J(t,e){throw cn(t,e)}function Ce(t,e){t.onWarning&&t.onWarning.call(null,cn(t,e))}var Pr={YAML:function(t,e,r){var n,i,s;t.version!==null&&J(t,"duplication of %YAML directive"),r.length!==1&&J(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&J(t,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),s=parseInt(n[2],10),i!==1&&J(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Ce(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var n,i;r.length!==2&&J(t,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],on.test(n)||J(t,"ill-formed tag handle (first argument) of the TAG directive"),Ht.call(t.tagMap,n)&&J(t,'there is a previously declared suffix for "'+n+'" tag handle'),an.test(i)||J(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{J(t,"tag prefix is malformed: "+i)}t.tagMap[n]=i}};function $t(t,e,r,n){var i,s,u,o;if(e<r){if(o=t.input.slice(e,r),n)for(i=0,s=o.length;i<s;i+=1)u=o.charCodeAt(i),u===9||32<=u&&u<=1114111||J(t,"expected valid JSON character");else bu.test(o)&&J(t,"the stream contains non-printable characters");t.result+=o}}function Tr(t,e,r,n){var i,s,u,o;for(gt.isObject(r)||J(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),u=0,o=i.length;u<o;u+=1)s=i[u],Ht.call(e,s)||(e[s]=r[s],n[s]=!0)}function te(t,e,r,n,i,s,u,o,a){var c,p;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,p=i.length;c<p;c+=1)Array.isArray(i[c])&&J(t,"nested arrays are not supported inside keys"),typeof i=="object"&&Or(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Or(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,p=s.length;c<p;c+=1)Tr(t,e,s[c],r);else Tr(t,e,s,r);else!t.json&&!Ht.call(r,i)&&Ht.call(e,i)&&(t.line=u||t.line,t.lineStart=o||t.lineStart,t.position=a||t.position,J(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[i]=s,delete r[i];return e}function Ze(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):J(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function dt(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Kt(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(xt(i))for(Ze(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&Ce(t,"deficient indentation"),n}function _e(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||St(r)))}function ze(t,e){e===1?t.result+=" ":e>1&&(t.result+=gt.repeat(`
22
+ `,e-1))}function Ru(t,e,r){var n,i,s,u,o,a,c,p,l=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),St(d)||zt(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=t.input.charCodeAt(t.position+1),St(i)||r&&zt(i)))return!1;for(t.kind="scalar",t.result="",s=u=t.position,o=!1;d!==0;){if(d===58){if(i=t.input.charCodeAt(t.position+1),St(i)||r&&zt(i))break}else if(d===35){if(n=t.input.charCodeAt(t.position-1),St(n))break}else{if(t.position===t.lineStart&&_e(t)||r&&zt(d))break;if(xt(d))if(a=t.line,c=t.lineStart,p=t.lineIndent,dt(t,!1,-1),t.lineIndent>=e){o=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=u,t.line=a,t.lineStart=c,t.lineIndent=p;break}}o&&($t(t,s,u,!1),ze(t,t.line-a),s=u=t.position,o=!1),Kt(d)||(u=t.position+1),d=t.input.charCodeAt(++t.position)}return $t(t,s,u,!1),t.result?!0:(t.kind=l,t.result=f,!1)}function Pu(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if($t(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else xt(r)?($t(t,n,i,!0),ze(t,dt(t,!1,e)),n=i=t.position):t.position===t.lineStart&&_e(t)?J(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);J(t,"unexpected end of the stream within a single quoted scalar")}function Tu(t,e){var r,n,i,s,u,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return $t(t,r,t.position,!0),t.position++,!0;if(o===92){if($t(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),xt(o))dt(t,!1,e);else if(o<256&&un[o])t.result+=sn[o],t.position++;else if((u=ku(o))>0){for(i=u,s=0;i>0;i--)o=t.input.charCodeAt(++t.position),(u=_u(o))>=0?s=(s<<4)+u:J(t,"expected hexadecimal character");t.result+=Bu(s),t.position++}else J(t,"unknown escape sequence");r=n=t.position}else xt(o)?($t(t,r,n,!0),ze(t,dt(t,!1,e)),r=n=t.position):t.position===t.lineStart&&_e(t)?J(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}J(t,"unexpected end of the stream within a double quoted scalar")}function Iu(t,e){var r=!0,n,i,s,u=t.tag,o,a=t.anchor,c,p,l,f,d,m=Object.create(null),D,v,E,h;if(h=t.input.charCodeAt(t.position),h===91)p=93,d=!1,o=[];else if(h===123)p=125,d=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),h=t.input.charCodeAt(++t.position);h!==0;){if(dt(t,!0,e),h=t.input.charCodeAt(t.position),h===p)return t.position++,t.tag=u,t.anchor=a,t.kind=d?"mapping":"sequence",t.result=o,!0;r?h===44&&J(t,"expected the node content, but found ','"):J(t,"missed comma between flow collection entries"),v=D=E=null,l=f=!1,h===63&&(c=t.input.charCodeAt(t.position+1),St(c)&&(l=f=!0,t.position++,dt(t,!0,e))),n=t.line,i=t.lineStart,s=t.position,ee(t,e,Ee,!1,!0),v=t.tag,D=t.result,dt(t,!0,e),h=t.input.charCodeAt(t.position),(f||t.line===n)&&h===58&&(l=!0,h=t.input.charCodeAt(++t.position),dt(t,!0,e),ee(t,e,Ee,!1,!0),E=t.result),d?te(t,o,m,v,D,E,n,i,s):l?o.push(te(t,null,m,v,D,E,n,i,s)):o.push(D),dt(t,!0,e),h=t.input.charCodeAt(t.position),h===44?(r=!0,h=t.input.charCodeAt(++t.position)):r=!1}J(t,"unexpected end of the stream within a flow collection")}function Lu(t,e){var r,n,i=je,s=!1,u=!1,o=e,a=0,c=!1,p,l;if(l=t.input.charCodeAt(t.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(t.kind="scalar",t.result="";l!==0;)if(l=t.input.charCodeAt(++t.position),l===43||l===45)je===i?i=l===43?Br:Su:J(t,"repeat of a chomping mode identifier");else if((p=xu(l))>=0)p===0?J(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?J(t,"repeat of an indentation width identifier"):(o=e+p-1,u=!0);else break;if(Kt(l)){do l=t.input.charCodeAt(++t.position);while(Kt(l));if(l===35)do l=t.input.charCodeAt(++t.position);while(!xt(l)&&l!==0)}for(;l!==0;){for(Ze(t),t.lineIndent=0,l=t.input.charCodeAt(t.position);(!u||t.lineIndent<o)&&l===32;)t.lineIndent++,l=t.input.charCodeAt(++t.position);if(!u&&t.lineIndent>o&&(o=t.lineIndent),xt(l)){a++;continue}if(t.lineIndent<o){i===Br?t.result+=gt.repeat(`
23
+ `,s?1+a:a):i===je&&s&&(t.result+=`
24
+ `);break}for(n?Kt(l)?(c=!0,t.result+=gt.repeat(`
25
25
  `,s?1+a:a)):c?(c=!1,t.result+=gt.repeat(`
26
26
  `,a+1)):a===0?s&&(t.result+=" "):t.result+=gt.repeat(`
27
27
  `,a):t.result+=gt.repeat(`
28
- `,s?1+a:a),s=!0,u=!0,a=0,r=t.position;!xt(l)&&l!==0;)l=t.input.charCodeAt(++t.position);Lt(t,r,t.position,!1)}return!0}function Pr(t,e){var r,n=t.tag,i=t.anchor,s=[],u,o=!1,a;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),a=t.input.charCodeAt(t.position);a!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,V(t,"tab characters must not be used in indentation")),!(a!==45||(u=t.input.charCodeAt(t.position+1),!St(u))));){if(o=!0,t.position++,dt(t,!0,-1)&&t.lineIndent<=e){s.push(null),a=t.input.charCodeAt(t.position);continue}if(r=t.line,te(t,e,en,!1,!0),s.push(t.result),dt(t,!0,-1),a=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&a!==0)V(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return o?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function Iu(t,e,r){var n,i,s,u,o,a,c=t.tag,p=t.anchor,l={},f=Object.create(null),d=null,m=null,D=null,v=!1,E=!1,h;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=l),h=t.input.charCodeAt(t.position);h!==0;){if(!v&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,V(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,(h===63||h===58)&&St(n))h===63?(v&&(zt(t,l,f,d,m,null,u,o,a),d=m=D=null),E=!0,v=!0,i=!0):v?(v=!1,i=!0):V(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,h=n;else{if(u=t.line,o=t.lineStart,a=t.position,!te(t,r,tn,!1,!0))break;if(t.line===s){for(h=t.input.charCodeAt(t.position);Ut(h);)h=t.input.charCodeAt(++t.position);if(h===58)h=t.input.charCodeAt(++t.position),St(h)||V(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(zt(t,l,f,d,m,null,u,o,a),d=m=D=null),E=!0,v=!1,i=!1,d=t.tag,m=t.result;else if(E)V(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=p,!0}else if(E)V(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=p,!0}if((t.line===s||t.lineIndent>e)&&(v&&(u=t.line,o=t.lineStart,a=t.position),te(t,e,ve,!0,i)&&(v?m=t.result:D=t.result),v||(zt(t,l,f,d,m,D,u,o,a),d=m=D=null),dt(t,!0,-1),h=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&h!==0)V(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&zt(t,l,f,d,m,null,u,o,a),E&&(t.tag=c,t.anchor=p,t.kind="mapping",t.result=l),E}function Lu(t){var e,r=!1,n=!1,i,s,u;if(u=t.input.charCodeAt(t.position),u!==33)return!1;if(t.tag!==null&&V(t,"duplication of a tag property"),u=t.input.charCodeAt(++t.position),u===60?(r=!0,u=t.input.charCodeAt(++t.position)):u===33?(n=!0,i="!!",u=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do u=t.input.charCodeAt(++t.position);while(u!==0&&u!==62);t.position<t.length?(s=t.input.slice(e,t.position),u=t.input.charCodeAt(++t.position)):V(t,"unexpected end of the stream within a verbatim tag")}else{for(;u!==0&&!St(u);)u===33&&(n?V(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),rn.test(i)||V(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),u=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),bu.test(s)&&V(t,"tag suffix cannot contain flow indicator characters")}s&&!nn.test(s)&&V(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{V(t,"tag name is malformed: "+s)}return r?t.tag=s:Nt.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:V(t,'undeclared tag handle "'+i+'"'),!0}function Nu(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&V(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!St(r)&&!Zt(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&V(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function ju(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!St(n)&&!Zt(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&V(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Nt.call(t.anchorMap,r)||V(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],dt(t,!0,-1),!0}function te(t,e,r,n,i){var s,u,o,a=1,c=!1,p=!1,l,f,d,m,D,v;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=u=o=ve===r||en===r,n&&dt(t,!0,-1)&&(c=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)),a===1)for(;Lu(t)||Nu(t);)dt(t,!0,-1)?(c=!0,o=s,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)):o=!1;if(o&&(o=c||i),(a===1||ve===r)&&(De===r||tn===r?D=e:D=e+1,v=t.position-t.lineStart,a===1?o&&(Pr(t,v)||Iu(t,v,D))||Pu(t,D)?p=!0:(u&&Tu(t,D)||Ou(t,D)||Ru(t,D)?p=!0:ju(t)?(p=!0,(t.tag!==null||t.anchor!==null)&&V(t,"alias node should not have any properties")):Bu(t,D,De===r)&&(p=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):a===0&&(p=o&&Pr(t,v))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&V(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,f=t.implicitTypes.length;l<f;l+=1)if(m=t.implicitTypes[l],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Nt.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,d=t.typeMap.multi[t.kind||"fallback"],l=0,f=d.length;l<f;l+=1)if(t.tag.slice(0,d[l].tag.length)===d[l].tag){m=d[l];break}m||V(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&V(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):V(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||p}function Mu(t){var e=t.position,r,n,i,s=!1,u;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(u=t.input.charCodeAt(t.position))!==0&&(dt(t,!0,-1),u=t.input.charCodeAt(t.position),!(t.lineIndent>0||u!==37));){for(s=!0,u=t.input.charCodeAt(++t.position),r=t.position;u!==0&&!St(u);)u=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&V(t,"directive name must not be less than one character in length");u!==0;){for(;Ut(u);)u=t.input.charCodeAt(++t.position);if(u===35){do u=t.input.charCodeAt(++t.position);while(u!==0&&!xt(u));break}if(xt(u))break;for(r=t.position;u!==0&&!St(u);)u=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}u!==0&&Xe(t),Nt.call(Or,n)?Or[n](t,n,i):Ee(t,'unknown document directive "'+n+'"')}if(dt(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,dt(t,!0,-1)):s&&V(t,"directives end mark is expected"),te(t,t.lineIndent-1,ve,!1,!0),dt(t,!0,-1),t.checkLineBreaks&&Su.test(t.input.slice(e,t.position))&&Ee(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&we(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,dt(t,!0,-1));return}if(t.position<t.length-1)V(t,"end of the stream or a document separator is expected");else return}function sn(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
29
- `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new xu(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,V(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Mu(r);return r.documents}function $u(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=sn(t,r);if(typeof e!="function")return n;for(var i=0,s=n.length;i<s;i+=1)e(n[i])}function Hu(t,e){var r=sn(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Ct("expected a single document in the stream, but found more")}}var Gu=$u,Wu=Hu,cn={loadAll:Gu,load:Wu},ln=Object.prototype.toString,pn=Object.prototype.hasOwnProperty,ze=65279,Uu=9,se=10,qu=13,Ku=32,Vu=33,Ju=34,Me=35,Yu=37,Qu=38,Xu=39,Zu=42,fn=44,zu=45,Ae=58,ts=61,es=62,rs=63,ns=64,dn=91,hn=93,is=96,mn=123,os=124,gn=125,vt={};vt[0]="\\0";vt[7]="\\a";vt[8]="\\b";vt[9]="\\t";vt[10]="\\n";vt[11]="\\v";vt[12]="\\f";vt[13]="\\r";vt[27]="\\e";vt[34]='\\"';vt[92]="\\\\";vt[133]="\\N";vt[160]="\\_";vt[8232]="\\L";vt[8233]="\\P";var as=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],us=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ss(t,e){var r,n,i,s,u,o,a;if(e===null)return{};for(r={},n=Object.keys(e),i=0,s=n.length;i<s;i+=1)u=n[i],o=String(e[u]),u.slice(0,2)==="!!"&&(u="tag:yaml.org,2002:"+u.slice(2)),a=t.compiledTypeMap.fallback[u],a&&pn.call(a.styleAliases,o)&&(o=a.styleAliases[o]),r[u]=o;return r}function cs(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new Ct("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+gt.repeat("0",n-e.length)+e}var ls=1,ce=2;function ps(t){this.schema=t.schema||zr,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=gt.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=ss(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?ce:ls,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Tr(t,e){for(var r=gt.repeat(" ",e),n=0,i=-1,s="",u,o=t.length;n<o;)i=t.indexOf(`
28
+ `,s?1+a:a),s=!0,u=!0,a=0,r=t.position;!xt(l)&&l!==0;)l=t.input.charCodeAt(++t.position);$t(t,r,t.position,!1)}return!0}function Ir(t,e){var r,n=t.tag,i=t.anchor,s=[],u,o=!1,a;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),a=t.input.charCodeAt(t.position);a!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,J(t,"tab characters must not be used in indentation")),!(a!==45||(u=t.input.charCodeAt(t.position+1),!St(u))));){if(o=!0,t.position++,dt(t,!0,-1)&&t.lineIndent<=e){s.push(null),a=t.input.charCodeAt(t.position);continue}if(r=t.line,ee(t,e,nn,!1,!0),s.push(t.result),dt(t,!0,-1),a=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&a!==0)J(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return o?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function Mu(t,e,r){var n,i,s,u,o,a,c=t.tag,p=t.anchor,l={},f=Object.create(null),d=null,m=null,D=null,v=!1,E=!1,h;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=l),h=t.input.charCodeAt(t.position);h!==0;){if(!v&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,J(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,(h===63||h===58)&&St(n))h===63?(v&&(te(t,l,f,d,m,null,u,o,a),d=m=D=null),E=!0,v=!0,i=!0):v?(v=!1,i=!0):J(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,h=n;else{if(u=t.line,o=t.lineStart,a=t.position,!ee(t,r,rn,!1,!0))break;if(t.line===s){for(h=t.input.charCodeAt(t.position);Kt(h);)h=t.input.charCodeAt(++t.position);if(h===58)h=t.input.charCodeAt(++t.position),St(h)||J(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(te(t,l,f,d,m,null,u,o,a),d=m=D=null),E=!0,v=!1,i=!1,d=t.tag,m=t.result;else if(E)J(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=p,!0}else if(E)J(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=p,!0}if((t.line===s||t.lineIndent>e)&&(v&&(u=t.line,o=t.lineStart,a=t.position),ee(t,e,Ae,!0,i)&&(v?m=t.result:D=t.result),v||(te(t,l,f,d,m,D,u,o,a),d=m=D=null),dt(t,!0,-1),h=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&h!==0)J(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&te(t,l,f,d,m,null,u,o,a),E&&(t.tag=c,t.anchor=p,t.kind="mapping",t.result=l),E}function ju(t){var e,r=!1,n=!1,i,s,u;if(u=t.input.charCodeAt(t.position),u!==33)return!1;if(t.tag!==null&&J(t,"duplication of a tag property"),u=t.input.charCodeAt(++t.position),u===60?(r=!0,u=t.input.charCodeAt(++t.position)):u===33?(n=!0,i="!!",u=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do u=t.input.charCodeAt(++t.position);while(u!==0&&u!==62);t.position<t.length?(s=t.input.slice(e,t.position),u=t.input.charCodeAt(++t.position)):J(t,"unexpected end of the stream within a verbatim tag")}else{for(;u!==0&&!St(u);)u===33&&(n?J(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),on.test(i)||J(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),u=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),Fu.test(s)&&J(t,"tag suffix cannot contain flow indicator characters")}s&&!an.test(s)&&J(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{J(t,"tag name is malformed: "+s)}return r?t.tag=s:Ht.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:J(t,'undeclared tag handle "'+i+'"'),!0}function Nu(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&J(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!St(r)&&!zt(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&J(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function $u(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!St(n)&&!zt(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&J(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Ht.call(t.anchorMap,r)||J(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],dt(t,!0,-1),!0}function ee(t,e,r,n,i){var s,u,o,a=1,c=!1,p=!1,l,f,d,m,D,v;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=u=o=Ae===r||nn===r,n&&dt(t,!0,-1)&&(c=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)),a===1)for(;ju(t)||Nu(t);)dt(t,!0,-1)?(c=!0,o=s,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)):o=!1;if(o&&(o=c||i),(a===1||Ae===r)&&(Ee===r||rn===r?D=e:D=e+1,v=t.position-t.lineStart,a===1?o&&(Ir(t,v)||Mu(t,v,D))||Iu(t,D)?p=!0:(u&&Lu(t,D)||Pu(t,D)||Tu(t,D)?p=!0:$u(t)?(p=!0,(t.tag!==null||t.anchor!==null)&&J(t,"alias node should not have any properties")):Ru(t,D,Ee===r)&&(p=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):a===0&&(p=o&&Ir(t,v))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&J(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,f=t.implicitTypes.length;l<f;l+=1)if(m=t.implicitTypes[l],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Ht.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,d=t.typeMap.multi[t.kind||"fallback"],l=0,f=d.length;l<f;l+=1)if(t.tag.slice(0,d[l].tag.length)===d[l].tag){m=d[l];break}m||J(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&J(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):J(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||p}function Hu(t){var e=t.position,r,n,i,s=!1,u;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(u=t.input.charCodeAt(t.position))!==0&&(dt(t,!0,-1),u=t.input.charCodeAt(t.position),!(t.lineIndent>0||u!==37));){for(s=!0,u=t.input.charCodeAt(++t.position),r=t.position;u!==0&&!St(u);)u=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&J(t,"directive name must not be less than one character in length");u!==0;){for(;Kt(u);)u=t.input.charCodeAt(++t.position);if(u===35){do u=t.input.charCodeAt(++t.position);while(u!==0&&!xt(u));break}if(xt(u))break;for(r=t.position;u!==0&&!St(u);)u=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}u!==0&&Ze(t),Ht.call(Pr,n)?Pr[n](t,n,i):Ce(t,'unknown document directive "'+n+'"')}if(dt(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,dt(t,!0,-1)):s&&J(t,"directives end mark is expected"),ee(t,t.lineIndent-1,Ae,!1,!0),dt(t,!0,-1),t.checkLineBreaks&&wu.test(t.input.slice(e,t.position))&&Ce(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&_e(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,dt(t,!0,-1));return}if(t.position<t.length-1)J(t,"end of the stream or a document separator is expected");else return}function ln(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
29
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new Ou(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,J(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Hu(r);return r.documents}function Gu(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=ln(t,r);if(typeof e!="function")return n;for(var i=0,s=n.length;i<s;i+=1)e(n[i])}function Wu(t,e){var r=ln(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Ct("expected a single document in the stream, but found more")}}var Uu=Gu,qu=Wu,pn={loadAll:Uu,load:qu},fn=Object.prototype.toString,dn=Object.prototype.hasOwnProperty,tr=65279,Ku=9,le=10,Ju=13,Vu=32,Yu=33,Qu=34,$e=35,Xu=37,Zu=38,zu=39,ts=42,hn=44,es=45,Se=58,rs=61,ns=62,is=63,os=64,mn=91,gn=93,as=96,yn=123,us=124,Dn=125,vt={};vt[0]="\\0";vt[7]="\\a";vt[8]="\\b";vt[9]="\\t";vt[10]="\\n";vt[11]="\\v";vt[12]="\\f";vt[13]="\\r";vt[27]="\\e";vt[34]='\\"';vt[92]="\\\\";vt[133]="\\N";vt[160]="\\_";vt[8232]="\\L";vt[8233]="\\P";var ss=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],cs=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ls(t,e){var r,n,i,s,u,o,a;if(e===null)return{};for(r={},n=Object.keys(e),i=0,s=n.length;i<s;i+=1)u=n[i],o=String(e[u]),u.slice(0,2)==="!!"&&(u="tag:yaml.org,2002:"+u.slice(2)),a=t.compiledTypeMap.fallback[u],a&&dn.call(a.styleAliases,o)&&(o=a.styleAliases[o]),r[u]=o;return r}function ps(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new Ct("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+gt.repeat("0",n-e.length)+e}var fs=1,pe=2;function ds(t){this.schema=t.schema||en,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=gt.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=ls(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?pe:fs,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Lr(t,e){for(var r=gt.repeat(" ",e),n=0,i=-1,s="",u,o=t.length;n<o;)i=t.indexOf(`
30
30
  `,n),i===-1?(u=t.slice(n),n=o):(u=t.slice(n,i+1),n=i+1),u.length&&u!==`
31
- `&&(s+=r),s+=u;return s}function $e(t,e){return`
32
- `+gt.repeat(" ",t.indent*e)}function fs(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function Ce(t){return t===Ku||t===Uu}function le(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==ze||65536<=t&&t<=1114111}function Ir(t){return le(t)&&t!==ze&&t!==qu&&t!==se}function Lr(t,e,r){var n=Ir(t),i=n&&!Ce(t);return(r?n:n&&t!==fn&&t!==dn&&t!==hn&&t!==mn&&t!==gn)&&t!==Me&&!(e===Ae&&!i)||Ir(e)&&!Ce(e)&&t===Me||e===Ae&&i}function ds(t){return le(t)&&t!==ze&&!Ce(t)&&t!==zu&&t!==rs&&t!==Ae&&t!==fn&&t!==dn&&t!==hn&&t!==mn&&t!==gn&&t!==Me&&t!==Qu&&t!==Zu&&t!==Vu&&t!==os&&t!==ts&&t!==es&&t!==Xu&&t!==Ju&&t!==Yu&&t!==ns&&t!==is}function hs(t){return!Ce(t)&&t!==Ae}function ae(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function yn(t){var e=/^\n* /;return e.test(t)}var Dn=1,He=2,vn=3,En=4,Xt=5;function ms(t,e,r,n,i,s,u,o){var a,c=0,p=null,l=!1,f=!1,d=n!==-1,m=-1,D=ds(ae(t,0))&&hs(ae(t,t.length-1));if(e||u)for(a=0;a<t.length;c>=65536?a+=2:a++){if(c=ae(t,a),!le(c))return Xt;D=D&&Lr(c,p,o),p=c}else{for(a=0;a<t.length;c>=65536?a+=2:a++){if(c=ae(t,a),c===se)l=!0,d&&(f=f||a-m-1>n&&t[m+1]!==" ",m=a);else if(!le(c))return Xt;D=D&&Lr(c,p,o),p=c}f=f||d&&a-m-1>n&&t[m+1]!==" "}return!l&&!f?D&&!u&&!i(t)?Dn:s===ce?Xt:He:r>9&&yn(t)?Xt:u?s===ce?Xt:He:f?En:vn}function gs(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===ce?'""':"''";if(!t.noCompatMode&&(as.indexOf(e)!==-1||us.test(e)))return t.quotingType===ce?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),u=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),o=n||t.flowLevel>-1&&r>=t.flowLevel;function a(c){return fs(t,c)}switch(ms(e,o,t.indent,u,a,t.quotingType,t.forceQuotes&&!n,i)){case Dn:return e;case He:return"'"+e.replace(/'/g,"''")+"'";case vn:return"|"+Nr(e,t.indent)+jr(Tr(e,s));case En:return">"+Nr(e,t.indent)+jr(Tr(ys(e,u),s));case Xt:return'"'+Ds(e)+'"';default:throw new Ct("impossible error: invalid scalar style")}}()}function Nr(t,e){var r=yn(t)?String(e):"",n=t[t.length-1]===`
31
+ `&&(s+=r),s+=u;return s}function He(t,e){return`
32
+ `+gt.repeat(" ",t.indent*e)}function hs(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function be(t){return t===Vu||t===Ku}function fe(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==tr||65536<=t&&t<=1114111}function Mr(t){return fe(t)&&t!==tr&&t!==Ju&&t!==le}function jr(t,e,r){var n=Mr(t),i=n&&!be(t);return(r?n:n&&t!==hn&&t!==mn&&t!==gn&&t!==yn&&t!==Dn)&&t!==$e&&!(e===Se&&!i)||Mr(e)&&!be(e)&&t===$e||e===Se&&i}function ms(t){return fe(t)&&t!==tr&&!be(t)&&t!==es&&t!==is&&t!==Se&&t!==hn&&t!==mn&&t!==gn&&t!==yn&&t!==Dn&&t!==$e&&t!==Zu&&t!==ts&&t!==Yu&&t!==us&&t!==rs&&t!==ns&&t!==zu&&t!==Qu&&t!==Xu&&t!==os&&t!==as}function gs(t){return!be(t)&&t!==Se}function se(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function vn(t){var e=/^\n* /;return e.test(t)}var En=1,Ge=2,An=3,Cn=4,Zt=5;function ys(t,e,r,n,i,s,u,o){var a,c=0,p=null,l=!1,f=!1,d=n!==-1,m=-1,D=ms(se(t,0))&&gs(se(t,t.length-1));if(e||u)for(a=0;a<t.length;c>=65536?a+=2:a++){if(c=se(t,a),!fe(c))return Zt;D=D&&jr(c,p,o),p=c}else{for(a=0;a<t.length;c>=65536?a+=2:a++){if(c=se(t,a),c===le)l=!0,d&&(f=f||a-m-1>n&&t[m+1]!==" ",m=a);else if(!fe(c))return Zt;D=D&&jr(c,p,o),p=c}f=f||d&&a-m-1>n&&t[m+1]!==" "}return!l&&!f?D&&!u&&!i(t)?En:s===pe?Zt:Ge:r>9&&vn(t)?Zt:u?s===pe?Zt:Ge:f?Cn:An}function Ds(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===pe?'""':"''";if(!t.noCompatMode&&(ss.indexOf(e)!==-1||cs.test(e)))return t.quotingType===pe?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),u=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),o=n||t.flowLevel>-1&&r>=t.flowLevel;function a(c){return hs(t,c)}switch(ys(e,o,t.indent,u,a,t.quotingType,t.forceQuotes&&!n,i)){case En:return e;case Ge:return"'"+e.replace(/'/g,"''")+"'";case An:return"|"+Nr(e,t.indent)+$r(Lr(e,s));case Cn:return">"+Nr(e,t.indent)+$r(Lr(vs(e,u),s));case Zt:return'"'+Es(e)+'"';default:throw new Ct("impossible error: invalid scalar style")}}()}function Nr(t,e){var r=vn(t)?String(e):"",n=t[t.length-1]===`
33
33
  `,i=n&&(t[t.length-2]===`
34
34
  `||t===`
35
35
  `),s=i?"+":n?"":"-";return r+s+`
36
- `}function jr(t){return t[t.length-1]===`
37
- `?t.slice(0,-1):t}function ys(t,e){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=t.indexOf(`
38
- `);return c=c!==-1?c:t.length,r.lastIndex=c,Mr(t.slice(0,c),e)}(),i=t[0]===`
36
+ `}function $r(t){return t[t.length-1]===`
37
+ `?t.slice(0,-1):t}function vs(t,e){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=t.indexOf(`
38
+ `);return c=c!==-1?c:t.length,r.lastIndex=c,Hr(t.slice(0,c),e)}(),i=t[0]===`
39
39
  `||t[0]===" ",s,u;u=r.exec(t);){var o=u[1],a=u[2];s=a[0]===" ",n+=o+(!i&&!s&&a!==""?`
40
- `:"")+Mr(a,e),i=s}return n}function Mr(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,s,u=0,o=0,a="";n=r.exec(t);)o=n.index,o-i>e&&(s=u>i?u:o,a+=`
40
+ `:"")+Hr(a,e),i=s}return n}function Hr(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,s,u=0,o=0,a="";n=r.exec(t);)o=n.index,o-i>e&&(s=u>i?u:o,a+=`
41
41
  `+t.slice(i,s),i=s+1),u=o;return a+=`
42
42
  `,t.length-i>e&&u>i?a+=t.slice(i,u)+`
43
- `+t.slice(u+1):a+=t.slice(i),a.slice(1)}function Ds(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=ae(t,i),n=vt[r],!n&&le(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||cs(r);return e}function vs(t,e,r){var n="",i=t.tag,s,u,o;for(s=0,u=r.length;s<u;s+=1)o=r[s],t.replacer&&(o=t.replacer.call(r,String(s),o)),(Rt(t,e,o,!1,!1)||typeof o>"u"&&Rt(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function $r(t,e,r,n){var i="",s=t.tag,u,o,a;for(u=0,o=r.length;u<o;u+=1)a=r[u],t.replacer&&(a=t.replacer.call(r,String(u),a)),(Rt(t,e+1,a,!0,!0,!1,!0)||typeof a>"u"&&Rt(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=$e(t,e)),t.dump&&se===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function Es(t,e,r){var n="",i=t.tag,s=Object.keys(r),u,o,a,c,p;for(u=0,o=s.length;u<o;u+=1)p="",n!==""&&(p+=", "),t.condenseFlow&&(p+='"'),a=s[u],c=r[a],t.replacer&&(c=t.replacer.call(r,a,c)),Rt(t,e,a,!1,!1)&&(t.dump.length>1024&&(p+="? "),p+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Rt(t,e,c,!1,!1)&&(p+=t.dump,n+=p));t.tag=i,t.dump="{"+n+"}"}function As(t,e,r,n){var i="",s=t.tag,u=Object.keys(r),o,a,c,p,l,f;if(t.sortKeys===!0)u.sort();else if(typeof t.sortKeys=="function")u.sort(t.sortKeys);else if(t.sortKeys)throw new Ct("sortKeys must be a boolean or a function");for(o=0,a=u.length;o<a;o+=1)f="",(!n||i!=="")&&(f+=$e(t,e)),c=u[o],p=r[c],t.replacer&&(p=t.replacer.call(r,c,p)),Rt(t,e+1,c,!0,!0,!0)&&(l=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,l&&(t.dump&&se===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,l&&(f+=$e(t,e)),Rt(t,e+1,p,!0,l)&&(t.dump&&se===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=s,t.dump=i||"{}"}function Hr(t,e,r){var n,i,s,u,o,a;for(i=r?t.explicitTypes:t.implicitTypes,s=0,u=i.length;s<u;s+=1)if(o=i[s],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof e=="object"&&e instanceof o.instanceOf)&&(!o.predicate||o.predicate(e))){if(r?o.multi&&o.representName?t.tag=o.representName(e):t.tag=o.tag:t.tag="?",o.represent){if(a=t.styleMap[o.tag]||o.defaultStyle,ln.call(o.represent)==="[object Function]")n=o.represent(e,a);else if(pn.call(o.represent,a))n=o.represent[a](e,a);else throw new Ct("!<"+o.tag+'> tag resolver accepts not "'+a+'" style');t.dump=n}return!0}return!1}function Rt(t,e,r,n,i,s,u){t.tag=null,t.dump=r,Hr(t,r,!1)||Hr(t,r,!0);var o=ln.call(t.dump),a=n,c;n&&(n=t.flowLevel<0||t.flowLevel>e);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=t.duplicates.indexOf(r),f=l!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[l])t.dump="*ref_"+l;else{if(p&&f&&!t.usedDuplicates[l]&&(t.usedDuplicates[l]=!0),o==="[object Object]")n&&Object.keys(t.dump).length!==0?(As(t,e,t.dump,i),f&&(t.dump="&ref_"+l+t.dump)):(Es(t,e,t.dump),f&&(t.dump="&ref_"+l+" "+t.dump));else if(o==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!u&&e>0?$r(t,e-1,t.dump,i):$r(t,e,t.dump,i),f&&(t.dump="&ref_"+l+t.dump)):(vs(t,e,t.dump),f&&(t.dump="&ref_"+l+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&gs(t,t.dump,e,s,a);else{if(o==="[object Undefined]"||t.skipInvalid)return!1;throw new Ct("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function Cs(t,e){var r=[],n=[],i,s;for(Ge(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function Ge(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)Ge(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)Ge(t[n[i]],e,r)}function Ss(t,e){e=e||{};var r=new ps(e);r.noRefs||Cs(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Rt(r,0,n,!0,!0)?r.dump+`
44
- `:""}var bs=Ss,ws={dump:bs};function tr(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var el=cn.load,rl=cn.loadAll,nl=ws.dump;var il=tr("safeLoad","load"),ol=tr("safeLoadAll","loadAll"),al=tr("safeDump","dump");var ul=It(na());var Sn=st(require("os"),1),Fs=R((t,e)=>{B(),e.exports=s,s.sync=u;var r=W("fs");function n(o,a){var c=a.pathExt!==void 0?a.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var p=0;p<c.length;p++){var l=c[p].toLowerCase();if(l&&o.substr(-l.length).toLowerCase()===l)return!0}return!1}function i(o,a,c){return!o.isSymbolicLink()&&!o.isFile()?!1:n(a,c)}function s(o,a,c){r.stat(o,function(p,l){c(p,p?!1:i(l,o,a))})}function u(o,a){return i(r.statSync(o),o,a)}}),_s=R((t,e)=>{B(),e.exports=n,n.sync=i;var r=W("fs");function n(o,a,c){r.stat(o,function(p,l){c(p,p?!1:s(l,a))})}function i(o,a){return s(r.statSync(o),a)}function s(o,a){return o.isFile()&&u(o,a)}function u(o,a){var c=o.mode,p=o.uid,l=o.gid,f=a.uid!==void 0?a.uid:process.getuid&&process.getuid(),d=a.gid!==void 0?a.gid:process.getgid&&process.getgid(),m=parseInt("100",8),D=parseInt("010",8),v=parseInt("001",8),E=m|D,h=c&v||c&D&&l===d||c&m&&p===f||c&E&&f===0;return h}}),ks=R((t,e)=>{B();var r=W("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=Fs():n=_s(),e.exports=i,i.sync=s;function i(u,o,a){if(typeof o=="function"&&(a=o,o={}),!a){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(c,p){i(u,o||{},function(l,f){l?p(l):c(f)})})}n(u,o||{},function(c,p){c&&(c.code==="EACCES"||o&&o.ignoreErrors)&&(c=null,p=!1),a(c,p)})}function s(u,o){try{return n.sync(u,o||{})}catch(a){if(o&&o.ignoreErrors||a.code==="EACCES")return!1;throw a}}}),xs=R((t,e)=>{B();var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=W("path"),i=r?";":":",s=ks(),u=p=>Object.assign(new Error(`not found: ${p}`),{code:"ENOENT"}),o=(p,l)=>{let f=l.colon||i,d=p.match(/\//)||r&&p.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(f)],m=r?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",D=r?m.split(f):[""];return r&&p.indexOf(".")!==-1&&D[0]!==""&&D.unshift(""),{pathEnv:d,pathExt:D,pathExtExe:m}},a=(p,l,f)=>{typeof l=="function"&&(f=l,l={}),l||(l={});let{pathEnv:d,pathExt:m,pathExtExe:D}=o(p,l),v=[],E=y=>new Promise((S,g)=>{if(y===d.length)return l.all&&v.length?S(v):g(u(p));let A=d[y],C=/^".*"$/.test(A)?A.slice(1,-1):A,_=n.join(C,p),w=!C&&/^\.[\\\/]/.test(p)?p.slice(0,2)+_:_;S(h(w,y,0))}),h=(y,S,g)=>new Promise((A,C)=>{if(g===m.length)return A(E(S+1));let _=m[g];s(y+_,{pathExt:D},(w,x)=>{if(!w&&x)if(l.all)v.push(y+_);else return A(y+_);return A(h(y,S,g+1))})});return f?E(0).then(y=>f(null,y),f):E(0)},c=(p,l)=>{l=l||{};let{pathEnv:f,pathExt:d,pathExtExe:m}=o(p,l),D=[];for(let v=0;v<f.length;v++){let E=f[v],h=/^".*"$/.test(E)?E.slice(1,-1):E,y=n.join(h,p),S=!h&&/^\.[\\\/]/.test(p)?p.slice(0,2)+y:y;for(let g=0;g<d.length;g++){let A=S+d[g];try{if(s.sync(A,{pathExt:m}))if(l.all)D.push(A);else return A}catch{}}}if(l.all&&D.length)return D;if(l.nothrow)return null;throw u(p)};e.exports=a,a.sync=c}),An=R((t,e)=>{"use strict";B();var r=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"};e.exports=r,e.exports.default=r}),Bs=R((t,e)=>{"use strict";B();var r=W("path"),n=xs(),i=An();function s(o,a){let c=o.options.env||process.env,p=process.cwd(),l=o.options.cwd!=null,f=l&&process.chdir!==void 0&&!process.chdir.disabled;if(f)try{process.chdir(o.options.cwd)}catch{}let d;try{d=n.sync(o.command,{path:c[i({env:c})],pathExt:a?r.delimiter:void 0})}catch{}finally{f&&process.chdir(p)}return d&&(d=r.resolve(l?o.options.cwd:"",d)),d}function u(o){return s(o)||s(o,!0)}e.exports=u}),Os=R((t,e)=>{"use strict";B();var r=/([()\][%!^"`<>&|;, *?])/g;function n(s){return s=s.replace(r,"^$1"),s}function i(s,u){return s=`${s}`,s=s.replace(/(\\*)"/g,'$1$1\\"'),s=s.replace(/(\\*)$/,"$1$1"),s=`"${s}"`,s=s.replace(r,"^$1"),u&&(s=s.replace(r,"^$1")),s}e.exports.command=n,e.exports.argument=i}),Rs=R((t,e)=>{"use strict";B(),e.exports=/^#!(.*)/}),Ps=R((t,e)=>{"use strict";B();var r=Rs();e.exports=(n="")=>{let i=n.match(r);if(!i)return null;let[s,u]=i[0].replace(/#! ?/,"").split(" "),o=s.split("/").pop();return o==="env"?u:u?`${o} ${u}`:o}}),Ts=R((t,e)=>{"use strict";B();var r=W("fs"),n=Ps();function i(s){let u=Buffer.alloc(150),o;try{o=r.openSync(s,"r"),r.readSync(o,u,0,150,0),r.closeSync(o)}catch{}return n(u.toString())}e.exports=i}),Is=R((t,e)=>{"use strict";B();var r=W("path"),n=Bs(),i=Os(),s=Ts(),u=process.platform==="win32",o=/\.(?:com|exe)$/i,a=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(f){f.file=n(f);let d=f.file&&s(f.file);return d?(f.args.unshift(f.file),f.command=d,n(f)):f.file}function p(f){if(!u)return f;let d=c(f),m=!o.test(d);if(f.options.forceShell||m){let D=a.test(d);f.command=r.normalize(f.command),f.command=i.command(f.command),f.args=f.args.map(E=>i.argument(E,D));let v=[f.command].concat(f.args).join(" ");f.args=["/d","/s","/c",`"${v}"`],f.command=process.env.comspec||"cmd.exe",f.options.windowsVerbatimArguments=!0}return f}function l(f,d,m){d&&!Array.isArray(d)&&(m=d,d=null),d=d?d.slice(0):[],m=Object.assign({},m);let D={command:f,args:d,options:m,file:void 0,original:{command:f,args:d}};return m.shell?D:p(D)}e.exports=l}),Ls=R((t,e)=>{"use strict";B();var r=process.platform==="win32";function n(o,a){return Object.assign(new Error(`${a} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${a} ${o.command}`,path:o.command,spawnargs:o.args})}function i(o,a){if(!r)return;let c=o.emit;o.emit=function(p,l){if(p==="exit"){let f=s(l,a,"spawn");if(f)return c.call(o,"error",f)}return c.apply(o,arguments)}}function s(o,a){return r&&o===1&&!a.file?n(a.original,"spawn"):null}function u(o,a){return r&&o===1&&!a.file?n(a.original,"spawnSync"):null}e.exports={hookChildProcess:i,verifyENOENT:s,verifyENOENTSync:u,notFoundError:n}}),Ns=R((t,e)=>{"use strict";B();var r=W("child_process"),n=Is(),i=Ls();function s(o,a,c){let p=n(o,a,c),l=r.spawn(p.command,p.args,p.options);return i.hookChildProcess(l,p),l}function u(o,a,c){let p=n(o,a,c),l=r.spawnSync(p.command,p.args,p.options);return l.error=l.error||i.verifyENOENTSync(l.status,p),l}e.exports=s,e.exports.spawn=s,e.exports.sync=u,e.exports._parse=n,e.exports._enoent=i}),js=R((t,e)=>{"use strict";B(),e.exports=r=>{let n=typeof r=="string"?`
43
+ `+t.slice(u+1):a+=t.slice(i),a.slice(1)}function Es(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=se(t,i),n=vt[r],!n&&fe(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||ps(r);return e}function As(t,e,r){var n="",i=t.tag,s,u,o;for(s=0,u=r.length;s<u;s+=1)o=r[s],t.replacer&&(o=t.replacer.call(r,String(s),o)),(Pt(t,e,o,!1,!1)||typeof o>"u"&&Pt(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function Gr(t,e,r,n){var i="",s=t.tag,u,o,a;for(u=0,o=r.length;u<o;u+=1)a=r[u],t.replacer&&(a=t.replacer.call(r,String(u),a)),(Pt(t,e+1,a,!0,!0,!1,!0)||typeof a>"u"&&Pt(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=He(t,e)),t.dump&&le===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function Cs(t,e,r){var n="",i=t.tag,s=Object.keys(r),u,o,a,c,p;for(u=0,o=s.length;u<o;u+=1)p="",n!==""&&(p+=", "),t.condenseFlow&&(p+='"'),a=s[u],c=r[a],t.replacer&&(c=t.replacer.call(r,a,c)),Pt(t,e,a,!1,!1)&&(t.dump.length>1024&&(p+="? "),p+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Pt(t,e,c,!1,!1)&&(p+=t.dump,n+=p));t.tag=i,t.dump="{"+n+"}"}function Ss(t,e,r,n){var i="",s=t.tag,u=Object.keys(r),o,a,c,p,l,f;if(t.sortKeys===!0)u.sort();else if(typeof t.sortKeys=="function")u.sort(t.sortKeys);else if(t.sortKeys)throw new Ct("sortKeys must be a boolean or a function");for(o=0,a=u.length;o<a;o+=1)f="",(!n||i!=="")&&(f+=He(t,e)),c=u[o],p=r[c],t.replacer&&(p=t.replacer.call(r,c,p)),Pt(t,e+1,c,!0,!0,!0)&&(l=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,l&&(t.dump&&le===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,l&&(f+=He(t,e)),Pt(t,e+1,p,!0,l)&&(t.dump&&le===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=s,t.dump=i||"{}"}function Wr(t,e,r){var n,i,s,u,o,a;for(i=r?t.explicitTypes:t.implicitTypes,s=0,u=i.length;s<u;s+=1)if(o=i[s],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof e=="object"&&e instanceof o.instanceOf)&&(!o.predicate||o.predicate(e))){if(r?o.multi&&o.representName?t.tag=o.representName(e):t.tag=o.tag:t.tag="?",o.represent){if(a=t.styleMap[o.tag]||o.defaultStyle,fn.call(o.represent)==="[object Function]")n=o.represent(e,a);else if(dn.call(o.represent,a))n=o.represent[a](e,a);else throw new Ct("!<"+o.tag+'> tag resolver accepts not "'+a+'" style');t.dump=n}return!0}return!1}function Pt(t,e,r,n,i,s,u){t.tag=null,t.dump=r,Wr(t,r,!1)||Wr(t,r,!0);var o=fn.call(t.dump),a=n,c;n&&(n=t.flowLevel<0||t.flowLevel>e);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=t.duplicates.indexOf(r),f=l!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[l])t.dump="*ref_"+l;else{if(p&&f&&!t.usedDuplicates[l]&&(t.usedDuplicates[l]=!0),o==="[object Object]")n&&Object.keys(t.dump).length!==0?(Ss(t,e,t.dump,i),f&&(t.dump="&ref_"+l+t.dump)):(Cs(t,e,t.dump),f&&(t.dump="&ref_"+l+" "+t.dump));else if(o==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!u&&e>0?Gr(t,e-1,t.dump,i):Gr(t,e,t.dump,i),f&&(t.dump="&ref_"+l+t.dump)):(As(t,e,t.dump),f&&(t.dump="&ref_"+l+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&Ds(t,t.dump,e,s,a);else{if(o==="[object Undefined]"||t.skipInvalid)return!1;throw new Ct("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function bs(t,e){var r=[],n=[],i,s;for(We(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function We(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)We(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)We(t[n[i]],e,r)}function ws(t,e){e=e||{};var r=new ds(e);r.noRefs||bs(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Pt(r,0,n,!0,!0)?r.dump+`
44
+ `:""}var Fs=ws,_s={dump:Fs};function er(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var el=pn.load,rl=pn.loadAll,nl=_s.dump;var il=er("safeLoad","load"),ol=er("safeLoadAll","loadAll"),al=er("safeDump","dump");var ul=Nt(oa());var wn=st(require("os"),1),ks=R((t,e)=>{B(),e.exports=s,s.sync=u;var r=W("fs");function n(o,a){var c=a.pathExt!==void 0?a.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var p=0;p<c.length;p++){var l=c[p].toLowerCase();if(l&&o.substr(-l.length).toLowerCase()===l)return!0}return!1}function i(o,a,c){return!o.isSymbolicLink()&&!o.isFile()?!1:n(a,c)}function s(o,a,c){r.stat(o,function(p,l){c(p,p?!1:i(l,o,a))})}function u(o,a){return i(r.statSync(o),o,a)}}),xs=R((t,e)=>{B(),e.exports=n,n.sync=i;var r=W("fs");function n(o,a,c){r.stat(o,function(p,l){c(p,p?!1:s(l,a))})}function i(o,a){return s(r.statSync(o),a)}function s(o,a){return o.isFile()&&u(o,a)}function u(o,a){var c=o.mode,p=o.uid,l=o.gid,f=a.uid!==void 0?a.uid:process.getuid&&process.getuid(),d=a.gid!==void 0?a.gid:process.getgid&&process.getgid(),m=parseInt("100",8),D=parseInt("010",8),v=parseInt("001",8),E=m|D,h=c&v||c&D&&l===d||c&m&&p===f||c&E&&f===0;return h}}),Bs=R((t,e)=>{B();var r=W("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=ks():n=xs(),e.exports=i,i.sync=s;function i(u,o,a){if(typeof o=="function"&&(a=o,o={}),!a){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(c,p){i(u,o||{},function(l,f){l?p(l):c(f)})})}n(u,o||{},function(c,p){c&&(c.code==="EACCES"||o&&o.ignoreErrors)&&(c=null,p=!1),a(c,p)})}function s(u,o){try{return n.sync(u,o||{})}catch(a){if(o&&o.ignoreErrors||a.code==="EACCES")return!1;throw a}}}),Os=R((t,e)=>{B();var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=W("path"),i=r?";":":",s=Bs(),u=p=>Object.assign(new Error(`not found: ${p}`),{code:"ENOENT"}),o=(p,l)=>{let f=l.colon||i,d=p.match(/\//)||r&&p.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(f)],m=r?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",D=r?m.split(f):[""];return r&&p.indexOf(".")!==-1&&D[0]!==""&&D.unshift(""),{pathEnv:d,pathExt:D,pathExtExe:m}},a=(p,l,f)=>{typeof l=="function"&&(f=l,l={}),l||(l={});let{pathEnv:d,pathExt:m,pathExtExe:D}=o(p,l),v=[],E=y=>new Promise((S,g)=>{if(y===d.length)return l.all&&v.length?S(v):g(u(p));let A=d[y],C=/^".*"$/.test(A)?A.slice(1,-1):A,_=n.join(C,p),w=!C&&/^\.[\\\/]/.test(p)?p.slice(0,2)+_:_;S(h(w,y,0))}),h=(y,S,g)=>new Promise((A,C)=>{if(g===m.length)return A(E(S+1));let _=m[g];s(y+_,{pathExt:D},(w,x)=>{if(!w&&x)if(l.all)v.push(y+_);else return A(y+_);return A(h(y,S,g+1))})});return f?E(0).then(y=>f(null,y),f):E(0)},c=(p,l)=>{l=l||{};let{pathEnv:f,pathExt:d,pathExtExe:m}=o(p,l),D=[];for(let v=0;v<f.length;v++){let E=f[v],h=/^".*"$/.test(E)?E.slice(1,-1):E,y=n.join(h,p),S=!h&&/^\.[\\\/]/.test(p)?p.slice(0,2)+y:y;for(let g=0;g<d.length;g++){let A=S+d[g];try{if(s.sync(A,{pathExt:m}))if(l.all)D.push(A);else return A}catch{}}}if(l.all&&D.length)return D;if(l.nothrow)return null;throw u(p)};e.exports=a,a.sync=c}),Sn=R((t,e)=>{"use strict";B();var r=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"};e.exports=r,e.exports.default=r}),Rs=R((t,e)=>{"use strict";B();var r=W("path"),n=Os(),i=Sn();function s(o,a){let c=o.options.env||process.env,p=process.cwd(),l=o.options.cwd!=null,f=l&&process.chdir!==void 0&&!process.chdir.disabled;if(f)try{process.chdir(o.options.cwd)}catch{}let d;try{d=n.sync(o.command,{path:c[i({env:c})],pathExt:a?r.delimiter:void 0})}catch{}finally{f&&process.chdir(p)}return d&&(d=r.resolve(l?o.options.cwd:"",d)),d}function u(o){return s(o)||s(o,!0)}e.exports=u}),Ps=R((t,e)=>{"use strict";B();var r=/([()\][%!^"`<>&|;, *?])/g;function n(s){return s=s.replace(r,"^$1"),s}function i(s,u){return s=`${s}`,s=s.replace(/(\\*)"/g,'$1$1\\"'),s=s.replace(/(\\*)$/,"$1$1"),s=`"${s}"`,s=s.replace(r,"^$1"),u&&(s=s.replace(r,"^$1")),s}e.exports.command=n,e.exports.argument=i}),Ts=R((t,e)=>{"use strict";B(),e.exports=/^#!(.*)/}),Is=R((t,e)=>{"use strict";B();var r=Ts();e.exports=(n="")=>{let i=n.match(r);if(!i)return null;let[s,u]=i[0].replace(/#! ?/,"").split(" "),o=s.split("/").pop();return o==="env"?u:u?`${o} ${u}`:o}}),Ls=R((t,e)=>{"use strict";B();var r=W("fs"),n=Is();function i(s){let u=Buffer.alloc(150),o;try{o=r.openSync(s,"r"),r.readSync(o,u,0,150,0),r.closeSync(o)}catch{}return n(u.toString())}e.exports=i}),Ms=R((t,e)=>{"use strict";B();var r=W("path"),n=Rs(),i=Ps(),s=Ls(),u=process.platform==="win32",o=/\.(?:com|exe)$/i,a=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(f){f.file=n(f);let d=f.file&&s(f.file);return d?(f.args.unshift(f.file),f.command=d,n(f)):f.file}function p(f){if(!u)return f;let d=c(f),m=!o.test(d);if(f.options.forceShell||m){let D=a.test(d);f.command=r.normalize(f.command),f.command=i.command(f.command),f.args=f.args.map(E=>i.argument(E,D));let v=[f.command].concat(f.args).join(" ");f.args=["/d","/s","/c",`"${v}"`],f.command=process.env.comspec||"cmd.exe",f.options.windowsVerbatimArguments=!0}return f}function l(f,d,m){d&&!Array.isArray(d)&&(m=d,d=null),d=d?d.slice(0):[],m=Object.assign({},m);let D={command:f,args:d,options:m,file:void 0,original:{command:f,args:d}};return m.shell?D:p(D)}e.exports=l}),js=R((t,e)=>{"use strict";B();var r=process.platform==="win32";function n(o,a){return Object.assign(new Error(`${a} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${a} ${o.command}`,path:o.command,spawnargs:o.args})}function i(o,a){if(!r)return;let c=o.emit;o.emit=function(p,l){if(p==="exit"){let f=s(l,a,"spawn");if(f)return c.call(o,"error",f)}return c.apply(o,arguments)}}function s(o,a){return r&&o===1&&!a.file?n(a.original,"spawn"):null}function u(o,a){return r&&o===1&&!a.file?n(a.original,"spawnSync"):null}e.exports={hookChildProcess:i,verifyENOENT:s,verifyENOENTSync:u,notFoundError:n}}),Ns=R((t,e)=>{"use strict";B();var r=W("child_process"),n=Ms(),i=js();function s(o,a,c){let p=n(o,a,c),l=r.spawn(p.command,p.args,p.options);return i.hookChildProcess(l,p),l}function u(o,a,c){let p=n(o,a,c),l=r.spawnSync(p.command,p.args,p.options);return l.error=l.error||i.verifyENOENTSync(l.status,p),l}e.exports=s,e.exports.spawn=s,e.exports.sync=u,e.exports._parse=n,e.exports._enoent=i}),$s=R((t,e)=>{"use strict";B(),e.exports=r=>{let n=typeof r=="string"?`
45
45
  `:`
46
- `.charCodeAt(),i=typeof r=="string"?"\r":"\r".charCodeAt();return r[r.length-1]===n&&(r=r.slice(0,r.length-1)),r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r}}),Ms=R((t,e)=>{"use strict";B();var r=W("path"),n=An(),i=s=>{s={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...s};let u,o=r.resolve(s.cwd),a=[];for(;u!==o;)a.push(r.join(o,"node_modules/.bin")),u=o,o=r.resolve(o,"..");let c=r.resolve(s.cwd,s.execPath,"..");return a.push(c),a.concat(s.path).join(r.delimiter)};e.exports=i,e.exports.default=i,e.exports.env=s=>{s={env:process.env,...s};let u={...s.env},o=n({env:u});return s.path=u[o],u[o]=e.exports(s),u}}),$s=R((t,e)=>{"use strict";B();var r=(n,i)=>{for(let s of Reflect.ownKeys(i))Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(i,s));return n};e.exports=r,e.exports.default=r}),Hs=R((t,e)=>{"use strict";B();var r=$s(),n=new WeakMap,i=(s,u={})=>{if(typeof s!="function")throw new TypeError("Expected a function");let o,a=0,c=s.displayName||s.name||"<anonymous>",p=function(...l){if(n.set(p,++a),a===1)o=s.apply(this,l),s=null;else if(u.throw===!0)throw new Error(`Function \`${c}\` can only be called once`);return o};return r(p,s),n.set(p,a),p};e.exports=i,e.exports.default=i,e.exports.callCount=s=>{if(!n.has(s))throw new Error(`The given function \`${s.name}\` is not wrapped by the \`onetime\` package`);return n.get(s)}}),Gs=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;var e=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=e}),Cn=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;var e=function(){let s=i-n+1;return Array.from({length:s},r)};t.getRealtimeSignals=e;var r=function(s,u){return{name:`SIGRT${u+1}`,number:n+u,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;t.SIGRTMAX=i}),Ws=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var e=W("os"),r=Gs(),n=Cn(),i=function(){let u=(0,n.getRealtimeSignals)();return[...r.SIGNALS,...u].map(s)};t.getSignals=i;var s=function({name:u,number:o,description:a,action:c,forced:p=!1,standard:l}){let{signals:{[u]:f}}=e.constants,d=f!==void 0;return{name:u,number:d?f:o,description:a,supported:d,action:c,forced:p,standard:l}}}),Us=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var e=W("os"),r=Ws(),n=Cn(),i=function(){return(0,r.getSignals)().reduce(s,{})},s=function(l,{name:f,number:d,description:m,supported:D,action:v,forced:E,standard:h}){return{...l,[f]:{name:f,number:d,description:m,supported:D,action:v,forced:E,standard:h}}},u=i();t.signalsByName=u;var o=function(){let l=(0,r.getSignals)(),f=n.SIGRTMAX+1,d=Array.from({length:f},(m,D)=>a(D,l));return Object.assign({},...d)},a=function(l,f){let d=c(l,f);if(d===void 0)return{};let{name:m,description:D,supported:v,action:E,forced:h,standard:y}=d;return{[l]:{name:m,number:l,description:D,supported:v,action:E,forced:h,standard:y}}},c=function(l,f){let d=f.find(({name:m})=>e.constants.signals[m]===l);return d!==void 0?d:f.find(m=>m.number===l)},p=o();t.signalsByNumber=p}),qs=R((t,e)=>{"use strict";B();var{signalsByName:r}=Us(),n=({timedOut:s,timeout:u,errorCode:o,signal:a,signalDescription:c,exitCode:p,isCanceled:l})=>s?`timed out after ${u} milliseconds`:l?"was canceled":o!==void 0?`failed with ${o}`:a!==void 0?`was killed with ${a} (${c})`:p!==void 0?`failed with exit code ${p}`:"failed",i=({stdout:s,stderr:u,all:o,error:a,signal:c,exitCode:p,command:l,escapedCommand:f,timedOut:d,isCanceled:m,killed:D,parsed:{options:{timeout:v}}})=>{p=p===null?void 0:p,c=c===null?void 0:c;let E=c===void 0?void 0:r[c].description,h=a&&a.code,y=`Command ${n({timedOut:d,timeout:v,errorCode:h,signal:c,signalDescription:E,exitCode:p,isCanceled:m})}: ${l}`,S=Object.prototype.toString.call(a)==="[object Error]",g=S?`${y}
46
+ `.charCodeAt(),i=typeof r=="string"?"\r":"\r".charCodeAt();return r[r.length-1]===n&&(r=r.slice(0,r.length-1)),r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r}}),Hs=R((t,e)=>{"use strict";B();var r=W("path"),n=Sn(),i=s=>{s={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...s};let u,o=r.resolve(s.cwd),a=[];for(;u!==o;)a.push(r.join(o,"node_modules/.bin")),u=o,o=r.resolve(o,"..");let c=r.resolve(s.cwd,s.execPath,"..");return a.push(c),a.concat(s.path).join(r.delimiter)};e.exports=i,e.exports.default=i,e.exports.env=s=>{s={env:process.env,...s};let u={...s.env},o=n({env:u});return s.path=u[o],u[o]=e.exports(s),u}}),Gs=R((t,e)=>{"use strict";B();var r=(n,i)=>{for(let s of Reflect.ownKeys(i))Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(i,s));return n};e.exports=r,e.exports.default=r}),Ws=R((t,e)=>{"use strict";B();var r=Gs(),n=new WeakMap,i=(s,u={})=>{if(typeof s!="function")throw new TypeError("Expected a function");let o,a=0,c=s.displayName||s.name||"<anonymous>",p=function(...l){if(n.set(p,++a),a===1)o=s.apply(this,l),s=null;else if(u.throw===!0)throw new Error(`Function \`${c}\` can only be called once`);return o};return r(p,s),n.set(p,a),p};e.exports=i,e.exports.default=i,e.exports.callCount=s=>{if(!n.has(s))throw new Error(`The given function \`${s.name}\` is not wrapped by the \`onetime\` package`);return n.get(s)}}),Us=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;var e=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=e}),bn=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;var e=function(){let s=i-n+1;return Array.from({length:s},r)};t.getRealtimeSignals=e;var r=function(s,u){return{name:`SIGRT${u+1}`,number:n+u,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;t.SIGRTMAX=i}),qs=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var e=W("os"),r=Us(),n=bn(),i=function(){let u=(0,n.getRealtimeSignals)();return[...r.SIGNALS,...u].map(s)};t.getSignals=i;var s=function({name:u,number:o,description:a,action:c,forced:p=!1,standard:l}){let{signals:{[u]:f}}=e.constants,d=f!==void 0;return{name:u,number:d?f:o,description:a,supported:d,action:c,forced:p,standard:l}}}),Ks=R(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var e=W("os"),r=qs(),n=bn(),i=function(){return(0,r.getSignals)().reduce(s,{})},s=function(l,{name:f,number:d,description:m,supported:D,action:v,forced:E,standard:h}){return{...l,[f]:{name:f,number:d,description:m,supported:D,action:v,forced:E,standard:h}}},u=i();t.signalsByName=u;var o=function(){let l=(0,r.getSignals)(),f=n.SIGRTMAX+1,d=Array.from({length:f},(m,D)=>a(D,l));return Object.assign({},...d)},a=function(l,f){let d=c(l,f);if(d===void 0)return{};let{name:m,description:D,supported:v,action:E,forced:h,standard:y}=d;return{[l]:{name:m,number:l,description:D,supported:v,action:E,forced:h,standard:y}}},c=function(l,f){let d=f.find(({name:m})=>e.constants.signals[m]===l);return d!==void 0?d:f.find(m=>m.number===l)},p=o();t.signalsByNumber=p}),Js=R((t,e)=>{"use strict";B();var{signalsByName:r}=Ks(),n=({timedOut:s,timeout:u,errorCode:o,signal:a,signalDescription:c,exitCode:p,isCanceled:l})=>s?`timed out after ${u} milliseconds`:l?"was canceled":o!==void 0?`failed with ${o}`:a!==void 0?`was killed with ${a} (${c})`:p!==void 0?`failed with exit code ${p}`:"failed",i=({stdout:s,stderr:u,all:o,error:a,signal:c,exitCode:p,command:l,escapedCommand:f,timedOut:d,isCanceled:m,killed:D,parsed:{options:{timeout:v}}})=>{p=p===null?void 0:p,c=c===null?void 0:c;let E=c===void 0?void 0:r[c].description,h=a&&a.code,y=`Command ${n({timedOut:d,timeout:v,errorCode:h,signal:c,signalDescription:E,exitCode:p,isCanceled:m})}: ${l}`,S=Object.prototype.toString.call(a)==="[object Error]",g=S?`${y}
47
47
  ${a.message}`:y,A=[g,u,s].filter(Boolean).join(`
48
- `);return S?(a.originalMessage=a.message,a.message=A):a=new Error(A),a.shortMessage=g,a.command=l,a.escapedCommand=f,a.exitCode=p,a.signal=c,a.signalDescription=E,a.stdout=s,a.stderr=u,o!==void 0&&(a.all=o),"bufferedData"in a&&delete a.bufferedData,a.failed=!0,a.timedOut=Boolean(d),a.isCanceled=m,a.killed=D&&!d,a};e.exports=i}),Ks=R((t,e)=>{"use strict";B();var r=["stdin","stdout","stderr"],n=s=>r.some(u=>s[u]!==void 0),i=s=>{if(!s)return;let{stdio:u}=s;if(u===void 0)return r.map(a=>s[a]);if(n(s))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(a=>`\`${a}\``).join(", ")}`);if(typeof u=="string")return u;if(!Array.isArray(u))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``);let o=Math.max(u.length,r.length);return Array.from({length:o},(a,c)=>u[c])};e.exports=i,e.exports.node=s=>{let u=i(s);return u==="ipc"?"ipc":u===void 0||typeof u=="string"?[u,u,u,"ipc"]:u.includes("ipc")?u:[...u,"ipc"]}}),Vs=R((t,e)=>{B(),e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),Js=R((t,e)=>{B();var r=global.process,n=function(h){return h&&typeof h=="object"&&typeof h.removeListener=="function"&&typeof h.emit=="function"&&typeof h.reallyExit=="function"&&typeof h.listeners=="function"&&typeof h.kill=="function"&&typeof h.pid=="number"&&typeof h.on=="function"};n(r)?(i=W("assert"),s=Vs(),u=/^win/i.test(r.platform),o=W("events"),typeof o!="function"&&(o=o.EventEmitter),r.__signal_exit_emitter__?a=r.__signal_exit_emitter__:(a=r.__signal_exit_emitter__=new o,a.count=0,a.emitted={}),a.infinite||(a.setMaxListeners(1/0),a.infinite=!0),e.exports=function(h,y){if(!n(global.process))return function(){};i.equal(typeof h,"function","a callback must be provided for exit handler"),f===!1&&d();var S="exit";y&&y.alwaysLast&&(S="afterexit");var g=function(){a.removeListener(S,h),a.listeners("exit").length===0&&a.listeners("afterexit").length===0&&c()};return a.on(S,h),g},c=function(){!f||!n(global.process)||(f=!1,s.forEach(function(h){try{r.removeListener(h,l[h])}catch{}}),r.emit=v,r.reallyExit=m,a.count-=1)},e.exports.unload=c,p=function(h,y,S){a.emitted[h]||(a.emitted[h]=!0,a.emit(h,y,S))},l={},s.forEach(function(h){l[h]=function(){if(n(global.process)){var y=r.listeners(h);y.length===a.count&&(c(),p("exit",null,h),p("afterexit",null,h),u&&h==="SIGHUP"&&(h="SIGINT"),r.kill(r.pid,h))}}}),e.exports.signals=function(){return s},f=!1,d=function(){f||!n(global.process)||(f=!0,a.count+=1,s=s.filter(function(h){try{return r.on(h,l[h]),!0}catch{return!1}}),r.emit=E,r.reallyExit=D)},e.exports.load=d,m=r.reallyExit,D=function(h){!n(global.process)||(r.exitCode=h||0,p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),m.call(r,r.exitCode))},v=r.emit,E=function(h,y){if(h==="exit"&&n(global.process)){y!==void 0&&(r.exitCode=y);var S=v.apply(this,arguments);return p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),S}else return v.apply(this,arguments)}):e.exports=function(){return function(){}};var i,s,u,o,a,c,p,l,f,d,m,D,v,E}),Ys=R((t,e)=>{"use strict";B();var r=W("os"),n=Js(),i=1e3*5,s=(D,v="SIGTERM",E={})=>{let h=D(v);return u(D,v,E,h),h},u=(D,v,E,h)=>{if(!o(v,E,h))return;let y=c(E),S=setTimeout(()=>{D("SIGKILL")},y);S.unref&&S.unref()},o=(D,{forceKillAfterTimeout:v},E)=>a(D)&&v!==!1&&E,a=D=>D===r.constants.signals.SIGTERM||typeof D=="string"&&D.toUpperCase()==="SIGTERM",c=({forceKillAfterTimeout:D=!0})=>{if(D===!0)return i;if(!Number.isFinite(D)||D<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${D}\` (${typeof D})`);return D},p=(D,v)=>{D.kill()&&(v.isCanceled=!0)},l=(D,v,E)=>{D.kill(v),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:v}))},f=(D,{timeout:v,killSignal:E="SIGTERM"},h)=>{if(v===0||v===void 0)return h;let y,S=new Promise((A,C)=>{y=setTimeout(()=>{l(D,E,C)},v)}),g=h.finally(()=>{clearTimeout(y)});return Promise.race([S,g])},d=({timeout:D})=>{if(D!==void 0&&(!Number.isFinite(D)||D<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${D}\` (${typeof D})`)},m=async(D,{cleanup:v,detached:E},h)=>{if(!v||E)return h;let y=n(()=>{D.kill()});return h.finally(()=>{y()})};e.exports={spawnedKill:s,spawnedCancel:p,setupTimeout:f,validateTimeout:d,setExitHandler:m}}),Qs=R((t,e)=>{"use strict";B();var r=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";r.writable=n=>r(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",r.readable=n=>r(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",r.duplex=n=>r.writable(n)&&r.readable(n),r.transform=n=>r.duplex(n)&&typeof n._transform=="function",e.exports=r}),Xs=R((t,e)=>{"use strict";B();var{PassThrough:r}=W("stream");e.exports=n=>{n={...n};let{array:i}=n,{encoding:s}=n,u=s==="buffer",o=!1;i?o=!(s||u):s=s||"utf8",u&&(s=null);let a=new r({objectMode:o});s&&a.setEncoding(s);let c=0,p=[];return a.on("data",l=>{p.push(l),o?c=p.length:c+=l.length}),a.getBufferedValue=()=>i?p:u?Buffer.concat(p,c):p.join(""),a.getBufferedLength=()=>c,a}}),Zs=R((t,e)=>{"use strict";B();var{constants:r}=W("buffer"),n=W("stream"),{promisify:i}=W("util"),s=Xs(),u=i(n.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(c,p){if(!c)throw new Error("Expected a stream");p={maxBuffer:1/0,...p};let{maxBuffer:l}=p,f=s(p);return await new Promise((d,m)=>{let D=v=>{v&&f.getBufferedLength()<=r.MAX_LENGTH&&(v.bufferedData=f.getBufferedValue()),m(v)};(async()=>{try{await u(c,f),d()}catch(v){D(v)}})(),f.on("data",()=>{f.getBufferedLength()>l&&D(new o)})}),f.getBufferedValue()}e.exports=a,e.exports.buffer=(c,p)=>a(c,{...p,encoding:"buffer"}),e.exports.array=(c,p)=>a(c,{...p,array:!0}),e.exports.MaxBufferError=o}),zs=R((t,e)=>{"use strict";B();var{PassThrough:r}=W("stream");e.exports=function(){var n=[],i=new r({objectMode:!0});return i.setMaxListeners(0),i.add=s,i.isEmpty=u,i.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(s),i;function s(a){return Array.isArray(a)?(a.forEach(s),this):(n.push(a),a.once("end",o.bind(null,a)),a.once("error",i.emit.bind(i,"error")),a.pipe(i,{end:!1}),this)}function u(){return n.length==0}function o(a){n=n.filter(function(c){return c!==a}),!n.length&&i.readable&&i.end()}}}),tc=R((t,e)=>{"use strict";B();var r=Qs(),n=Zs(),i=zs(),s=(l,f)=>{f===void 0||l.stdin===void 0||(r(f)?f.pipe(l.stdin):l.stdin.end(f))},u=(l,{all:f})=>{if(!f||!l.stdout&&!l.stderr)return;let d=i();return l.stdout&&d.add(l.stdout),l.stderr&&d.add(l.stderr),d},o=async(l,f)=>{if(l){l.destroy();try{return await f}catch(d){return d.bufferedData}}},a=(l,{encoding:f,buffer:d,maxBuffer:m})=>{if(!(!l||!d))return f?n(l,{encoding:f,maxBuffer:m}):n.buffer(l,{maxBuffer:m})},c=async({stdout:l,stderr:f,all:d},{encoding:m,buffer:D,maxBuffer:v},E)=>{let h=a(l,{encoding:m,buffer:D,maxBuffer:v}),y=a(f,{encoding:m,buffer:D,maxBuffer:v}),S=a(d,{encoding:m,buffer:D,maxBuffer:v*2});try{return await Promise.all([E,h,y,S])}catch(g){return Promise.all([{error:g,signal:g.signal,timedOut:g.timedOut},o(l,h),o(f,y),o(d,S)])}},p=({input:l})=>{if(r(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};e.exports={handleInput:s,makeAllStream:u,getSpawnedResult:c,validateInputSync:p}}),ec=R((t,e)=>{"use strict";B();var r=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(r,u)]),i=(u,o)=>{for(let[a,c]of n){let p=typeof o=="function"?(...l)=>Reflect.apply(c.value,o(),l):c.value.bind(o);Reflect.defineProperty(u,a,{...c,value:p})}return u},s=u=>new Promise((o,a)=>{u.on("exit",(c,p)=>{o({exitCode:c,signal:p})}),u.on("error",c=>{a(c)}),u.stdin&&u.stdin.on("error",c=>{a(c)})});e.exports={mergePromise:i,getSpawnedPromise:s}}),rc=R((t,e)=>{"use strict";B();var r=(p,l=[])=>Array.isArray(l)?[p,...l]:[p],n=/^[\w.-]+$/,i=/"/g,s=p=>typeof p!="string"||n.test(p)?p:`"${p.replace(i,'\\"')}"`,u=(p,l)=>r(p,l).join(" "),o=(p,l)=>r(p,l).map(f=>s(f)).join(" "),a=/ +/g,c=p=>{let l=[];for(let f of p.trim().split(a)){let d=l[l.length-1];d&&d.endsWith("\\")?l[l.length-1]=`${d.slice(0,-1)} ${f}`:l.push(f)}return l};e.exports={joinCommand:u,getEscapedCommand:o,parseCommand:c}}),nc=R((t,e)=>{"use strict";B();var r=W("path"),n=W("child_process"),i=Ns(),s=js(),u=Ms(),o=Hs(),a=qs(),c=Ks(),{spawnedKill:p,spawnedCancel:l,setupTimeout:f,validateTimeout:d,setExitHandler:m}=Ys(),{handleInput:D,getSpawnedResult:v,makeAllStream:E,validateInputSync:h}=tc(),{mergePromise:y,getSpawnedPromise:S}=ec(),{joinCommand:g,parseCommand:A,getEscapedCommand:C}=rc(),_=1e3*1e3*100,w=({env:I,extendEnv:F,preferLocal:b,localDir:M,execPath:T})=>{let $=F?{...process.env,...I}:I;return b?u.env({env:$,cwd:M,execPath:T}):$},x=(I,F,b={})=>{let M=i._parse(I,F,b);return I=M.command,F=M.args,b=M.options,b={maxBuffer:_,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:b.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...b},b.env=w(b),b.stdio=c(b),process.platform==="win32"&&r.basename(I,".exe")==="cmd"&&F.unshift("/q"),{file:I,args:F,options:b,parsed:M}},k=(I,F,b)=>typeof F!="string"&&!Buffer.isBuffer(F)?b===void 0?void 0:"":I.stripFinalNewline?s(F):F,P=(I,F,b)=>{let M=x(I,F,b),T=g(I,F),$=C(I,F);d(M.options);let j;try{j=n.spawn(M.file,M.args,M.options)}catch(ot){let ut=new n.ChildProcess,O=Promise.reject(a({error:ot,stdout:"",stderr:"",all:"",command:T,escapedCommand:$,parsed:M,timedOut:!1,isCanceled:!1,killed:!1}));return y(ut,O)}let q=S(j),J=f(j,M.options,q),Z=m(j,M.options,J),N={isCanceled:!1};j.kill=p.bind(null,j.kill.bind(j)),j.cancel=l.bind(null,j,N);let nt=o(async()=>{let[{error:ot,exitCode:ut,signal:O,timedOut:L},G,K,it]=await v(j,M.options,Z),et=k(M.options,G),Q=k(M.options,K),X=k(M.options,it);if(ot||ut!==0||O!==null){let rt=a({error:ot,exitCode:ut,signal:O,stdout:et,stderr:Q,all:X,command:T,escapedCommand:$,parsed:M,timedOut:L,isCanceled:N.isCanceled,killed:j.killed});if(!M.options.reject)return rt;throw rt}return{command:T,escapedCommand:$,exitCode:0,stdout:et,stderr:Q,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return D(j,M.options.input),j.all=E(j,M.options),y(j,nt)};e.exports=P,e.exports.sync=(I,F,b)=>{let M=x(I,F,b),T=g(I,F),$=C(I,F);h(M.options);let j;try{j=n.spawnSync(M.file,M.args,M.options)}catch(Z){throw a({error:Z,stdout:"",stderr:"",all:"",command:T,escapedCommand:$,parsed:M,timedOut:!1,isCanceled:!1,killed:!1})}let q=k(M.options,j.stdout,j.error),J=k(M.options,j.stderr,j.error);if(j.error||j.status!==0||j.signal!==null){let Z=a({stdout:q,stderr:J,error:j.error,signal:j.signal,exitCode:j.status,command:T,escapedCommand:$,parsed:M,timedOut:j.error&&j.error.code==="ETIMEDOUT",isCanceled:!1,killed:j.signal!==null});if(!M.options.reject)return Z;throw Z}return{command:T,escapedCommand:$,exitCode:0,stdout:q,stderr:J,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},e.exports.command=(I,F)=>{let[b,...M]=A(I);return P(b,M,F)},e.exports.commandSync=(I,F)=>{let[b,...M]=A(I);return P.sync(b,M,F)},e.exports.node=(I,F,b={})=>{F&&!Array.isArray(F)&&typeof F=="object"&&(b=F,F=[]);let M=c.node(b),T=process.execArgv.filter(q=>!q.startsWith("--inspect")),{nodePath:$=process.execPath,nodeOptions:j=T}=b;return P($,[...j,I,...Array.isArray(F)?F:[]],{...b,stdin:void 0,stdout:void 0,stderr:void 0,stdio:M,shell:!1})}});B();var ic=It(nc());async function er(t){let e={cwd:Sn.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"}};try{let r=await(0,ic.default)(t,["--version"],e);return{available:!0,version:r.stdout.trim()}}catch{return{available:!1}}}async function rr(){let[t,e,r]=await Promise.all([er("yarnpkg"),er("npm"),er("pnpm")]);return{yarn:t,pnpm:e,npm:r}}B();var kn=st(require("chalk"));var bn=st(require("execa")),wn=st(require("ora")),Fn=require("semver");var oc={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*"}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest",executable:"pnpm dlx",semver:">=7"}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2"},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}]};async function ac(t){let{to:e,logger:r,options:n}=t,i=oc[e.name].find(s=>(0,Fn.satisfies)(e.version,s.semver));if(!i)throw new ct("Unsupported package manager version.");if(r.subStep(`running "${i.command} ${i.installArgs}"`),!(n!=null&&n.dry)){let s;n!=null&&n.interactive&&(s=(0,wn.default)({text:"Installing dependencies...",spinner:{frames:r.installerFrames()}}).start());try{await(0,bn.default)(i.command,i.installArgs,{cwd:t.project.paths.root}),r.subStep("dependencies installed")}catch(u){throw r.subStepFailure("failed to install dependencies"),u}finally{s&&s.stop()}}}var _n=ac;async function uc({project:t,to:e,logger:r,options:n}){if(r.header(`Converting project from ${t.packageManager} to ${e.name}.`),t.packageManager==e.name)throw new ct("You are already using this package manager");await Gt[t.packageManager].remove({project:t,to:e,logger:r,options:n}),await Gt[e.name].create({project:t,to:e,logger:r,options:n}),r.mainStep("Installing dependencies"),n!=null&&n.skipInstall?r.subStep(kn.default.yellow("Skipping install")):(await Gt[e.name].convertLock({project:t,logger:r,options:n}),await _n({project:t,to:e,logger:r,options:n})),r.mainStep(`Cleaning up ${t.packageManager} workspaces`),await Gt[t.packageManager].clean({project:t,logger:r})}var xn=uc;function sc({packageManager:t,currentWorkspaceManger:e,availablePackageManagers:r}){return e===t?"already in use":r[t].available?!1:"not installed"}async function Fe(t,e,r){let n=new Kt(r);n.hero(),n.header("Welcome, let's convert your project."),n.blankLine();let i=await nr.default.prompt({type:"input",name:"directoryInput",message:"Where is the root of your repo?",when:!t,default:".",validate:f=>{let{exists:d,absolute:m}=Tt({directory:f});return d?!0:`Directory ${ir.default.dim(`(${m})`)} does not exist`},filter:f=>f.trim()}),{directoryInput:s=t}=i,{exists:u,absolute:o}=Tt({directory:s});if(!u)return console.error(`Directory ${ir.default.dim(`(${o})`)} does not exist`),process.exit(1);let[a,c]=await Promise.all([ie({root:o}),rr()]),p=await nr.default.prompt({name:"packageManagerInput",type:"list",message:`Convert from ${a.packageManager} workspaces to:`,when:!e||!Object.keys(c).includes(e),choices:["npm","pnpm","yarn"].map(f=>({name:`${f} workspaces`,value:f,disabled:sc({packageManager:f,currentWorkspaceManger:a.packageManager,availablePackageManagers:c})}))}),{packageManagerInput:l=e}=p;await xn({project:a,to:{name:l,version:c[l].version},logger:n,options:r})}var Bn={name:"@turbo/workspaces",version:"0.0.1",description:"Tools for working with package manager workspaces",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-workspaces"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",main:"dist/index.js",scripts:{build:"tsup",dev:"tsup --watch",test:"jest",lint:"eslint src/**/*.ts","check-types":"tsc --noEmit"},dependencies:{chalk:"2.4.2",commander:"^10.0.0",execa:"5.1.1","fast-glob":"^3.2.12","fs-extra":"^10.1.0","gradient-string":"^2.0.0",inquirer:"^8.0.0","js-yaml":"^4.1.0",ora:"4.1.1",rimraf:"^3.0.2",semver:"^7.3.5","update-check":"^1.5.4"},devDependencies:{"@types/chalk-animation":"^1.6.0","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^7.3.1","@types/jest":"^27.4.0","@types/js-yaml":"^4.0.5","@types/node":"^16.11.12","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9",eslint:"^7.23.0",jest:"^27.4.3",semver:"^7.3.5","strip-ansi":"^6.0.1","ts-jest":"^27.1.1",tsconfig:"workspace:*",tsup:"^5.10.3","turbo-test-utils":"workspace:*","turbo-utils":"workspace:*",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var _e=new On.Command;_e.name("@turbo/workspaces").description("Tools for working with package manager workspaces").version(Bn.version,"-v, --version","output the current version");_e.command("convert").description("Convert project between workspace managers").argument("[path]","Project root").argument("[package-manager]","Package manager to convert to").option("--skip-install","Do not run a package manager install after conversion",!1).option("--dry","Dry run (no changes are made to files)",!1).option("--force","Bypass Git safety checks and forcibly run conversion",!1).action(Fe);_e.command("summary").description("Display a summary of the specified project").argument("[path]","Project root").action(de);_e.parseAsync().catch(t=>{console.log(),t instanceof ct?console.log(or.default.red(t.message)):(console.log(or.default.red("Unexpected error. Please report it as a bug:")),console.log(t.message)),console.log(),process.exit(1)});
48
+ `);return S?(a.originalMessage=a.message,a.message=A):a=new Error(A),a.shortMessage=g,a.command=l,a.escapedCommand=f,a.exitCode=p,a.signal=c,a.signalDescription=E,a.stdout=s,a.stderr=u,o!==void 0&&(a.all=o),"bufferedData"in a&&delete a.bufferedData,a.failed=!0,a.timedOut=Boolean(d),a.isCanceled=m,a.killed=D&&!d,a};e.exports=i}),Vs=R((t,e)=>{"use strict";B();var r=["stdin","stdout","stderr"],n=s=>r.some(u=>s[u]!==void 0),i=s=>{if(!s)return;let{stdio:u}=s;if(u===void 0)return r.map(a=>s[a]);if(n(s))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(a=>`\`${a}\``).join(", ")}`);if(typeof u=="string")return u;if(!Array.isArray(u))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``);let o=Math.max(u.length,r.length);return Array.from({length:o},(a,c)=>u[c])};e.exports=i,e.exports.node=s=>{let u=i(s);return u==="ipc"?"ipc":u===void 0||typeof u=="string"?[u,u,u,"ipc"]:u.includes("ipc")?u:[...u,"ipc"]}}),Ys=R((t,e)=>{B(),e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),Qs=R((t,e)=>{B();var r=global.process,n=function(h){return h&&typeof h=="object"&&typeof h.removeListener=="function"&&typeof h.emit=="function"&&typeof h.reallyExit=="function"&&typeof h.listeners=="function"&&typeof h.kill=="function"&&typeof h.pid=="number"&&typeof h.on=="function"};n(r)?(i=W("assert"),s=Ys(),u=/^win/i.test(r.platform),o=W("events"),typeof o!="function"&&(o=o.EventEmitter),r.__signal_exit_emitter__?a=r.__signal_exit_emitter__:(a=r.__signal_exit_emitter__=new o,a.count=0,a.emitted={}),a.infinite||(a.setMaxListeners(1/0),a.infinite=!0),e.exports=function(h,y){if(!n(global.process))return function(){};i.equal(typeof h,"function","a callback must be provided for exit handler"),f===!1&&d();var S="exit";y&&y.alwaysLast&&(S="afterexit");var g=function(){a.removeListener(S,h),a.listeners("exit").length===0&&a.listeners("afterexit").length===0&&c()};return a.on(S,h),g},c=function(){!f||!n(global.process)||(f=!1,s.forEach(function(h){try{r.removeListener(h,l[h])}catch{}}),r.emit=v,r.reallyExit=m,a.count-=1)},e.exports.unload=c,p=function(h,y,S){a.emitted[h]||(a.emitted[h]=!0,a.emit(h,y,S))},l={},s.forEach(function(h){l[h]=function(){if(n(global.process)){var y=r.listeners(h);y.length===a.count&&(c(),p("exit",null,h),p("afterexit",null,h),u&&h==="SIGHUP"&&(h="SIGINT"),r.kill(r.pid,h))}}}),e.exports.signals=function(){return s},f=!1,d=function(){f||!n(global.process)||(f=!0,a.count+=1,s=s.filter(function(h){try{return r.on(h,l[h]),!0}catch{return!1}}),r.emit=E,r.reallyExit=D)},e.exports.load=d,m=r.reallyExit,D=function(h){!n(global.process)||(r.exitCode=h||0,p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),m.call(r,r.exitCode))},v=r.emit,E=function(h,y){if(h==="exit"&&n(global.process)){y!==void 0&&(r.exitCode=y);var S=v.apply(this,arguments);return p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),S}else return v.apply(this,arguments)}):e.exports=function(){return function(){}};var i,s,u,o,a,c,p,l,f,d,m,D,v,E}),Xs=R((t,e)=>{"use strict";B();var r=W("os"),n=Qs(),i=1e3*5,s=(D,v="SIGTERM",E={})=>{let h=D(v);return u(D,v,E,h),h},u=(D,v,E,h)=>{if(!o(v,E,h))return;let y=c(E),S=setTimeout(()=>{D("SIGKILL")},y);S.unref&&S.unref()},o=(D,{forceKillAfterTimeout:v},E)=>a(D)&&v!==!1&&E,a=D=>D===r.constants.signals.SIGTERM||typeof D=="string"&&D.toUpperCase()==="SIGTERM",c=({forceKillAfterTimeout:D=!0})=>{if(D===!0)return i;if(!Number.isFinite(D)||D<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${D}\` (${typeof D})`);return D},p=(D,v)=>{D.kill()&&(v.isCanceled=!0)},l=(D,v,E)=>{D.kill(v),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:v}))},f=(D,{timeout:v,killSignal:E="SIGTERM"},h)=>{if(v===0||v===void 0)return h;let y,S=new Promise((A,C)=>{y=setTimeout(()=>{l(D,E,C)},v)}),g=h.finally(()=>{clearTimeout(y)});return Promise.race([S,g])},d=({timeout:D})=>{if(D!==void 0&&(!Number.isFinite(D)||D<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${D}\` (${typeof D})`)},m=async(D,{cleanup:v,detached:E},h)=>{if(!v||E)return h;let y=n(()=>{D.kill()});return h.finally(()=>{y()})};e.exports={spawnedKill:s,spawnedCancel:p,setupTimeout:f,validateTimeout:d,setExitHandler:m}}),Zs=R((t,e)=>{"use strict";B();var r=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";r.writable=n=>r(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",r.readable=n=>r(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",r.duplex=n=>r.writable(n)&&r.readable(n),r.transform=n=>r.duplex(n)&&typeof n._transform=="function",e.exports=r}),zs=R((t,e)=>{"use strict";B();var{PassThrough:r}=W("stream");e.exports=n=>{n={...n};let{array:i}=n,{encoding:s}=n,u=s==="buffer",o=!1;i?o=!(s||u):s=s||"utf8",u&&(s=null);let a=new r({objectMode:o});s&&a.setEncoding(s);let c=0,p=[];return a.on("data",l=>{p.push(l),o?c=p.length:c+=l.length}),a.getBufferedValue=()=>i?p:u?Buffer.concat(p,c):p.join(""),a.getBufferedLength=()=>c,a}}),tc=R((t,e)=>{"use strict";B();var{constants:r}=W("buffer"),n=W("stream"),{promisify:i}=W("util"),s=zs(),u=i(n.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(c,p){if(!c)throw new Error("Expected a stream");p={maxBuffer:1/0,...p};let{maxBuffer:l}=p,f=s(p);return await new Promise((d,m)=>{let D=v=>{v&&f.getBufferedLength()<=r.MAX_LENGTH&&(v.bufferedData=f.getBufferedValue()),m(v)};(async()=>{try{await u(c,f),d()}catch(v){D(v)}})(),f.on("data",()=>{f.getBufferedLength()>l&&D(new o)})}),f.getBufferedValue()}e.exports=a,e.exports.buffer=(c,p)=>a(c,{...p,encoding:"buffer"}),e.exports.array=(c,p)=>a(c,{...p,array:!0}),e.exports.MaxBufferError=o}),ec=R((t,e)=>{"use strict";B();var{PassThrough:r}=W("stream");e.exports=function(){var n=[],i=new r({objectMode:!0});return i.setMaxListeners(0),i.add=s,i.isEmpty=u,i.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(s),i;function s(a){return Array.isArray(a)?(a.forEach(s),this):(n.push(a),a.once("end",o.bind(null,a)),a.once("error",i.emit.bind(i,"error")),a.pipe(i,{end:!1}),this)}function u(){return n.length==0}function o(a){n=n.filter(function(c){return c!==a}),!n.length&&i.readable&&i.end()}}}),rc=R((t,e)=>{"use strict";B();var r=Zs(),n=tc(),i=ec(),s=(l,f)=>{f===void 0||l.stdin===void 0||(r(f)?f.pipe(l.stdin):l.stdin.end(f))},u=(l,{all:f})=>{if(!f||!l.stdout&&!l.stderr)return;let d=i();return l.stdout&&d.add(l.stdout),l.stderr&&d.add(l.stderr),d},o=async(l,f)=>{if(l){l.destroy();try{return await f}catch(d){return d.bufferedData}}},a=(l,{encoding:f,buffer:d,maxBuffer:m})=>{if(!(!l||!d))return f?n(l,{encoding:f,maxBuffer:m}):n.buffer(l,{maxBuffer:m})},c=async({stdout:l,stderr:f,all:d},{encoding:m,buffer:D,maxBuffer:v},E)=>{let h=a(l,{encoding:m,buffer:D,maxBuffer:v}),y=a(f,{encoding:m,buffer:D,maxBuffer:v}),S=a(d,{encoding:m,buffer:D,maxBuffer:v*2});try{return await Promise.all([E,h,y,S])}catch(g){return Promise.all([{error:g,signal:g.signal,timedOut:g.timedOut},o(l,h),o(f,y),o(d,S)])}},p=({input:l})=>{if(r(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};e.exports={handleInput:s,makeAllStream:u,getSpawnedResult:c,validateInputSync:p}}),nc=R((t,e)=>{"use strict";B();var r=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(r,u)]),i=(u,o)=>{for(let[a,c]of n){let p=typeof o=="function"?(...l)=>Reflect.apply(c.value,o(),l):c.value.bind(o);Reflect.defineProperty(u,a,{...c,value:p})}return u},s=u=>new Promise((o,a)=>{u.on("exit",(c,p)=>{o({exitCode:c,signal:p})}),u.on("error",c=>{a(c)}),u.stdin&&u.stdin.on("error",c=>{a(c)})});e.exports={mergePromise:i,getSpawnedPromise:s}}),ic=R((t,e)=>{"use strict";B();var r=(p,l=[])=>Array.isArray(l)?[p,...l]:[p],n=/^[\w.-]+$/,i=/"/g,s=p=>typeof p!="string"||n.test(p)?p:`"${p.replace(i,'\\"')}"`,u=(p,l)=>r(p,l).join(" "),o=(p,l)=>r(p,l).map(f=>s(f)).join(" "),a=/ +/g,c=p=>{let l=[];for(let f of p.trim().split(a)){let d=l[l.length-1];d&&d.endsWith("\\")?l[l.length-1]=`${d.slice(0,-1)} ${f}`:l.push(f)}return l};e.exports={joinCommand:u,getEscapedCommand:o,parseCommand:c}}),oc=R((t,e)=>{"use strict";B();var r=W("path"),n=W("child_process"),i=Ns(),s=$s(),u=Hs(),o=Ws(),a=Js(),c=Vs(),{spawnedKill:p,spawnedCancel:l,setupTimeout:f,validateTimeout:d,setExitHandler:m}=Xs(),{handleInput:D,getSpawnedResult:v,makeAllStream:E,validateInputSync:h}=rc(),{mergePromise:y,getSpawnedPromise:S}=nc(),{joinCommand:g,parseCommand:A,getEscapedCommand:C}=ic(),_=1e3*1e3*100,w=({env:I,extendEnv:F,preferLocal:b,localDir:N,execPath:T})=>{let $=F?{...process.env,...I}:I;return b?u.env({env:$,cwd:N,execPath:T}):$},x=(I,F,b={})=>{let N=i._parse(I,F,b);return I=N.command,F=N.args,b=N.options,b={maxBuffer:_,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:b.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...b},b.env=w(b),b.stdio=c(b),process.platform==="win32"&&r.basename(I,".exe")==="cmd"&&F.unshift("/q"),{file:I,args:F,options:b,parsed:N}},k=(I,F,b)=>typeof F!="string"&&!Buffer.isBuffer(F)?b===void 0?void 0:"":I.stripFinalNewline?s(F):F,P=(I,F,b)=>{let N=x(I,F,b),T=g(I,F),$=C(I,F);d(N.options);let j;try{j=n.spawn(N.file,N.args,N.options)}catch(ot){let ut=new n.ChildProcess,O=Promise.reject(a({error:ot,stdout:"",stderr:"",all:"",command:T,escapedCommand:$,parsed:N,timedOut:!1,isCanceled:!1,killed:!1}));return y(ut,O)}let q=S(j),V=f(j,N.options,q),Z=m(j,N.options,V),M={isCanceled:!1};j.kill=p.bind(null,j.kill.bind(j)),j.cancel=l.bind(null,j,M);let nt=o(async()=>{let[{error:ot,exitCode:ut,signal:O,timedOut:L},G,K,it]=await v(j,N.options,Z),et=k(N.options,G),Q=k(N.options,K),X=k(N.options,it);if(ot||ut!==0||O!==null){let rt=a({error:ot,exitCode:ut,signal:O,stdout:et,stderr:Q,all:X,command:T,escapedCommand:$,parsed:N,timedOut:L,isCanceled:M.isCanceled,killed:j.killed});if(!N.options.reject)return rt;throw rt}return{command:T,escapedCommand:$,exitCode:0,stdout:et,stderr:Q,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return D(j,N.options.input),j.all=E(j,N.options),y(j,nt)};e.exports=P,e.exports.sync=(I,F,b)=>{let N=x(I,F,b),T=g(I,F),$=C(I,F);h(N.options);let j;try{j=n.spawnSync(N.file,N.args,N.options)}catch(Z){throw a({error:Z,stdout:"",stderr:"",all:"",command:T,escapedCommand:$,parsed:N,timedOut:!1,isCanceled:!1,killed:!1})}let q=k(N.options,j.stdout,j.error),V=k(N.options,j.stderr,j.error);if(j.error||j.status!==0||j.signal!==null){let Z=a({stdout:q,stderr:V,error:j.error,signal:j.signal,exitCode:j.status,command:T,escapedCommand:$,parsed:N,timedOut:j.error&&j.error.code==="ETIMEDOUT",isCanceled:!1,killed:j.signal!==null});if(!N.options.reject)return Z;throw Z}return{command:T,escapedCommand:$,exitCode:0,stdout:q,stderr:V,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},e.exports.command=(I,F)=>{let[b,...N]=A(I);return P(b,N,F)},e.exports.commandSync=(I,F)=>{let[b,...N]=A(I);return P.sync(b,N,F)},e.exports.node=(I,F,b={})=>{F&&!Array.isArray(F)&&typeof F=="object"&&(b=F,F=[]);let N=c.node(b),T=process.execArgv.filter(q=>!q.startsWith("--inspect")),{nodePath:$=process.execPath,nodeOptions:j=T}=b;return P($,[...j,I,...Array.isArray(F)?F:[]],{...b,stdin:void 0,stdout:void 0,stderr:void 0,stdio:N,shell:!1})}});B();var ac=Nt(oc());async function rr(t){let e={cwd:wn.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"}};try{let r=await(0,ac.default)(t,["--version"],e);return{available:!0,version:r.stdout.trim()}}catch{return{available:!1}}}async function nr(){let[t,e,r]=await Promise.all([rr("yarnpkg"),rr("npm"),rr("pnpm")]);return{yarn:t,pnpm:e,npm:r}}B();var Bn=st(require("chalk"));var _n=st(require("execa")),kn=st(require("ora")),xn=require("semver");var Fn={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*",default:!0}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest",executable:"pnpm dlx",semver:">=7",default:!0}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2",default:!0},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}]};function uc(t){let{version:e,name:r}=t;return e?Fn[r].find(n=>(0,xn.satisfies)(e,n.semver)):Fn[r].find(n=>n.default)}async function ir(t){let{to:e,logger:r,options:n}=t,i=r!=null?r:new Tt(n),s=uc(e);if(!s)throw new ct("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(i.subStep(`running "${s.command} ${s.installArgs}"`),!(n!=null&&n.dry)){let u;i!=null&&i.interactive&&(u=(0,kn.default)({text:"installing dependencies...",spinner:{frames:i.installerFrames()}}).start());try{await(0,_n.default)(s.command,s.installArgs,{cwd:t.project.paths.root}),u&&u.stop(),i.subStep("dependencies installed")}catch(o){throw i.subStepFailure("failed to install dependencies"),o}}}async function On({project:t,to:e,logger:r,options:n}){if(r.header(`Converting project from ${t.packageManager} to ${e.name}.`),t.packageManager==e.name)throw new ct("You are already using this package manager",{type:"package_manager-already_in_use"});await Ut[t.packageManager].remove({project:t,to:e,logger:r,options:n}),await Ut[e.name].create({project:t,to:e,logger:r,options:n}),r.mainStep("Installing dependencies"),n!=null&&n.skipInstall?r.subStep(Bn.default.yellow("Skipping install")):(await Ut[e.name].convertLock({project:t,logger:r,options:n}),await ir({project:t,to:e,logger:r,options:n})),r.mainStep(`Cleaning up ${t.packageManager} workspaces`),await Ut[t.packageManager].clean({project:t,logger:r})}function sc({packageManager:t,currentWorkspaceManger:e,availablePackageManagers:r}){return e===t?"already in use":r[t].available?!1:"not installed"}async function ke(t,e,r){let n=new Tt(r);n.hero(),n.header("Welcome, let's convert your project."),n.blankLine();let i=await or.default.prompt({type:"input",name:"directoryInput",message:"Where is the root of your repo?",when:!t,default:".",validate:f=>{let{exists:d,absolute:m}=Lt({directory:f});return d?!0:`Directory ${ar.default.dim(`(${m})`)} does not exist`},filter:f=>f.trim()}),{directoryInput:s=t}=i,{exists:u,absolute:o}=Lt({directory:s});if(!u)return console.error(`Directory ${ar.default.dim(`(${o})`)} does not exist`),process.exit(1);let[a,c]=await Promise.all([ae({root:o}),nr()]),p=await or.default.prompt({name:"packageManagerInput",type:"list",message:`Convert from ${a.packageManager} workspaces to:`,when:!e||!Object.keys(c).includes(e),choices:["npm","pnpm","yarn"].map(f=>({name:`${f} workspaces`,value:f,disabled:sc({packageManager:f,currentWorkspaceManger:a.packageManager,availablePackageManagers:c})}))}),{packageManagerInput:l=e}=p;await On({project:a,to:{name:l,version:c[l].version},logger:n,options:r})}var Rn={name:"@turbo/workspaces",version:"0.0.3",description:"Tools for working with package managers",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-workspaces"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",main:"dist/index.js",types:"dist/index.d.ts",scripts:{build:"tsup",dev:"tsup --watch",test:"jest",lint:"eslint src/**/*.ts","check-types":"tsc --noEmit"},dependencies:{chalk:"2.4.2",commander:"^10.0.0",execa:"5.1.1","fast-glob":"^3.2.12","fs-extra":"^10.1.0","gradient-string":"^2.0.0",inquirer:"^8.0.0","js-yaml":"^4.1.0",ora:"4.1.1",rimraf:"^3.0.2",semver:"^7.3.5","update-check":"^1.5.4"},devDependencies:{"@types/chalk-animation":"^1.6.0","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^7.3.1","@types/jest":"^27.4.0","@types/js-yaml":"^4.0.5","@types/node":"^16.11.12","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9",eslint:"^7.23.0",jest:"^27.4.3",semver:"^7.3.5","strip-ansi":"^6.0.1","ts-jest":"^27.1.1",tsconfig:"workspace:*",tsup:"^5.10.3","turbo-test-utils":"workspace:*","turbo-utils":"workspace:*",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var xe=new Pn.Command;xe.name("@turbo/workspaces").description("Tools for working with package manager workspaces").version(Rn.version,"-v, --version","output the current version");xe.command("convert").description("Convert project between workspace managers").argument("[path]","Project root").argument("[package-manager]","Package manager to convert to").option("--skip-install","Do not run a package manager install after conversion",!1).option("--dry","Dry run (no changes are made to files)",!1).option("--force","Bypass Git safety checks and forcibly run conversion",!1).action(ke);xe.command("summary").description("Display a summary of the specified project").argument("[path]","Project root").action(me);xe.parseAsync().catch(t=>{console.log(),t instanceof ct?console.log(ur.default.red(t.message)):(console.log(ur.default.red("Unexpected error. Please report it as a bug:")),console.log(t.message)),console.log(),process.exit(1)});
49
49
  /*!
50
50
  * fill-range <https://github.com/jonschlinkert/fill-range>
51
51
  *