@umijs/utils 4.0.0-rc.3 → 4.0.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/compiled/execa/index.js +1 -1
  2. package/compiled/fs-extra/index.d.ts +347 -116
  3. package/compiled/fs-extra/index.js +1 -1
  4. package/compiled/pkg-up/index.js +1 -1
  5. package/compiled/yargs-parser/index.js +1 -1
  6. package/dist/index.js +5 -1
  7. package/dist/installDeps.js +5 -1
  8. package/dist/npmClient.js +2 -2
  9. package/package.json +4 -4
  10. package/compiled/globby/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  11. package/compiled/globby/@nodelib/fs.scandir/out/index.d.ts +0 -12
  12. package/compiled/globby/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  13. package/compiled/globby/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  14. package/compiled/globby/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  15. package/compiled/globby/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  16. package/compiled/globby/@nodelib/fs.stat/out/index.d.ts +0 -12
  17. package/compiled/globby/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  18. package/compiled/globby/@nodelib/fs.stat/out/settings.d.ts +0 -16
  19. package/compiled/globby/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  20. package/compiled/globby/@nodelib/fs.walk/out/index.d.ts +0 -14
  21. package/compiled/globby/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  22. package/compiled/globby/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  23. package/compiled/globby/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  24. package/compiled/globby/@nodelib/fs.walk/out/settings.d.ts +0 -30
  25. package/compiled/globby/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  26. package/compiled/globby/LICENSE +0 -9
  27. package/compiled/globby/fast-glob/out/index.d.ts +0 -27
  28. package/compiled/globby/fast-glob/out/managers/tasks.d.ts +0 -22
  29. package/compiled/globby/fast-glob/out/settings.d.ts +0 -164
  30. package/compiled/globby/fast-glob/out/types/index.d.ts +0 -31
  31. package/compiled/globby/index.d.ts +0 -206
  32. package/compiled/globby/index.js +0 -37
  33. package/compiled/globby/package.json +0 -1
@@ -1 +1 @@
1
- (function(){var e={317:function(e,t,r){"use strict";const n=r(550);const i=r(622);const o=r(581).mkdirsSync;const c=r(263).utimesMillisSync;const s=r(881);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:n,destStat:i}=s.checkPathsSync(e,t,"copy",r);s.checkParentPathsSync(e,n,t,"copy");return handleFilterAndCopy(i,e,t,r)}function handleFilterAndCopy(e,t,r,c){if(c.filter&&!c.filter(t,r))return;const s=i.dirname(r);if(!n.existsSync(s))o(s);return getStats(e,t,r,c)}function startCopy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;return getStats(e,t,r,n)}function getStats(e,t,r,i){const o=i.dereference?n.statSync:n.lstatSync;const c=o(t);if(c.isDirectory())return onDir(c,e,t,r,i);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,r,i);else if(c.isSymbolicLink())return onLink(e,t,r,i);else if(c.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);else if(c.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function onFile(e,t,r,n,i){if(!t)return copyFile(e,r,n,i);return mayCopyFile(e,r,n,i)}function mayCopyFile(e,t,r,i){if(i.overwrite){n.unlinkSync(r);return copyFile(e,t,r,i)}else if(i.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,i){n.copyFileSync(t,r);if(i.preserveTimestamps)handleTimestamps(e.mode,t,r);return setDestMode(r,e.mode)}function handleTimestamps(e,t,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(t,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return n.chmodSync(e,t)}function setDestTimestamps(e,t){const r=n.statSync(e);return c(t,r.atime,r.mtime)}function onDir(e,t,r,n,i){if(!t)return mkDirAndCopy(e.mode,r,n,i);return copyDir(r,n,i)}function mkDirAndCopy(e,t,r,i){n.mkdirSync(r);copyDir(t,r,i);return setDestMode(r,e)}function copyDir(e,t,r){n.readdirSync(e).forEach((n=>copyDirItem(n,e,t,r)))}function copyDirItem(e,t,r,n){const o=i.join(t,e);const c=i.join(r,e);const{destStat:a}=s.checkPathsSync(o,c,"copy",n);return startCopy(a,o,c,n)}function onLink(e,t,r,o){let c=n.readlinkSync(t);if(o.dereference){c=i.resolve(process.cwd(),c)}if(!e){return n.symlinkSync(c,r)}else{let e;try{e=n.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return n.symlinkSync(c,r);throw e}if(o.dereference){e=i.resolve(process.cwd(),e)}if(s.isSrcSubdir(c,e)){throw new Error(`Cannot copy '${c}' to a subdirectory of itself, '${e}'.`)}if(n.statSync(r).isDirectory()&&s.isSrcSubdir(e,c)){throw new Error(`Cannot overwrite '${e}' with '${c}'.`)}return copyLink(c,r)}}function copyLink(e,t){n.unlinkSync(t);return n.symlinkSync(e,t)}e.exports=copySync},434:function(e,t,r){"use strict";e.exports={copySync:r(317)}},330:function(e,t,r){"use strict";const n=r(550);const i=r(622);const o=r(581).mkdirs;const c=r(878).pathExists;const s=r(263).utimesMillis;const a=r(881);function copy(e,t,r,n){if(typeof r==="function"&&!n){n=r;r={}}else if(typeof r==="function"){r={filter:r}}n=n||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}a.checkPaths(e,t,"copy",r,((i,o)=>{if(i)return n(i);const{srcStat:c,destStat:s}=o;a.checkParentPaths(e,c,t,"copy",(i=>{if(i)return n(i);if(r.filter)return handleFilter(checkParentDir,s,e,t,r,n);return checkParentDir(s,e,t,r,n)}))}))}function checkParentDir(e,t,r,n,s){const a=i.dirname(r);c(a,((i,c)=>{if(i)return s(i);if(c)return getStats(e,t,r,n,s);o(a,(i=>{if(i)return s(i);return getStats(e,t,r,n,s)}))}))}function handleFilter(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then((c=>{if(c)return e(t,r,n,i,o);return o()}),(e=>o(e)))}function startCopy(e,t,r,n,i){if(n.filter)return handleFilter(getStats,e,t,r,n,i);return getStats(e,t,r,n,i)}function getStats(e,t,r,i,o){const c=i.dereference?n.stat:n.lstat;c(t,((n,c)=>{if(n)return o(n);if(c.isDirectory())return onDir(c,e,t,r,i,o);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,r,i,o);else if(c.isSymbolicLink())return onLink(e,t,r,i,o);else if(c.isSocket())return o(new Error(`Cannot copy a socket file: ${t}`));else if(c.isFIFO())return o(new Error(`Cannot copy a FIFO pipe: ${t}`));return o(new Error(`Unknown file: ${t}`))}))}function onFile(e,t,r,n,i,o){if(!t)return copyFile(e,r,n,i,o);return mayCopyFile(e,r,n,i,o)}function mayCopyFile(e,t,r,i,o){if(i.overwrite){n.unlink(r,(n=>{if(n)return o(n);return copyFile(e,t,r,i,o)}))}else if(i.errorOnExist){return o(new Error(`'${r}' already exists`))}else return o()}function copyFile(e,t,r,i,o){n.copyFile(t,r,(n=>{if(n)return o(n);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,t,r,o);return setDestMode(r,e.mode,o)}))}function handleTimestampsAndMode(e,t,r,n){if(fileIsNotWritable(e)){return makeFileWritable(r,e,(i=>{if(i)return n(i);return setDestTimestampsAndMode(e,t,r,n)}))}return setDestTimestampsAndMode(e,t,r,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t,r){return setDestMode(e,t|128,r)}function setDestTimestampsAndMode(e,t,r,n){setDestTimestamps(t,r,(t=>{if(t)return n(t);return setDestMode(r,e,n)}))}function setDestMode(e,t,r){return n.chmod(e,t,r)}function setDestTimestamps(e,t,r){n.stat(e,((e,n)=>{if(e)return r(e);return s(t,n.atime,n.mtime,r)}))}function onDir(e,t,r,n,i,o){if(!t)return mkDirAndCopy(e.mode,r,n,i,o);return copyDir(r,n,i,o)}function mkDirAndCopy(e,t,r,i,o){n.mkdir(r,(n=>{if(n)return o(n);copyDir(t,r,i,(t=>{if(t)return o(t);return setDestMode(r,e,o)}))}))}function copyDir(e,t,r,i){n.readdir(e,((n,o)=>{if(n)return i(n);return copyDirItems(o,e,t,r,i)}))}function copyDirItems(e,t,r,n,i){const o=e.pop();if(!o)return i();return copyDirItem(e,o,t,r,n,i)}function copyDirItem(e,t,r,n,o,c){const s=i.join(r,t);const u=i.join(n,t);a.checkPaths(s,u,"copy",o,((t,i)=>{if(t)return c(t);const{destStat:a}=i;startCopy(a,s,u,o,(t=>{if(t)return c(t);return copyDirItems(e,r,n,o,c)}))}))}function onLink(e,t,r,o,c){n.readlink(t,((t,s)=>{if(t)return c(t);if(o.dereference){s=i.resolve(process.cwd(),s)}if(!e){return n.symlink(s,r,c)}else{n.readlink(r,((t,u)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return n.symlink(s,r,c);return c(t)}if(o.dereference){u=i.resolve(process.cwd(),u)}if(a.isSrcSubdir(s,u)){return c(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${u}'.`))}if(e.isDirectory()&&a.isSrcSubdir(u,s)){return c(new Error(`Cannot overwrite '${u}' with '${s}'.`))}return copyLink(s,r,c)}))}}))}function copyLink(e,t,r){n.unlink(t,(i=>{if(i)return r(i);return n.symlink(e,t,r)}))}e.exports=copy},666:function(e,t,r){"use strict";const n=r(761).fromCallback;e.exports={copy:n(r(330))}},403:function(e,t,r){"use strict";const n=r(761).fromPromise;const i=r(882);const o=r(622);const c=r(581);const s=r(538);const a=n((async function emptyDir(e){let t;try{t=await i.readdir(e)}catch{return c.mkdirs(e)}return Promise.all(t.map((t=>s.remove(o.join(e,t)))))}));function emptyDirSync(e){let t;try{t=i.readdirSync(e)}catch{return c.mkdirsSync(e)}t.forEach((t=>{t=o.join(e,t);s.removeSync(t)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:a,emptydir:a}},730:function(e,t,r){"use strict";const n=r(761).fromCallback;const i=r(622);const o=r(550);const c=r(581);function createFile(e,t){function makeFile(){o.writeFile(e,"",(e=>{if(e)return t(e);t()}))}o.stat(e,((r,n)=>{if(!r&&n.isFile())return t();const s=i.dirname(e);o.stat(s,((e,r)=>{if(e){if(e.code==="ENOENT"){return c.mkdirs(s,(e=>{if(e)return t(e);makeFile()}))}return t(e)}if(r.isDirectory())makeFile();else{o.readdir(s,(e=>{if(e)return t(e)}))}}))}))}function createFileSync(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{if(!o.statSync(r).isDirectory()){o.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")c.mkdirsSync(r);else throw e}o.writeFileSync(e,"")}e.exports={createFile:n(createFile),createFileSync:createFileSync}},215:function(e,t,r){"use strict";const n=r(730);const i=r(181);const o=r(807);e.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:o.createSymlink,createSymlinkSync:o.createSymlinkSync,ensureSymlink:o.createSymlink,ensureSymlinkSync:o.createSymlinkSync}},181:function(e,t,r){"use strict";const n=r(761).fromCallback;const i=r(622);const o=r(550);const c=r(581);const s=r(878).pathExists;const{areIdentical:a}=r(881);function createLink(e,t,r){function makeLink(e,t){o.link(e,t,(e=>{if(e)return r(e);r(null)}))}o.lstat(t,((n,u)=>{o.lstat(e,((n,o)=>{if(n){n.message=n.message.replace("lstat","ensureLink");return r(n)}if(u&&a(o,u))return r(null);const f=i.dirname(t);s(f,((n,i)=>{if(n)return r(n);if(i)return makeLink(e,t);c.mkdirs(f,(n=>{if(n)return r(n);makeLink(e,t)}))}))}))}))}function createLinkSync(e,t){let r;try{r=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(r&&a(t,r))return}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const n=i.dirname(t);const s=o.existsSync(n);if(s)return o.linkSync(e,t);c.mkdirsSync(n);return o.linkSync(e,t)}e.exports={createLink:n(createLink),createLinkSync:createLinkSync}},670:function(e,t,r){"use strict";const n=r(622);const i=r(550);const o=r(878).pathExists;function symlinkPaths(e,t,r){if(n.isAbsolute(e)){return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})}))}else{const c=n.dirname(t);const s=n.join(c,e);return o(s,((t,o)=>{if(t)return r(t);if(o){return r(null,{toCwd:s,toDst:e})}else{return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:n.relative(c,e)})}))}}))}}function symlinkPathsSync(e,t){let r;if(n.isAbsolute(e)){r=i.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const o=n.dirname(t);const c=n.join(o,e);r=i.existsSync(c);if(r){return{toCwd:c,toDst:e}}else{r=i.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(o,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},994:function(e,t,r){"use strict";const n=r(550);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);n.lstat(e,((e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file";r(null,t)}))}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},807:function(e,t,r){"use strict";const n=r(761).fromCallback;const i=r(622);const o=r(882);const c=r(581);const s=c.mkdirs;const a=c.mkdirsSync;const u=r(670);const f=u.symlinkPaths;const l=u.symlinkPathsSync;const y=r(994);const d=y.symlinkType;const m=y.symlinkTypeSync;const p=r(878).pathExists;const{areIdentical:h}=r(881);function createSymlink(e,t,r,n){n=typeof r==="function"?r:n;r=typeof r==="function"?false:r;o.lstat(t,((i,c)=>{if(!i&&c.isSymbolicLink()){Promise.all([o.stat(e),o.stat(t)]).then((([i,o])=>{if(h(i,o))return n(null);_createSymlink(e,t,r,n)}))}else _createSymlink(e,t,r,n)}))}function _createSymlink(e,t,r,n){f(e,t,((c,a)=>{if(c)return n(c);e=a.toDst;d(a.toCwd,r,((r,c)=>{if(r)return n(r);const a=i.dirname(t);p(a,((r,i)=>{if(r)return n(r);if(i)return o.symlink(e,t,c,n);s(a,(r=>{if(r)return n(r);o.symlink(e,t,c,n)}))}))}))}))}function createSymlinkSync(e,t,r){let n;try{n=o.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const r=o.statSync(e);const n=o.statSync(t);if(h(r,n))return}const c=l(e,t);e=c.toDst;r=m(c.toCwd,r);const s=i.dirname(t);const u=o.existsSync(s);if(u)return o.symlinkSync(e,t,r);a(s);return o.symlinkSync(e,t,r)}e.exports={createSymlink:n(createSymlink),createSymlinkSync:createSymlinkSync}},882:function(e,t,r){"use strict";const n=r(761).fromCallback;const i=r(550);const o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>typeof i[e]==="function"));Object.assign(t,i);o.forEach((e=>{t[e]=n(i[e])}));t.realpath.native=n(i.realpath.native);t.exists=function(e,t){if(typeof t==="function"){return i.exists(e,t)}return new Promise((t=>i.exists(e,t)))};t.read=function(e,t,r,n,o,c){if(typeof c==="function"){return i.read(e,t,r,n,o,c)}return new Promise(((c,s)=>{i.read(e,t,r,n,o,((e,t,r)=>{if(e)return s(e);c({bytesRead:t,buffer:r})}))}))};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.write(e,t,...r)}return new Promise(((n,o)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffer:r})}))}))};if(typeof i.writev==="function"){t.writev=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.writev(e,t,...r)}return new Promise(((n,o)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffers:r})}))}))}}},692:function(e,t,r){"use strict";e.exports={...r(882),...r(434),...r(666),...r(403),...r(215),...r(751),...r(581),...r(199),...r(396),...r(300),...r(878),...r(538)}},751:function(e,t,r){"use strict";const n=r(761).fromPromise;const i=r(885);i.outputJson=n(r(261));i.outputJsonSync=r(507);i.outputJSON=i.outputJson;i.outputJSONSync=i.outputJsonSync;i.writeJSON=i.writeJson;i.writeJSONSync=i.writeJsonSync;i.readJSON=i.readJson;i.readJSONSync=i.readJsonSync;e.exports=i},885:function(e,t,r){"use strict";const n=r(349);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},507:function(e,t,r){"use strict";const{stringify:n}=r(209);const{outputFileSync:i}=r(300);function outputJsonSync(e,t,r){const o=n(t,r);i(e,o,r)}e.exports=outputJsonSync},261:function(e,t,r){"use strict";const{stringify:n}=r(209);const{outputFile:i}=r(300);async function outputJson(e,t,r={}){const o=n(t,r);await i(e,o,r)}e.exports=outputJson},581:function(e,t,r){"use strict";const n=r(761).fromPromise;const{makeDir:i,makeDirSync:o}=r(242);const c=n(i);e.exports={mkdirs:c,mkdirsSync:o,mkdirp:c,mkdirpSync:o,ensureDir:c,ensureDirSync:o}},242:function(e,t,r){"use strict";const n=r(882);const{checkPath:i}=r(790);const getMode=e=>{const t={mode:511};if(typeof e==="number")return e;return{...t,...e}.mode};e.exports.makeDir=async(e,t)=>{i(e);return n.mkdir(e,{mode:getMode(t),recursive:true})};e.exports.makeDirSync=(e,t)=>{i(e);return n.mkdirSync(e,{mode:getMode(t),recursive:true})}},790:function(e,t,r){"use strict";const n=r(622);e.exports.checkPath=function checkPath(e){if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(n.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}}},199:function(e,t,r){"use strict";e.exports={moveSync:r(402)}},402:function(e,t,r){"use strict";const n=r(550);const i=r(622);const o=r(434).copySync;const c=r(538).removeSync;const s=r(581).mkdirpSync;const a=r(881);function moveSync(e,t,r){r=r||{};const n=r.overwrite||r.clobber||false;const{srcStat:o,isChangingCase:c=false}=a.checkPathsSync(e,t,"move",r);a.checkParentPathsSync(e,o,t,"move");if(!isParentRoot(t))s(i.dirname(t));return doRename(e,t,n,c)}function isParentRoot(e){const t=i.dirname(e);const r=i.parse(t);return r.root===t}function doRename(e,t,r,i){if(i)return rename(e,t,r);if(r){c(t);return rename(e,t,r)}if(n.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{n.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const n={overwrite:r,errorOnExist:true};o(e,t,n);return c(e)}e.exports=moveSync},396:function(e,t,r){"use strict";const n=r(761).fromCallback;e.exports={move:n(r(637))}},637:function(e,t,r){"use strict";const n=r(550);const i=r(622);const o=r(666).copy;const c=r(538).remove;const s=r(581).mkdirp;const a=r(878).pathExists;const u=r(881);function move(e,t,r,n){if(typeof r==="function"){n=r;r={}}const o=r.overwrite||r.clobber||false;u.checkPaths(e,t,"move",r,((r,c)=>{if(r)return n(r);const{srcStat:a,isChangingCase:f=false}=c;u.checkParentPaths(e,a,t,"move",(r=>{if(r)return n(r);if(isParentRoot(t))return doRename(e,t,o,f,n);s(i.dirname(t),(r=>{if(r)return n(r);return doRename(e,t,o,f,n)}))}))}))}function isParentRoot(e){const t=i.dirname(e);const r=i.parse(t);return r.root===t}function doRename(e,t,r,n,i){if(n)return rename(e,t,r,i);if(r){return c(t,(n=>{if(n)return i(n);return rename(e,t,r,i)}))}a(t,((n,o)=>{if(n)return i(n);if(o)return i(new Error("dest already exists."));return rename(e,t,r,i)}))}function rename(e,t,r,i){n.rename(e,t,(n=>{if(!n)return i();if(n.code!=="EXDEV")return i(n);return moveAcrossDevice(e,t,r,i)}))}function moveAcrossDevice(e,t,r,n){const i={overwrite:r,errorOnExist:true};o(e,t,i,(t=>{if(t)return n(t);return c(e,n)}))}e.exports=move},300:function(e,t,r){"use strict";const n=r(761).fromCallback;const i=r(550);const o=r(622);const c=r(581);const s=r(878).pathExists;function outputFile(e,t,r,n){if(typeof r==="function"){n=r;r="utf8"}const a=o.dirname(e);s(a,((o,s)=>{if(o)return n(o);if(s)return i.writeFile(e,t,r,n);c.mkdirs(a,(o=>{if(o)return n(o);i.writeFile(e,t,r,n)}))}))}function outputFileSync(e,...t){const r=o.dirname(e);if(i.existsSync(r)){return i.writeFileSync(e,...t)}c.mkdirsSync(r);i.writeFileSync(e,...t)}e.exports={outputFile:n(outputFile),outputFileSync:outputFileSync}},878:function(e,t,r){"use strict";const n=r(761).fromPromise;const i=r(882);function pathExists(e){return i.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:n(pathExists),pathExistsSync:i.existsSync}},538:function(e,t,r){"use strict";const n=r(550);const i=r(761).fromCallback;const o=r(120);function remove(e,t){if(n.rm)return n.rm(e,{recursive:true,force:true},t);o(e,t)}function removeSync(e){if(n.rmSync)return n.rmSync(e,{recursive:true,force:true});o.sync(e)}e.exports={remove:i(remove),removeSync:removeSync}},120:function(e,t,r){"use strict";const n=r(550);const i=r(622);const o=r(357);const c=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||n[t];t=t+"Sync";e[t]=e[t]||n[t]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let n=0;if(typeof t==="function"){r=t;t={}}o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o.strictEqual(typeof r,"function","rimraf: callback function required");o(t,"rimraf: invalid options argument provided");o.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,(function CB(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&n<t.maxBusyTries){n++;const r=n*100;return setTimeout((()=>rimraf_(e,t,CB)),r)}if(i.code==="ENOENT")i=null}r(i)}))}function rimraf_(e,t,r){o(e);o(t);o(typeof r==="function");t.lstat(e,((n,i)=>{if(n&&n.code==="ENOENT"){return r(null)}if(n&&n.code==="EPERM"&&c){return fixWinEPERM(e,t,n,r)}if(i&&i.isDirectory()){return rmdir(e,t,n,r)}t.unlink(e,(n=>{if(n){if(n.code==="ENOENT"){return r(null)}if(n.code==="EPERM"){return c?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r)}if(n.code==="EISDIR"){return rmdir(e,t,n,r)}}return r(n)}))}))}function fixWinEPERM(e,t,r,n){o(e);o(t);o(typeof n==="function");t.chmod(e,438,(i=>{if(i){n(i.code==="ENOENT"?null:r)}else{t.stat(e,((i,o)=>{if(i){n(i.code==="ENOENT"?null:r)}else if(o.isDirectory()){rmdir(e,t,r,n)}else{t.unlink(e,n)}}))}}))}function fixWinEPERMSync(e,t,r){let n;o(e);o(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(n.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,n){o(e);o(t);o(typeof n==="function");t.rmdir(e,(i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")){rmkids(e,t,n)}else if(i&&i.code==="ENOTDIR"){n(r)}else{n(i)}}))}function rmkids(e,t,r){o(e);o(t);o(typeof r==="function");t.readdir(e,((n,o)=>{if(n)return r(n);let c=o.length;let s;if(c===0)return t.rmdir(e,r);o.forEach((n=>{rimraf(i.join(e,n),t,(n=>{if(s){return}if(n)return r(s=n);if(--c===0){t.rmdir(e,r)}}))}))}))}function rimrafSync(e,t){let r;t=t||{};defaults(t);o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o(t,"rimraf: missing options");o.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&c){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return c?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){o(e);o(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR"){throw r}else if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"){rmkidsSync(e,t)}else if(n.code!=="ENOENT"){throw n}}}function rmkidsSync(e,t){o(e);o(t);t.readdirSync(e).forEach((r=>rimrafSync(i.join(e,r),t)));if(c){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch{}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},881:function(e,t,r){"use strict";const n=r(882);const i=r(622);const o=r(669);function getStats(e,t,r){const i=r.dereference?e=>n.stat(e,{bigint:true}):e=>n.lstat(e,{bigint:true});return Promise.all([i(e),i(t).catch((e=>{if(e.code==="ENOENT")return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function getStatsSync(e,t,r){let i;const o=r.dereference?e=>n.statSync(e,{bigint:true}):e=>n.lstatSync(e,{bigint:true});const c=o(e);try{i=o(t)}catch(e){if(e.code==="ENOENT")return{srcStat:c,destStat:null};throw e}return{srcStat:c,destStat:i}}function checkPaths(e,t,r,n,c){o.callbackify(getStats)(e,t,n,((n,o)=>{if(n)return c(n);const{srcStat:s,destStat:a}=o;if(a){if(areIdentical(s,a)){const n=i.basename(e);const o=i.basename(t);if(r==="move"&&n!==o&&n.toLowerCase()===o.toLowerCase()){return c(null,{srcStat:s,destStat:a,isChangingCase:true})}return c(new Error("Source and destination must not be the same."))}if(s.isDirectory()&&!a.isDirectory()){return c(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`))}if(!s.isDirectory()&&a.isDirectory()){return c(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}}if(s.isDirectory()&&isSrcSubdir(e,t)){return c(new Error(errMsg(e,t,r)))}return c(null,{srcStat:s,destStat:a})}))}function checkPathsSync(e,t,r,n){const{srcStat:o,destStat:c}=getStatsSync(e,t,n);if(c){if(areIdentical(o,c)){const n=i.basename(e);const s=i.basename(t);if(r==="move"&&n!==s&&n.toLowerCase()===s.toLowerCase()){return{srcStat:o,destStat:c,isChangingCase:true}}throw new Error("Source and destination must not be the same.")}if(o.isDirectory()&&!c.isDirectory()){throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`)}if(!o.isDirectory()&&c.isDirectory()){throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}}if(o.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:o,destStat:c}}function checkParentPaths(e,t,r,o,c){const s=i.resolve(i.dirname(e));const a=i.resolve(i.dirname(r));if(a===s||a===i.parse(a).root)return c();n.stat(a,{bigint:true},((n,i)=>{if(n){if(n.code==="ENOENT")return c();return c(n)}if(areIdentical(t,i)){return c(new Error(errMsg(e,r,o)))}return checkParentPaths(e,t,a,o,c)}))}function checkParentPathsSync(e,t,r,o){const c=i.resolve(i.dirname(e));const s=i.resolve(i.dirname(r));if(s===c||s===i.parse(s).root)return;let a;try{a=n.statSync(s,{bigint:true})}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,a)){throw new Error(errMsg(e,r,o))}return checkParentPathsSync(e,t,s,o)}function areIdentical(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function isSrcSubdir(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e));const n=i.resolve(t).split(i.sep).filter((e=>e));return r.reduce(((e,t,r)=>e&&n[r]===t),true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir,areIdentical:areIdentical}},263:function(e,t,r){"use strict";const n=r(550);function utimesMillis(e,t,r,i){n.open(e,"r+",((e,o)=>{if(e)return i(e);n.futimes(o,t,r,(e=>{n.close(o,(t=>{if(i)i(e||t)}))}))}))}function utimesMillisSync(e,t,r){const i=n.openSync(e,"r+");n.futimesSync(i,t,r);return n.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},21:function(e){"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},550:function(e,t,r){var n=r(747);var i=r(605);var o=r(506);var c=r(21);var s=r(669);var a;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){a=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{a="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,a,{get:function(){return t}})}var f=noop;if(s.debuglog)f=s.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))f=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[a]){var l=global[a]||[];publishQueue(n,l);n.close=function(e){function close(t,r){return e.call(n,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,u,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){f(n[a]);r(357).equal(n[a].length,0)}))}}if(!global[a]){publishQueue(global,n[a])}e.exports=patch(c(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,o){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i],r,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,o){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i],n,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var c=e.copyFile;if(c)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,i){return c(e,t,r,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],o,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var s=e.readdir;e.readdir=readdir;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;return go$readdir(e,t,r);function go$readdir(e,t,r,n){return s(e,t,(function(i,o){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$readdir,[e,t,r],i,n||Date.now(),Date.now()]);else{if(o&&o.sort)o.sort();if(typeof r==="function")r.call(this,i,o)}}))}}if(process.version.substr(0,4)==="v0.8"){var a=o(e);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var u=e.ReadStream;if(u){ReadStream.prototype=Object.create(u.prototype);ReadStream.prototype.open=ReadStream$open}var f=e.WriteStream;if(f){WriteStream.prototype=Object.create(f.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var l=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return l},set:function(e){l=e},enumerable:true,configurable:true});var y=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return y},set:function(e){y=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return u.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return f.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var d=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,i){return d(e,t,r,(function(o,c){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,r,n],o,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}return e}function enqueue(e){f("ENQUEUE",e[0].name,e[1]);n[a].push(e);retry()}var y;function resetQueue(){var e=Date.now();for(var t=0;t<n[a].length;++t){if(n[a][t].length>2){n[a][t][3]=e;n[a][t][4]=e}}retry()}function retry(){clearTimeout(y);y=undefined;if(n[a].length===0)return;var e=n[a].shift();var t=e[0];var r=e[1];var i=e[2];var o=e[3];var c=e[4];if(o===undefined){f("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-o>=6e4){f("TIMEOUT",t.name,r);var s=r.pop();if(typeof s==="function")s.call(null,i)}else{var u=Date.now()-c;var l=Math.max(c-o,1);var d=Math.min(l*1.2,100);if(u>=d){f("RETRY",t.name,r);t.apply(null,r.concat([o]))}else{n[a].push(e)}}if(y===undefined){y=setTimeout(retry,0)}}},506:function(e,t,r){var n=r(413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var o=Object.keys(r);for(var c=0,s=o.length;c<s;c++){var a=o[c];this[a]=r[a]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){i._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var o=0,c=i.length;o<c;o++){var s=i[o];this[s]=r[s]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},605:function(e,t,r){var n=r(619);var i=process.cwd;var o=null;var c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=i.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var s=process.chdir;process.chdir=function(e){o=null;s.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,s)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(c==="win32"){e.rename=function(t){return function(r,n,i){var o=Date.now();var c=0;t(r,n,(function CB(s){if(s&&(s.code==="EACCES"||s.code==="EPERM")&&Date.now()-o<6e4){setTimeout((function(){e.stat(n,(function(e,o){if(e&&e.code==="ENOENT")t(r,n,CB);else i(s)}))}),c);if(c<100)c+=10;return}if(i)i(s)}))}}(e.rename)}e.read=function(t){function read(r,n,i,o,c,s){var a;if(s&&typeof s==="function"){var u=0;a=function(f,l,y){if(f&&f.code==="EAGAIN"&&u<10){u++;return t.call(e,r,n,i,o,c,a)}s.apply(this,arguments)}}return t.call(e,r,n,i,o,c,a)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=function(t){return function(r,n,i,o,c){var s=0;while(true){try{return t.call(e,r,n,i,o,c)}catch(e){if(e.code==="EAGAIN"&&s<10){s++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,(function(t){e.close(n,(function(e){if(i)i(t||e)}))}))}))};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var o=true;var c;try{c=e.fchmodSync(i,r);o=false}finally{if(o){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return c}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,r,i,o){e.open(t,n.O_SYMLINK,(function(t,n){if(t){if(o)o(t);return}e.futimes(n,r,i,(function(t){e.close(n,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,r,i){var o=e.openSync(t,n.O_SYMLINK);var c;var s=true;try{c=e.futimesSync(o,r,i);s=false}finally{if(s){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return c}}else{e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,o){return t.call(e,r,n,i,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296;return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},349:function(e,t,r){let n;try{n=r(550)}catch(e){n=r(747)}const i=r(761);const{stringify:o,stripBom:c}=r(209);async function _readFile(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const o="throws"in t?t.throws:true;let s=await i.fromCallback(r.readFile)(e,t);s=c(s);let a;try{a=JSON.parse(s,t?t.reviver:null)}catch(t){if(o){t.message=`${e}: ${t.message}`;throw t}else{return null}}return a}const s=i.fromPromise(_readFile);function readFileSync(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const i="throws"in t?t.throws:true;try{let n=r.readFileSync(e,t);n=c(n);return JSON.parse(n,t.reviver)}catch(t){if(i){t.message=`${e}: ${t.message}`;throw t}else{return null}}}async function _writeFile(e,t,r={}){const c=r.fs||n;const s=o(t,r);await i.fromCallback(c.writeFile)(e,s,r)}const a=i.fromPromise(_writeFile);function writeFileSync(e,t,r={}){const i=r.fs||n;const c=o(t,r);return i.writeFileSync(e,c,r)}const u={readFile:s,readFileSync:readFileSync,writeFile:a,writeFileSync:writeFileSync};e.exports=u},209:function(e){function stringify(e,{EOL:t="\n",finalEOL:r=true,replacer:n=null,spaces:i}={}){const o=r?t:"";const c=JSON.stringify(e,n,i);return c.replace(/\n/g,t)+o}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},761:function(e,t){"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if(typeof t[t.length-1]==="function")e.apply(this,t);else{return new Promise(((r,n)=>{e.call(this,...t,((e,t)=>e!=null?n(e):r(t)))}))}}),"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if(typeof r!=="function")return e.apply(this,t);else e.apply(this,t.slice(0,-1)).then((e=>r(null,e)),r)}),"name",{value:e.name})}},357:function(e){"use strict";e.exports=require("assert")},619:function(e){"use strict";e.exports=require("constants")},747:function(e){"use strict";e.exports=require("fs")},622:function(e){"use strict";e.exports=require("path")},413:function(e){"use strict";e.exports=require("stream")},669:function(e){"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var o=true;try{e[r](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(692);module.exports=r})();
1
+ (function(){var e={571:function(e,t,r){"use strict";const n=r(284);const i=r(17);const o=r(971).mkdirsSync;const c=r(876).utimesMillisSync;const s=r(883);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:n,destStat:i}=s.checkPathsSync(e,t,"copy",r);s.checkParentPathsSync(e,n,t,"copy");return handleFilterAndCopy(i,e,t,r)}function handleFilterAndCopy(e,t,r,c){if(c.filter&&!c.filter(t,r))return;const s=i.dirname(r);if(!n.existsSync(s))o(s);return getStats(e,t,r,c)}function startCopy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;return getStats(e,t,r,n)}function getStats(e,t,r,i){const o=i.dereference?n.statSync:n.lstatSync;const c=o(t);if(c.isDirectory())return onDir(c,e,t,r,i);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,r,i);else if(c.isSymbolicLink())return onLink(e,t,r,i);else if(c.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);else if(c.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function onFile(e,t,r,n,i){if(!t)return copyFile(e,r,n,i);return mayCopyFile(e,r,n,i)}function mayCopyFile(e,t,r,i){if(i.overwrite){n.unlinkSync(r);return copyFile(e,t,r,i)}else if(i.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,i){n.copyFileSync(t,r);if(i.preserveTimestamps)handleTimestamps(e.mode,t,r);return setDestMode(r,e.mode)}function handleTimestamps(e,t,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(t,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return n.chmodSync(e,t)}function setDestTimestamps(e,t){const r=n.statSync(e);return c(t,r.atime,r.mtime)}function onDir(e,t,r,n,i){if(!t)return mkDirAndCopy(e.mode,r,n,i);return copyDir(r,n,i)}function mkDirAndCopy(e,t,r,i){n.mkdirSync(r);copyDir(t,r,i);return setDestMode(r,e)}function copyDir(e,t,r){n.readdirSync(e).forEach((n=>copyDirItem(n,e,t,r)))}function copyDirItem(e,t,r,n){const o=i.join(t,e);const c=i.join(r,e);const{destStat:a}=s.checkPathsSync(o,c,"copy",n);return startCopy(a,o,c,n)}function onLink(e,t,r,o){let c=n.readlinkSync(t);if(o.dereference){c=i.resolve(process.cwd(),c)}if(!e){return n.symlinkSync(c,r)}else{let e;try{e=n.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return n.symlinkSync(c,r);throw e}if(o.dereference){e=i.resolve(process.cwd(),e)}if(s.isSrcSubdir(c,e)){throw new Error(`Cannot copy '${c}' to a subdirectory of itself, '${e}'.`)}if(n.statSync(r).isDirectory()&&s.isSrcSubdir(e,c)){throw new Error(`Cannot overwrite '${e}' with '${c}'.`)}return copyLink(c,r)}}function copyLink(e,t){n.unlinkSync(t);return n.symlinkSync(e,t)}e.exports=copySync},987:function(e,t,r){"use strict";const n=r(284);const i=r(17);const o=r(971).mkdirs;const c=r(725).pathExists;const s=r(876).utimesMillis;const a=r(883);function copy(e,t,r,n){if(typeof r==="function"&&!n){n=r;r={}}else if(typeof r==="function"){r={filter:r}}n=n||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}a.checkPaths(e,t,"copy",r,((i,o)=>{if(i)return n(i);const{srcStat:c,destStat:s}=o;a.checkParentPaths(e,c,t,"copy",(i=>{if(i)return n(i);if(r.filter)return handleFilter(checkParentDir,s,e,t,r,n);return checkParentDir(s,e,t,r,n)}))}))}function checkParentDir(e,t,r,n,s){const a=i.dirname(r);c(a,((i,c)=>{if(i)return s(i);if(c)return getStats(e,t,r,n,s);o(a,(i=>{if(i)return s(i);return getStats(e,t,r,n,s)}))}))}function handleFilter(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then((c=>{if(c)return e(t,r,n,i,o);return o()}),(e=>o(e)))}function startCopy(e,t,r,n,i){if(n.filter)return handleFilter(getStats,e,t,r,n,i);return getStats(e,t,r,n,i)}function getStats(e,t,r,i,o){const c=i.dereference?n.stat:n.lstat;c(t,((n,c)=>{if(n)return o(n);if(c.isDirectory())return onDir(c,e,t,r,i,o);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,r,i,o);else if(c.isSymbolicLink())return onLink(e,t,r,i,o);else if(c.isSocket())return o(new Error(`Cannot copy a socket file: ${t}`));else if(c.isFIFO())return o(new Error(`Cannot copy a FIFO pipe: ${t}`));return o(new Error(`Unknown file: ${t}`))}))}function onFile(e,t,r,n,i,o){if(!t)return copyFile(e,r,n,i,o);return mayCopyFile(e,r,n,i,o)}function mayCopyFile(e,t,r,i,o){if(i.overwrite){n.unlink(r,(n=>{if(n)return o(n);return copyFile(e,t,r,i,o)}))}else if(i.errorOnExist){return o(new Error(`'${r}' already exists`))}else return o()}function copyFile(e,t,r,i,o){n.copyFile(t,r,(n=>{if(n)return o(n);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,t,r,o);return setDestMode(r,e.mode,o)}))}function handleTimestampsAndMode(e,t,r,n){if(fileIsNotWritable(e)){return makeFileWritable(r,e,(i=>{if(i)return n(i);return setDestTimestampsAndMode(e,t,r,n)}))}return setDestTimestampsAndMode(e,t,r,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t,r){return setDestMode(e,t|128,r)}function setDestTimestampsAndMode(e,t,r,n){setDestTimestamps(t,r,(t=>{if(t)return n(t);return setDestMode(r,e,n)}))}function setDestMode(e,t,r){return n.chmod(e,t,r)}function setDestTimestamps(e,t,r){n.stat(e,((e,n)=>{if(e)return r(e);return s(t,n.atime,n.mtime,r)}))}function onDir(e,t,r,n,i,o){if(!t)return mkDirAndCopy(e.mode,r,n,i,o);return copyDir(r,n,i,o)}function mkDirAndCopy(e,t,r,i,o){n.mkdir(r,(n=>{if(n)return o(n);copyDir(t,r,i,(t=>{if(t)return o(t);return setDestMode(r,e,o)}))}))}function copyDir(e,t,r,i){n.readdir(e,((n,o)=>{if(n)return i(n);return copyDirItems(o,e,t,r,i)}))}function copyDirItems(e,t,r,n,i){const o=e.pop();if(!o)return i();return copyDirItem(e,o,t,r,n,i)}function copyDirItem(e,t,r,n,o,c){const s=i.join(r,t);const u=i.join(n,t);a.checkPaths(s,u,"copy",o,((t,i)=>{if(t)return c(t);const{destStat:a}=i;startCopy(a,s,u,o,(t=>{if(t)return c(t);return copyDirItems(e,r,n,o,c)}))}))}function onLink(e,t,r,o,c){n.readlink(t,((t,s)=>{if(t)return c(t);if(o.dereference){s=i.resolve(process.cwd(),s)}if(!e){return n.symlink(s,r,c)}else{n.readlink(r,((t,u)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return n.symlink(s,r,c);return c(t)}if(o.dereference){u=i.resolve(process.cwd(),u)}if(a.isSrcSubdir(s,u)){return c(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${u}'.`))}if(e.isDirectory()&&a.isSrcSubdir(u,s)){return c(new Error(`Cannot overwrite '${u}' with '${s}'.`))}return copyLink(s,r,c)}))}}))}function copyLink(e,t,r){n.unlink(t,(i=>{if(i)return r(i);return n.symlink(e,t,r)}))}e.exports=copy},2:function(e,t,r){"use strict";const n=r(5).fromCallback;e.exports={copy:n(r(987)),copySync:r(571)}},708:function(e,t,r){"use strict";const n=r(5).fromPromise;const i=r(812);const o=r(17);const c=r(971);const s=r(95);const a=n((async function emptyDir(e){let t;try{t=await i.readdir(e)}catch{return c.mkdirs(e)}return Promise.all(t.map((t=>s.remove(o.join(e,t)))))}));function emptyDirSync(e){let t;try{t=i.readdirSync(e)}catch{return c.mkdirsSync(e)}t.forEach((t=>{t=o.join(e,t);s.removeSync(t)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:a,emptydir:a}},102:function(e,t,r){"use strict";const n=r(5).fromCallback;const i=r(17);const o=r(284);const c=r(971);function createFile(e,t){function makeFile(){o.writeFile(e,"",(e=>{if(e)return t(e);t()}))}o.stat(e,((r,n)=>{if(!r&&n.isFile())return t();const s=i.dirname(e);o.stat(s,((e,r)=>{if(e){if(e.code==="ENOENT"){return c.mkdirs(s,(e=>{if(e)return t(e);makeFile()}))}return t(e)}if(r.isDirectory())makeFile();else{o.readdir(s,(e=>{if(e)return t(e)}))}}))}))}function createFileSync(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{if(!o.statSync(r).isDirectory()){o.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")c.mkdirsSync(r);else throw e}o.writeFileSync(e,"")}e.exports={createFile:n(createFile),createFileSync:createFileSync}},726:function(e,t,r){"use strict";const{createFile:n,createFileSync:i}=r(102);const{createLink:o,createLinkSync:c}=r(161);const{createSymlink:s,createSymlinkSync:a}=r(294);e.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:o,createLinkSync:c,ensureLink:o,ensureLinkSync:c,createSymlink:s,createSymlinkSync:a,ensureSymlink:s,ensureSymlinkSync:a}},161:function(e,t,r){"use strict";const n=r(5).fromCallback;const i=r(17);const o=r(284);const c=r(971);const s=r(725).pathExists;const{areIdentical:a}=r(883);function createLink(e,t,r){function makeLink(e,t){o.link(e,t,(e=>{if(e)return r(e);r(null)}))}o.lstat(t,((n,u)=>{o.lstat(e,((n,o)=>{if(n){n.message=n.message.replace("lstat","ensureLink");return r(n)}if(u&&a(o,u))return r(null);const f=i.dirname(t);s(f,((n,i)=>{if(n)return r(n);if(i)return makeLink(e,t);c.mkdirs(f,(n=>{if(n)return r(n);makeLink(e,t)}))}))}))}))}function createLinkSync(e,t){let r;try{r=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(r&&a(t,r))return}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const n=i.dirname(t);const s=o.existsSync(n);if(s)return o.linkSync(e,t);c.mkdirsSync(n);return o.linkSync(e,t)}e.exports={createLink:n(createLink),createLinkSync:createLinkSync}},332:function(e,t,r){"use strict";const n=r(17);const i=r(284);const o=r(725).pathExists;function symlinkPaths(e,t,r){if(n.isAbsolute(e)){return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})}))}else{const c=n.dirname(t);const s=n.join(c,e);return o(s,((t,o)=>{if(t)return r(t);if(o){return r(null,{toCwd:s,toDst:e})}else{return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:n.relative(c,e)})}))}}))}}function symlinkPathsSync(e,t){let r;if(n.isAbsolute(e)){r=i.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const o=n.dirname(t);const c=n.join(o,e);r=i.existsSync(c);if(r){return{toCwd:c,toDst:e}}else{r=i.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(o,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},894:function(e,t,r){"use strict";const n=r(284);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);n.lstat(e,((e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file";r(null,t)}))}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},294:function(e,t,r){"use strict";const n=r(5).fromCallback;const i=r(17);const o=r(812);const c=r(971);const s=c.mkdirs;const a=c.mkdirsSync;const u=r(332);const f=u.symlinkPaths;const l=u.symlinkPathsSync;const y=r(894);const d=y.symlinkType;const m=y.symlinkTypeSync;const p=r(725).pathExists;const{areIdentical:h}=r(883);function createSymlink(e,t,r,n){n=typeof r==="function"?r:n;r=typeof r==="function"?false:r;o.lstat(t,((i,c)=>{if(!i&&c.isSymbolicLink()){Promise.all([o.stat(e),o.stat(t)]).then((([i,o])=>{if(h(i,o))return n(null);_createSymlink(e,t,r,n)}))}else _createSymlink(e,t,r,n)}))}function _createSymlink(e,t,r,n){f(e,t,((c,a)=>{if(c)return n(c);e=a.toDst;d(a.toCwd,r,((r,c)=>{if(r)return n(r);const a=i.dirname(t);p(a,((r,i)=>{if(r)return n(r);if(i)return o.symlink(e,t,c,n);s(a,(r=>{if(r)return n(r);o.symlink(e,t,c,n)}))}))}))}))}function createSymlinkSync(e,t,r){let n;try{n=o.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const r=o.statSync(e);const n=o.statSync(t);if(h(r,n))return}const c=l(e,t);e=c.toDst;r=m(c.toCwd,r);const s=i.dirname(t);const u=o.existsSync(s);if(u)return o.symlinkSync(e,t,r);a(s);return o.symlinkSync(e,t,r)}e.exports={createSymlink:n(createSymlink),createSymlinkSync:createSymlinkSync}},812:function(e,t,r){"use strict";const n=r(5).fromCallback;const i=r(284);const o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>typeof i[e]==="function"));Object.assign(t,i);o.forEach((e=>{t[e]=n(i[e])}));t.realpath.native=n(i.realpath.native);t.exists=function(e,t){if(typeof t==="function"){return i.exists(e,t)}return new Promise((t=>i.exists(e,t)))};t.read=function(e,t,r,n,o,c){if(typeof c==="function"){return i.read(e,t,r,n,o,c)}return new Promise(((c,s)=>{i.read(e,t,r,n,o,((e,t,r)=>{if(e)return s(e);c({bytesRead:t,buffer:r})}))}))};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.write(e,t,...r)}return new Promise(((n,o)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffer:r})}))}))};if(typeof i.writev==="function"){t.writev=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.writev(e,t,...r)}return new Promise(((n,o)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffers:r})}))}))}}},81:function(e,t,r){"use strict";e.exports={...r(812),...r(2),...r(708),...r(726),...r(779),...r(971),...r(511),...r(701),...r(725),...r(95)}},779:function(e,t,r){"use strict";const n=r(5).fromPromise;const i=r(901);i.outputJson=n(r(410));i.outputJsonSync=r(925);i.outputJSON=i.outputJson;i.outputJSONSync=i.outputJsonSync;i.writeJSON=i.writeJson;i.writeJSONSync=i.writeJsonSync;i.readJSON=i.readJson;i.readJSONSync=i.readJsonSync;e.exports=i},901:function(e,t,r){"use strict";const n=r(654);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},925:function(e,t,r){"use strict";const{stringify:n}=r(208);const{outputFileSync:i}=r(701);function outputJsonSync(e,t,r){const o=n(t,r);i(e,o,r)}e.exports=outputJsonSync},410:function(e,t,r){"use strict";const{stringify:n}=r(208);const{outputFile:i}=r(701);async function outputJson(e,t,r={}){const o=n(t,r);await i(e,o,r)}e.exports=outputJson},971:function(e,t,r){"use strict";const n=r(5).fromPromise;const{makeDir:i,makeDirSync:o}=r(317);const c=n(i);e.exports={mkdirs:c,mkdirsSync:o,mkdirp:c,mkdirpSync:o,ensureDir:c,ensureDirSync:o}},317:function(e,t,r){"use strict";const n=r(812);const{checkPath:i}=r(216);const getMode=e=>{const t={mode:511};if(typeof e==="number")return e;return{...t,...e}.mode};e.exports.makeDir=async(e,t)=>{i(e);return n.mkdir(e,{mode:getMode(t),recursive:true})};e.exports.makeDirSync=(e,t)=>{i(e);return n.mkdirSync(e,{mode:getMode(t),recursive:true})}},216:function(e,t,r){"use strict";const n=r(17);e.exports.checkPath=function checkPath(e){if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(n.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}}},511:function(e,t,r){"use strict";const n=r(5).fromCallback;e.exports={move:n(r(795)),moveSync:r(429)}},429:function(e,t,r){"use strict";const n=r(284);const i=r(17);const o=r(2).copySync;const c=r(95).removeSync;const s=r(971).mkdirpSync;const a=r(883);function moveSync(e,t,r){r=r||{};const n=r.overwrite||r.clobber||false;const{srcStat:o,isChangingCase:c=false}=a.checkPathsSync(e,t,"move",r);a.checkParentPathsSync(e,o,t,"move");if(!isParentRoot(t))s(i.dirname(t));return doRename(e,t,n,c)}function isParentRoot(e){const t=i.dirname(e);const r=i.parse(t);return r.root===t}function doRename(e,t,r,i){if(i)return rename(e,t,r);if(r){c(t);return rename(e,t,r)}if(n.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{n.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const n={overwrite:r,errorOnExist:true};o(e,t,n);return c(e)}e.exports=moveSync},795:function(e,t,r){"use strict";const n=r(284);const i=r(17);const o=r(2).copy;const c=r(95).remove;const s=r(971).mkdirp;const a=r(725).pathExists;const u=r(883);function move(e,t,r,n){if(typeof r==="function"){n=r;r={}}const o=r.overwrite||r.clobber||false;u.checkPaths(e,t,"move",r,((r,c)=>{if(r)return n(r);const{srcStat:a,isChangingCase:f=false}=c;u.checkParentPaths(e,a,t,"move",(r=>{if(r)return n(r);if(isParentRoot(t))return doRename(e,t,o,f,n);s(i.dirname(t),(r=>{if(r)return n(r);return doRename(e,t,o,f,n)}))}))}))}function isParentRoot(e){const t=i.dirname(e);const r=i.parse(t);return r.root===t}function doRename(e,t,r,n,i){if(n)return rename(e,t,r,i);if(r){return c(t,(n=>{if(n)return i(n);return rename(e,t,r,i)}))}a(t,((n,o)=>{if(n)return i(n);if(o)return i(new Error("dest already exists."));return rename(e,t,r,i)}))}function rename(e,t,r,i){n.rename(e,t,(n=>{if(!n)return i();if(n.code!=="EXDEV")return i(n);return moveAcrossDevice(e,t,r,i)}))}function moveAcrossDevice(e,t,r,n){const i={overwrite:r,errorOnExist:true};o(e,t,i,(t=>{if(t)return n(t);return c(e,n)}))}e.exports=move},701:function(e,t,r){"use strict";const n=r(5).fromCallback;const i=r(284);const o=r(17);const c=r(971);const s=r(725).pathExists;function outputFile(e,t,r,n){if(typeof r==="function"){n=r;r="utf8"}const a=o.dirname(e);s(a,((o,s)=>{if(o)return n(o);if(s)return i.writeFile(e,t,r,n);c.mkdirs(a,(o=>{if(o)return n(o);i.writeFile(e,t,r,n)}))}))}function outputFileSync(e,...t){const r=o.dirname(e);if(i.existsSync(r)){return i.writeFileSync(e,...t)}c.mkdirsSync(r);i.writeFileSync(e,...t)}e.exports={outputFile:n(outputFile),outputFileSync:outputFileSync}},725:function(e,t,r){"use strict";const n=r(5).fromPromise;const i=r(812);function pathExists(e){return i.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:n(pathExists),pathExistsSync:i.existsSync}},95:function(e,t,r){"use strict";const n=r(284);const i=r(5).fromCallback;const o=r(193);function remove(e,t){if(n.rm)return n.rm(e,{recursive:true,force:true},t);o(e,t)}function removeSync(e){if(n.rmSync)return n.rmSync(e,{recursive:true,force:true});o.sync(e)}e.exports={remove:i(remove),removeSync:removeSync}},193:function(e,t,r){"use strict";const n=r(284);const i=r(17);const o=r(491);const c=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||n[t];t=t+"Sync";e[t]=e[t]||n[t]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let n=0;if(typeof t==="function"){r=t;t={}}o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o.strictEqual(typeof r,"function","rimraf: callback function required");o(t,"rimraf: invalid options argument provided");o.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,(function CB(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&n<t.maxBusyTries){n++;const r=n*100;return setTimeout((()=>rimraf_(e,t,CB)),r)}if(i.code==="ENOENT")i=null}r(i)}))}function rimraf_(e,t,r){o(e);o(t);o(typeof r==="function");t.lstat(e,((n,i)=>{if(n&&n.code==="ENOENT"){return r(null)}if(n&&n.code==="EPERM"&&c){return fixWinEPERM(e,t,n,r)}if(i&&i.isDirectory()){return rmdir(e,t,n,r)}t.unlink(e,(n=>{if(n){if(n.code==="ENOENT"){return r(null)}if(n.code==="EPERM"){return c?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r)}if(n.code==="EISDIR"){return rmdir(e,t,n,r)}}return r(n)}))}))}function fixWinEPERM(e,t,r,n){o(e);o(t);o(typeof n==="function");t.chmod(e,438,(i=>{if(i){n(i.code==="ENOENT"?null:r)}else{t.stat(e,((i,o)=>{if(i){n(i.code==="ENOENT"?null:r)}else if(o.isDirectory()){rmdir(e,t,r,n)}else{t.unlink(e,n)}}))}}))}function fixWinEPERMSync(e,t,r){let n;o(e);o(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(n.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,n){o(e);o(t);o(typeof n==="function");t.rmdir(e,(i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")){rmkids(e,t,n)}else if(i&&i.code==="ENOTDIR"){n(r)}else{n(i)}}))}function rmkids(e,t,r){o(e);o(t);o(typeof r==="function");t.readdir(e,((n,o)=>{if(n)return r(n);let c=o.length;let s;if(c===0)return t.rmdir(e,r);o.forEach((n=>{rimraf(i.join(e,n),t,(n=>{if(s){return}if(n)return r(s=n);if(--c===0){t.rmdir(e,r)}}))}))}))}function rimrafSync(e,t){let r;t=t||{};defaults(t);o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o(t,"rimraf: missing options");o.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&c){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return c?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){o(e);o(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR"){throw r}else if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"){rmkidsSync(e,t)}else if(n.code!=="ENOENT"){throw n}}}function rmkidsSync(e,t){o(e);o(t);t.readdirSync(e).forEach((r=>rimrafSync(i.join(e,r),t)));if(c){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch{}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},883:function(e,t,r){"use strict";const n=r(812);const i=r(17);const o=r(837);function getStats(e,t,r){const i=r.dereference?e=>n.stat(e,{bigint:true}):e=>n.lstat(e,{bigint:true});return Promise.all([i(e),i(t).catch((e=>{if(e.code==="ENOENT")return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function getStatsSync(e,t,r){let i;const o=r.dereference?e=>n.statSync(e,{bigint:true}):e=>n.lstatSync(e,{bigint:true});const c=o(e);try{i=o(t)}catch(e){if(e.code==="ENOENT")return{srcStat:c,destStat:null};throw e}return{srcStat:c,destStat:i}}function checkPaths(e,t,r,n,c){o.callbackify(getStats)(e,t,n,((n,o)=>{if(n)return c(n);const{srcStat:s,destStat:a}=o;if(a){if(areIdentical(s,a)){const n=i.basename(e);const o=i.basename(t);if(r==="move"&&n!==o&&n.toLowerCase()===o.toLowerCase()){return c(null,{srcStat:s,destStat:a,isChangingCase:true})}return c(new Error("Source and destination must not be the same."))}if(s.isDirectory()&&!a.isDirectory()){return c(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`))}if(!s.isDirectory()&&a.isDirectory()){return c(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}}if(s.isDirectory()&&isSrcSubdir(e,t)){return c(new Error(errMsg(e,t,r)))}return c(null,{srcStat:s,destStat:a})}))}function checkPathsSync(e,t,r,n){const{srcStat:o,destStat:c}=getStatsSync(e,t,n);if(c){if(areIdentical(o,c)){const n=i.basename(e);const s=i.basename(t);if(r==="move"&&n!==s&&n.toLowerCase()===s.toLowerCase()){return{srcStat:o,destStat:c,isChangingCase:true}}throw new Error("Source and destination must not be the same.")}if(o.isDirectory()&&!c.isDirectory()){throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`)}if(!o.isDirectory()&&c.isDirectory()){throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}}if(o.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:o,destStat:c}}function checkParentPaths(e,t,r,o,c){const s=i.resolve(i.dirname(e));const a=i.resolve(i.dirname(r));if(a===s||a===i.parse(a).root)return c();n.stat(a,{bigint:true},((n,i)=>{if(n){if(n.code==="ENOENT")return c();return c(n)}if(areIdentical(t,i)){return c(new Error(errMsg(e,r,o)))}return checkParentPaths(e,t,a,o,c)}))}function checkParentPathsSync(e,t,r,o){const c=i.resolve(i.dirname(e));const s=i.resolve(i.dirname(r));if(s===c||s===i.parse(s).root)return;let a;try{a=n.statSync(s,{bigint:true})}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,a)){throw new Error(errMsg(e,r,o))}return checkParentPathsSync(e,t,s,o)}function areIdentical(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function isSrcSubdir(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e));const n=i.resolve(t).split(i.sep).filter((e=>e));return r.reduce(((e,t,r)=>e&&n[r]===t),true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir,areIdentical:areIdentical}},876:function(e,t,r){"use strict";const n=r(284);function utimesMillis(e,t,r,i){n.open(e,"r+",((e,o)=>{if(e)return i(e);n.futimes(o,t,r,(e=>{n.close(o,(t=>{if(i)i(e||t)}))}))}))}function utimesMillisSync(e,t,r){const i=n.openSync(e,"r+");n.futimesSync(i,t,r);return n.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},395:function(e){"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},284:function(e,t,r){var n=r(147);var i=r(371);var o=r(457);var c=r(395);var s=r(837);var a;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){a=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{a="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,a,{get:function(){return t}})}var f=noop;if(s.debuglog)f=s.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))f=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[a]){var l=global[a]||[];publishQueue(n,l);n.close=function(e){function close(t,r){return e.call(n,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,u,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){f(n[a]);r(491).equal(n[a].length,0)}))}}if(!global[a]){publishQueue(global,n[a])}e.exports=patch(c(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,o){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i],r,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,o){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i],n,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var c=e.copyFile;if(c)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,i){return c(e,t,r,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],o,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var s=e.readdir;e.readdir=readdir;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;return go$readdir(e,t,r);function go$readdir(e,t,r,n){return s(e,t,(function(i,o){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$readdir,[e,t,r],i,n||Date.now(),Date.now()]);else{if(o&&o.sort)o.sort();if(typeof r==="function")r.call(this,i,o)}}))}}if(process.version.substr(0,4)==="v0.8"){var a=o(e);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var u=e.ReadStream;if(u){ReadStream.prototype=Object.create(u.prototype);ReadStream.prototype.open=ReadStream$open}var f=e.WriteStream;if(f){WriteStream.prototype=Object.create(f.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var l=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return l},set:function(e){l=e},enumerable:true,configurable:true});var y=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return y},set:function(e){y=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return u.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return f.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var d=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,i){return d(e,t,r,(function(o,c){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,r,n],o,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}return e}function enqueue(e){f("ENQUEUE",e[0].name,e[1]);n[a].push(e);retry()}var y;function resetQueue(){var e=Date.now();for(var t=0;t<n[a].length;++t){if(n[a][t].length>2){n[a][t][3]=e;n[a][t][4]=e}}retry()}function retry(){clearTimeout(y);y=undefined;if(n[a].length===0)return;var e=n[a].shift();var t=e[0];var r=e[1];var i=e[2];var o=e[3];var c=e[4];if(o===undefined){f("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-o>=6e4){f("TIMEOUT",t.name,r);var s=r.pop();if(typeof s==="function")s.call(null,i)}else{var u=Date.now()-c;var l=Math.max(c-o,1);var d=Math.min(l*1.2,100);if(u>=d){f("RETRY",t.name,r);t.apply(null,r.concat([o]))}else{n[a].push(e)}}if(y===undefined){y=setTimeout(retry,0)}}},457:function(e,t,r){var n=r(781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var o=Object.keys(r);for(var c=0,s=o.length;c<s;c++){var a=o[c];this[a]=r[a]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){i._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var o=0,c=i.length;o<c;o++){var s=i[o];this[s]=r[s]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},371:function(e,t,r){var n=r(57);var i=process.cwd;var o=null;var c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=i.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var s=process.chdir;process.chdir=function(e){o=null;s.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,s)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(c==="win32"){e.rename=function(t){return function(r,n,i){var o=Date.now();var c=0;t(r,n,(function CB(s){if(s&&(s.code==="EACCES"||s.code==="EPERM")&&Date.now()-o<6e4){setTimeout((function(){e.stat(n,(function(e,o){if(e&&e.code==="ENOENT")t(r,n,CB);else i(s)}))}),c);if(c<100)c+=10;return}if(i)i(s)}))}}(e.rename)}e.read=function(t){function read(r,n,i,o,c,s){var a;if(s&&typeof s==="function"){var u=0;a=function(f,l,y){if(f&&f.code==="EAGAIN"&&u<10){u++;return t.call(e,r,n,i,o,c,a)}s.apply(this,arguments)}}return t.call(e,r,n,i,o,c,a)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=function(t){return function(r,n,i,o,c){var s=0;while(true){try{return t.call(e,r,n,i,o,c)}catch(e){if(e.code==="EAGAIN"&&s<10){s++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,(function(t){e.close(n,(function(e){if(i)i(t||e)}))}))}))};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var o=true;var c;try{c=e.fchmodSync(i,r);o=false}finally{if(o){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return c}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,r,i,o){e.open(t,n.O_SYMLINK,(function(t,n){if(t){if(o)o(t);return}e.futimes(n,r,i,(function(t){e.close(n,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,r,i){var o=e.openSync(t,n.O_SYMLINK);var c;var s=true;try{c=e.futimesSync(o,r,i);s=false}finally{if(s){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return c}}else{e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,o){return t.call(e,r,n,i,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},654:function(e,t,r){let n;try{n=r(284)}catch(e){n=r(147)}const i=r(5);const{stringify:o,stripBom:c}=r(208);async function _readFile(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const o="throws"in t?t.throws:true;let s=await i.fromCallback(r.readFile)(e,t);s=c(s);let a;try{a=JSON.parse(s,t?t.reviver:null)}catch(t){if(o){t.message=`${e}: ${t.message}`;throw t}else{return null}}return a}const s=i.fromPromise(_readFile);function readFileSync(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const i="throws"in t?t.throws:true;try{let n=r.readFileSync(e,t);n=c(n);return JSON.parse(n,t.reviver)}catch(t){if(i){t.message=`${e}: ${t.message}`;throw t}else{return null}}}async function _writeFile(e,t,r={}){const c=r.fs||n;const s=o(t,r);await i.fromCallback(c.writeFile)(e,s,r)}const a=i.fromPromise(_writeFile);function writeFileSync(e,t,r={}){const i=r.fs||n;const c=o(t,r);return i.writeFileSync(e,c,r)}const u={readFile:s,readFileSync:readFileSync,writeFile:a,writeFileSync:writeFileSync};e.exports=u},208:function(e){function stringify(e,{EOL:t="\n",finalEOL:r=true,replacer:n=null,spaces:i}={}){const o=r?t:"";const c=JSON.stringify(e,n,i);return c.replace(/\n/g,t)+o}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},5:function(e,t){"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if(typeof t[t.length-1]==="function")e.apply(this,t);else{return new Promise(((r,n)=>{e.call(this,...t,((e,t)=>e!=null?n(e):r(t)))}))}}),"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if(typeof r!=="function")return e.apply(this,t);else e.apply(this,t.slice(0,-1)).then((e=>r(null,e)),r)}),"name",{value:e.name})}},491:function(e){"use strict";e.exports=require("assert")},57:function(e){"use strict";e.exports=require("constants")},147:function(e){"use strict";e.exports=require("fs")},17:function(e){"use strict";e.exports=require("path")},781:function(e){"use strict";e.exports=require("stream")},837:function(e){"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var o=true;try{e[r](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(81);module.exports=r})();
@@ -1 +1 @@
1
- (function(){"use strict";var e={};!function(){e.d=function(t,n){for(var r in n){if(e.o(n,r)&&!e.o(t,r)){Object.defineProperty(t,r,{enumerable:true,get:n[r]})}}}}();!function(){e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();if(typeof e!=="undefined")e.ab=__dirname+"/";var t={};e.r(t);e.d(t,{pkgUp:function(){return pkgUp},pkgUpSync:function(){return pkgUpSync}});var n=require("node:path");var r=require("node:url");var c=require("node:process");var i=require("node:fs");class Node{value;next;constructor(e){this.value=e}}class Queue{#e;#t;#n;constructor(){this.clear()}enqueue(e){const t=new Node(e);if(this.#e){this.#t.next=t;this.#t=t}else{this.#e=t;this.#t=t}this.#n++}dequeue(){const e=this.#e;if(!e){return}this.#e=this.#e.next;this.#n--;return e.value}clear(){this.#e=undefined;this.#t=undefined;this.#n=0}get size(){return this.#n}*[Symbol.iterator](){let e=this.#e;while(e){yield e.value;e=e.next}}}function pLimit(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=new Queue;let n=0;const next=()=>{n--;if(t.size>0){t.dequeue()()}};const run=async(e,t,r)=>{n++;const c=(async()=>e(...r))();t(c);try{await c}catch{}next()};const enqueue=(r,c,i)=>{t.enqueue(run.bind(undefined,r,c,i));(async()=>{await Promise.resolve();if(n<e&&t.size>0){t.dequeue()()}})()};const generator=(e,...t)=>new Promise((n=>{enqueue(e,n,t)}));Object.defineProperties(generator,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}});return generator}class EndError extends Error{constructor(e){super();this.value=e}}const testElement=async(e,t)=>t(await e);const finder=async e=>{const t=await Promise.all(e);if(t[1]===true){throw new EndError(t[0])}return false};async function pLocate(e,t,{concurrency:n=Number.POSITIVE_INFINITY,preserveOrder:r=true}={}){const c=pLimit(n);const i=[...e].map((e=>[e,c(testElement,e,t)]));const o=pLimit(r?1:Number.POSITIVE_INFINITY);try{await Promise.all(i.map((e=>o(finder,e))))}catch(e){if(e instanceof EndError){return e.value}throw e}}const o={directory:"isDirectory",file:"isFile"};function checkType(e){if(e in o){return}throw new Error(`Invalid type specified: ${e}`)}const matchType=(e,t)=>e===undefined||t[o[e]]();const toPath=e=>e instanceof URL?(0,r.fileURLToPath)(e):e;async function locatePath(e,{cwd:t=c.cwd(),type:r="file",allowSymlinks:o=true,concurrency:s,preserveOrder:a}={}){checkType(r);t=toPath(t);const u=o?i.promises.stat:i.promises.lstat;return pLocate(e,(async e=>{try{const c=await u(n.resolve(t,e));return matchType(r,c)}catch{return false}}),{concurrency:s,preserveOrder:a})}function locatePathSync(e,{cwd:t=c.cwd(),type:r="file",allowSymlinks:o=true}={}){checkType(r);t=toPath(t);const s=o?i.statSync:i.lstatSync;for(const c of e){try{const e=s(n.resolve(t,c));if(matchType(r,e)){return c}}catch{}}}async function pathExists(e){try{await fsPromises.access(e);return true}catch{return false}}function pathExistsSync(e){try{fs.accessSync(e);return true}catch{return false}}const find_up_toPath=e=>e instanceof URL?(0,r.fileURLToPath)(e):e;const s=Symbol("findUpStop");async function findUpMultiple(e,t={}){let r=n.resolve(find_up_toPath(t.cwd)||"");const{root:c}=n.parse(r);const i=n.resolve(r,t.stopAt||c);const o=t.limit||Number.POSITIVE_INFINITY;const a=[e].flat();const runMatcher=async t=>{if(typeof e!=="function"){return locatePath(a,t)}const n=await e(t.cwd);if(typeof n==="string"){return locatePath([n],t)}return n};const u=[];while(true){const e=await runMatcher({...t,cwd:r});if(e===s){break}if(e){u.push(n.resolve(r,e))}if(r===i||u.length>=o){break}r=n.dirname(r)}return u}function findUpMultipleSync(e,t={}){let r=n.resolve(find_up_toPath(t.cwd)||"");const{root:c}=n.parse(r);const i=t.stopAt||c;const o=t.limit||Number.POSITIVE_INFINITY;const a=[e].flat();const runMatcher=t=>{if(typeof e!=="function"){return locatePathSync(a,t)}const n=e(t.cwd);if(typeof n==="string"){return locatePathSync([n],t)}return n};const u=[];while(true){const e=runMatcher({...t,cwd:r});if(e===s){break}if(e){u.push(n.resolve(r,e))}if(r===i||u.length>=o){break}r=n.dirname(r)}return u}async function findUp(e,t={}){const n=await findUpMultiple(e,{...t,limit:1});return n[0]}function findUpSync(e,t={}){const n=findUpMultipleSync(e,{...t,limit:1});return n[0]}async function pkgUp({cwd:e}={}){return findUp("package.json",{cwd:e})}function pkgUpSync({cwd:e}={}){return findUpSync("package.json",{cwd:e})}module.exports=t})();
1
+ (function(){"use strict";var e={};!function(){e.d=function(t,n){for(var r in n){if(e.o(n,r)&&!e.o(t,r)){Object.defineProperty(t,r,{enumerable:true,get:n[r]})}}}}();!function(){e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();if(typeof e!=="undefined")e.ab=__dirname+"/";var t={};e.r(t);e.d(t,{pkgUp:function(){return pkgUp},pkgUpSync:function(){return pkgUpSync}});var n=require("path");var r=require("url");var c=require("process");var i=require("fs");class Node{value;next;constructor(e){this.value=e}}class Queue{#e;#t;#n;constructor(){this.clear()}enqueue(e){const t=new Node(e);if(this.#e){this.#t.next=t;this.#t=t}else{this.#e=t;this.#t=t}this.#n++}dequeue(){const e=this.#e;if(!e){return}this.#e=this.#e.next;this.#n--;return e.value}clear(){this.#e=undefined;this.#t=undefined;this.#n=0}get size(){return this.#n}*[Symbol.iterator](){let e=this.#e;while(e){yield e.value;e=e.next}}}function pLimit(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=new Queue;let n=0;const next=()=>{n--;if(t.size>0){t.dequeue()()}};const run=async(e,t,r)=>{n++;const c=(async()=>e(...r))();t(c);try{await c}catch{}next()};const enqueue=(r,c,i)=>{t.enqueue(run.bind(undefined,r,c,i));(async()=>{await Promise.resolve();if(n<e&&t.size>0){t.dequeue()()}})()};const generator=(e,...t)=>new Promise((n=>{enqueue(e,n,t)}));Object.defineProperties(generator,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}});return generator}class EndError extends Error{constructor(e){super();this.value=e}}const testElement=async(e,t)=>t(await e);const finder=async e=>{const t=await Promise.all(e);if(t[1]===true){throw new EndError(t[0])}return false};async function pLocate(e,t,{concurrency:n=Number.POSITIVE_INFINITY,preserveOrder:r=true}={}){const c=pLimit(n);const i=[...e].map((e=>[e,c(testElement,e,t)]));const o=pLimit(r?1:Number.POSITIVE_INFINITY);try{await Promise.all(i.map((e=>o(finder,e))))}catch(e){if(e instanceof EndError){return e.value}throw e}}const o={directory:"isDirectory",file:"isFile"};function checkType(e){if(e in o){return}throw new Error(`Invalid type specified: ${e}`)}const matchType=(e,t)=>e===undefined||t[o[e]]();const toPath=e=>e instanceof URL?(0,r.fileURLToPath)(e):e;async function locatePath(e,{cwd:t=c.cwd(),type:r="file",allowSymlinks:o=true,concurrency:s,preserveOrder:a}={}){checkType(r);t=toPath(t);const u=o?i.promises.stat:i.promises.lstat;return pLocate(e,(async e=>{try{const c=await u(n.resolve(t,e));return matchType(r,c)}catch{return false}}),{concurrency:s,preserveOrder:a})}function locatePathSync(e,{cwd:t=c.cwd(),type:r="file",allowSymlinks:o=true}={}){checkType(r);t=toPath(t);const s=o?i.statSync:i.lstatSync;for(const c of e){try{const e=s(n.resolve(t,c));if(matchType(r,e)){return c}}catch{}}}async function pathExists(e){try{await fsPromises.access(e);return true}catch{return false}}function pathExistsSync(e){try{fs.accessSync(e);return true}catch{return false}}const find_up_toPath=e=>e instanceof URL?(0,r.fileURLToPath)(e):e;const s=Symbol("findUpStop");async function findUpMultiple(e,t={}){let r=n.resolve(find_up_toPath(t.cwd)||"");const{root:c}=n.parse(r);const i=n.resolve(r,t.stopAt||c);const o=t.limit||Number.POSITIVE_INFINITY;const a=[e].flat();const runMatcher=async t=>{if(typeof e!=="function"){return locatePath(a,t)}const n=await e(t.cwd);if(typeof n==="string"){return locatePath([n],t)}return n};const u=[];while(true){const e=await runMatcher({...t,cwd:r});if(e===s){break}if(e){u.push(n.resolve(r,e))}if(r===i||u.length>=o){break}r=n.dirname(r)}return u}function findUpMultipleSync(e,t={}){let r=n.resolve(find_up_toPath(t.cwd)||"");const{root:c}=n.parse(r);const i=t.stopAt||c;const o=t.limit||Number.POSITIVE_INFINITY;const a=[e].flat();const runMatcher=t=>{if(typeof e!=="function"){return locatePathSync(a,t)}const n=e(t.cwd);if(typeof n==="string"){return locatePathSync([n],t)}return n};const u=[];while(true){const e=runMatcher({...t,cwd:r});if(e===s){break}if(e){u.push(n.resolve(r,e))}if(r===i||u.length>=o){break}r=n.dirname(r)}return u}async function findUp(e,t={}){const n=await findUpMultiple(e,{...t,limit:1});return n[0]}function findUpSync(e,t={}){const n=findUpMultipleSync(e,{...t,limit:1});return n[0]}async function pkgUp({cwd:e}={}){return findUp("package.json",{cwd:e})}function pkgUpSync({cwd:e}={}){return findUpSync("package.json",{cwd:e})}module.exports=t})();
@@ -1 +1 @@
1
- (function(){var e={312:function(e){function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}webpackEmptyContext.keys=function(){return[]};webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=312;e.exports=webpackEmptyContext},147:function(e){"use strict";e.exports=require("fs")},17:function(e){"use strict";e.exports=require("path")},837:function(e){"use strict";e.exports=require("util")},774:function(e,t,n){"use strict";var s=n(837);var r=n(17);var i=n(147);function camelCase(e){const t=e!==e.toLowerCase()&&e!==e.toUpperCase();if(!t){e=e.toLowerCase()}if(e.indexOf("-")===-1&&e.indexOf("_")===-1){return e}else{let t="";let n=false;const s=e.match(/^-+/);for(let r=s?s[0].length:0;r<e.length;r++){let s=e.charAt(r);if(n){n=false;s=s.toUpperCase()}if(r!==0&&(s==="-"||s==="_")){n=true}else if(s!=="-"&&s!=="_"){t+=s}}return t}}function decamelize(e,t){const n=e.toLowerCase();t=t||"-";let s="";for(let r=0;r<e.length;r++){const i=n.charAt(r);const a=e.charAt(r);if(i!==a&&r>0){s+=`${t}${n.charAt(r)}`}else{s+=a}}return s}function looksLikeNumber(e){if(e===null||e===undefined)return false;if(typeof e==="number")return true;if(/^0x[0-9a-f]+$/i.test(e))return true;if(/^0[^.]/.test(e))return false;return/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function tokenizeArgString(e){if(Array.isArray(e)){return e.map((e=>typeof e!=="string"?e+"":e))}e=e.trim();let t=0;let n=null;let s=null;let r=null;const i=[];for(let a=0;a<e.length;a++){n=s;s=e.charAt(a);if(s===" "&&!r){if(!(n===" ")){t++}continue}if(s===r){r=null}else if((s==="'"||s==='"')&&!r){r=s}if(!i[t])i[t]="";i[t]+=s}return i}var a;(function(e){e["BOOLEAN"]="boolean";e["STRING"]="string";e["NUMBER"]="number";e["ARRAY"]="array"})(a||(a={}));let o;class YargsParser{constructor(e){o=e}parse(e,t){const n=Object.assign({alias:undefined,array:undefined,boolean:undefined,config:undefined,configObjects:undefined,configuration:undefined,coerce:undefined,count:undefined,default:undefined,envPrefix:undefined,narg:undefined,normalize:undefined,string:undefined,number:undefined,__:undefined,key:undefined},t);const s=tokenizeArgString(e);const r=typeof e==="string";const i=combineAliases(Object.assign(Object.create(null),n.alias));const c=Object.assign({"boolean-negation":true,"camel-case-expansion":true,"combine-arrays":false,"dot-notation":true,"duplicate-arguments-array":true,"flatten-duplicate-arrays":true,"greedy-arrays":true,"halt-at-non-option":false,"nargs-eats-options":false,"negation-prefix":"no-","parse-numbers":true,"parse-positional-numbers":true,"populate--":false,"set-placeholder-key":false,"short-option-groups":true,"strip-aliased":false,"strip-dashed":false,"unknown-options-as-args":false},n.configuration);const l=Object.assign(Object.create(null),n.default);const f=n.configObjects||[];const u=n.envPrefix;const p=c["populate--"];const h=p?"--":"_";const A=Object.create(null);const d=Object.create(null);const g=n.__||o.format;const y={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]};const b=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/;const m=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach((function(e){const t=typeof e==="object"?e.key:e;const n=Object.keys(e).map((function(e){const t={boolean:"bools",string:"strings",number:"numbers"};return t[e]})).filter(Boolean).pop();if(n){y[n][t]=true}y.arrays[t]=true;y.keys.push(t)}));[].concat(n.boolean||[]).filter(Boolean).forEach((function(e){y.bools[e]=true;y.keys.push(e)}));[].concat(n.string||[]).filter(Boolean).forEach((function(e){y.strings[e]=true;y.keys.push(e)}));[].concat(n.number||[]).filter(Boolean).forEach((function(e){y.numbers[e]=true;y.keys.push(e)}));[].concat(n.count||[]).filter(Boolean).forEach((function(e){y.counts[e]=true;y.keys.push(e)}));[].concat(n.normalize||[]).filter(Boolean).forEach((function(e){y.normalize[e]=true;y.keys.push(e)}));if(typeof n.narg==="object"){Object.entries(n.narg).forEach((([e,t])=>{if(typeof t==="number"){y.nargs[e]=t;y.keys.push(e)}}))}if(typeof n.coerce==="object"){Object.entries(n.coerce).forEach((([e,t])=>{if(typeof t==="function"){y.coercions[e]=t;y.keys.push(e)}}))}if(typeof n.config!=="undefined"){if(Array.isArray(n.config)||typeof n.config==="string"){[].concat(n.config).filter(Boolean).forEach((function(e){y.configs[e]=true}))}else if(typeof n.config==="object"){Object.entries(n.config).forEach((([e,t])=>{if(typeof t==="boolean"||typeof t==="function"){y.configs[e]=t}}))}}extendAliases(n.key,i,n.default,y.arrays);Object.keys(l).forEach((function(e){(y.aliases[e]||[]).forEach((function(t){l[t]=l[e]}))}));let k=null;checkConfiguration();let O=[];const j=Object.assign(Object.create(null),{_:[]});const E={};for(let e=0;e<s.length;e++){const t=s[e];const n=t.replace(/^-{3,}/,"---");let r;let i;let a;let o;let l;let f;if(t!=="--"&&isUnknownOptionAsArg(t)){pushPositional(t)}else if(n.match(/---+(=|$)/)){pushPositional(t);continue}else if(t.match(/^--.+=/)||!c["short-option-groups"]&&t.match(/^-.+=/)){o=t.match(/^--?([^=]+)=([\s\S]*)$/);if(o!==null&&Array.isArray(o)&&o.length>=3){if(checkAllAliases(o[1],y.arrays)){e=eatArray(e,o[1],s,o[2])}else if(checkAllAliases(o[1],y.nargs)!==false){e=eatNargs(e,o[1],s,o[2])}else{setArg(o[1],o[2],true)}}}else if(t.match(m)&&c["boolean-negation"]){o=t.match(m);if(o!==null&&Array.isArray(o)&&o.length>=2){i=o[1];setArg(i,checkAllAliases(i,y.arrays)?[false]:false)}}else if(t.match(/^--.+/)||!c["short-option-groups"]&&t.match(/^-[^-]+/)){o=t.match(/^--?(.+)/);if(o!==null&&Array.isArray(o)&&o.length>=2){i=o[1];if(checkAllAliases(i,y.arrays)){e=eatArray(e,i,s)}else if(checkAllAliases(i,y.nargs)!==false){e=eatNargs(e,i,s)}else{l=s[e+1];if(l!==undefined&&(!l.match(/^-/)||l.match(b))&&!checkAllAliases(i,y.bools)&&!checkAllAliases(i,y.counts)){setArg(i,l);e++}else if(/^(true|false)$/.test(l)){setArg(i,l);e++}else{setArg(i,defaultValue(i))}}}}else if(t.match(/^-.\..+=/)){o=t.match(/^-([^=]+)=([\s\S]*)$/);if(o!==null&&Array.isArray(o)&&o.length>=3){setArg(o[1],o[2])}}else if(t.match(/^-.\..+/)&&!t.match(b)){l=s[e+1];o=t.match(/^-(.\..+)/);if(o!==null&&Array.isArray(o)&&o.length>=2){i=o[1];if(l!==undefined&&!l.match(/^-/)&&!checkAllAliases(i,y.bools)&&!checkAllAliases(i,y.counts)){setArg(i,l);e++}else{setArg(i,defaultValue(i))}}}else if(t.match(/^-[^-]+/)&&!t.match(b)){a=t.slice(1,-1).split("");r=false;for(let n=0;n<a.length;n++){l=t.slice(n+2);if(a[n+1]&&a[n+1]==="="){f=t.slice(n+3);i=a[n];if(checkAllAliases(i,y.arrays)){e=eatArray(e,i,s,f)}else if(checkAllAliases(i,y.nargs)!==false){e=eatNargs(e,i,s,f)}else{setArg(i,f)}r=true;break}if(l==="-"){setArg(a[n],l);continue}if(/[A-Za-z]/.test(a[n])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&checkAllAliases(l,y.bools)===false){setArg(a[n],l);r=true;break}if(a[n+1]&&a[n+1].match(/\W/)){setArg(a[n],l);r=true;break}else{setArg(a[n],defaultValue(a[n]))}}i=t.slice(-1)[0];if(!r&&i!=="-"){if(checkAllAliases(i,y.arrays)){e=eatArray(e,i,s)}else if(checkAllAliases(i,y.nargs)!==false){e=eatNargs(e,i,s)}else{l=s[e+1];if(l!==undefined&&(!/^(-|--)[^-]/.test(l)||l.match(b))&&!checkAllAliases(i,y.bools)&&!checkAllAliases(i,y.counts)){setArg(i,l);e++}else if(/^(true|false)$/.test(l)){setArg(i,l);e++}else{setArg(i,defaultValue(i))}}}}else if(t.match(/^-[0-9]$/)&&t.match(b)&&checkAllAliases(t.slice(1),y.bools)){i=t.slice(1);setArg(i,defaultValue(i))}else if(t==="--"){O=s.slice(e+1);break}else if(c["halt-at-non-option"]){O=s.slice(e);break}else{pushPositional(t)}}applyEnvVars(j,true);applyEnvVars(j,false);setConfig(j);setConfigObjects();applyDefaultsAndAliases(j,y.aliases,l,true);applyCoercions(j);if(c["set-placeholder-key"])setPlaceholderKeys(j);Object.keys(y.counts).forEach((function(e){if(!hasKey(j,e.split(".")))setArg(e,0)}));if(p&&O.length)j[h]=[];O.forEach((function(e){j[h].push(e)}));if(c["camel-case-expansion"]&&c["strip-dashed"]){Object.keys(j).filter((e=>e!=="--"&&e.includes("-"))).forEach((e=>{delete j[e]}))}if(c["strip-aliased"]){[].concat(...Object.keys(i).map((e=>i[e]))).forEach((e=>{if(c["camel-case-expansion"]&&e.includes("-")){delete j[e.split(".").map((e=>camelCase(e))).join(".")]}delete j[e]}))}function pushPositional(e){const t=maybeCoerceNumber("_",e);if(typeof t==="string"||typeof t==="number"){j._.push(t)}}function eatNargs(e,t,n,s){let r;let i=checkAllAliases(t,y.nargs);i=typeof i!=="number"||isNaN(i)?1:i;if(i===0){if(!isUndefined(s)){k=Error(g("Argument unexpected for: %s",t))}setArg(t,defaultValue(t));return e}let a=isUndefined(s)?0:1;if(c["nargs-eats-options"]){if(n.length-(e+1)+a<i){k=Error(g("Not enough arguments following: %s",t))}a=i}else{for(r=e+1;r<n.length;r++){if(!n[r].match(/^-[^0-9]/)||n[r].match(b)||isUnknownOptionAsArg(n[r]))a++;else break}if(a<i)k=Error(g("Not enough arguments following: %s",t))}let o=Math.min(a,i);if(!isUndefined(s)&&o>0){setArg(t,s);o--}for(r=e+1;r<o+e+1;r++){setArg(t,n[r])}return e+o}function eatArray(e,t,n,s){let i=[];let a=s||n[e+1];const o=checkAllAliases(t,y.nargs);if(checkAllAliases(t,y.bools)&&!/^(true|false)$/.test(a)){i.push(true)}else if(isUndefined(a)||isUndefined(s)&&/^-/.test(a)&&!b.test(a)&&!isUnknownOptionAsArg(a)){if(l[t]!==undefined){const e=l[t];i=Array.isArray(e)?e:[e]}}else{if(!isUndefined(s)){i.push(processValue(t,s,true))}for(let s=e+1;s<n.length;s++){if(!c["greedy-arrays"]&&i.length>0||o&&typeof o==="number"&&i.length>=o)break;a=n[s];if(/^-/.test(a)&&!b.test(a)&&!isUnknownOptionAsArg(a))break;e=s;i.push(processValue(t,a,r))}}if(typeof o==="number"&&(o&&i.length<o||isNaN(o)&&i.length===0)){k=Error(g("Not enough arguments following: %s",t))}setArg(t,i);return e}function setArg(e,t,n=r){if(/-/.test(e)&&c["camel-case-expansion"]){const t=e.split(".").map((function(e){return camelCase(e)})).join(".");addNewAlias(e,t)}const s=processValue(e,t,n);const i=e.split(".");setKey(j,i,s);if(y.aliases[e]){y.aliases[e].forEach((function(e){const t=e.split(".");setKey(j,t,s)}))}if(i.length>1&&c["dot-notation"]){(y.aliases[i[0]]||[]).forEach((function(t){let n=t.split(".");const r=[].concat(i);r.shift();n=n.concat(r);if(!(y.aliases[e]||[]).includes(n.join("."))){setKey(j,n,s)}}))}if(checkAllAliases(e,y.normalize)&&!checkAllAliases(e,y.arrays)){const n=[e].concat(y.aliases[e]||[]);n.forEach((function(e){Object.defineProperty(E,e,{enumerable:true,get(){return t},set(e){t=typeof e==="string"?o.normalize(e):e}})}))}}function addNewAlias(e,t){if(!(y.aliases[e]&&y.aliases[e].length)){y.aliases[e]=[t];A[t]=true}if(!(y.aliases[t]&&y.aliases[t].length)){addNewAlias(t,e)}}function processValue(e,t,n){if(n){t=stripQuotes(t)}if(checkAllAliases(e,y.bools)||checkAllAliases(e,y.counts)){if(typeof t==="string")t=t==="true"}let s=Array.isArray(t)?t.map((function(t){return maybeCoerceNumber(e,t)})):maybeCoerceNumber(e,t);if(checkAllAliases(e,y.counts)&&(isUndefined(s)||typeof s==="boolean")){s=increment()}if(checkAllAliases(e,y.normalize)&&checkAllAliases(e,y.arrays)){if(Array.isArray(t))s=t.map((e=>o.normalize(e)));else s=o.normalize(t)}return s}function maybeCoerceNumber(e,t){if(!c["parse-positional-numbers"]&&e==="_")return t;if(!checkAllAliases(e,y.strings)&&!checkAllAliases(e,y.bools)&&!Array.isArray(t)){const n=looksLikeNumber(t)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)));if(n||!isUndefined(t)&&checkAllAliases(e,y.numbers)){t=Number(t)}}return t}function setConfig(e){const t=Object.create(null);applyDefaultsAndAliases(t,y.aliases,l);Object.keys(y.configs).forEach((function(n){const s=e[n]||t[n];if(s){try{let e=null;const t=o.resolve(o.cwd(),s);const r=y.configs[n];if(typeof r==="function"){try{e=r(t)}catch(t){e=t}if(e instanceof Error){k=e;return}}else{e=o.require(t)}setConfigObject(e)}catch(t){if(t.name==="PermissionDenied")k=t;else if(e[n])k=Error(g("Invalid JSON config file: %s",s))}}}))}function setConfigObject(e,t){Object.keys(e).forEach((function(n){const s=e[n];const r=t?t+"."+n:n;if(typeof s==="object"&&s!==null&&!Array.isArray(s)&&c["dot-notation"]){setConfigObject(s,r)}else{if(!hasKey(j,r.split("."))||checkAllAliases(r,y.arrays)&&c["combine-arrays"]){setArg(r,s)}}}))}function setConfigObjects(){if(typeof f!=="undefined"){f.forEach((function(e){setConfigObject(e)}))}}function applyEnvVars(e,t){if(typeof u==="undefined")return;const n=typeof u==="string"?u:"";const s=o.env();Object.keys(s).forEach((function(r){if(n===""||r.lastIndexOf(n,0)===0){const i=r.split("__").map((function(e,t){if(t===0){e=e.substring(n.length)}return camelCase(e)}));if((t&&y.configs[i.join(".")]||!t)&&!hasKey(e,i)){setArg(i.join("."),s[r])}}}))}function applyCoercions(e){let t;const n=new Set;Object.keys(e).forEach((function(s){if(!n.has(s)){t=checkAllAliases(s,y.coercions);if(typeof t==="function"){try{const r=maybeCoerceNumber(s,t(e[s]));[].concat(y.aliases[s]||[],s).forEach((t=>{n.add(t);e[t]=r}))}catch(e){k=e}}}}))}function setPlaceholderKeys(e){y.keys.forEach((t=>{if(~t.indexOf("."))return;if(typeof e[t]==="undefined")e[t]=undefined}));return e}function applyDefaultsAndAliases(e,t,n,s=false){Object.keys(n).forEach((function(r){if(!hasKey(e,r.split("."))){setKey(e,r.split("."),n[r]);if(s)d[r]=true;(t[r]||[]).forEach((function(t){if(hasKey(e,t.split(".")))return;setKey(e,t.split("."),n[r])}))}}))}function hasKey(e,t){let n=e;if(!c["dot-notation"])t=[t.join(".")];t.slice(0,-1).forEach((function(e){n=n[e]||{}}));const s=t[t.length-1];if(typeof n!=="object")return false;else return s in n}function setKey(e,t,n){let s=e;if(!c["dot-notation"])t=[t.join(".")];t.slice(0,-1).forEach((function(e){e=sanitizeKey(e);if(typeof s==="object"&&s[e]===undefined){s[e]={}}if(typeof s[e]!=="object"||Array.isArray(s[e])){if(Array.isArray(s[e])){s[e].push({})}else{s[e]=[s[e],{}]}s=s[e][s[e].length-1]}else{s=s[e]}}));const r=sanitizeKey(t[t.length-1]);const i=checkAllAliases(t.join("."),y.arrays);const a=Array.isArray(n);let o=c["duplicate-arguments-array"];if(!o&&checkAllAliases(r,y.nargs)){o=true;if(!isUndefined(s[r])&&y.nargs[r]===1||Array.isArray(s[r])&&s[r].length===y.nargs[r]){s[r]=undefined}}if(n===increment()){s[r]=increment(s[r])}else if(Array.isArray(s[r])){if(o&&i&&a){s[r]=c["flatten-duplicate-arrays"]?s[r].concat(n):(Array.isArray(s[r][0])?s[r]:[s[r]]).concat([n])}else if(!o&&Boolean(i)===Boolean(a)){s[r]=n}else{s[r]=s[r].concat([n])}}else if(s[r]===undefined&&i){s[r]=a?n:[n]}else if(o&&!(s[r]===undefined||checkAllAliases(r,y.counts)||checkAllAliases(r,y.bools))){s[r]=[s[r],n]}else{s[r]=n}}function extendAliases(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){if(y.aliases[e])return;y.aliases[e]=[].concat(i[e]||[]);y.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&c["camel-case-expansion"]){const n=camelCase(t);if(n!==e&&y.aliases[e].indexOf(n)===-1){y.aliases[e].push(n);A[n]=true}}}));y.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&c["camel-case-expansion"]){const n=decamelize(t,"-");if(n!==e&&y.aliases[e].indexOf(n)===-1){y.aliases[e].push(n);A[n]=true}}}));y.aliases[e].forEach((function(t){y.aliases[t]=[e].concat(y.aliases[e].filter((function(e){return t!==e})))}))}))}))}function checkAllAliases(e,t){const n=[].concat(y.aliases[e]||[],e);const s=Object.keys(t);const r=n.find((e=>s.includes(e)));return r?t[r]:false}function hasAnyFlag(e){const t=Object.keys(y);const n=[].concat(t.map((e=>y[e])));return n.some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function hasFlagsMatching(e,...t){const n=[].concat(...t);return n.some((function(t){const n=e.match(t);return n&&hasAnyFlag(n[1])}))}function hasAllShortFlags(e){if(e.match(b)||!e.match(/^-[^-]+/)){return false}let t=true;let n;const s=e.slice(1).split("");for(let r=0;r<s.length;r++){n=e.slice(r+2);if(!hasAnyFlag(s[r])){t=false;break}if(s[r+1]&&s[r+1]==="="||n==="-"||/[A-Za-z]/.test(s[r])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(n)||s[r+1]&&s[r+1].match(/\W/)){break}}return t}function isUnknownOptionAsArg(e){return c["unknown-options-as-args"]&&isUnknownOption(e)}function isUnknownOption(e){e=e.replace(/^-{3,}/,"--");if(e.match(b)){return false}if(hasAllShortFlags(e)){return false}const t=/^-+([^=]+?)=[\s\S]*$/;const n=/^-+([^=]+?)$/;const s=/^-+([^=]+?)-$/;const r=/^-+([^=]+?\d+)$/;const i=/^-+([^=]+?)\W+.*$/;return!hasFlagsMatching(e,t,m,n,s,r,i)}function defaultValue(e){if(!checkAllAliases(e,y.bools)&&!checkAllAliases(e,y.counts)&&`${e}`in l){return l[e]}else{return defaultForType(guessType(e))}}function defaultForType(e){const t={[a.BOOLEAN]:true,[a.STRING]:"",[a.NUMBER]:undefined,[a.ARRAY]:[]};return t[e]}function guessType(e){let t=a.BOOLEAN;if(checkAllAliases(e,y.strings))t=a.STRING;else if(checkAllAliases(e,y.numbers))t=a.NUMBER;else if(checkAllAliases(e,y.bools))t=a.BOOLEAN;else if(checkAllAliases(e,y.arrays))t=a.ARRAY;return t}function isUndefined(e){return e===undefined}function checkConfiguration(){Object.keys(y.counts).find((e=>{if(checkAllAliases(e,y.arrays)){k=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",e));return true}else if(checkAllAliases(e,y.nargs)){k=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",e));return true}return false}))}return{aliases:Object.assign({},y.aliases),argv:Object.assign(E,j),configuration:c,defaulted:Object.assign({},d),error:k,newAliases:Object.assign({},A)}}}function combineAliases(e){const t=[];const n=Object.create(null);let s=true;Object.keys(e).forEach((function(n){t.push([].concat(e[n],n))}));while(s){s=false;for(let e=0;e<t.length;e++){for(let n=e+1;n<t.length;n++){const r=t[e].filter((function(e){return t[n].indexOf(e)!==-1}));if(r.length){t[e]=t[e].concat(t[n]);t.splice(n,1);s=true;break}}}}t.forEach((function(e){e=e.filter((function(e,t,n){return n.indexOf(e)===t}));const t=e.pop();if(t!==undefined&&typeof t==="string"){n[t]=e}}));return n}function increment(e){return e!==undefined?e+1:1}function sanitizeKey(e){if(e==="__proto__")return"___proto___";return e}function stripQuotes(e){return typeof e==="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}const c=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12;if(process&&process.version){const e=Number(process.version.match(/v([^.]+)/)[1]);if(e<c){throw Error(`yargs parser supports a minimum Node.js version of ${c}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}}const l=process?process.env:{};const f=new YargsParser({cwd:process.cwd,env:()=>l,format:s.format,normalize:r.normalize,resolve:r.resolve,require:e=>{if(true){return n(312)(e)}else{}}});const u=function Parser(e,t){const n=f.parse(e.slice(),t);return n.argv};u.detailed=function(e,t){return f.parse(e.slice(),t)};u.camelCase=camelCase;u.decamelize=decamelize;u.looksLikeNumber=looksLikeNumber;e.exports=u}};var t={};function __nccwpck_require__(n){var s=t[n];if(s!==undefined){return s.exports}var r=t[n]={exports:{}};var i=true;try{e[n](r,r.exports,__nccwpck_require__);i=false}finally{if(i)delete t[n]}return r.exports}!function(){__nccwpck_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(774);module.exports=n})();
1
+ (function(){var e={274:function(e){function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}webpackEmptyContext.keys=function(){return[]};webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=274;e.exports=webpackEmptyContext},147:function(e){"use strict";e.exports=require("fs")},17:function(e){"use strict";e.exports=require("path")},837:function(e){"use strict";e.exports=require("util")},109:function(e,t,n){"use strict";var s=n(837);var r=n(17);var i=n(147);function camelCase(e){const t=e!==e.toLowerCase()&&e!==e.toUpperCase();if(!t){e=e.toLowerCase()}if(e.indexOf("-")===-1&&e.indexOf("_")===-1){return e}else{let t="";let n=false;const s=e.match(/^-+/);for(let r=s?s[0].length:0;r<e.length;r++){let s=e.charAt(r);if(n){n=false;s=s.toUpperCase()}if(r!==0&&(s==="-"||s==="_")){n=true}else if(s!=="-"&&s!=="_"){t+=s}}return t}}function decamelize(e,t){const n=e.toLowerCase();t=t||"-";let s="";for(let r=0;r<e.length;r++){const i=n.charAt(r);const a=e.charAt(r);if(i!==a&&r>0){s+=`${t}${n.charAt(r)}`}else{s+=a}}return s}function looksLikeNumber(e){if(e===null||e===undefined)return false;if(typeof e==="number")return true;if(/^0x[0-9a-f]+$/i.test(e))return true;if(/^0[^.]/.test(e))return false;return/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function tokenizeArgString(e){if(Array.isArray(e)){return e.map((e=>typeof e!=="string"?e+"":e))}e=e.trim();let t=0;let n=null;let s=null;let r=null;const i=[];for(let a=0;a<e.length;a++){n=s;s=e.charAt(a);if(s===" "&&!r){if(!(n===" ")){t++}continue}if(s===r){r=null}else if((s==="'"||s==='"')&&!r){r=s}if(!i[t])i[t]="";i[t]+=s}return i}var a;(function(e){e["BOOLEAN"]="boolean";e["STRING"]="string";e["NUMBER"]="number";e["ARRAY"]="array"})(a||(a={}));let o;class YargsParser{constructor(e){o=e}parse(e,t){const n=Object.assign({alias:undefined,array:undefined,boolean:undefined,config:undefined,configObjects:undefined,configuration:undefined,coerce:undefined,count:undefined,default:undefined,envPrefix:undefined,narg:undefined,normalize:undefined,string:undefined,number:undefined,__:undefined,key:undefined},t);const s=tokenizeArgString(e);const r=typeof e==="string";const i=combineAliases(Object.assign(Object.create(null),n.alias));const c=Object.assign({"boolean-negation":true,"camel-case-expansion":true,"combine-arrays":false,"dot-notation":true,"duplicate-arguments-array":true,"flatten-duplicate-arrays":true,"greedy-arrays":true,"halt-at-non-option":false,"nargs-eats-options":false,"negation-prefix":"no-","parse-numbers":true,"parse-positional-numbers":true,"populate--":false,"set-placeholder-key":false,"short-option-groups":true,"strip-aliased":false,"strip-dashed":false,"unknown-options-as-args":false},n.configuration);const l=Object.assign(Object.create(null),n.default);const f=n.configObjects||[];const u=n.envPrefix;const p=c["populate--"];const h=p?"--":"_";const A=Object.create(null);const d=Object.create(null);const g=n.__||o.format;const y={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]};const b=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/;const m=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach((function(e){const t=typeof e==="object"?e.key:e;const n=Object.keys(e).map((function(e){const t={boolean:"bools",string:"strings",number:"numbers"};return t[e]})).filter(Boolean).pop();if(n){y[n][t]=true}y.arrays[t]=true;y.keys.push(t)}));[].concat(n.boolean||[]).filter(Boolean).forEach((function(e){y.bools[e]=true;y.keys.push(e)}));[].concat(n.string||[]).filter(Boolean).forEach((function(e){y.strings[e]=true;y.keys.push(e)}));[].concat(n.number||[]).filter(Boolean).forEach((function(e){y.numbers[e]=true;y.keys.push(e)}));[].concat(n.count||[]).filter(Boolean).forEach((function(e){y.counts[e]=true;y.keys.push(e)}));[].concat(n.normalize||[]).filter(Boolean).forEach((function(e){y.normalize[e]=true;y.keys.push(e)}));if(typeof n.narg==="object"){Object.entries(n.narg).forEach((([e,t])=>{if(typeof t==="number"){y.nargs[e]=t;y.keys.push(e)}}))}if(typeof n.coerce==="object"){Object.entries(n.coerce).forEach((([e,t])=>{if(typeof t==="function"){y.coercions[e]=t;y.keys.push(e)}}))}if(typeof n.config!=="undefined"){if(Array.isArray(n.config)||typeof n.config==="string"){[].concat(n.config).filter(Boolean).forEach((function(e){y.configs[e]=true}))}else if(typeof n.config==="object"){Object.entries(n.config).forEach((([e,t])=>{if(typeof t==="boolean"||typeof t==="function"){y.configs[e]=t}}))}}extendAliases(n.key,i,n.default,y.arrays);Object.keys(l).forEach((function(e){(y.aliases[e]||[]).forEach((function(t){l[t]=l[e]}))}));let k=null;checkConfiguration();let O=[];const j=Object.assign(Object.create(null),{_:[]});const E={};for(let e=0;e<s.length;e++){const t=s[e];const n=t.replace(/^-{3,}/,"---");let r;let i;let a;let o;let l;let f;if(t!=="--"&&isUnknownOptionAsArg(t)){pushPositional(t)}else if(n.match(/---+(=|$)/)){pushPositional(t);continue}else if(t.match(/^--.+=/)||!c["short-option-groups"]&&t.match(/^-.+=/)){o=t.match(/^--?([^=]+)=([\s\S]*)$/);if(o!==null&&Array.isArray(o)&&o.length>=3){if(checkAllAliases(o[1],y.arrays)){e=eatArray(e,o[1],s,o[2])}else if(checkAllAliases(o[1],y.nargs)!==false){e=eatNargs(e,o[1],s,o[2])}else{setArg(o[1],o[2],true)}}}else if(t.match(m)&&c["boolean-negation"]){o=t.match(m);if(o!==null&&Array.isArray(o)&&o.length>=2){i=o[1];setArg(i,checkAllAliases(i,y.arrays)?[false]:false)}}else if(t.match(/^--.+/)||!c["short-option-groups"]&&t.match(/^-[^-]+/)){o=t.match(/^--?(.+)/);if(o!==null&&Array.isArray(o)&&o.length>=2){i=o[1];if(checkAllAliases(i,y.arrays)){e=eatArray(e,i,s)}else if(checkAllAliases(i,y.nargs)!==false){e=eatNargs(e,i,s)}else{l=s[e+1];if(l!==undefined&&(!l.match(/^-/)||l.match(b))&&!checkAllAliases(i,y.bools)&&!checkAllAliases(i,y.counts)){setArg(i,l);e++}else if(/^(true|false)$/.test(l)){setArg(i,l);e++}else{setArg(i,defaultValue(i))}}}}else if(t.match(/^-.\..+=/)){o=t.match(/^-([^=]+)=([\s\S]*)$/);if(o!==null&&Array.isArray(o)&&o.length>=3){setArg(o[1],o[2])}}else if(t.match(/^-.\..+/)&&!t.match(b)){l=s[e+1];o=t.match(/^-(.\..+)/);if(o!==null&&Array.isArray(o)&&o.length>=2){i=o[1];if(l!==undefined&&!l.match(/^-/)&&!checkAllAliases(i,y.bools)&&!checkAllAliases(i,y.counts)){setArg(i,l);e++}else{setArg(i,defaultValue(i))}}}else if(t.match(/^-[^-]+/)&&!t.match(b)){a=t.slice(1,-1).split("");r=false;for(let n=0;n<a.length;n++){l=t.slice(n+2);if(a[n+1]&&a[n+1]==="="){f=t.slice(n+3);i=a[n];if(checkAllAliases(i,y.arrays)){e=eatArray(e,i,s,f)}else if(checkAllAliases(i,y.nargs)!==false){e=eatNargs(e,i,s,f)}else{setArg(i,f)}r=true;break}if(l==="-"){setArg(a[n],l);continue}if(/[A-Za-z]/.test(a[n])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&checkAllAliases(l,y.bools)===false){setArg(a[n],l);r=true;break}if(a[n+1]&&a[n+1].match(/\W/)){setArg(a[n],l);r=true;break}else{setArg(a[n],defaultValue(a[n]))}}i=t.slice(-1)[0];if(!r&&i!=="-"){if(checkAllAliases(i,y.arrays)){e=eatArray(e,i,s)}else if(checkAllAliases(i,y.nargs)!==false){e=eatNargs(e,i,s)}else{l=s[e+1];if(l!==undefined&&(!/^(-|--)[^-]/.test(l)||l.match(b))&&!checkAllAliases(i,y.bools)&&!checkAllAliases(i,y.counts)){setArg(i,l);e++}else if(/^(true|false)$/.test(l)){setArg(i,l);e++}else{setArg(i,defaultValue(i))}}}}else if(t.match(/^-[0-9]$/)&&t.match(b)&&checkAllAliases(t.slice(1),y.bools)){i=t.slice(1);setArg(i,defaultValue(i))}else if(t==="--"){O=s.slice(e+1);break}else if(c["halt-at-non-option"]){O=s.slice(e);break}else{pushPositional(t)}}applyEnvVars(j,true);applyEnvVars(j,false);setConfig(j);setConfigObjects();applyDefaultsAndAliases(j,y.aliases,l,true);applyCoercions(j);if(c["set-placeholder-key"])setPlaceholderKeys(j);Object.keys(y.counts).forEach((function(e){if(!hasKey(j,e.split(".")))setArg(e,0)}));if(p&&O.length)j[h]=[];O.forEach((function(e){j[h].push(e)}));if(c["camel-case-expansion"]&&c["strip-dashed"]){Object.keys(j).filter((e=>e!=="--"&&e.includes("-"))).forEach((e=>{delete j[e]}))}if(c["strip-aliased"]){[].concat(...Object.keys(i).map((e=>i[e]))).forEach((e=>{if(c["camel-case-expansion"]&&e.includes("-")){delete j[e.split(".").map((e=>camelCase(e))).join(".")]}delete j[e]}))}function pushPositional(e){const t=maybeCoerceNumber("_",e);if(typeof t==="string"||typeof t==="number"){j._.push(t)}}function eatNargs(e,t,n,s){let r;let i=checkAllAliases(t,y.nargs);i=typeof i!=="number"||isNaN(i)?1:i;if(i===0){if(!isUndefined(s)){k=Error(g("Argument unexpected for: %s",t))}setArg(t,defaultValue(t));return e}let a=isUndefined(s)?0:1;if(c["nargs-eats-options"]){if(n.length-(e+1)+a<i){k=Error(g("Not enough arguments following: %s",t))}a=i}else{for(r=e+1;r<n.length;r++){if(!n[r].match(/^-[^0-9]/)||n[r].match(b)||isUnknownOptionAsArg(n[r]))a++;else break}if(a<i)k=Error(g("Not enough arguments following: %s",t))}let o=Math.min(a,i);if(!isUndefined(s)&&o>0){setArg(t,s);o--}for(r=e+1;r<o+e+1;r++){setArg(t,n[r])}return e+o}function eatArray(e,t,n,s){let i=[];let a=s||n[e+1];const o=checkAllAliases(t,y.nargs);if(checkAllAliases(t,y.bools)&&!/^(true|false)$/.test(a)){i.push(true)}else if(isUndefined(a)||isUndefined(s)&&/^-/.test(a)&&!b.test(a)&&!isUnknownOptionAsArg(a)){if(l[t]!==undefined){const e=l[t];i=Array.isArray(e)?e:[e]}}else{if(!isUndefined(s)){i.push(processValue(t,s,true))}for(let s=e+1;s<n.length;s++){if(!c["greedy-arrays"]&&i.length>0||o&&typeof o==="number"&&i.length>=o)break;a=n[s];if(/^-/.test(a)&&!b.test(a)&&!isUnknownOptionAsArg(a))break;e=s;i.push(processValue(t,a,r))}}if(typeof o==="number"&&(o&&i.length<o||isNaN(o)&&i.length===0)){k=Error(g("Not enough arguments following: %s",t))}setArg(t,i);return e}function setArg(e,t,n=r){if(/-/.test(e)&&c["camel-case-expansion"]){const t=e.split(".").map((function(e){return camelCase(e)})).join(".");addNewAlias(e,t)}const s=processValue(e,t,n);const i=e.split(".");setKey(j,i,s);if(y.aliases[e]){y.aliases[e].forEach((function(e){const t=e.split(".");setKey(j,t,s)}))}if(i.length>1&&c["dot-notation"]){(y.aliases[i[0]]||[]).forEach((function(t){let n=t.split(".");const r=[].concat(i);r.shift();n=n.concat(r);if(!(y.aliases[e]||[]).includes(n.join("."))){setKey(j,n,s)}}))}if(checkAllAliases(e,y.normalize)&&!checkAllAliases(e,y.arrays)){const n=[e].concat(y.aliases[e]||[]);n.forEach((function(e){Object.defineProperty(E,e,{enumerable:true,get(){return t},set(e){t=typeof e==="string"?o.normalize(e):e}})}))}}function addNewAlias(e,t){if(!(y.aliases[e]&&y.aliases[e].length)){y.aliases[e]=[t];A[t]=true}if(!(y.aliases[t]&&y.aliases[t].length)){addNewAlias(t,e)}}function processValue(e,t,n){if(n){t=stripQuotes(t)}if(checkAllAliases(e,y.bools)||checkAllAliases(e,y.counts)){if(typeof t==="string")t=t==="true"}let s=Array.isArray(t)?t.map((function(t){return maybeCoerceNumber(e,t)})):maybeCoerceNumber(e,t);if(checkAllAliases(e,y.counts)&&(isUndefined(s)||typeof s==="boolean")){s=increment()}if(checkAllAliases(e,y.normalize)&&checkAllAliases(e,y.arrays)){if(Array.isArray(t))s=t.map((e=>o.normalize(e)));else s=o.normalize(t)}return s}function maybeCoerceNumber(e,t){if(!c["parse-positional-numbers"]&&e==="_")return t;if(!checkAllAliases(e,y.strings)&&!checkAllAliases(e,y.bools)&&!Array.isArray(t)){const n=looksLikeNumber(t)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)));if(n||!isUndefined(t)&&checkAllAliases(e,y.numbers)){t=Number(t)}}return t}function setConfig(e){const t=Object.create(null);applyDefaultsAndAliases(t,y.aliases,l);Object.keys(y.configs).forEach((function(n){const s=e[n]||t[n];if(s){try{let e=null;const t=o.resolve(o.cwd(),s);const r=y.configs[n];if(typeof r==="function"){try{e=r(t)}catch(t){e=t}if(e instanceof Error){k=e;return}}else{e=o.require(t)}setConfigObject(e)}catch(t){if(t.name==="PermissionDenied")k=t;else if(e[n])k=Error(g("Invalid JSON config file: %s",s))}}}))}function setConfigObject(e,t){Object.keys(e).forEach((function(n){const s=e[n];const r=t?t+"."+n:n;if(typeof s==="object"&&s!==null&&!Array.isArray(s)&&c["dot-notation"]){setConfigObject(s,r)}else{if(!hasKey(j,r.split("."))||checkAllAliases(r,y.arrays)&&c["combine-arrays"]){setArg(r,s)}}}))}function setConfigObjects(){if(typeof f!=="undefined"){f.forEach((function(e){setConfigObject(e)}))}}function applyEnvVars(e,t){if(typeof u==="undefined")return;const n=typeof u==="string"?u:"";const s=o.env();Object.keys(s).forEach((function(r){if(n===""||r.lastIndexOf(n,0)===0){const i=r.split("__").map((function(e,t){if(t===0){e=e.substring(n.length)}return camelCase(e)}));if((t&&y.configs[i.join(".")]||!t)&&!hasKey(e,i)){setArg(i.join("."),s[r])}}}))}function applyCoercions(e){let t;const n=new Set;Object.keys(e).forEach((function(s){if(!n.has(s)){t=checkAllAliases(s,y.coercions);if(typeof t==="function"){try{const r=maybeCoerceNumber(s,t(e[s]));[].concat(y.aliases[s]||[],s).forEach((t=>{n.add(t);e[t]=r}))}catch(e){k=e}}}}))}function setPlaceholderKeys(e){y.keys.forEach((t=>{if(~t.indexOf("."))return;if(typeof e[t]==="undefined")e[t]=undefined}));return e}function applyDefaultsAndAliases(e,t,n,s=false){Object.keys(n).forEach((function(r){if(!hasKey(e,r.split("."))){setKey(e,r.split("."),n[r]);if(s)d[r]=true;(t[r]||[]).forEach((function(t){if(hasKey(e,t.split(".")))return;setKey(e,t.split("."),n[r])}))}}))}function hasKey(e,t){let n=e;if(!c["dot-notation"])t=[t.join(".")];t.slice(0,-1).forEach((function(e){n=n[e]||{}}));const s=t[t.length-1];if(typeof n!=="object")return false;else return s in n}function setKey(e,t,n){let s=e;if(!c["dot-notation"])t=[t.join(".")];t.slice(0,-1).forEach((function(e){e=sanitizeKey(e);if(typeof s==="object"&&s[e]===undefined){s[e]={}}if(typeof s[e]!=="object"||Array.isArray(s[e])){if(Array.isArray(s[e])){s[e].push({})}else{s[e]=[s[e],{}]}s=s[e][s[e].length-1]}else{s=s[e]}}));const r=sanitizeKey(t[t.length-1]);const i=checkAllAliases(t.join("."),y.arrays);const a=Array.isArray(n);let o=c["duplicate-arguments-array"];if(!o&&checkAllAliases(r,y.nargs)){o=true;if(!isUndefined(s[r])&&y.nargs[r]===1||Array.isArray(s[r])&&s[r].length===y.nargs[r]){s[r]=undefined}}if(n===increment()){s[r]=increment(s[r])}else if(Array.isArray(s[r])){if(o&&i&&a){s[r]=c["flatten-duplicate-arrays"]?s[r].concat(n):(Array.isArray(s[r][0])?s[r]:[s[r]]).concat([n])}else if(!o&&Boolean(i)===Boolean(a)){s[r]=n}else{s[r]=s[r].concat([n])}}else if(s[r]===undefined&&i){s[r]=a?n:[n]}else if(o&&!(s[r]===undefined||checkAllAliases(r,y.counts)||checkAllAliases(r,y.bools))){s[r]=[s[r],n]}else{s[r]=n}}function extendAliases(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){if(y.aliases[e])return;y.aliases[e]=[].concat(i[e]||[]);y.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&c["camel-case-expansion"]){const n=camelCase(t);if(n!==e&&y.aliases[e].indexOf(n)===-1){y.aliases[e].push(n);A[n]=true}}}));y.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&c["camel-case-expansion"]){const n=decamelize(t,"-");if(n!==e&&y.aliases[e].indexOf(n)===-1){y.aliases[e].push(n);A[n]=true}}}));y.aliases[e].forEach((function(t){y.aliases[t]=[e].concat(y.aliases[e].filter((function(e){return t!==e})))}))}))}))}function checkAllAliases(e,t){const n=[].concat(y.aliases[e]||[],e);const s=Object.keys(t);const r=n.find((e=>s.includes(e)));return r?t[r]:false}function hasAnyFlag(e){const t=Object.keys(y);const n=[].concat(t.map((e=>y[e])));return n.some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function hasFlagsMatching(e,...t){const n=[].concat(...t);return n.some((function(t){const n=e.match(t);return n&&hasAnyFlag(n[1])}))}function hasAllShortFlags(e){if(e.match(b)||!e.match(/^-[^-]+/)){return false}let t=true;let n;const s=e.slice(1).split("");for(let r=0;r<s.length;r++){n=e.slice(r+2);if(!hasAnyFlag(s[r])){t=false;break}if(s[r+1]&&s[r+1]==="="||n==="-"||/[A-Za-z]/.test(s[r])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(n)||s[r+1]&&s[r+1].match(/\W/)){break}}return t}function isUnknownOptionAsArg(e){return c["unknown-options-as-args"]&&isUnknownOption(e)}function isUnknownOption(e){e=e.replace(/^-{3,}/,"--");if(e.match(b)){return false}if(hasAllShortFlags(e)){return false}const t=/^-+([^=]+?)=[\s\S]*$/;const n=/^-+([^=]+?)$/;const s=/^-+([^=]+?)-$/;const r=/^-+([^=]+?\d+)$/;const i=/^-+([^=]+?)\W+.*$/;return!hasFlagsMatching(e,t,m,n,s,r,i)}function defaultValue(e){if(!checkAllAliases(e,y.bools)&&!checkAllAliases(e,y.counts)&&`${e}`in l){return l[e]}else{return defaultForType(guessType(e))}}function defaultForType(e){const t={[a.BOOLEAN]:true,[a.STRING]:"",[a.NUMBER]:undefined,[a.ARRAY]:[]};return t[e]}function guessType(e){let t=a.BOOLEAN;if(checkAllAliases(e,y.strings))t=a.STRING;else if(checkAllAliases(e,y.numbers))t=a.NUMBER;else if(checkAllAliases(e,y.bools))t=a.BOOLEAN;else if(checkAllAliases(e,y.arrays))t=a.ARRAY;return t}function isUndefined(e){return e===undefined}function checkConfiguration(){Object.keys(y.counts).find((e=>{if(checkAllAliases(e,y.arrays)){k=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",e));return true}else if(checkAllAliases(e,y.nargs)){k=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",e));return true}return false}))}return{aliases:Object.assign({},y.aliases),argv:Object.assign(E,j),configuration:c,defaulted:Object.assign({},d),error:k,newAliases:Object.assign({},A)}}}function combineAliases(e){const t=[];const n=Object.create(null);let s=true;Object.keys(e).forEach((function(n){t.push([].concat(e[n],n))}));while(s){s=false;for(let e=0;e<t.length;e++){for(let n=e+1;n<t.length;n++){const r=t[e].filter((function(e){return t[n].indexOf(e)!==-1}));if(r.length){t[e]=t[e].concat(t[n]);t.splice(n,1);s=true;break}}}}t.forEach((function(e){e=e.filter((function(e,t,n){return n.indexOf(e)===t}));const t=e.pop();if(t!==undefined&&typeof t==="string"){n[t]=e}}));return n}function increment(e){return e!==undefined?e+1:1}function sanitizeKey(e){if(e==="__proto__")return"___proto___";return e}function stripQuotes(e){return typeof e==="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}const c=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12;if(process&&process.version){const e=Number(process.version.match(/v([^.]+)/)[1]);if(e<c){throw Error(`yargs parser supports a minimum Node.js version of ${c}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}}const l=process?process.env:{};const f=new YargsParser({cwd:process.cwd,env:()=>l,format:s.format,normalize:r.normalize,resolve:r.resolve,require:e=>{if(true){return n(274)(e)}else{}}});const u=function Parser(e,t){const n=f.parse(e.slice(),t);return n.argv};u.detailed=function(e,t){return f.parse(e.slice(),t)};u.camelCase=camelCase;u.decamelize=decamelize;u.looksLikeNumber=looksLikeNumber;e.exports=u}};var t={};function __nccwpck_require__(n){var s=t[n];if(s!==undefined){return s.exports}var r=t[n]={exports:{}};var i=true;try{e[n](r,r.exports,__nccwpck_require__);i=false}finally{if(i)delete t[n]}return r.exports}!function(){__nccwpck_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(109);module.exports=n})();
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/npmClient.js CHANGED
@@ -31,8 +31,8 @@ const checkNpmClient = (npmClient) => {
31
31
  };
32
32
  exports.checkNpmClient = checkNpmClient;
33
33
  const installWithNpmClient = ({ npmClient, cwd, }) => {
34
- const { spawnSync } = require('child_process');
35
- const npm = spawnSync(npmClient, [npmClient === 'yarn' ? '' : 'install'], {
34
+ const { sync } = require('../compiled/cross-spawn');
35
+ const npm = sync(npmClient, [npmClient === 'yarn' ? '' : 'install'], {
36
36
  stdio: 'inherit',
37
37
  cwd,
38
38
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/utils",
3
- "version": "4.0.0-rc.3",
3
+ "version": "4.0.0-rc.4",
4
4
  "homepage": "https://github.com/umijs/umi-next/tree/master/packages/utils#readme",
5
5
  "bugs": "https://github.com/umijs/umi-next/issues",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "@types/color": "3.0.3",
27
27
  "@types/cross-spawn": "6.0.2",
28
28
  "@types/debug": "4.1.7",
29
- "@types/lodash": "4.14.178",
29
+ "@types/lodash": "4.14.179",
30
30
  "@types/mustache": "4.1.2",
31
31
  "@types/prompts": "^2.0.14",
32
32
  "@types/rimraf": "3.0.2",
@@ -40,7 +40,7 @@
40
40
  "debug": "4.3.3",
41
41
  "deepmerge": "4.2.2",
42
42
  "execa": "6.1.0",
43
- "fs-extra": "10.0.0",
43
+ "fs-extra": "10.0.1",
44
44
  "glob": "7.2.0",
45
45
  "import-lazy": "4.0.0",
46
46
  "lodash": "4.17.21",
@@ -54,7 +54,7 @@
54
54
  "rimraf": "3.0.2",
55
55
  "semver": "7.3.5",
56
56
  "strip-ansi": "7.0.1",
57
- "yargs-parser": "21.0.0"
57
+ "yargs-parser": "21.0.1"
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public"
@@ -1,20 +0,0 @@
1
- import type * as fsStat from '../../../@nodelib/fs.stat';
2
- import type { Dirent, ErrnoException } from '../types';
3
- export interface ReaddirAsynchronousMethod {
4
- (filepath: string, options: {
5
- withFileTypes: true;
6
- }, callback: (error: ErrnoException | null, files: Dirent[]) => void): void;
7
- (filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void;
8
- }
9
- export interface ReaddirSynchronousMethod {
10
- (filepath: string, options: {
11
- withFileTypes: true;
12
- }): Dirent[];
13
- (filepath: string): string[];
14
- }
15
- export declare type FileSystemAdapter = fsStat.FileSystemAdapter & {
16
- readdir: ReaddirAsynchronousMethod;
17
- readdirSync: ReaddirSynchronousMethod;
18
- };
19
- export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
20
- export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
@@ -1,12 +0,0 @@
1
- import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs';
2
- import * as async from './providers/async';
3
- import Settings, { Options } from './settings';
4
- import type { Dirent, Entry } from './types';
5
- declare type AsyncCallback = async.AsyncCallback;
6
- declare function scandir(path: string, callback: AsyncCallback): void;
7
- declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
8
- declare namespace scandir {
9
- function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
10
- }
11
- declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[];
12
- export { scandir, scandirSync, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod, Options };
@@ -1,7 +0,0 @@
1
- /// <reference types="node" />
2
- import type Settings from '../settings';
3
- import type { Entry } from '../types';
4
- export declare type AsyncCallback = (error: NodeJS.ErrnoException, entries: Entry[]) => void;
5
- export declare function read(directory: string, settings: Settings, callback: AsyncCallback): void;
6
- export declare function readdirWithFileTypes(directory: string, settings: Settings, callback: AsyncCallback): void;
7
- export declare function readdir(directory: string, settings: Settings, callback: AsyncCallback): void;
@@ -1,20 +0,0 @@
1
- import * as fsStat from '../../@nodelib/fs.stat';
2
- import * as fs from './adapters/fs';
3
- export interface Options {
4
- followSymbolicLinks?: boolean;
5
- fs?: Partial<fs.FileSystemAdapter>;
6
- pathSegmentSeparator?: string;
7
- stats?: boolean;
8
- throwErrorOnBrokenSymbolicLink?: boolean;
9
- }
10
- export default class Settings {
11
- private readonly _options;
12
- readonly followSymbolicLinks: boolean;
13
- readonly fs: fs.FileSystemAdapter;
14
- readonly pathSegmentSeparator: string;
15
- readonly stats: boolean;
16
- readonly throwErrorOnBrokenSymbolicLink: boolean;
17
- readonly fsStatSettings: fsStat.Settings;
18
- constructor(_options?: Options);
19
- private _getValue;
20
- }
@@ -1,20 +0,0 @@
1
- /// <reference types="node" />
2
- import type * as fs from 'fs';
3
- export interface Entry {
4
- dirent: Dirent;
5
- name: string;
6
- path: string;
7
- stats?: Stats;
8
- }
9
- export declare type Stats = fs.Stats;
10
- export declare type ErrnoException = NodeJS.ErrnoException;
11
- export interface Dirent {
12
- isBlockDevice: () => boolean;
13
- isCharacterDevice: () => boolean;
14
- isDirectory: () => boolean;
15
- isFIFO: () => boolean;
16
- isFile: () => boolean;
17
- isSocket: () => boolean;
18
- isSymbolicLink: () => boolean;
19
- name: string;
20
- }
@@ -1,13 +0,0 @@
1
- /// <reference types="node" />
2
- import * as fs from 'fs';
3
- import type { ErrnoException } from '../types';
4
- export declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException | null, stats: fs.Stats) => void) => void;
5
- export declare type StatSynchronousMethod = (path: string) => fs.Stats;
6
- export interface FileSystemAdapter {
7
- lstat: StatAsynchronousMethod;
8
- stat: StatAsynchronousMethod;
9
- lstatSync: StatSynchronousMethod;
10
- statSync: StatSynchronousMethod;
11
- }
12
- export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
13
- export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
@@ -1,12 +0,0 @@
1
- import type { FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod } from './adapters/fs';
2
- import * as async from './providers/async';
3
- import Settings, { Options } from './settings';
4
- import type { Stats } from './types';
5
- declare type AsyncCallback = async.AsyncCallback;
6
- declare function stat(path: string, callback: AsyncCallback): void;
7
- declare function stat(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
8
- declare namespace stat {
9
- function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Stats>;
10
- }
11
- declare function statSync(path: string, optionsOrSettings?: Options | Settings): Stats;
12
- export { Settings, stat, statSync, AsyncCallback, FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod, Options, Stats };
@@ -1,4 +0,0 @@
1
- import type Settings from '../settings';
2
- import type { ErrnoException, Stats } from '../types';
3
- export declare type AsyncCallback = (error: ErrnoException, stats: Stats) => void;
4
- export declare function read(path: string, settings: Settings, callback: AsyncCallback): void;
@@ -1,16 +0,0 @@
1
- import * as fs from './adapters/fs';
2
- export interface Options {
3
- followSymbolicLink?: boolean;
4
- fs?: Partial<fs.FileSystemAdapter>;
5
- markSymbolicLink?: boolean;
6
- throwErrorOnBrokenSymbolicLink?: boolean;
7
- }
8
- export default class Settings {
9
- private readonly _options;
10
- readonly followSymbolicLink: boolean;
11
- readonly fs: fs.FileSystemAdapter;
12
- readonly markSymbolicLink: boolean;
13
- readonly throwErrorOnBrokenSymbolicLink: boolean;
14
- constructor(_options?: Options);
15
- private _getValue;
16
- }
@@ -1,4 +0,0 @@
1
- /// <reference types="node" />
2
- import type * as fs from 'fs';
3
- export declare type Stats = fs.Stats;
4
- export declare type ErrnoException = NodeJS.ErrnoException;
@@ -1,14 +0,0 @@
1
- /// <reference types="node" />
2
- import type { Readable } from 'stream';
3
- import type { Dirent, FileSystemAdapter } from '../../@nodelib/fs.scandir';
4
- import { AsyncCallback } from './providers/async';
5
- import Settings, { DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction, Options } from './settings';
6
- import type { Entry } from './types';
7
- declare function walk(directory: string, callback: AsyncCallback): void;
8
- declare function walk(directory: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
9
- declare namespace walk {
10
- function __promisify__(directory: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
11
- }
12
- declare function walkSync(directory: string, optionsOrSettings?: Options | Settings): Entry[];
13
- declare function walkStream(directory: string, optionsOrSettings?: Options | Settings): Readable;
14
- export { walk, walkSync, walkStream, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, Options, DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction };
@@ -1,12 +0,0 @@
1
- import AsyncReader from '../readers/async';
2
- import type Settings from '../settings';
3
- import type { Entry, Errno } from '../types';
4
- export declare type AsyncCallback = (error: Errno, entries: Entry[]) => void;
5
- export default class AsyncProvider {
6
- private readonly _root;
7
- private readonly _settings;
8
- protected readonly _reader: AsyncReader;
9
- private readonly _storage;
10
- constructor(_root: string, _settings: Settings);
11
- read(callback: AsyncCallback): void;
12
- }