@umijs/utils 4.0.0-beta.8 → 4.0.0-canary-20240513.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +70 -0
  2. package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
  3. package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/types.d.ts +35 -0
  4. package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
  5. package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
  6. package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/types.d.ts +92 -0
  7. package/compiled/@ampproject/remapping/LICENSE +202 -0
  8. package/compiled/@ampproject/remapping/dist/types/remapping.d.ts +19 -0
  9. package/compiled/@ampproject/remapping/dist/types/source-map.d.ts +17 -0
  10. package/compiled/@ampproject/remapping/dist/types/types.d.ts +14 -0
  11. package/compiled/@ampproject/remapping/index.js +1 -0
  12. package/compiled/@ampproject/remapping/package.json +1 -0
  13. package/compiled/@clack/prompts/LICENSE +23 -0
  14. package/compiled/@clack/prompts/dist/index.d.ts +38 -0
  15. package/compiled/@clack/prompts/index.js +1 -0
  16. package/compiled/@clack/prompts/package.json +1 -0
  17. package/compiled/@hapi/joi/index.d.ts +2218 -0
  18. package/compiled/@hapi/joi/index.js +1 -0
  19. package/compiled/@hapi/joi/package.json +1 -0
  20. package/compiled/axios/index.d.ts +29 -14
  21. package/compiled/axios/index.js +1 -1
  22. package/compiled/chalk/LICENSE +1 -1
  23. package/compiled/chalk/index.js +1 -1
  24. package/compiled/chalk/package.json +1 -1
  25. package/compiled/chalk/source/index.d.ts +318 -0
  26. package/compiled/chalk/source/vendor/supports-color/index.d.ts +55 -0
  27. package/compiled/color/color-convert/conversions.d.ts +87 -87
  28. package/compiled/color/color-convert/index.d.ts +75 -60
  29. package/compiled/color/color-convert/route.d.ts +271 -271
  30. package/compiled/color/index.d.ts +118 -121
  31. package/compiled/color/index.js +1 -1
  32. package/compiled/color/package.json +1 -4
  33. package/compiled/debug/LICENSE +10 -9
  34. package/compiled/debug/index.js +1 -1
  35. package/compiled/debug/package.json +1 -1
  36. package/compiled/execa/index.d.ts +467 -445
  37. package/compiled/execa/index.js +1 -1
  38. package/compiled/fastest-levenshtein/index.js +1 -0
  39. package/compiled/fastest-levenshtein/mod.d.ts +3 -0
  40. package/compiled/fastest-levenshtein/package.json +1 -0
  41. package/compiled/filesize/LICENSE +28 -0
  42. package/compiled/filesize/filesize.d.ts +131 -0
  43. package/compiled/filesize/index.js +8 -0
  44. package/compiled/filesize/package.json +1 -0
  45. package/compiled/filesize/types/filesize.d.ts +46 -0
  46. package/compiled/fs-extra/index.d.ts +930 -253
  47. package/compiled/fs-extra/index.js +1 -1
  48. package/compiled/fs-extra/jsonfile/index.d.ts +78 -0
  49. package/compiled/fs-extra/package.json +1 -1
  50. package/compiled/glob/LICENSE +1 -7
  51. package/compiled/glob/index.d.ts +3 -1
  52. package/compiled/glob/index.js +1 -1
  53. package/compiled/glob/package.json +1 -1
  54. package/compiled/gzip-size/LICENSE +9 -0
  55. package/compiled/gzip-size/index.d.ts +103 -0
  56. package/compiled/gzip-size/index.js +1 -0
  57. package/compiled/gzip-size/package.json +1 -0
  58. package/compiled/lodash/common/array.d.ts +0 -0
  59. package/compiled/lodash/common/collection.d.ts +0 -0
  60. package/compiled/lodash/common/common.d.ts +0 -0
  61. package/compiled/lodash/common/date.d.ts +0 -0
  62. package/compiled/lodash/common/function.d.ts +0 -0
  63. package/compiled/lodash/common/lang.d.ts +0 -0
  64. package/compiled/lodash/common/math.d.ts +0 -0
  65. package/compiled/lodash/common/number.d.ts +0 -0
  66. package/compiled/lodash/common/object.d.ts +0 -0
  67. package/compiled/lodash/common/seq.d.ts +0 -0
  68. package/compiled/lodash/common/string.d.ts +0 -0
  69. package/compiled/lodash/common/util.d.ts +0 -0
  70. package/compiled/magic-string/LICENSE +7 -0
  71. package/compiled/magic-string/index.d.ts +250 -0
  72. package/compiled/magic-string/index.js +1 -0
  73. package/compiled/magic-string/package.json +1 -0
  74. package/compiled/pirates/LICENSE +21 -0
  75. package/compiled/pirates/index.d.ts +82 -0
  76. package/compiled/pirates/index.js +1 -0
  77. package/compiled/pirates/package.json +1 -0
  78. package/compiled/pkg-up/LICENSE +1 -1
  79. package/compiled/pkg-up/index.d.ts +55 -44
  80. package/compiled/pkg-up/index.js +1 -1
  81. package/compiled/pkg-up/package.json +1 -1
  82. package/compiled/portfinder/index.js +1 -1
  83. package/compiled/portfinder/lib/portfinder.d.ts +16 -1
  84. package/compiled/portfinder/package.json +1 -1
  85. package/compiled/prettier/index.d.ts +568 -679
  86. package/compiled/prettier/index.js +62 -274
  87. package/compiled/prettier/package.json +1 -5
  88. package/compiled/resolve/index.js +1 -1
  89. package/compiled/semver/classes/range.d.ts +1 -1
  90. package/compiled/semver/classes/semver.d.ts +1 -1
  91. package/compiled/semver/functions/compare-build.d.ts +6 -1
  92. package/compiled/semver/functions/diff.d.ts +1 -5
  93. package/compiled/semver/functions/satisfies.d.ts +1 -1
  94. package/compiled/semver/index.d.ts +3 -0
  95. package/compiled/semver/index.js +1 -1
  96. package/compiled/semver/package.json +1 -1
  97. package/compiled/semver/ranges/gtr.d.ts +1 -1
  98. package/compiled/semver/ranges/intersects.d.ts +1 -1
  99. package/compiled/semver/ranges/ltr.d.ts +1 -1
  100. package/compiled/semver/ranges/max-satisfying.d.ts +1 -1
  101. package/compiled/semver/ranges/min-satisfying.d.ts +1 -1
  102. package/compiled/semver/ranges/outside.d.ts +1 -1
  103. package/compiled/semver/ranges/subset.d.ts +1 -5
  104. package/compiled/semver/ranges/valid.d.ts +1 -1
  105. package/compiled/strip-ansi/LICENSE +1 -1
  106. package/compiled/strip-ansi/index.d.ts +2 -4
  107. package/compiled/strip-ansi/index.js +1 -1
  108. package/compiled/strip-ansi/package.json +1 -1
  109. package/compiled/tar/LICENSE +15 -0
  110. package/compiled/tar/index.d.ts +943 -0
  111. package/compiled/tar/index.js +1 -0
  112. package/compiled/tar/minipass/index.d.ts +150 -0
  113. package/compiled/tar/package.json +1 -0
  114. package/compiled/tsconfig-paths/LICENSE +21 -0
  115. package/compiled/tsconfig-paths/index.js +1 -0
  116. package/compiled/tsconfig-paths/lib/index.d.ts +5 -0
  117. package/compiled/tsconfig-paths/package.json +1 -0
  118. package/compiled/yargs-parser/index.js +1 -1
  119. package/compiled/yargs-parser/package.json +1 -1
  120. package/compiled/zod/LICENSE +21 -0
  121. package/compiled/zod/index.d.ts +2 -0
  122. package/compiled/zod/index.js +1 -0
  123. package/compiled/zod/lib/ZodError.d.ts +159 -0
  124. package/compiled/zod/lib/__tests__/Mocker.d.ts +17 -0
  125. package/compiled/zod/lib/benchmarks/discriminatedUnion.d.ts +5 -0
  126. package/compiled/zod/lib/benchmarks/index.d.ts +1 -0
  127. package/compiled/zod/lib/benchmarks/object.d.ts +5 -0
  128. package/compiled/zod/lib/benchmarks/primitives.d.ts +5 -0
  129. package/compiled/zod/lib/benchmarks/realworld.d.ts +5 -0
  130. package/compiled/zod/lib/benchmarks/string.d.ts +5 -0
  131. package/compiled/zod/lib/benchmarks/union.d.ts +5 -0
  132. package/compiled/zod/lib/errors.d.ts +5 -0
  133. package/compiled/zod/lib/external.d.ts +6 -0
  134. package/compiled/zod/lib/helpers/enumUtil.d.ts +8 -0
  135. package/compiled/zod/lib/helpers/errorUtil.d.ts +9 -0
  136. package/compiled/zod/lib/helpers/parseUtil.d.ts +78 -0
  137. package/compiled/zod/lib/helpers/partialUtil.d.ts +8 -0
  138. package/compiled/zod/lib/helpers/typeAliases.d.ts +2 -0
  139. package/compiled/zod/lib/helpers/util.d.ts +47 -0
  140. package/compiled/zod/lib/index.d.ts +4 -0
  141. package/compiled/zod/lib/locales/en.d.ts +3 -0
  142. package/compiled/zod/lib/types.d.ts +975 -0
  143. package/compiled/zod/package.json +1 -0
  144. package/dist/BaseGenerator/BaseGenerator.d.ts +3 -3
  145. package/dist/BaseGenerator/BaseGenerator.js +78 -54
  146. package/dist/BaseGenerator/generateFile.d.ts +2 -1
  147. package/dist/BaseGenerator/generateFile.js +49 -22
  148. package/dist/Generator/Generator.d.ts +18 -14
  149. package/dist/Generator/Generator.js +97 -70
  150. package/dist/aliasUtils/getAliasValue.d.ts +4 -0
  151. package/dist/aliasUtils/getAliasValue.js +66 -0
  152. package/dist/aliasUtils/index.d.ts +2 -0
  153. package/dist/aliasUtils/index.js +32 -0
  154. package/dist/aliasUtils/parseCircleAlias.d.ts +4 -0
  155. package/dist/aliasUtils/parseCircleAlias.js +66 -0
  156. package/dist/getCorejsVersion.d.ts +1 -0
  157. package/dist/getCorejsVersion.js +35 -0
  158. package/dist/getDevBanner.d.ts +5 -0
  159. package/dist/getDevBanner.js +81 -0
  160. package/dist/getFileGitIno.d.ts +47 -0
  161. package/dist/getFileGitIno.js +130 -0
  162. package/dist/getGitInfo.d.ts +6 -0
  163. package/dist/getGitInfo.js +50 -0
  164. package/dist/importLazy.js +42 -14
  165. package/dist/index.d.ts +26 -3
  166. package/dist/index.js +185 -86
  167. package/dist/installDeps.js +69 -37
  168. package/dist/isJavaScriptFile.d.ts +1 -0
  169. package/dist/isJavaScriptFile.js +32 -0
  170. package/dist/isLocalDev.d.ts +4 -0
  171. package/dist/isLocalDev.js +36 -0
  172. package/dist/isMonorepo.d.ts +5 -0
  173. package/dist/isMonorepo.js +44 -0
  174. package/dist/isStyleFile.d.ts +5 -0
  175. package/dist/isStyleFile.js +44 -0
  176. package/dist/logger.d.ts +13 -6
  177. package/dist/logger.js +166 -25
  178. package/dist/node.d.ts +4 -0
  179. package/dist/node.js +61 -0
  180. package/dist/npmClient.d.ts +3 -2
  181. package/dist/npmClient.js +86 -40
  182. package/dist/printHelp.d.ts +2 -0
  183. package/dist/printHelp.js +64 -0
  184. package/dist/randomColor/randomColor.js +47 -16
  185. package/dist/readDirFiles.d.ts +9 -0
  186. package/dist/readDirFiles.js +62 -0
  187. package/dist/register.d.ts +1 -0
  188. package/dist/register.js +75 -37
  189. package/dist/setNoDeprecation.d.ts +1 -0
  190. package/dist/setNoDeprecation.js +31 -0
  191. package/dist/tryPaths.d.ts +1 -0
  192. package/dist/tryPaths.js +35 -0
  193. package/dist/updatePackageJSON.js +50 -19
  194. package/dist/winPath.js +33 -9
  195. package/dist/zod/isZodSchema.d.ts +2 -0
  196. package/dist/zod/isZodSchema.js +31 -0
  197. package/package.json +70 -44
@@ -1,48 +1,59 @@
1
- declare namespace pkgUp {
2
- interface Options {
3
- /**
4
- Directory to start from.
5
-
6
- @default process.cwd()
7
- */
8
- readonly cwd?: string;
9
- }
10
- }
11
-
12
- declare const pkgUp: {
1
+ export interface Options {
13
2
  /**
14
- Find the closest `package.json` file.
15
-
16
- @returns The filepath, or `null` if it couldn't be found.
17
-
18
- @example
19
- ```
20
- // /
21
- // └── Users
22
- // └── sindresorhus
23
- // └── foo
24
- // ├── package.json
25
- // └── bar
26
- // ├── baz
27
- // └── example.js
28
-
29
- // example.js
30
- import pkgUp = require('../pkg-up');
31
-
32
- (async () => {
33
- console.log(await pkgUp());
34
- //=> '/Users/sindresorhus/foo/package.json'
35
- })();
36
- ```
37
- */
38
- (options?: pkgUp.Options): Promise<string | null>;
3
+ The directory to start from.
39
4
 
40
- /**
41
- Synchronously find the closest `package.json` file.
42
-
43
- @returns The filepath, or `null` if it couldn't be found.
5
+ @default process.cwd()
44
6
  */
45
- sync(options?: pkgUp.Options): string | null;
46
- };
7
+ readonly cwd?: string;
8
+ }
9
+
10
+ /**
11
+ Find the closest `package.json` file.
12
+
13
+ @returns The file path, or `undefined` if it could not be found.
14
+
15
+ @example
16
+ ```
17
+ // /
18
+ // └── Users
19
+ // └── sindresorhus
20
+ // └── foo
21
+ // ├── package.json
22
+ // └── bar
23
+ // ├── baz
24
+ // └── example.js
25
+
26
+ // example.js
27
+ import {pkgUp} from '../pkg-up';
28
+
29
+ console.log(await pkgUp());
30
+ //=> '/Users/sindresorhus/foo/package.json'
31
+ ```
32
+ */
33
+ export function pkgUp(options?: Options): Promise<string | undefined>;
34
+
35
+ /**
36
+ Synchronously find the closest `package.json` file.
37
+
38
+ @returns The file path, or `undefined` if it could not be found.
39
+
40
+ @example
41
+ ```
42
+ // /
43
+ // └── Users
44
+ // └── sindresorhus
45
+ // └── foo
46
+ // ├── package.json
47
+ // └── bar
48
+ // ├── baz
49
+ // └── example.js
50
+
51
+ // example.js
52
+ import {pkgUpSync} from '../pkg-up';
53
+
54
+ console.log(pkgUpSync());
55
+ //=> '/Users/sindresorhus/foo/package.json'
56
+ ```
57
+ */
58
+ export function pkgUpSync(options?: Options): string | undefined;
47
59
 
48
- export = pkgUp;
@@ -1 +1 @@
1
- (function(){"use strict";var e={555:function(e,r,n){const t=n(622);const s=n(326);e.exports=(e,r={})=>{const n=t.resolve(r.cwd||"");const{root:c}=t.parse(n);const o=[].concat(e);return new Promise((e=>{(function find(r){s(o,{cwd:r}).then((n=>{if(n){e(t.join(r,n))}else if(r===c){e(null)}else{find(t.dirname(r))}}))})(n)}))};e.exports.sync=(e,r={})=>{let n=t.resolve(r.cwd||"");const{root:c}=t.parse(n);const o=[].concat(e);while(true){const e=s.sync(o,{cwd:n});if(e){return t.join(n,e)}if(n===c){return null}n=t.dirname(n)}}},326:function(e,r,n){const t=n(622);const s=n(720);const c=n(463);e.exports=(e,r)=>{r=Object.assign({cwd:process.cwd()},r);return c(e,(e=>s(t.resolve(r.cwd,e))),r)};e.exports.sync=(e,r)=>{r=Object.assign({cwd:process.cwd()},r);for(const n of e){if(s.sync(t.resolve(r.cwd,n))){return n}}}},66:function(e,r,n){const t=n(502);const pLimit=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"))}const r=[];let n=0;const next=()=>{n--;if(r.length>0){r.shift()()}};const run=(e,r,...s)=>{n++;const c=t(e,...s);r(c);c.then(next,next)};const enqueue=(t,s,...c)=>{if(n<e){run(t,s,...c)}else{r.push(run.bind(null,t,s,...c))}};const generator=(e,...r)=>new Promise((n=>enqueue(e,n,...r)));Object.defineProperties(generator,{activeCount:{get:()=>n},pendingCount:{get:()=>r.length},clearQueue:{value:()=>{r.length=0}}});return generator};e.exports=pLimit;e.exports.default=pLimit},463:function(e,r,n){const t=n(66);class EndError extends Error{constructor(e){super();this.value=e}}const testElement=(e,r)=>Promise.resolve(e).then(r);const finder=e=>Promise.all(e).then((e=>e[1]===true&&Promise.reject(new EndError(e[0]))));e.exports=(e,r,n)=>{n=Object.assign({concurrency:Infinity,preserveOrder:true},n);const s=t(n.concurrency);const c=[...e].map((e=>[e,s(testElement,e,r)]));const o=t(n.preserveOrder?1:Infinity);return Promise.all(c.map((e=>o(finder,e)))).then((()=>{})).catch((e=>e instanceof EndError?e.value:Promise.reject(e)))}},502:function(e){const pTry=(e,...r)=>new Promise((n=>{n(e(...r))}));e.exports=pTry;e.exports.default=pTry},720:function(e,r,n){const t=n(747);e.exports=e=>new Promise((r=>{t.access(e,(e=>{r(!e)}))}));e.exports.sync=e=>{try{t.accessSync(e);return true}catch(e){return false}}},258:function(e,r,n){const t=n(555);e.exports=async({cwd:e}={})=>t("package.json",{cwd:e});e.exports.sync=({cwd:e}={})=>t.sync("package.json",{cwd:e})},747:function(e){e.exports=require("fs")},622:function(e){e.exports=require("path")}};var r={};function __nccwpck_require__(n){var t=r[n];if(t!==undefined){return t.exports}var s=r[n]={exports:{}};var c=true;try{e[n](s,s.exports,__nccwpck_require__);c=false}finally{if(c)delete r[n]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(258);module.exports=n})();
1
+ (function(){"use strict";var e={};!function(){e.d=function(t,n){for(var r in n){if(e.o(n,r)&&!e.o(t,r)){Object.defineProperty(t,r,{enumerable:true,get:n[r]})}}}}();!function(){e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();if(typeof e!=="undefined")e.ab=__dirname+"/";var t={};e.r(t);e.d(t,{pkgUp:function(){return pkgUp},pkgUpSync:function(){return pkgUpSync}});var n=require("path");var r=require("url");var c=require("process");var i=require("fs");class Node{value;next;constructor(e){this.value=e}}class Queue{#e;#t;#n;constructor(){this.clear()}enqueue(e){const t=new Node(e);if(this.#e){this.#t.next=t;this.#t=t}else{this.#e=t;this.#t=t}this.#n++}dequeue(){const e=this.#e;if(!e){return}this.#e=this.#e.next;this.#n--;return e.value}clear(){this.#e=undefined;this.#t=undefined;this.#n=0}get size(){return this.#n}*[Symbol.iterator](){let e=this.#e;while(e){yield e.value;e=e.next}}}function pLimit(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=new Queue;let n=0;const next=()=>{n--;if(t.size>0){t.dequeue()()}};const run=async(e,t,r)=>{n++;const c=(async()=>e(...r))();t(c);try{await c}catch{}next()};const enqueue=(r,c,i)=>{t.enqueue(run.bind(undefined,r,c,i));(async()=>{await Promise.resolve();if(n<e&&t.size>0){t.dequeue()()}})()};const generator=(e,...t)=>new Promise((n=>{enqueue(e,n,t)}));Object.defineProperties(generator,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}});return generator}class EndError extends Error{constructor(e){super();this.value=e}}const testElement=async(e,t)=>t(await e);const finder=async e=>{const t=await Promise.all(e);if(t[1]===true){throw new EndError(t[0])}return false};async function pLocate(e,t,{concurrency:n=Number.POSITIVE_INFINITY,preserveOrder:r=true}={}){const c=pLimit(n);const i=[...e].map((e=>[e,c(testElement,e,t)]));const o=pLimit(r?1:Number.POSITIVE_INFINITY);try{await Promise.all(i.map((e=>o(finder,e))))}catch(e){if(e instanceof EndError){return e.value}throw e}}const o={directory:"isDirectory",file:"isFile"};function checkType(e){if(e in o){return}throw new Error(`Invalid type specified: ${e}`)}const matchType=(e,t)=>e===undefined||t[o[e]]();const toPath=e=>e instanceof URL?(0,r.fileURLToPath)(e):e;async function locatePath(e,{cwd:t=c.cwd(),type:r="file",allowSymlinks:o=true,concurrency:s,preserveOrder:a}={}){checkType(r);t=toPath(t);const u=o?i.promises.stat:i.promises.lstat;return pLocate(e,(async e=>{try{const c=await u(n.resolve(t,e));return matchType(r,c)}catch{return false}}),{concurrency:s,preserveOrder:a})}function locatePathSync(e,{cwd:t=c.cwd(),type:r="file",allowSymlinks:o=true}={}){checkType(r);t=toPath(t);const s=o?i.statSync:i.lstatSync;for(const c of e){try{const e=s(n.resolve(t,c));if(matchType(r,e)){return c}}catch{}}}async function pathExists(e){try{await fsPromises.access(e);return true}catch{return false}}function pathExistsSync(e){try{fs.accessSync(e);return true}catch{return false}}const find_up_toPath=e=>e instanceof URL?(0,r.fileURLToPath)(e):e;const s=Symbol("findUpStop");async function findUpMultiple(e,t={}){let r=n.resolve(find_up_toPath(t.cwd)||"");const{root:c}=n.parse(r);const i=n.resolve(r,t.stopAt||c);const o=t.limit||Number.POSITIVE_INFINITY;const a=[e].flat();const runMatcher=async t=>{if(typeof e!=="function"){return locatePath(a,t)}const n=await e(t.cwd);if(typeof n==="string"){return locatePath([n],t)}return n};const u=[];while(true){const e=await runMatcher({...t,cwd:r});if(e===s){break}if(e){u.push(n.resolve(r,e))}if(r===i||u.length>=o){break}r=n.dirname(r)}return u}function findUpMultipleSync(e,t={}){let r=n.resolve(find_up_toPath(t.cwd)||"");const{root:c}=n.parse(r);const i=t.stopAt||c;const o=t.limit||Number.POSITIVE_INFINITY;const a=[e].flat();const runMatcher=t=>{if(typeof e!=="function"){return locatePathSync(a,t)}const n=e(t.cwd);if(typeof n==="string"){return locatePathSync([n],t)}return n};const u=[];while(true){const e=runMatcher({...t,cwd:r});if(e===s){break}if(e){u.push(n.resolve(r,e))}if(r===i||u.length>=o){break}r=n.dirname(r)}return u}async function findUp(e,t={}){const n=await findUpMultiple(e,{...t,limit:1});return n[0]}function findUpSync(e,t={}){const n=findUpMultipleSync(e,{...t,limit:1});return n[0]}async function pkgUp({cwd:e}={}){return findUp("package.json",{cwd:e})}function pkgUpSync({cwd:e}={}){return findUpSync("package.json",{cwd:e})}module.exports=t})();
@@ -1 +1 @@
1
- {"name":"pkg-up","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"license":"MIT"}
1
+ {"name":"pkg-up","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT"}
@@ -1 +1 @@
1
- (function(){var e={557:function(e,r,t){e=t.nmd(e);(function(e,t){true?t(r):0})(this,(function(r){"use strict";function slice(e,r){r=r|0;var t=Math.max(e.length-r,0);var n=Array(t);for(var i=0;i<t;i++){n[i]=e[r+i]}return n}var apply=function(e){var r=slice(arguments,1);return function(){var t=slice(arguments);return e.apply(null,r.concat(t))}};var initialParams=function(e){return function(){var r=slice(arguments);var t=r.pop();e.call(this,r,t)}};function isObject(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var t=typeof setImmediate==="function"&&setImmediate;var n=typeof process==="object"&&typeof process.nextTick==="function";function fallback(e){setTimeout(e,0)}function wrap(e){return function(r){var t=slice(arguments,1);e((function(){r.apply(null,t)}))}}var i;if(t){i=setImmediate}else if(n){i=process.nextTick}else{i=fallback}var a=wrap(i);function asyncify(e){return initialParams((function(r,t){var n;try{n=e.apply(this,r)}catch(e){return t(e)}if(isObject(n)&&typeof n.then==="function"){n.then((function(e){invokeCallback(t,null,e)}),(function(e){invokeCallback(t,e.message?e:new Error(e))}))}else{t(null,n)}}))}function invokeCallback(e,r,t){try{e(r,t)}catch(e){a(rethrow,e)}}function rethrow(e){throw e}var o=typeof Symbol==="function";function isAsync(e){return o&&e[Symbol.toStringTag]==="AsyncFunction"}function wrapAsync(e){return isAsync(e)?asyncify(e):e}function applyEach$1(e){return function(r){var t=slice(arguments,1);var n=initialParams((function(t,n){var i=this;return e(r,(function(e,r){wrapAsync(e).apply(i,t.concat(r))}),n)}));if(t.length){return n.apply(this,t)}else{return n}}}var c=typeof global=="object"&&global&&global.Object===Object&&global;var u=typeof self=="object"&&self&&self.Object===Object&&self;var s=c||u||Function("return this")();var l=s.Symbol;var f=Object.prototype;var p=f.hasOwnProperty;var v=f.toString;var h=l?l.toStringTag:undefined;function getRawTag(e){var r=p.call(e,h),t=e[h];try{e[h]=undefined;var n=true}catch(e){}var i=v.call(e);if(n){if(r){e[h]=t}else{delete e[h]}}return i}var y=Object.prototype;var d=y.toString;function objectToString(e){return d.call(e)}var m="[object Null]";var b="[object Undefined]";var g=l?l.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?b:m}return g&&g in Object(e)?getRawTag(e):objectToString(e)}var L="[object AsyncFunction]";var k="[object Function]";var w="[object GeneratorFunction]";var A="[object Proxy]";function isFunction(e){if(!isObject(e)){return false}var r=baseGetTag(e);return r==k||r==w||r==L||r==A}var j=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=j}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var O={};function noop(){}function once(e){return function(){if(e===null)return;var r=e;e=null;r.apply(this,arguments)}}var S=typeof Symbol==="function"&&Symbol.iterator;var getIterator=function(e){return S&&e[S]&&e[S]()};function baseTimes(e,r){var t=-1,n=Array(e);while(++t<e){n[t]=r(t)}return n}function isObjectLike(e){return e!=null&&typeof e=="object"}var P="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==P}var x=Object.prototype;var _=x.hasOwnProperty;var E=x.propertyIsEnumerable;var T=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&_.call(e,"callee")&&!E.call(e,"callee")};var I=Array.isArray;function stubFalse(){return false}var F=typeof r=="object"&&r&&!r.nodeType&&r;var D=F&&"object"=="object"&&e&&!e.nodeType&&e;var q=D&&D.exports===F;var N=q?s.Buffer:undefined;var $=N?N.isBuffer:undefined;var B=$||stubFalse;var R=9007199254740991;var M=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?R:r;return!!r&&(t=="number"||t!="symbol"&&M.test(e))&&(e>-1&&e%1==0&&e<r)}var C="[object Arguments]";var z="[object Array]";var U="[object Boolean]";var V="[object Date]";var G="[object Error]";var H="[object Function]";var W="[object Map]";var K="[object Number]";var Q="[object Object]";var J="[object RegExp]";var X="[object Set]";var Y="[object String]";var Z="[object WeakMap]";var ee="[object ArrayBuffer]";var re="[object DataView]";var te="[object Float32Array]";var ne="[object Float64Array]";var ie="[object Int8Array]";var ae="[object Int16Array]";var oe="[object Int32Array]";var ce="[object Uint8Array]";var ue="[object Uint8ClampedArray]";var se="[object Uint16Array]";var le="[object Uint32Array]";var fe={};fe[te]=fe[ne]=fe[ie]=fe[ae]=fe[oe]=fe[ce]=fe[ue]=fe[se]=fe[le]=true;fe[C]=fe[z]=fe[ee]=fe[U]=fe[re]=fe[V]=fe[G]=fe[H]=fe[W]=fe[K]=fe[Q]=fe[J]=fe[X]=fe[Y]=fe[Z]=false;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!fe[baseGetTag(e)]}function baseUnary(e){return function(r){return e(r)}}var pe=typeof r=="object"&&r&&!r.nodeType&&r;var ve=pe&&"object"=="object"&&e&&!e.nodeType&&e;var he=ve&&ve.exports===pe;var ye=he&&c.process;var de=function(){try{var e=ve&&ve.require&&ve.require("util").types;if(e){return e}return ye&&ye.binding&&ye.binding("util")}catch(e){}}();var me=de&&de.isTypedArray;var be=me?baseUnary(me):baseIsTypedArray;var ge=Object.prototype;var Le=ge.hasOwnProperty;function arrayLikeKeys(e,r){var t=I(e),n=!t&&T(e),i=!t&&!n&&B(e),a=!t&&!n&&!i&&be(e),o=t||n||i||a,c=o?baseTimes(e.length,String):[],u=c.length;for(var s in e){if((r||Le.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||isIndex(s,u)))){c.push(s)}}return c}var ke=Object.prototype;function isPrototype(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||ke;return e===t}function overArg(e,r){return function(t){return e(r(t))}}var we=overArg(Object.keys,Object);var Ae=Object.prototype;var je=Ae.hasOwnProperty;function baseKeys(e){if(!isPrototype(e)){return we(e)}var r=[];for(var t in Object(e)){if(je.call(e,t)&&t!="constructor"){r.push(t)}}return r}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function createArrayIterator(e){var r=-1;var t=e.length;return function next(){return++r<t?{value:e[r],key:r}:null}}function createES2015Iterator(e){var r=-1;return function next(){var t=e.next();if(t.done)return null;r++;return{value:t.value,key:r}}}function createObjectIterator(e){var r=keys(e);var t=-1;var n=r.length;return function next(){var i=r[++t];return t<n?{value:e[i],key:i}:null}}function iterator(e){if(isArrayLike(e)){return createArrayIterator(e)}var r=getIterator(e);return r?createES2015Iterator(r):createObjectIterator(e)}function onlyOnce(e){return function(){if(e===null)throw new Error("Callback was already called.");var r=e;e=null;r.apply(this,arguments)}}function _eachOfLimit(e){return function(r,t,n){n=once(n||noop);if(e<=0||!r){return n(null)}var i=iterator(r);var a=false;var o=0;var c=false;function iterateeCallback(e,r){o-=1;if(e){a=true;n(e)}else if(r===O||a&&o<=0){a=true;return n(null)}else if(!c){replenish()}}function replenish(){c=true;while(o<e&&!a){var r=i();if(r===null){a=true;if(o<=0){n(null)}return}o+=1;t(r.value,r.key,onlyOnce(iterateeCallback))}c=false}replenish()}}function eachOfLimit(e,r,t,n){_eachOfLimit(r)(e,wrapAsync(t),n)}function doLimit(e,r){return function(t,n,i){return e(t,r,n,i)}}function eachOfArrayLike(e,r,t){t=once(t||noop);var n=0,i=0,a=e.length;if(a===0){t(null)}function iteratorCallback(e,r){if(e){t(e)}else if(++i===a||r===O){t(null)}}for(;n<a;n++){r(e[n],n,onlyOnce(iteratorCallback))}}var Oe=doLimit(eachOfLimit,Infinity);var eachOf=function(e,r,t){var n=isArrayLike(e)?eachOfArrayLike:Oe;n(e,wrapAsync(r),t)};function doParallel(e){return function(r,t,n){return e(eachOf,r,wrapAsync(t),n)}}function _asyncMap(e,r,t,n){n=n||noop;r=r||[];var i=[];var a=0;var o=wrapAsync(t);e(r,(function(e,r,t){var n=a++;o(e,(function(e,r){i[n]=r;t(e)}))}),(function(e){n(e,i)}))}var Se=doParallel(_asyncMap);var Pe=applyEach$1(Se);function doParallelLimit(e){return function(r,t,n,i){return e(_eachOfLimit(t),r,wrapAsync(n),i)}}var xe=doParallelLimit(_asyncMap);var _e=doLimit(xe,1);var Ee=applyEach$1(_e);function arrayEach(e,r){var t=-1,n=e==null?0:e.length;while(++t<n){if(r(e[t],t,e)===false){break}}return e}function createBaseFor(e){return function(r,t,n){var i=-1,a=Object(r),o=n(r),c=o.length;while(c--){var u=o[e?c:++i];if(t(a[u],u,a)===false){break}}return r}}var Te=createBaseFor();function baseForOwn(e,r){return e&&Te(e,r,keys)}function baseFindIndex(e,r,t,n){var i=e.length,a=t+(n?1:-1);while(n?a--:++a<i){if(r(e[a],a,e)){return a}}return-1}function baseIsNaN(e){return e!==e}function strictIndexOf(e,r,t){var n=t-1,i=e.length;while(++n<i){if(e[n]===r){return n}}return-1}function baseIndexOf(e,r,t){return r===r?strictIndexOf(e,r,t):baseFindIndex(e,baseIsNaN,t)}var auto=function(e,r,t){if(typeof r==="function"){t=r;r=null}t=once(t||noop);var n=keys(e);var i=n.length;if(!i){return t(null)}if(!r){r=i}var a={};var o=0;var c=false;var u=Object.create(null);var s=[];var l=[];var f={};baseForOwn(e,(function(r,t){if(!I(r)){enqueueTask(t,[r]);l.push(t);return}var n=r.slice(0,r.length-1);var i=n.length;if(i===0){enqueueTask(t,r);l.push(t);return}f[t]=i;arrayEach(n,(function(a){if(!e[a]){throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+n.join(", "))}addListener(a,(function(){i--;if(i===0){enqueueTask(t,r)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(e,r){s.push((function(){runTask(e,r)}))}function processQueue(){if(s.length===0&&o===0){return t(null,a)}while(s.length&&o<r){var e=s.shift();e()}}function addListener(e,r){var t=u[e];if(!t){t=u[e]=[]}t.push(r)}function taskComplete(e){var r=u[e]||[];arrayEach(r,(function(e){e()}));processQueue()}function runTask(e,r){if(c)return;var n=onlyOnce((function(r,n){o--;if(arguments.length>2){n=slice(arguments,1)}if(r){var i={};baseForOwn(a,(function(e,r){i[r]=e}));i[e]=n;c=true;u=Object.create(null);t(r,i)}else{a[e]=n;taskComplete(e)}}));o++;var i=wrapAsync(r[r.length-1]);if(r.length>1){i(a,n)}else{i(n)}}function checkForDeadlocks(){var e;var r=0;while(l.length){e=l.pop();r++;arrayEach(getDependents(e),(function(e){if(--f[e]===0){l.push(e)}}))}if(r!==i){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(r){var t=[];baseForOwn(e,(function(e,n){if(I(e)&&baseIndexOf(e,r,0)>=0){t.push(n)}}));return t}};function arrayMap(e,r){var t=-1,n=e==null?0:e.length,i=Array(n);while(++t<n){i[t]=r(e[t],t,e)}return i}var Ie="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==Ie}var Fe=1/0;var De=l?l.prototype:undefined;var qe=De?De.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(I(e)){return arrayMap(e,baseToString)+""}if(isSymbol(e)){return qe?qe.call(e):""}var r=e+"";return r=="0"&&1/e==-Fe?"-0":r}function baseSlice(e,r,t){var n=-1,i=e.length;if(r<0){r=-r>i?0:i+r}t=t>i?i:t;if(t<0){t+=i}i=r>t?0:t-r>>>0;r>>>=0;var a=Array(i);while(++n<i){a[n]=e[n+r]}return a}function castSlice(e,r,t){var n=e.length;t=t===undefined?n:t;return!r&&t>=n?e:baseSlice(e,r,t)}function charsEndIndex(e,r){var t=e.length;while(t--&&baseIndexOf(r,e[t],0)>-1){}return t}function charsStartIndex(e,r){var t=-1,n=e.length;while(++t<n&&baseIndexOf(r,e[t],0)>-1){}return t}function asciiToArray(e){return e.split("")}var Ne="\\ud800-\\udfff";var $e="\\u0300-\\u036f";var Be="\\ufe20-\\ufe2f";var Re="\\u20d0-\\u20ff";var Me=$e+Be+Re;var Ce="\\ufe0e\\ufe0f";var ze="\\u200d";var Ue=RegExp("["+ze+Ne+Me+Ce+"]");function hasUnicode(e){return Ue.test(e)}var Ve="\\ud800-\\udfff";var Ge="\\u0300-\\u036f";var He="\\ufe20-\\ufe2f";var We="\\u20d0-\\u20ff";var Ke=Ge+He+We;var Qe="\\ufe0e\\ufe0f";var Je="["+Ve+"]";var Xe="["+Ke+"]";var Ye="\\ud83c[\\udffb-\\udfff]";var Ze="(?:"+Xe+"|"+Ye+")";var er="[^"+Ve+"]";var rr="(?:\\ud83c[\\udde6-\\uddff]){2}";var tr="[\\ud800-\\udbff][\\udc00-\\udfff]";var nr="\\u200d";var ir=Ze+"?";var ar="["+Qe+"]?";var or="(?:"+nr+"(?:"+[er,rr,tr].join("|")+")"+ar+ir+")*";var cr=ar+ir+or;var ur="(?:"+[er+Xe+"?",Xe,rr,tr,Je].join("|")+")";var sr=RegExp(Ye+"(?="+Ye+")|"+ur+cr,"g");function unicodeToArray(e){return e.match(sr)||[]}function stringToArray(e){return hasUnicode(e)?unicodeToArray(e):asciiToArray(e)}function toString(e){return e==null?"":baseToString(e)}var lr=/^\s+|\s+$/g;function trim(e,r,t){e=toString(e);if(e&&(t||r===undefined)){return e.replace(lr,"")}if(!e||!(r=baseToString(r))){return e}var n=stringToArray(e),i=stringToArray(r),a=charsStartIndex(n,i),o=charsEndIndex(n,i)+1;return castSlice(n,a,o).join("")}var fr=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m;var pr=/,/;var vr=/(=.+)?(\s*)$/;var hr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function parseParams(e){e=e.toString().replace(hr,"");e=e.match(fr)[2].replace(" ","");e=e?e.split(pr):[];e=e.map((function(e){return trim(e.replace(vr,""))}));return e}function autoInject(e,r){var t={};baseForOwn(e,(function(e,r){var n;var i=isAsync(e);var a=!i&&e.length===1||i&&e.length===0;if(I(e)){n=e.slice(0,-1);e=e[e.length-1];t[r]=n.concat(n.length>0?newTask:e)}else if(a){t[r]=e}else{n=parseParams(e);if(e.length===0&&!i&&n.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!i)n.pop();t[r]=n.concat(newTask)}function newTask(r,t){var i=arrayMap(n,(function(e){return r[e]}));i.push(t);wrapAsync(e).apply(null,i)}}));auto(t,r)}function DLL(){this.head=this.tail=null;this.length=0}function setInitial(e,r){e.length=1;e.head=e.tail=r}DLL.prototype.removeLink=function(e){if(e.prev)e.prev.next=e.next;else this.head=e.next;if(e.next)e.next.prev=e.prev;else this.tail=e.prev;e.prev=e.next=null;this.length-=1;return e};DLL.prototype.empty=function(){while(this.head)this.shift();return this};DLL.prototype.insertAfter=function(e,r){r.prev=e;r.next=e.next;if(e.next)e.next.prev=r;else this.tail=r;e.next=r;this.length+=1};DLL.prototype.insertBefore=function(e,r){r.prev=e.prev;r.next=e;if(e.prev)e.prev.next=r;else this.head=r;e.prev=r;this.length+=1};DLL.prototype.unshift=function(e){if(this.head)this.insertBefore(this.head,e);else setInitial(this,e)};DLL.prototype.push=function(e){if(this.tail)this.insertAfter(this.tail,e);else setInitial(this,e)};DLL.prototype.shift=function(){return this.head&&this.removeLink(this.head)};DLL.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};DLL.prototype.toArray=function(){var e=Array(this.length);var r=this.head;for(var t=0;t<this.length;t++){e[t]=r.data;r=r.next}return e};DLL.prototype.remove=function(e){var r=this.head;while(!!r){var t=r.next;if(e(r)){this.removeLink(r)}r=t}return this};function queue(e,r,t){if(r==null){r=1}else if(r===0){throw new Error("Concurrency must not be zero")}var n=wrapAsync(e);var i=0;var o=[];var c=false;function _insert(e,r,t){if(t!=null&&typeof t!=="function"){throw new Error("task callback must be a function")}s.started=true;if(!I(e)){e=[e]}if(e.length===0&&s.idle()){return a((function(){s.drain()}))}for(var n=0,i=e.length;n<i;n++){var o={data:e[n],callback:t||noop};if(r){s._tasks.unshift(o)}else{s._tasks.push(o)}}if(!c){c=true;a((function(){c=false;s.process()}))}}function _next(e){return function(r){i-=1;for(var t=0,n=e.length;t<n;t++){var a=e[t];var c=baseIndexOf(o,a,0);if(c===0){o.shift()}else if(c>0){o.splice(c,1)}a.callback.apply(a,arguments);if(r!=null){s.error(r,a.data)}}if(i<=s.concurrency-s.buffer){s.unsaturated()}if(s.idle()){s.drain()}s.process()}}var u=false;var s={_tasks:new DLL,concurrency:r,payload:t,saturated:noop,unsaturated:noop,buffer:r/4,empty:noop,drain:noop,error:noop,started:false,paused:false,push:function(e,r){_insert(e,false,r)},kill:function(){s.drain=noop;s._tasks.empty()},unshift:function(e,r){_insert(e,true,r)},remove:function(e){s._tasks.remove(e)},process:function(){if(u){return}u=true;while(!s.paused&&i<s.concurrency&&s._tasks.length){var e=[],r=[];var t=s._tasks.length;if(s.payload)t=Math.min(t,s.payload);for(var a=0;a<t;a++){var c=s._tasks.shift();e.push(c);o.push(c);r.push(c.data)}i+=1;if(s._tasks.length===0){s.empty()}if(i===s.concurrency){s.saturated()}var l=onlyOnce(_next(e));n(r,l)}u=false},length:function(){return s._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return s._tasks.length+i===0},pause:function(){s.paused=true},resume:function(){if(s.paused===false){return}s.paused=false;a(s.process)}};return s}function cargo(e,r){return queue(e,1,r)}var yr=doLimit(eachOfLimit,1);function reduce(e,r,t,n){n=once(n||noop);var i=wrapAsync(t);yr(e,(function(e,t,n){i(r,e,(function(e,t){r=t;n(e)}))}),(function(e){n(e,r)}))}function seq(){var e=arrayMap(arguments,wrapAsync);return function(){var r=slice(arguments);var t=this;var n=r[r.length-1];if(typeof n=="function"){r.pop()}else{n=noop}reduce(e,r,(function(e,r,n){r.apply(t,e.concat((function(e){var r=slice(arguments,1);n(e,r)})))}),(function(e,r){n.apply(t,[e].concat(r))}))}}var compose=function(){return seq.apply(null,slice(arguments).reverse())};var dr=Array.prototype.concat;var concatLimit=function(e,r,t,n){n=n||noop;var i=wrapAsync(t);xe(e,r,(function(e,r){i(e,(function(e){if(e)return r(e);return r(null,slice(arguments,1))}))}),(function(e,r){var t=[];for(var i=0;i<r.length;i++){if(r[i]){t=dr.apply(t,r[i])}}return n(e,t)}))};var mr=doLimit(concatLimit,Infinity);var br=doLimit(concatLimit,1);var constant=function(){var e=slice(arguments);var r=[null].concat(e);return function(){var e=arguments[arguments.length-1];return e.apply(this,r)}};function identity(e){return e}function _createTester(e,r){return function(t,n,i,a){a=a||noop;var o=false;var c;t(n,(function(t,n,a){i(t,(function(n,i){if(n){a(n)}else if(e(i)&&!c){o=true;c=r(true,t);a(null,O)}else{a()}}))}),(function(e){if(e){a(e)}else{a(null,o?c:r(false))}}))}}function _findGetResult(e,r){return r}var gr=doParallel(_createTester(identity,_findGetResult));var Lr=doParallelLimit(_createTester(identity,_findGetResult));var kr=doLimit(Lr,1);function consoleFunc(e){return function(r){var t=slice(arguments,1);t.push((function(r){var t=slice(arguments,1);if(typeof console==="object"){if(r){if(console.error){console.error(r)}}else if(console[e]){arrayEach(t,(function(r){console[e](r)}))}}}));wrapAsync(r).apply(null,t)}}var wr=consoleFunc("dir");function doDuring(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(e);var i=wrapAsync(r);function next(e){if(e)return t(e);var r=slice(arguments,1);r.push(check);i.apply(this,r)}function check(e,r){if(e)return t(e);if(!r)return t(null);n(next)}check(null,true)}function doWhilst(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(e);var next=function(e){if(e)return t(e);var i=slice(arguments,1);if(r.apply(this,i))return n(next);t.apply(null,[null].concat(i))};n(next)}function doUntil(e,r,t){doWhilst(e,(function(){return!r.apply(this,arguments)}),t)}function during(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(r);var i=wrapAsync(e);function next(e){if(e)return t(e);i(check)}function check(e,r){if(e)return t(e);if(!r)return t(null);n(next)}i(check)}function _withoutIndex(e){return function(r,t,n){return e(r,n)}}function eachLimit(e,r,t){eachOf(e,_withoutIndex(wrapAsync(r)),t)}function eachLimit$1(e,r,t,n){_eachOfLimit(r)(e,_withoutIndex(wrapAsync(t)),n)}var Ar=doLimit(eachLimit$1,1);function ensureAsync(e){if(isAsync(e))return e;return initialParams((function(r,t){var n=true;r.push((function(){var e=arguments;if(n){a((function(){t.apply(null,e)}))}else{t.apply(null,e)}}));e.apply(this,r);n=false}))}function notId(e){return!e}var jr=doParallel(_createTester(notId,notId));var Or=doParallelLimit(_createTester(notId,notId));var Sr=doLimit(Or,1);function baseProperty(e){return function(r){return r==null?undefined:r[e]}}function filterArray(e,r,t,n){var i=new Array(r.length);e(r,(function(e,r,n){t(e,(function(e,t){i[r]=!!t;n(e)}))}),(function(e){if(e)return n(e);var t=[];for(var a=0;a<r.length;a++){if(i[a])t.push(r[a])}n(null,t)}))}function filterGeneric(e,r,t,n){var i=[];e(r,(function(e,r,n){t(e,(function(t,a){if(t){n(t)}else{if(a){i.push({index:r,value:e})}n()}}))}),(function(e){if(e){n(e)}else{n(null,arrayMap(i.sort((function(e,r){return e.index-r.index})),baseProperty("value")))}}))}function _filter(e,r,t,n){var i=isArrayLike(r)?filterArray:filterGeneric;i(e,r,wrapAsync(t),n||noop)}var Pr=doParallel(_filter);var xr=doParallelLimit(_filter);var _r=doLimit(xr,1);function forever(e,r){var t=onlyOnce(r||noop);var n=wrapAsync(ensureAsync(e));function next(e){if(e)return t(e);n(next)}next()}var groupByLimit=function(e,r,t,n){n=n||noop;var i=wrapAsync(t);xe(e,r,(function(e,r){i(e,(function(t,n){if(t)return r(t);return r(null,{key:n,val:e})}))}),(function(e,r){var t={};var i=Object.prototype.hasOwnProperty;for(var a=0;a<r.length;a++){if(r[a]){var o=r[a].key;var c=r[a].val;if(i.call(t,o)){t[o].push(c)}else{t[o]=[c]}}}return n(e,t)}))};var Er=doLimit(groupByLimit,Infinity);var Tr=doLimit(groupByLimit,1);var Ir=consoleFunc("log");function mapValuesLimit(e,r,t,n){n=once(n||noop);var i={};var a=wrapAsync(t);eachOfLimit(e,r,(function(e,r,t){a(e,r,(function(e,n){if(e)return t(e);i[r]=n;t()}))}),(function(e){n(e,i)}))}var Fr=doLimit(mapValuesLimit,Infinity);var Dr=doLimit(mapValuesLimit,1);function has(e,r){return r in e}function memoize(e,r){var t=Object.create(null);var n=Object.create(null);r=r||identity;var i=wrapAsync(e);var o=initialParams((function memoized(e,o){var c=r.apply(null,e);if(has(t,c)){a((function(){o.apply(null,t[c])}))}else if(has(n,c)){n[c].push(o)}else{n[c]=[o];i.apply(null,e.concat((function(){var e=slice(arguments);t[c]=e;var r=n[c];delete n[c];for(var i=0,a=r.length;i<a;i++){r[i].apply(null,e)}})))}}));o.memo=t;o.unmemoized=e;return o}var qr;if(n){qr=process.nextTick}else if(t){qr=setImmediate}else{qr=fallback}var Nr=wrap(qr);function _parallel(e,r,t){t=t||noop;var n=isArrayLike(r)?[]:{};e(r,(function(e,r,t){wrapAsync(e)((function(e,i){if(arguments.length>2){i=slice(arguments,1)}n[r]=i;t(e)}))}),(function(e){t(e,n)}))}function parallelLimit(e,r){_parallel(eachOf,e,r)}function parallelLimit$1(e,r,t){_parallel(_eachOfLimit(r),e,t)}var queue$1=function(e,r){var t=wrapAsync(e);return queue((function(e,r){t(e[0],r)}),r,1)};var priorityQueue=function(e,r){var t=queue$1(e,r);t.push=function(e,r,n){if(n==null)n=noop;if(typeof n!=="function"){throw new Error("task callback must be a function")}t.started=true;if(!I(e)){e=[e]}if(e.length===0){return a((function(){t.drain()}))}r=r||0;var i=t._tasks.head;while(i&&r>=i.priority){i=i.next}for(var o=0,c=e.length;o<c;o++){var u={data:e[o],priority:r,callback:n};if(i){t._tasks.insertBefore(i,u)}else{t._tasks.push(u)}}a(t.process)};delete t.unshift;return t};function race(e,r){r=once(r||noop);if(!I(e))return r(new TypeError("First argument to race must be an array of functions"));if(!e.length)return r();for(var t=0,n=e.length;t<n;t++){wrapAsync(e[t])(r)}}function reduceRight(e,r,t,n){var i=slice(e).reverse();reduce(i,r,t,n)}function reflect(e){var r=wrapAsync(e);return initialParams((function reflectOn(e,t){e.push((function callback(e,r){if(e){t(null,{error:e})}else{var n;if(arguments.length<=2){n=r}else{n=slice(arguments,1)}t(null,{value:n})}}));return r.apply(this,e)}))}function reflectAll(e){var r;if(I(e)){r=arrayMap(e,reflect)}else{r={};baseForOwn(e,(function(e,t){r[t]=reflect.call(this,e)}))}return r}function reject$1(e,r,t,n){_filter(e,r,(function(e,r){t(e,(function(e,t){r(e,!t)}))}),n)}var $r=doParallel(reject$1);var Br=doParallelLimit(reject$1);var Rr=doLimit(Br,1);function constant$1(e){return function(){return e}}function retry(e,r,t){var n=5;var i=0;var a={times:n,intervalFunc:constant$1(i)};function parseTimes(e,r){if(typeof r==="object"){e.times=+r.times||n;e.intervalFunc=typeof r.interval==="function"?r.interval:constant$1(+r.interval||i);e.errorFilter=r.errorFilter}else if(typeof r==="number"||typeof r==="string"){e.times=+r||n}else{throw new Error("Invalid arguments for async.retry")}}if(arguments.length<3&&typeof e==="function"){t=r||noop;r=e}else{parseTimes(a,e);t=t||noop}if(typeof r!=="function"){throw new Error("Invalid arguments for async.retry")}var o=wrapAsync(r);var c=1;function retryAttempt(){o((function(e){if(e&&c++<a.times&&(typeof a.errorFilter!="function"||a.errorFilter(e))){setTimeout(retryAttempt,a.intervalFunc(c))}else{t.apply(null,arguments)}}))}retryAttempt()}var retryable=function(e,r){if(!r){r=e;e=null}var t=wrapAsync(r);return initialParams((function(r,n){function taskFn(e){t.apply(null,r.concat(e))}if(e)retry(e,taskFn,n);else retry(taskFn,n)}))};function series(e,r){_parallel(yr,e,r)}var Mr=doParallel(_createTester(Boolean,identity));var Cr=doParallelLimit(_createTester(Boolean,identity));var zr=doLimit(Cr,1);function sortBy(e,r,t){var n=wrapAsync(r);Se(e,(function(e,r){n(e,(function(t,n){if(t)return r(t);r(null,{value:e,criteria:n})}))}),(function(e,r){if(e)return t(e);t(null,arrayMap(r.sort(comparator),baseProperty("value")))}));function comparator(e,r){var t=e.criteria,n=r.criteria;return t<n?-1:t>n?1:0}}function timeout(e,r,t){var n=wrapAsync(e);return initialParams((function(i,a){var o=false;var c;function timeoutCallback(){var r=e.name||"anonymous";var n=new Error('Callback function "'+r+'" timed out.');n.code="ETIMEDOUT";if(t){n.info=t}o=true;a(n)}i.push((function(){if(!o){a.apply(null,arguments);clearTimeout(c)}}));c=setTimeout(timeoutCallback,r);n.apply(null,i)}))}var Ur=Math.ceil;var Vr=Math.max;function baseRange(e,r,t,n){var i=-1,a=Vr(Ur((r-e)/(t||1)),0),o=Array(a);while(a--){o[n?a:++i]=e;e+=t}return o}function timeLimit(e,r,t,n){var i=wrapAsync(t);xe(baseRange(0,e,1),r,i,n)}var Gr=doLimit(timeLimit,Infinity);var Hr=doLimit(timeLimit,1);function transform(e,r,t,n){if(arguments.length<=3){n=t;t=r;r=I(e)?[]:{}}n=once(n||noop);var i=wrapAsync(t);eachOf(e,(function(e,t,n){i(r,e,t,n)}),(function(e){n(e,r)}))}function tryEach(e,r){var t=null;var n;r=r||noop;Ar(e,(function(e,r){wrapAsync(e)((function(e,i){if(arguments.length>2){n=slice(arguments,1)}else{n=i}t=e;r(!e)}))}),(function(){r(t,n)}))}function unmemoize(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function whilst(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(r);if(!e())return t(null);var next=function(r){if(r)return t(r);if(e())return n(next);var i=slice(arguments,1);t.apply(null,[null].concat(i))};n(next)}function until(e,r,t){whilst((function(){return!e.apply(this,arguments)}),r,t)}var waterfall=function(e,r){r=once(r||noop);if(!I(e))return r(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return r();var t=0;function nextTask(r){var n=wrapAsync(e[t++]);r.push(onlyOnce(next));n.apply(null,r)}function next(n){if(n||t===e.length){return r.apply(null,arguments)}nextTask(slice(arguments,1))}nextTask([])};var Wr={apply:apply,applyEach:Pe,applyEachSeries:Ee,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo,compose:compose,concat:mr,concatLimit:concatLimit,concatSeries:br,constant:constant,detect:gr,detectLimit:Lr,detectSeries:kr,dir:wr,doDuring:doDuring,doUntil:doUntil,doWhilst:doWhilst,during:during,each:eachLimit,eachLimit:eachLimit$1,eachOf:eachOf,eachOfLimit:eachOfLimit,eachOfSeries:yr,eachSeries:Ar,ensureAsync:ensureAsync,every:jr,everyLimit:Or,everySeries:Sr,filter:Pr,filterLimit:xr,filterSeries:_r,forever:forever,groupBy:Er,groupByLimit:groupByLimit,groupBySeries:Tr,log:Ir,map:Se,mapLimit:xe,mapSeries:_e,mapValues:Fr,mapValuesLimit:mapValuesLimit,mapValuesSeries:Dr,memoize:memoize,nextTick:Nr,parallel:parallelLimit,parallelLimit:parallelLimit$1,priorityQueue:priorityQueue,queue:queue$1,race:race,reduce:reduce,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:$r,rejectLimit:Br,rejectSeries:Rr,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:a,some:Mr,someLimit:Cr,someSeries:zr,sortBy:sortBy,timeout:timeout,times:Gr,timesLimit:timeLimit,timesSeries:Hr,transform:transform,tryEach:tryEach,unmemoize:unmemoize,until:until,waterfall:waterfall,whilst:whilst,all:jr,allLimit:Or,allSeries:Sr,any:Mr,anyLimit:Cr,anySeries:zr,find:gr,findLimit:Lr,findSeries:kr,forEach:eachLimit,forEachSeries:Ar,forEachLimit:eachLimit$1,forEachOf:eachOf,forEachOfSeries:yr,forEachOfLimit:eachOfLimit,inject:reduce,foldl:reduce,foldr:reduceRight,select:Pr,selectLimit:xr,selectSeries:_r,wrapSync:asyncify};r["default"]=Wr;r.apply=apply;r.applyEach=Pe;r.applyEachSeries=Ee;r.asyncify=asyncify;r.auto=auto;r.autoInject=autoInject;r.cargo=cargo;r.compose=compose;r.concat=mr;r.concatLimit=concatLimit;r.concatSeries=br;r.constant=constant;r.detect=gr;r.detectLimit=Lr;r.detectSeries=kr;r.dir=wr;r.doDuring=doDuring;r.doUntil=doUntil;r.doWhilst=doWhilst;r.during=during;r.each=eachLimit;r.eachLimit=eachLimit$1;r.eachOf=eachOf;r.eachOfLimit=eachOfLimit;r.eachOfSeries=yr;r.eachSeries=Ar;r.ensureAsync=ensureAsync;r.every=jr;r.everyLimit=Or;r.everySeries=Sr;r.filter=Pr;r.filterLimit=xr;r.filterSeries=_r;r.forever=forever;r.groupBy=Er;r.groupByLimit=groupByLimit;r.groupBySeries=Tr;r.log=Ir;r.map=Se;r.mapLimit=xe;r.mapSeries=_e;r.mapValues=Fr;r.mapValuesLimit=mapValuesLimit;r.mapValuesSeries=Dr;r.memoize=memoize;r.nextTick=Nr;r.parallel=parallelLimit;r.parallelLimit=parallelLimit$1;r.priorityQueue=priorityQueue;r.queue=queue$1;r.race=race;r.reduce=reduce;r.reduceRight=reduceRight;r.reflect=reflect;r.reflectAll=reflectAll;r.reject=$r;r.rejectLimit=Br;r.rejectSeries=Rr;r.retry=retry;r.retryable=retryable;r.seq=seq;r.series=series;r.setImmediate=a;r.some=Mr;r.someLimit=Cr;r.someSeries=zr;r.sortBy=sortBy;r.timeout=timeout;r.times=Gr;r.timesLimit=timeLimit;r.timesSeries=Hr;r.transform=transform;r.tryEach=tryEach;r.unmemoize=unmemoize;r.until=until;r.waterfall=waterfall;r.whilst=whilst;r.all=jr;r.allLimit=Or;r.allSeries=Sr;r.any=Mr;r.anyLimit=Cr;r.anySeries=zr;r.find=gr;r.findLimit=Lr;r.findSeries=kr;r.forEach=eachLimit;r.forEachSeries=Ar;r.forEachLimit=eachLimit$1;r.forEachOf=eachOf;r.forEachOfSeries=yr;r.forEachOfLimit=eachOfLimit;r.inject=reduce;r.foldl=reduce;r.foldr=reduceRight;r.select=Pr;r.selectLimit=xr;r.selectSeries=_r;r.wrapSync=asyncify;Object.defineProperty(r,"__esModule",{value:true})}))},917:function(e,r,t){var n=t(622);var i=t(747);var a=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,r,t,o){if(typeof r==="function"){t=r;r={}}else if(!r||typeof r!=="object"){r={mode:r}}var c=r.mode;var u=r.fs||i;if(c===undefined){c=a}if(!o)o=null;var s=t||function(){};e=n.resolve(e);u.mkdir(e,c,(function(t){if(!t){o=o||e;return s(null,o)}switch(t.code){case"ENOENT":if(n.dirname(e)===e)return s(t);mkdirP(n.dirname(e),r,(function(t,n){if(t)s(t,n);else mkdirP(e,r,s,n)}));break;default:u.stat(e,(function(e,r){if(e||!r.isDirectory())s(t,o);else s(null,o)}));break}}))}mkdirP.sync=function sync(e,r,t){if(!r||typeof r!=="object"){r={mode:r}}var o=r.mode;var c=r.fs||i;if(o===undefined){o=a}if(!t)t=null;e=n.resolve(e);try{c.mkdirSync(e,o);t=t||e}catch(i){switch(i.code){case"ENOENT":t=sync(n.dirname(e),r,t);sync(e,r,t);break;default:var u;try{u=c.statSync(e)}catch(e){throw i}if(!u.isDirectory())throw i;break}}return t}},811:function(e,r,t){"use strict";var n=t(747),i=t(87),a=t(631),o=t(622),c=t(557),u=t(627),s=t(917).mkdirp;var l=u("portfinder:testPort"),f=u("portfinder:getPort"),p=u("portfinder:defaultHosts");var v={};v.testPort=function(e,t){if(!t){t=e;e={}}e.server=e.server||a.createServer((function(){}));l("entered testPort(): trying",e.host,"port",e.port);function onListen(){l("done w/ testPort(): OK",e.host,"port",e.port);e.server.removeListener("error",onError);e.server.close();t(null,e.port)}function onError(n){l("done w/ testPort(): failed",e.host,"w/ port",e.port,"with error",n.code);e.server.removeListener("listening",onListen);if(!(n.code=="EADDRINUSE"||n.code=="EACCES")){return t(n)}var i=r.nextPort(e.port);if(i>r.highestPort){return t(new Error("No open ports available"))}v.testPort({port:i,host:e.host,server:e.server},t)}e.server.once("error",onError);e.server.once("listening",onListen);if(e.host){e.server.listen(e.port,e.host)}else{e.server.listen(e.port)}};r.basePort=8e3;r.highestPort=65535;r.basePath="/tmp/portfinder";r.getPort=function(e,t){if(!t){t=e;e={}}e.port=Number(e.port)||Number(r.basePort);e.host=e.host||null;e.stopPort=Number(e.stopPort)||Number(r.highestPort);if(!e.startPort){e.startPort=Number(e.port);if(e.startPort<0){throw Error("Provided options.startPort("+e.startPort+") is less than 0, which are cannot be bound.")}if(e.stopPort<e.startPort){throw Error("Provided options.stopPort("+e.stopPort+"is less than options.startPort ("+e.startPort+")")}}if(e.host){var n;for(var i=0;i<r._defaultHosts.length;i++){if(r._defaultHosts[i]===e.host){n=true;break}}if(!n){r._defaultHosts.push(e.host)}}var a=[],o;return c.eachSeries(r._defaultHosts,(function(r,t){f("in eachSeries() iteration callback: host is",r);return v.testPort({host:r,port:e.port},(function(e,n){if(e){f("in eachSeries() iteration callback testPort() callback","with an err:",e.code);o=r;return t(e)}else{f("in eachSeries() iteration callback testPort() callback","with a success for port",n);a.push(n);return t()}}))}),(function(n){if(n){f("in eachSeries() result callback: err is",n);if(n.code==="EADDRNOTAVAIL"||n.code==="EINVAL"){if(e.host===o){var i="Provided host "+e.host+" could NOT be bound. Please provide a different host address or hostname";return t(Error(i))}else{var c=r._defaultHosts.indexOf(o);r._defaultHosts.splice(c,1);return r.getPort(e,t)}}else{return t(n)}}a.sort((function(e,r){return e-r}));f("in eachSeries() result callback: openPorts is",a);if(a[0]===a[a.length-1]){if(a[0]<=e.stopPort){return t(null,a[0])}else{var i="No open ports found in between "+e.startPort+" and "+e.stopPort;return t(Error(i))}}else{return r.getPort({port:a.pop(),host:e.host,startPort:e.startPort,stopPort:e.stopPort},t)}}))};r.getPortPromise=function(e){if(typeof Promise!=="function"){throw Error("Native promise support is not available in this version of node."+"Please install a polyfill and assign Promise to global.Promise before calling this method")}if(!e){e={}}return new Promise((function(t,n){r.getPort(e,(function(e,r){if(e){return n(e)}t(r)}))}))};r.getPorts=function(e,t,n){if(!n){n=t;t={}}var i=null;c.timesSeries(e,(function(e,n){if(i){t.port=r.nextPort(i)}r.getPort(t,(function(e,r){if(e){n(e)}else{i=r;n(null,r)}}))}),n)};r.getSocket=function(e,t){if(!t){t=e;e={}}e.mod=e.mod||parseInt(755,8);e.path=e.path||r.basePath+".sock";function testSocket(){n.stat(e.path,(function(n){if(n){if(n.code=="ENOENT"){t(null,e.path)}else{t(n)}}else{e.path=r.nextSocket(e.path);r.getSocket(e,t)}}))}function createAndTestSocket(r){s(r,e.mod,(function(r){if(r){return t(r)}e.exists=true;testSocket()}))}function checkAndTestSocket(){var r=o.dirname(e.path);n.stat(r,(function(t,n){if(t||!n.isDirectory()){return createAndTestSocket(r)}e.exists=true;testSocket()}))}return e.exists?testSocket():checkAndTestSocket()};r.nextPort=function(e){return e+1};r.nextSocket=function(e){var r=o.dirname(e),t=o.basename(e,".sock"),n=t.match(/^([a-zA-z]+)(\d*)$/i),i=parseInt(n[2]),a=n[1];if(isNaN(i)){i=0}i+=1;return o.join(r,a+i+".sock")};r._defaultHosts=function(){var e={};try{e=i.networkInterfaces()}catch(e){if(e.syscall==="uv_interface_addresses"){}else{throw e}}var r=Object.keys(e),t="0.0.0.0",n=[t];for(var a=0;a<r.length;a++){var o=e[r[a]];for(var c=0;c<o.length;c++){var u=o[c];n.push(u.address)}}n.push(null);p("exports._defaultHosts is: %o",n);return n}()},627:function(e){"use strict";e.exports=require("@umijs/utils/compiled/debug")},747:function(e){"use strict";e.exports=require("fs")},631:function(e){"use strict";e.exports=require("net")},87:function(e){"use strict";e.exports=require("os")},622:function(e){"use strict";e.exports=require("path")}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var i=r[t]={id:t,loaded:false,exports:{}};var a=true;try{e[t].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}i.loaded=true;return i.exports}!function(){__nccwpck_require__.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(811);module.exports=t})();
1
+ (function(){var e={620:function(e,r,t){e=t.nmd(e);(function(e,t){true?t(r):0})(this,(function(r){"use strict";function slice(e,r){r=r|0;var t=Math.max(e.length-r,0);var n=Array(t);for(var i=0;i<t;i++){n[i]=e[r+i]}return n}var apply=function(e){var r=slice(arguments,1);return function(){var t=slice(arguments);return e.apply(null,r.concat(t))}};var initialParams=function(e){return function(){var r=slice(arguments);var t=r.pop();e.call(this,r,t)}};function isObject(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var t=typeof setImmediate==="function"&&setImmediate;var n=typeof process==="object"&&typeof process.nextTick==="function";function fallback(e){setTimeout(e,0)}function wrap(e){return function(r){var t=slice(arguments,1);e((function(){r.apply(null,t)}))}}var i;if(t){i=setImmediate}else if(n){i=process.nextTick}else{i=fallback}var a=wrap(i);function asyncify(e){return initialParams((function(r,t){var n;try{n=e.apply(this,r)}catch(e){return t(e)}if(isObject(n)&&typeof n.then==="function"){n.then((function(e){invokeCallback(t,null,e)}),(function(e){invokeCallback(t,e.message?e:new Error(e))}))}else{t(null,n)}}))}function invokeCallback(e,r,t){try{e(r,t)}catch(e){a(rethrow,e)}}function rethrow(e){throw e}var o=typeof Symbol==="function";function isAsync(e){return o&&e[Symbol.toStringTag]==="AsyncFunction"}function wrapAsync(e){return isAsync(e)?asyncify(e):e}function applyEach$1(e){return function(r){var t=slice(arguments,1);var n=initialParams((function(t,n){var i=this;return e(r,(function(e,r){wrapAsync(e).apply(i,t.concat(r))}),n)}));if(t.length){return n.apply(this,t)}else{return n}}}var c=typeof global=="object"&&global&&global.Object===Object&&global;var u=typeof self=="object"&&self&&self.Object===Object&&self;var s=c||u||Function("return this")();var l=s.Symbol;var f=Object.prototype;var p=f.hasOwnProperty;var v=f.toString;var h=l?l.toStringTag:undefined;function getRawTag(e){var r=p.call(e,h),t=e[h];try{e[h]=undefined;var n=true}catch(e){}var i=v.call(e);if(n){if(r){e[h]=t}else{delete e[h]}}return i}var y=Object.prototype;var d=y.toString;function objectToString(e){return d.call(e)}var m="[object Null]";var b="[object Undefined]";var g=l?l.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?b:m}return g&&g in Object(e)?getRawTag(e):objectToString(e)}var L="[object AsyncFunction]";var k="[object Function]";var w="[object GeneratorFunction]";var A="[object Proxy]";function isFunction(e){if(!isObject(e)){return false}var r=baseGetTag(e);return r==k||r==w||r==L||r==A}var j=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=j}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var O={};function noop(){}function once(e){return function(){if(e===null)return;var r=e;e=null;r.apply(this,arguments)}}var S=typeof Symbol==="function"&&Symbol.iterator;var getIterator=function(e){return S&&e[S]&&e[S]()};function baseTimes(e,r){var t=-1,n=Array(e);while(++t<e){n[t]=r(t)}return n}function isObjectLike(e){return e!=null&&typeof e=="object"}var P="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==P}var x=Object.prototype;var _=x.hasOwnProperty;var E=x.propertyIsEnumerable;var T=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&_.call(e,"callee")&&!E.call(e,"callee")};var I=Array.isArray;function stubFalse(){return false}var F=typeof r=="object"&&r&&!r.nodeType&&r;var D=F&&"object"=="object"&&e&&!e.nodeType&&e;var q=D&&D.exports===F;var N=q?s.Buffer:undefined;var B=N?N.isBuffer:undefined;var $=B||stubFalse;var R=9007199254740991;var M=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?R:r;return!!r&&(t=="number"||t!="symbol"&&M.test(e))&&(e>-1&&e%1==0&&e<r)}var C="[object Arguments]";var z="[object Array]";var U="[object Boolean]";var V="[object Date]";var G="[object Error]";var H="[object Function]";var W="[object Map]";var K="[object Number]";var Q="[object Object]";var J="[object RegExp]";var X="[object Set]";var Y="[object String]";var Z="[object WeakMap]";var ee="[object ArrayBuffer]";var re="[object DataView]";var te="[object Float32Array]";var ne="[object Float64Array]";var ie="[object Int8Array]";var ae="[object Int16Array]";var oe="[object Int32Array]";var ce="[object Uint8Array]";var ue="[object Uint8ClampedArray]";var se="[object Uint16Array]";var le="[object Uint32Array]";var fe={};fe[te]=fe[ne]=fe[ie]=fe[ae]=fe[oe]=fe[ce]=fe[ue]=fe[se]=fe[le]=true;fe[C]=fe[z]=fe[ee]=fe[U]=fe[re]=fe[V]=fe[G]=fe[H]=fe[W]=fe[K]=fe[Q]=fe[J]=fe[X]=fe[Y]=fe[Z]=false;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!fe[baseGetTag(e)]}function baseUnary(e){return function(r){return e(r)}}var pe=typeof r=="object"&&r&&!r.nodeType&&r;var ve=pe&&"object"=="object"&&e&&!e.nodeType&&e;var he=ve&&ve.exports===pe;var ye=he&&c.process;var de=function(){try{var e=ve&&ve.require&&ve.require("util").types;if(e){return e}return ye&&ye.binding&&ye.binding("util")}catch(e){}}();var me=de&&de.isTypedArray;var be=me?baseUnary(me):baseIsTypedArray;var ge=Object.prototype;var Le=ge.hasOwnProperty;function arrayLikeKeys(e,r){var t=I(e),n=!t&&T(e),i=!t&&!n&&$(e),a=!t&&!n&&!i&&be(e),o=t||n||i||a,c=o?baseTimes(e.length,String):[],u=c.length;for(var s in e){if((r||Le.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||isIndex(s,u)))){c.push(s)}}return c}var ke=Object.prototype;function isPrototype(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||ke;return e===t}function overArg(e,r){return function(t){return e(r(t))}}var we=overArg(Object.keys,Object);var Ae=Object.prototype;var je=Ae.hasOwnProperty;function baseKeys(e){if(!isPrototype(e)){return we(e)}var r=[];for(var t in Object(e)){if(je.call(e,t)&&t!="constructor"){r.push(t)}}return r}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function createArrayIterator(e){var r=-1;var t=e.length;return function next(){return++r<t?{value:e[r],key:r}:null}}function createES2015Iterator(e){var r=-1;return function next(){var t=e.next();if(t.done)return null;r++;return{value:t.value,key:r}}}function createObjectIterator(e){var r=keys(e);var t=-1;var n=r.length;return function next(){var i=r[++t];if(i==="__proto__"){return next()}return t<n?{value:e[i],key:i}:null}}function iterator(e){if(isArrayLike(e)){return createArrayIterator(e)}var r=getIterator(e);return r?createES2015Iterator(r):createObjectIterator(e)}function onlyOnce(e){return function(){if(e===null)throw new Error("Callback was already called.");var r=e;e=null;r.apply(this,arguments)}}function _eachOfLimit(e){return function(r,t,n){n=once(n||noop);if(e<=0||!r){return n(null)}var i=iterator(r);var a=false;var o=0;var c=false;function iterateeCallback(e,r){o-=1;if(e){a=true;n(e)}else if(r===O||a&&o<=0){a=true;return n(null)}else if(!c){replenish()}}function replenish(){c=true;while(o<e&&!a){var r=i();if(r===null){a=true;if(o<=0){n(null)}return}o+=1;t(r.value,r.key,onlyOnce(iterateeCallback))}c=false}replenish()}}function eachOfLimit(e,r,t,n){_eachOfLimit(r)(e,wrapAsync(t),n)}function doLimit(e,r){return function(t,n,i){return e(t,r,n,i)}}function eachOfArrayLike(e,r,t){t=once(t||noop);var n=0,i=0,a=e.length;if(a===0){t(null)}function iteratorCallback(e,r){if(e){t(e)}else if(++i===a||r===O){t(null)}}for(;n<a;n++){r(e[n],n,onlyOnce(iteratorCallback))}}var Oe=doLimit(eachOfLimit,Infinity);var eachOf=function(e,r,t){var n=isArrayLike(e)?eachOfArrayLike:Oe;n(e,wrapAsync(r),t)};function doParallel(e){return function(r,t,n){return e(eachOf,r,wrapAsync(t),n)}}function _asyncMap(e,r,t,n){n=n||noop;r=r||[];var i=[];var a=0;var o=wrapAsync(t);e(r,(function(e,r,t){var n=a++;o(e,(function(e,r){i[n]=r;t(e)}))}),(function(e){n(e,i)}))}var Se=doParallel(_asyncMap);var Pe=applyEach$1(Se);function doParallelLimit(e){return function(r,t,n,i){return e(_eachOfLimit(t),r,wrapAsync(n),i)}}var xe=doParallelLimit(_asyncMap);var _e=doLimit(xe,1);var Ee=applyEach$1(_e);function arrayEach(e,r){var t=-1,n=e==null?0:e.length;while(++t<n){if(r(e[t],t,e)===false){break}}return e}function createBaseFor(e){return function(r,t,n){var i=-1,a=Object(r),o=n(r),c=o.length;while(c--){var u=o[e?c:++i];if(t(a[u],u,a)===false){break}}return r}}var Te=createBaseFor();function baseForOwn(e,r){return e&&Te(e,r,keys)}function baseFindIndex(e,r,t,n){var i=e.length,a=t+(n?1:-1);while(n?a--:++a<i){if(r(e[a],a,e)){return a}}return-1}function baseIsNaN(e){return e!==e}function strictIndexOf(e,r,t){var n=t-1,i=e.length;while(++n<i){if(e[n]===r){return n}}return-1}function baseIndexOf(e,r,t){return r===r?strictIndexOf(e,r,t):baseFindIndex(e,baseIsNaN,t)}var auto=function(e,r,t){if(typeof r==="function"){t=r;r=null}t=once(t||noop);var n=keys(e);var i=n.length;if(!i){return t(null)}if(!r){r=i}var a={};var o=0;var c=false;var u=Object.create(null);var s=[];var l=[];var f={};baseForOwn(e,(function(r,t){if(!I(r)){enqueueTask(t,[r]);l.push(t);return}var n=r.slice(0,r.length-1);var i=n.length;if(i===0){enqueueTask(t,r);l.push(t);return}f[t]=i;arrayEach(n,(function(a){if(!e[a]){throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+n.join(", "))}addListener(a,(function(){i--;if(i===0){enqueueTask(t,r)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(e,r){s.push((function(){runTask(e,r)}))}function processQueue(){if(s.length===0&&o===0){return t(null,a)}while(s.length&&o<r){var e=s.shift();e()}}function addListener(e,r){var t=u[e];if(!t){t=u[e]=[]}t.push(r)}function taskComplete(e){var r=u[e]||[];arrayEach(r,(function(e){e()}));processQueue()}function runTask(e,r){if(c)return;var n=onlyOnce((function(r,n){o--;if(arguments.length>2){n=slice(arguments,1)}if(r){var i={};baseForOwn(a,(function(e,r){i[r]=e}));i[e]=n;c=true;u=Object.create(null);t(r,i)}else{a[e]=n;taskComplete(e)}}));o++;var i=wrapAsync(r[r.length-1]);if(r.length>1){i(a,n)}else{i(n)}}function checkForDeadlocks(){var e;var r=0;while(l.length){e=l.pop();r++;arrayEach(getDependents(e),(function(e){if(--f[e]===0){l.push(e)}}))}if(r!==i){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(r){var t=[];baseForOwn(e,(function(e,n){if(I(e)&&baseIndexOf(e,r,0)>=0){t.push(n)}}));return t}};function arrayMap(e,r){var t=-1,n=e==null?0:e.length,i=Array(n);while(++t<n){i[t]=r(e[t],t,e)}return i}var Ie="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==Ie}var Fe=1/0;var De=l?l.prototype:undefined;var qe=De?De.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(I(e)){return arrayMap(e,baseToString)+""}if(isSymbol(e)){return qe?qe.call(e):""}var r=e+"";return r=="0"&&1/e==-Fe?"-0":r}function baseSlice(e,r,t){var n=-1,i=e.length;if(r<0){r=-r>i?0:i+r}t=t>i?i:t;if(t<0){t+=i}i=r>t?0:t-r>>>0;r>>>=0;var a=Array(i);while(++n<i){a[n]=e[n+r]}return a}function castSlice(e,r,t){var n=e.length;t=t===undefined?n:t;return!r&&t>=n?e:baseSlice(e,r,t)}function charsEndIndex(e,r){var t=e.length;while(t--&&baseIndexOf(r,e[t],0)>-1){}return t}function charsStartIndex(e,r){var t=-1,n=e.length;while(++t<n&&baseIndexOf(r,e[t],0)>-1){}return t}function asciiToArray(e){return e.split("")}var Ne="\\ud800-\\udfff";var Be="\\u0300-\\u036f";var $e="\\ufe20-\\ufe2f";var Re="\\u20d0-\\u20ff";var Me=Be+$e+Re;var Ce="\\ufe0e\\ufe0f";var ze="\\u200d";var Ue=RegExp("["+ze+Ne+Me+Ce+"]");function hasUnicode(e){return Ue.test(e)}var Ve="\\ud800-\\udfff";var Ge="\\u0300-\\u036f";var He="\\ufe20-\\ufe2f";var We="\\u20d0-\\u20ff";var Ke=Ge+He+We;var Qe="\\ufe0e\\ufe0f";var Je="["+Ve+"]";var Xe="["+Ke+"]";var Ye="\\ud83c[\\udffb-\\udfff]";var Ze="(?:"+Xe+"|"+Ye+")";var er="[^"+Ve+"]";var rr="(?:\\ud83c[\\udde6-\\uddff]){2}";var tr="[\\ud800-\\udbff][\\udc00-\\udfff]";var nr="\\u200d";var ir=Ze+"?";var ar="["+Qe+"]?";var or="(?:"+nr+"(?:"+[er,rr,tr].join("|")+")"+ar+ir+")*";var cr=ar+ir+or;var ur="(?:"+[er+Xe+"?",Xe,rr,tr,Je].join("|")+")";var sr=RegExp(Ye+"(?="+Ye+")|"+ur+cr,"g");function unicodeToArray(e){return e.match(sr)||[]}function stringToArray(e){return hasUnicode(e)?unicodeToArray(e):asciiToArray(e)}function toString(e){return e==null?"":baseToString(e)}var lr=/^\s+|\s+$/g;function trim(e,r,t){e=toString(e);if(e&&(t||r===undefined)){return e.replace(lr,"")}if(!e||!(r=baseToString(r))){return e}var n=stringToArray(e),i=stringToArray(r),a=charsStartIndex(n,i),o=charsEndIndex(n,i)+1;return castSlice(n,a,o).join("")}var fr=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m;var pr=/,/;var vr=/(=.+)?(\s*)$/;var hr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function parseParams(e){e=e.toString().replace(hr,"");e=e.match(fr)[2].replace(" ","");e=e?e.split(pr):[];e=e.map((function(e){return trim(e.replace(vr,""))}));return e}function autoInject(e,r){var t={};baseForOwn(e,(function(e,r){var n;var i=isAsync(e);var a=!i&&e.length===1||i&&e.length===0;if(I(e)){n=e.slice(0,-1);e=e[e.length-1];t[r]=n.concat(n.length>0?newTask:e)}else if(a){t[r]=e}else{n=parseParams(e);if(e.length===0&&!i&&n.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!i)n.pop();t[r]=n.concat(newTask)}function newTask(r,t){var i=arrayMap(n,(function(e){return r[e]}));i.push(t);wrapAsync(e).apply(null,i)}}));auto(t,r)}function DLL(){this.head=this.tail=null;this.length=0}function setInitial(e,r){e.length=1;e.head=e.tail=r}DLL.prototype.removeLink=function(e){if(e.prev)e.prev.next=e.next;else this.head=e.next;if(e.next)e.next.prev=e.prev;else this.tail=e.prev;e.prev=e.next=null;this.length-=1;return e};DLL.prototype.empty=function(){while(this.head)this.shift();return this};DLL.prototype.insertAfter=function(e,r){r.prev=e;r.next=e.next;if(e.next)e.next.prev=r;else this.tail=r;e.next=r;this.length+=1};DLL.prototype.insertBefore=function(e,r){r.prev=e.prev;r.next=e;if(e.prev)e.prev.next=r;else this.head=r;e.prev=r;this.length+=1};DLL.prototype.unshift=function(e){if(this.head)this.insertBefore(this.head,e);else setInitial(this,e)};DLL.prototype.push=function(e){if(this.tail)this.insertAfter(this.tail,e);else setInitial(this,e)};DLL.prototype.shift=function(){return this.head&&this.removeLink(this.head)};DLL.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};DLL.prototype.toArray=function(){var e=Array(this.length);var r=this.head;for(var t=0;t<this.length;t++){e[t]=r.data;r=r.next}return e};DLL.prototype.remove=function(e){var r=this.head;while(!!r){var t=r.next;if(e(r)){this.removeLink(r)}r=t}return this};function queue(e,r,t){if(r==null){r=1}else if(r===0){throw new Error("Concurrency must not be zero")}var n=wrapAsync(e);var i=0;var o=[];var c=false;function _insert(e,r,t){if(t!=null&&typeof t!=="function"){throw new Error("task callback must be a function")}s.started=true;if(!I(e)){e=[e]}if(e.length===0&&s.idle()){return a((function(){s.drain()}))}for(var n=0,i=e.length;n<i;n++){var o={data:e[n],callback:t||noop};if(r){s._tasks.unshift(o)}else{s._tasks.push(o)}}if(!c){c=true;a((function(){c=false;s.process()}))}}function _next(e){return function(r){i-=1;for(var t=0,n=e.length;t<n;t++){var a=e[t];var c=baseIndexOf(o,a,0);if(c===0){o.shift()}else if(c>0){o.splice(c,1)}a.callback.apply(a,arguments);if(r!=null){s.error(r,a.data)}}if(i<=s.concurrency-s.buffer){s.unsaturated()}if(s.idle()){s.drain()}s.process()}}var u=false;var s={_tasks:new DLL,concurrency:r,payload:t,saturated:noop,unsaturated:noop,buffer:r/4,empty:noop,drain:noop,error:noop,started:false,paused:false,push:function(e,r){_insert(e,false,r)},kill:function(){s.drain=noop;s._tasks.empty()},unshift:function(e,r){_insert(e,true,r)},remove:function(e){s._tasks.remove(e)},process:function(){if(u){return}u=true;while(!s.paused&&i<s.concurrency&&s._tasks.length){var e=[],r=[];var t=s._tasks.length;if(s.payload)t=Math.min(t,s.payload);for(var a=0;a<t;a++){var c=s._tasks.shift();e.push(c);o.push(c);r.push(c.data)}i+=1;if(s._tasks.length===0){s.empty()}if(i===s.concurrency){s.saturated()}var l=onlyOnce(_next(e));n(r,l)}u=false},length:function(){return s._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return s._tasks.length+i===0},pause:function(){s.paused=true},resume:function(){if(s.paused===false){return}s.paused=false;a(s.process)}};return s}function cargo(e,r){return queue(e,1,r)}var yr=doLimit(eachOfLimit,1);function reduce(e,r,t,n){n=once(n||noop);var i=wrapAsync(t);yr(e,(function(e,t,n){i(r,e,(function(e,t){r=t;n(e)}))}),(function(e){n(e,r)}))}function seq(){var e=arrayMap(arguments,wrapAsync);return function(){var r=slice(arguments);var t=this;var n=r[r.length-1];if(typeof n=="function"){r.pop()}else{n=noop}reduce(e,r,(function(e,r,n){r.apply(t,e.concat((function(e){var r=slice(arguments,1);n(e,r)})))}),(function(e,r){n.apply(t,[e].concat(r))}))}}var compose=function(){return seq.apply(null,slice(arguments).reverse())};var dr=Array.prototype.concat;var concatLimit=function(e,r,t,n){n=n||noop;var i=wrapAsync(t);xe(e,r,(function(e,r){i(e,(function(e){if(e)return r(e);return r(null,slice(arguments,1))}))}),(function(e,r){var t=[];for(var i=0;i<r.length;i++){if(r[i]){t=dr.apply(t,r[i])}}return n(e,t)}))};var mr=doLimit(concatLimit,Infinity);var br=doLimit(concatLimit,1);var constant=function(){var e=slice(arguments);var r=[null].concat(e);return function(){var e=arguments[arguments.length-1];return e.apply(this,r)}};function identity(e){return e}function _createTester(e,r){return function(t,n,i,a){a=a||noop;var o=false;var c;t(n,(function(t,n,a){i(t,(function(n,i){if(n){a(n)}else if(e(i)&&!c){o=true;c=r(true,t);a(null,O)}else{a()}}))}),(function(e){if(e){a(e)}else{a(null,o?c:r(false))}}))}}function _findGetResult(e,r){return r}var gr=doParallel(_createTester(identity,_findGetResult));var Lr=doParallelLimit(_createTester(identity,_findGetResult));var kr=doLimit(Lr,1);function consoleFunc(e){return function(r){var t=slice(arguments,1);t.push((function(r){var t=slice(arguments,1);if(typeof console==="object"){if(r){if(console.error){console.error(r)}}else if(console[e]){arrayEach(t,(function(r){console[e](r)}))}}}));wrapAsync(r).apply(null,t)}}var wr=consoleFunc("dir");function doDuring(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(e);var i=wrapAsync(r);function next(e){if(e)return t(e);var r=slice(arguments,1);r.push(check);i.apply(this,r)}function check(e,r){if(e)return t(e);if(!r)return t(null);n(next)}check(null,true)}function doWhilst(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(e);var next=function(e){if(e)return t(e);var i=slice(arguments,1);if(r.apply(this,i))return n(next);t.apply(null,[null].concat(i))};n(next)}function doUntil(e,r,t){doWhilst(e,(function(){return!r.apply(this,arguments)}),t)}function during(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(r);var i=wrapAsync(e);function next(e){if(e)return t(e);i(check)}function check(e,r){if(e)return t(e);if(!r)return t(null);n(next)}i(check)}function _withoutIndex(e){return function(r,t,n){return e(r,n)}}function eachLimit(e,r,t){eachOf(e,_withoutIndex(wrapAsync(r)),t)}function eachLimit$1(e,r,t,n){_eachOfLimit(r)(e,_withoutIndex(wrapAsync(t)),n)}var Ar=doLimit(eachLimit$1,1);function ensureAsync(e){if(isAsync(e))return e;return initialParams((function(r,t){var n=true;r.push((function(){var e=arguments;if(n){a((function(){t.apply(null,e)}))}else{t.apply(null,e)}}));e.apply(this,r);n=false}))}function notId(e){return!e}var jr=doParallel(_createTester(notId,notId));var Or=doParallelLimit(_createTester(notId,notId));var Sr=doLimit(Or,1);function baseProperty(e){return function(r){return r==null?undefined:r[e]}}function filterArray(e,r,t,n){var i=new Array(r.length);e(r,(function(e,r,n){t(e,(function(e,t){i[r]=!!t;n(e)}))}),(function(e){if(e)return n(e);var t=[];for(var a=0;a<r.length;a++){if(i[a])t.push(r[a])}n(null,t)}))}function filterGeneric(e,r,t,n){var i=[];e(r,(function(e,r,n){t(e,(function(t,a){if(t){n(t)}else{if(a){i.push({index:r,value:e})}n()}}))}),(function(e){if(e){n(e)}else{n(null,arrayMap(i.sort((function(e,r){return e.index-r.index})),baseProperty("value")))}}))}function _filter(e,r,t,n){var i=isArrayLike(r)?filterArray:filterGeneric;i(e,r,wrapAsync(t),n||noop)}var Pr=doParallel(_filter);var xr=doParallelLimit(_filter);var _r=doLimit(xr,1);function forever(e,r){var t=onlyOnce(r||noop);var n=wrapAsync(ensureAsync(e));function next(e){if(e)return t(e);n(next)}next()}var groupByLimit=function(e,r,t,n){n=n||noop;var i=wrapAsync(t);xe(e,r,(function(e,r){i(e,(function(t,n){if(t)return r(t);return r(null,{key:n,val:e})}))}),(function(e,r){var t={};var i=Object.prototype.hasOwnProperty;for(var a=0;a<r.length;a++){if(r[a]){var o=r[a].key;var c=r[a].val;if(i.call(t,o)){t[o].push(c)}else{t[o]=[c]}}}return n(e,t)}))};var Er=doLimit(groupByLimit,Infinity);var Tr=doLimit(groupByLimit,1);var Ir=consoleFunc("log");function mapValuesLimit(e,r,t,n){n=once(n||noop);var i={};var a=wrapAsync(t);eachOfLimit(e,r,(function(e,r,t){a(e,r,(function(e,n){if(e)return t(e);i[r]=n;t()}))}),(function(e){n(e,i)}))}var Fr=doLimit(mapValuesLimit,Infinity);var Dr=doLimit(mapValuesLimit,1);function has(e,r){return r in e}function memoize(e,r){var t=Object.create(null);var n=Object.create(null);r=r||identity;var i=wrapAsync(e);var o=initialParams((function memoized(e,o){var c=r.apply(null,e);if(has(t,c)){a((function(){o.apply(null,t[c])}))}else if(has(n,c)){n[c].push(o)}else{n[c]=[o];i.apply(null,e.concat((function(){var e=slice(arguments);t[c]=e;var r=n[c];delete n[c];for(var i=0,a=r.length;i<a;i++){r[i].apply(null,e)}})))}}));o.memo=t;o.unmemoized=e;return o}var qr;if(n){qr=process.nextTick}else if(t){qr=setImmediate}else{qr=fallback}var Nr=wrap(qr);function _parallel(e,r,t){t=t||noop;var n=isArrayLike(r)?[]:{};e(r,(function(e,r,t){wrapAsync(e)((function(e,i){if(arguments.length>2){i=slice(arguments,1)}n[r]=i;t(e)}))}),(function(e){t(e,n)}))}function parallelLimit(e,r){_parallel(eachOf,e,r)}function parallelLimit$1(e,r,t){_parallel(_eachOfLimit(r),e,t)}var queue$1=function(e,r){var t=wrapAsync(e);return queue((function(e,r){t(e[0],r)}),r,1)};var priorityQueue=function(e,r){var t=queue$1(e,r);t.push=function(e,r,n){if(n==null)n=noop;if(typeof n!=="function"){throw new Error("task callback must be a function")}t.started=true;if(!I(e)){e=[e]}if(e.length===0){return a((function(){t.drain()}))}r=r||0;var i=t._tasks.head;while(i&&r>=i.priority){i=i.next}for(var o=0,c=e.length;o<c;o++){var u={data:e[o],priority:r,callback:n};if(i){t._tasks.insertBefore(i,u)}else{t._tasks.push(u)}}a(t.process)};delete t.unshift;return t};function race(e,r){r=once(r||noop);if(!I(e))return r(new TypeError("First argument to race must be an array of functions"));if(!e.length)return r();for(var t=0,n=e.length;t<n;t++){wrapAsync(e[t])(r)}}function reduceRight(e,r,t,n){var i=slice(e).reverse();reduce(i,r,t,n)}function reflect(e){var r=wrapAsync(e);return initialParams((function reflectOn(e,t){e.push((function callback(e,r){if(e){t(null,{error:e})}else{var n;if(arguments.length<=2){n=r}else{n=slice(arguments,1)}t(null,{value:n})}}));return r.apply(this,e)}))}function reflectAll(e){var r;if(I(e)){r=arrayMap(e,reflect)}else{r={};baseForOwn(e,(function(e,t){r[t]=reflect.call(this,e)}))}return r}function reject$1(e,r,t,n){_filter(e,r,(function(e,r){t(e,(function(e,t){r(e,!t)}))}),n)}var Br=doParallel(reject$1);var $r=doParallelLimit(reject$1);var Rr=doLimit($r,1);function constant$1(e){return function(){return e}}function retry(e,r,t){var n=5;var i=0;var a={times:n,intervalFunc:constant$1(i)};function parseTimes(e,r){if(typeof r==="object"){e.times=+r.times||n;e.intervalFunc=typeof r.interval==="function"?r.interval:constant$1(+r.interval||i);e.errorFilter=r.errorFilter}else if(typeof r==="number"||typeof r==="string"){e.times=+r||n}else{throw new Error("Invalid arguments for async.retry")}}if(arguments.length<3&&typeof e==="function"){t=r||noop;r=e}else{parseTimes(a,e);t=t||noop}if(typeof r!=="function"){throw new Error("Invalid arguments for async.retry")}var o=wrapAsync(r);var c=1;function retryAttempt(){o((function(e){if(e&&c++<a.times&&(typeof a.errorFilter!="function"||a.errorFilter(e))){setTimeout(retryAttempt,a.intervalFunc(c))}else{t.apply(null,arguments)}}))}retryAttempt()}var retryable=function(e,r){if(!r){r=e;e=null}var t=wrapAsync(r);return initialParams((function(r,n){function taskFn(e){t.apply(null,r.concat(e))}if(e)retry(e,taskFn,n);else retry(taskFn,n)}))};function series(e,r){_parallel(yr,e,r)}var Mr=doParallel(_createTester(Boolean,identity));var Cr=doParallelLimit(_createTester(Boolean,identity));var zr=doLimit(Cr,1);function sortBy(e,r,t){var n=wrapAsync(r);Se(e,(function(e,r){n(e,(function(t,n){if(t)return r(t);r(null,{value:e,criteria:n})}))}),(function(e,r){if(e)return t(e);t(null,arrayMap(r.sort(comparator),baseProperty("value")))}));function comparator(e,r){var t=e.criteria,n=r.criteria;return t<n?-1:t>n?1:0}}function timeout(e,r,t){var n=wrapAsync(e);return initialParams((function(i,a){var o=false;var c;function timeoutCallback(){var r=e.name||"anonymous";var n=new Error('Callback function "'+r+'" timed out.');n.code="ETIMEDOUT";if(t){n.info=t}o=true;a(n)}i.push((function(){if(!o){a.apply(null,arguments);clearTimeout(c)}}));c=setTimeout(timeoutCallback,r);n.apply(null,i)}))}var Ur=Math.ceil;var Vr=Math.max;function baseRange(e,r,t,n){var i=-1,a=Vr(Ur((r-e)/(t||1)),0),o=Array(a);while(a--){o[n?a:++i]=e;e+=t}return o}function timeLimit(e,r,t,n){var i=wrapAsync(t);xe(baseRange(0,e,1),r,i,n)}var Gr=doLimit(timeLimit,Infinity);var Hr=doLimit(timeLimit,1);function transform(e,r,t,n){if(arguments.length<=3){n=t;t=r;r=I(e)?[]:{}}n=once(n||noop);var i=wrapAsync(t);eachOf(e,(function(e,t,n){i(r,e,t,n)}),(function(e){n(e,r)}))}function tryEach(e,r){var t=null;var n;r=r||noop;Ar(e,(function(e,r){wrapAsync(e)((function(e,i){if(arguments.length>2){n=slice(arguments,1)}else{n=i}t=e;r(!e)}))}),(function(){r(t,n)}))}function unmemoize(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function whilst(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(r);if(!e())return t(null);var next=function(r){if(r)return t(r);if(e())return n(next);var i=slice(arguments,1);t.apply(null,[null].concat(i))};n(next)}function until(e,r,t){whilst((function(){return!e.apply(this,arguments)}),r,t)}var waterfall=function(e,r){r=once(r||noop);if(!I(e))return r(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return r();var t=0;function nextTask(r){var n=wrapAsync(e[t++]);r.push(onlyOnce(next));n.apply(null,r)}function next(n){if(n||t===e.length){return r.apply(null,arguments)}nextTask(slice(arguments,1))}nextTask([])};var Wr={apply:apply,applyEach:Pe,applyEachSeries:Ee,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo,compose:compose,concat:mr,concatLimit:concatLimit,concatSeries:br,constant:constant,detect:gr,detectLimit:Lr,detectSeries:kr,dir:wr,doDuring:doDuring,doUntil:doUntil,doWhilst:doWhilst,during:during,each:eachLimit,eachLimit:eachLimit$1,eachOf:eachOf,eachOfLimit:eachOfLimit,eachOfSeries:yr,eachSeries:Ar,ensureAsync:ensureAsync,every:jr,everyLimit:Or,everySeries:Sr,filter:Pr,filterLimit:xr,filterSeries:_r,forever:forever,groupBy:Er,groupByLimit:groupByLimit,groupBySeries:Tr,log:Ir,map:Se,mapLimit:xe,mapSeries:_e,mapValues:Fr,mapValuesLimit:mapValuesLimit,mapValuesSeries:Dr,memoize:memoize,nextTick:Nr,parallel:parallelLimit,parallelLimit:parallelLimit$1,priorityQueue:priorityQueue,queue:queue$1,race:race,reduce:reduce,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:Br,rejectLimit:$r,rejectSeries:Rr,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:a,some:Mr,someLimit:Cr,someSeries:zr,sortBy:sortBy,timeout:timeout,times:Gr,timesLimit:timeLimit,timesSeries:Hr,transform:transform,tryEach:tryEach,unmemoize:unmemoize,until:until,waterfall:waterfall,whilst:whilst,all:jr,allLimit:Or,allSeries:Sr,any:Mr,anyLimit:Cr,anySeries:zr,find:gr,findLimit:Lr,findSeries:kr,forEach:eachLimit,forEachSeries:Ar,forEachLimit:eachLimit$1,forEachOf:eachOf,forEachOfSeries:yr,forEachOfLimit:eachOfLimit,inject:reduce,foldl:reduce,foldr:reduceRight,select:Pr,selectLimit:xr,selectSeries:_r,wrapSync:asyncify};r["default"]=Wr;r.apply=apply;r.applyEach=Pe;r.applyEachSeries=Ee;r.asyncify=asyncify;r.auto=auto;r.autoInject=autoInject;r.cargo=cargo;r.compose=compose;r.concat=mr;r.concatLimit=concatLimit;r.concatSeries=br;r.constant=constant;r.detect=gr;r.detectLimit=Lr;r.detectSeries=kr;r.dir=wr;r.doDuring=doDuring;r.doUntil=doUntil;r.doWhilst=doWhilst;r.during=during;r.each=eachLimit;r.eachLimit=eachLimit$1;r.eachOf=eachOf;r.eachOfLimit=eachOfLimit;r.eachOfSeries=yr;r.eachSeries=Ar;r.ensureAsync=ensureAsync;r.every=jr;r.everyLimit=Or;r.everySeries=Sr;r.filter=Pr;r.filterLimit=xr;r.filterSeries=_r;r.forever=forever;r.groupBy=Er;r.groupByLimit=groupByLimit;r.groupBySeries=Tr;r.log=Ir;r.map=Se;r.mapLimit=xe;r.mapSeries=_e;r.mapValues=Fr;r.mapValuesLimit=mapValuesLimit;r.mapValuesSeries=Dr;r.memoize=memoize;r.nextTick=Nr;r.parallel=parallelLimit;r.parallelLimit=parallelLimit$1;r.priorityQueue=priorityQueue;r.queue=queue$1;r.race=race;r.reduce=reduce;r.reduceRight=reduceRight;r.reflect=reflect;r.reflectAll=reflectAll;r.reject=Br;r.rejectLimit=$r;r.rejectSeries=Rr;r.retry=retry;r.retryable=retryable;r.seq=seq;r.series=series;r.setImmediate=a;r.some=Mr;r.someLimit=Cr;r.someSeries=zr;r.sortBy=sortBy;r.timeout=timeout;r.times=Gr;r.timesLimit=timeLimit;r.timesSeries=Hr;r.transform=transform;r.tryEach=tryEach;r.unmemoize=unmemoize;r.until=until;r.waterfall=waterfall;r.whilst=whilst;r.all=jr;r.allLimit=Or;r.allSeries=Sr;r.any=Mr;r.anyLimit=Cr;r.anySeries=zr;r.find=gr;r.findLimit=Lr;r.findSeries=kr;r.forEach=eachLimit;r.forEachSeries=Ar;r.forEachLimit=eachLimit$1;r.forEachOf=eachOf;r.forEachOfSeries=yr;r.forEachOfLimit=eachOfLimit;r.inject=reduce;r.foldl=reduce;r.foldr=reduceRight;r.select=Pr;r.selectLimit=xr;r.selectSeries=_r;r.wrapSync=asyncify;Object.defineProperty(r,"__esModule",{value:true})}))},528:function(e,r,t){var n=t(17);var i=t(147);var a=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,r,t,o){if(typeof r==="function"){t=r;r={}}else if(!r||typeof r!=="object"){r={mode:r}}var c=r.mode;var u=r.fs||i;if(c===undefined){c=a}if(!o)o=null;var s=t||function(){};e=n.resolve(e);u.mkdir(e,c,(function(t){if(!t){o=o||e;return s(null,o)}switch(t.code){case"ENOENT":if(n.dirname(e)===e)return s(t);mkdirP(n.dirname(e),r,(function(t,n){if(t)s(t,n);else mkdirP(e,r,s,n)}));break;default:u.stat(e,(function(e,r){if(e||!r.isDirectory())s(t,o);else s(null,o)}));break}}))}mkdirP.sync=function sync(e,r,t){if(!r||typeof r!=="object"){r={mode:r}}var o=r.mode;var c=r.fs||i;if(o===undefined){o=a}if(!t)t=null;e=n.resolve(e);try{c.mkdirSync(e,o);t=t||e}catch(i){switch(i.code){case"ENOENT":t=sync(n.dirname(e),r,t);sync(e,r,t);break;default:var u;try{u=c.statSync(e)}catch(e){throw i}if(!u.isDirectory())throw i;break}}return t}},556:function(e,r,t){"use strict";var n=t(147),i=t(37),a=t(808),o=t(17),c=t(620),u=t(755),s=t(528).mkdirp;var l=u("portfinder:testPort"),f=u("portfinder:getPort"),p=u("portfinder:defaultHosts");var v={};v.testPort=function(e,t){if(!t){t=e;e={}}e.server=e.server||a.createServer((function(){}));l("entered testPort(): trying",e.host,"port",e.port);function onListen(){l("done w/ testPort(): OK",e.host,"port",e.port);e.server.removeListener("error",onError);e.server.close();t(null,e.port)}function onError(n){l("done w/ testPort(): failed",e.host,"w/ port",e.port,"with error",n.code);e.server.removeListener("listening",onListen);if(!(n.code=="EADDRINUSE"||n.code=="EACCES")){return t(n)}var i=r.nextPort(e.port);if(i>r.highestPort){return t(new Error("No open ports available"))}v.testPort({port:i,host:e.host,server:e.server},t)}e.server.once("error",onError);e.server.once("listening",onListen);if(e.host){e.server.listen(e.port,e.host)}else{e.server.listen(e.port)}};r.basePort=8e3;r.setBasePort=function(e){r.basePort=e};r.highestPort=65535;r.setHighestPort=function(e){r.highestPort=e};r.basePath="/tmp/portfinder";r.getPort=function(e,t){if(!t){t=e;e={}}e.port=Number(e.port)||Number(r.basePort);e.host=e.host||null;e.stopPort=Number(e.stopPort)||Number(r.highestPort);if(!e.startPort){e.startPort=Number(e.port);if(e.startPort<0){throw Error("Provided options.startPort("+e.startPort+") is less than 0, which are cannot be bound.")}if(e.stopPort<e.startPort){throw Error("Provided options.stopPort("+e.stopPort+"is less than options.startPort ("+e.startPort+")")}}if(e.host){if(r._defaultHosts.indexOf(e.host)!==-1){r._defaultHosts.push(e.host)}}var n=[],i;return c.eachSeries(r._defaultHosts,(function(r,t){f("in eachSeries() iteration callback: host is",r);return v.testPort({host:r,port:e.port},(function(e,a){if(e){f("in eachSeries() iteration callback testPort() callback","with an err:",e.code);i=r;return t(e)}else{f("in eachSeries() iteration callback testPort() callback","with a success for port",a);n.push(a);return t()}}))}),(function(a){if(a){f("in eachSeries() result callback: err is",a);if(a.code==="EADDRNOTAVAIL"||a.code==="EINVAL"){if(e.host===i){var o="Provided host "+e.host+" could NOT be bound. Please provide a different host address or hostname";return t(Error(o))}else{var c=r._defaultHosts.indexOf(i);r._defaultHosts.splice(c,1);return r.getPort(e,t)}}else{return t(a)}}n.sort((function(e,r){return e-r}));f("in eachSeries() result callback: openPorts is",n);if(n[0]===n[n.length-1]){if(n[0]<=e.stopPort){return t(null,n[0])}else{var o="No open ports found in between "+e.startPort+" and "+e.stopPort;return t(Error(o))}}else{return r.getPort({port:n.pop(),host:e.host,startPort:e.startPort,stopPort:e.stopPort},t)}}))};r.getPortPromise=function(e){if(typeof Promise!=="function"){throw Error("Native promise support is not available in this version of node."+"Please install a polyfill and assign Promise to global.Promise before calling this method")}if(!e){e={}}return new Promise((function(t,n){r.getPort(e,(function(e,r){if(e){return n(e)}t(r)}))}))};r.getPorts=function(e,t,n){if(!n){n=t;t={}}var i=null;c.timesSeries(e,(function(e,n){if(i){t.port=r.nextPort(i)}r.getPort(t,(function(e,r){if(e){n(e)}else{i=r;n(null,r)}}))}),n)};r.getSocket=function(e,t){if(!t){t=e;e={}}e.mod=e.mod||parseInt(755,8);e.path=e.path||r.basePath+".sock";function testSocket(){n.stat(e.path,(function(n){if(n){if(n.code=="ENOENT"){t(null,e.path)}else{t(n)}}else{e.path=r.nextSocket(e.path);r.getSocket(e,t)}}))}function createAndTestSocket(r){s(r,e.mod,(function(r){if(r){return t(r)}e.exists=true;testSocket()}))}function checkAndTestSocket(){var r=o.dirname(e.path);n.stat(r,(function(t,n){if(t||!n.isDirectory()){return createAndTestSocket(r)}e.exists=true;testSocket()}))}return e.exists?testSocket():checkAndTestSocket()};r.nextPort=function(e){return e+1};r.nextSocket=function(e){var r=o.dirname(e),t=o.basename(e,".sock"),n=t.match(/^([a-zA-z]+)(\d*)$/i),i=parseInt(n[2]),a=n[1];if(isNaN(i)){i=0}i+=1;return o.join(r,a+i+".sock")};r._defaultHosts=function(){var e={};try{e=i.networkInterfaces()}catch(e){if(e.syscall==="uv_interface_addresses"){}else{throw e}}var r=Object.keys(e),t="0.0.0.0",n=[t];for(var a=0;a<r.length;a++){var o=e[r[a]];for(var c=0;c<o.length;c++){var u=o[c];n.push(u.address)}}n.push(null);p("exports._defaultHosts is: %o",n);return n}()},755:function(e){"use strict";e.exports=require("@umijs/utils/compiled/debug")},147:function(e){"use strict";e.exports=require("fs")},808:function(e){"use strict";e.exports=require("net")},37:function(e){"use strict";e.exports=require("os")},17:function(e){"use strict";e.exports=require("path")}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var i=r[t]={id:t,loaded:false,exports:{}};var a=true;try{e[t].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}i.loaded=true;return i.exports}!function(){__nccwpck_require__.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(556);module.exports=t})();
@@ -6,7 +6,7 @@
6
6
 
7
7
  type PortfinderCallback = (err: Error, port: number) => void;
8
8
 
9
- interface PortFinderOptions{
9
+ interface PortFinderOptions {
10
10
  /**
11
11
  * Host to find available port on.
12
12
  */
@@ -33,6 +33,21 @@ interface PortFinderOptions{
33
33
  */
34
34
  export let basePort: number;
35
35
 
36
+ /**
37
+ * Set the lowest port to begin any port search from.
38
+ */
39
+ export function setBasePort(port: number): void;
40
+
41
+ /**
42
+ * The highest port to end any port search from.
43
+ */
44
+ export let highestPort: number;
45
+
46
+ /**
47
+ * Set the higheset port to end any port search from.
48
+ */
49
+ export function setHighestPort(port: number): void;
50
+
36
51
  /**
37
52
  * Responds with a unbound port on the current machine.
38
53
  */
@@ -1 +1 @@
1
- {"name":"portfinder","author":"Charlie Robbins <charlie.robbins@gmail.com>","license":"MIT","types":"./lib/portfinder.d.ts"}
1
+ {"name":"portfinder","version":"1.0.32","author":"Charlie Robbins <charlie.robbins@gmail.com>","license":"MIT","types":"./lib/portfinder.d.ts"}