@umijs/utils 4.0.42 → 4.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/filesize/LICENSE +28 -28
- package/compiled/filesize/index.js +3 -4
- package/compiled/filesize/package.json +1 -1
- package/compiled/filesize/types/filesize.d.ts +46 -0
- package/compiled/fs-extra/index.d.ts +922 -476
- package/compiled/fs-extra/index.js +1 -1
- package/compiled/fs-extra/jsonfile/index.d.ts +78 -0
- package/compiled/fs-extra/package.json +1 -1
- package/compiled/glob/index.d.ts +1 -1
- package/compiled/glob/index.js +1 -1
- package/compiled/glob/package.json +1 -1
- package/compiled/gzip-size/index.d.ts +88 -81
- package/compiled/gzip-size/index.js +1 -1
- package/compiled/gzip-size/package.json +1 -1
- package/compiled/portfinder/index.js +1 -1
- package/compiled/portfinder/lib/portfinder.d.ts +16 -1
- package/compiled/portfinder/package.json +1 -1
- package/compiled/semver/classes/range.d.ts +1 -1
- package/compiled/semver/classes/semver.d.ts +1 -1
- package/compiled/semver/functions/compare-build.d.ts +6 -1
- package/compiled/semver/functions/diff.d.ts +1 -5
- package/compiled/semver/functions/satisfies.d.ts +1 -1
- package/compiled/semver/index.d.ts +3 -0
- package/compiled/semver/index.js +1 -1
- package/compiled/semver/package.json +1 -1
- package/compiled/semver/ranges/gtr.d.ts +1 -1
- package/compiled/semver/ranges/intersects.d.ts +1 -1
- package/compiled/semver/ranges/ltr.d.ts +1 -1
- package/compiled/semver/ranges/max-satisfying.d.ts +1 -1
- package/compiled/semver/ranges/min-satisfying.d.ts +1 -1
- package/compiled/semver/ranges/outside.d.ts +1 -1
- package/compiled/semver/ranges/subset.d.ts +1 -5
- package/compiled/semver/ranges/valid.d.ts +1 -1
- package/compiled/yargs-parser/index.js +1 -1
- package/compiled/yargs-parser/package.json +1 -1
- package/dist/aliasUtils/getAliasValue.d.ts +4 -0
- package/dist/aliasUtils/getAliasValue.js +62 -0
- package/dist/aliasUtils/index.d.ts +2 -0
- package/dist/aliasUtils/index.js +32 -0
- package/dist/aliasUtils/parseCircleAlias.d.ts +4 -0
- package/dist/aliasUtils/parseCircleAlias.js +66 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.js +14 -7
- package/dist/isMonorepo.d.ts +5 -0
- package/dist/isMonorepo.js +43 -0
- package/package.json +16 -14
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(){var e={659:function(e,t,n){"use strict";const r=n(127);const i=n(17);const o=n(932).mkdirsSync;const c=n(758).utimesMillisSync;const s=n(913);function copySync(e,t,n){if(typeof n==="function"){n={filter:n}}n=n||{};n.clobber="clobber"in n?!!n.clobber:true;n.overwrite="overwrite"in n?!!n.overwrite:n.clobber;if(n.preserveTimestamps&&process.arch==="ia32"){process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n"+"\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002")}const{srcStat:c,destStat:a}=s.checkPathsSync(e,t,"copy",n);s.checkParentPathsSync(e,c,t,"copy");if(n.filter&&!n.filter(e,t))return;const u=i.dirname(t);if(!r.existsSync(u))o(u);return getStats(a,e,t,n)}function getStats(e,t,n,i){const o=i.dereference?r.statSync:r.lstatSync;const c=o(t);if(c.isDirectory())return onDir(c,e,t,n,i);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,n,i);else if(c.isSymbolicLink())return onLink(e,t,n,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,n,r,i){if(!t)return copyFile(e,n,r,i);return mayCopyFile(e,n,r,i)}function mayCopyFile(e,t,n,i){if(i.overwrite){r.unlinkSync(n);return copyFile(e,t,n,i)}else if(i.errorOnExist){throw new Error(`'${n}' already exists`)}}function copyFile(e,t,n,i){r.copyFileSync(t,n);if(i.preserveTimestamps)handleTimestamps(e.mode,t,n);return setDestMode(n,e.mode)}function handleTimestamps(e,t,n){if(fileIsNotWritable(e))makeFileWritable(n,e);return setDestTimestamps(t,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return r.chmodSync(e,t)}function setDestTimestamps(e,t){const n=r.statSync(e);return c(t,n.atime,n.mtime)}function onDir(e,t,n,r,i){if(!t)return mkDirAndCopy(e.mode,n,r,i);return copyDir(n,r,i)}function mkDirAndCopy(e,t,n,i){r.mkdirSync(n);copyDir(t,n,i);return setDestMode(n,e)}function copyDir(e,t,n){r.readdirSync(e).forEach((r=>copyDirItem(r,e,t,n)))}function copyDirItem(e,t,n,r){const o=i.join(t,e);const c=i.join(n,e);if(r.filter&&!r.filter(o,c))return;const{destStat:a}=s.checkPathsSync(o,c,"copy",r);return getStats(a,o,c,r)}function onLink(e,t,n,o){let c=r.readlinkSync(t);if(o.dereference){c=i.resolve(process.cwd(),c)}if(!e){return r.symlinkSync(c,n)}else{let e;try{e=r.readlinkSync(n)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return r.symlinkSync(c,n);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(s.isSrcSubdir(e,c)){throw new Error(`Cannot overwrite '${e}' with '${c}'.`)}return copyLink(c,n)}}function copyLink(e,t){r.unlinkSync(t);return r.symlinkSync(e,t)}e.exports=copySync},796:function(e,t,n){"use strict";const r=n(127);const i=n(17);const o=n(932).mkdirs;const c=n(949).pathExists;const s=n(758).utimesMillis;const a=n(913);function copy(e,t,n,r){if(typeof n==="function"&&!r){r=n;n={}}else if(typeof n==="function"){n={filter:n}}r=r||function(){};n=n||{};n.clobber="clobber"in n?!!n.clobber:true;n.overwrite="overwrite"in n?!!n.overwrite:n.clobber;if(n.preserveTimestamps&&process.arch==="ia32"){process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n"+"\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001")}a.checkPaths(e,t,"copy",n,((i,o)=>{if(i)return r(i);const{srcStat:c,destStat:s}=o;a.checkParentPaths(e,c,t,"copy",(i=>{if(i)return r(i);runFilter(e,t,n,((i,o)=>{if(i)return r(i);if(!o)return r();checkParentDir(s,e,t,n,r)}))}))}))}function checkParentDir(e,t,n,r,s){const a=i.dirname(n);c(a,((i,c)=>{if(i)return s(i);if(c)return getStats(e,t,n,r,s);o(a,(i=>{if(i)return s(i);return getStats(e,t,n,r,s)}))}))}function runFilter(e,t,n,r){if(!n.filter)return r(null,true);Promise.resolve(n.filter(e,t)).then((e=>r(null,e)),(e=>r(e)))}function getStats(e,t,n,i,o){const c=i.dereference?r.stat:r.lstat;c(t,((r,c)=>{if(r)return o(r);if(c.isDirectory())return onDir(c,e,t,n,i,o);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,n,i,o);else if(c.isSymbolicLink())return onLink(e,t,n,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,n,r,i,o){if(!t)return copyFile(e,n,r,i,o);return mayCopyFile(e,n,r,i,o)}function mayCopyFile(e,t,n,i,o){if(i.overwrite){r.unlink(n,(r=>{if(r)return o(r);return copyFile(e,t,n,i,o)}))}else if(i.errorOnExist){return o(new Error(`'${n}' already exists`))}else return o()}function copyFile(e,t,n,i,o){r.copyFile(t,n,(r=>{if(r)return o(r);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,t,n,o);return setDestMode(n,e.mode,o)}))}function handleTimestampsAndMode(e,t,n,r){if(fileIsNotWritable(e)){return makeFileWritable(n,e,(i=>{if(i)return r(i);return setDestTimestampsAndMode(e,t,n,r)}))}return setDestTimestampsAndMode(e,t,n,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t,n){return setDestMode(e,t|128,n)}function setDestTimestampsAndMode(e,t,n,r){setDestTimestamps(t,n,(t=>{if(t)return r(t);return setDestMode(n,e,r)}))}function setDestMode(e,t,n){return r.chmod(e,t,n)}function setDestTimestamps(e,t,n){r.stat(e,((e,r)=>{if(e)return n(e);return s(t,r.atime,r.mtime,n)}))}function onDir(e,t,n,r,i,o){if(!t)return mkDirAndCopy(e.mode,n,r,i,o);return copyDir(n,r,i,o)}function mkDirAndCopy(e,t,n,i,o){r.mkdir(n,(r=>{if(r)return o(r);copyDir(t,n,i,(t=>{if(t)return o(t);return setDestMode(n,e,o)}))}))}function copyDir(e,t,n,i){r.readdir(e,((r,o)=>{if(r)return i(r);return copyDirItems(o,e,t,n,i)}))}function copyDirItems(e,t,n,r,i){const o=e.pop();if(!o)return i();return copyDirItem(e,o,t,n,r,i)}function copyDirItem(e,t,n,r,o,c){const s=i.join(n,t);const u=i.join(r,t);runFilter(s,u,o,((t,i)=>{if(t)return c(t);if(!i)return copyDirItems(e,n,r,o,c);a.checkPaths(s,u,"copy",o,((t,i)=>{if(t)return c(t);const{destStat:a}=i;getStats(a,s,u,o,(t=>{if(t)return c(t);return copyDirItems(e,n,r,o,c)}))}))}))}function onLink(e,t,n,o,c){r.readlink(t,((t,s)=>{if(t)return c(t);if(o.dereference){s=i.resolve(process.cwd(),s)}if(!e){return r.symlink(s,n,c)}else{r.readlink(n,((e,t)=>{if(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return r.symlink(s,n,c);return c(e)}if(o.dereference){t=i.resolve(process.cwd(),t)}if(a.isSrcSubdir(s,t)){return c(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${t}'.`))}if(a.isSrcSubdir(t,s)){return c(new Error(`Cannot overwrite '${t}' with '${s}'.`))}return copyLink(s,n,c)}))}}))}function copyLink(e,t,n){r.unlink(t,(i=>{if(i)return n(i);return r.symlink(e,t,n)}))}e.exports=copy},80:function(e,t,n){"use strict";const r=n(5).fromCallback;e.exports={copy:r(n(796)),copySync:n(659)}},116:function(e,t,n){"use strict";const r=n(5).fromPromise;const i=n(463);const o=n(17);const c=n(932);const s=n(655);const a=r((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}},169:function(e,t,n){"use strict";const r=n(5).fromCallback;const i=n(17);const o=n(127);const c=n(932);function createFile(e,t){function makeFile(){o.writeFile(e,"",(e=>{if(e)return t(e);t()}))}o.stat(e,((n,r)=>{if(!n&&r.isFile())return t();const s=i.dirname(e);o.stat(s,((e,n)=>{if(e){if(e.code==="ENOENT"){return c.mkdirs(s,(e=>{if(e)return t(e);makeFile()}))}return t(e)}if(n.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 n=i.dirname(e);try{if(!o.statSync(n).isDirectory()){o.readdirSync(n)}}catch(e){if(e&&e.code==="ENOENT")c.mkdirsSync(n);else throw e}o.writeFileSync(e,"")}e.exports={createFile:r(createFile),createFileSync:createFileSync}},262:function(e,t,n){"use strict";const{createFile:r,createFileSync:i}=n(169);const{createLink:o,createLinkSync:c}=n(331);const{createSymlink:s,createSymlinkSync:a}=n(258);e.exports={createFile:r,createFileSync:i,ensureFile:r,ensureFileSync:i,createLink:o,createLinkSync:c,ensureLink:o,ensureLinkSync:c,createSymlink:s,createSymlinkSync:a,ensureSymlink:s,ensureSymlinkSync:a}},331:function(e,t,n){"use strict";const r=n(5).fromCallback;const i=n(17);const o=n(127);const c=n(932);const s=n(949).pathExists;const{areIdentical:a}=n(913);function createLink(e,t,n){function makeLink(e,t){o.link(e,t,(e=>{if(e)return n(e);n(null)}))}o.lstat(t,((r,u)=>{o.lstat(e,((r,o)=>{if(r){r.message=r.message.replace("lstat","ensureLink");return n(r)}if(u&&a(o,u))return n(null);const f=i.dirname(t);s(f,((r,i)=>{if(r)return n(r);if(i)return makeLink(e,t);c.mkdirs(f,(r=>{if(r)return n(r);makeLink(e,t)}))}))}))}))}function createLinkSync(e,t){let n;try{n=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(n&&a(t,n))return}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const r=i.dirname(t);const s=o.existsSync(r);if(s)return o.linkSync(e,t);c.mkdirsSync(r);return o.linkSync(e,t)}e.exports={createLink:r(createLink),createLinkSync:createLinkSync}},97:function(e,t,n){"use strict";const r=n(17);const i=n(127);const o=n(949).pathExists;function symlinkPaths(e,t,n){if(r.isAbsolute(e)){return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return n(t)}return n(null,{toCwd:e,toDst:e})}))}else{const c=r.dirname(t);const s=r.join(c,e);return o(s,((t,o)=>{if(t)return n(t);if(o){return n(null,{toCwd:s,toDst:e})}else{return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return n(t)}return n(null,{toCwd:e,toDst:r.relative(c,e)})}))}}))}}function symlinkPathsSync(e,t){let n;if(r.isAbsolute(e)){n=i.existsSync(e);if(!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const o=r.dirname(t);const c=r.join(o,e);n=i.existsSync(c);if(n){return{toCwd:c,toDst:e}}else{n=i.existsSync(e);if(!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:r.relative(o,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},944:function(e,t,n){"use strict";const r=n(127);function symlinkType(e,t,n){n=typeof t==="function"?t:n;t=typeof t==="function"?false:t;if(t)return n(null,t);r.lstat(e,((e,r)=>{if(e)return n(null,"file");t=r&&r.isDirectory()?"dir":"file";n(null,t)}))}function symlinkTypeSync(e,t){let n;if(t)return t;try{n=r.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},258:function(e,t,n){"use strict";const r=n(5).fromCallback;const i=n(17);const o=n(463);const c=n(932);const s=c.mkdirs;const a=c.mkdirsSync;const u=n(97);const f=u.symlinkPaths;const l=u.symlinkPathsSync;const y=n(944);const p=y.symlinkType;const m=y.symlinkTypeSync;const d=n(949).pathExists;const{areIdentical:h}=n(913);function createSymlink(e,t,n,r){r=typeof n==="function"?n:r;n=typeof n==="function"?false:n;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 r(null);_createSymlink(e,t,n,r)}))}else _createSymlink(e,t,n,r)}))}function _createSymlink(e,t,n,r){f(e,t,((c,a)=>{if(c)return r(c);e=a.toDst;p(a.toCwd,n,((n,c)=>{if(n)return r(n);const a=i.dirname(t);d(a,((n,i)=>{if(n)return r(n);if(i)return o.symlink(e,t,c,r);s(a,(n=>{if(n)return r(n);o.symlink(e,t,c,r)}))}))}))}))}function createSymlinkSync(e,t,n){let r;try{r=o.lstatSync(t)}catch{}if(r&&r.isSymbolicLink()){const n=o.statSync(e);const r=o.statSync(t);if(h(n,r))return}const c=l(e,t);e=c.toDst;n=m(c.toCwd,n);const s=i.dirname(t);const u=o.existsSync(s);if(u)return o.symlinkSync(e,t,n);a(s);return o.symlinkSync(e,t,n)}e.exports={createSymlink:r(createSymlink),createSymlinkSync:createSymlinkSync}},463:function(e,t,n){"use strict";const r=n(5).fromCallback;const i=n(127);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]=r(i[e])}));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,n,r,o,c){if(typeof c==="function"){return i.read(e,t,n,r,o,c)}return new Promise(((c,s)=>{i.read(e,t,n,r,o,((e,t,n)=>{if(e)return s(e);c({bytesRead:t,buffer:n})}))}))};t.write=function(e,t,...n){if(typeof n[n.length-1]==="function"){return i.write(e,t,...n)}return new Promise(((r,o)=>{i.write(e,t,...n,((e,t,n)=>{if(e)return o(e);r({bytesWritten:t,buffer:n})}))}))};t.readv=function(e,t,...n){if(typeof n[n.length-1]==="function"){return i.readv(e,t,...n)}return new Promise(((r,o)=>{i.readv(e,t,...n,((e,t,n)=>{if(e)return o(e);r({bytesRead:t,buffers:n})}))}))};t.writev=function(e,t,...n){if(typeof n[n.length-1]==="function"){return i.writev(e,t,...n)}return new Promise(((r,o)=>{i.writev(e,t,...n,((e,t,n)=>{if(e)return o(e);r({bytesWritten:t,buffers:n})}))}))};if(typeof i.realpath.native==="function"){t.realpath.native=r(i.realpath.native)}else{process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}},579:function(e,t,n){"use strict";e.exports={...n(463),...n(80),...n(116),...n(262),...n(298),...n(932),...n(149),...n(451),...n(949),...n(655)}},298:function(e,t,n){"use strict";const r=n(5).fromPromise;const i=n(317);i.outputJson=r(n(234));i.outputJsonSync=n(297);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},317:function(e,t,n){"use strict";const r=n(654);e.exports={readJson:r.readFile,readJsonSync:r.readFileSync,writeJson:r.writeFile,writeJsonSync:r.writeFileSync}},297:function(e,t,n){"use strict";const{stringify:r}=n(208);const{outputFileSync:i}=n(451);function outputJsonSync(e,t,n){const o=r(t,n);i(e,o,n)}e.exports=outputJsonSync},234:function(e,t,n){"use strict";const{stringify:r}=n(208);const{outputFile:i}=n(451);async function outputJson(e,t,n={}){const o=r(t,n);await i(e,o,n)}e.exports=outputJson},932:function(e,t,n){"use strict";const r=n(5).fromPromise;const{makeDir:i,makeDirSync:o}=n(768);const c=r(i);e.exports={mkdirs:c,mkdirsSync:o,mkdirp:c,mkdirpSync:o,ensureDir:c,ensureDirSync:o}},768:function(e,t,n){"use strict";const r=n(463);const{checkPath:i}=n(349);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 r.mkdir(e,{mode:getMode(t),recursive:true})};e.exports.makeDirSync=(e,t)=>{i(e);return r.mkdirSync(e,{mode:getMode(t),recursive:true})}},349:function(e,t,n){"use strict";const r=n(17);e.exports.checkPath=function checkPath(e){if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(r.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}}},149:function(e,t,n){"use strict";const r=n(5).fromCallback;e.exports={move:r(n(186)),moveSync:n(663)}},663:function(e,t,n){"use strict";const r=n(127);const i=n(17);const o=n(80).copySync;const c=n(655).removeSync;const s=n(932).mkdirpSync;const a=n(913);function moveSync(e,t,n){n=n||{};const r=n.overwrite||n.clobber||false;const{srcStat:o,isChangingCase:c=false}=a.checkPathsSync(e,t,"move",n);a.checkParentPathsSync(e,o,t,"move");if(!isParentRoot(t))s(i.dirname(t));return doRename(e,t,r,c)}function isParentRoot(e){const t=i.dirname(e);const n=i.parse(t);return n.root===t}function doRename(e,t,n,i){if(i)return rename(e,t,n);if(n){c(t);return rename(e,t,n)}if(r.existsSync(t))throw new Error("dest already exists.");return rename(e,t,n)}function rename(e,t,n){try{r.renameSync(e,t)}catch(r){if(r.code!=="EXDEV")throw r;return moveAcrossDevice(e,t,n)}}function moveAcrossDevice(e,t,n){const r={overwrite:n,errorOnExist:true};o(e,t,r);return c(e)}e.exports=moveSync},186:function(e,t,n){"use strict";const r=n(127);const i=n(17);const o=n(80).copy;const c=n(655).remove;const s=n(932).mkdirp;const a=n(949).pathExists;const u=n(913);function move(e,t,n,r){if(typeof n==="function"){r=n;n={}}n=n||{};const o=n.overwrite||n.clobber||false;u.checkPaths(e,t,"move",n,((n,c)=>{if(n)return r(n);const{srcStat:a,isChangingCase:f=false}=c;u.checkParentPaths(e,a,t,"move",(n=>{if(n)return r(n);if(isParentRoot(t))return doRename(e,t,o,f,r);s(i.dirname(t),(n=>{if(n)return r(n);return doRename(e,t,o,f,r)}))}))}))}function isParentRoot(e){const t=i.dirname(e);const n=i.parse(t);return n.root===t}function doRename(e,t,n,r,i){if(r)return rename(e,t,n,i);if(n){return c(t,(r=>{if(r)return i(r);return rename(e,t,n,i)}))}a(t,((r,o)=>{if(r)return i(r);if(o)return i(new Error("dest already exists."));return rename(e,t,n,i)}))}function rename(e,t,n,i){r.rename(e,t,(r=>{if(!r)return i();if(r.code!=="EXDEV")return i(r);return moveAcrossDevice(e,t,n,i)}))}function moveAcrossDevice(e,t,n,r){const i={overwrite:n,errorOnExist:true};o(e,t,i,(t=>{if(t)return r(t);return c(e,r)}))}e.exports=move},451:function(e,t,n){"use strict";const r=n(5).fromCallback;const i=n(127);const o=n(17);const c=n(932);const s=n(949).pathExists;function outputFile(e,t,n,r){if(typeof n==="function"){r=n;n="utf8"}const a=o.dirname(e);s(a,((o,s)=>{if(o)return r(o);if(s)return i.writeFile(e,t,n,r);c.mkdirs(a,(o=>{if(o)return r(o);i.writeFile(e,t,n,r)}))}))}function outputFileSync(e,...t){const n=o.dirname(e);if(i.existsSync(n)){return i.writeFileSync(e,...t)}c.mkdirsSync(n);i.writeFileSync(e,...t)}e.exports={outputFile:r(outputFile),outputFileSync:outputFileSync}},949:function(e,t,n){"use strict";const r=n(5).fromPromise;const i=n(463);function pathExists(e){return i.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:r(pathExists),pathExistsSync:i.existsSync}},655:function(e,t,n){"use strict";const r=n(127);const i=n(5).fromCallback;function remove(e,t){r.rm(e,{recursive:true,force:true},t)}function removeSync(e){r.rmSync(e,{recursive:true,force:true})}e.exports={remove:i(remove),removeSync:removeSync}},913:function(e,t,n){"use strict";const r=n(463);const i=n(17);const o=n(837);function getStats(e,t,n){const i=n.dereference?e=>r.stat(e,{bigint:true}):e=>r.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,n){let i;const o=n.dereference?e=>r.statSync(e,{bigint:true}):e=>r.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,n,r,c){o.callbackify(getStats)(e,t,r,((r,o)=>{if(r)return c(r);const{srcStat:s,destStat:a}=o;if(a){if(areIdentical(s,a)){const r=i.basename(e);const o=i.basename(t);if(n==="move"&&r!==o&&r.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,n)))}return c(null,{srcStat:s,destStat:a})}))}function checkPathsSync(e,t,n,r){const{srcStat:o,destStat:c}=getStatsSync(e,t,r);if(c){if(areIdentical(o,c)){const r=i.basename(e);const s=i.basename(t);if(n==="move"&&r!==s&&r.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,n))}return{srcStat:o,destStat:c}}function checkParentPaths(e,t,n,o,c){const s=i.resolve(i.dirname(e));const a=i.resolve(i.dirname(n));if(a===s||a===i.parse(a).root)return c();r.stat(a,{bigint:true},((r,i)=>{if(r){if(r.code==="ENOENT")return c();return c(r)}if(areIdentical(t,i)){return c(new Error(errMsg(e,n,o)))}return checkParentPaths(e,t,a,o,c)}))}function checkParentPathsSync(e,t,n,o){const c=i.resolve(i.dirname(e));const s=i.resolve(i.dirname(n));if(s===c||s===i.parse(s).root)return;let a;try{a=r.statSync(s,{bigint:true})}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,a)){throw new Error(errMsg(e,n,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 n=i.resolve(e).split(i.sep).filter((e=>e));const r=i.resolve(t).split(i.sep).filter((e=>e));return n.reduce(((e,t,n)=>e&&r[n]===t),true)}function errMsg(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir,areIdentical:areIdentical}},758:function(e,t,n){"use strict";const r=n(127);function utimesMillis(e,t,n,i){r.open(e,"r+",((e,o)=>{if(e)return i(e);r.futimes(o,t,n,(e=>{r.close(o,(t=>{if(i)i(e||t)}))}))}))}function utimesMillisSync(e,t,n){const i=r.openSync(e,"r+");r.futimesSync(i,t,n);return r.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},132: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 n={__proto__:t(e)};else var n=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}));return n}},127:function(e,t,n){var r=n(147);var i=n(367);var o=n(876);var c=n(132);var s=n(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(!r[a]){var l=global[a]||[];publishQueue(r,l);r.close=function(e){function close(t,n){return e.call(r,t,(function(e){if(!e){resetQueue()}if(typeof n==="function")n.apply(this,arguments)}))}Object.defineProperty(close,u,{value:e});return close}(r.close);r.closeSync=function(e){function closeSync(t){e.apply(r,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(r.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){f(r[a]);n(491).equal(r[a].length,0)}))}}if(!global[a]){publishQueue(global,r[a])}e.exports=patch(c(r));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched){e.exports=patch(r);r.__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,n,r){if(typeof n==="function")r=n,n=null;return go$readFile(e,n,r);function go$readFile(e,n,r,i){return t(e,n,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,n,r],t,i||Date.now(),Date.now()]);else{if(typeof r==="function")r.apply(this,arguments)}}))}}var n=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$writeFile(e,t,r,i);function go$writeFile(e,t,r,i,o){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$writeFile,[e,t,r,i],n,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var r=e.appendFile;if(r)e.appendFile=appendFile;function appendFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$appendFile(e,t,n,i);function go$appendFile(e,t,n,i,o){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$appendFile,[e,t,n,i],r,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,n,r){if(typeof n==="function"){r=n;n=0}return go$copyFile(e,t,n,r);function go$copyFile(e,t,n,r,i){return c(e,t,n,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,n,r],o,i||Date.now(),Date.now()]);else{if(typeof r==="function")r.apply(this,arguments)}}))}}var s=e.readdir;e.readdir=readdir;var a=/^v[0-5]\./;function readdir(e,t,n){if(typeof t==="function")n=t,t=null;var r=a.test(process.version)?function go$readdir(e,t,n,r){return s(e,fs$readdirCallback(e,t,n,r))}:function go$readdir(e,t,n,r){return s(e,t,fs$readdirCallback(e,t,n,r))};return r(e,t,n);function fs$readdirCallback(e,t,n,i){return function(o,c){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([r,[e,t,n],o,i||Date.now(),Date.now()]);else{if(c&&c.sort)c.sort();if(typeof n==="function")n.call(this,o,c)}}}}if(process.version.substr(0,4)==="v0.8"){var u=o(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var f=e.ReadStream;if(f){ReadStream.prototype=Object.create(f.prototype);ReadStream.prototype.open=ReadStream$open}var l=e.WriteStream;if(l){WriteStream.prototype=Object.create(l.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 y=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(e){y=e},enumerable:true,configurable:true});var p=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return f.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,n){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return l.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,n){if(t){e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n)}}))}function createReadStream(t,n){return new e.ReadStream(t,n)}function createWriteStream(t,n){return new e.WriteStream(t,n)}var m=e.open;e.open=open;function open(e,t,n,r){if(typeof n==="function")r=n,n=null;return go$open(e,t,n,r);function go$open(e,t,n,r,i){return m(e,t,n,(function(o,c){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,n,r],o,i||Date.now(),Date.now()]);else{if(typeof r==="function")r.apply(this,arguments)}}))}}return e}function enqueue(e){f("ENQUEUE",e[0].name,e[1]);r[a].push(e);retry()}var y;function resetQueue(){var e=Date.now();for(var t=0;t<r[a].length;++t){if(r[a][t].length>2){r[a][t][3]=e;r[a][t][4]=e}}retry()}function retry(){clearTimeout(y);y=undefined;if(r[a].length===0)return;var e=r[a].shift();var t=e[0];var n=e[1];var i=e[2];var o=e[3];var c=e[4];if(o===undefined){f("RETRY",t.name,n);t.apply(null,n)}else if(Date.now()-o>=6e4){f("TIMEOUT",t.name,n);var s=n.pop();if(typeof s==="function")s.call(null,i)}else{var u=Date.now()-c;var l=Math.max(c-o,1);var p=Math.min(l*1.2,100);if(u>=p){f("RETRY",t.name,n);t.apply(null,n.concat([o]))}else{r[a].push(e)}}if(y===undefined){y=setTimeout(retry,0)}}},876:function(e,t,n){var r=n(781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,n){if(!(this instanceof ReadStream))return new ReadStream(t,n);r.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;n=n||{};var o=Object.keys(n);for(var c=0,s=o.length;c<s;c++){var a=o[c];this[a]=n[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,n){if(!(this instanceof WriteStream))return new WriteStream(t,n);r.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;n=n||{};var i=Object.keys(n);for(var o=0,c=i.length;o<c;o++){var s=i[o];this[s]=n[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()}}}},367:function(e,t,n){var r=n(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(r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,n){if(n)process.nextTick(n)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,n,r){if(r)process.nextTick(r)};e.lchownSync=function(){}}if(c==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(n,r,i){var o=Date.now();var c=0;t(n,r,(function CB(s){if(s&&(s.code==="EACCES"||s.code==="EPERM")&&Date.now()-o<6e4){setTimeout((function(){e.stat(r,(function(e,o){if(e&&e.code==="ENOENT")t(n,r,CB);else i(s)}))}),c);if(c<100)c+=10;return}if(i)i(s)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(n,r,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,n,r,i,o,c,a)}s.apply(this,arguments)}}return t.call(e,n,r,i,o,c,a)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(n,r,i,o,c){var s=0;while(true){try{return t.call(e,n,r,i,o,c)}catch(e){if(e.code==="EAGAIN"&&s<10){s++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,(function(t,r){if(t){if(i)i(t);return}e.fchmod(r,n,(function(t){e.close(r,(function(e){if(i)i(t||e)}))}))}))};e.lchmodSync=function(t,n){var i=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n);var o=true;var c;try{c=e.fchmodSync(i,n);o=false}finally{if(o){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return c}}function patchLutimes(e){if(r.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,n,i,o){e.open(t,r.O_SYMLINK,(function(t,r){if(t){if(o)o(t);return}e.futimes(r,n,i,(function(t){e.close(r,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,n,i){var o=e.openSync(t,r.O_SYMLINK);var c;var s=true;try{c=e.futimesSync(o,n,i);s=false}finally{if(s){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return c}}else if(e.futimes){e.lutimes=function(e,t,n,r){if(r)process.nextTick(r)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(n,r,i){return t.call(e,n,r,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(n,r){try{return t.call(e,n,r)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(n,r,i,o){return t.call(e,n,r,i,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(n,r,i){if(typeof r==="function"){i=r;r=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 r?t.call(e,n,r,callback):t.call(e,n,callback)}}function statFixSync(t){if(!t)return t;return function(n,r){var i=r?t.call(e,n,r):t.call(e,n);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,n){let r;try{r=n(127)}catch(e){r=n(147)}const i=n(5);const{stringify:o,stripBom:c}=n(208);async function _readFile(e,t={}){if(typeof t==="string"){t={encoding:t}}const n=t.fs||r;const o="throws"in t?t.throws:true;let s=await i.fromCallback(n.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 n=t.fs||r;const i="throws"in t?t.throws:true;try{let r=n.readFileSync(e,t);r=c(r);return JSON.parse(r,t.reviver)}catch(t){if(i){t.message=`${e}: ${t.message}`;throw t}else{return null}}}async function _writeFile(e,t,n={}){const c=n.fs||r;const s=o(t,n);await i.fromCallback(c.writeFile)(e,s,n)}const a=i.fromPromise(_writeFile);function writeFileSync(e,t,n={}){const i=n.fs||r;const c=o(t,n);return i.writeFileSync(e,c,n)}const u={readFile:s,readFileSync:readFileSync,writeFile:a,writeFileSync:writeFileSync};e.exports=u},208:function(e){function stringify(e,{EOL:t="\n",finalEOL:n=true,replacer:r=null,spaces:i}={}){const o=n?t:"";const c=JSON.stringify(e,r,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(((n,r)=>{e.call(this,...t,((e,t)=>e!=null?r(e):n(t)))}))}}),"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if(typeof n!=="function")return e.apply(this,t);else e.apply(this,t.slice(0,-1)).then((e=>n(null,e)),n)}),"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__(n){var r=t[n];if(r!==undefined){return r.exports}var i=t[n]={exports:{}};var o=true;try{e[n](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[n]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(579);module.exports=n})();
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Type definitions for jsonfile 6.1
|
|
2
|
+
// Project: https://github.com/jprichardson/node-jsonfile#readme
|
|
3
|
+
// Definitions by: Daniel Bowring <https://github.com/dbowring>
|
|
4
|
+
// BendingBender <https://github.com/BendingBender>
|
|
5
|
+
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
|
|
8
|
+
/// <reference types="node"/>
|
|
9
|
+
|
|
10
|
+
import { Url } from 'url';
|
|
11
|
+
import {
|
|
12
|
+
PathLike,
|
|
13
|
+
readFile as fsReadFile,
|
|
14
|
+
readFileSync as fsReadFileSync,
|
|
15
|
+
writeFile as fsWriteFile,
|
|
16
|
+
writeFileSync as fsWriteFileSync,
|
|
17
|
+
} from 'fs';
|
|
18
|
+
|
|
19
|
+
export type Path = PathLike | Url;
|
|
20
|
+
|
|
21
|
+
export interface FS {
|
|
22
|
+
readFile: typeof fsReadFile;
|
|
23
|
+
readFileSync: typeof fsReadFileSync;
|
|
24
|
+
writeFile: typeof fsWriteFile;
|
|
25
|
+
writeFileSync: typeof fsWriteFileSync;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type JFReadOptions =
|
|
29
|
+
| {
|
|
30
|
+
encoding?: string | null | undefined;
|
|
31
|
+
flag?: string | undefined;
|
|
32
|
+
throws?: boolean | undefined;
|
|
33
|
+
fs?: FS | undefined;
|
|
34
|
+
reviver?: ((key: any, value: any) => any) | undefined;
|
|
35
|
+
}
|
|
36
|
+
| string
|
|
37
|
+
| null
|
|
38
|
+
| undefined;
|
|
39
|
+
|
|
40
|
+
export type JFWriteOptions =
|
|
41
|
+
| {
|
|
42
|
+
encoding?: string | null | undefined;
|
|
43
|
+
mode?: string | number | undefined;
|
|
44
|
+
flag?: string | undefined;
|
|
45
|
+
fs?: FS | undefined;
|
|
46
|
+
EOL?: string | undefined;
|
|
47
|
+
spaces?: string | number | undefined;
|
|
48
|
+
replacer?: ((key: string, value: any) => any) | undefined;
|
|
49
|
+
}
|
|
50
|
+
| string
|
|
51
|
+
| null;
|
|
52
|
+
|
|
53
|
+
export type ReadCallback = (err: NodeJS.ErrnoException | null, data: any) => void;
|
|
54
|
+
export type WriteCallback = (err: NodeJS.ErrnoException | null) => void;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link https://github.com/jprichardson/node-jsonfile#readfilefilename-options-callback}
|
|
58
|
+
*/
|
|
59
|
+
export function readFile(file: Path, options: JFReadOptions, callback: ReadCallback): void;
|
|
60
|
+
export function readFile(file: Path, callback: ReadCallback): void;
|
|
61
|
+
export function readFile(file: Path, options?: JFReadOptions): Promise<any>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link https://github.com/jprichardson/node-jsonfile#readfilesyncfilename-options}
|
|
65
|
+
*/
|
|
66
|
+
export function readFileSync(file: Path, options?: JFReadOptions): any;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link https://github.com/jprichardson/node-jsonfile#writefilefilename-obj-options-callback}
|
|
70
|
+
*/
|
|
71
|
+
export function writeFile(file: Path, obj: any, options: JFWriteOptions, callback: WriteCallback): void;
|
|
72
|
+
export function writeFile(file: Path, obj: any, callback: WriteCallback): void;
|
|
73
|
+
export function writeFile(file: Path, obj: any, options?: JFWriteOptions): Promise<void>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link https://github.com/jprichardson/node-jsonfile#writefilesyncfilename-obj-options}
|
|
77
|
+
*/
|
|
78
|
+
export function writeFileSync(file: Path, obj: any, options?: JFWriteOptions): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"fs-extra","author":"JP Richardson <jprichardson@gmail.com>","license":"MIT"}
|
|
1
|
+
{"name":"fs-extra","version":"11.1.0","author":"JP Richardson <jprichardson@gmail.com>","license":"MIT"}
|
package/compiled/glob/index.d.ts
CHANGED
package/compiled/glob/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){var t={155:function(t){"use strict";t.exports=balanced;function balanced(t,e,r){if(t instanceof RegExp)t=maybeMatch(t,r);if(e instanceof RegExp)e=maybeMatch(e,r);var i=range(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function maybeMatch(t,e){var r=e.match(t);return r?r[0]:null}balanced.range=range;function range(t,e,r){var i,n,s,a,o;var c=r.indexOf(t);var l=r.indexOf(e,c+1);var h=c;if(c>=0&&l>0){if(t===e){return[c,l]}i=[];s=r.length;while(h>=0&&!o){if(h==c){i.push(h);c=r.indexOf(t,h+1)}else if(i.length==1){o=[i.pop(),l]}else{n=i.pop();if(n<s){s=n;a=l}l=r.indexOf(e,h+1)}h=c<l&&c>=0?c:l}if(i.length){o=[s,a]}}return o}},461:function(t,e,r){var i=r(155);t.exports=expandTop;var n="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var c="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(n).split("\\{").join(s).split("\\}").join(a).split("\\,").join(o).split("\\.").join(c)}function unescapeBraces(t){return t.split(n).join("\\").split(s).join("{").split(a).join("}").split(o).join(",").split(c).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var r=i("{","}",t);if(!r)return t.split(",");var n=r.pre;var s=r.body;var a=r.post;var o=n.split(",");o[o.length-1]+="{"+s+"}";var c=parseCommaParts(a);if(a.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}e.push.apply(e,o);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var r=[];var n=i("{","}",t);if(!n)return[t];var s=n.pre;var o=n.post.length?expand(n.post,false):[""];if(/\$$/.test(n.pre)){for(var c=0;c<o.length;c++){var l=s+"{"+n.body+"}"+o[c];r.push(l)}}else{var h=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);var p=h||u;var v=n.body.indexOf(",")>=0;if(!p&&!v){if(n.post.match(/,.*\}/)){t=n.pre+"{"+n.body+a+n.post;return expand(t)}return[t]}var d;if(p){d=n.body.split(/\.\./)}else{d=parseCommaParts(n.body);if(d.length===1){d=expand(d[0],false).map(embrace);if(d.length===1){return o.map((function(t){return n.pre+d[0]+t}))}}}var b;if(p){var g=numeric(d[0]);var y=numeric(d[1]);var _=Math.max(d[0].length,d[1].length);var w=d.length==3?Math.abs(numeric(d[2])):1;var k=lte;var S=y<g;if(S){w*=-1;k=gte}var E=d.some(isPadded);b=[];for(var O=g;k(O,y);O+=w){var x;if(u){x=String.fromCharCode(O);if(x==="\\")x=""}else{x=String(O);if(E){var A=_-x.length;if(A>0){var G=new Array(A+1).join("0");if(O<0)x="-"+G+x.slice(1);else x=G+x}}}b.push(x)}}else{b=[];for(var j=0;j<d.length;j++){b.push.apply(b,expand(d[j],false))}}for(var j=0;j<b.length;j++){for(var c=0;c<o.length;c++){var l=s+b[j]+o[c];if(!e||p||l)r.push(l)}}}return r}},737:function(t,e,r){t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(147);var n=i.realpath;var s=i.realpathSync;var a=process.version;var o=/^v[0-5]\./.test(a);var c=r(613);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,r){if(o){return n(t,e,r)}if(typeof e==="function"){r=e;e=null}n(t,e,(function(i,n){if(newError(i)){c.realpath(t,e,r)}else{r(i,n)}}))}function realpathSync(t,e){if(o){return s(t,e)}try{return s(t,e)}catch(r){if(newError(r)){return c.realpathSync(t,e)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=s}},613:function(t,e,r){var i=r(17);var n=process.platform==="win32";var s=r(147);var a=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(a){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var o=i.normalize;if(n){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(n){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var r=t,a={},o={};var h;var u;var p;var v;start();function start(){var e=l.exec(t);h=e[0].length;u=e[0];p=e[0];v="";if(n&&!o[p]){s.lstatSync(p);o[p]=true}}while(h<t.length){c.lastIndex=h;var d=c.exec(t);v=u;u+=d[0];p=v+d[1];h=c.lastIndex;if(o[p]||e&&e[p]===p){continue}var b;if(e&&Object.prototype.hasOwnProperty.call(e,p)){b=e[p]}else{var g=s.lstatSync(p);if(!g.isSymbolicLink()){o[p]=true;if(e)e[p]=p;continue}var y=null;if(!n){var _=g.dev.toString(32)+":"+g.ino.toString(32);if(a.hasOwnProperty(_)){y=a[_]}}if(y===null){s.statSync(p);y=s.readlinkSync(p)}b=i.resolve(v,y);if(e)e[p]=b;if(!n)a[_]=y}t=i.resolve(b,t.slice(h));start()}if(e)e[r]=t;return t};e.realpath=function realpath(t,e,r){if(typeof r!=="function"){r=maybeCallback(e);e=null}t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return process.nextTick(r.bind(null,null,e[t]))}var a=t,o={},h={};var u;var p;var v;var d;start();function start(){var e=l.exec(t);u=e[0].length;p=e[0];v=e[0];d="";if(n&&!h[v]){s.lstat(v,(function(t){if(t)return r(t);h[v]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(u>=t.length){if(e)e[a]=t;return r(null,t)}c.lastIndex=u;var i=c.exec(t);d=p;p+=i[0];v=d+i[1];u=c.lastIndex;if(h[v]||e&&e[v]===v){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,v)){return gotResolvedLink(e[v])}return s.lstat(v,gotStat)}function gotStat(t,i){if(t)return r(t);if(!i.isSymbolicLink()){h[v]=true;if(e)e[v]=v;return process.nextTick(LOOP)}if(!n){var a=i.dev.toString(32)+":"+i.ino.toString(32);if(o.hasOwnProperty(a)){return gotTarget(null,o[a],v)}}s.stat(v,(function(t){if(t)return r(t);s.readlink(v,(function(t,e){if(!n)o[a]=e;gotTarget(t,e)}))}))}function gotTarget(t,n,s){if(t)return r(t);var a=i.resolve(d,n);if(e)e[s]=a;gotResolvedLink(a)}function gotResolvedLink(e){t=i.resolve(e,t.slice(u));start()}}},930:function(t,e,r){e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var i=r(147);var n=r(17);var s=r(67);var a=r(249);var o=s.Minimatch;function alphasort(t,e){return t.localeCompare(e,"en")}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new o(r,{dot:true})}return{matcher:new o(t,{dot:true}),gmatcher:e}}function setopts(t,e,r){if(!r)r={};if(r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!r.silent;t.pattern=e;t.strict=r.strict!==false;t.realpath=!!r.realpath;t.realpathCache=r.realpathCache||Object.create(null);t.follow=!!r.follow;t.dot=!!r.dot;t.mark=!!r.mark;t.nodir=!!r.nodir;if(t.nodir)t.mark=true;t.sync=!!r.sync;t.nounique=!!r.nounique;t.nonull=!!r.nonull;t.nosort=!!r.nosort;t.nocase=!!r.nocase;t.stat=!!r.stat;t.noprocess=!!r.noprocess;t.absolute=!!r.absolute;t.fs=r.fs||i;t.maxLength=r.maxLength||Infinity;t.cache=r.cache||Object.create(null);t.statCache=r.statCache||Object.create(null);t.symlinks=r.symlinks||Object.create(null);setupIgnores(t,r);t.changedCwd=false;var s=process.cwd();if(!ownProp(r,"cwd"))t.cwd=s;else{t.cwd=n.resolve(r.cwd);t.changedCwd=t.cwd!==s}t.root=r.root||n.resolve(t.cwd,"/");t.root=n.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=a(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;r.allowWindowsEscape=true;t.minimatch=new o(e,r);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var r=e?[]:Object.create(null);for(var i=0,n=t.matches.length;i<n;i++){var s=t.matches[i];if(!s||Object.keys(s).length===0){if(t.nonull){var a=t.minimatch.globSet[i];if(e)r.push(a);else r[a]=true}}else{var o=Object.keys(s);if(e)r.push.apply(r,o);else o.forEach((function(t){r[t]=true}))}}if(!e)r=Object.keys(r);if(!t.nosort)r=r.sort(alphasort);if(t.mark){for(var i=0;i<r.length;i++){r[i]=t._mark(r[i])}if(t.nodir){r=r.filter((function(e){var r=!/\/$/.test(e);var i=t.cache[e]||t.cache[makeAbs(t,e)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r}))}}if(t.ignore.length)r=r.filter((function(e){return!isIgnored(t,e)}));t.found=r}function mark(t,e){var r=makeAbs(t,e);var i=t.cache[r];var n=e;if(i){var s=i==="DIR"||Array.isArray(i);var a=e.slice(-1)==="/";if(s&&!a)n+="/";else if(!s&&a)n=n.slice(0,-1);if(n!==e){var o=makeAbs(t,n);t.statCache[o]=t.statCache[r];t.cache[o]=t.cache[r]}}return n}function makeAbs(t,e){var r=e;if(e.charAt(0)==="/"){r=n.join(t.root,e)}else if(a(e)||e===""){r=e}else if(t.changedCwd){r=n.resolve(t.cwd,e)}else{r=n.resolve(e)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))}))}function childrenIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return!!(t.gmatcher&&t.gmatcher.match(e))}))}},947:function(t,e,r){t.exports=glob;var i=r(737);var n=r(67);var s=n.Minimatch;var a=r(315);var o=r(361).EventEmitter;var c=r(17);var l=r(491);var h=r(249);var u=r(44);var p=r(930);var v=p.setopts;var d=p.ownProp;var b=r(900);var g=r(837);var y=p.childrenIgnored;var _=p.isIgnored;var w=r(556);function glob(t,e,r){if(typeof e==="function")r=e,e={};if(!e)e={};if(e.sync){if(r)throw new TypeError("callback provided to sync glob");return u(t,e)}return new Glob(t,e,r)}glob.sync=u;var k=glob.GlobSync=u.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var r=Object.keys(e);var i=r.length;while(i--){t[r[i]]=e[r[i]]}return t}glob.hasMagic=function(t,e){var r=extend({},e);r.noprocess=true;var i=new Glob(t,r);var n=i.minimatch.set;if(!t)return false;if(n.length>1)return true;for(var s=0;s<n[0].length;s++){if(typeof n[0][s]!=="string")return true}return false};glob.Glob=Glob;a(Glob,o);function Glob(t,e,r){if(typeof e==="function"){r=e;e=null}if(e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new k(t,e)}if(!(this instanceof Glob))return new Glob(t,e,r);v(this,t,e);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=w(r);this.on("error",r);this.on("end",(function(t){r(null,t)}))}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var s=true;for(var a=0;a<i;a++){this._process(this.minimatch.set[a],a,false,done)}s=false;function done(){--n._processing;if(n._processing<=0){if(s){process.nextTick((function(){n._finish()}))}else{n._finish()}}}}Glob.prototype._finish=function(){l(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var t=this.matches.length;if(t===0)return this._finish();var e=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--t===0)e._finish()}};Glob.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var n=Object.keys(r);var s=this;var a=n.length;if(a===0)return e();var o=this.matches[t]=Object.create(null);n.forEach((function(r,n){r=s._makeAbs(r);i.realpath(r,s.realpathCache,(function(i,n){if(!i)o[n]=true;else if(i.syscall==="stat")o[r]=true;else s.emit("error",i);if(--a===0){s.matches[t]=o;e()}}))}))};Glob.prototype._mark=function(t){return p.mark(this,t)};Glob.prototype._makeAbs=function(t){return p.makeAbs(this,t)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<i.length;e++){var n=i[e];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(t,e,r,i){l(this instanceof Glob);l(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([t,e,r,i]);return}var s=0;while(typeof t[s]==="string"){s++}var a;switch(s){case t.length:this._processSimple(t.join("/"),e,i);return;case 0:a=null;break;default:a=t.slice(0,s).join("/");break}var o=t.slice(s);var c;if(a===null)c=".";else if(h(a)||h(t.map((function(t){return typeof t==="string"?t:"[*]"})).join("/"))){if(!a||!h(a))a="/"+a;c=a}else c=a;var u=this._makeAbs(c);if(y(this,c))return i();var p=o[0]===n.GLOBSTAR;if(p)this._processGlobStar(a,c,u,o,e,r,i);else this._processReaddir(a,c,u,o,e,r,i)};Glob.prototype._processReaddir=function(t,e,r,i,n,s,a){var o=this;this._readdir(r,s,(function(c,l){return o._processReaddir2(t,e,r,i,n,s,l,a)}))};Glob.prototype._processReaddir2=function(t,e,r,i,n,s,a,o){if(!a)return o();var l=i[0];var h=!!this.minimatch.negate;var u=l._glob;var p=this.dot||u.charAt(0)===".";var v=[];for(var d=0;d<a.length;d++){var b=a[d];if(b.charAt(0)!=="."||p){var g;if(h&&!t){g=!b.match(l)}else{g=b.match(l)}if(g)v.push(b)}}var y=v.length;if(y===0)return o();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var d=0;d<y;d++){var b=v[d];if(t){if(t!=="/")b=t+"/"+b;else b=t+b}if(b.charAt(0)==="/"&&!this.nomount){b=c.join(this.root,b)}this._emitMatch(n,b)}return o()}i.shift();for(var d=0;d<y;d++){var b=v[d];var _;if(t){if(t!=="/")b=t+"/"+b;else b=t+b}this._process([b].concat(i),n,s,o)}o()};Glob.prototype._emitMatch=function(t,e){if(this.aborted)return;if(_(this,e))return;if(this.paused){this._emitQueue.push([t,e]);return}var r=h(e)?e:this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute)e=r;if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;var n=this.statCache[r];if(n)this.emit("stat",e,n);this.emit("match",e)};Glob.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,false,e);var r="lstat\0"+t;var i=this;var n=b(r,lstatcb_);if(n)i.fs.lstat(t,n);function lstatcb_(r,n){if(r&&r.code==="ENOENT")return e();var s=n&&n.isSymbolicLink();i.symlinks[t]=s;if(!s&&n&&!n.isDirectory()){i.cache[t]="FILE";e()}else i._readdir(t,false,e)}};Glob.prototype._readdir=function(t,e,r){if(this.aborted)return;r=b("readdir\0"+t+"\0"+e,r);if(!r)return;if(e&&!d(this.symlinks,t))return this._readdirInGlobStar(t,r);if(d(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var n=this;n.fs.readdir(t,readdirCb(this,t,r))};function readdirCb(t,e,r){return function(i,n){if(i)t._readdirError(e,i,r);else t._readdirEntries(e,n,r)}}Glob.prototype._readdirEntries=function(t,e,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<e.length;i++){var n=e[i];if(t==="/")n=t+n;else n=t+"/"+n;this.cache[n]=true}}this.cache[t]=e;return r(null,e)};Glob.prototype._readdirError=function(t,e,r){if(this.aborted)return;switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);this.cache[i]="FILE";if(i===this.cwdAbs){var n=new Error(e.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=e.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict){this.emit("error",e);this.abort()}if(!this.silent)console.error("glob error",e);break}return r()};Glob.prototype._processGlobStar=function(t,e,r,i,n,s,a){var o=this;this._readdir(r,s,(function(c,l){o._processGlobStar2(t,e,r,i,n,s,l,a)}))};Glob.prototype._processGlobStar2=function(t,e,r,i,n,s,a,o){if(!a)return o();var c=i.slice(1);var l=t?[t]:[];var h=l.concat(c);this._process(h,n,false,o);var u=this.symlinks[r];var p=a.length;if(u&&s)return o();for(var v=0;v<p;v++){var d=a[v];if(d.charAt(0)==="."&&!this.dot)continue;var b=l.concat(a[v],c);this._process(b,n,true,o);var g=l.concat(a[v],i);this._process(g,n,true,o)}o()};Glob.prototype._processSimple=function(t,e,r){var i=this;this._stat(t,(function(n,s){i._processSimple2(t,e,n,s,r)}))};Glob.prototype._processSimple2=function(t,e,r,i,n){if(!this.matches[e])this.matches[e]=Object.create(null);if(!i)return n();if(t&&h(t)&&!this.nomount){var s=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=c.join(this.root,t)}else{t=c.resolve(this.root,t);if(s)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t);n()};Glob.prototype._stat=function(t,e){var r=this._makeAbs(t);var i=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&d(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!i||n==="DIR")return e(null,n);if(i&&n==="FILE")return e()}var s;var a=this.statCache[r];if(a!==undefined){if(a===false)return e(null,a);else{var o=a.isDirectory()?"DIR":"FILE";if(i&&o==="FILE")return e();else return e(null,o,a)}}var c=this;var l=b("stat\0"+r,lstatcb_);if(l)c.fs.lstat(r,l);function lstatcb_(i,n){if(n&&n.isSymbolicLink()){return c.fs.stat(r,(function(i,s){if(i)c._stat2(t,r,null,n,e);else c._stat2(t,r,i,s,e)}))}else{c._stat2(t,r,i,n,e)}}};Glob.prototype._stat2=function(t,e,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[e]=false;return n()}var s=t.slice(-1)==="/";this.statCache[e]=i;if(e.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var a=true;if(i)a=i.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||a;if(s&&a==="FILE")return n();return n(null,a,i)}},44:function(t,e,r){t.exports=globSync;globSync.GlobSync=GlobSync;var i=r(737);var n=r(67);var s=n.Minimatch;var a=r(947).Glob;var o=r(837);var c=r(17);var l=r(491);var h=r(249);var u=r(930);var p=u.setopts;var v=u.ownProp;var d=u.childrenIgnored;var b=u.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);p(this,t,e);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){l(this instanceof GlobSync);if(this.realpath){var t=this;this.matches.forEach((function(e,r){var n=t.matches[r]=Object.create(null);for(var s in e){try{s=t._makeAbs(s);var a=i.realpathSync(s,t.realpathCache);n[a]=true}catch(e){if(e.syscall==="stat")n[t._makeAbs(s)]=true;else throw e}}}))}u.finish(this)};GlobSync.prototype._process=function(t,e,r){l(this instanceof GlobSync);var i=0;while(typeof t[i]==="string"){i++}var s;switch(i){case t.length:this._processSimple(t.join("/"),e);return;case 0:s=null;break;default:s=t.slice(0,i).join("/");break}var a=t.slice(i);var o;if(s===null)o=".";else if(h(s)||h(t.map((function(t){return typeof t==="string"?t:"[*]"})).join("/"))){if(!s||!h(s))s="/"+s;o=s}else o=s;var c=this._makeAbs(o);if(d(this,o))return;var u=a[0]===n.GLOBSTAR;if(u)this._processGlobStar(s,o,c,a,e,r);else this._processReaddir(s,o,c,a,e,r)};GlobSync.prototype._processReaddir=function(t,e,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var o=i[0];var l=!!this.minimatch.negate;var h=o._glob;var u=this.dot||h.charAt(0)===".";var p=[];for(var v=0;v<a.length;v++){var d=a[v];if(d.charAt(0)!=="."||u){var b;if(l&&!t){b=!d.match(o)}else{b=d.match(o)}if(b)p.push(d)}}var g=p.length;if(g===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var v=0;v<g;v++){var d=p[v];if(t){if(t.slice(-1)!=="/")d=t+"/"+d;else d=t+d}if(d.charAt(0)==="/"&&!this.nomount){d=c.join(this.root,d)}this._emitMatch(n,d)}return}i.shift();for(var v=0;v<g;v++){var d=p[v];var y;if(t)y=[t,d];else y=[d];this._process(y.concat(i),n,s)}};GlobSync.prototype._emitMatch=function(t,e){if(b(this,e))return;var r=this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute){e=r}if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;if(this.stat)this._stat(e)};GlobSync.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,false);var e;var r;var i;try{r=this.fs.lstatSync(t)}catch(t){if(t.code==="ENOENT"){return null}}var n=r&&r.isSymbolicLink();this.symlinks[t]=n;if(!n&&r&&!r.isDirectory())this.cache[t]="FILE";else e=this._readdir(t,false);return e};GlobSync.prototype._readdir=function(t,e){var r;if(e&&!v(this.symlinks,t))return this._readdirInGlobStar(t);if(v(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(e){this._readdirError(t,e);return null}};GlobSync.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat){for(var r=0;r<e.length;r++){var i=e[r];if(t==="/")i=t+i;else i=t+"/"+i;this.cache[i]=true}}this.cache[t]=e;return e};GlobSync.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=e.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict)throw e;if(!this.silent)console.error("glob error",e);break}};GlobSync.prototype._processGlobStar=function(t,e,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var o=i.slice(1);var c=t?[t]:[];var l=c.concat(o);this._process(l,n,false);var h=a.length;var u=this.symlinks[r];if(u&&s)return;for(var p=0;p<h;p++){var v=a[p];if(v.charAt(0)==="."&&!this.dot)continue;var d=c.concat(a[p],o);this._process(d,n,true);var b=c.concat(a[p],i);this._process(b,n,true)}};GlobSync.prototype._processSimple=function(t,e){var r=this._stat(t);if(!this.matches[e])this.matches[e]=Object.create(null);if(!r)return;if(t&&h(t)&&!this.nomount){var i=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=c.join(this.root,t)}else{t=c.resolve(this.root,t);if(i)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t)};GlobSync.prototype._stat=function(t){var e=this._makeAbs(t);var r=t.slice(-1)==="/";if(t.length>this.maxLength)return false;if(!this.stat&&v(this.cache,e)){var i=this.cache[e];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var n;var s=this.statCache[e];if(!s){var a;try{a=this.fs.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(a&&a.isSymbolicLink()){try{s=this.fs.statSync(e)}catch(t){s=a}}else{s=a}}this.statCache[e]=s;var i=true;if(s)i=s.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(t){return u.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return u.makeAbs(this,t)}},900:function(t,e,r){var i=r(928);var n=Object.create(null);var s=r(556);t.exports=i(inflight);function inflight(t,e){if(n[t]){n[t].push(e);return null}else{n[t]=[e];return makeres(t)}}function makeres(t){return s((function RES(){var e=n[t];var r=e.length;var i=slice(arguments);try{for(var s=0;s<r;s++){e[s].apply(null,i)}}finally{if(e.length>r){e.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete n[t]}}}))}function slice(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i]=t[i];return r}},315:function(t,e,r){try{var i=r(837);if(typeof i.inherits!=="function")throw"";t.exports=i.inherits}catch(e){t.exports=r(959)}},959:function(t){if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var TempCtor=function(){};TempCtor.prototype=e.prototype;t.prototype=new TempCtor;t.prototype.constructor=t}}}},426:function(t){const e=typeof process==="object"&&process&&process.platform==="win32";t.exports=e?{sep:"\\"}:{sep:"/"}},67:function(t,e,r){const i=t.exports=(t,e,r={})=>{assertValidPattern(e);if(!r.nocomment&&e.charAt(0)==="#"){return false}return new Minimatch(e,r).match(t)};t.exports=i;const n=r(426);i.sep=n.sep;const s=Symbol("globstar **");i.GLOBSTAR=s;const a=r(461);const o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const c="[^/]";const l=c+"*?";const h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const u="(?:(?!(?:\\/|^)\\.).)*?";const charSet=t=>t.split("").reduce(((t,e)=>{t[e]=true;return t}),{});const p=charSet("().*{}+?[]^$\\!");const v=charSet("[.(");const d=/\/+/;i.filter=(t,e={})=>(r,n,s)=>i(r,t,e);const ext=(t,e={})=>{const r={};Object.keys(t).forEach((e=>r[e]=t[e]));Object.keys(e).forEach((t=>r[t]=e[t]));return r};i.defaults=t=>{if(!t||typeof t!=="object"||!Object.keys(t).length){return i}const e=i;const m=(r,i,n)=>e(r,i,ext(t,n));m.Minimatch=class Minimatch extends e.Minimatch{constructor(e,r){super(e,ext(t,r))}};m.Minimatch.defaults=r=>e.defaults(ext(t,r)).Minimatch;m.filter=(r,i)=>e.filter(r,ext(t,i));m.defaults=r=>e.defaults(ext(t,r));m.makeRe=(r,i)=>e.makeRe(r,ext(t,i));m.braceExpand=(r,i)=>e.braceExpand(r,ext(t,i));m.match=(r,i,n)=>e.match(r,i,ext(t,n));return m};i.braceExpand=(t,e)=>braceExpand(t,e);const braceExpand=(t,e={})=>{assertValidPattern(t);if(e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)){return[t]}return a(t)};const b=1024*64;const assertValidPattern=t=>{if(typeof t!=="string"){throw new TypeError("invalid pattern")}if(t.length>b){throw new TypeError("pattern is too long")}};const g=Symbol("subparse");i.makeRe=(t,e)=>new Minimatch(t,e||{}).makeRe();i.match=(t,e,r={})=>{const i=new Minimatch(e,r);t=t.filter((t=>i.match(t)));if(i.options.nonull&&!t.length){t.push(e)}return t};const globUnescape=t=>t.replace(/\\(.)/g,"$1");const regExpEscape=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{constructor(t,e){assertValidPattern(t);if(!e)e={};this.options=e;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!e.partial;this.make()}debug(){}make(){const t=this.pattern;const e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(e.debug)this.debug=(...t)=>console.error(...t);this.debug(this.pattern,r);r=this.globParts=r.map((t=>t.split(d)));this.debug(this.pattern,r);r=r.map(((t,e,r)=>t.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((t=>t.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const t=this.pattern;let e=false;let r=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++){e=!e;r++}if(r)this.pattern=t.substr(r);this.negate=e}matchOne(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e});this.debug("matchOne",t.length,e.length);for(var n=0,a=0,o=t.length,c=e.length;n<o&&a<c;n++,a++){this.debug("matchOne loop");var l=e[a];var h=t[n];this.debug(e,l,h);if(l===false)return false;if(l===s){this.debug("GLOBSTAR",[e,l,h]);var u=n;var p=a+1;if(p===c){this.debug("** at the end");for(;n<o;n++){if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return false}return true}while(u<o){var v=t[u];this.debug("\nglobstar while",t,u,e,p,v);if(this.matchOne(t.slice(u),e.slice(p),r)){this.debug("globstar found match!",u,o,v);return true}else{if(v==="."||v===".."||!i.dot&&v.charAt(0)==="."){this.debug("dot detected!",t,u,e,p);break}this.debug("globstar swallow a segment, and continue");u++}}if(r){this.debug("\n>>> no match, partial?",t,u,e,p);if(u===o)return true}return false}var d;if(typeof l==="string"){d=h===l;this.debug("string match",l,h,d)}else{d=h.match(l);this.debug("pattern match",l,h,d)}if(!d)return false}if(n===o&&a===c){return true}else if(n===o){return r}else if(a===c){return n===o-1&&t[n]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(t,e){assertValidPattern(t);const r=this.options;if(t==="**"){if(!r.noglobstar)return s;else t="*"}if(t==="")return"";let i="";let n=!!r.nocase;let a=false;const h=[];const u=[];let d;let b=false;let y=-1;let _=-1;let w;let k;let S;const E=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(d){switch(d){case"*":i+=l;n=true;break;case"?":i+=c;n=true;break;default:i+="\\"+d;break}this.debug("clearStateChar %j %j",d,i);d=false}};for(let e=0,s;e<t.length&&(s=t.charAt(e));e++){this.debug("%s\t%s %s %j",t,e,i,s);if(a){if(s==="/"){return false}if(p[s]){i+="\\"}i+=s;a=false;continue}switch(s){case"/":{return false}case"\\":clearStateChar();a=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",t,e,i,s);if(b){this.debug(" in class");if(s==="!"&&e===_+1)s="^";i+=s;continue}this.debug("call clearStateChar %j",d);clearStateChar();d=s;if(r.noext)clearStateChar();continue;case"(":if(b){i+="(";continue}if(!d){i+="\\(";continue}h.push({type:d,start:e-1,reStart:i.length,open:o[d].open,close:o[d].close});i+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,i);d=false;continue;case")":if(b||!h.length){i+="\\)";continue}clearStateChar();n=true;k=h.pop();i+=k.close;if(k.type==="!"){u.push(k)}k.reEnd=i.length;continue;case"|":if(b||!h.length){i+="\\|";continue}clearStateChar();i+="|";continue;case"[":clearStateChar();if(b){i+="\\"+s;continue}b=true;_=e;y=i.length;i+=s;continue;case"]":if(e===_+1||!b){i+="\\"+s;continue}w=t.substring(_+1,e);try{RegExp("["+w+"]")}catch(t){S=this.parse(w,g);i=i.substr(0,y)+"\\["+S[0]+"\\]";n=n||S[1];b=false;continue}n=true;b=false;i+=s;continue;default:clearStateChar();if(p[s]&&!(s==="^"&&b)){i+="\\"}i+=s;break}}if(b){w=t.substr(_+1);S=this.parse(w,g);i=i.substr(0,y)+"\\["+S[0];n=n||S[1]}for(k=h.pop();k;k=h.pop()){let t;t=i.slice(k.reStart+k.open.length);this.debug("setting tail",i,k);t=t.replace(/((?:\\{2}){0,64})(\\?)\|/g,((t,e,r)=>{if(!r){r="\\"}return e+e+r+"|"}));this.debug("tail=%j\n %s",t,t,k,i);const e=k.type==="*"?l:k.type==="?"?c:"\\"+k.type;n=true;i=i.slice(0,k.reStart)+e+"\\("+t}clearStateChar();if(a){i+="\\\\"}const O=v[i.charAt(0)];for(let t=u.length-1;t>-1;t--){const r=u[t];const n=i.slice(0,r.reStart);const s=i.slice(r.reStart,r.reEnd-8);let a=i.slice(r.reEnd);const o=i.slice(r.reEnd-8,r.reEnd)+a;const c=n.split("(").length-1;let l=a;for(let t=0;t<c;t++){l=l.replace(/\)[+*?]?/,"")}a=l;const h=a===""&&e!==g?"$":"";i=n+s+a+h+o}if(i!==""&&n){i="(?=.)"+i}if(O){i=E+i}if(e===g){return[i,n]}if(!n){return globUnescape(t)}const x=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",x),{_glob:t,_src:i})}catch(t){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const t=this.set;if(!t.length){this.regexp=false;return this.regexp}const e=this.options;const r=e.noglobstar?l:e.dot?h:u;const i=e.nocase?"i":"";let n=t.map((t=>{t=t.map((t=>typeof t==="string"?regExpEscape(t):t===s?s:t._src)).reduce(((t,e)=>{if(!(t[t.length-1]===s&&e===s)){t.push(e)}return t}),[]);t.forEach(((e,i)=>{if(e!==s||t[i-1]===s){return}if(i===0){if(t.length>1){t[i+1]="(?:\\/|"+r+"\\/)?"+t[i+1]}else{t[i]=r}}else if(i===t.length-1){t[i-1]+="(?:\\/|"+r+")?"}else{t[i-1]+="(?:\\/|\\/"+r+"\\/)"+t[i+1];t[i+1]=s}}));return t.filter((t=>t!==s)).join("/")})).join("|");n="^(?:"+n+")$";if(this.negate)n="^(?!"+n+").*$";try{this.regexp=new RegExp(n,i)}catch(t){this.regexp=false}return this.regexp}match(t,e=this.partial){this.debug("match",t,this.pattern);if(this.comment)return false;if(this.empty)return t==="";if(t==="/"&&e)return true;const r=this.options;if(n.sep!=="/"){t=t.split(n.sep).join("/")}t=t.split(d);this.debug(this.pattern,"split",t);const i=this.set;this.debug(this.pattern,"set",i);let s;for(let e=t.length-1;e>=0;e--){s=t[e];if(s)break}for(let n=0;n<i.length;n++){const a=i[n];let o=t;if(r.matchBase&&a.length===1){o=[s]}const c=this.matchOne(o,a,e);if(c){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}static defaults(t){return i.defaults(t).Minimatch}}i.Minimatch=Minimatch},556:function(t,e,r){var i=r(928);t.exports=i(once);t.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(t){var f=function(){if(f.called)return f.value;f.called=true;return f.value=t.apply(this,arguments)};f.called=false;return f}function onceStrict(t){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=t.apply(this,arguments)};var e=t.name||"Function wrapped with `once`";f.onceError=e+" shouldn't be called more than once";f.called=false;return f}},249:function(t){"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=e.exec(t);var i=r[1]||"";var n=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||n)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},928:function(t){t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach((function(e){wrapper[e]=t[e]}));return wrapper;function wrapper(){var e=new Array(arguments.length);for(var r=0;r<e.length;r++){e[r]=arguments[r]}var i=t.apply(this,e);var n=e[e.length-1];if(typeof i==="function"&&i!==n){Object.keys(n).forEach((function(t){i[t]=n[t]}))}return i}}},491:function(t){"use strict";t.exports=require("assert")},361:function(t){"use strict";t.exports=require("events")},147:function(t){"use strict";t.exports=require("fs")},17:function(t){"use strict";t.exports=require("path")},837:function(t){"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){var i=e[r];if(i!==undefined){return i.exports}var n=e[r]={exports:{}};var s=true;try{t[r](n,n.exports,__nccwpck_require__);s=false}finally{if(s)delete e[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(947);module.exports=r})();
|
|
1
|
+
(function(){var t={155:function(t){"use strict";t.exports=balanced;function balanced(t,e,r){if(t instanceof RegExp)t=maybeMatch(t,r);if(e instanceof RegExp)e=maybeMatch(e,r);var i=range(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function maybeMatch(t,e){var r=e.match(t);return r?r[0]:null}balanced.range=range;function range(t,e,r){var i,n,s,a,o;var c=r.indexOf(t);var l=r.indexOf(e,c+1);var h=c;if(c>=0&&l>0){if(t===e){return[c,l]}i=[];s=r.length;while(h>=0&&!o){if(h==c){i.push(h);c=r.indexOf(t,h+1)}else if(i.length==1){o=[i.pop(),l]}else{n=i.pop();if(n<s){s=n;a=l}l=r.indexOf(e,h+1)}h=c<l&&c>=0?c:l}if(i.length){o=[s,a]}}return o}},461:function(t,e,r){var i=r(155);t.exports=expandTop;var n="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var c="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(n).split("\\{").join(s).split("\\}").join(a).split("\\,").join(o).split("\\.").join(c)}function unescapeBraces(t){return t.split(n).join("\\").split(s).join("{").split(a).join("}").split(o).join(",").split(c).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var r=i("{","}",t);if(!r)return t.split(",");var n=r.pre;var s=r.body;var a=r.post;var o=n.split(",");o[o.length-1]+="{"+s+"}";var c=parseCommaParts(a);if(a.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}e.push.apply(e,o);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var r=[];var n=i("{","}",t);if(!n)return[t];var s=n.pre;var o=n.post.length?expand(n.post,false):[""];if(/\$$/.test(n.pre)){for(var c=0;c<o.length;c++){var l=s+"{"+n.body+"}"+o[c];r.push(l)}}else{var h=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);var p=h||u;var v=n.body.indexOf(",")>=0;if(!p&&!v){if(n.post.match(/,.*\}/)){t=n.pre+"{"+n.body+a+n.post;return expand(t)}return[t]}var d;if(p){d=n.body.split(/\.\./)}else{d=parseCommaParts(n.body);if(d.length===1){d=expand(d[0],false).map(embrace);if(d.length===1){return o.map((function(t){return n.pre+d[0]+t}))}}}var b;if(p){var g=numeric(d[0]);var y=numeric(d[1]);var _=Math.max(d[0].length,d[1].length);var w=d.length==3?Math.abs(numeric(d[2])):1;var k=lte;var E=y<g;if(E){w*=-1;k=gte}var S=d.some(isPadded);b=[];for(var O=g;k(O,y);O+=w){var A;if(u){A=String.fromCharCode(O);if(A==="\\")A=""}else{A=String(O);if(S){var x=_-A.length;if(x>0){var G=new Array(x+1).join("0");if(O<0)A="-"+G+A.slice(1);else A=G+A}}}b.push(A)}}else{b=[];for(var j=0;j<d.length;j++){b.push.apply(b,expand(d[j],false))}}for(var j=0;j<b.length;j++){for(var c=0;c<o.length;c++){var l=s+b[j]+o[c];if(!e||p||l)r.push(l)}}}return r}},737:function(t,e,r){t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(147);var n=i.realpath;var s=i.realpathSync;var a=process.version;var o=/^v[0-5]\./.test(a);var c=r(613);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,r){if(o){return n(t,e,r)}if(typeof e==="function"){r=e;e=null}n(t,e,(function(i,n){if(newError(i)){c.realpath(t,e,r)}else{r(i,n)}}))}function realpathSync(t,e){if(o){return s(t,e)}try{return s(t,e)}catch(r){if(newError(r)){return c.realpathSync(t,e)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=s}},613:function(t,e,r){var i=r(17);var n=process.platform==="win32";var s=r(147);var a=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(a){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var o=i.normalize;if(n){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(n){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var r=t,a={},o={};var h;var u;var p;var v;start();function start(){var e=l.exec(t);h=e[0].length;u=e[0];p=e[0];v="";if(n&&!o[p]){s.lstatSync(p);o[p]=true}}while(h<t.length){c.lastIndex=h;var d=c.exec(t);v=u;u+=d[0];p=v+d[1];h=c.lastIndex;if(o[p]||e&&e[p]===p){continue}var b;if(e&&Object.prototype.hasOwnProperty.call(e,p)){b=e[p]}else{var g=s.lstatSync(p);if(!g.isSymbolicLink()){o[p]=true;if(e)e[p]=p;continue}var y=null;if(!n){var _=g.dev.toString(32)+":"+g.ino.toString(32);if(a.hasOwnProperty(_)){y=a[_]}}if(y===null){s.statSync(p);y=s.readlinkSync(p)}b=i.resolve(v,y);if(e)e[p]=b;if(!n)a[_]=y}t=i.resolve(b,t.slice(h));start()}if(e)e[r]=t;return t};e.realpath=function realpath(t,e,r){if(typeof r!=="function"){r=maybeCallback(e);e=null}t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return process.nextTick(r.bind(null,null,e[t]))}var a=t,o={},h={};var u;var p;var v;var d;start();function start(){var e=l.exec(t);u=e[0].length;p=e[0];v=e[0];d="";if(n&&!h[v]){s.lstat(v,(function(t){if(t)return r(t);h[v]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(u>=t.length){if(e)e[a]=t;return r(null,t)}c.lastIndex=u;var i=c.exec(t);d=p;p+=i[0];v=d+i[1];u=c.lastIndex;if(h[v]||e&&e[v]===v){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,v)){return gotResolvedLink(e[v])}return s.lstat(v,gotStat)}function gotStat(t,i){if(t)return r(t);if(!i.isSymbolicLink()){h[v]=true;if(e)e[v]=v;return process.nextTick(LOOP)}if(!n){var a=i.dev.toString(32)+":"+i.ino.toString(32);if(o.hasOwnProperty(a)){return gotTarget(null,o[a],v)}}s.stat(v,(function(t){if(t)return r(t);s.readlink(v,(function(t,e){if(!n)o[a]=e;gotTarget(t,e)}))}))}function gotTarget(t,n,s){if(t)return r(t);var a=i.resolve(d,n);if(e)e[s]=a;gotResolvedLink(a)}function gotResolvedLink(e){t=i.resolve(e,t.slice(u));start()}}},537:function(t,e,r){e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var i=r(147);var n=r(17);var s=r(721);var a=r(17).isAbsolute;var o=s.Minimatch;function alphasort(t,e){return t.localeCompare(e,"en")}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new o(r,{dot:true})}return{matcher:new o(t,{dot:true}),gmatcher:e}}function setopts(t,e,r){if(!r)r={};if(r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!r.silent;t.pattern=e;t.strict=r.strict!==false;t.realpath=!!r.realpath;t.realpathCache=r.realpathCache||Object.create(null);t.follow=!!r.follow;t.dot=!!r.dot;t.mark=!!r.mark;t.nodir=!!r.nodir;if(t.nodir)t.mark=true;t.sync=!!r.sync;t.nounique=!!r.nounique;t.nonull=!!r.nonull;t.nosort=!!r.nosort;t.nocase=!!r.nocase;t.stat=!!r.stat;t.noprocess=!!r.noprocess;t.absolute=!!r.absolute;t.fs=r.fs||i;t.maxLength=r.maxLength||Infinity;t.cache=r.cache||Object.create(null);t.statCache=r.statCache||Object.create(null);t.symlinks=r.symlinks||Object.create(null);setupIgnores(t,r);t.changedCwd=false;var s=process.cwd();if(!ownProp(r,"cwd"))t.cwd=n.resolve(s);else{t.cwd=n.resolve(r.cwd);t.changedCwd=t.cwd!==s}t.root=r.root||n.resolve(t.cwd,"/");t.root=n.resolve(t.root);t.cwdAbs=a(t.cwd)?t.cwd:makeAbs(t,t.cwd);t.nomount=!!r.nomount;if(process.platform==="win32"){t.root=t.root.replace(/\\/g,"/");t.cwd=t.cwd.replace(/\\/g,"/");t.cwdAbs=t.cwdAbs.replace(/\\/g,"/")}r.nonegate=true;r.nocomment=true;r.allowWindowsEscape=true;t.minimatch=new o(e,r);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var r=e?[]:Object.create(null);for(var i=0,n=t.matches.length;i<n;i++){var s=t.matches[i];if(!s||Object.keys(s).length===0){if(t.nonull){var a=t.minimatch.globSet[i];if(e)r.push(a);else r[a]=true}}else{var o=Object.keys(s);if(e)r.push.apply(r,o);else o.forEach((function(t){r[t]=true}))}}if(!e)r=Object.keys(r);if(!t.nosort)r=r.sort(alphasort);if(t.mark){for(var i=0;i<r.length;i++){r[i]=t._mark(r[i])}if(t.nodir){r=r.filter((function(e){var r=!/\/$/.test(e);var i=t.cache[e]||t.cache[makeAbs(t,e)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r}))}}if(t.ignore.length)r=r.filter((function(e){return!isIgnored(t,e)}));t.found=r}function mark(t,e){var r=makeAbs(t,e);var i=t.cache[r];var n=e;if(i){var s=i==="DIR"||Array.isArray(i);var a=e.slice(-1)==="/";if(s&&!a)n+="/";else if(!s&&a)n=n.slice(0,-1);if(n!==e){var o=makeAbs(t,n);t.statCache[o]=t.statCache[r];t.cache[o]=t.cache[r]}}return n}function makeAbs(t,e){var r=e;if(e.charAt(0)==="/"){r=n.join(t.root,e)}else if(a(e)||e===""){r=e}else if(t.changedCwd){r=n.resolve(t.cwd,e)}else{r=n.resolve(e)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))}))}function childrenIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return!!(t.gmatcher&&t.gmatcher.match(e))}))}},279:function(t,e,r){t.exports=glob;var i=r(737);var n=r(721);var s=n.Minimatch;var a=r(315);var o=r(361).EventEmitter;var c=r(17);var l=r(491);var h=r(17).isAbsolute;var u=r(224);var p=r(537);var v=p.setopts;var d=p.ownProp;var b=r(900);var g=r(837);var y=p.childrenIgnored;var _=p.isIgnored;var w=r(556);function glob(t,e,r){if(typeof e==="function")r=e,e={};if(!e)e={};if(e.sync){if(r)throw new TypeError("callback provided to sync glob");return u(t,e)}return new Glob(t,e,r)}glob.sync=u;var k=glob.GlobSync=u.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var r=Object.keys(e);var i=r.length;while(i--){t[r[i]]=e[r[i]]}return t}glob.hasMagic=function(t,e){var r=extend({},e);r.noprocess=true;var i=new Glob(t,r);var n=i.minimatch.set;if(!t)return false;if(n.length>1)return true;for(var s=0;s<n[0].length;s++){if(typeof n[0][s]!=="string")return true}return false};glob.Glob=Glob;a(Glob,o);function Glob(t,e,r){if(typeof e==="function"){r=e;e=null}if(e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new k(t,e)}if(!(this instanceof Glob))return new Glob(t,e,r);v(this,t,e);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=w(r);this.on("error",r);this.on("end",(function(t){r(null,t)}))}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var s=true;for(var a=0;a<i;a++){this._process(this.minimatch.set[a],a,false,done)}s=false;function done(){--n._processing;if(n._processing<=0){if(s){process.nextTick((function(){n._finish()}))}else{n._finish()}}}}Glob.prototype._finish=function(){l(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var t=this.matches.length;if(t===0)return this._finish();var e=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--t===0)e._finish()}};Glob.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var n=Object.keys(r);var s=this;var a=n.length;if(a===0)return e();var o=this.matches[t]=Object.create(null);n.forEach((function(r,n){r=s._makeAbs(r);i.realpath(r,s.realpathCache,(function(i,n){if(!i)o[n]=true;else if(i.syscall==="stat")o[r]=true;else s.emit("error",i);if(--a===0){s.matches[t]=o;e()}}))}))};Glob.prototype._mark=function(t){return p.mark(this,t)};Glob.prototype._makeAbs=function(t){return p.makeAbs(this,t)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<i.length;e++){var n=i[e];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(t,e,r,i){l(this instanceof Glob);l(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([t,e,r,i]);return}var s=0;while(typeof t[s]==="string"){s++}var a;switch(s){case t.length:this._processSimple(t.join("/"),e,i);return;case 0:a=null;break;default:a=t.slice(0,s).join("/");break}var o=t.slice(s);var c;if(a===null)c=".";else if(h(a)||h(t.map((function(t){return typeof t==="string"?t:"[*]"})).join("/"))){if(!a||!h(a))a="/"+a;c=a}else c=a;var u=this._makeAbs(c);if(y(this,c))return i();var p=o[0]===n.GLOBSTAR;if(p)this._processGlobStar(a,c,u,o,e,r,i);else this._processReaddir(a,c,u,o,e,r,i)};Glob.prototype._processReaddir=function(t,e,r,i,n,s,a){var o=this;this._readdir(r,s,(function(c,l){return o._processReaddir2(t,e,r,i,n,s,l,a)}))};Glob.prototype._processReaddir2=function(t,e,r,i,n,s,a,o){if(!a)return o();var l=i[0];var h=!!this.minimatch.negate;var u=l._glob;var p=this.dot||u.charAt(0)===".";var v=[];for(var d=0;d<a.length;d++){var b=a[d];if(b.charAt(0)!=="."||p){var g;if(h&&!t){g=!b.match(l)}else{g=b.match(l)}if(g)v.push(b)}}var y=v.length;if(y===0)return o();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var d=0;d<y;d++){var b=v[d];if(t){if(t!=="/")b=t+"/"+b;else b=t+b}if(b.charAt(0)==="/"&&!this.nomount){b=c.join(this.root,b)}this._emitMatch(n,b)}return o()}i.shift();for(var d=0;d<y;d++){var b=v[d];var _;if(t){if(t!=="/")b=t+"/"+b;else b=t+b}this._process([b].concat(i),n,s,o)}o()};Glob.prototype._emitMatch=function(t,e){if(this.aborted)return;if(_(this,e))return;if(this.paused){this._emitQueue.push([t,e]);return}var r=h(e)?e:this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute)e=r;if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;var n=this.statCache[r];if(n)this.emit("stat",e,n);this.emit("match",e)};Glob.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,false,e);var r="lstat\0"+t;var i=this;var n=b(r,lstatcb_);if(n)i.fs.lstat(t,n);function lstatcb_(r,n){if(r&&r.code==="ENOENT")return e();var s=n&&n.isSymbolicLink();i.symlinks[t]=s;if(!s&&n&&!n.isDirectory()){i.cache[t]="FILE";e()}else i._readdir(t,false,e)}};Glob.prototype._readdir=function(t,e,r){if(this.aborted)return;r=b("readdir\0"+t+"\0"+e,r);if(!r)return;if(e&&!d(this.symlinks,t))return this._readdirInGlobStar(t,r);if(d(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var n=this;n.fs.readdir(t,readdirCb(this,t,r))};function readdirCb(t,e,r){return function(i,n){if(i)t._readdirError(e,i,r);else t._readdirEntries(e,n,r)}}Glob.prototype._readdirEntries=function(t,e,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<e.length;i++){var n=e[i];if(t==="/")n=t+n;else n=t+"/"+n;this.cache[n]=true}}this.cache[t]=e;return r(null,e)};Glob.prototype._readdirError=function(t,e,r){if(this.aborted)return;switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);this.cache[i]="FILE";if(i===this.cwdAbs){var n=new Error(e.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=e.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict){this.emit("error",e);this.abort()}if(!this.silent)console.error("glob error",e);break}return r()};Glob.prototype._processGlobStar=function(t,e,r,i,n,s,a){var o=this;this._readdir(r,s,(function(c,l){o._processGlobStar2(t,e,r,i,n,s,l,a)}))};Glob.prototype._processGlobStar2=function(t,e,r,i,n,s,a,o){if(!a)return o();var c=i.slice(1);var l=t?[t]:[];var h=l.concat(c);this._process(h,n,false,o);var u=this.symlinks[r];var p=a.length;if(u&&s)return o();for(var v=0;v<p;v++){var d=a[v];if(d.charAt(0)==="."&&!this.dot)continue;var b=l.concat(a[v],c);this._process(b,n,true,o);var g=l.concat(a[v],i);this._process(g,n,true,o)}o()};Glob.prototype._processSimple=function(t,e,r){var i=this;this._stat(t,(function(n,s){i._processSimple2(t,e,n,s,r)}))};Glob.prototype._processSimple2=function(t,e,r,i,n){if(!this.matches[e])this.matches[e]=Object.create(null);if(!i)return n();if(t&&h(t)&&!this.nomount){var s=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=c.join(this.root,t)}else{t=c.resolve(this.root,t);if(s)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t);n()};Glob.prototype._stat=function(t,e){var r=this._makeAbs(t);var i=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&d(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!i||n==="DIR")return e(null,n);if(i&&n==="FILE")return e()}var s;var a=this.statCache[r];if(a!==undefined){if(a===false)return e(null,a);else{var o=a.isDirectory()?"DIR":"FILE";if(i&&o==="FILE")return e();else return e(null,o,a)}}var c=this;var l=b("stat\0"+r,lstatcb_);if(l)c.fs.lstat(r,l);function lstatcb_(i,n){if(n&&n.isSymbolicLink()){return c.fs.stat(r,(function(i,s){if(i)c._stat2(t,r,null,n,e);else c._stat2(t,r,i,s,e)}))}else{c._stat2(t,r,i,n,e)}}};Glob.prototype._stat2=function(t,e,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[e]=false;return n()}var s=t.slice(-1)==="/";this.statCache[e]=i;if(e.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var a=true;if(i)a=i.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||a;if(s&&a==="FILE")return n();return n(null,a,i)}},224:function(t,e,r){t.exports=globSync;globSync.GlobSync=GlobSync;var i=r(737);var n=r(721);var s=n.Minimatch;var a=r(279).Glob;var o=r(837);var c=r(17);var l=r(491);var h=r(17).isAbsolute;var u=r(537);var p=u.setopts;var v=u.ownProp;var d=u.childrenIgnored;var b=u.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);p(this,t,e);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){l.ok(this instanceof GlobSync);if(this.realpath){var t=this;this.matches.forEach((function(e,r){var n=t.matches[r]=Object.create(null);for(var s in e){try{s=t._makeAbs(s);var a=i.realpathSync(s,t.realpathCache);n[a]=true}catch(e){if(e.syscall==="stat")n[t._makeAbs(s)]=true;else throw e}}}))}u.finish(this)};GlobSync.prototype._process=function(t,e,r){l.ok(this instanceof GlobSync);var i=0;while(typeof t[i]==="string"){i++}var s;switch(i){case t.length:this._processSimple(t.join("/"),e);return;case 0:s=null;break;default:s=t.slice(0,i).join("/");break}var a=t.slice(i);var o;if(s===null)o=".";else if(h(s)||h(t.map((function(t){return typeof t==="string"?t:"[*]"})).join("/"))){if(!s||!h(s))s="/"+s;o=s}else o=s;var c=this._makeAbs(o);if(d(this,o))return;var u=a[0]===n.GLOBSTAR;if(u)this._processGlobStar(s,o,c,a,e,r);else this._processReaddir(s,o,c,a,e,r)};GlobSync.prototype._processReaddir=function(t,e,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var o=i[0];var l=!!this.minimatch.negate;var h=o._glob;var u=this.dot||h.charAt(0)===".";var p=[];for(var v=0;v<a.length;v++){var d=a[v];if(d.charAt(0)!=="."||u){var b;if(l&&!t){b=!d.match(o)}else{b=d.match(o)}if(b)p.push(d)}}var g=p.length;if(g===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var v=0;v<g;v++){var d=p[v];if(t){if(t.slice(-1)!=="/")d=t+"/"+d;else d=t+d}if(d.charAt(0)==="/"&&!this.nomount){d=c.join(this.root,d)}this._emitMatch(n,d)}return}i.shift();for(var v=0;v<g;v++){var d=p[v];var y;if(t)y=[t,d];else y=[d];this._process(y.concat(i),n,s)}};GlobSync.prototype._emitMatch=function(t,e){if(b(this,e))return;var r=this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute){e=r}if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;if(this.stat)this._stat(e)};GlobSync.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,false);var e;var r;var i;try{r=this.fs.lstatSync(t)}catch(t){if(t.code==="ENOENT"){return null}}var n=r&&r.isSymbolicLink();this.symlinks[t]=n;if(!n&&r&&!r.isDirectory())this.cache[t]="FILE";else e=this._readdir(t,false);return e};GlobSync.prototype._readdir=function(t,e){var r;if(e&&!v(this.symlinks,t))return this._readdirInGlobStar(t);if(v(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(e){this._readdirError(t,e);return null}};GlobSync.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat){for(var r=0;r<e.length;r++){var i=e[r];if(t==="/")i=t+i;else i=t+"/"+i;this.cache[i]=true}}this.cache[t]=e;return e};GlobSync.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=e.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict)throw e;if(!this.silent)console.error("glob error",e);break}};GlobSync.prototype._processGlobStar=function(t,e,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var o=i.slice(1);var c=t?[t]:[];var l=c.concat(o);this._process(l,n,false);var h=a.length;var u=this.symlinks[r];if(u&&s)return;for(var p=0;p<h;p++){var v=a[p];if(v.charAt(0)==="."&&!this.dot)continue;var d=c.concat(a[p],o);this._process(d,n,true);var b=c.concat(a[p],i);this._process(b,n,true)}};GlobSync.prototype._processSimple=function(t,e){var r=this._stat(t);if(!this.matches[e])this.matches[e]=Object.create(null);if(!r)return;if(t&&h(t)&&!this.nomount){var i=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=c.join(this.root,t)}else{t=c.resolve(this.root,t);if(i)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t)};GlobSync.prototype._stat=function(t){var e=this._makeAbs(t);var r=t.slice(-1)==="/";if(t.length>this.maxLength)return false;if(!this.stat&&v(this.cache,e)){var i=this.cache[e];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var n;var s=this.statCache[e];if(!s){var a;try{a=this.fs.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(a&&a.isSymbolicLink()){try{s=this.fs.statSync(e)}catch(t){s=a}}else{s=a}}this.statCache[e]=s;var i=true;if(s)i=s.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(t){return u.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return u.makeAbs(this,t)}},900:function(t,e,r){var i=r(928);var n=Object.create(null);var s=r(556);t.exports=i(inflight);function inflight(t,e){if(n[t]){n[t].push(e);return null}else{n[t]=[e];return makeres(t)}}function makeres(t){return s((function RES(){var e=n[t];var r=e.length;var i=slice(arguments);try{for(var s=0;s<r;s++){e[s].apply(null,i)}}finally{if(e.length>r){e.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete n[t]}}}))}function slice(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i]=t[i];return r}},315:function(t,e,r){try{var i=r(837);if(typeof i.inherits!=="function")throw"";t.exports=i.inherits}catch(e){t.exports=r(959)}},959:function(t){if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var TempCtor=function(){};TempCtor.prototype=e.prototype;t.prototype=new TempCtor;t.prototype.constructor=t}}}},592:function(t){const e=typeof process==="object"&&process&&process.platform==="win32";t.exports=e?{sep:"\\"}:{sep:"/"}},721:function(t,e,r){const i=t.exports=(t,e,r={})=>{assertValidPattern(e);if(!r.nocomment&&e.charAt(0)==="#"){return false}return new Minimatch(e,r).match(t)};t.exports=i;const n=r(592);i.sep=n.sep;const s=Symbol("globstar **");i.GLOBSTAR=s;const a=r(461);const o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const c="[^/]";const l=c+"*?";const h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const u="(?:(?!(?:\\/|^)\\.).)*?";const charSet=t=>t.split("").reduce(((t,e)=>{t[e]=true;return t}),{});const p=charSet("().*{}+?[]^$\\!");const v=charSet("[.(");const d=/\/+/;i.filter=(t,e={})=>(r,n,s)=>i(r,t,e);const ext=(t,e={})=>{const r={};Object.keys(t).forEach((e=>r[e]=t[e]));Object.keys(e).forEach((t=>r[t]=e[t]));return r};i.defaults=t=>{if(!t||typeof t!=="object"||!Object.keys(t).length){return i}const e=i;const m=(r,i,n)=>e(r,i,ext(t,n));m.Minimatch=class Minimatch extends e.Minimatch{constructor(e,r){super(e,ext(t,r))}};m.Minimatch.defaults=r=>e.defaults(ext(t,r)).Minimatch;m.filter=(r,i)=>e.filter(r,ext(t,i));m.defaults=r=>e.defaults(ext(t,r));m.makeRe=(r,i)=>e.makeRe(r,ext(t,i));m.braceExpand=(r,i)=>e.braceExpand(r,ext(t,i));m.match=(r,i,n)=>e.match(r,i,ext(t,n));return m};i.braceExpand=(t,e)=>braceExpand(t,e);const braceExpand=(t,e={})=>{assertValidPattern(t);if(e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)){return[t]}return a(t)};const b=1024*64;const assertValidPattern=t=>{if(typeof t!=="string"){throw new TypeError("invalid pattern")}if(t.length>b){throw new TypeError("pattern is too long")}};const g=Symbol("subparse");i.makeRe=(t,e)=>new Minimatch(t,e||{}).makeRe();i.match=(t,e,r={})=>{const i=new Minimatch(e,r);t=t.filter((t=>i.match(t)));if(i.options.nonull&&!t.length){t.push(e)}return t};const globUnescape=t=>t.replace(/\\(.)/g,"$1");const charUnescape=t=>t.replace(/\\([^-\]])/g,"$1");const regExpEscape=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=t=>t.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(t,e){assertValidPattern(t);if(!e)e={};this.options=e;this.set=[];this.pattern=t;this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!e.partial;this.make()}debug(){}make(){const t=this.pattern;const e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(e.debug)this.debug=(...t)=>console.error(...t);this.debug(this.pattern,r);r=this.globParts=r.map((t=>t.split(d)));this.debug(this.pattern,r);r=r.map(((t,e,r)=>t.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((t=>t.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const t=this.pattern;let e=false;let r=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++){e=!e;r++}if(r)this.pattern=t.slice(r);this.negate=e}matchOne(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e});this.debug("matchOne",t.length,e.length);for(var n=0,a=0,o=t.length,c=e.length;n<o&&a<c;n++,a++){this.debug("matchOne loop");var l=e[a];var h=t[n];this.debug(e,l,h);if(l===false)return false;if(l===s){this.debug("GLOBSTAR",[e,l,h]);var u=n;var p=a+1;if(p===c){this.debug("** at the end");for(;n<o;n++){if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return false}return true}while(u<o){var v=t[u];this.debug("\nglobstar while",t,u,e,p,v);if(this.matchOne(t.slice(u),e.slice(p),r)){this.debug("globstar found match!",u,o,v);return true}else{if(v==="."||v===".."||!i.dot&&v.charAt(0)==="."){this.debug("dot detected!",t,u,e,p);break}this.debug("globstar swallow a segment, and continue");u++}}if(r){this.debug("\n>>> no match, partial?",t,u,e,p);if(u===o)return true}return false}var d;if(typeof l==="string"){d=h===l;this.debug("string match",l,h,d)}else{d=h.match(l);this.debug("pattern match",l,h,d)}if(!d)return false}if(n===o&&a===c){return true}else if(n===o){return r}else if(a===c){return n===o-1&&t[n]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(t,e){assertValidPattern(t);const r=this.options;if(t==="**"){if(!r.noglobstar)return s;else t="*"}if(t==="")return"";let i="";let n=!!r.nocase;let a=false;const h=[];const u=[];let d;let b=false;let y=-1;let _=-1;let w;let k;let E;const S=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(d){switch(d){case"*":i+=l;n=true;break;case"?":i+=c;n=true;break;default:i+="\\"+d;break}this.debug("clearStateChar %j %j",d,i);d=false}};for(let e=0,s;e<t.length&&(s=t.charAt(e));e++){this.debug("%s\t%s %s %j",t,e,i,s);if(a){if(s==="/"){return false}if(p[s]){i+="\\"}i+=s;a=false;continue}switch(s){case"/":{return false}case"\\":if(b&&t.charAt(e+1)==="-"){i+=s;continue}clearStateChar();a=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",t,e,i,s);if(b){this.debug(" in class");if(s==="!"&&e===_+1)s="^";i+=s;continue}this.debug("call clearStateChar %j",d);clearStateChar();d=s;if(r.noext)clearStateChar();continue;case"(":if(b){i+="(";continue}if(!d){i+="\\(";continue}h.push({type:d,start:e-1,reStart:i.length,open:o[d].open,close:o[d].close});i+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,i);d=false;continue;case")":if(b||!h.length){i+="\\)";continue}clearStateChar();n=true;k=h.pop();i+=k.close;if(k.type==="!"){u.push(k)}k.reEnd=i.length;continue;case"|":if(b||!h.length){i+="\\|";continue}clearStateChar();i+="|";continue;case"[":clearStateChar();if(b){i+="\\"+s;continue}b=true;_=e;y=i.length;i+=s;continue;case"]":if(e===_+1||!b){i+="\\"+s;continue}w=t.substring(_+1,e);try{RegExp("["+braExpEscape(charUnescape(w))+"]");i+=s}catch(t){i=i.substring(0,y)+"(?:$.)"}n=true;b=false;continue;default:clearStateChar();if(p[s]&&!(s==="^"&&b)){i+="\\"}i+=s;break}}if(b){w=t.slice(_+1);E=this.parse(w,g);i=i.substring(0,y)+"\\["+E[0];n=n||E[1]}for(k=h.pop();k;k=h.pop()){let t;t=i.slice(k.reStart+k.open.length);this.debug("setting tail",i,k);t=t.replace(/((?:\\{2}){0,64})(\\?)\|/g,((t,e,r)=>{if(!r){r="\\"}return e+e+r+"|"}));this.debug("tail=%j\n %s",t,t,k,i);const e=k.type==="*"?l:k.type==="?"?c:"\\"+k.type;n=true;i=i.slice(0,k.reStart)+e+"\\("+t}clearStateChar();if(a){i+="\\\\"}const O=v[i.charAt(0)];for(let t=u.length-1;t>-1;t--){const r=u[t];const n=i.slice(0,r.reStart);const s=i.slice(r.reStart,r.reEnd-8);let a=i.slice(r.reEnd);const o=i.slice(r.reEnd-8,r.reEnd)+a;const c=n.split("(").length-1;let l=a;for(let t=0;t<c;t++){l=l.replace(/\)[+*?]?/,"")}a=l;const h=a===""&&e!==g?"$":"";i=n+s+a+h+o}if(i!==""&&n){i="(?=.)"+i}if(O){i=S+i}if(e===g){return[i,n]}if(!n){return globUnescape(t)}const A=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",A),{_glob:t,_src:i})}catch(t){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const t=this.set;if(!t.length){this.regexp=false;return this.regexp}const e=this.options;const r=e.noglobstar?l:e.dot?h:u;const i=e.nocase?"i":"";let n=t.map((t=>{t=t.map((t=>typeof t==="string"?regExpEscape(t):t===s?s:t._src)).reduce(((t,e)=>{if(!(t[t.length-1]===s&&e===s)){t.push(e)}return t}),[]);t.forEach(((e,i)=>{if(e!==s||t[i-1]===s){return}if(i===0){if(t.length>1){t[i+1]="(?:\\/|"+r+"\\/)?"+t[i+1]}else{t[i]=r}}else if(i===t.length-1){t[i-1]+="(?:\\/|"+r+")?"}else{t[i-1]+="(?:\\/|\\/"+r+"\\/)"+t[i+1];t[i+1]=s}}));return t.filter((t=>t!==s)).join("/")})).join("|");n="^(?:"+n+")$";if(this.negate)n="^(?!"+n+").*$";try{this.regexp=new RegExp(n,i)}catch(t){this.regexp=false}return this.regexp}match(t,e=this.partial){this.debug("match",t,this.pattern);if(this.comment)return false;if(this.empty)return t==="";if(t==="/"&&e)return true;const r=this.options;if(n.sep!=="/"){t=t.split(n.sep).join("/")}t=t.split(d);this.debug(this.pattern,"split",t);const i=this.set;this.debug(this.pattern,"set",i);let s;for(let e=t.length-1;e>=0;e--){s=t[e];if(s)break}for(let n=0;n<i.length;n++){const a=i[n];let o=t;if(r.matchBase&&a.length===1){o=[s]}const c=this.matchOne(o,a,e);if(c){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}static defaults(t){return i.defaults(t).Minimatch}}i.Minimatch=Minimatch},556:function(t,e,r){var i=r(928);t.exports=i(once);t.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(t){var f=function(){if(f.called)return f.value;f.called=true;return f.value=t.apply(this,arguments)};f.called=false;return f}function onceStrict(t){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=t.apply(this,arguments)};var e=t.name||"Function wrapped with `once`";f.onceError=e+" shouldn't be called more than once";f.called=false;return f}},928:function(t){t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach((function(e){wrapper[e]=t[e]}));return wrapper;function wrapper(){var e=new Array(arguments.length);for(var r=0;r<e.length;r++){e[r]=arguments[r]}var i=t.apply(this,e);var n=e[e.length-1];if(typeof i==="function"&&i!==n){Object.keys(n).forEach((function(t){i[t]=n[t]}))}return i}}},491:function(t){"use strict";t.exports=require("assert")},361:function(t){"use strict";t.exports=require("events")},147:function(t){"use strict";t.exports=require("fs")},17:function(t){"use strict";t.exports=require("path")},837:function(t){"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){var i=e[r];if(i!==undefined){return i.exports}var n=e[r]={exports:{}};var s=true;try{t[r](n,n.exports,__nccwpck_require__);s=false}finally{if(s)delete e[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(279);module.exports=r})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"glob","author":"Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)","license":"ISC"}
|
|
1
|
+
{"name":"glob","version":"8.0.3","author":"Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)","license":"ISC"}
|