@bleedingdev/modern-js-utils 3.2.0-ultramodern.5 → 3.2.0-ultramodern.8

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 (271) hide show
  1. package/dist/types/cli/alias.d.ts +20 -0
  2. package/dist/types/cli/applyOptionsChain.d.ts +3 -0
  3. package/dist/types/cli/commands.d.ts +8 -0
  4. package/dist/types/cli/common.d.ts +9 -0
  5. package/dist/types/cli/config.d.ts +4 -0
  6. package/dist/types/cli/constants.d.ts +55 -0
  7. package/dist/types/cli/ensure.d.ts +8 -0
  8. package/dist/types/cli/fs.d.ts +7 -0
  9. package/dist/types/cli/get/config.d.ts +1 -0
  10. package/dist/types/cli/get/data.d.ts +6 -0
  11. package/dist/types/cli/get/index.d.ts +11 -0
  12. package/dist/types/cli/index.d.ts +23 -0
  13. package/dist/types/cli/is/config.d.ts +22 -0
  14. package/dist/types/cli/is/env.d.ts +8 -0
  15. package/dist/types/cli/is/index.d.ts +4 -0
  16. package/dist/types/cli/is/project.d.ts +39 -0
  17. package/dist/types/cli/is/type.d.ts +15 -0
  18. package/dist/types/cli/logger.d.ts +1 -0
  19. package/dist/types/cli/modulePath.d.ts +5 -0
  20. package/dist/types/cli/monorepo.d.ts +9 -0
  21. package/dist/types/cli/package.d.ts +5 -0
  22. package/dist/types/cli/path.d.ts +11 -0
  23. package/dist/types/cli/port.d.ts +12 -0
  24. package/dist/types/cli/prettyInstructions.d.ts +6 -0
  25. package/dist/types/cli/require.d.ts +9 -0
  26. package/dist/types/cli/route.d.ts +4 -0
  27. package/dist/types/cli/runtimeExports.d.ts +5 -0
  28. package/dist/types/cli/tsconfig.d.ts +1 -0
  29. package/dist/types/cli/version.d.ts +4 -0
  30. package/dist/types/cli/watch.d.ts +8 -0
  31. package/dist/types/compiled.d.ts +37 -0
  32. package/dist/types/import.d.ts +5 -0
  33. package/dist/types/index.d.ts +3 -0
  34. package/dist/types/universal/constants.d.ts +47 -0
  35. package/dist/types/universal/index.d.ts +1 -0
  36. package/dist/types/universal/path.d.ts +1 -0
  37. package/dist/types/universal/pluginDagSort.d.ts +1 -0
  38. package/package.json +3 -3
  39. package/dist/compiled/address/index.js +0 -171
  40. package/dist/compiled/address/lib/address.d.ts +0 -28
  41. package/dist/compiled/address/package.json +0 -1
  42. package/dist/compiled/browserslist/index.d.ts +0 -178
  43. package/dist/compiled/browserslist/index.js +0 -1329
  44. package/dist/compiled/browserslist/license +0 -20
  45. package/dist/compiled/browserslist/package.json +0 -1
  46. package/dist/compiled/chalk/index.d.ts +0 -415
  47. package/dist/compiled/chalk/index.js +0 -2368
  48. package/dist/compiled/chalk/license +0 -9
  49. package/dist/compiled/chalk/package.json +0 -1
  50. package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
  51. package/dist/compiled/chokidar/fsevents.node +0 -0
  52. package/dist/compiled/chokidar/index.js +0 -4162
  53. package/dist/compiled/chokidar/index.js.LICENSE.txt +0 -41
  54. package/dist/compiled/chokidar/license +0 -21
  55. package/dist/compiled/chokidar/package.json +0 -1
  56. package/dist/compiled/chokidar/types/index.d.ts +0 -188
  57. package/dist/compiled/commander/index.js +0 -1540
  58. package/dist/compiled/commander/index.mjs +0 -2
  59. package/dist/compiled/commander/license +0 -22
  60. package/dist/compiled/commander/package.json +0 -1
  61. package/dist/compiled/commander/typings/index.d.ts +0 -890
  62. package/dist/compiled/debug/index.d.ts +0 -54
  63. package/dist/compiled/debug/index.js +0 -621
  64. package/dist/compiled/debug/license +0 -20
  65. package/dist/compiled/debug/ms/index.d.ts +0 -25
  66. package/dist/compiled/debug/package.json +0 -1
  67. package/dist/compiled/dotenv/index.js +0 -101
  68. package/dist/compiled/dotenv/license +0 -23
  69. package/dist/compiled/dotenv/package.json +0 -1
  70. package/dist/compiled/dotenv/types/index.d.ts +0 -59
  71. package/dist/compiled/dotenv-expand/index.d.ts +0 -15
  72. package/dist/compiled/dotenv-expand/index.js +0 -54
  73. package/dist/compiled/dotenv-expand/license +0 -24
  74. package/dist/compiled/dotenv-expand/package.json +0 -1
  75. package/dist/compiled/execa/index.d.ts +0 -564
  76. package/dist/compiled/execa/index.js +0 -1738
  77. package/dist/compiled/execa/license +0 -9
  78. package/dist/compiled/execa/package.json +0 -1
  79. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  80. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
  81. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  82. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  83. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  84. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  85. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
  86. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  87. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
  88. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  89. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
  90. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  91. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  92. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  93. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
  94. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  95. package/dist/compiled/fast-glob/index.js +0 -4665
  96. package/dist/compiled/fast-glob/index.js.LICENSE.txt +0 -38
  97. package/dist/compiled/fast-glob/license +0 -21
  98. package/dist/compiled/fast-glob/out/index.d.ts +0 -27
  99. package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
  100. package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
  101. package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
  102. package/dist/compiled/fast-glob/package.json +0 -1
  103. package/dist/compiled/filesize/filesize.d.ts +0 -131
  104. package/dist/compiled/filesize/index.js +0 -198
  105. package/dist/compiled/filesize/index.js.LICENSE.txt +0 -7
  106. package/dist/compiled/filesize/license +0 -28
  107. package/dist/compiled/filesize/package.json +0 -1
  108. package/dist/compiled/fs-extra/index.d.ts +0 -563
  109. package/dist/compiled/fs-extra/index.js +0 -2222
  110. package/dist/compiled/fs-extra/license +0 -15
  111. package/dist/compiled/fs-extra/package.json +0 -1
  112. package/dist/compiled/glob/index.d.ts +0 -91
  113. package/dist/compiled/glob/index.js +0 -2011
  114. package/dist/compiled/glob/license +0 -21
  115. package/dist/compiled/glob/minimatch/index.d.ts +0 -204
  116. package/dist/compiled/glob/package.json +0 -1
  117. package/dist/compiled/globby/index.d.ts +0 -186
  118. package/dist/compiled/globby/index.js +0 -690
  119. package/dist/compiled/globby/license +0 -9
  120. package/dist/compiled/globby/package.json +0 -1
  121. package/dist/compiled/gzip-size/index.d.ts +0 -96
  122. package/dist/compiled/gzip-size/index.js +0 -157
  123. package/dist/compiled/gzip-size/license +0 -9
  124. package/dist/compiled/gzip-size/package.json +0 -1
  125. package/dist/compiled/import-lazy/index.d.ts +0 -26
  126. package/dist/compiled/import-lazy/index.js +0 -45
  127. package/dist/compiled/import-lazy/license +0 -9
  128. package/dist/compiled/import-lazy/package.json +0 -1
  129. package/dist/compiled/inquirer/index.d.ts +0 -997
  130. package/dist/compiled/inquirer/index.js +0 -20167
  131. package/dist/compiled/inquirer/index.js.LICENSE.txt +0 -7
  132. package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
  133. package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
  134. package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
  135. package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
  136. package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
  137. package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
  138. package/dist/compiled/inquirer/license +0 -22
  139. package/dist/compiled/inquirer/package.json +0 -1
  140. package/dist/compiled/inquirer/through/index.d.ts +0 -25
  141. package/dist/compiled/js-yaml/index.d.ts +0 -154
  142. package/dist/compiled/js-yaml/index.js +0 -2191
  143. package/dist/compiled/js-yaml/index.mjs +0 -2167
  144. package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +0 -1
  145. package/dist/compiled/js-yaml/license +0 -21
  146. package/dist/compiled/js-yaml/package.json +0 -1
  147. package/dist/compiled/json5/index.js +0 -983
  148. package/dist/compiled/json5/lib/index.d.ts +0 -4
  149. package/dist/compiled/json5/lib/parse.d.ts +0 -15
  150. package/dist/compiled/json5/lib/stringify.d.ts +0 -89
  151. package/dist/compiled/json5/package.json +0 -1
  152. package/dist/compiled/lodash/common/array.d.ts +0 -2126
  153. package/dist/compiled/lodash/common/collection.d.ts +0 -1930
  154. package/dist/compiled/lodash/common/common.d.ts +0 -280
  155. package/dist/compiled/lodash/common/date.d.ts +0 -23
  156. package/dist/compiled/lodash/common/function.d.ts +0 -1446
  157. package/dist/compiled/lodash/common/lang.d.ts +0 -1693
  158. package/dist/compiled/lodash/common/math.d.ts +0 -405
  159. package/dist/compiled/lodash/common/number.d.ts +0 -131
  160. package/dist/compiled/lodash/common/object.d.ts +0 -2519
  161. package/dist/compiled/lodash/common/seq.d.ts +0 -210
  162. package/dist/compiled/lodash/common/string.d.ts +0 -788
  163. package/dist/compiled/lodash/common/util.d.ts +0 -1220
  164. package/dist/compiled/lodash/index.d.ts +0 -46
  165. package/dist/compiled/lodash/index.js +0 -1
  166. package/dist/compiled/lodash/index.mjs +0 -1
  167. package/dist/compiled/lodash/license +0 -47
  168. package/dist/compiled/lodash/package.json +0 -1
  169. package/dist/compiled/mime-types/index.d.ts +0 -14
  170. package/dist/compiled/mime-types/index.js +0 -116
  171. package/dist/compiled/mime-types/index.js.LICENSE.txt +0 -13
  172. package/dist/compiled/mime-types/license +0 -23
  173. package/dist/compiled/mime-types/package.json +0 -1
  174. package/dist/compiled/minimist/index.d.ts +0 -95
  175. package/dist/compiled/minimist/index.js +0 -202
  176. package/dist/compiled/minimist/license +0 -18
  177. package/dist/compiled/minimist/package.json +0 -1
  178. package/dist/compiled/nanoid/index.d.ts +0 -91
  179. package/dist/compiled/nanoid/index.js +0 -83
  180. package/dist/compiled/nanoid/index.mjs +0 -69
  181. package/dist/compiled/nanoid/license +0 -20
  182. package/dist/compiled/nanoid/package.json +0 -1
  183. package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
  184. package/dist/compiled/ora/index.d.ts +0 -277
  185. package/dist/compiled/ora/index.js +0 -3936
  186. package/dist/compiled/ora/index.js.LICENSE.txt +0 -1
  187. package/dist/compiled/ora/license +0 -9
  188. package/dist/compiled/ora/package.json +0 -1
  189. package/dist/compiled/pkg-up/index.d.ts +0 -48
  190. package/dist/compiled/pkg-up/index.js +0 -15
  191. package/dist/compiled/pkg-up/license +0 -9
  192. package/dist/compiled/pkg-up/package.json +0 -1
  193. package/dist/compiled/semver/classes/comparator.d.ts +0 -17
  194. package/dist/compiled/semver/classes/range.d.ts +0 -21
  195. package/dist/compiled/semver/classes/semver.d.ts +0 -62
  196. package/dist/compiled/semver/functions/clean.d.ts +0 -8
  197. package/dist/compiled/semver/functions/cmp.d.ts +0 -16
  198. package/dist/compiled/semver/functions/coerce.d.ts +0 -12
  199. package/dist/compiled/semver/functions/compare-build.d.ts +0 -16
  200. package/dist/compiled/semver/functions/compare-loose.d.ts +0 -5
  201. package/dist/compiled/semver/functions/compare.d.ts +0 -20
  202. package/dist/compiled/semver/functions/diff.d.ts +0 -13
  203. package/dist/compiled/semver/functions/eq.d.ts +0 -9
  204. package/dist/compiled/semver/functions/gt.d.ts +0 -9
  205. package/dist/compiled/semver/functions/gte.d.ts +0 -9
  206. package/dist/compiled/semver/functions/inc.d.ts +0 -15
  207. package/dist/compiled/semver/functions/lt.d.ts +0 -9
  208. package/dist/compiled/semver/functions/lte.d.ts +0 -8
  209. package/dist/compiled/semver/functions/major.d.ts +0 -9
  210. package/dist/compiled/semver/functions/minor.d.ts +0 -9
  211. package/dist/compiled/semver/functions/neq.d.ts +0 -9
  212. package/dist/compiled/semver/functions/parse.d.ts +0 -12
  213. package/dist/compiled/semver/functions/patch.d.ts +0 -9
  214. package/dist/compiled/semver/functions/prerelease.d.ts +0 -12
  215. package/dist/compiled/semver/functions/rcompare.d.ts +0 -15
  216. package/dist/compiled/semver/functions/rsort.d.ts +0 -9
  217. package/dist/compiled/semver/functions/satisfies.d.ts +0 -14
  218. package/dist/compiled/semver/functions/sort.d.ts +0 -9
  219. package/dist/compiled/semver/functions/valid.d.ts +0 -11
  220. package/dist/compiled/semver/index.d.ts +0 -133
  221. package/dist/compiled/semver/index.js +0 -1779
  222. package/dist/compiled/semver/internals/identifiers.d.ts +0 -13
  223. package/dist/compiled/semver/license +0 -15
  224. package/dist/compiled/semver/package.json +0 -1
  225. package/dist/compiled/semver/ranges/gtr.d.ts +0 -14
  226. package/dist/compiled/semver/ranges/intersects.d.ts +0 -13
  227. package/dist/compiled/semver/ranges/ltr.d.ts +0 -14
  228. package/dist/compiled/semver/ranges/max-satisfying.d.ts +0 -14
  229. package/dist/compiled/semver/ranges/min-satisfying.d.ts +0 -14
  230. package/dist/compiled/semver/ranges/min-version.d.ts +0 -10
  231. package/dist/compiled/semver/ranges/outside.d.ts +0 -15
  232. package/dist/compiled/semver/ranges/simplify.d.ts +0 -14
  233. package/dist/compiled/semver/ranges/subset.d.ts +0 -13
  234. package/dist/compiled/semver/ranges/to-comparators.d.ts +0 -9
  235. package/dist/compiled/semver/ranges/valid.d.ts +0 -12
  236. package/dist/compiled/signale/index.d.ts +0 -162
  237. package/dist/compiled/signale/index.js +0 -1704
  238. package/dist/compiled/signale/package.json +0 -1
  239. package/dist/compiled/slash/index.d.ts +0 -25
  240. package/dist/compiled/slash/index.js +0 -32
  241. package/dist/compiled/slash/license +0 -9
  242. package/dist/compiled/slash/package.json +0 -1
  243. package/dist/compiled/strip-ansi/index.d.ts +0 -17
  244. package/dist/compiled/strip-ansi/index.js +0 -34
  245. package/dist/compiled/strip-ansi/license +0 -9
  246. package/dist/compiled/strip-ansi/package.json +0 -1
  247. package/dist/compiled/tsconfig-paths/index.js +0 -629
  248. package/dist/compiled/tsconfig-paths/index.mjs +0 -2
  249. package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
  250. package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
  251. package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
  252. package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
  253. package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
  254. package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
  255. package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
  256. package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
  257. package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
  258. package/dist/compiled/tsconfig-paths/license +0 -21
  259. package/dist/compiled/tsconfig-paths/package.json +0 -1
  260. package/dist/compiled/upath/index.js +0 -135
  261. package/dist/compiled/upath/license +0 -22
  262. package/dist/compiled/upath/package.json +0 -1
  263. package/dist/compiled/upath/upath.d.ts +0 -241
  264. package/dist/compiled/url-join/index.d.ts +0 -17
  265. package/dist/compiled/url-join/index.js +0 -61
  266. package/dist/compiled/url-join/license +0 -21
  267. package/dist/compiled/url-join/package.json +0 -1
  268. package/dist/compiled/webpack-chain/index.js +0 -1475
  269. package/dist/compiled/webpack-chain/license +0 -373
  270. package/dist/compiled/webpack-chain/package.json +0 -1
  271. package/dist/compiled/webpack-chain/types/index.d.ts +0 -599
@@ -1,4665 +0,0 @@
1
- /*! LICENSE: index.js.LICENSE.txt */
2
- (()=>{
3
- var t = {
4
- 6491: (t, e, r)=>{
5
- "use strict";
6
- Object.defineProperty(e, "__esModule", {
7
- value: true
8
- });
9
- e.createFileSystemAdapter = e.FILE_SYSTEM_ADAPTER = void 0;
10
- const n = r(7147);
11
- e.FILE_SYSTEM_ADAPTER = {
12
- lstat: n.lstat,
13
- stat: n.stat,
14
- lstatSync: n.lstatSync,
15
- statSync: n.statSync,
16
- readdir: n.readdir,
17
- readdirSync: n.readdirSync
18
- };
19
- function createFileSystemAdapter(t) {
20
- if (void 0 === t) return e.FILE_SYSTEM_ADAPTER;
21
- return Object.assign(Object.assign({}, e.FILE_SYSTEM_ADAPTER), t);
22
- }
23
- e.createFileSystemAdapter = createFileSystemAdapter;
24
- },
25
- 6325: (t, e)=>{
26
- "use strict";
27
- Object.defineProperty(e, "__esModule", {
28
- value: true
29
- });
30
- e.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
31
- const r = process.versions.node.split(".");
32
- if (void 0 === r[0] || void 0 === r[1]) throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
33
- const n = Number.parseInt(r[0], 10);
34
- const s = Number.parseInt(r[1], 10);
35
- const i = 10;
36
- const o = 10;
37
- const a = n > i;
38
- const u = n === i && s >= o;
39
- e.IS_SUPPORT_READDIR_WITH_FILE_TYPES = a || u;
40
- },
41
- 1659: (t, e, r)=>{
42
- "use strict";
43
- Object.defineProperty(e, "__esModule", {
44
- value: true
45
- });
46
- e.Settings = e.scandirSync = e.scandir = void 0;
47
- const n = r(4715);
48
- const s = r(8907);
49
- const i = r(3486);
50
- e.Settings = i.default;
51
- function scandir(t, e, r) {
52
- if ("function" == typeof e) return void n.read(t, getSettings(), e);
53
- n.read(t, getSettings(e), r);
54
- }
55
- e.scandir = scandir;
56
- function scandirSync(t, e) {
57
- const r = getSettings(e);
58
- return s.read(t, r);
59
- }
60
- e.scandirSync = scandirSync;
61
- function getSettings(t = {}) {
62
- if (t instanceof i.default) return t;
63
- return new i.default(t);
64
- }
65
- },
66
- 4715: (t, e, r)=>{
67
- "use strict";
68
- Object.defineProperty(e, "__esModule", {
69
- value: true
70
- });
71
- e.readdir = e.readdirWithFileTypes = e.read = void 0;
72
- const n = r(3645);
73
- const s = r(5341);
74
- const i = r(6325);
75
- const o = r(946);
76
- const a = r(3253);
77
- function read(t, e, r) {
78
- if (!e.stats && i.IS_SUPPORT_READDIR_WITH_FILE_TYPES) return void readdirWithFileTypes(t, e, r);
79
- readdir(t, e, r);
80
- }
81
- e.read = read;
82
- function readdirWithFileTypes(t, e, r) {
83
- e.fs.readdir(t, {
84
- withFileTypes: true
85
- }, (n, i)=>{
86
- if (null !== n) return void callFailureCallback(r, n);
87
- const o = i.map((r)=>({
88
- dirent: r,
89
- name: r.name,
90
- path: a.joinPathSegments(t, r.name, e.pathSegmentSeparator)
91
- }));
92
- if (!e.followSymbolicLinks) return void callSuccessCallback(r, o);
93
- const u = o.map((t)=>makeRplTaskEntry(t, e));
94
- s(u, (t, e)=>{
95
- if (null !== t) return void callFailureCallback(r, t);
96
- callSuccessCallback(r, e);
97
- });
98
- });
99
- }
100
- e.readdirWithFileTypes = readdirWithFileTypes;
101
- function makeRplTaskEntry(t, e) {
102
- return (r)=>{
103
- if (!t.dirent.isSymbolicLink()) return void r(null, t);
104
- e.fs.stat(t.path, (n, s)=>{
105
- if (null !== n) {
106
- if (e.throwErrorOnBrokenSymbolicLink) return void r(n);
107
- r(null, t);
108
- return;
109
- }
110
- t.dirent = o.fs.createDirentFromStats(t.name, s);
111
- r(null, t);
112
- });
113
- };
114
- }
115
- function readdir(t, e, r) {
116
- e.fs.readdir(t, (i, u)=>{
117
- if (null !== i) return void callFailureCallback(r, i);
118
- const c = u.map((r)=>{
119
- const s = a.joinPathSegments(t, r, e.pathSegmentSeparator);
120
- return (t)=>{
121
- n.stat(s, e.fsStatSettings, (n, i)=>{
122
- if (null !== n) return void t(n);
123
- const a = {
124
- name: r,
125
- path: s,
126
- dirent: o.fs.createDirentFromStats(r, i)
127
- };
128
- if (e.stats) a.stats = i;
129
- t(null, a);
130
- });
131
- };
132
- });
133
- s(c, (t, e)=>{
134
- if (null !== t) return void callFailureCallback(r, t);
135
- callSuccessCallback(r, e);
136
- });
137
- });
138
- }
139
- e.readdir = readdir;
140
- function callFailureCallback(t, e) {
141
- t(e);
142
- }
143
- function callSuccessCallback(t, e) {
144
- t(null, e);
145
- }
146
- },
147
- 3253: (t, e)=>{
148
- "use strict";
149
- Object.defineProperty(e, "__esModule", {
150
- value: true
151
- });
152
- e.joinPathSegments = void 0;
153
- function joinPathSegments(t, e, r) {
154
- if (t.endsWith(r)) return t + e;
155
- return t + r + e;
156
- }
157
- e.joinPathSegments = joinPathSegments;
158
- },
159
- 8907: (t, e, r)=>{
160
- "use strict";
161
- Object.defineProperty(e, "__esModule", {
162
- value: true
163
- });
164
- e.readdir = e.readdirWithFileTypes = e.read = void 0;
165
- const n = r(3645);
166
- const s = r(6325);
167
- const i = r(946);
168
- const o = r(3253);
169
- function read(t, e) {
170
- if (!e.stats && s.IS_SUPPORT_READDIR_WITH_FILE_TYPES) return readdirWithFileTypes(t, e);
171
- return readdir(t, e);
172
- }
173
- e.read = read;
174
- function readdirWithFileTypes(t, e) {
175
- const r = e.fs.readdirSync(t, {
176
- withFileTypes: true
177
- });
178
- return r.map((r)=>{
179
- const n = {
180
- dirent: r,
181
- name: r.name,
182
- path: o.joinPathSegments(t, r.name, e.pathSegmentSeparator)
183
- };
184
- if (n.dirent.isSymbolicLink() && e.followSymbolicLinks) try {
185
- const t = e.fs.statSync(n.path);
186
- n.dirent = i.fs.createDirentFromStats(n.name, t);
187
- } catch (t) {
188
- if (e.throwErrorOnBrokenSymbolicLink) throw t;
189
- }
190
- return n;
191
- });
192
- }
193
- e.readdirWithFileTypes = readdirWithFileTypes;
194
- function readdir(t, e) {
195
- const r = e.fs.readdirSync(t);
196
- return r.map((r)=>{
197
- const s = o.joinPathSegments(t, r, e.pathSegmentSeparator);
198
- const a = n.statSync(s, e.fsStatSettings);
199
- const u = {
200
- name: r,
201
- path: s,
202
- dirent: i.fs.createDirentFromStats(r, a)
203
- };
204
- if (e.stats) u.stats = a;
205
- return u;
206
- });
207
- }
208
- e.readdir = readdir;
209
- },
210
- 3486: (t, e, r)=>{
211
- "use strict";
212
- Object.defineProperty(e, "__esModule", {
213
- value: true
214
- });
215
- const n = r(1017);
216
- const s = r(3645);
217
- const i = r(6491);
218
- class Settings {
219
- constructor(t = {}){
220
- this._options = t;
221
- this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
222
- this.fs = i.createFileSystemAdapter(this._options.fs);
223
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, n.sep);
224
- this.stats = this._getValue(this._options.stats, false);
225
- this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
226
- this.fsStatSettings = new s.Settings({
227
- followSymbolicLink: this.followSymbolicLinks,
228
- fs: this.fs,
229
- throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
230
- });
231
- }
232
- _getValue(t, e) {
233
- return null != t ? t : e;
234
- }
235
- }
236
- e["default"] = Settings;
237
- },
238
- 2926: (t, e)=>{
239
- "use strict";
240
- Object.defineProperty(e, "__esModule", {
241
- value: true
242
- });
243
- e.createDirentFromStats = void 0;
244
- class DirentFromStats {
245
- constructor(t, e){
246
- this.name = t;
247
- this.isBlockDevice = e.isBlockDevice.bind(e);
248
- this.isCharacterDevice = e.isCharacterDevice.bind(e);
249
- this.isDirectory = e.isDirectory.bind(e);
250
- this.isFIFO = e.isFIFO.bind(e);
251
- this.isFile = e.isFile.bind(e);
252
- this.isSocket = e.isSocket.bind(e);
253
- this.isSymbolicLink = e.isSymbolicLink.bind(e);
254
- }
255
- }
256
- function createDirentFromStats(t, e) {
257
- return new DirentFromStats(t, e);
258
- }
259
- e.createDirentFromStats = createDirentFromStats;
260
- },
261
- 946: (t, e, r)=>{
262
- "use strict";
263
- Object.defineProperty(e, "__esModule", {
264
- value: true
265
- });
266
- e.fs = void 0;
267
- const n = r(2926);
268
- e.fs = n;
269
- },
270
- 2243: (t, e, r)=>{
271
- "use strict";
272
- Object.defineProperty(e, "__esModule", {
273
- value: true
274
- });
275
- e.createFileSystemAdapter = e.FILE_SYSTEM_ADAPTER = void 0;
276
- const n = r(7147);
277
- e.FILE_SYSTEM_ADAPTER = {
278
- lstat: n.lstat,
279
- stat: n.stat,
280
- lstatSync: n.lstatSync,
281
- statSync: n.statSync
282
- };
283
- function createFileSystemAdapter(t) {
284
- if (void 0 === t) return e.FILE_SYSTEM_ADAPTER;
285
- return Object.assign(Object.assign({}, e.FILE_SYSTEM_ADAPTER), t);
286
- }
287
- e.createFileSystemAdapter = createFileSystemAdapter;
288
- },
289
- 3645: (t, e, r)=>{
290
- "use strict";
291
- Object.defineProperty(e, "__esModule", {
292
- value: true
293
- });
294
- e.statSync = e.stat = e.Settings = void 0;
295
- const n = r(6948);
296
- const s = r(6750);
297
- const i = r(1917);
298
- e.Settings = i.default;
299
- function stat(t, e, r) {
300
- if ("function" == typeof e) return void n.read(t, getSettings(), e);
301
- n.read(t, getSettings(e), r);
302
- }
303
- e.stat = stat;
304
- function statSync(t, e) {
305
- const r = getSettings(e);
306
- return s.read(t, r);
307
- }
308
- e.statSync = statSync;
309
- function getSettings(t = {}) {
310
- if (t instanceof i.default) return t;
311
- return new i.default(t);
312
- }
313
- },
314
- 6948: (t, e)=>{
315
- "use strict";
316
- Object.defineProperty(e, "__esModule", {
317
- value: true
318
- });
319
- e.read = void 0;
320
- function read(t, e, r) {
321
- e.fs.lstat(t, (n, s)=>{
322
- if (null !== n) return void callFailureCallback(r, n);
323
- if (!s.isSymbolicLink() || !e.followSymbolicLink) return void callSuccessCallback(r, s);
324
- e.fs.stat(t, (t, n)=>{
325
- if (null !== t) {
326
- if (e.throwErrorOnBrokenSymbolicLink) return void callFailureCallback(r, t);
327
- callSuccessCallback(r, s);
328
- return;
329
- }
330
- if (e.markSymbolicLink) n.isSymbolicLink = ()=>true;
331
- callSuccessCallback(r, n);
332
- });
333
- });
334
- }
335
- e.read = read;
336
- function callFailureCallback(t, e) {
337
- t(e);
338
- }
339
- function callSuccessCallback(t, e) {
340
- t(null, e);
341
- }
342
- },
343
- 6750: (t, e)=>{
344
- "use strict";
345
- Object.defineProperty(e, "__esModule", {
346
- value: true
347
- });
348
- e.read = void 0;
349
- function read(t, e) {
350
- const r = e.fs.lstatSync(t);
351
- if (!r.isSymbolicLink() || !e.followSymbolicLink) return r;
352
- try {
353
- const r = e.fs.statSync(t);
354
- if (e.markSymbolicLink) r.isSymbolicLink = ()=>true;
355
- return r;
356
- } catch (t) {
357
- if (!e.throwErrorOnBrokenSymbolicLink) return r;
358
- throw t;
359
- }
360
- }
361
- e.read = read;
362
- },
363
- 1917: (t, e, r)=>{
364
- "use strict";
365
- Object.defineProperty(e, "__esModule", {
366
- value: true
367
- });
368
- const n = r(2243);
369
- class Settings {
370
- constructor(t = {}){
371
- this._options = t;
372
- this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
373
- this.fs = n.createFileSystemAdapter(this._options.fs);
374
- this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
375
- this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
376
- }
377
- _getValue(t, e) {
378
- return null != t ? t : e;
379
- }
380
- }
381
- e["default"] = Settings;
382
- },
383
- 4328: (t, e, r)=>{
384
- "use strict";
385
- Object.defineProperty(e, "__esModule", {
386
- value: true
387
- });
388
- e.Settings = e.walkStream = e.walkSync = e.walk = void 0;
389
- const n = r(4306);
390
- const s = r(2686);
391
- const i = r(8918);
392
- const o = r(8831);
393
- e.Settings = o.default;
394
- function walk(t, e, r) {
395
- if ("function" == typeof e) return void new n.default(t, getSettings()).read(e);
396
- new n.default(t, getSettings(e)).read(r);
397
- }
398
- e.walk = walk;
399
- function walkSync(t, e) {
400
- const r = getSettings(e);
401
- const n = new i.default(t, r);
402
- return n.read();
403
- }
404
- e.walkSync = walkSync;
405
- function walkStream(t, e) {
406
- const r = getSettings(e);
407
- const n = new s.default(t, r);
408
- return n.read();
409
- }
410
- e.walkStream = walkStream;
411
- function getSettings(t = {}) {
412
- if (t instanceof o.default) return t;
413
- return new o.default(t);
414
- }
415
- },
416
- 4306: (t, e, r)=>{
417
- "use strict";
418
- Object.defineProperty(e, "__esModule", {
419
- value: true
420
- });
421
- const n = r(1293);
422
- class AsyncProvider {
423
- constructor(t, e){
424
- this._root = t;
425
- this._settings = e;
426
- this._reader = new n.default(this._root, this._settings);
427
- this._storage = [];
428
- }
429
- read(t) {
430
- this._reader.onError((e)=>{
431
- callFailureCallback(t, e);
432
- });
433
- this._reader.onEntry((t)=>{
434
- this._storage.push(t);
435
- });
436
- this._reader.onEnd(()=>{
437
- callSuccessCallback(t, this._storage);
438
- });
439
- this._reader.read();
440
- }
441
- }
442
- e["default"] = AsyncProvider;
443
- function callFailureCallback(t, e) {
444
- t(e);
445
- }
446
- function callSuccessCallback(t, e) {
447
- t(null, e);
448
- }
449
- },
450
- 2686: (t, e, r)=>{
451
- "use strict";
452
- Object.defineProperty(e, "__esModule", {
453
- value: true
454
- });
455
- const n = r(2781);
456
- const s = r(1293);
457
- class StreamProvider {
458
- constructor(t, e){
459
- this._root = t;
460
- this._settings = e;
461
- this._reader = new s.default(this._root, this._settings);
462
- this._stream = new n.Readable({
463
- objectMode: true,
464
- read: ()=>{},
465
- destroy: ()=>{
466
- if (!this._reader.isDestroyed) this._reader.destroy();
467
- }
468
- });
469
- }
470
- read() {
471
- this._reader.onError((t)=>{
472
- this._stream.emit("error", t);
473
- });
474
- this._reader.onEntry((t)=>{
475
- this._stream.push(t);
476
- });
477
- this._reader.onEnd(()=>{
478
- this._stream.push(null);
479
- });
480
- this._reader.read();
481
- return this._stream;
482
- }
483
- }
484
- e["default"] = StreamProvider;
485
- },
486
- 8918: (t, e, r)=>{
487
- "use strict";
488
- Object.defineProperty(e, "__esModule", {
489
- value: true
490
- });
491
- const n = r(9476);
492
- class SyncProvider {
493
- constructor(t, e){
494
- this._root = t;
495
- this._settings = e;
496
- this._reader = new n.default(this._root, this._settings);
497
- }
498
- read() {
499
- return this._reader.read();
500
- }
501
- }
502
- e["default"] = SyncProvider;
503
- },
504
- 1293: (t, e, r)=>{
505
- "use strict";
506
- Object.defineProperty(e, "__esModule", {
507
- value: true
508
- });
509
- const n = r(2361);
510
- const s = r(1659);
511
- const i = r(4241);
512
- const o = r(1652);
513
- const a = r(8376);
514
- class AsyncReader extends a.default {
515
- constructor(t, e){
516
- super(t, e);
517
- this._settings = e;
518
- this._scandir = s.scandir;
519
- this._emitter = new n.EventEmitter;
520
- this._queue = i(this._worker.bind(this), this._settings.concurrency);
521
- this._isFatalError = false;
522
- this._isDestroyed = false;
523
- this._queue.drain = ()=>{
524
- if (!this._isFatalError) this._emitter.emit("end");
525
- };
526
- }
527
- read() {
528
- this._isFatalError = false;
529
- this._isDestroyed = false;
530
- setImmediate(()=>{
531
- this._pushToQueue(this._root, this._settings.basePath);
532
- });
533
- return this._emitter;
534
- }
535
- get isDestroyed() {
536
- return this._isDestroyed;
537
- }
538
- destroy() {
539
- if (this._isDestroyed) throw new Error("The reader is already destroyed");
540
- this._isDestroyed = true;
541
- this._queue.killAndDrain();
542
- }
543
- onEntry(t) {
544
- this._emitter.on("entry", t);
545
- }
546
- onError(t) {
547
- this._emitter.once("error", t);
548
- }
549
- onEnd(t) {
550
- this._emitter.once("end", t);
551
- }
552
- _pushToQueue(t, e) {
553
- const r = {
554
- directory: t,
555
- base: e
556
- };
557
- this._queue.push(r, (t)=>{
558
- if (null !== t) this._handleError(t);
559
- });
560
- }
561
- _worker(t, e) {
562
- this._scandir(t.directory, this._settings.fsScandirSettings, (r, n)=>{
563
- if (null !== r) return void e(r, void 0);
564
- for (const e of n)this._handleEntry(e, t.base);
565
- e(null, void 0);
566
- });
567
- }
568
- _handleError(t) {
569
- if (this._isDestroyed || !o.isFatalError(this._settings, t)) return;
570
- this._isFatalError = true;
571
- this._isDestroyed = true;
572
- this._emitter.emit("error", t);
573
- }
574
- _handleEntry(t, e) {
575
- if (this._isDestroyed || this._isFatalError) return;
576
- const r = t.path;
577
- if (void 0 !== e) t.path = o.joinPathSegments(e, t.name, this._settings.pathSegmentSeparator);
578
- if (o.isAppliedFilter(this._settings.entryFilter, t)) this._emitEntry(t);
579
- if (t.dirent.isDirectory() && o.isAppliedFilter(this._settings.deepFilter, t)) this._pushToQueue(r, void 0 === e ? void 0 : t.path);
580
- }
581
- _emitEntry(t) {
582
- this._emitter.emit("entry", t);
583
- }
584
- }
585
- e["default"] = AsyncReader;
586
- },
587
- 1652: (t, e)=>{
588
- "use strict";
589
- Object.defineProperty(e, "__esModule", {
590
- value: true
591
- });
592
- e.joinPathSegments = e.replacePathSegmentSeparator = e.isAppliedFilter = e.isFatalError = void 0;
593
- function isFatalError(t, e) {
594
- if (null === t.errorFilter) return true;
595
- return !t.errorFilter(e);
596
- }
597
- e.isFatalError = isFatalError;
598
- function isAppliedFilter(t, e) {
599
- return null === t || t(e);
600
- }
601
- e.isAppliedFilter = isAppliedFilter;
602
- function replacePathSegmentSeparator(t, e) {
603
- return t.split(/[/\\]/).join(e);
604
- }
605
- e.replacePathSegmentSeparator = replacePathSegmentSeparator;
606
- function joinPathSegments(t, e, r) {
607
- if ("" === t) return e;
608
- if (t.endsWith(r)) return t + e;
609
- return t + r + e;
610
- }
611
- e.joinPathSegments = joinPathSegments;
612
- },
613
- 8376: (t, e, r)=>{
614
- "use strict";
615
- Object.defineProperty(e, "__esModule", {
616
- value: true
617
- });
618
- const n = r(1652);
619
- class Reader {
620
- constructor(t, e){
621
- this._root = t;
622
- this._settings = e;
623
- this._root = n.replacePathSegmentSeparator(t, e.pathSegmentSeparator);
624
- }
625
- }
626
- e["default"] = Reader;
627
- },
628
- 9476: (t, e, r)=>{
629
- "use strict";
630
- Object.defineProperty(e, "__esModule", {
631
- value: true
632
- });
633
- const n = r(1659);
634
- const s = r(1652);
635
- const i = r(8376);
636
- class SyncReader extends i.default {
637
- constructor(){
638
- super(...arguments);
639
- this._scandir = n.scandirSync;
640
- this._storage = [];
641
- this._queue = new Set;
642
- }
643
- read() {
644
- this._pushToQueue(this._root, this._settings.basePath);
645
- this._handleQueue();
646
- return this._storage;
647
- }
648
- _pushToQueue(t, e) {
649
- this._queue.add({
650
- directory: t,
651
- base: e
652
- });
653
- }
654
- _handleQueue() {
655
- for (const t of this._queue.values())this._handleDirectory(t.directory, t.base);
656
- }
657
- _handleDirectory(t, e) {
658
- try {
659
- const r = this._scandir(t, this._settings.fsScandirSettings);
660
- for (const t of r)this._handleEntry(t, e);
661
- } catch (t) {
662
- this._handleError(t);
663
- }
664
- }
665
- _handleError(t) {
666
- if (!s.isFatalError(this._settings, t)) return;
667
- throw t;
668
- }
669
- _handleEntry(t, e) {
670
- const r = t.path;
671
- if (void 0 !== e) t.path = s.joinPathSegments(e, t.name, this._settings.pathSegmentSeparator);
672
- if (s.isAppliedFilter(this._settings.entryFilter, t)) this._pushToStorage(t);
673
- if (t.dirent.isDirectory() && s.isAppliedFilter(this._settings.deepFilter, t)) this._pushToQueue(r, void 0 === e ? void 0 : t.path);
674
- }
675
- _pushToStorage(t) {
676
- this._storage.push(t);
677
- }
678
- }
679
- e["default"] = SyncReader;
680
- },
681
- 8831: (t, e, r)=>{
682
- "use strict";
683
- Object.defineProperty(e, "__esModule", {
684
- value: true
685
- });
686
- const n = r(1017);
687
- const s = r(1659);
688
- class Settings {
689
- constructor(t = {}){
690
- this._options = t;
691
- this.basePath = this._getValue(this._options.basePath, void 0);
692
- this.concurrency = this._getValue(this._options.concurrency, 1 / 0);
693
- this.deepFilter = this._getValue(this._options.deepFilter, null);
694
- this.entryFilter = this._getValue(this._options.entryFilter, null);
695
- this.errorFilter = this._getValue(this._options.errorFilter, null);
696
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, n.sep);
697
- this.fsScandirSettings = new s.Settings({
698
- followSymbolicLinks: this._options.followSymbolicLinks,
699
- fs: this._options.fs,
700
- pathSegmentSeparator: this._options.pathSegmentSeparator,
701
- stats: this._options.stats,
702
- throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink
703
- });
704
- }
705
- _getValue(t, e) {
706
- return null != t ? t : e;
707
- }
708
- }
709
- e["default"] = Settings;
710
- },
711
- 1570: (t, e, r)=>{
712
- "use strict";
713
- const n = r(3625);
714
- const s = r(4666);
715
- const i = r(6183);
716
- const o = r(2467);
717
- const braces = (t, e = {})=>{
718
- let r = [];
719
- if (Array.isArray(t)) for (let n of t){
720
- let t = braces.create(n, e);
721
- if (Array.isArray(t)) r.push(...t);
722
- else r.push(t);
723
- }
724
- else r = [].concat(braces.create(t, e));
725
- if (e && true === e.expand && true === e.nodupes) r = [
726
- ...new Set(r)
727
- ];
728
- return r;
729
- };
730
- braces.parse = (t, e = {})=>o(t, e);
731
- braces.stringify = (t, e = {})=>{
732
- if ("string" == typeof t) return n(braces.parse(t, e), e);
733
- return n(t, e);
734
- };
735
- braces.compile = (t, e = {})=>{
736
- if ("string" == typeof t) t = braces.parse(t, e);
737
- return s(t, e);
738
- };
739
- braces.expand = (t, e = {})=>{
740
- if ("string" == typeof t) t = braces.parse(t, e);
741
- let r = i(t, e);
742
- if (true === e.noempty) r = r.filter(Boolean);
743
- if (true === e.nodupes) r = [
744
- ...new Set(r)
745
- ];
746
- return r;
747
- };
748
- braces.create = (t, e = {})=>{
749
- if ("" === t || t.length < 3) return [
750
- t
751
- ];
752
- return true !== e.expand ? braces.compile(t, e) : braces.expand(t, e);
753
- };
754
- t.exports = braces;
755
- },
756
- 4666: (t, e, r)=>{
757
- "use strict";
758
- const n = r(442);
759
- const s = r(2456);
760
- const compile = (t, e = {})=>{
761
- let walk = (t, r = {})=>{
762
- let i = s.isInvalidBrace(r);
763
- let o = true === t.invalid && true === e.escapeInvalid;
764
- let a = true === i || true === o;
765
- let u = true === e.escapeInvalid ? "\\" : "";
766
- let c = "";
767
- if (true === t.isOpen) return u + t.value;
768
- if (true === t.isClose) return u + t.value;
769
- if ("open" === t.type) return a ? u + t.value : "(";
770
- if ("close" === t.type) return a ? u + t.value : ")";
771
- if ("comma" === t.type) return "comma" === t.prev.type ? "" : a ? t.value : "|";
772
- if (t.value) return t.value;
773
- if (t.nodes && t.ranges > 0) {
774
- let r = s.reduce(t.nodes);
775
- let i = n(...r, {
776
- ...e,
777
- wrap: false,
778
- toRegex: true
779
- });
780
- if (0 !== i.length) return r.length > 1 && i.length > 1 ? `(${i})` : i;
781
- }
782
- if (t.nodes) for (let e of t.nodes)c += walk(e, t);
783
- return c;
784
- };
785
- return walk(t);
786
- };
787
- t.exports = compile;
788
- },
789
- 487: (t)=>{
790
- "use strict";
791
- t.exports = {
792
- MAX_LENGTH: 65536,
793
- CHAR_0: "0",
794
- CHAR_9: "9",
795
- CHAR_UPPERCASE_A: "A",
796
- CHAR_LOWERCASE_A: "a",
797
- CHAR_UPPERCASE_Z: "Z",
798
- CHAR_LOWERCASE_Z: "z",
799
- CHAR_LEFT_PARENTHESES: "(",
800
- CHAR_RIGHT_PARENTHESES: ")",
801
- CHAR_ASTERISK: "*",
802
- CHAR_AMPERSAND: "&",
803
- CHAR_AT: "@",
804
- CHAR_BACKSLASH: "\\",
805
- CHAR_BACKTICK: "`",
806
- CHAR_CARRIAGE_RETURN: "\r",
807
- CHAR_CIRCUMFLEX_ACCENT: "^",
808
- CHAR_COLON: ":",
809
- CHAR_COMMA: ",",
810
- CHAR_DOLLAR: "$",
811
- CHAR_DOT: ".",
812
- CHAR_DOUBLE_QUOTE: '"',
813
- CHAR_EQUAL: "=",
814
- CHAR_EXCLAMATION_MARK: "!",
815
- CHAR_FORM_FEED: "\f",
816
- CHAR_FORWARD_SLASH: "/",
817
- CHAR_HASH: "#",
818
- CHAR_HYPHEN_MINUS: "-",
819
- CHAR_LEFT_ANGLE_BRACKET: "<",
820
- CHAR_LEFT_CURLY_BRACE: "{",
821
- CHAR_LEFT_SQUARE_BRACKET: "[",
822
- CHAR_LINE_FEED: "\n",
823
- CHAR_NO_BREAK_SPACE: " ",
824
- CHAR_PERCENT: "%",
825
- CHAR_PLUS: "+",
826
- CHAR_QUESTION_MARK: "?",
827
- CHAR_RIGHT_ANGLE_BRACKET: ">",
828
- CHAR_RIGHT_CURLY_BRACE: "}",
829
- CHAR_RIGHT_SQUARE_BRACKET: "]",
830
- CHAR_SEMICOLON: ";",
831
- CHAR_SINGLE_QUOTE: "'",
832
- CHAR_SPACE: " ",
833
- CHAR_TAB: "\t",
834
- CHAR_UNDERSCORE: "_",
835
- CHAR_VERTICAL_LINE: "|",
836
- CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\ufeff"
837
- };
838
- },
839
- 6183: (t, e, r)=>{
840
- "use strict";
841
- const n = r(442);
842
- const s = r(3625);
843
- const i = r(2456);
844
- const append = (t = "", e = "", r = false)=>{
845
- let n = [];
846
- t = [].concat(t);
847
- e = [].concat(e);
848
- if (!e.length) return t;
849
- if (!t.length) return r ? i.flatten(e).map((t)=>`{${t}}`) : e;
850
- for (let s of t)if (Array.isArray(s)) for (let t of s)n.push(append(t, e, r));
851
- else for (let t of e){
852
- if (true === r && "string" == typeof t) t = `{${t}}`;
853
- n.push(Array.isArray(t) ? append(s, t, r) : s + t);
854
- }
855
- return i.flatten(n);
856
- };
857
- const expand = (t, e = {})=>{
858
- let r = void 0 === e.rangeLimit ? 1e3 : e.rangeLimit;
859
- let walk = (t, o = {})=>{
860
- t.queue = [];
861
- let a = o;
862
- let u = o.queue;
863
- while("brace" !== a.type && "root" !== a.type && a.parent){
864
- a = a.parent;
865
- u = a.queue;
866
- }
867
- if (t.invalid || t.dollar) return void u.push(append(u.pop(), s(t, e)));
868
- if ("brace" === t.type && true !== t.invalid && 2 === t.nodes.length) return void u.push(append(u.pop(), [
869
- "{}"
870
- ]));
871
- if (t.nodes && t.ranges > 0) {
872
- let o = i.reduce(t.nodes);
873
- if (i.exceedsLimit(...o, e.step, r)) throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
874
- let a = n(...o, e);
875
- if (0 === a.length) a = s(t, e);
876
- u.push(append(u.pop(), a));
877
- t.nodes = [];
878
- return;
879
- }
880
- let c = i.encloseBrace(t);
881
- let l = t.queue;
882
- let f = t;
883
- while("brace" !== f.type && "root" !== f.type && f.parent){
884
- f = f.parent;
885
- l = f.queue;
886
- }
887
- for(let e = 0; e < t.nodes.length; e++){
888
- let r = t.nodes[e];
889
- if ("comma" === r.type && "brace" === t.type) {
890
- if (1 === e) l.push("");
891
- l.push("");
892
- continue;
893
- }
894
- if ("close" === r.type) {
895
- u.push(append(u.pop(), l, c));
896
- continue;
897
- }
898
- if (r.value && "open" !== r.type) {
899
- l.push(append(l.pop(), r.value));
900
- continue;
901
- }
902
- if (r.nodes) walk(r, t);
903
- }
904
- return l;
905
- };
906
- return i.flatten(walk(t));
907
- };
908
- t.exports = expand;
909
- },
910
- 2467: (t, e, r)=>{
911
- "use strict";
912
- const n = r(3625);
913
- const { MAX_LENGTH: s, CHAR_BACKSLASH: i, CHAR_BACKTICK: o, CHAR_COMMA: a, CHAR_DOT: u, CHAR_LEFT_PARENTHESES: c, CHAR_RIGHT_PARENTHESES: l, CHAR_LEFT_CURLY_BRACE: f, CHAR_RIGHT_CURLY_BRACE: p, CHAR_LEFT_SQUARE_BRACKET: h, CHAR_RIGHT_SQUARE_BRACKET: d, CHAR_DOUBLE_QUOTE: _, CHAR_SINGLE_QUOTE: g, CHAR_NO_BREAK_SPACE: y, CHAR_ZERO_WIDTH_NOBREAK_SPACE: S } = r(487);
914
- const parse = (t, e = {})=>{
915
- if ("string" != typeof t) throw new TypeError("Expected a string");
916
- let r = e || {};
917
- let m = "number" == typeof r.maxLength ? Math.min(s, r.maxLength) : s;
918
- if (t.length > m) throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${m})`);
919
- let v = {
920
- type: "root",
921
- input: t,
922
- nodes: []
923
- };
924
- let E = [
925
- v
926
- ];
927
- let A = v;
928
- let b = v;
929
- let R = 0;
930
- let P = t.length;
931
- let x = 0;
932
- let k = 0;
933
- let T;
934
- const advance = ()=>t[x++];
935
- const push = (t)=>{
936
- if ("text" === t.type && "dot" === b.type) b.type = "text";
937
- if (b && "text" === b.type && "text" === t.type) {
938
- b.value += t.value;
939
- return;
940
- }
941
- A.nodes.push(t);
942
- t.parent = A;
943
- t.prev = b;
944
- b = t;
945
- return t;
946
- };
947
- push({
948
- type: "bos"
949
- });
950
- while(x < P){
951
- A = E[E.length - 1];
952
- T = advance();
953
- if (T === S || T === y) continue;
954
- if (T === i) {
955
- push({
956
- type: "text",
957
- value: (e.keepEscaping ? T : "") + advance()
958
- });
959
- continue;
960
- }
961
- if (T === d) {
962
- push({
963
- type: "text",
964
- value: "\\" + T
965
- });
966
- continue;
967
- }
968
- if (T === h) {
969
- R++;
970
- let e;
971
- while(x < P && (e = advance())){
972
- T += e;
973
- if (e === h) {
974
- R++;
975
- continue;
976
- }
977
- if (e === i) {
978
- T += advance();
979
- continue;
980
- }
981
- if (e === d) {
982
- R--;
983
- if (0 === R) break;
984
- }
985
- }
986
- push({
987
- type: "text",
988
- value: T
989
- });
990
- continue;
991
- }
992
- if (T === c) {
993
- A = push({
994
- type: "paren",
995
- nodes: []
996
- });
997
- E.push(A);
998
- push({
999
- type: "text",
1000
- value: T
1001
- });
1002
- continue;
1003
- }
1004
- if (T === l) {
1005
- if ("paren" !== A.type) {
1006
- push({
1007
- type: "text",
1008
- value: T
1009
- });
1010
- continue;
1011
- }
1012
- A = E.pop();
1013
- push({
1014
- type: "text",
1015
- value: T
1016
- });
1017
- A = E[E.length - 1];
1018
- continue;
1019
- }
1020
- if (T === _ || T === g || T === o) {
1021
- let t = T;
1022
- let r;
1023
- if (true !== e.keepQuotes) T = "";
1024
- while(x < P && (r = advance())){
1025
- if (r === i) {
1026
- T += r + advance();
1027
- continue;
1028
- }
1029
- if (r === t) {
1030
- if (true === e.keepQuotes) T += r;
1031
- break;
1032
- }
1033
- T += r;
1034
- }
1035
- push({
1036
- type: "text",
1037
- value: T
1038
- });
1039
- continue;
1040
- }
1041
- if (T === f) {
1042
- k++;
1043
- let t = b.value && "$" === b.value.slice(-1) || true === A.dollar;
1044
- let e = {
1045
- type: "brace",
1046
- open: true,
1047
- close: false,
1048
- dollar: t,
1049
- depth: k,
1050
- commas: 0,
1051
- ranges: 0,
1052
- nodes: []
1053
- };
1054
- A = push(e);
1055
- E.push(A);
1056
- push({
1057
- type: "open",
1058
- value: T
1059
- });
1060
- continue;
1061
- }
1062
- if (T === p) {
1063
- if ("brace" !== A.type) {
1064
- push({
1065
- type: "text",
1066
- value: T
1067
- });
1068
- continue;
1069
- }
1070
- let t = "close";
1071
- A = E.pop();
1072
- A.close = true;
1073
- push({
1074
- type: t,
1075
- value: T
1076
- });
1077
- k--;
1078
- A = E[E.length - 1];
1079
- continue;
1080
- }
1081
- if (T === a && k > 0) {
1082
- if (A.ranges > 0) {
1083
- A.ranges = 0;
1084
- let t = A.nodes.shift();
1085
- A.nodes = [
1086
- t,
1087
- {
1088
- type: "text",
1089
- value: n(A)
1090
- }
1091
- ];
1092
- }
1093
- push({
1094
- type: "comma",
1095
- value: T
1096
- });
1097
- A.commas++;
1098
- continue;
1099
- }
1100
- if (T === u && k > 0 && 0 === A.commas) {
1101
- let t = A.nodes;
1102
- if (0 === k || 0 === t.length) {
1103
- push({
1104
- type: "text",
1105
- value: T
1106
- });
1107
- continue;
1108
- }
1109
- if ("dot" === b.type) {
1110
- A.range = [];
1111
- b.value += T;
1112
- b.type = "range";
1113
- if (3 !== A.nodes.length && 5 !== A.nodes.length) {
1114
- A.invalid = true;
1115
- A.ranges = 0;
1116
- b.type = "text";
1117
- continue;
1118
- }
1119
- A.ranges++;
1120
- A.args = [];
1121
- continue;
1122
- }
1123
- if ("range" === b.type) {
1124
- t.pop();
1125
- let e = t[t.length - 1];
1126
- e.value += b.value + T;
1127
- b = e;
1128
- A.ranges--;
1129
- continue;
1130
- }
1131
- push({
1132
- type: "dot",
1133
- value: T
1134
- });
1135
- continue;
1136
- }
1137
- push({
1138
- type: "text",
1139
- value: T
1140
- });
1141
- }
1142
- do {
1143
- A = E.pop();
1144
- if ("root" !== A.type) {
1145
- A.nodes.forEach((t)=>{
1146
- if (!t.nodes) {
1147
- if ("open" === t.type) t.isOpen = true;
1148
- if ("close" === t.type) t.isClose = true;
1149
- if (!t.nodes) t.type = "text";
1150
- t.invalid = true;
1151
- }
1152
- });
1153
- let t = E[E.length - 1];
1154
- let e = t.nodes.indexOf(A);
1155
- t.nodes.splice(e, 1, ...A.nodes);
1156
- }
1157
- }while (E.length > 0);
1158
- push({
1159
- type: "eos"
1160
- });
1161
- return v;
1162
- };
1163
- t.exports = parse;
1164
- },
1165
- 3625: (t, e, r)=>{
1166
- "use strict";
1167
- const n = r(2456);
1168
- t.exports = (t, e = {})=>{
1169
- let stringify = (t, r = {})=>{
1170
- let s = e.escapeInvalid && n.isInvalidBrace(r);
1171
- let i = true === t.invalid && true === e.escapeInvalid;
1172
- let o = "";
1173
- if (t.value) {
1174
- if ((s || i) && n.isOpenOrClose(t)) return "\\" + t.value;
1175
- return t.value;
1176
- }
1177
- if (t.value) return t.value;
1178
- if (t.nodes) for (let e of t.nodes)o += stringify(e);
1179
- return o;
1180
- };
1181
- return stringify(t);
1182
- };
1183
- },
1184
- 2456: (t, e)=>{
1185
- "use strict";
1186
- e.isInteger = (t)=>{
1187
- if ("number" == typeof t) return Number.isInteger(t);
1188
- if ("string" == typeof t && "" !== t.trim()) return Number.isInteger(Number(t));
1189
- return false;
1190
- };
1191
- e.find = (t, e)=>t.nodes.find((t)=>t.type === e);
1192
- e.exceedsLimit = (t, r, n = 1, s)=>{
1193
- if (false === s) return false;
1194
- if (!e.isInteger(t) || !e.isInteger(r)) return false;
1195
- return (Number(r) - Number(t)) / Number(n) >= s;
1196
- };
1197
- e.escapeNode = (t, e = 0, r)=>{
1198
- let n = t.nodes[e];
1199
- if (!n) return;
1200
- if (r && n.type === r || "open" === n.type || "close" === n.type) {
1201
- if (true !== n.escaped) {
1202
- n.value = "\\" + n.value;
1203
- n.escaped = true;
1204
- }
1205
- }
1206
- };
1207
- e.encloseBrace = (t)=>{
1208
- if ("brace" !== t.type) return false;
1209
- if (t.commas >> 0 + t.ranges === 0) {
1210
- t.invalid = true;
1211
- return true;
1212
- }
1213
- return false;
1214
- };
1215
- e.isInvalidBrace = (t)=>{
1216
- if ("brace" !== t.type) return false;
1217
- if (true === t.invalid || t.dollar) return true;
1218
- if (t.commas >> 0 + t.ranges === 0) {
1219
- t.invalid = true;
1220
- return true;
1221
- }
1222
- if (true !== t.open || true !== t.close) {
1223
- t.invalid = true;
1224
- return true;
1225
- }
1226
- return false;
1227
- };
1228
- e.isOpenOrClose = (t)=>{
1229
- if ("open" === t.type || "close" === t.type) return true;
1230
- return true === t.open || true === t.close;
1231
- };
1232
- e.reduce = (t)=>t.reduce((t, e)=>{
1233
- if ("text" === e.type) t.push(e.value);
1234
- if ("range" === e.type) e.type = "text";
1235
- return t;
1236
- }, []);
1237
- e.flatten = (...t)=>{
1238
- const e = [];
1239
- const flat = (t)=>{
1240
- for(let r = 0; r < t.length; r++){
1241
- let n = t[r];
1242
- Array.isArray(n) ? flat(n) : void 0 !== n && e.push(n);
1243
- }
1244
- return e;
1245
- };
1246
- flat(t);
1247
- return e;
1248
- };
1249
- },
1250
- 3924: (t, e, r)=>{
1251
- "use strict";
1252
- const n = r(2291);
1253
- const s = r(8620);
1254
- const i = r(7900);
1255
- const o = r(5407);
1256
- const a = r(1066);
1257
- const u = r(7190);
1258
- const c = r(3828);
1259
- async function FastGlob(t, e) {
1260
- assertPatternsInput(t);
1261
- const r = getWorks(t, i.default, e);
1262
- const n = await Promise.all(r);
1263
- return c.array.flatten(n);
1264
- }
1265
- (function(t) {
1266
- function sync(t, e) {
1267
- assertPatternsInput(t);
1268
- const r = getWorks(t, a.default, e);
1269
- return c.array.flatten(r);
1270
- }
1271
- t.sync = sync;
1272
- function stream(t, e) {
1273
- assertPatternsInput(t);
1274
- const r = getWorks(t, o.default, e);
1275
- return c.stream.merge(r);
1276
- }
1277
- t.stream = stream;
1278
- function generateTasks(t, e) {
1279
- assertPatternsInput(t);
1280
- const r = s.transform([].concat(t));
1281
- const i = new u.default(e);
1282
- return n.generate(r, i);
1283
- }
1284
- t.generateTasks = generateTasks;
1285
- function isDynamicPattern(t, e) {
1286
- assertPatternsInput(t);
1287
- const r = new u.default(e);
1288
- return c.pattern.isDynamicPattern(t, r);
1289
- }
1290
- t.isDynamicPattern = isDynamicPattern;
1291
- function escapePath(t) {
1292
- assertPatternsInput(t);
1293
- return c.path.escape(t);
1294
- }
1295
- t.escapePath = escapePath;
1296
- })(FastGlob || (FastGlob = {}));
1297
- function getWorks(t, e, r) {
1298
- const i = s.transform([].concat(t));
1299
- const o = new u.default(r);
1300
- const a = n.generate(i, o);
1301
- const c = new e(o);
1302
- return a.map(c.read, c);
1303
- }
1304
- function assertPatternsInput(t) {
1305
- const e = [].concat(t);
1306
- const r = e.every((t)=>c.string.isString(t) && !c.string.isEmpty(t));
1307
- if (!r) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
1308
- }
1309
- t.exports = FastGlob;
1310
- },
1311
- 8620: (t, e)=>{
1312
- "use strict";
1313
- Object.defineProperty(e, "__esModule", {
1314
- value: true
1315
- });
1316
- e.removeDuplicateSlashes = e.transform = void 0;
1317
- const r = /(?!^)\/{2,}/g;
1318
- function transform(t) {
1319
- return t.map((t)=>removeDuplicateSlashes(t));
1320
- }
1321
- e.transform = transform;
1322
- function removeDuplicateSlashes(t) {
1323
- return t.replace(r, "/");
1324
- }
1325
- e.removeDuplicateSlashes = removeDuplicateSlashes;
1326
- },
1327
- 2291: (t, e, r)=>{
1328
- "use strict";
1329
- Object.defineProperty(e, "__esModule", {
1330
- value: true
1331
- });
1332
- e.convertPatternGroupToTask = e.convertPatternGroupsToTasks = e.groupPatternsByBaseDirectory = e.getNegativePatternsAsPositive = e.getPositivePatterns = e.convertPatternsToTasks = e.generate = void 0;
1333
- const n = r(3828);
1334
- function generate(t, e) {
1335
- const r = getPositivePatterns(t);
1336
- const s = getNegativePatternsAsPositive(t, e.ignore);
1337
- const i = r.filter((t)=>n.pattern.isStaticPattern(t, e));
1338
- const o = r.filter((t)=>n.pattern.isDynamicPattern(t, e));
1339
- const a = convertPatternsToTasks(i, s, false);
1340
- const u = convertPatternsToTasks(o, s, true);
1341
- return a.concat(u);
1342
- }
1343
- e.generate = generate;
1344
- function convertPatternsToTasks(t, e, r) {
1345
- const s = [];
1346
- const i = n.pattern.getPatternsOutsideCurrentDirectory(t);
1347
- const o = n.pattern.getPatternsInsideCurrentDirectory(t);
1348
- const a = groupPatternsByBaseDirectory(i);
1349
- const u = groupPatternsByBaseDirectory(o);
1350
- s.push(...convertPatternGroupsToTasks(a, e, r));
1351
- if ("." in u) s.push(convertPatternGroupToTask(".", o, e, r));
1352
- else s.push(...convertPatternGroupsToTasks(u, e, r));
1353
- return s;
1354
- }
1355
- e.convertPatternsToTasks = convertPatternsToTasks;
1356
- function getPositivePatterns(t) {
1357
- return n.pattern.getPositivePatterns(t);
1358
- }
1359
- e.getPositivePatterns = getPositivePatterns;
1360
- function getNegativePatternsAsPositive(t, e) {
1361
- const r = n.pattern.getNegativePatterns(t).concat(e);
1362
- const s = r.map(n.pattern.convertToPositivePattern);
1363
- return s;
1364
- }
1365
- e.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
1366
- function groupPatternsByBaseDirectory(t) {
1367
- const e = {};
1368
- return t.reduce((t, e)=>{
1369
- const r = n.pattern.getBaseDirectory(e);
1370
- if (r in t) t[r].push(e);
1371
- else t[r] = [
1372
- e
1373
- ];
1374
- return t;
1375
- }, e);
1376
- }
1377
- e.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
1378
- function convertPatternGroupsToTasks(t, e, r) {
1379
- return Object.keys(t).map((n)=>convertPatternGroupToTask(n, t[n], e, r));
1380
- }
1381
- e.convertPatternGroupsToTasks = convertPatternGroupsToTasks;
1382
- function convertPatternGroupToTask(t, e, r, s) {
1383
- return {
1384
- dynamic: s,
1385
- positive: e,
1386
- negative: r,
1387
- base: t,
1388
- patterns: [].concat(e, r.map(n.pattern.convertToNegativePattern))
1389
- };
1390
- }
1391
- e.convertPatternGroupToTask = convertPatternGroupToTask;
1392
- },
1393
- 7900: (t, e, r)=>{
1394
- "use strict";
1395
- Object.defineProperty(e, "__esModule", {
1396
- value: true
1397
- });
1398
- const n = r(8075);
1399
- const s = r(8845);
1400
- class ProviderAsync extends s.default {
1401
- constructor(){
1402
- super(...arguments);
1403
- this._reader = new n.default(this._settings);
1404
- }
1405
- read(t) {
1406
- const e = this._getRootDirectory(t);
1407
- const r = this._getReaderOptions(t);
1408
- const n = [];
1409
- return new Promise((s, i)=>{
1410
- const o = this.api(e, t, r);
1411
- o.once("error", i);
1412
- o.on("data", (t)=>n.push(r.transform(t)));
1413
- o.once("end", ()=>s(n));
1414
- });
1415
- }
1416
- api(t, e, r) {
1417
- if (e.dynamic) return this._reader.dynamic(t, r);
1418
- return this._reader.static(e.patterns, r);
1419
- }
1420
- }
1421
- e["default"] = ProviderAsync;
1422
- },
1423
- 4292: (t, e, r)=>{
1424
- "use strict";
1425
- Object.defineProperty(e, "__esModule", {
1426
- value: true
1427
- });
1428
- const n = r(3828);
1429
- const s = r(5995);
1430
- class DeepFilter {
1431
- constructor(t, e){
1432
- this._settings = t;
1433
- this._micromatchOptions = e;
1434
- }
1435
- getFilter(t, e, r) {
1436
- const n = this._getMatcher(e);
1437
- const s = this._getNegativePatternsRe(r);
1438
- return (e)=>this._filter(t, e, n, s);
1439
- }
1440
- _getMatcher(t) {
1441
- return new s.default(t, this._settings, this._micromatchOptions);
1442
- }
1443
- _getNegativePatternsRe(t) {
1444
- const e = t.filter(n.pattern.isAffectDepthOfReadingPattern);
1445
- return n.pattern.convertPatternsToRe(e, this._micromatchOptions);
1446
- }
1447
- _filter(t, e, r, s) {
1448
- if (this._isSkippedByDeep(t, e.path)) return false;
1449
- if (this._isSkippedSymbolicLink(e)) return false;
1450
- const i = n.path.removeLeadingDotSegment(e.path);
1451
- if (this._isSkippedByPositivePatterns(i, r)) return false;
1452
- return this._isSkippedByNegativePatterns(i, s);
1453
- }
1454
- _isSkippedByDeep(t, e) {
1455
- if (this._settings.deep === 1 / 0) return false;
1456
- return this._getEntryLevel(t, e) >= this._settings.deep;
1457
- }
1458
- _getEntryLevel(t, e) {
1459
- const r = e.split("/").length;
1460
- if ("" === t) return r;
1461
- const n = t.split("/").length;
1462
- return r - n;
1463
- }
1464
- _isSkippedSymbolicLink(t) {
1465
- return !this._settings.followSymbolicLinks && t.dirent.isSymbolicLink();
1466
- }
1467
- _isSkippedByPositivePatterns(t, e) {
1468
- return !this._settings.baseNameMatch && !e.match(t);
1469
- }
1470
- _isSkippedByNegativePatterns(t, e) {
1471
- return !n.pattern.matchAny(t, e);
1472
- }
1473
- }
1474
- e["default"] = DeepFilter;
1475
- },
1476
- 659: (t, e, r)=>{
1477
- "use strict";
1478
- Object.defineProperty(e, "__esModule", {
1479
- value: true
1480
- });
1481
- const n = r(3828);
1482
- class EntryFilter {
1483
- constructor(t, e){
1484
- this._settings = t;
1485
- this._micromatchOptions = e;
1486
- this.index = new Map;
1487
- }
1488
- getFilter(t, e) {
1489
- const r = n.pattern.convertPatternsToRe(t, this._micromatchOptions);
1490
- const s = n.pattern.convertPatternsToRe(e, this._micromatchOptions);
1491
- return (t)=>this._filter(t, r, s);
1492
- }
1493
- _filter(t, e, r) {
1494
- if (this._settings.unique && this._isDuplicateEntry(t)) return false;
1495
- if (this._onlyFileFilter(t) || this._onlyDirectoryFilter(t)) return false;
1496
- if (this._isSkippedByAbsoluteNegativePatterns(t.path, r)) return false;
1497
- const n = this._settings.baseNameMatch ? t.name : t.path;
1498
- const s = this._isMatchToPatterns(n, e) && !this._isMatchToPatterns(t.path, r);
1499
- if (this._settings.unique && s) this._createIndexRecord(t);
1500
- return s;
1501
- }
1502
- _isDuplicateEntry(t) {
1503
- return this.index.has(t.path);
1504
- }
1505
- _createIndexRecord(t) {
1506
- this.index.set(t.path, void 0);
1507
- }
1508
- _onlyFileFilter(t) {
1509
- return this._settings.onlyFiles && !t.dirent.isFile();
1510
- }
1511
- _onlyDirectoryFilter(t) {
1512
- return this._settings.onlyDirectories && !t.dirent.isDirectory();
1513
- }
1514
- _isSkippedByAbsoluteNegativePatterns(t, e) {
1515
- if (!this._settings.absolute) return false;
1516
- const r = n.path.makeAbsolute(this._settings.cwd, t);
1517
- return n.pattern.matchAny(r, e);
1518
- }
1519
- _isMatchToPatterns(t, e) {
1520
- const r = n.path.removeLeadingDotSegment(t);
1521
- return n.pattern.matchAny(r, e) || n.pattern.matchAny(r + "/", e);
1522
- }
1523
- }
1524
- e["default"] = EntryFilter;
1525
- },
1526
- 9558: (t, e, r)=>{
1527
- "use strict";
1528
- Object.defineProperty(e, "__esModule", {
1529
- value: true
1530
- });
1531
- const n = r(3828);
1532
- class ErrorFilter {
1533
- constructor(t){
1534
- this._settings = t;
1535
- }
1536
- getFilter() {
1537
- return (t)=>this._isNonFatalError(t);
1538
- }
1539
- _isNonFatalError(t) {
1540
- return n.errno.isEnoentCodeError(t) || this._settings.suppressErrors;
1541
- }
1542
- }
1543
- e["default"] = ErrorFilter;
1544
- },
1545
- 8302: (t, e, r)=>{
1546
- "use strict";
1547
- Object.defineProperty(e, "__esModule", {
1548
- value: true
1549
- });
1550
- const n = r(3828);
1551
- class Matcher {
1552
- constructor(t, e, r){
1553
- this._patterns = t;
1554
- this._settings = e;
1555
- this._micromatchOptions = r;
1556
- this._storage = [];
1557
- this._fillStorage();
1558
- }
1559
- _fillStorage() {
1560
- const t = n.pattern.expandPatternsWithBraceExpansion(this._patterns);
1561
- for (const e of t){
1562
- const t = this._getPatternSegments(e);
1563
- const r = this._splitSegmentsIntoSections(t);
1564
- this._storage.push({
1565
- complete: r.length <= 1,
1566
- pattern: e,
1567
- segments: t,
1568
- sections: r
1569
- });
1570
- }
1571
- }
1572
- _getPatternSegments(t) {
1573
- const e = n.pattern.getPatternParts(t, this._micromatchOptions);
1574
- return e.map((t)=>{
1575
- const e = n.pattern.isDynamicPattern(t, this._settings);
1576
- if (!e) return {
1577
- dynamic: false,
1578
- pattern: t
1579
- };
1580
- return {
1581
- dynamic: true,
1582
- pattern: t,
1583
- patternRe: n.pattern.makeRe(t, this._micromatchOptions)
1584
- };
1585
- });
1586
- }
1587
- _splitSegmentsIntoSections(t) {
1588
- return n.array.splitWhen(t, (t)=>t.dynamic && n.pattern.hasGlobStar(t.pattern));
1589
- }
1590
- }
1591
- e["default"] = Matcher;
1592
- },
1593
- 5995: (t, e, r)=>{
1594
- "use strict";
1595
- Object.defineProperty(e, "__esModule", {
1596
- value: true
1597
- });
1598
- const n = r(8302);
1599
- class PartialMatcher extends n.default {
1600
- match(t) {
1601
- const e = t.split("/");
1602
- const r = e.length;
1603
- const n = this._storage.filter((t)=>!t.complete || t.segments.length > r);
1604
- for (const t of n){
1605
- const n = t.sections[0];
1606
- if (!t.complete && r > n.length) return true;
1607
- const s = e.every((e, r)=>{
1608
- const n = t.segments[r];
1609
- if (n.dynamic && n.patternRe.test(e)) return true;
1610
- if (!n.dynamic && n.pattern === e) return true;
1611
- return false;
1612
- });
1613
- if (s) return true;
1614
- }
1615
- return false;
1616
- }
1617
- }
1618
- e["default"] = PartialMatcher;
1619
- },
1620
- 8845: (t, e, r)=>{
1621
- "use strict";
1622
- Object.defineProperty(e, "__esModule", {
1623
- value: true
1624
- });
1625
- const n = r(1017);
1626
- const s = r(4292);
1627
- const i = r(659);
1628
- const o = r(9558);
1629
- const a = r(8460);
1630
- class Provider {
1631
- constructor(t){
1632
- this._settings = t;
1633
- this.errorFilter = new o.default(this._settings);
1634
- this.entryFilter = new i.default(this._settings, this._getMicromatchOptions());
1635
- this.deepFilter = new s.default(this._settings, this._getMicromatchOptions());
1636
- this.entryTransformer = new a.default(this._settings);
1637
- }
1638
- _getRootDirectory(t) {
1639
- return n.resolve(this._settings.cwd, t.base);
1640
- }
1641
- _getReaderOptions(t) {
1642
- const e = "." === t.base ? "" : t.base;
1643
- return {
1644
- basePath: e,
1645
- pathSegmentSeparator: "/",
1646
- concurrency: this._settings.concurrency,
1647
- deepFilter: this.deepFilter.getFilter(e, t.positive, t.negative),
1648
- entryFilter: this.entryFilter.getFilter(t.positive, t.negative),
1649
- errorFilter: this.errorFilter.getFilter(),
1650
- followSymbolicLinks: this._settings.followSymbolicLinks,
1651
- fs: this._settings.fs,
1652
- stats: this._settings.stats,
1653
- throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink,
1654
- transform: this.entryTransformer.getTransformer()
1655
- };
1656
- }
1657
- _getMicromatchOptions() {
1658
- return {
1659
- dot: this._settings.dot,
1660
- matchBase: this._settings.baseNameMatch,
1661
- nobrace: !this._settings.braceExpansion,
1662
- nocase: !this._settings.caseSensitiveMatch,
1663
- noext: !this._settings.extglob,
1664
- noglobstar: !this._settings.globstar,
1665
- posix: true,
1666
- strictSlashes: false
1667
- };
1668
- }
1669
- }
1670
- e["default"] = Provider;
1671
- },
1672
- 5407: (t, e, r)=>{
1673
- "use strict";
1674
- Object.defineProperty(e, "__esModule", {
1675
- value: true
1676
- });
1677
- const n = r(2781);
1678
- const s = r(8075);
1679
- const i = r(8845);
1680
- class ProviderStream extends i.default {
1681
- constructor(){
1682
- super(...arguments);
1683
- this._reader = new s.default(this._settings);
1684
- }
1685
- read(t) {
1686
- const e = this._getRootDirectory(t);
1687
- const r = this._getReaderOptions(t);
1688
- const s = this.api(e, t, r);
1689
- const i = new n.Readable({
1690
- objectMode: true,
1691
- read: ()=>{}
1692
- });
1693
- s.once("error", (t)=>i.emit("error", t)).on("data", (t)=>i.emit("data", r.transform(t))).once("end", ()=>i.emit("end"));
1694
- i.once("close", ()=>s.destroy());
1695
- return i;
1696
- }
1697
- api(t, e, r) {
1698
- if (e.dynamic) return this._reader.dynamic(t, r);
1699
- return this._reader.static(e.patterns, r);
1700
- }
1701
- }
1702
- e["default"] = ProviderStream;
1703
- },
1704
- 1066: (t, e, r)=>{
1705
- "use strict";
1706
- Object.defineProperty(e, "__esModule", {
1707
- value: true
1708
- });
1709
- const n = r(8110);
1710
- const s = r(8845);
1711
- class ProviderSync extends s.default {
1712
- constructor(){
1713
- super(...arguments);
1714
- this._reader = new n.default(this._settings);
1715
- }
1716
- read(t) {
1717
- const e = this._getRootDirectory(t);
1718
- const r = this._getReaderOptions(t);
1719
- const n = this.api(e, t, r);
1720
- return n.map(r.transform);
1721
- }
1722
- api(t, e, r) {
1723
- if (e.dynamic) return this._reader.dynamic(t, r);
1724
- return this._reader.static(e.patterns, r);
1725
- }
1726
- }
1727
- e["default"] = ProviderSync;
1728
- },
1729
- 8460: (t, e, r)=>{
1730
- "use strict";
1731
- Object.defineProperty(e, "__esModule", {
1732
- value: true
1733
- });
1734
- const n = r(3828);
1735
- class EntryTransformer {
1736
- constructor(t){
1737
- this._settings = t;
1738
- }
1739
- getTransformer() {
1740
- return (t)=>this._transform(t);
1741
- }
1742
- _transform(t) {
1743
- let e = t.path;
1744
- if (this._settings.absolute) {
1745
- e = n.path.makeAbsolute(this._settings.cwd, e);
1746
- e = n.path.unixify(e);
1747
- }
1748
- if (this._settings.markDirectories && t.dirent.isDirectory()) e += "/";
1749
- if (!this._settings.objectMode) return e;
1750
- return Object.assign(Object.assign({}, t), {
1751
- path: e
1752
- });
1753
- }
1754
- }
1755
- e["default"] = EntryTransformer;
1756
- },
1757
- 5906: (t, e, r)=>{
1758
- "use strict";
1759
- Object.defineProperty(e, "__esModule", {
1760
- value: true
1761
- });
1762
- const n = r(1017);
1763
- const s = r(3645);
1764
- const i = r(3828);
1765
- class Reader {
1766
- constructor(t){
1767
- this._settings = t;
1768
- this._fsStatSettings = new s.Settings({
1769
- followSymbolicLink: this._settings.followSymbolicLinks,
1770
- fs: this._settings.fs,
1771
- throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
1772
- });
1773
- }
1774
- _getFullEntryPath(t) {
1775
- return n.resolve(this._settings.cwd, t);
1776
- }
1777
- _makeEntry(t, e) {
1778
- const r = {
1779
- name: e,
1780
- path: e,
1781
- dirent: i.fs.createDirentFromStats(e, t)
1782
- };
1783
- if (this._settings.stats) r.stats = t;
1784
- return r;
1785
- }
1786
- _isFatalError(t) {
1787
- return !i.errno.isEnoentCodeError(t) && !this._settings.suppressErrors;
1788
- }
1789
- }
1790
- e["default"] = Reader;
1791
- },
1792
- 8075: (t, e, r)=>{
1793
- "use strict";
1794
- Object.defineProperty(e, "__esModule", {
1795
- value: true
1796
- });
1797
- const n = r(2781);
1798
- const s = r(3645);
1799
- const i = r(4328);
1800
- const o = r(5906);
1801
- class ReaderStream extends o.default {
1802
- constructor(){
1803
- super(...arguments);
1804
- this._walkStream = i.walkStream;
1805
- this._stat = s.stat;
1806
- }
1807
- dynamic(t, e) {
1808
- return this._walkStream(t, e);
1809
- }
1810
- static(t, e) {
1811
- const r = t.map(this._getFullEntryPath, this);
1812
- const s = new n.PassThrough({
1813
- objectMode: true
1814
- });
1815
- s._write = (n, i, o)=>this._getEntry(r[n], t[n], e).then((t)=>{
1816
- if (null !== t && e.entryFilter(t)) s.push(t);
1817
- if (n === r.length - 1) s.end();
1818
- o();
1819
- }).catch(o);
1820
- for(let t = 0; t < r.length; t++)s.write(t);
1821
- return s;
1822
- }
1823
- _getEntry(t, e, r) {
1824
- return this._getStat(t).then((t)=>this._makeEntry(t, e)).catch((t)=>{
1825
- if (r.errorFilter(t)) return null;
1826
- throw t;
1827
- });
1828
- }
1829
- _getStat(t) {
1830
- return new Promise((e, r)=>{
1831
- this._stat(t, this._fsStatSettings, (t, n)=>null === t ? e(n) : r(t));
1832
- });
1833
- }
1834
- }
1835
- e["default"] = ReaderStream;
1836
- },
1837
- 8110: (t, e, r)=>{
1838
- "use strict";
1839
- Object.defineProperty(e, "__esModule", {
1840
- value: true
1841
- });
1842
- const n = r(3645);
1843
- const s = r(4328);
1844
- const i = r(5906);
1845
- class ReaderSync extends i.default {
1846
- constructor(){
1847
- super(...arguments);
1848
- this._walkSync = s.walkSync;
1849
- this._statSync = n.statSync;
1850
- }
1851
- dynamic(t, e) {
1852
- return this._walkSync(t, e);
1853
- }
1854
- static(t, e) {
1855
- const r = [];
1856
- for (const n of t){
1857
- const t = this._getFullEntryPath(n);
1858
- const s = this._getEntry(t, n, e);
1859
- if (null !== s && e.entryFilter(s)) r.push(s);
1860
- }
1861
- return r;
1862
- }
1863
- _getEntry(t, e, r) {
1864
- try {
1865
- const r = this._getStat(t);
1866
- return this._makeEntry(r, e);
1867
- } catch (t) {
1868
- if (r.errorFilter(t)) return null;
1869
- throw t;
1870
- }
1871
- }
1872
- _getStat(t) {
1873
- return this._statSync(t, this._fsStatSettings);
1874
- }
1875
- }
1876
- e["default"] = ReaderSync;
1877
- },
1878
- 7190: (t, e, r)=>{
1879
- "use strict";
1880
- Object.defineProperty(e, "__esModule", {
1881
- value: true
1882
- });
1883
- e.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
1884
- const n = r(7147);
1885
- const s = r(2037);
1886
- const i = Math.max(s.cpus().length, 1);
1887
- e.DEFAULT_FILE_SYSTEM_ADAPTER = {
1888
- lstat: n.lstat,
1889
- lstatSync: n.lstatSync,
1890
- stat: n.stat,
1891
- statSync: n.statSync,
1892
- readdir: n.readdir,
1893
- readdirSync: n.readdirSync
1894
- };
1895
- class Settings {
1896
- constructor(t = {}){
1897
- this._options = t;
1898
- this.absolute = this._getValue(this._options.absolute, false);
1899
- this.baseNameMatch = this._getValue(this._options.baseNameMatch, false);
1900
- this.braceExpansion = this._getValue(this._options.braceExpansion, true);
1901
- this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true);
1902
- this.concurrency = this._getValue(this._options.concurrency, i);
1903
- this.cwd = this._getValue(this._options.cwd, process.cwd());
1904
- this.deep = this._getValue(this._options.deep, 1 / 0);
1905
- this.dot = this._getValue(this._options.dot, false);
1906
- this.extglob = this._getValue(this._options.extglob, true);
1907
- this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, true);
1908
- this.fs = this._getFileSystemMethods(this._options.fs);
1909
- this.globstar = this._getValue(this._options.globstar, true);
1910
- this.ignore = this._getValue(this._options.ignore, []);
1911
- this.markDirectories = this._getValue(this._options.markDirectories, false);
1912
- this.objectMode = this._getValue(this._options.objectMode, false);
1913
- this.onlyDirectories = this._getValue(this._options.onlyDirectories, false);
1914
- this.onlyFiles = this._getValue(this._options.onlyFiles, true);
1915
- this.stats = this._getValue(this._options.stats, false);
1916
- this.suppressErrors = this._getValue(this._options.suppressErrors, false);
1917
- this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false);
1918
- this.unique = this._getValue(this._options.unique, true);
1919
- if (this.onlyDirectories) this.onlyFiles = false;
1920
- if (this.stats) this.objectMode = true;
1921
- }
1922
- _getValue(t, e) {
1923
- return void 0 === t ? e : t;
1924
- }
1925
- _getFileSystemMethods(t = {}) {
1926
- return Object.assign(Object.assign({}, e.DEFAULT_FILE_SYSTEM_ADAPTER), t);
1927
- }
1928
- }
1929
- e["default"] = Settings;
1930
- },
1931
- 5789: (t, e)=>{
1932
- "use strict";
1933
- Object.defineProperty(e, "__esModule", {
1934
- value: true
1935
- });
1936
- e.splitWhen = e.flatten = void 0;
1937
- function flatten(t) {
1938
- return t.reduce((t, e)=>[].concat(t, e), []);
1939
- }
1940
- e.flatten = flatten;
1941
- function splitWhen(t, e) {
1942
- const r = [
1943
- []
1944
- ];
1945
- let n = 0;
1946
- for (const s of t)if (e(s)) {
1947
- n++;
1948
- r[n] = [];
1949
- } else r[n].push(s);
1950
- return r;
1951
- }
1952
- e.splitWhen = splitWhen;
1953
- },
1954
- 886: (t, e)=>{
1955
- "use strict";
1956
- Object.defineProperty(e, "__esModule", {
1957
- value: true
1958
- });
1959
- e.isEnoentCodeError = void 0;
1960
- function isEnoentCodeError(t) {
1961
- return "ENOENT" === t.code;
1962
- }
1963
- e.isEnoentCodeError = isEnoentCodeError;
1964
- },
1965
- 9102: (t, e)=>{
1966
- "use strict";
1967
- Object.defineProperty(e, "__esModule", {
1968
- value: true
1969
- });
1970
- e.createDirentFromStats = void 0;
1971
- class DirentFromStats {
1972
- constructor(t, e){
1973
- this.name = t;
1974
- this.isBlockDevice = e.isBlockDevice.bind(e);
1975
- this.isCharacterDevice = e.isCharacterDevice.bind(e);
1976
- this.isDirectory = e.isDirectory.bind(e);
1977
- this.isFIFO = e.isFIFO.bind(e);
1978
- this.isFile = e.isFile.bind(e);
1979
- this.isSocket = e.isSocket.bind(e);
1980
- this.isSymbolicLink = e.isSymbolicLink.bind(e);
1981
- }
1982
- }
1983
- function createDirentFromStats(t, e) {
1984
- return new DirentFromStats(t, e);
1985
- }
1986
- e.createDirentFromStats = createDirentFromStats;
1987
- },
1988
- 3828: (t, e, r)=>{
1989
- "use strict";
1990
- Object.defineProperty(e, "__esModule", {
1991
- value: true
1992
- });
1993
- e.string = e.stream = e.pattern = e.path = e.fs = e.errno = e.array = void 0;
1994
- const n = r(5789);
1995
- e.array = n;
1996
- const s = r(886);
1997
- e.errno = s;
1998
- const i = r(9102);
1999
- e.fs = i;
2000
- const o = r(6462);
2001
- e.path = o;
2002
- const a = r(2256);
2003
- e.pattern = a;
2004
- const u = r(9941);
2005
- e.stream = u;
2006
- const c = r(5121);
2007
- e.string = c;
2008
- },
2009
- 6462: (t, e, r)=>{
2010
- "use strict";
2011
- Object.defineProperty(e, "__esModule", {
2012
- value: true
2013
- });
2014
- e.removeLeadingDotSegment = e.escape = e.makeAbsolute = e.unixify = void 0;
2015
- const n = r(1017);
2016
- const s = 2;
2017
- const i = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
2018
- function unixify(t) {
2019
- return t.replace(/\\/g, "/");
2020
- }
2021
- e.unixify = unixify;
2022
- function makeAbsolute(t, e) {
2023
- return n.resolve(t, e);
2024
- }
2025
- e.makeAbsolute = makeAbsolute;
2026
- function escape(t) {
2027
- return t.replace(i, "\\$2");
2028
- }
2029
- e.escape = escape;
2030
- function removeLeadingDotSegment(t) {
2031
- if ("." === t.charAt(0)) {
2032
- const e = t.charAt(1);
2033
- if ("/" === e || "\\" === e) return t.slice(s);
2034
- }
2035
- return t;
2036
- }
2037
- e.removeLeadingDotSegment = removeLeadingDotSegment;
2038
- },
2039
- 2256: (t, e, r)=>{
2040
- "use strict";
2041
- Object.defineProperty(e, "__esModule", {
2042
- value: true
2043
- });
2044
- e.matchAny = e.convertPatternsToRe = e.makeRe = e.getPatternParts = e.expandBraceExpansion = e.expandPatternsWithBraceExpansion = e.isAffectDepthOfReadingPattern = e.endsWithSlashGlobStar = e.hasGlobStar = e.getBaseDirectory = e.isPatternRelatedToParentDirectory = e.getPatternsOutsideCurrentDirectory = e.getPatternsInsideCurrentDirectory = e.getPositivePatterns = e.getNegativePatterns = e.isPositivePattern = e.isNegativePattern = e.convertToNegativePattern = e.convertToPositivePattern = e.isDynamicPattern = e.isStaticPattern = void 0;
2045
- const n = r(1017);
2046
- const s = r(5976);
2047
- const i = r(8627);
2048
- const o = "**";
2049
- const a = "\\";
2050
- const u = /[*?]|^!/;
2051
- const c = /\[[^[]*]/;
2052
- const l = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
2053
- const f = /[!*+?@]\([^(]*\)/;
2054
- const p = /,|\.\./;
2055
- function isStaticPattern(t, e = {}) {
2056
- return !isDynamicPattern(t, e);
2057
- }
2058
- e.isStaticPattern = isStaticPattern;
2059
- function isDynamicPattern(t, e = {}) {
2060
- if ("" === t) return false;
2061
- if (false === e.caseSensitiveMatch || t.includes(a)) return true;
2062
- if (u.test(t) || c.test(t) || l.test(t)) return true;
2063
- if (false !== e.extglob && f.test(t)) return true;
2064
- if (false !== e.braceExpansion && hasBraceExpansion(t)) return true;
2065
- return false;
2066
- }
2067
- e.isDynamicPattern = isDynamicPattern;
2068
- function hasBraceExpansion(t) {
2069
- const e = t.indexOf("{");
2070
- if (-1 === e) return false;
2071
- const r = t.indexOf("}", e + 1);
2072
- if (-1 === r) return false;
2073
- const n = t.slice(e, r);
2074
- return p.test(n);
2075
- }
2076
- function convertToPositivePattern(t) {
2077
- return isNegativePattern(t) ? t.slice(1) : t;
2078
- }
2079
- e.convertToPositivePattern = convertToPositivePattern;
2080
- function convertToNegativePattern(t) {
2081
- return "!" + t;
2082
- }
2083
- e.convertToNegativePattern = convertToNegativePattern;
2084
- function isNegativePattern(t) {
2085
- return t.startsWith("!") && "(" !== t[1];
2086
- }
2087
- e.isNegativePattern = isNegativePattern;
2088
- function isPositivePattern(t) {
2089
- return !isNegativePattern(t);
2090
- }
2091
- e.isPositivePattern = isPositivePattern;
2092
- function getNegativePatterns(t) {
2093
- return t.filter(isNegativePattern);
2094
- }
2095
- e.getNegativePatterns = getNegativePatterns;
2096
- function getPositivePatterns(t) {
2097
- return t.filter(isPositivePattern);
2098
- }
2099
- e.getPositivePatterns = getPositivePatterns;
2100
- function getPatternsInsideCurrentDirectory(t) {
2101
- return t.filter((t)=>!isPatternRelatedToParentDirectory(t));
2102
- }
2103
- e.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory;
2104
- function getPatternsOutsideCurrentDirectory(t) {
2105
- return t.filter(isPatternRelatedToParentDirectory);
2106
- }
2107
- e.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory;
2108
- function isPatternRelatedToParentDirectory(t) {
2109
- return t.startsWith("..") || t.startsWith("./..");
2110
- }
2111
- e.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory;
2112
- function getBaseDirectory(t) {
2113
- return s(t, {
2114
- flipBackslashes: false
2115
- });
2116
- }
2117
- e.getBaseDirectory = getBaseDirectory;
2118
- function hasGlobStar(t) {
2119
- return t.includes(o);
2120
- }
2121
- e.hasGlobStar = hasGlobStar;
2122
- function endsWithSlashGlobStar(t) {
2123
- return t.endsWith("/" + o);
2124
- }
2125
- e.endsWithSlashGlobStar = endsWithSlashGlobStar;
2126
- function isAffectDepthOfReadingPattern(t) {
2127
- const e = n.basename(t);
2128
- return endsWithSlashGlobStar(t) || isStaticPattern(e);
2129
- }
2130
- e.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
2131
- function expandPatternsWithBraceExpansion(t) {
2132
- return t.reduce((t, e)=>t.concat(expandBraceExpansion(e)), []);
2133
- }
2134
- e.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
2135
- function expandBraceExpansion(t) {
2136
- return i.braces(t, {
2137
- expand: true,
2138
- nodupes: true
2139
- });
2140
- }
2141
- e.expandBraceExpansion = expandBraceExpansion;
2142
- function getPatternParts(t, e) {
2143
- let { parts: r } = i.scan(t, Object.assign(Object.assign({}, e), {
2144
- parts: true
2145
- }));
2146
- if (0 === r.length) r = [
2147
- t
2148
- ];
2149
- if (r[0].startsWith("/")) {
2150
- r[0] = r[0].slice(1);
2151
- r.unshift("");
2152
- }
2153
- return r;
2154
- }
2155
- e.getPatternParts = getPatternParts;
2156
- function makeRe(t, e) {
2157
- return i.makeRe(t, e);
2158
- }
2159
- e.makeRe = makeRe;
2160
- function convertPatternsToRe(t, e) {
2161
- return t.map((t)=>makeRe(t, e));
2162
- }
2163
- e.convertPatternsToRe = convertPatternsToRe;
2164
- function matchAny(t, e) {
2165
- return e.some((e)=>e.test(t));
2166
- }
2167
- e.matchAny = matchAny;
2168
- },
2169
- 9941: (t, e, r)=>{
2170
- "use strict";
2171
- Object.defineProperty(e, "__esModule", {
2172
- value: true
2173
- });
2174
- e.merge = void 0;
2175
- const n = r(1382);
2176
- function merge(t) {
2177
- const e = n(t);
2178
- t.forEach((t)=>{
2179
- t.once("error", (t)=>e.emit("error", t));
2180
- });
2181
- e.once("close", ()=>propagateCloseEventToSources(t));
2182
- e.once("end", ()=>propagateCloseEventToSources(t));
2183
- return e;
2184
- }
2185
- e.merge = merge;
2186
- function propagateCloseEventToSources(t) {
2187
- t.forEach((t)=>t.emit("close"));
2188
- }
2189
- },
2190
- 5121: (t, e)=>{
2191
- "use strict";
2192
- Object.defineProperty(e, "__esModule", {
2193
- value: true
2194
- });
2195
- e.isEmpty = e.isString = void 0;
2196
- function isString(t) {
2197
- return "string" == typeof t;
2198
- }
2199
- e.isString = isString;
2200
- function isEmpty(t) {
2201
- return "" === t;
2202
- }
2203
- e.isEmpty = isEmpty;
2204
- },
2205
- 4241: (t, e, r)=>{
2206
- "use strict";
2207
- var n = r(1816);
2208
- function fastqueue(t, e, r) {
2209
- if ("function" == typeof t) {
2210
- r = e;
2211
- e = t;
2212
- t = null;
2213
- }
2214
- if (r < 1) throw new Error("fastqueue concurrency must be greater than 1");
2215
- var s = n(Task);
2216
- var i = null;
2217
- var o = null;
2218
- var a = 0;
2219
- var u = null;
2220
- var c = {
2221
- push: push,
2222
- drain: noop,
2223
- saturated: noop,
2224
- pause: pause,
2225
- paused: false,
2226
- concurrency: r,
2227
- running: running,
2228
- resume: resume,
2229
- idle: idle,
2230
- length: length,
2231
- getQueue: getQueue,
2232
- unshift: unshift,
2233
- empty: noop,
2234
- kill: kill,
2235
- killAndDrain: killAndDrain,
2236
- error: error
2237
- };
2238
- return c;
2239
- function running() {
2240
- return a;
2241
- }
2242
- function pause() {
2243
- c.paused = true;
2244
- }
2245
- function length() {
2246
- var t = i;
2247
- var e = 0;
2248
- while(t){
2249
- t = t.next;
2250
- e++;
2251
- }
2252
- return e;
2253
- }
2254
- function getQueue() {
2255
- var t = i;
2256
- var e = [];
2257
- while(t){
2258
- e.push(t.value);
2259
- t = t.next;
2260
- }
2261
- return e;
2262
- }
2263
- function resume() {
2264
- if (!c.paused) return;
2265
- c.paused = false;
2266
- for(var t = 0; t < c.concurrency; t++){
2267
- a++;
2268
- release();
2269
- }
2270
- }
2271
- function idle() {
2272
- return 0 === a && 0 === c.length();
2273
- }
2274
- function push(r, n) {
2275
- var l = s.get();
2276
- l.context = t;
2277
- l.release = release;
2278
- l.value = r;
2279
- l.callback = n || noop;
2280
- l.errorHandler = u;
2281
- if (a === c.concurrency || c.paused) if (o) {
2282
- o.next = l;
2283
- o = l;
2284
- } else {
2285
- i = l;
2286
- o = l;
2287
- c.saturated();
2288
- }
2289
- else {
2290
- a++;
2291
- e.call(t, l.value, l.worked);
2292
- }
2293
- }
2294
- function unshift(r, n) {
2295
- var u = s.get();
2296
- u.context = t;
2297
- u.release = release;
2298
- u.value = r;
2299
- u.callback = n || noop;
2300
- if (a === c.concurrency || c.paused) if (i) {
2301
- u.next = i;
2302
- i = u;
2303
- } else {
2304
- i = u;
2305
- o = u;
2306
- c.saturated();
2307
- }
2308
- else {
2309
- a++;
2310
- e.call(t, u.value, u.worked);
2311
- }
2312
- }
2313
- function release(r) {
2314
- if (r) s.release(r);
2315
- var n = i;
2316
- if (n) if (c.paused) a--;
2317
- else {
2318
- if (o === i) o = null;
2319
- i = n.next;
2320
- n.next = null;
2321
- e.call(t, n.value, n.worked);
2322
- if (null === o) c.empty();
2323
- }
2324
- else if (0 === --a) c.drain();
2325
- }
2326
- function kill() {
2327
- i = null;
2328
- o = null;
2329
- c.drain = noop;
2330
- }
2331
- function killAndDrain() {
2332
- i = null;
2333
- o = null;
2334
- c.drain();
2335
- c.drain = noop;
2336
- }
2337
- function error(t) {
2338
- u = t;
2339
- }
2340
- }
2341
- function noop() {}
2342
- function Task() {
2343
- this.value = null;
2344
- this.callback = noop;
2345
- this.next = null;
2346
- this.release = noop;
2347
- this.context = null;
2348
- this.errorHandler = null;
2349
- var t = this;
2350
- this.worked = function(e, r) {
2351
- var n = t.callback;
2352
- var s = t.errorHandler;
2353
- var i = t.value;
2354
- t.value = null;
2355
- t.callback = noop;
2356
- if (t.errorHandler) s(e, i);
2357
- n.call(t.context, e, r);
2358
- t.release(t);
2359
- };
2360
- }
2361
- function queueAsPromised(t, e, r) {
2362
- if ("function" == typeof t) {
2363
- r = e;
2364
- e = t;
2365
- t = null;
2366
- }
2367
- function asyncWrapper(t, r) {
2368
- e.call(this, t).then(function(t) {
2369
- r(null, t);
2370
- }, r);
2371
- }
2372
- var n = fastqueue(t, asyncWrapper, r);
2373
- var s = n.push;
2374
- var i = n.unshift;
2375
- n.push = push;
2376
- n.unshift = unshift;
2377
- n.drained = drained;
2378
- return n;
2379
- function push(t) {
2380
- var e = new Promise(function(e, r) {
2381
- s(t, function(t, n) {
2382
- if (t) return void r(t);
2383
- e(n);
2384
- });
2385
- });
2386
- e.catch(noop);
2387
- return e;
2388
- }
2389
- function unshift(t) {
2390
- var e = new Promise(function(e, r) {
2391
- i(t, function(t, n) {
2392
- if (t) return void r(t);
2393
- e(n);
2394
- });
2395
- });
2396
- e.catch(noop);
2397
- return e;
2398
- }
2399
- function drained() {
2400
- var t = n.drain;
2401
- var e = new Promise(function(e) {
2402
- n.drain = function() {
2403
- t();
2404
- e();
2405
- };
2406
- });
2407
- return e;
2408
- }
2409
- }
2410
- t.exports = fastqueue;
2411
- t.exports.promise = queueAsPromised;
2412
- },
2413
- 442: (t, e, r)=>{
2414
- "use strict";
2415
- /*!
2416
- * fill-range <https://github.com/jonschlinkert/fill-range>
2417
- *
2418
- * Copyright (c) 2014-present, Jon Schlinkert.
2419
- * Licensed under the MIT License.
2420
- */ const n = r(3837);
2421
- const s = r(211);
2422
- const isObject = (t)=>null !== t && "object" == typeof t && !Array.isArray(t);
2423
- const transform = (t)=>(e)=>true === t ? Number(e) : String(e);
2424
- const isValidValue = (t)=>"number" == typeof t || "string" == typeof t && "" !== t;
2425
- const isNumber = (t)=>Number.isInteger(+t);
2426
- const zeros = (t)=>{
2427
- let e = `${t}`;
2428
- let r = -1;
2429
- if ("-" === e[0]) e = e.slice(1);
2430
- if ("0" === e) return false;
2431
- while("0" === e[++r]);
2432
- return r > 0;
2433
- };
2434
- const stringify = (t, e, r)=>{
2435
- if ("string" == typeof t || "string" == typeof e) return true;
2436
- return true === r.stringify;
2437
- };
2438
- const pad = (t, e, r)=>{
2439
- if (e > 0) {
2440
- let r = "-" === t[0] ? "-" : "";
2441
- if (r) t = t.slice(1);
2442
- t = r + t.padStart(r ? e - 1 : e, "0");
2443
- }
2444
- if (false === r) return String(t);
2445
- return t;
2446
- };
2447
- const toMaxLen = (t, e)=>{
2448
- let r = "-" === t[0] ? "-" : "";
2449
- if (r) {
2450
- t = t.slice(1);
2451
- e--;
2452
- }
2453
- while(t.length < e)t = "0" + t;
2454
- return r ? "-" + t : t;
2455
- };
2456
- const toSequence = (t, e)=>{
2457
- t.negatives.sort((t, e)=>t < e ? -1 : t > e ? 1 : 0);
2458
- t.positives.sort((t, e)=>t < e ? -1 : t > e ? 1 : 0);
2459
- let r = e.capture ? "" : "?:";
2460
- let n = "";
2461
- let s = "";
2462
- let i;
2463
- if (t.positives.length) n = t.positives.join("|");
2464
- if (t.negatives.length) s = `-(${r}${t.negatives.join("|")})`;
2465
- i = n && s ? `${n}|${s}` : n || s;
2466
- if (e.wrap) return `(${r}${i})`;
2467
- return i;
2468
- };
2469
- const toRange = (t, e, r, n)=>{
2470
- if (r) return s(t, e, {
2471
- wrap: false,
2472
- ...n
2473
- });
2474
- let i = String.fromCharCode(t);
2475
- if (t === e) return i;
2476
- let o = String.fromCharCode(e);
2477
- return `[${i}-${o}]`;
2478
- };
2479
- const toRegex = (t, e, r)=>{
2480
- if (Array.isArray(t)) {
2481
- let e = true === r.wrap;
2482
- let n = r.capture ? "" : "?:";
2483
- return e ? `(${n}${t.join("|")})` : t.join("|");
2484
- }
2485
- return s(t, e, r);
2486
- };
2487
- const rangeError = (...t)=>new RangeError("Invalid range arguments: " + n.inspect(...t));
2488
- const invalidRange = (t, e, r)=>{
2489
- if (true === r.strictRanges) throw rangeError([
2490
- t,
2491
- e
2492
- ]);
2493
- return [];
2494
- };
2495
- const invalidStep = (t, e)=>{
2496
- if (true === e.strictRanges) throw new TypeError(`Expected step "${t}" to be a number`);
2497
- return [];
2498
- };
2499
- const fillNumbers = (t, e, r = 1, n = {})=>{
2500
- let s = Number(t);
2501
- let i = Number(e);
2502
- if (!Number.isInteger(s) || !Number.isInteger(i)) {
2503
- if (true === n.strictRanges) throw rangeError([
2504
- t,
2505
- e
2506
- ]);
2507
- return [];
2508
- }
2509
- if (0 === s) s = 0;
2510
- if (0 === i) i = 0;
2511
- let o = s > i;
2512
- let a = String(t);
2513
- let u = String(e);
2514
- let c = String(r);
2515
- r = Math.max(Math.abs(r), 1);
2516
- let l = zeros(a) || zeros(u) || zeros(c);
2517
- let f = l ? Math.max(a.length, u.length, c.length) : 0;
2518
- let p = false === l && false === stringify(t, e, n);
2519
- let h = n.transform || transform(p);
2520
- if (n.toRegex && 1 === r) return toRange(toMaxLen(t, f), toMaxLen(e, f), true, n);
2521
- let d = {
2522
- negatives: [],
2523
- positives: []
2524
- };
2525
- let push = (t)=>d[t < 0 ? "negatives" : "positives"].push(Math.abs(t));
2526
- let _ = [];
2527
- let g = 0;
2528
- while(o ? s >= i : s <= i){
2529
- if (true === n.toRegex && r > 1) push(s);
2530
- else _.push(pad(h(s, g), f, p));
2531
- s = o ? s - r : s + r;
2532
- g++;
2533
- }
2534
- if (true === n.toRegex) return r > 1 ? toSequence(d, n) : toRegex(_, null, {
2535
- wrap: false,
2536
- ...n
2537
- });
2538
- return _;
2539
- };
2540
- const fillLetters = (t, e, r = 1, n = {})=>{
2541
- if (!isNumber(t) && t.length > 1 || !isNumber(e) && e.length > 1) return invalidRange(t, e, n);
2542
- let s = n.transform || ((t)=>String.fromCharCode(t));
2543
- let i = `${t}`.charCodeAt(0);
2544
- let o = `${e}`.charCodeAt(0);
2545
- let a = i > o;
2546
- let u = Math.min(i, o);
2547
- let c = Math.max(i, o);
2548
- if (n.toRegex && 1 === r) return toRange(u, c, false, n);
2549
- let l = [];
2550
- let f = 0;
2551
- while(a ? i >= o : i <= o){
2552
- l.push(s(i, f));
2553
- i = a ? i - r : i + r;
2554
- f++;
2555
- }
2556
- if (true === n.toRegex) return toRegex(l, null, {
2557
- wrap: false,
2558
- options: n
2559
- });
2560
- return l;
2561
- };
2562
- const fill = (t, e, r, n = {})=>{
2563
- if (null == e && isValidValue(t)) return [
2564
- t
2565
- ];
2566
- if (!isValidValue(t) || !isValidValue(e)) return invalidRange(t, e, n);
2567
- if ("function" == typeof r) return fill(t, e, 1, {
2568
- transform: r
2569
- });
2570
- if (isObject(r)) return fill(t, e, 0, r);
2571
- let s = {
2572
- ...n
2573
- };
2574
- if (true === s.capture) s.wrap = true;
2575
- r = r || s.step || 1;
2576
- if (!isNumber(r)) {
2577
- if (null != r && !isObject(r)) return invalidStep(r, s);
2578
- return fill(t, e, 1, r);
2579
- }
2580
- if (isNumber(t) && isNumber(e)) return fillNumbers(t, e, r, s);
2581
- return fillLetters(t, e, Math.max(Math.abs(r), 1), s);
2582
- };
2583
- t.exports = fill;
2584
- },
2585
- 5976: (t, e, r)=>{
2586
- "use strict";
2587
- var n = r(6654);
2588
- var s = r(1017).posix.dirname;
2589
- var i = "win32" === r(2037).platform();
2590
- var o = "/";
2591
- var a = /\\/g;
2592
- var u = /[\{\[].*[\}\]]$/;
2593
- var c = /(^|[^\\])([\{\[]|\([^\)]+$)/;
2594
- var l = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
2595
- t.exports = function(t, e) {
2596
- var r = Object.assign({
2597
- flipBackslashes: true
2598
- }, e);
2599
- if (r.flipBackslashes && i && t.indexOf(o) < 0) t = t.replace(a, o);
2600
- if (u.test(t)) t += o;
2601
- t += "a";
2602
- do t = s(t);
2603
- while (n(t) || c.test(t));
2604
- return t.replace(l, "$1");
2605
- };
2606
- },
2607
- 3071: (t)=>{
2608
- /*!
2609
- * is-extglob <https://github.com/jonschlinkert/is-extglob>
2610
- *
2611
- * Copyright (c) 2014-2016, Jon Schlinkert.
2612
- * Licensed under the MIT License.
2613
- */ t.exports = function(t) {
2614
- if ("string" != typeof t || "" === t) return false;
2615
- var e;
2616
- while(e = /(\\).|([@?!+*]\(.*\))/g.exec(t)){
2617
- if (e[2]) return true;
2618
- t = t.slice(e.index + e[0].length);
2619
- }
2620
- return false;
2621
- };
2622
- },
2623
- 6654: (t, e, r)=>{
2624
- /*!
2625
- * is-glob <https://github.com/jonschlinkert/is-glob>
2626
- *
2627
- * Copyright (c) 2014-2017, Jon Schlinkert.
2628
- * Released under the MIT License.
2629
- */ var n = r(3071);
2630
- var s = {
2631
- "{": "}",
2632
- "(": ")",
2633
- "[": "]"
2634
- };
2635
- var strictCheck = function(t) {
2636
- if ("!" === t[0]) return true;
2637
- var e = 0;
2638
- var r = -2;
2639
- var n = -2;
2640
- var i = -2;
2641
- var o = -2;
2642
- var a = -2;
2643
- while(e < t.length){
2644
- if ("*" === t[e]) return true;
2645
- if ("?" === t[e + 1] && /[\].+)]/.test(t[e])) return true;
2646
- if (-1 !== n && "[" === t[e] && "]" !== t[e + 1]) {
2647
- if (n < e) n = t.indexOf("]", e);
2648
- if (n > e) {
2649
- if (-1 === a || a > n) return true;
2650
- a = t.indexOf("\\", e);
2651
- if (-1 === a || a > n) return true;
2652
- }
2653
- }
2654
- if (-1 !== i && "{" === t[e] && "}" !== t[e + 1]) {
2655
- i = t.indexOf("}", e);
2656
- if (i > e) {
2657
- a = t.indexOf("\\", e);
2658
- if (-1 === a || a > i) return true;
2659
- }
2660
- }
2661
- if (-1 !== o && "(" === t[e] && "?" === t[e + 1] && /[:!=]/.test(t[e + 2]) && ")" !== t[e + 3]) {
2662
- o = t.indexOf(")", e);
2663
- if (o > e) {
2664
- a = t.indexOf("\\", e);
2665
- if (-1 === a || a > o) return true;
2666
- }
2667
- }
2668
- if (-1 !== r && "(" === t[e] && "|" !== t[e + 1]) {
2669
- if (r < e) r = t.indexOf("|", e);
2670
- if (-1 !== r && ")" !== t[r + 1]) {
2671
- o = t.indexOf(")", r);
2672
- if (o > r) {
2673
- a = t.indexOf("\\", r);
2674
- if (-1 === a || a > o) return true;
2675
- }
2676
- }
2677
- }
2678
- if ("\\" === t[e]) {
2679
- var u = t[e + 1];
2680
- e += 2;
2681
- var c = s[u];
2682
- if (c) {
2683
- var l = t.indexOf(c, e);
2684
- if (-1 !== l) e = l + 1;
2685
- }
2686
- if ("!" === t[e]) return true;
2687
- } else e++;
2688
- }
2689
- return false;
2690
- };
2691
- var relaxedCheck = function(t) {
2692
- if ("!" === t[0]) return true;
2693
- var e = 0;
2694
- while(e < t.length){
2695
- if (/[*?{}()[\]]/.test(t[e])) return true;
2696
- if ("\\" === t[e]) {
2697
- var r = t[e + 1];
2698
- e += 2;
2699
- var n = s[r];
2700
- if (n) {
2701
- var i = t.indexOf(n, e);
2702
- if (-1 !== i) e = i + 1;
2703
- }
2704
- if ("!" === t[e]) return true;
2705
- } else e++;
2706
- }
2707
- return false;
2708
- };
2709
- t.exports = function(t, e) {
2710
- if ("string" != typeof t || "" === t) return false;
2711
- if (n(t)) return true;
2712
- var r = strictCheck;
2713
- if (e && false === e.strict) r = relaxedCheck;
2714
- return r(t);
2715
- };
2716
- },
2717
- 8387: (t)=>{
2718
- "use strict";
2719
- /*!
2720
- * is-number <https://github.com/jonschlinkert/is-number>
2721
- *
2722
- * Copyright (c) 2014-present, Jon Schlinkert.
2723
- * Released under the MIT License.
2724
- */ t.exports = function(t) {
2725
- if ("number" == typeof t) return t - t === 0;
2726
- if ("string" == typeof t && "" !== t.trim()) return Number.isFinite ? Number.isFinite(+t) : isFinite(+t);
2727
- return false;
2728
- };
2729
- },
2730
- 1382: (t, e, r)=>{
2731
- "use strict";
2732
- const n = r(2781);
2733
- const s = n.PassThrough;
2734
- const i = Array.prototype.slice;
2735
- t.exports = merge2;
2736
- function merge2() {
2737
- const t = [];
2738
- const e = i.call(arguments);
2739
- let r = false;
2740
- let n = e[e.length - 1];
2741
- if (n && !Array.isArray(n) && null == n.pipe) e.pop();
2742
- else n = {};
2743
- const o = false !== n.end;
2744
- const a = true === n.pipeError;
2745
- if (null == n.objectMode) n.objectMode = true;
2746
- if (null == n.highWaterMark) n.highWaterMark = 65536;
2747
- const u = s(n);
2748
- function addStream() {
2749
- for(let e = 0, r = arguments.length; e < r; e++)t.push(pauseStreams(arguments[e], n));
2750
- mergeStream();
2751
- return this;
2752
- }
2753
- function mergeStream() {
2754
- if (r) return;
2755
- r = true;
2756
- let e = t.shift();
2757
- if (!e) return void process.nextTick(endStream);
2758
- if (!Array.isArray(e)) e = [
2759
- e
2760
- ];
2761
- let n = e.length + 1;
2762
- function next() {
2763
- if (--n > 0) return;
2764
- r = false;
2765
- mergeStream();
2766
- }
2767
- function pipe(t) {
2768
- function onend() {
2769
- t.removeListener("merge2UnpipeEnd", onend);
2770
- t.removeListener("end", onend);
2771
- if (a) t.removeListener("error", onerror);
2772
- next();
2773
- }
2774
- function onerror(t) {
2775
- u.emit("error", t);
2776
- }
2777
- if (t._readableState.endEmitted) return next();
2778
- t.on("merge2UnpipeEnd", onend);
2779
- t.on("end", onend);
2780
- if (a) t.on("error", onerror);
2781
- t.pipe(u, {
2782
- end: false
2783
- });
2784
- t.resume();
2785
- }
2786
- for(let t = 0; t < e.length; t++)pipe(e[t]);
2787
- next();
2788
- }
2789
- function endStream() {
2790
- r = false;
2791
- u.emit("queueDrain");
2792
- if (o) u.end();
2793
- }
2794
- u.setMaxListeners(0);
2795
- u.add = addStream;
2796
- u.on("unpipe", function(t) {
2797
- t.emit("merge2UnpipeEnd");
2798
- });
2799
- if (e.length) addStream.apply(null, e);
2800
- return u;
2801
- }
2802
- function pauseStreams(t, e) {
2803
- if (Array.isArray(t)) for(let r = 0, n = t.length; r < n; r++)t[r] = pauseStreams(t[r], e);
2804
- else {
2805
- if (!t._readableState && t.pipe) t = t.pipe(s(e));
2806
- if (!t._readableState || !t.pause || !t.pipe) throw new Error("Only readable stream can be merged.");
2807
- t.pause();
2808
- }
2809
- return t;
2810
- }
2811
- },
2812
- 8627: (t, e, r)=>{
2813
- "use strict";
2814
- const n = r(3837);
2815
- const s = r(1570);
2816
- const i = r(376);
2817
- const o = r(8658);
2818
- const isEmptyString = (t)=>"" === t || "./" === t;
2819
- const micromatch = (t, e, r)=>{
2820
- e = [].concat(e);
2821
- t = [].concat(t);
2822
- let n = new Set;
2823
- let s = new Set;
2824
- let o = new Set;
2825
- let a = 0;
2826
- let onResult = (t)=>{
2827
- o.add(t.output);
2828
- if (r && r.onResult) r.onResult(t);
2829
- };
2830
- for(let o = 0; o < e.length; o++){
2831
- let u = i(String(e[o]), {
2832
- ...r,
2833
- onResult: onResult
2834
- }, true);
2835
- let c = u.state.negated || u.state.negatedExtglob;
2836
- if (c) a++;
2837
- for (let e of t){
2838
- let t = u(e, true);
2839
- let r = c ? !t.isMatch : t.isMatch;
2840
- if (r) if (c) n.add(t.output);
2841
- else {
2842
- n.delete(t.output);
2843
- s.add(t.output);
2844
- }
2845
- }
2846
- }
2847
- let u = a === e.length ? [
2848
- ...o
2849
- ] : [
2850
- ...s
2851
- ];
2852
- let c = u.filter((t)=>!n.has(t));
2853
- if (r && 0 === c.length) {
2854
- if (true === r.failglob) throw new Error(`No matches found for "${e.join(", ")}"`);
2855
- if (true === r.nonull || true === r.nullglob) return r.unescape ? e.map((t)=>t.replace(/\\/g, "")) : e;
2856
- }
2857
- return c;
2858
- };
2859
- micromatch.match = micromatch;
2860
- micromatch.matcher = (t, e)=>i(t, e);
2861
- micromatch.isMatch = (t, e, r)=>i(e, r)(t);
2862
- micromatch.any = micromatch.isMatch;
2863
- micromatch.not = (t, e, r = {})=>{
2864
- e = [].concat(e).map(String);
2865
- let n = new Set;
2866
- let s = [];
2867
- let onResult = (t)=>{
2868
- if (r.onResult) r.onResult(t);
2869
- s.push(t.output);
2870
- };
2871
- let i = new Set(micromatch(t, e, {
2872
- ...r,
2873
- onResult: onResult
2874
- }));
2875
- for (let t of s)if (!i.has(t)) n.add(t);
2876
- return [
2877
- ...n
2878
- ];
2879
- };
2880
- micromatch.contains = (t, e, r)=>{
2881
- if ("string" != typeof t) throw new TypeError(`Expected a string: "${n.inspect(t)}"`);
2882
- if (Array.isArray(e)) return e.some((e)=>micromatch.contains(t, e, r));
2883
- if ("string" == typeof e) {
2884
- if (isEmptyString(t) || isEmptyString(e)) return false;
2885
- if (t.includes(e) || t.startsWith("./") && t.slice(2).includes(e)) return true;
2886
- }
2887
- return micromatch.isMatch(t, e, {
2888
- ...r,
2889
- contains: true
2890
- });
2891
- };
2892
- micromatch.matchKeys = (t, e, r)=>{
2893
- if (!o.isObject(t)) throw new TypeError("Expected the first argument to be an object");
2894
- let n = micromatch(Object.keys(t), e, r);
2895
- let s = {};
2896
- for (let e of n)s[e] = t[e];
2897
- return s;
2898
- };
2899
- micromatch.some = (t, e, r)=>{
2900
- let n = [].concat(t);
2901
- for (let t of [].concat(e)){
2902
- let e = i(String(t), r);
2903
- if (n.some((t)=>e(t))) return true;
2904
- }
2905
- return false;
2906
- };
2907
- micromatch.every = (t, e, r)=>{
2908
- let n = [].concat(t);
2909
- for (let t of [].concat(e)){
2910
- let e = i(String(t), r);
2911
- if (!n.every((t)=>e(t))) return false;
2912
- }
2913
- return true;
2914
- };
2915
- micromatch.all = (t, e, r)=>{
2916
- if ("string" != typeof t) throw new TypeError(`Expected a string: "${n.inspect(t)}"`);
2917
- return [].concat(e).every((e)=>i(e, r)(t));
2918
- };
2919
- micromatch.capture = (t, e, r)=>{
2920
- let n = o.isWindows(r);
2921
- let s = i.makeRe(String(t), {
2922
- ...r,
2923
- capture: true
2924
- });
2925
- let a = s.exec(n ? o.toPosixSlashes(e) : e);
2926
- if (a) return a.slice(1).map((t)=>void 0 === t ? "" : t);
2927
- };
2928
- micromatch.makeRe = (...t)=>i.makeRe(...t);
2929
- micromatch.scan = (...t)=>i.scan(...t);
2930
- micromatch.parse = (t, e)=>{
2931
- let r = [];
2932
- for (let n of [].concat(t || []))for (let t of s(String(n), e))r.push(i.parse(t, e));
2933
- return r;
2934
- };
2935
- micromatch.braces = (t, e)=>{
2936
- if ("string" != typeof t) throw new TypeError("Expected a string");
2937
- if (e && true === e.nobrace || !/\{.*\}/.test(t)) return [
2938
- t
2939
- ];
2940
- return s(t, e);
2941
- };
2942
- micromatch.braceExpand = (t, e)=>{
2943
- if ("string" != typeof t) throw new TypeError("Expected a string");
2944
- return micromatch.braces(t, {
2945
- ...e,
2946
- expand: true
2947
- });
2948
- };
2949
- t.exports = micromatch;
2950
- },
2951
- 376: (t, e, r)=>{
2952
- "use strict";
2953
- t.exports = r(7631);
2954
- },
2955
- 7820: (t, e, r)=>{
2956
- "use strict";
2957
- const n = r(1017);
2958
- const s = "\\\\/";
2959
- const i = `[^${s}]`;
2960
- const o = "\\.";
2961
- const a = "\\+";
2962
- const u = "\\?";
2963
- const c = "\\/";
2964
- const l = "(?=.)";
2965
- const f = "[^/]";
2966
- const p = `(?:${c}|$)`;
2967
- const h = `(?:^|${c})`;
2968
- const d = `${o}{1,2}${p}`;
2969
- const _ = `(?!${o})`;
2970
- const g = `(?!${h}${d})`;
2971
- const y = `(?!${o}{0,1}${p})`;
2972
- const S = `(?!${d})`;
2973
- const m = `[^.${c}]`;
2974
- const v = `${f}*?`;
2975
- const E = {
2976
- DOT_LITERAL: o,
2977
- PLUS_LITERAL: a,
2978
- QMARK_LITERAL: u,
2979
- SLASH_LITERAL: c,
2980
- ONE_CHAR: l,
2981
- QMARK: f,
2982
- END_ANCHOR: p,
2983
- DOTS_SLASH: d,
2984
- NO_DOT: _,
2985
- NO_DOTS: g,
2986
- NO_DOT_SLASH: y,
2987
- NO_DOTS_SLASH: S,
2988
- QMARK_NO_DOT: m,
2989
- STAR: v,
2990
- START_ANCHOR: h
2991
- };
2992
- const A = {
2993
- ...E,
2994
- SLASH_LITERAL: `[${s}]`,
2995
- QMARK: i,
2996
- STAR: `${i}*?`,
2997
- DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`,
2998
- NO_DOT: `(?!${o})`,
2999
- NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`,
3000
- NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`,
3001
- NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`,
3002
- QMARK_NO_DOT: `[^.${s}]`,
3003
- START_ANCHOR: `(?:^|[${s}])`,
3004
- END_ANCHOR: `(?:[${s}]|$)`
3005
- };
3006
- const b = {
3007
- alnum: "a-zA-Z0-9",
3008
- alpha: "a-zA-Z",
3009
- ascii: "\\x00-\\x7F",
3010
- blank: " \\t",
3011
- cntrl: "\\x00-\\x1F\\x7F",
3012
- digit: "0-9",
3013
- graph: "\\x21-\\x7E",
3014
- lower: "a-z",
3015
- print: "\\x20-\\x7E ",
3016
- punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
3017
- space: " \\t\\r\\n\\v\\f",
3018
- upper: "A-Z",
3019
- word: "A-Za-z0-9_",
3020
- xdigit: "A-Fa-f0-9"
3021
- };
3022
- t.exports = {
3023
- MAX_LENGTH: 65536,
3024
- POSIX_REGEX_SOURCE: b,
3025
- REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
3026
- REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
3027
- REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
3028
- REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
3029
- REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
3030
- REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
3031
- REPLACEMENTS: {
3032
- "***": "*",
3033
- "**/**": "**",
3034
- "**/**/**": "**"
3035
- },
3036
- CHAR_0: 48,
3037
- CHAR_9: 57,
3038
- CHAR_UPPERCASE_A: 65,
3039
- CHAR_LOWERCASE_A: 97,
3040
- CHAR_UPPERCASE_Z: 90,
3041
- CHAR_LOWERCASE_Z: 122,
3042
- CHAR_LEFT_PARENTHESES: 40,
3043
- CHAR_RIGHT_PARENTHESES: 41,
3044
- CHAR_ASTERISK: 42,
3045
- CHAR_AMPERSAND: 38,
3046
- CHAR_AT: 64,
3047
- CHAR_BACKWARD_SLASH: 92,
3048
- CHAR_CARRIAGE_RETURN: 13,
3049
- CHAR_CIRCUMFLEX_ACCENT: 94,
3050
- CHAR_COLON: 58,
3051
- CHAR_COMMA: 44,
3052
- CHAR_DOT: 46,
3053
- CHAR_DOUBLE_QUOTE: 34,
3054
- CHAR_EQUAL: 61,
3055
- CHAR_EXCLAMATION_MARK: 33,
3056
- CHAR_FORM_FEED: 12,
3057
- CHAR_FORWARD_SLASH: 47,
3058
- CHAR_GRAVE_ACCENT: 96,
3059
- CHAR_HASH: 35,
3060
- CHAR_HYPHEN_MINUS: 45,
3061
- CHAR_LEFT_ANGLE_BRACKET: 60,
3062
- CHAR_LEFT_CURLY_BRACE: 123,
3063
- CHAR_LEFT_SQUARE_BRACKET: 91,
3064
- CHAR_LINE_FEED: 10,
3065
- CHAR_NO_BREAK_SPACE: 160,
3066
- CHAR_PERCENT: 37,
3067
- CHAR_PLUS: 43,
3068
- CHAR_QUESTION_MARK: 63,
3069
- CHAR_RIGHT_ANGLE_BRACKET: 62,
3070
- CHAR_RIGHT_CURLY_BRACE: 125,
3071
- CHAR_RIGHT_SQUARE_BRACKET: 93,
3072
- CHAR_SEMICOLON: 59,
3073
- CHAR_SINGLE_QUOTE: 39,
3074
- CHAR_SPACE: 32,
3075
- CHAR_TAB: 9,
3076
- CHAR_UNDERSCORE: 95,
3077
- CHAR_VERTICAL_LINE: 124,
3078
- CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
3079
- SEP: n.sep,
3080
- extglobChars (t) {
3081
- return {
3082
- "!": {
3083
- type: "negate",
3084
- open: "(?:(?!(?:",
3085
- close: `))${t.STAR})`
3086
- },
3087
- "?": {
3088
- type: "qmark",
3089
- open: "(?:",
3090
- close: ")?"
3091
- },
3092
- "+": {
3093
- type: "plus",
3094
- open: "(?:",
3095
- close: ")+"
3096
- },
3097
- "*": {
3098
- type: "star",
3099
- open: "(?:",
3100
- close: ")*"
3101
- },
3102
- "@": {
3103
- type: "at",
3104
- open: "(?:",
3105
- close: ")"
3106
- }
3107
- };
3108
- },
3109
- globChars (t) {
3110
- return true === t ? A : E;
3111
- }
3112
- };
3113
- },
3114
- 6986: (t, e, r)=>{
3115
- "use strict";
3116
- const n = r(7820);
3117
- const s = r(8658);
3118
- const { MAX_LENGTH: i, POSIX_REGEX_SOURCE: o, REGEX_NON_SPECIAL_CHARS: a, REGEX_SPECIAL_CHARS_BACKREF: u, REPLACEMENTS: c } = n;
3119
- const expandRange = (t, e)=>{
3120
- if ("function" == typeof e.expandRange) return e.expandRange(...t, e);
3121
- t.sort();
3122
- const r = `[${t.join("-")}]`;
3123
- try {
3124
- new RegExp(r);
3125
- } catch (e) {
3126
- return t.map((t)=>s.escapeRegex(t)).join("..");
3127
- }
3128
- return r;
3129
- };
3130
- const syntaxError = (t, e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`;
3131
- const parse = (t, e)=>{
3132
- if ("string" != typeof t) throw new TypeError("Expected a string");
3133
- t = c[t] || t;
3134
- const r = {
3135
- ...e
3136
- };
3137
- const l = "number" == typeof r.maxLength ? Math.min(i, r.maxLength) : i;
3138
- let f = t.length;
3139
- if (f > l) throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${l}`);
3140
- const p = {
3141
- type: "bos",
3142
- value: "",
3143
- output: r.prepend || ""
3144
- };
3145
- const h = [
3146
- p
3147
- ];
3148
- const d = r.capture ? "" : "?:";
3149
- const _ = s.isWindows(e);
3150
- const g = n.globChars(_);
3151
- const y = n.extglobChars(g);
3152
- const { DOT_LITERAL: S, PLUS_LITERAL: m, SLASH_LITERAL: v, ONE_CHAR: E, DOTS_SLASH: A, NO_DOT: b, NO_DOT_SLASH: R, NO_DOTS_SLASH: P, QMARK: x, QMARK_NO_DOT: k, STAR: T, START_ANCHOR: C } = g;
3153
- const globstar = (t)=>`(${d}(?:(?!${C}${t.dot ? A : S}).)*?)`;
3154
- const w = r.dot ? "" : b;
3155
- const O = r.dot ? x : k;
3156
- let L = true === r.bash ? globstar(r) : T;
3157
- if (r.capture) L = `(${L})`;
3158
- if ("boolean" == typeof r.noext) r.noextglob = r.noext;
3159
- const H = {
3160
- input: t,
3161
- index: -1,
3162
- start: 0,
3163
- dot: true === r.dot,
3164
- consumed: "",
3165
- output: "",
3166
- prefix: "",
3167
- backtrack: false,
3168
- negated: false,
3169
- brackets: 0,
3170
- braces: 0,
3171
- parens: 0,
3172
- quotes: 0,
3173
- globstar: false,
3174
- tokens: h
3175
- };
3176
- t = s.removePrefix(t, H);
3177
- f = t.length;
3178
- const D = [];
3179
- const F = [];
3180
- const $ = [];
3181
- let M = p;
3182
- let N;
3183
- const eos = ()=>H.index === f - 1;
3184
- const I = H.peek = (e = 1)=>t[H.index + e];
3185
- const B = H.advance = ()=>t[++H.index] || "";
3186
- const remaining = ()=>t.slice(H.index + 1);
3187
- const consume = (t = "", e = 0)=>{
3188
- H.consumed += t;
3189
- H.index += e;
3190
- };
3191
- const append = (t)=>{
3192
- H.output += null != t.output ? t.output : t.value;
3193
- consume(t.value);
3194
- };
3195
- const negate = ()=>{
3196
- let t = 1;
3197
- while("!" === I() && ("(" !== I(2) || "?" === I(3))){
3198
- B();
3199
- H.start++;
3200
- t++;
3201
- }
3202
- if (t % 2 === 0) return false;
3203
- H.negated = true;
3204
- H.start++;
3205
- return true;
3206
- };
3207
- const increment = (t)=>{
3208
- H[t]++;
3209
- $.push(t);
3210
- };
3211
- const decrement = (t)=>{
3212
- H[t]--;
3213
- $.pop();
3214
- };
3215
- const push = (t)=>{
3216
- if ("globstar" === M.type) {
3217
- const e = H.braces > 0 && ("comma" === t.type || "brace" === t.type);
3218
- const r = true === t.extglob || D.length && ("pipe" === t.type || "paren" === t.type);
3219
- if ("slash" !== t.type && "paren" !== t.type && !e && !r) {
3220
- H.output = H.output.slice(0, -M.output.length);
3221
- M.type = "star";
3222
- M.value = "*";
3223
- M.output = L;
3224
- H.output += M.output;
3225
- }
3226
- }
3227
- if (D.length && "paren" !== t.type) D[D.length - 1].inner += t.value;
3228
- if (t.value || t.output) append(t);
3229
- if (M && "text" === M.type && "text" === t.type) {
3230
- M.value += t.value;
3231
- M.output = (M.output || "") + t.value;
3232
- return;
3233
- }
3234
- t.prev = M;
3235
- h.push(t);
3236
- M = t;
3237
- };
3238
- const extglobOpen = (t, e)=>{
3239
- const n = {
3240
- ...y[e],
3241
- conditions: 1,
3242
- inner: ""
3243
- };
3244
- n.prev = M;
3245
- n.parens = H.parens;
3246
- n.output = H.output;
3247
- const s = (r.capture ? "(" : "") + n.open;
3248
- increment("parens");
3249
- push({
3250
- type: t,
3251
- value: e,
3252
- output: H.output ? "" : E
3253
- });
3254
- push({
3255
- type: "paren",
3256
- extglob: true,
3257
- value: B(),
3258
- output: s
3259
- });
3260
- D.push(n);
3261
- };
3262
- const extglobClose = (t)=>{
3263
- let n = t.close + (r.capture ? ")" : "");
3264
- let s;
3265
- if ("negate" === t.type) {
3266
- let i = L;
3267
- if (t.inner && t.inner.length > 1 && t.inner.includes("/")) i = globstar(r);
3268
- if (i !== L || eos() || /^\)+$/.test(remaining())) n = t.close = `)$))${i}`;
3269
- if (t.inner.includes("*") && (s = remaining()) && /^\.[^\\/.]+$/.test(s)) {
3270
- const r = parse(s, {
3271
- ...e,
3272
- fastpaths: false
3273
- }).output;
3274
- n = t.close = `)${r})${i})`;
3275
- }
3276
- if ("bos" === t.prev.type) H.negatedExtglob = true;
3277
- }
3278
- push({
3279
- type: "paren",
3280
- extglob: true,
3281
- value: N,
3282
- output: n
3283
- });
3284
- decrement("parens");
3285
- };
3286
- if (false !== r.fastpaths && !/(^[*!]|[/()[\]{}"])/.test(t)) {
3287
- let n = false;
3288
- let i = t.replace(u, (t, e, r, s, i, o)=>{
3289
- if ("\\" === s) {
3290
- n = true;
3291
- return t;
3292
- }
3293
- if ("?" === s) {
3294
- if (e) return e + s + (i ? x.repeat(i.length) : "");
3295
- if (0 === o) return O + (i ? x.repeat(i.length) : "");
3296
- return x.repeat(r.length);
3297
- }
3298
- if ("." === s) return S.repeat(r.length);
3299
- if ("*" === s) {
3300
- if (e) return e + s + (i ? L : "");
3301
- return L;
3302
- }
3303
- return e ? t : `\\${t}`;
3304
- });
3305
- if (true === n) i = true === r.unescape ? i.replace(/\\/g, "") : i.replace(/\\+/g, (t)=>t.length % 2 === 0 ? "\\\\" : t ? "\\" : "");
3306
- if (i === t && true === r.contains) {
3307
- H.output = t;
3308
- return H;
3309
- }
3310
- H.output = s.wrapOutput(i, H, e);
3311
- return H;
3312
- }
3313
- while(!eos()){
3314
- N = B();
3315
- if ("\0" === N) continue;
3316
- if ("\\" === N) {
3317
- const t = I();
3318
- if ("/" === t && true !== r.bash) continue;
3319
- if ("." === t || ";" === t) continue;
3320
- if (!t) {
3321
- N += "\\";
3322
- push({
3323
- type: "text",
3324
- value: N
3325
- });
3326
- continue;
3327
- }
3328
- const e = /^\\+/.exec(remaining());
3329
- let n = 0;
3330
- if (e && e[0].length > 2) {
3331
- n = e[0].length;
3332
- H.index += n;
3333
- if (n % 2 !== 0) N += "\\";
3334
- }
3335
- if (true === r.unescape) N = B();
3336
- else N += B();
3337
- if (0 === H.brackets) {
3338
- push({
3339
- type: "text",
3340
- value: N
3341
- });
3342
- continue;
3343
- }
3344
- }
3345
- if (H.brackets > 0 && ("]" !== N || "[" === M.value || "[^" === M.value)) {
3346
- if (false !== r.posix && ":" === N) {
3347
- const t = M.value.slice(1);
3348
- if (t.includes("[")) {
3349
- M.posix = true;
3350
- if (t.includes(":")) {
3351
- const t = M.value.lastIndexOf("[");
3352
- const e = M.value.slice(0, t);
3353
- const r = M.value.slice(t + 2);
3354
- const n = o[r];
3355
- if (n) {
3356
- M.value = e + n;
3357
- H.backtrack = true;
3358
- B();
3359
- if (!p.output && 1 === h.indexOf(M)) p.output = E;
3360
- continue;
3361
- }
3362
- }
3363
- }
3364
- }
3365
- if ("[" === N && ":" !== I() || "-" === N && "]" === I()) N = `\\${N}`;
3366
- if ("]" === N && ("[" === M.value || "[^" === M.value)) N = `\\${N}`;
3367
- if (true === r.posix && "!" === N && "[" === M.value) N = "^";
3368
- M.value += N;
3369
- append({
3370
- value: N
3371
- });
3372
- continue;
3373
- }
3374
- if (1 === H.quotes && '"' !== N) {
3375
- N = s.escapeRegex(N);
3376
- M.value += N;
3377
- append({
3378
- value: N
3379
- });
3380
- continue;
3381
- }
3382
- if ('"' === N) {
3383
- H.quotes = 1 === H.quotes ? 0 : 1;
3384
- if (true === r.keepQuotes) push({
3385
- type: "text",
3386
- value: N
3387
- });
3388
- continue;
3389
- }
3390
- if ("(" === N) {
3391
- increment("parens");
3392
- push({
3393
- type: "paren",
3394
- value: N
3395
- });
3396
- continue;
3397
- }
3398
- if (")" === N) {
3399
- if (0 === H.parens && true === r.strictBrackets) throw new SyntaxError(syntaxError("opening", "("));
3400
- const t = D[D.length - 1];
3401
- if (t && H.parens === t.parens + 1) {
3402
- extglobClose(D.pop());
3403
- continue;
3404
- }
3405
- push({
3406
- type: "paren",
3407
- value: N,
3408
- output: H.parens ? ")" : "\\)"
3409
- });
3410
- decrement("parens");
3411
- continue;
3412
- }
3413
- if ("[" === N) {
3414
- if (true !== r.nobracket && remaining().includes("]")) increment("brackets");
3415
- else {
3416
- if (true !== r.nobracket && true === r.strictBrackets) throw new SyntaxError(syntaxError("closing", "]"));
3417
- N = `\\${N}`;
3418
- }
3419
- push({
3420
- type: "bracket",
3421
- value: N
3422
- });
3423
- continue;
3424
- }
3425
- if ("]" === N) {
3426
- if (true === r.nobracket || M && "bracket" === M.type && 1 === M.value.length) {
3427
- push({
3428
- type: "text",
3429
- value: N,
3430
- output: `\\${N}`
3431
- });
3432
- continue;
3433
- }
3434
- if (0 === H.brackets) {
3435
- if (true === r.strictBrackets) throw new SyntaxError(syntaxError("opening", "["));
3436
- push({
3437
- type: "text",
3438
- value: N,
3439
- output: `\\${N}`
3440
- });
3441
- continue;
3442
- }
3443
- decrement("brackets");
3444
- const t = M.value.slice(1);
3445
- if (true !== M.posix && "^" === t[0] && !t.includes("/")) N = `/${N}`;
3446
- M.value += N;
3447
- append({
3448
- value: N
3449
- });
3450
- if (false === r.literalBrackets || s.hasRegexChars(t)) continue;
3451
- const e = s.escapeRegex(M.value);
3452
- H.output = H.output.slice(0, -M.value.length);
3453
- if (true === r.literalBrackets) {
3454
- H.output += e;
3455
- M.value = e;
3456
- continue;
3457
- }
3458
- M.value = `(${d}${e}|${M.value})`;
3459
- H.output += M.value;
3460
- continue;
3461
- }
3462
- if ("{" === N && true !== r.nobrace) {
3463
- increment("braces");
3464
- const t = {
3465
- type: "brace",
3466
- value: N,
3467
- output: "(",
3468
- outputIndex: H.output.length,
3469
- tokensIndex: H.tokens.length
3470
- };
3471
- F.push(t);
3472
- push(t);
3473
- continue;
3474
- }
3475
- if ("}" === N) {
3476
- const t = F[F.length - 1];
3477
- if (true === r.nobrace || !t) {
3478
- push({
3479
- type: "text",
3480
- value: N,
3481
- output: N
3482
- });
3483
- continue;
3484
- }
3485
- let e = ")";
3486
- if (true === t.dots) {
3487
- const t = h.slice();
3488
- const n = [];
3489
- for(let e = t.length - 1; e >= 0; e--){
3490
- h.pop();
3491
- if ("brace" === t[e].type) break;
3492
- if ("dots" !== t[e].type) n.unshift(t[e].value);
3493
- }
3494
- e = expandRange(n, r);
3495
- H.backtrack = true;
3496
- }
3497
- if (true !== t.comma && true !== t.dots) {
3498
- const r = H.output.slice(0, t.outputIndex);
3499
- const n = H.tokens.slice(t.tokensIndex);
3500
- t.value = t.output = "\\{";
3501
- N = e = "\\}";
3502
- H.output = r;
3503
- for (const t of n)H.output += t.output || t.value;
3504
- }
3505
- push({
3506
- type: "brace",
3507
- value: N,
3508
- output: e
3509
- });
3510
- decrement("braces");
3511
- F.pop();
3512
- continue;
3513
- }
3514
- if ("|" === N) {
3515
- if (D.length > 0) D[D.length - 1].conditions++;
3516
- push({
3517
- type: "text",
3518
- value: N
3519
- });
3520
- continue;
3521
- }
3522
- if ("," === N) {
3523
- let t = N;
3524
- const e = F[F.length - 1];
3525
- if (e && "braces" === $[$.length - 1]) {
3526
- e.comma = true;
3527
- t = "|";
3528
- }
3529
- push({
3530
- type: "comma",
3531
- value: N,
3532
- output: t
3533
- });
3534
- continue;
3535
- }
3536
- if ("/" === N) {
3537
- if ("dot" === M.type && H.index === H.start + 1) {
3538
- H.start = H.index + 1;
3539
- H.consumed = "";
3540
- H.output = "";
3541
- h.pop();
3542
- M = p;
3543
- continue;
3544
- }
3545
- push({
3546
- type: "slash",
3547
- value: N,
3548
- output: v
3549
- });
3550
- continue;
3551
- }
3552
- if ("." === N) {
3553
- if (H.braces > 0 && "dot" === M.type) {
3554
- if ("." === M.value) M.output = S;
3555
- const t = F[F.length - 1];
3556
- M.type = "dots";
3557
- M.output += N;
3558
- M.value += N;
3559
- t.dots = true;
3560
- continue;
3561
- }
3562
- if (H.braces + H.parens === 0 && "bos" !== M.type && "slash" !== M.type) {
3563
- push({
3564
- type: "text",
3565
- value: N,
3566
- output: S
3567
- });
3568
- continue;
3569
- }
3570
- push({
3571
- type: "dot",
3572
- value: N,
3573
- output: S
3574
- });
3575
- continue;
3576
- }
3577
- if ("?" === N) {
3578
- const t = M && "(" === M.value;
3579
- if (!t && true !== r.noextglob && "(" === I() && "?" !== I(2)) {
3580
- extglobOpen("qmark", N);
3581
- continue;
3582
- }
3583
- if (M && "paren" === M.type) {
3584
- const t = I();
3585
- let e = N;
3586
- if ("<" === t && !s.supportsLookbehinds()) throw new Error("Node.js v10 or higher is required for regex lookbehinds");
3587
- if ("(" === M.value && !/[!=<:]/.test(t) || "<" === t && !/<([!=]|\w+>)/.test(remaining())) e = `\\${N}`;
3588
- push({
3589
- type: "text",
3590
- value: N,
3591
- output: e
3592
- });
3593
- continue;
3594
- }
3595
- if (true !== r.dot && ("slash" === M.type || "bos" === M.type)) {
3596
- push({
3597
- type: "qmark",
3598
- value: N,
3599
- output: k
3600
- });
3601
- continue;
3602
- }
3603
- push({
3604
- type: "qmark",
3605
- value: N,
3606
- output: x
3607
- });
3608
- continue;
3609
- }
3610
- if ("!" === N) {
3611
- if (true !== r.noextglob && "(" === I()) {
3612
- if ("?" !== I(2) || !/[!=<:]/.test(I(3))) {
3613
- extglobOpen("negate", N);
3614
- continue;
3615
- }
3616
- }
3617
- if (true !== r.nonegate && 0 === H.index) {
3618
- negate();
3619
- continue;
3620
- }
3621
- }
3622
- if ("+" === N) {
3623
- if (true !== r.noextglob && "(" === I() && "?" !== I(2)) {
3624
- extglobOpen("plus", N);
3625
- continue;
3626
- }
3627
- if (M && "(" === M.value || false === r.regex) {
3628
- push({
3629
- type: "plus",
3630
- value: N,
3631
- output: m
3632
- });
3633
- continue;
3634
- }
3635
- if (M && ("bracket" === M.type || "paren" === M.type || "brace" === M.type) || H.parens > 0) {
3636
- push({
3637
- type: "plus",
3638
- value: N
3639
- });
3640
- continue;
3641
- }
3642
- push({
3643
- type: "plus",
3644
- value: m
3645
- });
3646
- continue;
3647
- }
3648
- if ("@" === N) {
3649
- if (true !== r.noextglob && "(" === I() && "?" !== I(2)) {
3650
- push({
3651
- type: "at",
3652
- extglob: true,
3653
- value: N,
3654
- output: ""
3655
- });
3656
- continue;
3657
- }
3658
- push({
3659
- type: "text",
3660
- value: N
3661
- });
3662
- continue;
3663
- }
3664
- if ("*" !== N) {
3665
- if ("$" === N || "^" === N) N = `\\${N}`;
3666
- const t = a.exec(remaining());
3667
- if (t) {
3668
- N += t[0];
3669
- H.index += t[0].length;
3670
- }
3671
- push({
3672
- type: "text",
3673
- value: N
3674
- });
3675
- continue;
3676
- }
3677
- if (M && ("globstar" === M.type || true === M.star)) {
3678
- M.type = "star";
3679
- M.star = true;
3680
- M.value += N;
3681
- M.output = L;
3682
- H.backtrack = true;
3683
- H.globstar = true;
3684
- consume(N);
3685
- continue;
3686
- }
3687
- let e = remaining();
3688
- if (true !== r.noextglob && /^\([^?]/.test(e)) {
3689
- extglobOpen("star", N);
3690
- continue;
3691
- }
3692
- if ("star" === M.type) {
3693
- if (true === r.noglobstar) {
3694
- consume(N);
3695
- continue;
3696
- }
3697
- const n = M.prev;
3698
- const s = n.prev;
3699
- const i = "slash" === n.type || "bos" === n.type;
3700
- const o = s && ("star" === s.type || "globstar" === s.type);
3701
- if (true === r.bash && (!i || e[0] && "/" !== e[0])) {
3702
- push({
3703
- type: "star",
3704
- value: N,
3705
- output: ""
3706
- });
3707
- continue;
3708
- }
3709
- const a = H.braces > 0 && ("comma" === n.type || "brace" === n.type);
3710
- const u = D.length && ("pipe" === n.type || "paren" === n.type);
3711
- if (!i && "paren" !== n.type && !a && !u) {
3712
- push({
3713
- type: "star",
3714
- value: N,
3715
- output: ""
3716
- });
3717
- continue;
3718
- }
3719
- while("/**" === e.slice(0, 3)){
3720
- const r = t[H.index + 4];
3721
- if (r && "/" !== r) break;
3722
- e = e.slice(3);
3723
- consume("/**", 3);
3724
- }
3725
- if ("bos" === n.type && eos()) {
3726
- M.type = "globstar";
3727
- M.value += N;
3728
- M.output = globstar(r);
3729
- H.output = M.output;
3730
- H.globstar = true;
3731
- consume(N);
3732
- continue;
3733
- }
3734
- if ("slash" === n.type && "bos" !== n.prev.type && !o && eos()) {
3735
- H.output = H.output.slice(0, -(n.output + M.output).length);
3736
- n.output = `(?:${n.output}`;
3737
- M.type = "globstar";
3738
- M.output = globstar(r) + (r.strictSlashes ? ")" : "|$)");
3739
- M.value += N;
3740
- H.globstar = true;
3741
- H.output += n.output + M.output;
3742
- consume(N);
3743
- continue;
3744
- }
3745
- if ("slash" === n.type && "bos" !== n.prev.type && "/" === e[0]) {
3746
- const t = void 0 !== e[1] ? "|$" : "";
3747
- H.output = H.output.slice(0, -(n.output + M.output).length);
3748
- n.output = `(?:${n.output}`;
3749
- M.type = "globstar";
3750
- M.output = `${globstar(r)}${v}|${v}${t})`;
3751
- M.value += N;
3752
- H.output += n.output + M.output;
3753
- H.globstar = true;
3754
- consume(N + B());
3755
- push({
3756
- type: "slash",
3757
- value: "/",
3758
- output: ""
3759
- });
3760
- continue;
3761
- }
3762
- if ("bos" === n.type && "/" === e[0]) {
3763
- M.type = "globstar";
3764
- M.value += N;
3765
- M.output = `(?:^|${v}|${globstar(r)}${v})`;
3766
- H.output = M.output;
3767
- H.globstar = true;
3768
- consume(N + B());
3769
- push({
3770
- type: "slash",
3771
- value: "/",
3772
- output: ""
3773
- });
3774
- continue;
3775
- }
3776
- H.output = H.output.slice(0, -M.output.length);
3777
- M.type = "globstar";
3778
- M.output = globstar(r);
3779
- M.value += N;
3780
- H.output += M.output;
3781
- H.globstar = true;
3782
- consume(N);
3783
- continue;
3784
- }
3785
- const n = {
3786
- type: "star",
3787
- value: N,
3788
- output: L
3789
- };
3790
- if (true === r.bash) {
3791
- n.output = ".*?";
3792
- if ("bos" === M.type || "slash" === M.type) n.output = w + n.output;
3793
- push(n);
3794
- continue;
3795
- }
3796
- if (M && ("bracket" === M.type || "paren" === M.type) && true === r.regex) {
3797
- n.output = N;
3798
- push(n);
3799
- continue;
3800
- }
3801
- if (H.index === H.start || "slash" === M.type || "dot" === M.type) {
3802
- if ("dot" === M.type) {
3803
- H.output += R;
3804
- M.output += R;
3805
- } else if (true === r.dot) {
3806
- H.output += P;
3807
- M.output += P;
3808
- } else {
3809
- H.output += w;
3810
- M.output += w;
3811
- }
3812
- if ("*" !== I()) {
3813
- H.output += E;
3814
- M.output += E;
3815
- }
3816
- }
3817
- push(n);
3818
- }
3819
- while(H.brackets > 0){
3820
- if (true === r.strictBrackets) throw new SyntaxError(syntaxError("closing", "]"));
3821
- H.output = s.escapeLast(H.output, "[");
3822
- decrement("brackets");
3823
- }
3824
- while(H.parens > 0){
3825
- if (true === r.strictBrackets) throw new SyntaxError(syntaxError("closing", ")"));
3826
- H.output = s.escapeLast(H.output, "(");
3827
- decrement("parens");
3828
- }
3829
- while(H.braces > 0){
3830
- if (true === r.strictBrackets) throw new SyntaxError(syntaxError("closing", "}"));
3831
- H.output = s.escapeLast(H.output, "{");
3832
- decrement("braces");
3833
- }
3834
- if (true !== r.strictSlashes && ("star" === M.type || "bracket" === M.type)) push({
3835
- type: "maybe_slash",
3836
- value: "",
3837
- output: `${v}?`
3838
- });
3839
- if (true === H.backtrack) {
3840
- H.output = "";
3841
- for (const t of H.tokens){
3842
- H.output += null != t.output ? t.output : t.value;
3843
- if (t.suffix) H.output += t.suffix;
3844
- }
3845
- }
3846
- return H;
3847
- };
3848
- parse.fastpaths = (t, e)=>{
3849
- const r = {
3850
- ...e
3851
- };
3852
- const o = "number" == typeof r.maxLength ? Math.min(i, r.maxLength) : i;
3853
- const a = t.length;
3854
- if (a > o) throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`);
3855
- t = c[t] || t;
3856
- const u = s.isWindows(e);
3857
- const { DOT_LITERAL: l, SLASH_LITERAL: f, ONE_CHAR: p, DOTS_SLASH: h, NO_DOT: d, NO_DOTS: _, NO_DOTS_SLASH: g, STAR: y, START_ANCHOR: S } = n.globChars(u);
3858
- const m = r.dot ? _ : d;
3859
- const v = r.dot ? g : d;
3860
- const E = r.capture ? "" : "?:";
3861
- const A = {
3862
- negated: false,
3863
- prefix: ""
3864
- };
3865
- let b = true === r.bash ? ".*?" : y;
3866
- if (r.capture) b = `(${b})`;
3867
- const globstar = (t)=>{
3868
- if (true === t.noglobstar) return b;
3869
- return `(${E}(?:(?!${S}${t.dot ? h : l}).)*?)`;
3870
- };
3871
- const create = (t)=>{
3872
- switch(t){
3873
- case "*":
3874
- return `${m}${p}${b}`;
3875
- case ".*":
3876
- return `${l}${p}${b}`;
3877
- case "*.*":
3878
- return `${m}${b}${l}${p}${b}`;
3879
- case "*/*":
3880
- return `${m}${b}${f}${p}${v}${b}`;
3881
- case "**":
3882
- return m + globstar(r);
3883
- case "**/*":
3884
- return `(?:${m}${globstar(r)}${f})?${v}${p}${b}`;
3885
- case "**/*.*":
3886
- return `(?:${m}${globstar(r)}${f})?${v}${b}${l}${p}${b}`;
3887
- case "**/.*":
3888
- return `(?:${m}${globstar(r)}${f})?${l}${p}${b}`;
3889
- default:
3890
- {
3891
- const e = /^(.*?)\.(\w+)$/.exec(t);
3892
- if (!e) return;
3893
- const r = create(e[1]);
3894
- if (!r) return;
3895
- return r + l + e[2];
3896
- }
3897
- }
3898
- };
3899
- const R = s.removePrefix(t, A);
3900
- let P = create(R);
3901
- if (P && true !== r.strictSlashes) P += `${f}?`;
3902
- return P;
3903
- };
3904
- t.exports = parse;
3905
- },
3906
- 7631: (t, e, r)=>{
3907
- "use strict";
3908
- const n = r(1017);
3909
- const s = r(8640);
3910
- const i = r(6986);
3911
- const o = r(8658);
3912
- const a = r(7820);
3913
- const isObject = (t)=>t && "object" == typeof t && !Array.isArray(t);
3914
- const picomatch = (t, e, r = false)=>{
3915
- if (Array.isArray(t)) {
3916
- const n = t.map((t)=>picomatch(t, e, r));
3917
- const arrayMatcher = (t)=>{
3918
- for (const e of n){
3919
- const r = e(t);
3920
- if (r) return r;
3921
- }
3922
- return false;
3923
- };
3924
- return arrayMatcher;
3925
- }
3926
- const n = isObject(t) && t.tokens && t.input;
3927
- if ("" === t || "string" != typeof t && !n) throw new TypeError("Expected pattern to be a non-empty string");
3928
- const s = e || {};
3929
- const i = o.isWindows(e);
3930
- const a = n ? picomatch.compileRe(t, e) : picomatch.makeRe(t, e, false, true);
3931
- const u = a.state;
3932
- delete a.state;
3933
- let isIgnored = ()=>false;
3934
- if (s.ignore) {
3935
- const t = {
3936
- ...e,
3937
- ignore: null,
3938
- onMatch: null,
3939
- onResult: null
3940
- };
3941
- isIgnored = picomatch(s.ignore, t, r);
3942
- }
3943
- const matcher = (r, n = false)=>{
3944
- const { isMatch: o, match: c, output: l } = picomatch.test(r, a, e, {
3945
- glob: t,
3946
- posix: i
3947
- });
3948
- const f = {
3949
- glob: t,
3950
- state: u,
3951
- regex: a,
3952
- posix: i,
3953
- input: r,
3954
- output: l,
3955
- match: c,
3956
- isMatch: o
3957
- };
3958
- if ("function" == typeof s.onResult) s.onResult(f);
3959
- if (false === o) {
3960
- f.isMatch = false;
3961
- return n ? f : false;
3962
- }
3963
- if (isIgnored(r)) {
3964
- if ("function" == typeof s.onIgnore) s.onIgnore(f);
3965
- f.isMatch = false;
3966
- return n ? f : false;
3967
- }
3968
- if ("function" == typeof s.onMatch) s.onMatch(f);
3969
- return n ? f : true;
3970
- };
3971
- if (r) matcher.state = u;
3972
- return matcher;
3973
- };
3974
- picomatch.test = (t, e, r, { glob: n, posix: s } = {})=>{
3975
- if ("string" != typeof t) throw new TypeError("Expected input to be a string");
3976
- if ("" === t) return {
3977
- isMatch: false,
3978
- output: ""
3979
- };
3980
- const i = r || {};
3981
- const a = i.format || (s ? o.toPosixSlashes : null);
3982
- let u = t === n;
3983
- let c = u && a ? a(t) : t;
3984
- if (false === u) {
3985
- c = a ? a(t) : t;
3986
- u = c === n;
3987
- }
3988
- if (false === u || true === i.capture) u = true === i.matchBase || true === i.basename ? picomatch.matchBase(t, e, r, s) : e.exec(c);
3989
- return {
3990
- isMatch: Boolean(u),
3991
- match: u,
3992
- output: c
3993
- };
3994
- };
3995
- picomatch.matchBase = (t, e, r, s = o.isWindows(r))=>{
3996
- const i = e instanceof RegExp ? e : picomatch.makeRe(e, r);
3997
- return i.test(n.basename(t));
3998
- };
3999
- picomatch.isMatch = (t, e, r)=>picomatch(e, r)(t);
4000
- picomatch.parse = (t, e)=>{
4001
- if (Array.isArray(t)) return t.map((t)=>picomatch.parse(t, e));
4002
- return i(t, {
4003
- ...e,
4004
- fastpaths: false
4005
- });
4006
- };
4007
- picomatch.scan = (t, e)=>s(t, e);
4008
- picomatch.compileRe = (t, e, r = false, n = false)=>{
4009
- if (true === r) return t.output;
4010
- const s = e || {};
4011
- const i = s.contains ? "" : "^";
4012
- const o = s.contains ? "" : "$";
4013
- let a = `${i}(?:${t.output})${o}`;
4014
- if (t && true === t.negated) a = `^(?!${a}).*$`;
4015
- const u = picomatch.toRegex(a, e);
4016
- if (true === n) u.state = t;
4017
- return u;
4018
- };
4019
- picomatch.makeRe = (t, e = {}, r = false, n = false)=>{
4020
- if (!t || "string" != typeof t) throw new TypeError("Expected a non-empty string");
4021
- let s = {
4022
- negated: false,
4023
- fastpaths: true
4024
- };
4025
- if (false !== e.fastpaths && ("." === t[0] || "*" === t[0])) s.output = i.fastpaths(t, e);
4026
- if (!s.output) s = i(t, e);
4027
- return picomatch.compileRe(s, e, r, n);
4028
- };
4029
- picomatch.toRegex = (t, e)=>{
4030
- try {
4031
- const r = e || {};
4032
- return new RegExp(t, r.flags || (r.nocase ? "i" : ""));
4033
- } catch (t) {
4034
- if (e && true === e.debug) throw t;
4035
- return /$^/;
4036
- }
4037
- };
4038
- picomatch.constants = a;
4039
- t.exports = picomatch;
4040
- },
4041
- 8640: (t, e, r)=>{
4042
- "use strict";
4043
- const n = r(8658);
4044
- const { CHAR_ASTERISK: s, CHAR_AT: i, CHAR_BACKWARD_SLASH: o, CHAR_COMMA: a, CHAR_DOT: u, CHAR_EXCLAMATION_MARK: c, CHAR_FORWARD_SLASH: l, CHAR_LEFT_CURLY_BRACE: f, CHAR_LEFT_PARENTHESES: p, CHAR_LEFT_SQUARE_BRACKET: h, CHAR_PLUS: d, CHAR_QUESTION_MARK: _, CHAR_RIGHT_CURLY_BRACE: g, CHAR_RIGHT_PARENTHESES: y, CHAR_RIGHT_SQUARE_BRACKET: S } = r(7820);
4045
- const isPathSeparator = (t)=>t === l || t === o;
4046
- const depth = (t)=>{
4047
- if (true !== t.isPrefix) t.depth = t.isGlobstar ? 1 / 0 : 1;
4048
- };
4049
- const scan = (t, e)=>{
4050
- const r = e || {};
4051
- const m = t.length - 1;
4052
- const v = true === r.parts || true === r.scanToEnd;
4053
- const E = [];
4054
- const A = [];
4055
- const b = [];
4056
- let R = t;
4057
- let P = -1;
4058
- let x = 0;
4059
- let k = 0;
4060
- let T = false;
4061
- let C = false;
4062
- let w = false;
4063
- let O = false;
4064
- let L = false;
4065
- let H = false;
4066
- let D = false;
4067
- let F = false;
4068
- let $ = false;
4069
- let M = false;
4070
- let N = 0;
4071
- let I;
4072
- let B;
4073
- let j = {
4074
- value: "",
4075
- depth: 0,
4076
- isGlob: false
4077
- };
4078
- const eos = ()=>P >= m;
4079
- const peek = ()=>R.charCodeAt(P + 1);
4080
- const advance = ()=>{
4081
- I = B;
4082
- return R.charCodeAt(++P);
4083
- };
4084
- while(P < m){
4085
- B = advance();
4086
- let t;
4087
- if (B === o) {
4088
- D = j.backslashes = true;
4089
- B = advance();
4090
- if (B === f) H = true;
4091
- continue;
4092
- }
4093
- if (true === H || B === f) {
4094
- N++;
4095
- while(true !== eos() && (B = advance())){
4096
- if (B === o) {
4097
- D = j.backslashes = true;
4098
- advance();
4099
- continue;
4100
- }
4101
- if (B === f) {
4102
- N++;
4103
- continue;
4104
- }
4105
- if (true !== H && B === u && (B = advance()) === u) {
4106
- T = j.isBrace = true;
4107
- w = j.isGlob = true;
4108
- M = true;
4109
- if (true === v) continue;
4110
- break;
4111
- }
4112
- if (true !== H && B === a) {
4113
- T = j.isBrace = true;
4114
- w = j.isGlob = true;
4115
- M = true;
4116
- if (true === v) continue;
4117
- break;
4118
- }
4119
- if (B === g) {
4120
- N--;
4121
- if (0 === N) {
4122
- H = false;
4123
- T = j.isBrace = true;
4124
- M = true;
4125
- break;
4126
- }
4127
- }
4128
- }
4129
- if (true === v) continue;
4130
- break;
4131
- }
4132
- if (B === l) {
4133
- E.push(P);
4134
- A.push(j);
4135
- j = {
4136
- value: "",
4137
- depth: 0,
4138
- isGlob: false
4139
- };
4140
- if (true === M) continue;
4141
- if (I === u && P === x + 1) {
4142
- x += 2;
4143
- continue;
4144
- }
4145
- k = P + 1;
4146
- continue;
4147
- }
4148
- if (true !== r.noext) {
4149
- const t = B === d || B === i || B === s || B === _ || B === c;
4150
- if (true === t && peek() === p) {
4151
- w = j.isGlob = true;
4152
- O = j.isExtglob = true;
4153
- M = true;
4154
- if (B === c && P === x) $ = true;
4155
- if (true === v) {
4156
- while(true !== eos() && (B = advance())){
4157
- if (B === o) {
4158
- D = j.backslashes = true;
4159
- B = advance();
4160
- continue;
4161
- }
4162
- if (B === y) {
4163
- w = j.isGlob = true;
4164
- M = true;
4165
- break;
4166
- }
4167
- }
4168
- continue;
4169
- }
4170
- break;
4171
- }
4172
- }
4173
- if (B === s) {
4174
- if (I === s) L = j.isGlobstar = true;
4175
- w = j.isGlob = true;
4176
- M = true;
4177
- if (true === v) continue;
4178
- break;
4179
- }
4180
- if (B === _) {
4181
- w = j.isGlob = true;
4182
- M = true;
4183
- if (true === v) continue;
4184
- break;
4185
- }
4186
- if (B === h) {
4187
- while(true !== eos() && (t = advance())){
4188
- if (t === o) {
4189
- D = j.backslashes = true;
4190
- advance();
4191
- continue;
4192
- }
4193
- if (t === S) {
4194
- C = j.isBracket = true;
4195
- w = j.isGlob = true;
4196
- M = true;
4197
- break;
4198
- }
4199
- }
4200
- if (true === v) continue;
4201
- break;
4202
- }
4203
- if (true !== r.nonegate && B === c && P === x) {
4204
- F = j.negated = true;
4205
- x++;
4206
- continue;
4207
- }
4208
- if (true !== r.noparen && B === p) {
4209
- w = j.isGlob = true;
4210
- if (true === v) {
4211
- while(true !== eos() && (B = advance())){
4212
- if (B === p) {
4213
- D = j.backslashes = true;
4214
- B = advance();
4215
- continue;
4216
- }
4217
- if (B === y) {
4218
- M = true;
4219
- break;
4220
- }
4221
- }
4222
- continue;
4223
- }
4224
- break;
4225
- }
4226
- if (true === w) {
4227
- M = true;
4228
- if (true === v) continue;
4229
- break;
4230
- }
4231
- }
4232
- if (true === r.noext) {
4233
- O = false;
4234
- w = false;
4235
- }
4236
- let G = R;
4237
- let W = "";
4238
- let U = "";
4239
- if (x > 0) {
4240
- W = R.slice(0, x);
4241
- R = R.slice(x);
4242
- k -= x;
4243
- }
4244
- if (G && true === w && k > 0) {
4245
- G = R.slice(0, k);
4246
- U = R.slice(k);
4247
- } else if (true === w) {
4248
- G = "";
4249
- U = R;
4250
- } else G = R;
4251
- if (G && "" !== G && "/" !== G && G !== R) {
4252
- if (isPathSeparator(G.charCodeAt(G.length - 1))) G = G.slice(0, -1);
4253
- }
4254
- if (true === r.unescape) {
4255
- if (U) U = n.removeBackslashes(U);
4256
- if (G && true === D) G = n.removeBackslashes(G);
4257
- }
4258
- const K = {
4259
- prefix: W,
4260
- input: t,
4261
- start: x,
4262
- base: G,
4263
- glob: U,
4264
- isBrace: T,
4265
- isBracket: C,
4266
- isGlob: w,
4267
- isExtglob: O,
4268
- isGlobstar: L,
4269
- negated: F,
4270
- negatedExtglob: $
4271
- };
4272
- if (true === r.tokens) {
4273
- K.maxDepth = 0;
4274
- if (!isPathSeparator(B)) A.push(j);
4275
- K.tokens = A;
4276
- }
4277
- if (true === r.parts || true === r.tokens) {
4278
- let e;
4279
- for(let n = 0; n < E.length; n++){
4280
- const s = e ? e + 1 : x;
4281
- const i = E[n];
4282
- const o = t.slice(s, i);
4283
- if (r.tokens) {
4284
- if (0 === n && 0 !== x) {
4285
- A[n].isPrefix = true;
4286
- A[n].value = W;
4287
- } else A[n].value = o;
4288
- depth(A[n]);
4289
- K.maxDepth += A[n].depth;
4290
- }
4291
- if (0 !== n || "" !== o) b.push(o);
4292
- e = i;
4293
- }
4294
- if (e && e + 1 < t.length) {
4295
- const n = t.slice(e + 1);
4296
- b.push(n);
4297
- if (r.tokens) {
4298
- A[A.length - 1].value = n;
4299
- depth(A[A.length - 1]);
4300
- K.maxDepth += A[A.length - 1].depth;
4301
- }
4302
- }
4303
- K.slashes = E;
4304
- K.parts = b;
4305
- }
4306
- return K;
4307
- };
4308
- t.exports = scan;
4309
- },
4310
- 8658: (t, e, r)=>{
4311
- "use strict";
4312
- const n = r(1017);
4313
- const s = "win32" === process.platform;
4314
- const { REGEX_BACKSLASH: i, REGEX_REMOVE_BACKSLASH: o, REGEX_SPECIAL_CHARS: a, REGEX_SPECIAL_CHARS_GLOBAL: u } = r(7820);
4315
- e.isObject = (t)=>null !== t && "object" == typeof t && !Array.isArray(t);
4316
- e.hasRegexChars = (t)=>a.test(t);
4317
- e.isRegexChar = (t)=>1 === t.length && e.hasRegexChars(t);
4318
- e.escapeRegex = (t)=>t.replace(u, "\\$1");
4319
- e.toPosixSlashes = (t)=>t.replace(i, "/");
4320
- e.removeBackslashes = (t)=>t.replace(o, (t)=>"\\" === t ? "" : t);
4321
- e.supportsLookbehinds = ()=>{
4322
- const t = process.version.slice(1).split(".").map(Number);
4323
- if (3 === t.length && t[0] >= 9 || 8 === t[0] && t[1] >= 10) return true;
4324
- return false;
4325
- };
4326
- e.isWindows = (t)=>{
4327
- if (t && "boolean" == typeof t.windows) return t.windows;
4328
- return true === s || "\\" === n.sep;
4329
- };
4330
- e.escapeLast = (t, r, n)=>{
4331
- const s = t.lastIndexOf(r, n);
4332
- if (-1 === s) return t;
4333
- if ("\\" === t[s - 1]) return e.escapeLast(t, r, s - 1);
4334
- return `${t.slice(0, s)}\\${t.slice(s)}`;
4335
- };
4336
- e.removePrefix = (t, e = {})=>{
4337
- let r = t;
4338
- if (r.startsWith("./")) {
4339
- r = r.slice(2);
4340
- e.prefix = "./";
4341
- }
4342
- return r;
4343
- };
4344
- e.wrapOutput = (t, e = {}, r = {})=>{
4345
- const n = r.contains ? "" : "^";
4346
- const s = r.contains ? "" : "$";
4347
- let i = `${n}(?:${t})${s}`;
4348
- if (true === e.negated) i = `(?:^(?!${i}).*$)`;
4349
- return i;
4350
- };
4351
- },
4352
- 8453: (t)=>{
4353
- /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ let e;
4354
- t.exports = "function" == typeof queueMicrotask ? queueMicrotask.bind("u" > typeof window ? window : global) : (t)=>(e || (e = Promise.resolve())).then(t).catch((t)=>setTimeout(()=>{
4355
- throw t;
4356
- }, 0));
4357
- },
4358
- 1816: (t)=>{
4359
- "use strict";
4360
- function reusify(t) {
4361
- var e = new t;
4362
- var r = e;
4363
- function get() {
4364
- var n = e;
4365
- if (n.next) e = n.next;
4366
- else {
4367
- e = new t;
4368
- r = e;
4369
- }
4370
- n.next = null;
4371
- return n;
4372
- }
4373
- function release(t) {
4374
- r.next = t;
4375
- r = t;
4376
- }
4377
- return {
4378
- get: get,
4379
- release: release
4380
- };
4381
- }
4382
- t.exports = reusify;
4383
- },
4384
- 5341: (t, e, r)=>{
4385
- /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ t.exports = runParallel;
4386
- const n = r(8453);
4387
- function runParallel(t, e) {
4388
- let r, s, i;
4389
- let o = true;
4390
- if (Array.isArray(t)) {
4391
- r = [];
4392
- s = t.length;
4393
- } else {
4394
- i = Object.keys(t);
4395
- r = {};
4396
- s = i.length;
4397
- }
4398
- function done(t) {
4399
- function end() {
4400
- if (e) e(t, r);
4401
- e = null;
4402
- }
4403
- if (o) n(end);
4404
- else end();
4405
- }
4406
- function each(t, e, n) {
4407
- r[t] = n;
4408
- if (0 === --s || e) done(e);
4409
- }
4410
- if (s) if (i) i.forEach(function(e) {
4411
- t[e](function(t, r) {
4412
- each(e, t, r);
4413
- });
4414
- });
4415
- else t.forEach(function(t, e) {
4416
- t(function(t, r) {
4417
- each(e, t, r);
4418
- });
4419
- });
4420
- else done(null);
4421
- o = false;
4422
- }
4423
- },
4424
- 211: (t, e, r)=>{
4425
- "use strict";
4426
- /*!
4427
- * to-regex-range <https://github.com/micromatch/to-regex-range>
4428
- *
4429
- * Copyright (c) 2015-present, Jon Schlinkert.
4430
- * Released under the MIT License.
4431
- */ const n = r(8387);
4432
- const toRegexRange = (t, e, r)=>{
4433
- if (false === n(t)) throw new TypeError("toRegexRange: expected the first argument to be a number");
4434
- if (void 0 === e || t === e) return String(t);
4435
- if (false === n(e)) throw new TypeError("toRegexRange: expected the second argument to be a number.");
4436
- let s = {
4437
- relaxZeros: true,
4438
- ...r
4439
- };
4440
- if ("boolean" == typeof s.strictZeros) s.relaxZeros = false === s.strictZeros;
4441
- let i = String(s.relaxZeros);
4442
- let o = String(s.shorthand);
4443
- let a = String(s.capture);
4444
- let u = String(s.wrap);
4445
- let c = t + ":" + e + "=" + i + o + a + u;
4446
- if (toRegexRange.cache.hasOwnProperty(c)) return toRegexRange.cache[c].result;
4447
- let l = Math.min(t, e);
4448
- let f = Math.max(t, e);
4449
- if (1 === Math.abs(l - f)) {
4450
- let r = t + "|" + e;
4451
- if (s.capture) return `(${r})`;
4452
- if (false === s.wrap) return r;
4453
- return `(?:${r})`;
4454
- }
4455
- let p = hasPadding(t) || hasPadding(e);
4456
- let h = {
4457
- min: t,
4458
- max: e,
4459
- a: l,
4460
- b: f
4461
- };
4462
- let d = [];
4463
- let _ = [];
4464
- if (p) {
4465
- h.isPadded = p;
4466
- h.maxLen = String(h.max).length;
4467
- }
4468
- if (l < 0) {
4469
- let t = f < 0 ? Math.abs(f) : 1;
4470
- _ = splitToPatterns(t, Math.abs(l), h, s);
4471
- l = h.a = 0;
4472
- }
4473
- if (f >= 0) d = splitToPatterns(l, f, h, s);
4474
- h.negatives = _;
4475
- h.positives = d;
4476
- h.result = collatePatterns(_, d, s);
4477
- if (true === s.capture) h.result = `(${h.result})`;
4478
- else if (false !== s.wrap && d.length + _.length > 1) h.result = `(?:${h.result})`;
4479
- toRegexRange.cache[c] = h;
4480
- return h.result;
4481
- };
4482
- function collatePatterns(t, e, r) {
4483
- let n = filterPatterns(t, e, "-", false, r) || [];
4484
- let s = filterPatterns(e, t, "", false, r) || [];
4485
- let i = filterPatterns(t, e, "-?", true, r) || [];
4486
- let o = n.concat(i).concat(s);
4487
- return o.join("|");
4488
- }
4489
- function splitToRanges(t, e) {
4490
- let r = 1;
4491
- let n = 1;
4492
- let s = countNines(t, r);
4493
- let i = new Set([
4494
- e
4495
- ]);
4496
- while(t <= s && s <= e){
4497
- i.add(s);
4498
- r += 1;
4499
- s = countNines(t, r);
4500
- }
4501
- s = countZeros(e + 1, n) - 1;
4502
- while(t < s && s <= e){
4503
- i.add(s);
4504
- n += 1;
4505
- s = countZeros(e + 1, n) - 1;
4506
- }
4507
- i = [
4508
- ...i
4509
- ];
4510
- i.sort(compare);
4511
- return i;
4512
- }
4513
- function rangeToPattern(t, e, r) {
4514
- if (t === e) return {
4515
- pattern: t,
4516
- count: [],
4517
- digits: 0
4518
- };
4519
- let n = zip(t, e);
4520
- let s = n.length;
4521
- let i = "";
4522
- let o = 0;
4523
- for(let t = 0; t < s; t++){
4524
- let [e, s] = n[t];
4525
- if (e === s) i += e;
4526
- else if ("0" !== e || "9" !== s) i += toCharacterClass(e, s, r);
4527
- else o++;
4528
- }
4529
- if (o) i += true === r.shorthand ? "\\d" : "[0-9]";
4530
- return {
4531
- pattern: i,
4532
- count: [
4533
- o
4534
- ],
4535
- digits: s
4536
- };
4537
- }
4538
- function splitToPatterns(t, e, r, n) {
4539
- let s = splitToRanges(t, e);
4540
- let i = [];
4541
- let o = t;
4542
- let a;
4543
- for(let t = 0; t < s.length; t++){
4544
- let e = s[t];
4545
- let u = rangeToPattern(String(o), String(e), n);
4546
- let c = "";
4547
- if (!r.isPadded && a && a.pattern === u.pattern) {
4548
- if (a.count.length > 1) a.count.pop();
4549
- a.count.push(u.count[0]);
4550
- a.string = a.pattern + toQuantifier(a.count);
4551
- o = e + 1;
4552
- continue;
4553
- }
4554
- if (r.isPadded) c = padZeros(e, r, n);
4555
- u.string = c + u.pattern + toQuantifier(u.count);
4556
- i.push(u);
4557
- o = e + 1;
4558
- a = u;
4559
- }
4560
- return i;
4561
- }
4562
- function filterPatterns(t, e, r, n, s) {
4563
- let i = [];
4564
- for (let s of t){
4565
- let { string: t } = s;
4566
- if (!n && !contains(e, "string", t)) i.push(r + t);
4567
- if (n && contains(e, "string", t)) i.push(r + t);
4568
- }
4569
- return i;
4570
- }
4571
- function zip(t, e) {
4572
- let r = [];
4573
- for(let n = 0; n < t.length; n++)r.push([
4574
- t[n],
4575
- e[n]
4576
- ]);
4577
- return r;
4578
- }
4579
- function compare(t, e) {
4580
- return t > e ? 1 : e > t ? -1 : 0;
4581
- }
4582
- function contains(t, e, r) {
4583
- return t.some((t)=>t[e] === r);
4584
- }
4585
- function countNines(t, e) {
4586
- return Number(String(t).slice(0, -e) + "9".repeat(e));
4587
- }
4588
- function countZeros(t, e) {
4589
- return t - t % Math.pow(10, e);
4590
- }
4591
- function toQuantifier(t) {
4592
- let [e = 0, r = ""] = t;
4593
- if (r || e > 1) return `{${e + (r ? "," + r : "")}}`;
4594
- return "";
4595
- }
4596
- function toCharacterClass(t, e, r) {
4597
- return `[${t}${e - t === 1 ? "" : "-"}${e}]`;
4598
- }
4599
- function hasPadding(t) {
4600
- return /^-?(0+)\d/.test(t);
4601
- }
4602
- function padZeros(t, e, r) {
4603
- if (!e.isPadded) return t;
4604
- let n = Math.abs(e.maxLen - String(t).length);
4605
- let s = false !== r.relaxZeros;
4606
- switch(n){
4607
- case 0:
4608
- return "";
4609
- case 1:
4610
- return s ? "0?" : "0";
4611
- case 2:
4612
- return s ? "0{0,2}" : "00";
4613
- default:
4614
- return s ? `0{0,${n}}` : `0{${n}}`;
4615
- }
4616
- }
4617
- toRegexRange.cache = {};
4618
- toRegexRange.clearCache = ()=>toRegexRange.cache = {};
4619
- t.exports = toRegexRange;
4620
- },
4621
- 2361: (t)=>{
4622
- "use strict";
4623
- t.exports = require("events");
4624
- },
4625
- 7147: (t)=>{
4626
- "use strict";
4627
- t.exports = require("fs");
4628
- },
4629
- 2037: (t)=>{
4630
- "use strict";
4631
- t.exports = require("os");
4632
- },
4633
- 1017: (t)=>{
4634
- "use strict";
4635
- t.exports = require("path");
4636
- },
4637
- 2781: (t)=>{
4638
- "use strict";
4639
- t.exports = require("stream");
4640
- },
4641
- 3837: (t)=>{
4642
- "use strict";
4643
- t.exports = require("util");
4644
- }
4645
- };
4646
- var e = {};
4647
- function __nccwpck_require__(r) {
4648
- var n = e[r];
4649
- if (void 0 !== n) return n.exports;
4650
- var s = e[r] = {
4651
- exports: {}
4652
- };
4653
- var i = true;
4654
- try {
4655
- t[r](s, s.exports, __nccwpck_require__);
4656
- i = false;
4657
- } finally{
4658
- if (i) delete e[r];
4659
- }
4660
- return s.exports;
4661
- }
4662
- if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
4663
- var r = __nccwpck_require__(3924);
4664
- module.exports = r;
4665
- })();