@modern-js/utils 1.3.7 → 1.5.0

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 (317) hide show
  1. package/.eslintrc.js +9 -0
  2. package/CHANGELOG.md +31 -0
  3. package/compiled/browserslist/index.d.ts +178 -0
  4. package/compiled/browserslist/index.js +1 -0
  5. package/compiled/browserslist/license +20 -0
  6. package/compiled/browserslist/package.json +1 -0
  7. package/compiled/chalk/index.d.ts +415 -0
  8. package/compiled/chalk/index.js +1 -0
  9. package/compiled/chalk/license +9 -0
  10. package/compiled/chalk/package.json +1 -0
  11. package/compiled/chokidar/anymatch/index.d.ts +19 -0
  12. package/compiled/chokidar/fsevents.node +0 -0
  13. package/compiled/chokidar/index.js +40 -0
  14. package/compiled/chokidar/license +21 -0
  15. package/compiled/chokidar/package.json +1 -0
  16. package/compiled/chokidar/types/index.d.ts +188 -0
  17. package/compiled/commander/index.js +1 -0
  18. package/compiled/commander/license +22 -0
  19. package/compiled/commander/package.json +1 -0
  20. package/compiled/commander/typings/index.d.ts +774 -0
  21. package/compiled/debug/index.d.ts +54 -0
  22. package/compiled/debug/index.js +1 -0
  23. package/compiled/debug/license +20 -0
  24. package/compiled/debug/ms/index.d.ts +25 -0
  25. package/compiled/debug/package.json +1 -0
  26. package/compiled/execa/index.d.ts +564 -0
  27. package/compiled/execa/index.js +1 -0
  28. package/compiled/execa/license +9 -0
  29. package/compiled/execa/package.json +1 -0
  30. package/compiled/filesize/filesize.d.ts +131 -0
  31. package/compiled/filesize/index.js +9 -0
  32. package/compiled/filesize/license +28 -0
  33. package/compiled/filesize/package.json +1 -0
  34. package/compiled/fs-extra/index.d.ts +563 -0
  35. package/compiled/fs-extra/index.js +1 -0
  36. package/compiled/fs-extra/license +15 -0
  37. package/compiled/fs-extra/package.json +1 -0
  38. package/compiled/glob/index.d.ts +91 -0
  39. package/compiled/glob/index.js +1 -0
  40. package/compiled/glob/license +21 -0
  41. package/compiled/glob/minimatch/index.d.ts +204 -0
  42. package/compiled/glob/package.json +1 -0
  43. package/compiled/gzip-size/index.d.ts +96 -0
  44. package/compiled/gzip-size/index.js +1 -0
  45. package/compiled/gzip-size/license +9 -0
  46. package/compiled/gzip-size/package.json +1 -0
  47. package/compiled/import-lazy/index.d.ts +26 -0
  48. package/compiled/import-lazy/index.js +1 -0
  49. package/compiled/import-lazy/license +9 -0
  50. package/compiled/import-lazy/package.json +1 -0
  51. package/compiled/js-yaml/index.d.ts +154 -0
  52. package/compiled/js-yaml/index.js +1 -0
  53. package/compiled/js-yaml/license +21 -0
  54. package/compiled/js-yaml/package.json +1 -0
  55. package/compiled/lodash/common/array.d.ts +2126 -0
  56. package/compiled/lodash/common/collection.d.ts +1930 -0
  57. package/compiled/lodash/common/common.d.ts +280 -0
  58. package/compiled/lodash/common/date.d.ts +23 -0
  59. package/compiled/lodash/common/function.d.ts +1446 -0
  60. package/compiled/lodash/common/lang.d.ts +1693 -0
  61. package/compiled/lodash/common/math.d.ts +405 -0
  62. package/compiled/lodash/common/number.d.ts +131 -0
  63. package/compiled/lodash/common/object.d.ts +2519 -0
  64. package/compiled/lodash/common/seq.d.ts +210 -0
  65. package/compiled/lodash/common/string.d.ts +788 -0
  66. package/compiled/lodash/common/util.d.ts +1220 -0
  67. package/compiled/lodash/index.d.ts +46 -0
  68. package/compiled/lodash/index.js +9 -0
  69. package/compiled/lodash/license +47 -0
  70. package/compiled/lodash/package.json +1 -0
  71. package/compiled/pkg-up/index.d.ts +48 -0
  72. package/compiled/pkg-up/index.js +1 -0
  73. package/compiled/pkg-up/license +9 -0
  74. package/compiled/pkg-up/package.json +1 -0
  75. package/compiled/recursive-readdir/index.d.ts +21 -0
  76. package/compiled/recursive-readdir/index.js +1 -0
  77. package/compiled/recursive-readdir/license +21 -0
  78. package/compiled/recursive-readdir/package.json +1 -0
  79. package/compiled/signale/index.d.ts +162 -0
  80. package/compiled/signale/index.js +1 -0
  81. package/compiled/signale/package.json +1 -0
  82. package/compiled/strip-ansi/index.d.ts +17 -0
  83. package/compiled/strip-ansi/index.js +1 -0
  84. package/compiled/strip-ansi/license +9 -0
  85. package/compiled/strip-ansi/package.json +1 -0
  86. package/compiled/upath/index.js +1 -0
  87. package/compiled/upath/license +22 -0
  88. package/compiled/upath/package.json +1 -0
  89. package/compiled/upath/upath.d.ts +241 -0
  90. package/dist/{types/FileSizeReporter.d.ts → FileSizeReporter.d.ts} +5 -5
  91. package/dist/FileSizeReporter.js +151 -0
  92. package/dist/{types/alias.d.ts → alias.d.ts} +12 -14
  93. package/dist/alias.js +62 -0
  94. package/dist/analyzeProject.d.ts +1 -0
  95. package/dist/analyzeProject.js +44 -0
  96. package/dist/applyOptionsChain.d.ts +6 -0
  97. package/dist/applyOptionsChain.js +30 -0
  98. package/dist/clearConsole.d.ts +1 -0
  99. package/dist/clearConsole.js +9 -0
  100. package/dist/{types/compatRequire.d.ts → compatRequire.d.ts} +1 -1
  101. package/dist/compatRequire.js +28 -0
  102. package/dist/compiled.d.ts +21 -0
  103. package/dist/compiled.js +33 -0
  104. package/dist/constants.d.ts +222 -0
  105. package/dist/constants.js +277 -0
  106. package/dist/{js/modern/debug.js → debug.d.ts} +1 -3
  107. package/dist/debug.js +11 -0
  108. package/dist/emptyDir.d.ts +1 -0
  109. package/dist/emptyDir.js +19 -0
  110. package/dist/{types/ensureAbsolutePath.d.ts → ensureAbsolutePath.d.ts} +1 -1
  111. package/dist/ensureAbsolutePath.js +15 -0
  112. package/dist/{types/findExists.d.ts → findExists.d.ts} +1 -1
  113. package/dist/findExists.js +21 -0
  114. package/dist/{types/format.d.ts → format.d.ts} +3 -3
  115. package/dist/format.js +113 -0
  116. package/dist/{types/generateMetaTags.d.ts → generateMetaTags.d.ts} +3 -3
  117. package/dist/generateMetaTags.js +48 -0
  118. package/dist/{types/getBrowserslist.d.ts → getBrowserslist.d.ts} +1 -1
  119. package/dist/getBrowserslist.js +7 -0
  120. package/dist/{types/getCacheIdentifier.d.ts → getCacheIdentifier.d.ts} +3 -3
  121. package/dist/getCacheIdentifier.js +24 -0
  122. package/dist/{types/getEntryOptions.d.ts → getEntryOptions.d.ts} +1 -1
  123. package/dist/getEntryOptions.js +26 -0
  124. package/dist/{types/getPackageManager.d.ts → getPackageManager.d.ts} +1 -1
  125. package/dist/getPackageManager.js +47 -0
  126. package/dist/{types/getPort.d.ts → getPort.d.ts} +1 -1
  127. package/dist/getPort.js +62 -0
  128. package/dist/getServerConfig.d.ts +1 -0
  129. package/dist/getServerConfig.js +39 -0
  130. package/dist/{types/import.d.ts → import.d.ts} +2 -2
  131. package/dist/import.js +10 -0
  132. package/dist/{types/index.d.ts → index.d.ts} +5 -4
  133. package/dist/index.js +46 -0
  134. package/dist/{types/is → is}/index.d.ts +1 -4
  135. package/dist/is/index.js +82 -0
  136. package/dist/{types/is → is}/node-env.d.ts +1 -1
  137. package/dist/is/node-env.js +12 -0
  138. package/dist/is/platform.d.ts +2 -0
  139. package/dist/is/platform.js +10 -0
  140. package/dist/{types/is → is}/type.d.ts +1 -1
  141. package/dist/is/type.js +38 -0
  142. package/dist/logger.d.ts +63 -0
  143. package/dist/logger.js +128 -0
  144. package/dist/{types/monorepo.d.ts → monorepo.d.ts} +3 -3
  145. package/dist/monorepo.js +80 -0
  146. package/dist/{types/nodeEnv.d.ts → nodeEnv.d.ts} +1 -1
  147. package/dist/nodeEnv.js +49 -0
  148. package/dist/{types/path.d.ts → path.d.ts} +1 -1
  149. package/dist/path.js +14 -0
  150. package/dist/{types/prettyInstructions.d.ts → prettyInstructions.d.ts} +2 -2
  151. package/dist/prettyInstructions.js +64 -0
  152. package/dist/{types/printBuildError.d.ts → printBuildError.d.ts} +1 -1
  153. package/dist/printBuildError.js +43 -0
  154. package/dist/{types/readTsConfig.d.ts → readTsConfig.d.ts} +1 -1
  155. package/dist/readTsConfig.js +19 -0
  156. package/dist/{types/removeSlash.d.ts → removeSlash.d.ts} +1 -1
  157. package/dist/removeSlash.js +9 -0
  158. package/dist/{types/runtimeExports.d.ts → runtimeExports.d.ts} +3 -3
  159. package/dist/runtimeExports.js +53 -0
  160. package/dist/ssrHelpers.d.ts +4 -0
  161. package/dist/ssrHelpers.js +7 -0
  162. package/dist/storage.d.ts +5 -0
  163. package/dist/storage.js +61 -0
  164. package/dist/{types/wait.d.ts → wait.d.ts} +1 -1
  165. package/dist/wait.js +7 -0
  166. package/dist/{types/watch.d.ts → watch.d.ts} +4 -4
  167. package/dist/watch.js +64 -0
  168. package/package.json +55 -37
  169. package/tsconfig.json +3 -5
  170. package/dist/js/modern/FileSizeReporter.js +0 -156
  171. package/dist/js/modern/alias.js +0 -74
  172. package/dist/js/modern/applyOptionsChain.js +0 -27
  173. package/dist/js/modern/chalk.js +0 -2
  174. package/dist/js/modern/clearConsole.js +0 -5
  175. package/dist/js/modern/compatRequire.js +0 -26
  176. package/dist/js/modern/constants.js +0 -333
  177. package/dist/js/modern/emptyDir.js +0 -6
  178. package/dist/js/modern/ensureAbsolutePath.js +0 -9
  179. package/dist/js/modern/findExists.js +0 -16
  180. package/dist/js/modern/format.js +0 -137
  181. package/dist/js/modern/generateMetaTags.js +0 -49
  182. package/dist/js/modern/getBrowserslist.js +0 -5
  183. package/dist/js/modern/getCacheIdentifier.js +0 -20
  184. package/dist/js/modern/getEntryOptions.js +0 -24
  185. package/dist/js/modern/getPackageManager.js +0 -37
  186. package/dist/js/modern/getPort.js +0 -52
  187. package/dist/js/modern/import.js +0 -11
  188. package/dist/js/modern/index.js +0 -34
  189. package/dist/js/modern/is/index.js +0 -77
  190. package/dist/js/modern/is/node-env.js +0 -5
  191. package/dist/js/modern/is/platform.js +0 -2
  192. package/dist/js/modern/is/type.js +0 -25
  193. package/dist/js/modern/logger.js +0 -152
  194. package/dist/js/modern/monorepo.js +0 -84
  195. package/dist/js/modern/nodeEnv.js +0 -31
  196. package/dist/js/modern/path.js +0 -5
  197. package/dist/js/modern/pkgUp.js +0 -2
  198. package/dist/js/modern/prettyInstructions.js +0 -79
  199. package/dist/js/modern/printBuildError.js +0 -40
  200. package/dist/js/modern/readTsConfig.js +0 -13
  201. package/dist/js/modern/removeSlash.js +0 -3
  202. package/dist/js/modern/runtimeExports.js +0 -52
  203. package/dist/js/modern/wait.js +0 -5
  204. package/dist/js/modern/watch.js +0 -43
  205. package/dist/js/node/FileSizeReporter.js +0 -175
  206. package/dist/js/node/alias.js +0 -97
  207. package/dist/js/node/applyOptionsChain.js +0 -37
  208. package/dist/js/node/chalk.js +0 -15
  209. package/dist/js/node/clearConsole.js +0 -14
  210. package/dist/js/node/compatRequire.js +0 -41
  211. package/dist/js/node/constants.js +0 -353
  212. package/dist/js/node/debug.js +0 -19
  213. package/dist/js/node/emptyDir.js +0 -18
  214. package/dist/js/node/ensureAbsolutePath.js +0 -20
  215. package/dist/js/node/findExists.js +0 -27
  216. package/dist/js/node/format.js +0 -141
  217. package/dist/js/node/generateMetaTags.js +0 -58
  218. package/dist/js/node/getBrowserslist.js +0 -17
  219. package/dist/js/node/getCacheIdentifier.js +0 -27
  220. package/dist/js/node/getEntryOptions.js +0 -35
  221. package/dist/js/node/getPackageManager.js +0 -51
  222. package/dist/js/node/getPort.js +0 -67
  223. package/dist/js/node/import.js +0 -19
  224. package/dist/js/node/index.js +0 -465
  225. package/dist/js/node/is/index.js +0 -150
  226. package/dist/js/node/is/node-env.js +0 -23
  227. package/dist/js/node/is/platform.js +0 -14
  228. package/dist/js/node/is/type.js +0 -46
  229. package/dist/js/node/logger.js +0 -162
  230. package/dist/js/node/monorepo.js +0 -118
  231. package/dist/js/node/nodeEnv.js +0 -45
  232. package/dist/js/node/path.js +0 -24
  233. package/dist/js/node/pkgUp.js +0 -15
  234. package/dist/js/node/prettyInstructions.js +0 -95
  235. package/dist/js/node/printBuildError.js +0 -52
  236. package/dist/js/node/readTsConfig.js +0 -28
  237. package/dist/js/node/removeSlash.js +0 -18
  238. package/dist/js/node/runtimeExports.js +0 -68
  239. package/dist/js/node/wait.js +0 -12
  240. package/dist/js/node/watch.js +0 -61
  241. package/dist/js/treeshaking/FileSizeReporter.js +0 -185
  242. package/dist/js/treeshaking/alias.js +0 -72
  243. package/dist/js/treeshaking/applyOptionsChain.js +0 -31
  244. package/dist/js/treeshaking/chalk.js +0 -2
  245. package/dist/js/treeshaking/clearConsole.js +0 -5
  246. package/dist/js/treeshaking/compatRequire.js +0 -29
  247. package/dist/js/treeshaking/constants.js +0 -333
  248. package/dist/js/treeshaking/debug.js +0 -10
  249. package/dist/js/treeshaking/emptyDir.js +0 -37
  250. package/dist/js/treeshaking/ensureAbsolutePath.js +0 -11
  251. package/dist/js/treeshaking/findExists.js +0 -33
  252. package/dist/js/treeshaking/format.js +0 -167
  253. package/dist/js/treeshaking/generateMetaTags.js +0 -55
  254. package/dist/js/treeshaking/getBrowserslist.js +0 -7
  255. package/dist/js/treeshaking/getCacheIdentifier.js +0 -35
  256. package/dist/js/treeshaking/getEntryOptions.js +0 -26
  257. package/dist/js/treeshaking/getPackageManager.js +0 -101
  258. package/dist/js/treeshaking/getPort.js +0 -103
  259. package/dist/js/treeshaking/import.js +0 -11
  260. package/dist/js/treeshaking/index.js +0 -34
  261. package/dist/js/treeshaking/is/index.js +0 -81
  262. package/dist/js/treeshaking/is/node-env.js +0 -13
  263. package/dist/js/treeshaking/is/platform.js +0 -6
  264. package/dist/js/treeshaking/is/type.js +0 -27
  265. package/dist/js/treeshaking/logger.js +0 -188
  266. package/dist/js/treeshaking/monorepo.js +0 -95
  267. package/dist/js/treeshaking/nodeEnv.js +0 -108
  268. package/dist/js/treeshaking/path.js +0 -11
  269. package/dist/js/treeshaking/pkgUp.js +0 -2
  270. package/dist/js/treeshaking/prettyInstructions.js +0 -100
  271. package/dist/js/treeshaking/printBuildError.js +0 -40
  272. package/dist/js/treeshaking/readTsConfig.js +0 -13
  273. package/dist/js/treeshaking/removeSlash.js +0 -9
  274. package/dist/js/treeshaking/runtimeExports.js +0 -61
  275. package/dist/js/treeshaking/wait.js +0 -8
  276. package/dist/js/treeshaking/watch.js +0 -112
  277. package/dist/types/applyOptionsChain.d.ts +0 -6
  278. package/dist/types/chalk.d.ts +0 -2
  279. package/dist/types/clearConsole.d.ts +0 -1
  280. package/dist/types/constants.d.ts +0 -219
  281. package/dist/types/debug.d.ts +0 -8
  282. package/dist/types/emptyDir.d.ts +0 -1
  283. package/dist/types/is/platform.d.ts +0 -2
  284. package/dist/types/logger.d.ts +0 -63
  285. package/dist/types/pkgUp.d.ts +0 -2
  286. package/tests/.eslintrc.js +0 -6
  287. package/tests/__snapshots__/prettyInstructions.test.ts.snap +0 -19
  288. package/tests/applyOptionsChain.test.ts +0 -100
  289. package/tests/compatRequire.test.ts +0 -32
  290. package/tests/debug.test.ts +0 -25
  291. package/tests/ensureAbsolutePath.test.ts +0 -16
  292. package/tests/findExists.test.ts +0 -22
  293. package/tests/fixtures/browserlist/develop/package.json +0 -11
  294. package/tests/fixtures/browserlist/dotfile/.browserslistrc +0 -3
  295. package/tests/fixtures/browserlist/pkg/package.json +0 -7
  296. package/tests/fixtures/compat-require/cjs.js +0 -1
  297. package/tests/fixtures/compat-require/empty.js +0 -1
  298. package/tests/fixtures/compat-require/esm.js +0 -5
  299. package/tests/fixtures/compat-require/foo.js +0 -3
  300. package/tests/fixtures/file-exists/a.ejs +0 -0
  301. package/tests/fixtures/file-exists/a.js/.gitkeep +0 -0
  302. package/tests/fixtures/file-exists/a.mjs +0 -0
  303. package/tests/fixtures/file-exists/a.ts +0 -0
  304. package/tests/format.test.ts +0 -60
  305. package/tests/generateMetaTags.test.ts +0 -19
  306. package/tests/getBrowserslist.test.ts +0 -32
  307. package/tests/getCacheIdentifier.test.ts +0 -37
  308. package/tests/getEntryOptions.test.ts +0 -53
  309. package/tests/index.test.ts +0 -18
  310. package/tests/is.test.ts +0 -27
  311. package/tests/isPlatform.test.ts +0 -19
  312. package/tests/isType.test.ts +0 -85
  313. package/tests/logger.test.ts +0 -53
  314. package/tests/prettyInstructions.test.ts +0 -139
  315. package/tests/removeSlash.test.ts +0 -19
  316. package/tests/tsconfig.json +0 -11
  317. package/tests/wait.ts +0 -38
@@ -0,0 +1,40 @@
1
+ (()=>{var t={372:(t,e,s)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=s(376);const i=s(498);const n="!";const o={returnIndex:false};const arrify=t=>Array.isArray(t)?t:[t];const createPattern=(t,e)=>{if(typeof t==="function"){return t}if(typeof t==="string"){const s=r(t,e);return e=>t===e||s(e)}if(t instanceof RegExp){return e=>t.test(e)}return t=>false};const matchPatterns=(t,e,s,r)=>{const n=Array.isArray(s);const o=n?s[0]:s;if(!n&&typeof o!=="string"){throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(o))}const a=i(o);for(let t=0;t<e.length;t++){const s=e[t];if(s(a)){return r?-1:false}}const u=n&&[a].concat(s.slice(1));for(let e=0;e<t.length;e++){const s=t[e];if(n?s(...u):s(a)){return r?e:true}}return r?-1:false};const anymatch=(t,e,s=o)=>{if(t==null){throw new TypeError("anymatch: specify first argument")}const i=typeof s==="boolean"?{returnIndex:s}:s;const a=i.returnIndex||false;const u=arrify(t);const l=u.filter((t=>typeof t==="string"&&t.charAt(0)===n)).map((t=>t.slice(1))).map((t=>r(t,i)));const c=u.filter((t=>typeof t!=="string"||typeof t==="string"&&t.charAt(0)!==n)).map((t=>createPattern(t,i)));if(e==null){return(t,e=false)=>{const s=typeof e==="boolean"?e:false;return matchPatterns(c,l,t,s)}}return matchPatterns(c,l,e,a)};anymatch.default=anymatch;t.exports=anymatch},828:(t,e,s)=>{t.exports=s(600)},570:(t,e,s)=>{"use strict";const r=s(625);const i=s(666);const n=s(183);const o=s(467);const braces=(t,e={})=>{let s=[];if(Array.isArray(t)){for(let r of t){let t=braces.create(r,e);if(Array.isArray(t)){s.push(...t)}else{s.push(t)}}}else{s=[].concat(braces.create(t,e))}if(e&&e.expand===true&&e.nodupes===true){s=[...new Set(s)]}return s};braces.parse=(t,e={})=>o(t,e);braces.stringify=(t,e={})=>{if(typeof t==="string"){return r(braces.parse(t,e),e)}return r(t,e)};braces.compile=(t,e={})=>{if(typeof t==="string"){t=braces.parse(t,e)}return i(t,e)};braces.expand=(t,e={})=>{if(typeof t==="string"){t=braces.parse(t,e)}let s=n(t,e);if(e.noempty===true){s=s.filter(Boolean)}if(e.nodupes===true){s=[...new Set(s)]}return s};braces.create=(t,e={})=>{if(t===""||t.length<3){return[t]}return e.expand!==true?braces.compile(t,e):braces.expand(t,e)};t.exports=braces},666:(t,e,s)=>{"use strict";const r=s(442);const i=s(456);const compile=(t,e={})=>{let walk=(t,s={})=>{let n=i.isInvalidBrace(s);let o=t.invalid===true&&e.escapeInvalid===true;let a=n===true||o===true;let u=e.escapeInvalid===true?"\\":"";let l="";if(t.isOpen===true){return u+t.value}if(t.isClose===true){return u+t.value}if(t.type==="open"){return a?u+t.value:"("}if(t.type==="close"){return a?u+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":a?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){let s=i.reduce(t.nodes);let n=r(...s,{...e,wrap:false,toRegex:true});if(n.length!==0){return s.length>1&&n.length>1?`(${n})`:n}}if(t.nodes){for(let e of t.nodes){l+=walk(e,t)}}return l};return walk(t)};t.exports=compile},487:t=>{"use strict";t.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},183:(t,e,s)=>{"use strict";const r=s(442);const i=s(625);const n=s(456);const append=(t="",e="",s=false)=>{let r=[];t=[].concat(t);e=[].concat(e);if(!e.length)return t;if(!t.length){return s?n.flatten(e).map((t=>`{${t}}`)):e}for(let i of t){if(Array.isArray(i)){for(let t of i){r.push(append(t,e,s))}}else{for(let t of e){if(s===true&&typeof t==="string")t=`{${t}}`;r.push(Array.isArray(t)?append(i,t,s):i+t)}}}return n.flatten(r)};const expand=(t,e={})=>{let s=e.rangeLimit===void 0?1e3:e.rangeLimit;let walk=(t,o={})=>{t.queue=[];let a=o;let u=o.queue;while(a.type!=="brace"&&a.type!=="root"&&a.parent){a=a.parent;u=a.queue}if(t.invalid||t.dollar){u.push(append(u.pop(),i(t,e)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){u.push(append(u.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){let o=n.reduce(t.nodes);if(n.exceedsLimit(...o,e.step,s)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let a=r(...o,e);if(a.length===0){a=i(t,e)}u.push(append(u.pop(),a));t.nodes=[];return}let l=n.encloseBrace(t);let c=t.queue;let f=t;while(f.type!=="brace"&&f.type!=="root"&&f.parent){f=f.parent;c=f.queue}for(let e=0;e<t.nodes.length;e++){let s=t.nodes[e];if(s.type==="comma"&&t.type==="brace"){if(e===1)c.push("");c.push("");continue}if(s.type==="close"){u.push(append(u.pop(),c,l));continue}if(s.value&&s.type!=="open"){c.push(append(c.pop(),s.value));continue}if(s.nodes){walk(s,t)}}return c};return n.flatten(walk(t))};t.exports=expand},467:(t,e,s)=>{"use strict";const r=s(625);const{MAX_LENGTH:i,CHAR_BACKSLASH:n,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:l,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:E,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:m}=s(487);const parse=(t,e={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}let s=e||{};let y=typeof s.maxLength==="number"?Math.min(i,s.maxLength):i;if(t.length>y){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${y})`)}let R={type:"root",input:t,nodes:[]};let w=[R];let A=R;let b=R;let v=0;let S=t.length;let C=0;let x=0;let T;let H={};const advance=()=>t[C++];const push=t=>{if(t.type==="text"&&b.type==="dot"){b.type="text"}if(b&&b.type==="text"&&t.type==="text"){b.value+=t.value;return}A.nodes.push(t);t.parent=A;t.prev=b;b=t;return t};push({type:"bos"});while(C<S){A=w[w.length-1];T=advance();if(T===m||T===g){continue}if(T===n){push({type:"text",value:(e.keepEscaping?T:"")+advance()});continue}if(T===d){push({type:"text",value:"\\"+T});continue}if(T===p){v++;let t=true;let e;while(C<S&&(e=advance())){T+=e;if(e===p){v++;continue}if(e===n){T+=advance();continue}if(e===d){v--;if(v===0){break}}}push({type:"text",value:T});continue}if(T===l){A=push({type:"paren",nodes:[]});w.push(A);push({type:"text",value:T});continue}if(T===c){if(A.type!=="paren"){push({type:"text",value:T});continue}A=w.pop();push({type:"text",value:T});A=w[w.length-1];continue}if(T===_||T===E||T===o){let t=T;let s;if(e.keepQuotes!==true){T=""}while(C<S&&(s=advance())){if(s===n){T+=s+advance();continue}if(s===t){if(e.keepQuotes===true)T+=s;break}T+=s}push({type:"text",value:T});continue}if(T===f){x++;let t=b.value&&b.value.slice(-1)==="$"||A.dollar===true;let e={type:"brace",open:true,close:false,dollar:t,depth:x,commas:0,ranges:0,nodes:[]};A=push(e);w.push(A);push({type:"open",value:T});continue}if(T===h){if(A.type!=="brace"){push({type:"text",value:T});continue}let t="close";A=w.pop();A.close=true;push({type:t,value:T});x--;A=w[w.length-1];continue}if(T===a&&x>0){if(A.ranges>0){A.ranges=0;let t=A.nodes.shift();A.nodes=[t,{type:"text",value:r(A)}]}push({type:"comma",value:T});A.commas++;continue}if(T===u&&x>0&&A.commas===0){let t=A.nodes;if(x===0||t.length===0){push({type:"text",value:T});continue}if(b.type==="dot"){A.range=[];b.value+=T;b.type="range";if(A.nodes.length!==3&&A.nodes.length!==5){A.invalid=true;A.ranges=0;b.type="text";continue}A.ranges++;A.args=[];continue}if(b.type==="range"){t.pop();let e=t[t.length-1];e.value+=b.value+T;b=e;A.ranges--;continue}push({type:"dot",value:T});continue}push({type:"text",value:T})}do{A=w.pop();if(A.type!=="root"){A.nodes.forEach((t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}}));let t=w[w.length-1];let e=t.nodes.indexOf(A);t.nodes.splice(e,1,...A.nodes)}}while(w.length>0);push({type:"eos"});return R};t.exports=parse},625:(t,e,s)=>{"use strict";const r=s(456);t.exports=(t,e={})=>{let stringify=(t,s={})=>{let i=e.escapeInvalid&&r.isInvalidBrace(s);let n=t.invalid===true&&e.escapeInvalid===true;let o="";if(t.value){if((i||n)&&r.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(let e of t.nodes){o+=stringify(e)}}return o};return stringify(t)}},456:(t,e)=>{"use strict";e.isInteger=t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false};e.find=(t,e)=>t.nodes.find((t=>t.type===e));e.exceedsLimit=(t,s,r=1,i)=>{if(i===false)return false;if(!e.isInteger(t)||!e.isInteger(s))return false;return(Number(s)-Number(t))/Number(r)>=i};e.escapeNode=(t,e=0,s)=>{let r=t.nodes[e];if(!r)return;if(s&&r.type===s||r.type==="open"||r.type==="close"){if(r.escaped!==true){r.value="\\"+r.value;r.escaped=true}}};e.encloseBrace=t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false};e.isInvalidBrace=t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false};e.isOpenOrClose=t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true};e.reduce=t=>t.reduce(((t,e)=>{if(e.type==="text")t.push(e.value);if(e.type==="range")e.type="text";return t}),[]);e.flatten=(...t)=>{const e=[];const flat=t=>{for(let s=0;s<t.length;s++){let r=t[s];Array.isArray(r)?flat(r,e):r!==void 0&&e.push(r)}return e};flat(t);return e}},240:(t,e,s)=>{"use strict";const{sep:r}=s(17);const{platform:i}=process;const n=s(37);e.EV_ALL="all";e.EV_READY="ready";e.EV_ADD="add";e.EV_CHANGE="change";e.EV_ADD_DIR="addDir";e.EV_UNLINK="unlink";e.EV_UNLINK_DIR="unlinkDir";e.EV_RAW="raw";e.EV_ERROR="error";e.STR_DATA="data";e.STR_END="end";e.STR_CLOSE="close";e.FSEVENT_CREATED="created";e.FSEVENT_MODIFIED="modified";e.FSEVENT_DELETED="deleted";e.FSEVENT_MOVED="moved";e.FSEVENT_CLONED="cloned";e.FSEVENT_UNKNOWN="unknown";e.FSEVENT_TYPE_FILE="file";e.FSEVENT_TYPE_DIRECTORY="directory";e.FSEVENT_TYPE_SYMLINK="symlink";e.KEY_LISTENERS="listeners";e.KEY_ERR="errHandlers";e.KEY_RAW="rawEmitters";e.HANDLER_KEYS=[e.KEY_LISTENERS,e.KEY_ERR,e.KEY_RAW];e.DOT_SLASH=`.${r}`;e.BACK_SLASH_RE=/\\/g;e.DOUBLE_SLASH_RE=/\/\//;e.SLASH_OR_BACK_SLASH_RE=/[/\\]/;e.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;e.REPLACER_RE=/^\.[/\\]/;e.SLASH="/";e.SLASH_SLASH="//";e.BRACE_START="{";e.BANG="!";e.ONE_DOT=".";e.TWO_DOTS="..";e.STAR="*";e.GLOBSTAR="**";e.ROOT_GLOBSTAR="/**/*";e.SLASH_GLOBSTAR="/**";e.DIR_SUFFIX="Dir";e.ANYMATCH_OPTS={dot:true};e.STRING_TYPE="string";e.FUNCTION_TYPE="function";e.EMPTY_STR="";e.EMPTY_FN=()=>{};e.IDENTITY_FN=t=>t;e.isWindows=i==="win32";e.isMacos=i==="darwin";e.isLinux=i==="linux";e.isIBMi=n.type()==="OS400"},578:(t,e,s)=>{"use strict";const r=s(147);const i=s(17);const{promisify:n}=s(837);let o;try{o=s(249)}catch(t){if(process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR)console.error(t)}if(o){const t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){const e=Number.parseInt(t[1],10);const s=Number.parseInt(t[2],10);if(e===8&&s<16){o=undefined}}}const{EV_ADD:a,EV_CHANGE:u,EV_ADD_DIR:l,EV_UNLINK:c,EV_ERROR:f,STR_DATA:h,STR_END:p,FSEVENT_CREATED:d,FSEVENT_MODIFIED:_,FSEVENT_DELETED:E,FSEVENT_MOVED:g,FSEVENT_UNKNOWN:m,FSEVENT_TYPE_FILE:y,FSEVENT_TYPE_DIRECTORY:R,FSEVENT_TYPE_SYMLINK:w,ROOT_GLOBSTAR:A,DIR_SUFFIX:b,DOT_SLASH:v,FUNCTION_TYPE:S,EMPTY_FN:C,IDENTITY_FN:x}=s(240);const Depth=t=>isNaN(t)?{}:{depth:t};const T=n(r.stat);const H=n(r.lstat);const O=n(r.realpath);const P={stat:T,lstat:H};const I=new Map;const L=10;const N=new Set([69888,70400,71424,72704,73472,131328,131840,262912]);const createFSEventsInstance=(t,e)=>{const s=o.watch(t,e);return{stop:s}};function setFSEventsListener(t,e,s,r){let n=i.extname(e)?i.dirname(e):e;const a=i.dirname(n);let u=I.get(n);if(couldConsolidate(a)){n=a}const l=i.resolve(t);const c=l!==e;const filteredListener=(t,r,n)=>{if(c)t=t.replace(e,l);if(t===l||!t.indexOf(l+i.sep))s(t,r,n)};let f=false;for(const t of I.keys()){if(e.indexOf(i.resolve(t)+i.sep)===0){n=t;u=I.get(n);f=true;break}}if(u||f){u.listeners.add(filteredListener)}else{u={listeners:new Set([filteredListener]),rawEmitter:r,watcher:createFSEventsInstance(n,((t,e)=>{if(!u.listeners.size)return;const s=o.getInfo(t,e);u.listeners.forEach((r=>{r(t,e,s)}));u.rawEmitter(s.event,t,s)}))};I.set(n,u)}return()=>{const t=u.listeners;t.delete(filteredListener);if(!t.size){I.delete(n);if(u.watcher)return u.watcher.stop().then((()=>{u.rawEmitter=u.watcher=undefined;Object.freeze(u)}))}}}const couldConsolidate=t=>{let e=0;for(const s of I.keys()){if(s.indexOf(t)===0){e++;if(e>=L){return true}}}return false};const canUse=()=>o&&I.size<128;const calcDepth=(t,e)=>{let s=0;while(!t.indexOf(e)&&(t=i.dirname(t))!==e)s++;return s};const sameTypes=(t,e)=>t.type===R&&e.isDirectory()||t.type===w&&e.isSymbolicLink()||t.type===y&&e.isFile();class FsEventsHandler{constructor(t){this.fsw=t}checkIgnored(t,e){const s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(t,e)){s.add(t);if(e&&e.isDirectory()){s.add(t+A)}return true}s.delete(t);s.delete(t+A)}addOrChange(t,e,s,r,i,n,o,l){const c=i.has(n)?u:a;this.handleEvent(c,t,e,s,r,i,n,o,l)}async checkExists(t,e,s,r,i,n,o,a){try{const u=await T(t);if(this.fsw.closed)return;if(sameTypes(o,u)){this.addOrChange(t,e,s,r,i,n,o,a)}else{this.handleEvent(c,t,e,s,r,i,n,o,a)}}catch(u){if(u.code==="EACCES"){this.addOrChange(t,e,s,r,i,n,o,a)}else{this.handleEvent(c,t,e,s,r,i,n,o,a)}}}handleEvent(t,e,s,r,i,n,o,u,f){if(this.fsw.closed||this.checkIgnored(e))return;if(t===c){const t=u.type===R;if(t||n.has(o)){this.fsw._remove(i,o,t)}}else{if(t===a){if(u.type===R)this.fsw._getWatchedDir(e);if(u.type===w&&f.followSymlinks){const t=f.depth===undefined?undefined:calcDepth(s,r)+1;return this._addToFsEvents(e,false,true,t)}this.fsw._getWatchedDir(i).add(o)}const n=u.type===R?t+b:t;this.fsw._emit(n,e);if(n===l)this._addToFsEvents(e,false,true)}}_watchWithFsEvents(t,e,s,r){if(this.fsw.closed||this.fsw._isIgnored(t))return;const n=this.fsw.options;const watchCallback=async(o,a,u)=>{if(this.fsw.closed)return;if(n.depth!==undefined&&calcDepth(o,e)>n.depth)return;const l=s(i.join(t,i.relative(t,o)));if(r&&!r(l))return;const f=i.dirname(l);const h=i.basename(l);const p=this.fsw._getWatchedDir(u.type===R?l:f);if(N.has(a)||u.event===m){if(typeof n.ignored===S){let t;try{t=await T(l)}catch(t){}if(this.fsw.closed)return;if(this.checkIgnored(l,t))return;if(sameTypes(u,t)){this.addOrChange(l,o,e,f,p,h,u,n)}else{this.handleEvent(c,l,o,e,f,p,h,u,n)}}else{this.checkExists(l,o,e,f,p,h,u,n)}}else{switch(u.event){case d:case _:return this.addOrChange(l,o,e,f,p,h,u,n);case E:case g:return this.checkExists(l,o,e,f,p,h,u,n)}}};const o=setFSEventsListener(t,e,watchCallback,this.fsw._emitRaw);this.fsw._emitReady();return o}async _handleFsEventsSymlink(t,e,s,r){if(this.fsw.closed||this.fsw._symlinkPaths.has(e))return;this.fsw._symlinkPaths.set(e,true);this.fsw._incrReadyCount();try{const e=await O(t);if(this.fsw.closed)return;if(this.fsw._isIgnored(e)){return this.fsw._emitReady()}this.fsw._incrReadyCount();this._addToFsEvents(e||t,(r=>{let n=t;if(e&&e!==v){n=r.replace(e,t)}else if(r!==v){n=i.join(t,r)}return s(n)}),false,r)}catch(t){if(this.fsw._handleError(t)){return this.fsw._emitReady()}}}emitAdd(t,e,s,r,n){const o=s(t);const u=e.isDirectory();const c=this.fsw._getWatchedDir(i.dirname(o));const f=i.basename(o);if(u)this.fsw._getWatchedDir(o);if(c.has(f))return;c.add(f);if(!r.ignoreInitial||n===true){this.fsw._emit(u?l:a,o,e)}}initWatch(t,e,s,r){if(this.fsw.closed)return;const n=this._watchWithFsEvents(s.watchPath,i.resolve(t||s.watchPath),r,s.globFilter);this.fsw._addPathCloser(e,n)}async _addToFsEvents(t,e,s,r){if(this.fsw.closed){return}const n=this.fsw.options;const o=typeof e===S?e:x;const a=this.fsw._getWatchHelpers(t);try{const e=await P[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,e)){throw null}if(e.isDirectory()){if(!a.globFilter)this.emitAdd(o(t),e,o,n,s);if(r&&r>n.depth)return;this.fsw._readdirp(a.watchPath,{fileFilter:t=>a.filterPath(t),directoryFilter:t=>a.filterDir(t),...Depth(n.depth-(r||0))}).on(h,(t=>{if(this.fsw.closed){return}if(t.stats.isDirectory()&&!a.filterPath(t))return;const e=i.join(a.watchPath,t.path);const{fullPath:r}=t;if(a.followSymlinks&&t.stats.isSymbolicLink()){const t=n.depth===undefined?undefined:calcDepth(e,i.resolve(a.watchPath))+1;this._handleFsEventsSymlink(e,r,o,t)}else{this.emitAdd(e,t.stats,o,n,s)}})).on(f,C).on(p,(()=>{this.fsw._emitReady()}))}else{this.emitAdd(a.watchPath,e,o,n,s);this.fsw._emitReady()}}catch(t){if(!t||this.fsw._handleError(t)){this.fsw._emitReady();this.fsw._emitReady()}}if(n.persistent&&s!==true){if(typeof e===S){this.initWatch(undefined,t,a,o)}else{let e;try{e=await O(a.watchPath)}catch(t){}this.initWatch(e,t,a,o)}}}}t.exports=FsEventsHandler;t.exports.canUse=canUse},254:(t,e,s)=>{"use strict";const r=s(147);const i=s(17);const{promisify:n}=s(837);const o=s(41);const{isWindows:a,isLinux:u,EMPTY_FN:l,EMPTY_STR:c,KEY_LISTENERS:f,KEY_ERR:h,KEY_RAW:p,HANDLER_KEYS:d,EV_CHANGE:_,EV_ADD:E,EV_ADD_DIR:g,EV_ERROR:m,STR_DATA:y,STR_END:R,BRACE_START:w,STAR:A}=s(240);const b="watch";const v=n(r.open);const S=n(r.stat);const C=n(r.lstat);const x=n(r.close);const T=n(r.realpath);const H={lstat:C,stat:S};const foreach=(t,e)=>{if(t instanceof Set){t.forEach(e)}else{e(t)}};const addAndConvert=(t,e,s)=>{let r=t[e];if(!(r instanceof Set)){t[e]=r=new Set([r])}r.add(s)};const clearItem=t=>e=>{const s=t[e];if(s instanceof Set){s.clear()}else{delete t[e]}};const delFromSet=(t,e,s)=>{const r=t[e];if(r instanceof Set){r.delete(s)}else if(r===s){delete t[e]}};const isEmptySet=t=>t instanceof Set?t.size===0:!t;const O=new Map;function createFsWatchInstance(t,e,s,n,o){const handleEvent=(e,r)=>{s(t);o(e,r,{watchedPath:t});if(r&&t!==r){fsWatchBroadcast(i.resolve(t,r),f,i.join(t,r))}};try{return r.watch(t,e,handleEvent)}catch(t){n(t)}}const fsWatchBroadcast=(t,e,s,r,i)=>{const n=O.get(t);if(!n)return;foreach(n[e],(t=>{t(s,r,i)}))};const setFsWatchListener=(t,e,s,r)=>{const{listener:i,errHandler:n,rawEmitter:o}=r;let u=O.get(e);let l;if(!s.persistent){l=createFsWatchInstance(t,s,i,n,o);return l.close.bind(l)}if(u){addAndConvert(u,f,i);addAndConvert(u,h,n);addAndConvert(u,p,o)}else{l=createFsWatchInstance(t,s,fsWatchBroadcast.bind(null,e,f),n,fsWatchBroadcast.bind(null,e,p));if(!l)return;l.on(m,(async s=>{const r=fsWatchBroadcast.bind(null,e,h);u.watcherUnusable=true;if(a&&s.code==="EPERM"){try{const e=await v(t,"r");await x(e);r(s)}catch(t){}}else{r(s)}}));u={listeners:i,errHandlers:n,rawEmitters:o,watcher:l};O.set(e,u)}return()=>{delFromSet(u,f,i);delFromSet(u,h,n);delFromSet(u,p,o);if(isEmptySet(u.listeners)){u.watcher.close();O.delete(e);d.forEach(clearItem(u));u.watcher=undefined;Object.freeze(u)}}};const P=new Map;const setFsWatchFileListener=(t,e,s,i)=>{const{listener:n,rawEmitter:o}=i;let a=P.get(e);let u=new Set;let l=new Set;const c=a&&a.options;if(c&&(c.persistent<s.persistent||c.interval>s.interval)){u=a.listeners;l=a.rawEmitters;r.unwatchFile(e);a=undefined}if(a){addAndConvert(a,f,n);addAndConvert(a,p,o)}else{a={listeners:n,rawEmitters:o,options:s,watcher:r.watchFile(e,s,((s,r)=>{foreach(a.rawEmitters,(t=>{t(_,e,{curr:s,prev:r})}));const i=s.mtimeMs;if(s.size!==r.size||i>r.mtimeMs||i===0){foreach(a.listeners,(e=>e(t,s)))}}))};P.set(e,a)}return()=>{delFromSet(a,f,n);delFromSet(a,p,o);if(isEmptySet(a.listeners)){P.delete(e);r.unwatchFile(e);a.options=a.watcher=undefined;Object.freeze(a)}}};class NodeFsHandler{constructor(t){this.fsw=t;this._boundHandleError=e=>t._handleError(e)}_watchWithNodeFs(t,e){const s=this.fsw.options;const r=i.dirname(t);const n=i.basename(t);const a=this.fsw._getWatchedDir(r);a.add(n);const u=i.resolve(t);const c={persistent:s.persistent};if(!e)e=l;let f;if(s.usePolling){c.interval=s.enableBinaryInterval&&o(n)?s.binaryInterval:s.interval;f=setFsWatchFileListener(t,u,c,{listener:e,rawEmitter:this.fsw._emitRaw})}else{f=setFsWatchListener(t,u,c,{listener:e,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw})}return f}_handleFile(t,e,s){if(this.fsw.closed){return}const r=i.dirname(t);const n=i.basename(t);const o=this.fsw._getWatchedDir(r);let a=e;if(o.has(n))return;const listener=async(e,s)=>{if(!this.fsw._throttle(b,t,5))return;if(!s||s.mtimeMs===0){try{const s=await S(t);if(this.fsw.closed)return;const r=s.atimeMs;const i=s.mtimeMs;if(!r||r<=i||i!==a.mtimeMs){this.fsw._emit(_,t,s)}if(u&&a.ino!==s.ino){this.fsw._closeFile(e);a=s;this.fsw._addPathCloser(e,this._watchWithNodeFs(t,listener))}else{a=s}}catch(t){this.fsw._remove(r,n)}}else if(o.has(n)){const e=s.atimeMs;const r=s.mtimeMs;if(!e||e<=r||r!==a.mtimeMs){this.fsw._emit(_,t,s)}a=s}};const l=this._watchWithNodeFs(t,listener);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(t)){if(!this.fsw._throttle(E,t,0))return;this.fsw._emit(E,t,e)}return l}async _handleSymlink(t,e,s,r){if(this.fsw.closed){return}const i=t.fullPath;const n=this.fsw._getWatchedDir(e);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let e;try{e=await T(s)}catch(t){this.fsw._emitReady();return true}if(this.fsw.closed)return;if(n.has(r)){if(this.fsw._symlinkPaths.get(i)!==e){this.fsw._symlinkPaths.set(i,e);this.fsw._emit(_,s,t.stats)}}else{n.add(r);this.fsw._symlinkPaths.set(i,e);this.fsw._emit(E,s,t.stats)}this.fsw._emitReady();return true}if(this.fsw._symlinkPaths.has(i)){return true}this.fsw._symlinkPaths.set(i,true)}_handleRead(t,e,s,r,n,o,a){t=i.join(t,c);if(!s.hasGlob){a=this.fsw._throttle("readdir",t,1e3);if(!a)return}const u=this.fsw._getWatchedDir(s.path);const l=new Set;let f=this.fsw._readdirp(t,{fileFilter:t=>s.filterPath(t),directoryFilter:t=>s.filterDir(t),depth:0}).on(y,(async a=>{if(this.fsw.closed){f=undefined;return}const c=a.path;let h=i.join(t,c);l.add(c);if(a.stats.isSymbolicLink()&&await this._handleSymlink(a,t,h,c)){return}if(this.fsw.closed){f=undefined;return}if(c===r||!r&&!u.has(c)){this.fsw._incrReadyCount();h=i.join(n,i.relative(n,h));this._addToNodeFs(h,e,s,o+1)}})).on(m,this._boundHandleError);return new Promise((e=>f.once(R,(()=>{if(this.fsw.closed){f=undefined;return}const c=a?a.clear():false;e();u.getChildren().filter((e=>e!==t&&!l.has(e)&&(!s.hasGlob||s.filterPath({fullPath:i.resolve(t,e)})))).forEach((e=>{this.fsw._remove(t,e)}));f=undefined;if(c)this._handleRead(t,false,s,r,n,o,a)}))))}async _handleDir(t,e,s,r,n,o,a){const u=this.fsw._getWatchedDir(i.dirname(t));const l=u.has(i.basename(t));if(!(s&&this.fsw.options.ignoreInitial)&&!n&&!l){if(!o.hasGlob||o.globFilter(t))this.fsw._emit(g,t,e)}u.add(i.basename(t));this.fsw._getWatchedDir(t);let c;let f;const h=this.fsw.options.depth;if((h==null||r<=h)&&!this.fsw._symlinkPaths.has(a)){if(!n){await this._handleRead(t,s,o,n,t,r,c);if(this.fsw.closed)return}f=this._watchWithNodeFs(t,((e,s)=>{if(s&&s.mtimeMs===0)return;this._handleRead(e,false,o,n,t,r,c)}))}return f}async _addToNodeFs(t,e,s,r,n){const o=this.fsw._emitReady;if(this.fsw._isIgnored(t)||this.fsw.closed){o();return false}const a=this.fsw._getWatchHelpers(t,r);if(!a.hasGlob&&s){a.hasGlob=s.hasGlob;a.globFilter=s.globFilter;a.filterPath=t=>s.filterPath(t);a.filterDir=t=>s.filterDir(t)}try{const s=await H[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,s)){o();return false}const u=this.fsw.options.followSymlinks&&!t.includes(A)&&!t.includes(w);let l;if(s.isDirectory()){const o=i.resolve(t);const c=u?await T(t):t;if(this.fsw.closed)return;l=await this._handleDir(a.watchPath,s,e,r,n,a,c);if(this.fsw.closed)return;if(o!==c&&c!==undefined){this.fsw._symlinkPaths.set(o,c)}}else if(s.isSymbolicLink()){const n=u?await T(t):t;if(this.fsw.closed)return;const o=i.dirname(a.watchPath);this.fsw._getWatchedDir(o).add(a.watchPath);this.fsw._emit(E,a.watchPath,s);l=await this._handleDir(o,s,e,r,t,a,n);if(this.fsw.closed)return;if(n!==undefined){this.fsw._symlinkPaths.set(i.resolve(t),n)}}else{l=this._handleFile(a.watchPath,s,e)}o();this.fsw._addPathCloser(t,l);return false}catch(e){if(this.fsw._handleError(e)){o();return t}}}}t.exports=NodeFsHandler},442:(t,e,s)=>{"use strict";
2
+ /*!
3
+ * fill-range <https://github.com/jonschlinkert/fill-range>
4
+ *
5
+ * Copyright (c) 2014-present, Jon Schlinkert.
6
+ * Licensed under the MIT License.
7
+ */const r=s(837);const i=s(211);const isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const transform=t=>e=>t===true?Number(e):String(e);const isValidValue=t=>typeof t==="number"||typeof t==="string"&&t!=="";const isNumber=t=>Number.isInteger(+t);const zeros=t=>{let e=`${t}`;let s=-1;if(e[0]==="-")e=e.slice(1);if(e==="0")return false;while(e[++s]==="0");return s>0};const stringify=(t,e,s)=>{if(typeof t==="string"||typeof e==="string"){return true}return s.stringify===true};const pad=(t,e,s)=>{if(e>0){let s=t[0]==="-"?"-":"";if(s)t=t.slice(1);t=s+t.padStart(s?e-1:e,"0")}if(s===false){return String(t)}return t};const toMaxLen=(t,e)=>{let s=t[0]==="-"?"-":"";if(s){t=t.slice(1);e--}while(t.length<e)t="0"+t;return s?"-"+t:t};const toSequence=(t,e)=>{t.negatives.sort(((t,e)=>t<e?-1:t>e?1:0));t.positives.sort(((t,e)=>t<e?-1:t>e?1:0));let s=e.capture?"":"?:";let r="";let i="";let n;if(t.positives.length){r=t.positives.join("|")}if(t.negatives.length){i=`-(${s}${t.negatives.join("|")})`}if(r&&i){n=`${r}|${i}`}else{n=r||i}if(e.wrap){return`(${s}${n})`}return n};const toRange=(t,e,s,r)=>{if(s){return i(t,e,{wrap:false,...r})}let n=String.fromCharCode(t);if(t===e)return n;let o=String.fromCharCode(e);return`[${n}-${o}]`};const toRegex=(t,e,s)=>{if(Array.isArray(t)){let e=s.wrap===true;let r=s.capture?"":"?:";return e?`(${r}${t.join("|")})`:t.join("|")}return i(t,e,s)};const rangeError=(...t)=>new RangeError("Invalid range arguments: "+r.inspect(...t));const invalidRange=(t,e,s)=>{if(s.strictRanges===true)throw rangeError([t,e]);return[]};const invalidStep=(t,e)=>{if(e.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const fillNumbers=(t,e,s=1,r={})=>{let i=Number(t);let n=Number(e);if(!Number.isInteger(i)||!Number.isInteger(n)){if(r.strictRanges===true)throw rangeError([t,e]);return[]}if(i===0)i=0;if(n===0)n=0;let o=i>n;let a=String(t);let u=String(e);let l=String(s);s=Math.max(Math.abs(s),1);let c=zeros(a)||zeros(u)||zeros(l);let f=c?Math.max(a.length,u.length,l.length):0;let h=c===false&&stringify(t,e,r)===false;let p=r.transform||transform(h);if(r.toRegex&&s===1){return toRange(toMaxLen(t,f),toMaxLen(e,f),true,r)}let d={negatives:[],positives:[]};let push=t=>d[t<0?"negatives":"positives"].push(Math.abs(t));let _=[];let E=0;while(o?i>=n:i<=n){if(r.toRegex===true&&s>1){push(i)}else{_.push(pad(p(i,E),f,h))}i=o?i-s:i+s;E++}if(r.toRegex===true){return s>1?toSequence(d,r):toRegex(_,null,{wrap:false,...r})}return _};const fillLetters=(t,e,s=1,r={})=>{if(!isNumber(t)&&t.length>1||!isNumber(e)&&e.length>1){return invalidRange(t,e,r)}let i=r.transform||(t=>String.fromCharCode(t));let n=`${t}`.charCodeAt(0);let o=`${e}`.charCodeAt(0);let a=n>o;let u=Math.min(n,o);let l=Math.max(n,o);if(r.toRegex&&s===1){return toRange(u,l,false,r)}let c=[];let f=0;while(a?n>=o:n<=o){c.push(i(n,f));n=a?n-s:n+s;f++}if(r.toRegex===true){return toRegex(c,null,{wrap:false,options:r})}return c};const fill=(t,e,s,r={})=>{if(e==null&&isValidValue(t)){return[t]}if(!isValidValue(t)||!isValidValue(e)){return invalidRange(t,e,r)}if(typeof s==="function"){return fill(t,e,1,{transform:s})}if(isObject(s)){return fill(t,e,0,s)}let i={...r};if(i.capture===true)i.wrap=true;s=s||i.step||1;if(!isNumber(s)){if(s!=null&&!isObject(s))return invalidStep(s,i);return fill(t,e,1,s)}if(isNumber(t)&&isNumber(e)){return fillNumbers(t,e,s,i)}return fillLetters(t,e,Math.max(Math.abs(s),1),i)};t.exports=fill},249:(t,e,s)=>{"use strict";if(process.platform!=="darwin"){throw new Error(`Module 'fsevents' is not compatible with platform '${process.platform}'`)}const r=s(653);const i=r.constants;function watch(t,e,s){if(typeof t!=="string"){throw new TypeError(`fsevents argument 1 must be a string and not a ${typeof t}`)}if("function"===typeof e&&"undefined"===typeof s){s=e;e=r.flags.SinceNow}if(typeof e!=="number"){throw new TypeError(`fsevents argument 2 must be a number and not a ${typeof e}`)}if(typeof s!=="function"){throw new TypeError(`fsevents argument 3 must be a function and not a ${typeof s}`)}let i=r.start(r.global,t,e,s);if(!i)throw new Error(`could not watch: ${t}`);return()=>{const t=i?Promise.resolve(i).then(r.stop):Promise.resolve(undefined);i=undefined;return t}}function getInfo(t,e){return{path:t,flags:e,event:getEventType(e),type:getFileType(e),changes:getFileChanges(e)}}function getFileType(t){if(i.ItemIsFile&t)return"file";if(i.ItemIsDir&t)return"directory";if(i.ItemIsSymlink&t)return"symlink"}function anyIsTrue(t){for(let e in t){if(t[e])return true}return false}function getEventType(t){if(i.ItemRemoved&t)return"deleted";if(i.ItemRenamed&t)return"moved";if(i.ItemCreated&t)return"created";if(i.ItemModified&t)return"modified";if(i.RootChanged&t)return"root-changed";if(i.ItemCloned&t)return"cloned";if(anyIsTrue(t))return"modified";return"unknown"}function getFileChanges(t){return{inode:!!(i.ItemInodeMetaMod&t),finder:!!(i.ItemFinderInfoMod&t),access:!!(i.ItemChangeOwner&t),xattrs:!!(i.ItemXattrMod&t)}}e.watch=watch;e.getInfo=getInfo;e.constants=i},976:(t,e,s)=>{"use strict";var r=s(654);var i=s(17).posix.dirname;var n=s(37).platform()==="win32";var o="/";var a=/\\/g;var u=/[\{\[].*[\}\]]$/;var l=/(^|[^\\])([\{\[]|\([^\)]+$)/;var c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function globParent(t,e){var s=Object.assign({flipBackslashes:true},e);if(s.flipBackslashes&&n&&t.indexOf(o)<0){t=t.replace(a,o)}if(u.test(t)){t+=o}t+="a";do{t=i(t)}while(r(t)||l.test(t));return t.replace(c,"$1")}},41:(t,e,s)=>{"use strict";const r=s(17);const i=s(828);const n=new Set(i);t.exports=t=>n.has(r.extname(t).slice(1).toLowerCase())},71:t=>{
8
+ /*!
9
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
10
+ *
11
+ * Copyright (c) 2014-2016, Jon Schlinkert.
12
+ * Licensed under the MIT License.
13
+ */
14
+ t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var e;while(e=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(e[2])return true;t=t.slice(e.index+e[0].length)}return false}},654:(t,e,s)=>{
15
+ /*!
16
+ * is-glob <https://github.com/jonschlinkert/is-glob>
17
+ *
18
+ * Copyright (c) 2014-2017, Jon Schlinkert.
19
+ * Released under the MIT License.
20
+ */
21
+ var r=s(71);var i={"{":"}","(":")","[":"]"};var strictCheck=function(t){if(t[0]==="!"){return true}var e=0;var s=-2;var r=-2;var n=-2;var o=-2;var a=-2;while(e<t.length){if(t[e]==="*"){return true}if(t[e+1]==="?"&&/[\].+)]/.test(t[e])){return true}if(r!==-1&&t[e]==="["&&t[e+1]!=="]"){if(r<e){r=t.indexOf("]",e)}if(r>e){if(a===-1||a>r){return true}a=t.indexOf("\\",e);if(a===-1||a>r){return true}}}if(n!==-1&&t[e]==="{"&&t[e+1]!=="}"){n=t.indexOf("}",e);if(n>e){a=t.indexOf("\\",e);if(a===-1||a>n){return true}}}if(o!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"){o=t.indexOf(")",e);if(o>e){a=t.indexOf("\\",e);if(a===-1||a>o){return true}}}if(s!==-1&&t[e]==="("&&t[e+1]!=="|"){if(s<e){s=t.indexOf("|",e)}if(s!==-1&&t[s+1]!==")"){o=t.indexOf(")",s);if(o>s){a=t.indexOf("\\",s);if(a===-1||a>o){return true}}}}if(t[e]==="\\"){var u=t[e+1];e+=2;var l=i[u];if(l){var c=t.indexOf(l,e);if(c!==-1){e=c+1}}if(t[e]==="!"){return true}}else{e++}}return false};var relaxedCheck=function(t){if(t[0]==="!"){return true}var e=0;while(e<t.length){if(/[*?{}()[\]]/.test(t[e])){return true}if(t[e]==="\\"){var s=t[e+1];e+=2;var r=i[s];if(r){var n=t.indexOf(r,e);if(n!==-1){e=n+1}}if(t[e]==="!"){return true}}else{e++}}return false};t.exports=function isGlob(t,e){if(typeof t!=="string"||t===""){return false}if(r(t)){return true}var s=strictCheck;if(e&&e.strict===false){s=relaxedCheck}return s(t)}},387:t=>{"use strict";
22
+ /*!
23
+ * is-number <https://github.com/jonschlinkert/is-number>
24
+ *
25
+ * Copyright (c) 2014-present, Jon Schlinkert.
26
+ * Released under the MIT License.
27
+ */t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},498:t=>{
28
+ /*!
29
+ * normalize-path <https://github.com/jonschlinkert/normalize-path>
30
+ *
31
+ * Copyright (c) 2014-2018, Jon Schlinkert.
32
+ * Released under the MIT License.
33
+ */
34
+ t.exports=function(t,e){if(typeof t!=="string"){throw new TypeError("expected path to be a string")}if(t==="\\"||t==="/")return"/";var s=t.length;if(s<=1)return t;var r="";if(s>4&&t[3]==="\\"){var i=t[2];if((i==="?"||i===".")&&t.slice(0,2)==="\\\\"){t=t.slice(2);r="//"}}var n=t.split(/[/\\]+/);if(e!==false&&n[n.length-1]===""){n.pop()}return r+n.join("/")}},376:(t,e,s)=>{"use strict";t.exports=s(631)},820:(t,e,s)=>{"use strict";const r=s(17);const i="\\\\/";const n=`[^${i}]`;const o="\\.";const a="\\+";const u="\\?";const l="\\/";const c="(?=.)";const f="[^/]";const h=`(?:${l}|$)`;const p=`(?:^|${l})`;const d=`${o}{1,2}${h}`;const _=`(?!${o})`;const E=`(?!${p}${d})`;const g=`(?!${o}{0,1}${h})`;const m=`(?!${d})`;const y=`[^.${l}]`;const R=`${f}*?`;const w={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:u,SLASH_LITERAL:l,ONE_CHAR:c,QMARK:f,END_ANCHOR:h,DOTS_SLASH:d,NO_DOT:_,NO_DOTS:E,NO_DOT_SLASH:g,NO_DOTS_SLASH:m,QMARK_NO_DOT:y,STAR:R,START_ANCHOR:p};const A={...w,SLASH_LITERAL:`[${i}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};const b={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:b,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?A:w}}},986:(t,e,s)=>{"use strict";const r=s(820);const i=s(658);const{MAX_LENGTH:n,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:l}=r;const expandRange=(t,e)=>{if(typeof e.expandRange==="function"){return e.expandRange(...t,e)}t.sort();const s=`[${t.join("-")}]`;try{new RegExp(s)}catch(e){return t.map((t=>i.escapeRegex(t))).join("..")}return s};const syntaxError=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`;const parse=(t,e)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=l[t]||t;const s={...e};const c=typeof s.maxLength==="number"?Math.min(n,s.maxLength):n;let f=t.length;if(f>c){throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${c}`)}const h={type:"bos",value:"",output:s.prepend||""};const p=[h];const d=s.capture?"":"?:";const _=i.isWindows(e);const E=r.globChars(_);const g=r.extglobChars(E);const{DOT_LITERAL:m,PLUS_LITERAL:y,SLASH_LITERAL:R,ONE_CHAR:w,DOTS_SLASH:A,NO_DOT:b,NO_DOT_SLASH:v,NO_DOTS_SLASH:S,QMARK:C,QMARK_NO_DOT:x,STAR:T,START_ANCHOR:H}=E;const globstar=t=>`(${d}(?:(?!${H}${t.dot?A:m}).)*?)`;const O=s.dot?"":b;const P=s.dot?C:x;let I=s.bash===true?globstar(s):T;if(s.capture){I=`(${I})`}if(typeof s.noext==="boolean"){s.noextglob=s.noext}const L={input:t,index:-1,start:0,dot:s.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:p};t=i.removePrefix(t,L);f=t.length;const N=[];const k=[];const $=[];let D=h;let F;const eos=()=>L.index===f-1;const M=L.peek=(e=1)=>t[L.index+e];const W=L.advance=()=>t[++L.index]||"";const remaining=()=>t.slice(L.index+1);const consume=(t="",e=0)=>{L.consumed+=t;L.index+=e};const append=t=>{L.output+=t.output!=null?t.output:t.value;consume(t.value)};const negate=()=>{let t=1;while(M()==="!"&&(M(2)!=="("||M(3)==="?")){W();L.start++;t++}if(t%2===0){return false}L.negated=true;L.start++;return true};const increment=t=>{L[t]++;$.push(t)};const decrement=t=>{L[t]--;$.pop()};const push=t=>{if(D.type==="globstar"){const e=L.braces>0&&(t.type==="comma"||t.type==="brace");const s=t.extglob===true||N.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!e&&!s){L.output=L.output.slice(0,-D.output.length);D.type="star";D.value="*";D.output=I;L.output+=D.output}}if(N.length&&t.type!=="paren"){N[N.length-1].inner+=t.value}if(t.value||t.output)append(t);if(D&&D.type==="text"&&t.type==="text"){D.value+=t.value;D.output=(D.output||"")+t.value;return}t.prev=D;p.push(t);D=t};const extglobOpen=(t,e)=>{const r={...g[e],conditions:1,inner:""};r.prev=D;r.parens=L.parens;r.output=L.output;const i=(s.capture?"(":"")+r.open;increment("parens");push({type:t,value:e,output:L.output?"":w});push({type:"paren",extglob:true,value:W(),output:i});N.push(r)};const extglobClose=t=>{let r=t.close+(s.capture?")":"");let i;if(t.type==="negate"){let n=I;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){n=globstar(s)}if(n!==I||eos()||/^\)+$/.test(remaining())){r=t.close=`)$))${n}`}if(t.inner.includes("*")&&(i=remaining())&&/^\.[^\\/.]+$/.test(i)){const s=parse(i,{...e,fastpaths:false}).output;r=t.close=`)${s})${n})`}if(t.prev.type==="bos"){L.negatedExtglob=true}}push({type:"paren",extglob:true,value:F,output:r});decrement("parens")};if(s.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let r=false;let n=t.replace(u,((t,e,s,i,n,o)=>{if(i==="\\"){r=true;return t}if(i==="?"){if(e){return e+i+(n?C.repeat(n.length):"")}if(o===0){return P+(n?C.repeat(n.length):"")}return C.repeat(s.length)}if(i==="."){return m.repeat(s.length)}if(i==="*"){if(e){return e+i+(n?I:"")}return I}return e?t:`\\${t}`}));if(r===true){if(s.unescape===true){n=n.replace(/\\/g,"")}else{n=n.replace(/\\+/g,(t=>t.length%2===0?"\\\\":t?"\\":""))}}if(n===t&&s.contains===true){L.output=t;return L}L.output=i.wrapOutput(n,L,e);return L}while(!eos()){F=W();if(F==="\0"){continue}if(F==="\\"){const t=M();if(t==="/"&&s.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){F+="\\";push({type:"text",value:F});continue}const e=/^\\+/.exec(remaining());let r=0;if(e&&e[0].length>2){r=e[0].length;L.index+=r;if(r%2!==0){F+="\\"}}if(s.unescape===true){F=W()}else{F+=W()}if(L.brackets===0){push({type:"text",value:F});continue}}if(L.brackets>0&&(F!=="]"||D.value==="["||D.value==="[^")){if(s.posix!==false&&F===":"){const t=D.value.slice(1);if(t.includes("[")){D.posix=true;if(t.includes(":")){const t=D.value.lastIndexOf("[");const e=D.value.slice(0,t);const s=D.value.slice(t+2);const r=o[s];if(r){D.value=e+r;L.backtrack=true;W();if(!h.output&&p.indexOf(D)===1){h.output=w}continue}}}}if(F==="["&&M()!==":"||F==="-"&&M()==="]"){F=`\\${F}`}if(F==="]"&&(D.value==="["||D.value==="[^")){F=`\\${F}`}if(s.posix===true&&F==="!"&&D.value==="["){F="^"}D.value+=F;append({value:F});continue}if(L.quotes===1&&F!=='"'){F=i.escapeRegex(F);D.value+=F;append({value:F});continue}if(F==='"'){L.quotes=L.quotes===1?0:1;if(s.keepQuotes===true){push({type:"text",value:F})}continue}if(F==="("){increment("parens");push({type:"paren",value:F});continue}if(F===")"){if(L.parens===0&&s.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const t=N[N.length-1];if(t&&L.parens===t.parens+1){extglobClose(N.pop());continue}push({type:"paren",value:F,output:L.parens?")":"\\)"});decrement("parens");continue}if(F==="["){if(s.nobracket===true||!remaining().includes("]")){if(s.nobracket!==true&&s.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}F=`\\${F}`}else{increment("brackets")}push({type:"bracket",value:F});continue}if(F==="]"){if(s.nobracket===true||D&&D.type==="bracket"&&D.value.length===1){push({type:"text",value:F,output:`\\${F}`});continue}if(L.brackets===0){if(s.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:F,output:`\\${F}`});continue}decrement("brackets");const t=D.value.slice(1);if(D.posix!==true&&t[0]==="^"&&!t.includes("/")){F=`/${F}`}D.value+=F;append({value:F});if(s.literalBrackets===false||i.hasRegexChars(t)){continue}const e=i.escapeRegex(D.value);L.output=L.output.slice(0,-D.value.length);if(s.literalBrackets===true){L.output+=e;D.value=e;continue}D.value=`(${d}${e}|${D.value})`;L.output+=D.value;continue}if(F==="{"&&s.nobrace!==true){increment("braces");const t={type:"brace",value:F,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};k.push(t);push(t);continue}if(F==="}"){const t=k[k.length-1];if(s.nobrace===true||!t){push({type:"text",value:F,output:F});continue}let e=")";if(t.dots===true){const t=p.slice();const r=[];for(let e=t.length-1;e>=0;e--){p.pop();if(t[e].type==="brace"){break}if(t[e].type!=="dots"){r.unshift(t[e].value)}}e=expandRange(r,s);L.backtrack=true}if(t.comma!==true&&t.dots!==true){const s=L.output.slice(0,t.outputIndex);const r=L.tokens.slice(t.tokensIndex);t.value=t.output="\\{";F=e="\\}";L.output=s;for(const t of r){L.output+=t.output||t.value}}push({type:"brace",value:F,output:e});decrement("braces");k.pop();continue}if(F==="|"){if(N.length>0){N[N.length-1].conditions++}push({type:"text",value:F});continue}if(F===","){let t=F;const e=k[k.length-1];if(e&&$[$.length-1]==="braces"){e.comma=true;t="|"}push({type:"comma",value:F,output:t});continue}if(F==="/"){if(D.type==="dot"&&L.index===L.start+1){L.start=L.index+1;L.consumed="";L.output="";p.pop();D=h;continue}push({type:"slash",value:F,output:R});continue}if(F==="."){if(L.braces>0&&D.type==="dot"){if(D.value===".")D.output=m;const t=k[k.length-1];D.type="dots";D.output+=F;D.value+=F;t.dots=true;continue}if(L.braces+L.parens===0&&D.type!=="bos"&&D.type!=="slash"){push({type:"text",value:F,output:m});continue}push({type:"dot",value:F,output:m});continue}if(F==="?"){const t=D&&D.value==="(";if(!t&&s.noextglob!==true&&M()==="("&&M(2)!=="?"){extglobOpen("qmark",F);continue}if(D&&D.type==="paren"){const t=M();let e=F;if(t==="<"&&!i.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(D.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(remaining())){e=`\\${F}`}push({type:"text",value:F,output:e});continue}if(s.dot!==true&&(D.type==="slash"||D.type==="bos")){push({type:"qmark",value:F,output:x});continue}push({type:"qmark",value:F,output:C});continue}if(F==="!"){if(s.noextglob!==true&&M()==="("){if(M(2)!=="?"||!/[!=<:]/.test(M(3))){extglobOpen("negate",F);continue}}if(s.nonegate!==true&&L.index===0){negate();continue}}if(F==="+"){if(s.noextglob!==true&&M()==="("&&M(2)!=="?"){extglobOpen("plus",F);continue}if(D&&D.value==="("||s.regex===false){push({type:"plus",value:F,output:y});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||L.parens>0){push({type:"plus",value:F});continue}push({type:"plus",value:y});continue}if(F==="@"){if(s.noextglob!==true&&M()==="("&&M(2)!=="?"){push({type:"at",extglob:true,value:F,output:""});continue}push({type:"text",value:F});continue}if(F!=="*"){if(F==="$"||F==="^"){F=`\\${F}`}const t=a.exec(remaining());if(t){F+=t[0];L.index+=t[0].length}push({type:"text",value:F});continue}if(D&&(D.type==="globstar"||D.star===true)){D.type="star";D.star=true;D.value+=F;D.output=I;L.backtrack=true;L.globstar=true;consume(F);continue}let e=remaining();if(s.noextglob!==true&&/^\([^?]/.test(e)){extglobOpen("star",F);continue}if(D.type==="star"){if(s.noglobstar===true){consume(F);continue}const r=D.prev;const i=r.prev;const n=r.type==="slash"||r.type==="bos";const o=i&&(i.type==="star"||i.type==="globstar");if(s.bash===true&&(!n||e[0]&&e[0]!=="/")){push({type:"star",value:F,output:""});continue}const a=L.braces>0&&(r.type==="comma"||r.type==="brace");const u=N.length&&(r.type==="pipe"||r.type==="paren");if(!n&&r.type!=="paren"&&!a&&!u){push({type:"star",value:F,output:""});continue}while(e.slice(0,3)==="/**"){const s=t[L.index+4];if(s&&s!=="/"){break}e=e.slice(3);consume("/**",3)}if(r.type==="bos"&&eos()){D.type="globstar";D.value+=F;D.output=globstar(s);L.output=D.output;L.globstar=true;consume(F);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&!o&&eos()){L.output=L.output.slice(0,-(r.output+D.output).length);r.output=`(?:${r.output}`;D.type="globstar";D.output=globstar(s)+(s.strictSlashes?")":"|$)");D.value+=F;L.globstar=true;L.output+=r.output+D.output;consume(F);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&e[0]==="/"){const t=e[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(r.output+D.output).length);r.output=`(?:${r.output}`;D.type="globstar";D.output=`${globstar(s)}${R}|${R}${t})`;D.value+=F;L.output+=r.output+D.output;L.globstar=true;consume(F+W());push({type:"slash",value:"/",output:""});continue}if(r.type==="bos"&&e[0]==="/"){D.type="globstar";D.value+=F;D.output=`(?:^|${R}|${globstar(s)}${R})`;L.output=D.output;L.globstar=true;consume(F+W());push({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-D.output.length);D.type="globstar";D.output=globstar(s);D.value+=F;L.output+=D.output;L.globstar=true;consume(F);continue}const r={type:"star",value:F,output:I};if(s.bash===true){r.output=".*?";if(D.type==="bos"||D.type==="slash"){r.output=O+r.output}push(r);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&s.regex===true){r.output=F;push(r);continue}if(L.index===L.start||D.type==="slash"||D.type==="dot"){if(D.type==="dot"){L.output+=v;D.output+=v}else if(s.dot===true){L.output+=S;D.output+=S}else{L.output+=O;D.output+=O}if(M()!=="*"){L.output+=w;D.output+=w}}push(r)}while(L.brackets>0){if(s.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));L.output=i.escapeLast(L.output,"[");decrement("brackets")}while(L.parens>0){if(s.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));L.output=i.escapeLast(L.output,"(");decrement("parens")}while(L.braces>0){if(s.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));L.output=i.escapeLast(L.output,"{");decrement("braces")}if(s.strictSlashes!==true&&(D.type==="star"||D.type==="bracket")){push({type:"maybe_slash",value:"",output:`${R}?`})}if(L.backtrack===true){L.output="";for(const t of L.tokens){L.output+=t.output!=null?t.output:t.value;if(t.suffix){L.output+=t.suffix}}}return L};parse.fastpaths=(t,e)=>{const s={...e};const o=typeof s.maxLength==="number"?Math.min(n,s.maxLength):n;const a=t.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}t=l[t]||t;const u=i.isWindows(e);const{DOT_LITERAL:c,SLASH_LITERAL:f,ONE_CHAR:h,DOTS_SLASH:p,NO_DOT:d,NO_DOTS:_,NO_DOTS_SLASH:E,STAR:g,START_ANCHOR:m}=r.globChars(u);const y=s.dot?_:d;const R=s.dot?E:d;const w=s.capture?"":"?:";const A={negated:false,prefix:""};let b=s.bash===true?".*?":g;if(s.capture){b=`(${b})`}const globstar=t=>{if(t.noglobstar===true)return b;return`(${w}(?:(?!${m}${t.dot?p:c}).)*?)`};const create=t=>{switch(t){case"*":return`${y}${h}${b}`;case".*":return`${c}${h}${b}`;case"*.*":return`${y}${b}${c}${h}${b}`;case"*/*":return`${y}${b}${f}${h}${R}${b}`;case"**":return y+globstar(s);case"**/*":return`(?:${y}${globstar(s)}${f})?${R}${h}${b}`;case"**/*.*":return`(?:${y}${globstar(s)}${f})?${R}${b}${c}${h}${b}`;case"**/.*":return`(?:${y}${globstar(s)}${f})?${c}${h}${b}`;default:{const e=/^(.*?)\.(\w+)$/.exec(t);if(!e)return;const s=create(e[1]);if(!s)return;return s+c+e[2]}}};const v=i.removePrefix(t,A);let S=create(v);if(S&&s.strictSlashes!==true){S+=`${f}?`}return S};t.exports=parse},631:(t,e,s)=>{"use strict";const r=s(17);const i=s(640);const n=s(986);const o=s(658);const a=s(820);const isObject=t=>t&&typeof t==="object"&&!Array.isArray(t);const picomatch=(t,e,s=false)=>{if(Array.isArray(t)){const r=t.map((t=>picomatch(t,e,s)));const arrayMatcher=t=>{for(const e of r){const s=e(t);if(s)return s}return false};return arrayMatcher}const r=isObject(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!r){throw new TypeError("Expected pattern to be a non-empty string")}const i=e||{};const n=o.isWindows(e);const a=r?picomatch.compileRe(t,e):picomatch.makeRe(t,e,false,true);const u=a.state;delete a.state;let isIgnored=()=>false;if(i.ignore){const t={...e,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(i.ignore,t,s)}const matcher=(s,r=false)=>{const{isMatch:o,match:l,output:c}=picomatch.test(s,a,e,{glob:t,posix:n});const f={glob:t,state:u,regex:a,posix:n,input:s,output:c,match:l,isMatch:o};if(typeof i.onResult==="function"){i.onResult(f)}if(o===false){f.isMatch=false;return r?f:false}if(isIgnored(s)){if(typeof i.onIgnore==="function"){i.onIgnore(f)}f.isMatch=false;return r?f:false}if(typeof i.onMatch==="function"){i.onMatch(f)}return r?f:true};if(s){matcher.state=u}return matcher};picomatch.test=(t,e,s,{glob:r,posix:i}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const n=s||{};const a=n.format||(i?o.toPosixSlashes:null);let u=t===r;let l=u&&a?a(t):t;if(u===false){l=a?a(t):t;u=l===r}if(u===false||n.capture===true){if(n.matchBase===true||n.basename===true){u=picomatch.matchBase(t,e,s,i)}else{u=e.exec(l)}}return{isMatch:Boolean(u),match:u,output:l}};picomatch.matchBase=(t,e,s,i=o.isWindows(s))=>{const n=e instanceof RegExp?e:picomatch.makeRe(e,s);return n.test(r.basename(t))};picomatch.isMatch=(t,e,s)=>picomatch(e,s)(t);picomatch.parse=(t,e)=>{if(Array.isArray(t))return t.map((t=>picomatch.parse(t,e)));return n(t,{...e,fastpaths:false})};picomatch.scan=(t,e)=>i(t,e);picomatch.compileRe=(t,e,s=false,r=false)=>{if(s===true){return t.output}const i=e||{};const n=i.contains?"":"^";const o=i.contains?"":"$";let a=`${n}(?:${t.output})${o}`;if(t&&t.negated===true){a=`^(?!${a}).*$`}const u=picomatch.toRegex(a,e);if(r===true){u.state=t}return u};picomatch.makeRe=(t,e={},s=false,r=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}let i={negated:false,fastpaths:true};if(e.fastpaths!==false&&(t[0]==="."||t[0]==="*")){i.output=n.fastpaths(t,e)}if(!i.output){i=n(t,e)}return picomatch.compileRe(i,e,s,r)};picomatch.toRegex=(t,e)=>{try{const s=e||{};return new RegExp(t,s.flags||(s.nocase?"i":""))}catch(t){if(e&&e.debug===true)throw t;return/$^/}};picomatch.constants=a;t.exports=picomatch},640:(t,e,s)=>{"use strict";const r=s(658);const{CHAR_ASTERISK:i,CHAR_AT:n,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:d,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:m}=s(820);const isPathSeparator=t=>t===c||t===o;const depth=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const scan=(t,e)=>{const s=e||{};const y=t.length-1;const R=s.parts===true||s.scanToEnd===true;const w=[];const A=[];const b=[];let v=t;let S=-1;let C=0;let x=0;let T=false;let H=false;let O=false;let P=false;let I=false;let L=false;let N=false;let k=false;let $=false;let D=false;let F=0;let M;let W;let G={value:"",depth:0,isGlob:false};const eos=()=>S>=y;const peek=()=>v.charCodeAt(S+1);const advance=()=>{M=W;return v.charCodeAt(++S)};while(S<y){W=advance();let t;if(W===o){N=G.backslashes=true;W=advance();if(W===f){L=true}continue}if(L===true||W===f){F++;while(eos()!==true&&(W=advance())){if(W===o){N=G.backslashes=true;advance();continue}if(W===f){F++;continue}if(L!==true&&W===u&&(W=advance())===u){T=G.isBrace=true;O=G.isGlob=true;D=true;if(R===true){continue}break}if(L!==true&&W===a){T=G.isBrace=true;O=G.isGlob=true;D=true;if(R===true){continue}break}if(W===E){F--;if(F===0){L=false;T=G.isBrace=true;D=true;break}}}if(R===true){continue}break}if(W===c){w.push(S);A.push(G);G={value:"",depth:0,isGlob:false};if(D===true)continue;if(M===u&&S===C+1){C+=2;continue}x=S+1;continue}if(s.noext!==true){const t=W===d||W===n||W===i||W===_||W===l;if(t===true&&peek()===h){O=G.isGlob=true;P=G.isExtglob=true;D=true;if(W===l&&S===C){$=true}if(R===true){while(eos()!==true&&(W=advance())){if(W===o){N=G.backslashes=true;W=advance();continue}if(W===g){O=G.isGlob=true;D=true;break}}continue}break}}if(W===i){if(M===i)I=G.isGlobstar=true;O=G.isGlob=true;D=true;if(R===true){continue}break}if(W===_){O=G.isGlob=true;D=true;if(R===true){continue}break}if(W===p){while(eos()!==true&&(t=advance())){if(t===o){N=G.backslashes=true;advance();continue}if(t===m){H=G.isBracket=true;O=G.isGlob=true;D=true;break}}if(R===true){continue}break}if(s.nonegate!==true&&W===l&&S===C){k=G.negated=true;C++;continue}if(s.noparen!==true&&W===h){O=G.isGlob=true;if(R===true){while(eos()!==true&&(W=advance())){if(W===h){N=G.backslashes=true;W=advance();continue}if(W===g){D=true;break}}continue}break}if(O===true){D=true;if(R===true){continue}break}}if(s.noext===true){P=false;O=false}let B=v;let U="";let K="";if(C>0){U=v.slice(0,C);v=v.slice(C);x-=C}if(B&&O===true&&x>0){B=v.slice(0,x);K=v.slice(x)}else if(O===true){B="";K=v}else{B=v}if(B&&B!==""&&B!=="/"&&B!==v){if(isPathSeparator(B.charCodeAt(B.length-1))){B=B.slice(0,-1)}}if(s.unescape===true){if(K)K=r.removeBackslashes(K);if(B&&N===true){B=r.removeBackslashes(B)}}const V={prefix:U,input:t,start:C,base:B,glob:K,isBrace:T,isBracket:H,isGlob:O,isExtglob:P,isGlobstar:I,negated:k,negatedExtglob:$};if(s.tokens===true){V.maxDepth=0;if(!isPathSeparator(W)){A.push(G)}V.tokens=A}if(s.parts===true||s.tokens===true){let e;for(let r=0;r<w.length;r++){const i=e?e+1:C;const n=w[r];const o=t.slice(i,n);if(s.tokens){if(r===0&&C!==0){A[r].isPrefix=true;A[r].value=U}else{A[r].value=o}depth(A[r]);V.maxDepth+=A[r].depth}if(r!==0||o!==""){b.push(o)}e=n}if(e&&e+1<t.length){const r=t.slice(e+1);b.push(r);if(s.tokens){A[A.length-1].value=r;depth(A[A.length-1]);V.maxDepth+=A[A.length-1].depth}}V.slashes=w;V.parts=b}return V};t.exports=scan},658:(t,e,s)=>{"use strict";const r=s(17);const i=process.platform==="win32";const{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=s(820);e.isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);e.hasRegexChars=t=>a.test(t);e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t);e.escapeRegex=t=>t.replace(u,"\\$1");e.toPosixSlashes=t=>t.replace(n,"/");e.removeBackslashes=t=>t.replace(o,(t=>t==="\\"?"":t));e.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false};e.isWindows=t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return i===true||r.sep==="\\"};e.escapeLast=(t,s,r)=>{const i=t.lastIndexOf(s,r);if(i===-1)return t;if(t[i-1]==="\\")return e.escapeLast(t,s,i-1);return`${t.slice(0,i)}\\${t.slice(i)}`};e.removePrefix=(t,e={})=>{let s=t;if(s.startsWith("./")){s=s.slice(2);e.prefix="./"}return s};e.wrapOutput=(t,e={},s={})=>{const r=s.contains?"":"^";const i=s.contains?"":"$";let n=`${r}(?:${t})${i}`;if(e.negated===true){n=`(?:^(?!${n}).*$)`}return n}},559:(t,e,s)=>{"use strict";const r=s(147);const{Readable:i}=s(781);const n=s(17);const{promisify:o}=s(837);const a=s(376);const u=o(r.readdir);const l=o(r.stat);const c=o(r.lstat);const f=o(r.realpath);const h="!";const p="READDIRP_RECURSIVE_ERROR";const d=new Set(["ENOENT","EPERM","EACCES","ELOOP",p]);const _="files";const E="directories";const g="files_directories";const m="all";const y=[_,E,g,m];const isNormalFlowError=t=>d.has(t.code);const[R,w]=process.versions.node.split(".").slice(0,2).map((t=>Number.parseInt(t,10)));const A=process.platform==="win32"&&(R>10||R===10&&w>=5);const normalizeFilter=t=>{if(t===undefined)return;if(typeof t==="function")return t;if(typeof t==="string"){const e=a(t.trim());return t=>e(t.basename)}if(Array.isArray(t)){const e=[];const s=[];for(const r of t){const t=r.trim();if(t.charAt(0)===h){s.push(a(t.slice(1)))}else{e.push(a(t))}}if(s.length>0){if(e.length>0){return t=>e.some((e=>e(t.basename)))&&!s.some((e=>e(t.basename)))}return t=>!s.some((e=>e(t.basename)))}return t=>e.some((e=>e(t.basename)))}};class ReaddirpStream extends i{static get defaultOptions(){return{root:".",fileFilter:t=>true,directoryFilter:t=>true,type:_,lstat:false,depth:2147483648,alwaysStat:false}}constructor(t={}){super({objectMode:true,autoDestroy:true,highWaterMark:t.highWaterMark||4096});const e={...ReaddirpStream.defaultOptions,...t};const{root:s,type:i}=e;this._fileFilter=normalizeFilter(e.fileFilter);this._directoryFilter=normalizeFilter(e.directoryFilter);const o=e.lstat?c:l;if(A){this._stat=t=>o(t,{bigint:true})}else{this._stat=o}this._maxDepth=e.depth;this._wantsDir=[E,g,m].includes(i);this._wantsFile=[_,g,m].includes(i);this._wantsEverything=i===m;this._root=n.resolve(s);this._isDirent="Dirent"in r&&!e.alwaysStat;this._statsProp=this._isDirent?"dirent":"stats";this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent};this.parents=[this._exploreDir(s,1)];this.reading=false;this.parent=undefined}async _read(t){if(this.reading)return;this.reading=true;try{while(!this.destroyed&&t>0){const{path:e,depth:s,files:r=[]}=this.parent||{};if(r.length>0){const i=r.splice(0,t).map((t=>this._formatEntry(t,e)));for(const e of await Promise.all(i)){if(this.destroyed)return;const r=await this._getEntryType(e);if(r==="directory"&&this._directoryFilter(e)){if(s<=this._maxDepth){this.parents.push(this._exploreDir(e.fullPath,s+1))}if(this._wantsDir){this.push(e);t--}}else if((r==="file"||this._includeAsFile(e))&&this._fileFilter(e)){if(this._wantsFile){this.push(e);t--}}}}else{const t=this.parents.pop();if(!t){this.push(null);break}this.parent=await t;if(this.destroyed)return}}}catch(t){this.destroy(t)}finally{this.reading=false}}async _exploreDir(t,e){let s;try{s=await u(t,this._rdOptions)}catch(t){this._onError(t)}return{files:s,depth:e,path:t}}async _formatEntry(t,e){let s;try{const r=this._isDirent?t.name:t;const i=n.resolve(n.join(e,r));s={path:n.relative(this._root,i),fullPath:i,basename:r};s[this._statsProp]=this._isDirent?t:await this._stat(i)}catch(t){this._onError(t)}return s}_onError(t){if(isNormalFlowError(t)&&!this.destroyed){this.emit("warn",t)}else{this.destroy(t)}}async _getEntryType(t){const e=t&&t[this._statsProp];if(!e){return}if(e.isFile()){return"file"}if(e.isDirectory()){return"directory"}if(e&&e.isSymbolicLink()){const e=t.fullPath;try{const t=await f(e);const s=await c(t);if(s.isFile()){return"file"}if(s.isDirectory()){const s=t.length;if(e.startsWith(t)&&e.substr(s,1)===n.sep){const s=new Error(`Circular symlink detected: "${e}" points to "${t}"`);s.code=p;return this._onError(s)}return"directory"}}catch(t){this._onError(t)}}}_includeAsFile(t){const e=t&&t[this._statsProp];return e&&this._wantsEverything&&!e.isDirectory()}}const readdirp=(t,e={})=>{let s=e.entryType||e.type;if(s==="both")s=g;if(s)e.type=s;if(!t){throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)")}else if(typeof t!=="string"){throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)")}else if(s&&!y.includes(s)){throw new Error(`readdirp: Invalid type passed. Use one of ${y.join(", ")}`)}e.root=t;return new ReaddirpStream(e)};const readdirpPromise=(t,e={})=>new Promise(((s,r)=>{const i=[];readdirp(t,e).on("data",(t=>i.push(t))).on("end",(()=>s(i))).on("error",(t=>r(t)))}));readdirp.promise=readdirpPromise;readdirp.ReaddirpStream=ReaddirpStream;readdirp.default=readdirp;t.exports=readdirp},211:(t,e,s)=>{"use strict";
35
+ /*!
36
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
37
+ *
38
+ * Copyright (c) 2015-present, Jon Schlinkert.
39
+ * Released under the MIT License.
40
+ */const r=s(387);const toRegexRange=(t,e,s)=>{if(r(t)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(e===void 0||t===e){return String(t)}if(r(e)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let i={relaxZeros:true,...s};if(typeof i.strictZeros==="boolean"){i.relaxZeros=i.strictZeros===false}let n=String(i.relaxZeros);let o=String(i.shorthand);let a=String(i.capture);let u=String(i.wrap);let l=t+":"+e+"="+n+o+a+u;if(toRegexRange.cache.hasOwnProperty(l)){return toRegexRange.cache[l].result}let c=Math.min(t,e);let f=Math.max(t,e);if(Math.abs(c-f)===1){let s=t+"|"+e;if(i.capture){return`(${s})`}if(i.wrap===false){return s}return`(?:${s})`}let h=hasPadding(t)||hasPadding(e);let p={min:t,max:e,a:c,b:f};let d=[];let _=[];if(h){p.isPadded=h;p.maxLen=String(p.max).length}if(c<0){let t=f<0?Math.abs(f):1;_=splitToPatterns(t,Math.abs(c),p,i);c=p.a=0}if(f>=0){d=splitToPatterns(c,f,p,i)}p.negatives=_;p.positives=d;p.result=collatePatterns(_,d,i);if(i.capture===true){p.result=`(${p.result})`}else if(i.wrap!==false&&d.length+_.length>1){p.result=`(?:${p.result})`}toRegexRange.cache[l]=p;return p.result};function collatePatterns(t,e,s){let r=filterPatterns(t,e,"-",false,s)||[];let i=filterPatterns(e,t,"",false,s)||[];let n=filterPatterns(t,e,"-?",true,s)||[];let o=r.concat(n).concat(i);return o.join("|")}function splitToRanges(t,e){let s=1;let r=1;let i=countNines(t,s);let n=new Set([e]);while(t<=i&&i<=e){n.add(i);s+=1;i=countNines(t,s)}i=countZeros(e+1,r)-1;while(t<i&&i<=e){n.add(i);r+=1;i=countZeros(e+1,r)-1}n=[...n];n.sort(compare);return n}function rangeToPattern(t,e,s){if(t===e){return{pattern:t,count:[],digits:0}}let r=zip(t,e);let i=r.length;let n="";let o=0;for(let t=0;t<i;t++){let[e,i]=r[t];if(e===i){n+=e}else if(e!=="0"||i!=="9"){n+=toCharacterClass(e,i,s)}else{o++}}if(o){n+=s.shorthand===true?"\\d":"[0-9]"}return{pattern:n,count:[o],digits:i}}function splitToPatterns(t,e,s,r){let i=splitToRanges(t,e);let n=[];let o=t;let a;for(let t=0;t<i.length;t++){let e=i[t];let u=rangeToPattern(String(o),String(e),r);let l="";if(!s.isPadded&&a&&a.pattern===u.pattern){if(a.count.length>1){a.count.pop()}a.count.push(u.count[0]);a.string=a.pattern+toQuantifier(a.count);o=e+1;continue}if(s.isPadded){l=padZeros(e,s,r)}u.string=l+u.pattern+toQuantifier(u.count);n.push(u);o=e+1;a=u}return n}function filterPatterns(t,e,s,r,i){let n=[];for(let i of t){let{string:t}=i;if(!r&&!contains(e,"string",t)){n.push(s+t)}if(r&&contains(e,"string",t)){n.push(s+t)}}return n}function zip(t,e){let s=[];for(let r=0;r<t.length;r++)s.push([t[r],e[r]]);return s}function compare(t,e){return t>e?1:e>t?-1:0}function contains(t,e,s){return t.some((t=>t[e]===s))}function countNines(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function countZeros(t,e){return t-t%Math.pow(10,e)}function toQuantifier(t){let[e=0,s=""]=t;if(s||e>1){return`{${e+(s?","+s:"")}}`}return""}function toCharacterClass(t,e,s){return`[${t}${e-t===1?"":"-"}${e}]`}function hasPadding(t){return/^-?(0+)\d/.test(t)}function padZeros(t,e,s){if(!e.isPadded){return t}let r=Math.abs(e.maxLen-String(t).length);let i=s.relaxZeros!==false;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:{return i?`0{0,${r}}`:`0{${r}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};t.exports=toRegexRange},653:(t,e,s)=>{t.exports=require(s.ab+"fsevents.node")},361:t=>{"use strict";t.exports=require("events")},147:t=>{"use strict";t.exports=require("fs")},37:t=>{"use strict";t.exports=require("os")},17:t=>{"use strict";t.exports=require("path")},781:t=>{"use strict";t.exports=require("stream")},837:t=>{"use strict";t.exports=require("util")},600:t=>{"use strict";t.exports=JSON.parse('["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]')}};var e={};function __nccwpck_require__(s){var r=e[s];if(r!==undefined){return r.exports}var i=e[s]={exports:{}};var n=true;try{t[s](i,i.exports,__nccwpck_require__);n=false}finally{if(n)delete e[s]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var s={};(()=>{"use strict";var t=s;const{EventEmitter:e}=__nccwpck_require__(361);const r=__nccwpck_require__(147);const i=__nccwpck_require__(17);const{promisify:n}=__nccwpck_require__(837);const o=__nccwpck_require__(559);const a=__nccwpck_require__(372)["default"];const u=__nccwpck_require__(976);const l=__nccwpck_require__(654);const c=__nccwpck_require__(570);const f=__nccwpck_require__(498);const h=__nccwpck_require__(254);const p=__nccwpck_require__(578);const{EV_ALL:d,EV_READY:_,EV_ADD:E,EV_CHANGE:g,EV_UNLINK:m,EV_ADD_DIR:y,EV_UNLINK_DIR:R,EV_RAW:w,EV_ERROR:A,STR_CLOSE:b,STR_END:v,BACK_SLASH_RE:S,DOUBLE_SLASH_RE:C,SLASH_OR_BACK_SLASH_RE:x,DOT_RE:T,REPLACER_RE:H,SLASH:O,SLASH_SLASH:P,BRACE_START:I,BANG:L,ONE_DOT:N,TWO_DOTS:k,GLOBSTAR:$,SLASH_GLOBSTAR:D,ANYMATCH_OPTS:F,STRING_TYPE:M,FUNCTION_TYPE:W,EMPTY_STR:G,EMPTY_FN:B,isWindows:U,isMacos:K,isIBMi:V}=__nccwpck_require__(240);const j=n(r.stat);const Y=n(r.readdir);const arrify=(t=[])=>Array.isArray(t)?t:[t];const flatten=(t,e=[])=>{t.forEach((t=>{if(Array.isArray(t)){flatten(t,e)}else{e.push(t)}}));return e};const unifyPaths=t=>{const e=flatten(arrify(t));if(!e.every((t=>typeof t===M))){throw new TypeError(`Non-string provided as watch path: ${e}`)}return e.map(normalizePathToUnix)};const toUnix=t=>{let e=t.replace(S,O);let s=false;if(e.startsWith(P)){s=true}while(e.match(C)){e=e.replace(C,O)}if(s){e=O+e}return e};const normalizePathToUnix=t=>toUnix(i.normalize(toUnix(t)));const normalizeIgnored=(t=G)=>e=>{if(typeof e!==M)return e;return normalizePathToUnix(i.isAbsolute(e)?e:i.join(t,e))};const getAbsolutePath=(t,e)=>{if(i.isAbsolute(t)){return t}if(t.startsWith(L)){return L+i.join(e,t.slice(1))}return i.join(e,t)};const undef=(t,e)=>t[e]===undefined;class DirEntry{constructor(t,e){this.path=t;this._removeWatcher=e;this.items=new Set}add(t){const{items:e}=this;if(!e)return;if(t!==N&&t!==k)e.add(t)}async remove(t){const{items:e}=this;if(!e)return;e.delete(t);if(e.size>0)return;const s=this.path;try{await Y(s)}catch(t){if(this._removeWatcher){this._removeWatcher(i.dirname(s),i.basename(s))}}}has(t){const{items:e}=this;if(!e)return;return e.has(t)}getChildren(){const{items:t}=this;if(!t)return;return[...t.values()]}dispose(){this.items.clear();delete this.path;delete this._removeWatcher;delete this.items;Object.freeze(this)}}const z="stat";const q="lstat";class WatchHelper{constructor(t,e,s,r){this.fsw=r;this.path=t=t.replace(H,G);this.watchPath=e;this.fullWatchPath=i.resolve(e);this.hasGlob=e!==t;if(t===G)this.hasGlob=false;this.globSymlink=this.hasGlob&&s?undefined:false;this.globFilter=this.hasGlob?a(t,undefined,F):false;this.dirParts=this.getDirParts(t);this.dirParts.forEach((t=>{if(t.length>1)t.pop()}));this.followSymlinks=s;this.statMethod=s?z:q}checkGlobSymlink(t){if(this.globSymlink===undefined){this.globSymlink=t.fullParentDir===this.fullWatchPath?false:{realPath:t.fullParentDir,linkPath:this.fullWatchPath}}if(this.globSymlink){return t.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath)}return t.fullPath}entryPath(t){return i.join(this.watchPath,i.relative(this.watchPath,this.checkGlobSymlink(t)))}filterPath(t){const{stats:e}=t;if(e&&e.isSymbolicLink())return this.filterDir(t);const s=this.entryPath(t);const r=this.hasGlob&&typeof this.globFilter===W?this.globFilter(s):true;return r&&this.fsw._isntIgnored(s,e)&&this.fsw._hasReadPermissions(e)}getDirParts(t){if(!this.hasGlob)return[];const e=[];const s=t.includes(I)?c.expand(t):[t];s.forEach((t=>{e.push(i.relative(this.watchPath,t).split(x))}));return e}filterDir(t){if(this.hasGlob){const e=this.getDirParts(this.checkGlobSymlink(t));let s=false;this.unmatchedGlob=!this.dirParts.some((t=>t.every(((t,r)=>{if(t===$)s=true;return s||!e[0][r]||a(t,e[0][r],F)}))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(t),t.stats)}}class FSWatcher extends e{constructor(t){super();const e={};if(t)Object.assign(e,t);this._watched=new Map;this._closers=new Map;this._ignoredPaths=new Set;this._throttled=new Map;this._symlinkPaths=new Map;this._streams=new Set;this.closed=false;if(undef(e,"persistent"))e.persistent=true;if(undef(e,"ignoreInitial"))e.ignoreInitial=false;if(undef(e,"ignorePermissionErrors"))e.ignorePermissionErrors=false;if(undef(e,"interval"))e.interval=100;if(undef(e,"binaryInterval"))e.binaryInterval=300;if(undef(e,"disableGlobbing"))e.disableGlobbing=false;e.enableBinaryInterval=e.binaryInterval!==e.interval;if(undef(e,"useFsEvents"))e.useFsEvents=!e.usePolling;const s=p.canUse();if(!s)e.useFsEvents=false;if(undef(e,"usePolling")&&!e.useFsEvents){e.usePolling=K}if(V){e.usePolling=true}const r=process.env.CHOKIDAR_USEPOLLING;if(r!==undefined){const t=r.toLowerCase();if(t==="false"||t==="0"){e.usePolling=false}else if(t==="true"||t==="1"){e.usePolling=true}else{e.usePolling=!!t}}const i=process.env.CHOKIDAR_INTERVAL;if(i){e.interval=Number.parseInt(i,10)}if(undef(e,"atomic"))e.atomic=!e.usePolling&&!e.useFsEvents;if(e.atomic)this._pendingUnlinks=new Map;if(undef(e,"followSymlinks"))e.followSymlinks=true;if(undef(e,"awaitWriteFinish"))e.awaitWriteFinish=false;if(e.awaitWriteFinish===true)e.awaitWriteFinish={};const n=e.awaitWriteFinish;if(n){if(!n.stabilityThreshold)n.stabilityThreshold=2e3;if(!n.pollInterval)n.pollInterval=100;this._pendingWrites=new Map}if(e.ignored)e.ignored=arrify(e.ignored);let o=0;this._emitReady=()=>{o++;if(o>=this._readyCount){this._emitReady=B;this._readyEmitted=true;process.nextTick((()=>this.emit(_)))}};this._emitRaw=(...t)=>this.emit(w,...t);this._readyEmitted=false;this.options=e;if(e.useFsEvents){this._fsEventsHandler=new p(this)}else{this._nodeFsHandler=new h(this)}Object.freeze(e)}add(t,e,s){const{cwd:r,disableGlobbing:n}=this.options;this.closed=false;let o=unifyPaths(t);if(r){o=o.map((t=>{const e=getAbsolutePath(t,r);if(n||!l(t)){return e}return f(e)}))}o=o.filter((t=>{if(t.startsWith(L)){this._ignoredPaths.add(t.slice(1));return false}this._ignoredPaths.delete(t);this._ignoredPaths.delete(t+D);this._userIgnored=undefined;return true}));if(this.options.useFsEvents&&this._fsEventsHandler){if(!this._readyCount)this._readyCount=o.length;if(this.options.persistent)this._readyCount*=2;o.forEach((t=>this._fsEventsHandler._addToFsEvents(t)))}else{if(!this._readyCount)this._readyCount=0;this._readyCount+=o.length;Promise.all(o.map((async t=>{const r=await this._nodeFsHandler._addToNodeFs(t,!s,0,0,e);if(r)this._emitReady();return r}))).then((t=>{if(this.closed)return;t.filter((t=>t)).forEach((t=>{this.add(i.dirname(t),i.basename(e||t))}))}))}return this}unwatch(t){if(this.closed)return this;const e=unifyPaths(t);const{cwd:s}=this.options;e.forEach((t=>{if(!i.isAbsolute(t)&&!this._closers.has(t)){if(s)t=i.join(s,t);t=i.resolve(t)}this._closePath(t);this._ignoredPaths.add(t);if(this._watched.has(t)){this._ignoredPaths.add(t+D)}this._userIgnored=undefined}));return this}close(){if(this.closed)return this._closePromise;this.closed=true;this.removeAllListeners();const t=[];this._closers.forEach((e=>e.forEach((e=>{const s=e();if(s instanceof Promise)t.push(s)}))));this._streams.forEach((t=>t.destroy()));this._userIgnored=undefined;this._readyCount=0;this._readyEmitted=false;this._watched.forEach((t=>t.dispose()));["closers","watched","streams","symlinkPaths","throttled"].forEach((t=>{this[`_${t}`].clear()}));this._closePromise=t.length?Promise.all(t).then((()=>undefined)):Promise.resolve();return this._closePromise}getWatched(){const t={};this._watched.forEach(((e,s)=>{const r=this.options.cwd?i.relative(this.options.cwd,s):s;t[r||N]=e.getChildren().sort()}));return t}emitWithAll(t,e){this.emit(...e);if(t!==A)this.emit(d,...e)}async _emit(t,e,s,r,n){if(this.closed)return;const o=this.options;if(U)e=i.normalize(e);if(o.cwd)e=i.relative(o.cwd,e);const a=[t,e];if(n!==undefined)a.push(s,r,n);else if(r!==undefined)a.push(s,r);else if(s!==undefined)a.push(s);const u=o.awaitWriteFinish;let l;if(u&&(l=this._pendingWrites.get(e))){l.lastChange=new Date;return this}if(o.atomic){if(t===m){this._pendingUnlinks.set(e,a);setTimeout((()=>{this._pendingUnlinks.forEach(((t,e)=>{this.emit(...t);this.emit(d,...t);this._pendingUnlinks.delete(e)}))}),typeof o.atomic==="number"?o.atomic:100);return this}if(t===E&&this._pendingUnlinks.has(e)){t=a[0]=g;this._pendingUnlinks.delete(e)}}if(u&&(t===E||t===g)&&this._readyEmitted){const awfEmit=(e,s)=>{if(e){t=a[0]=A;a[1]=e;this.emitWithAll(t,a)}else if(s){if(a.length>2){a[2]=s}else{a.push(s)}this.emitWithAll(t,a)}};this._awaitWriteFinish(e,u.stabilityThreshold,t,awfEmit);return this}if(t===g){const t=!this._throttle(g,e,50);if(t)return this}if(o.alwaysStat&&s===undefined&&(t===E||t===y||t===g)){const t=o.cwd?i.join(o.cwd,e):e;let s;try{s=await j(t)}catch(t){}if(!s||this.closed)return;a.push(s)}this.emitWithAll(t,a);return this}_handleError(t){const e=t&&t.code;if(t&&e!=="ENOENT"&&e!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||e!=="EPERM"&&e!=="EACCES")){this.emit(A,t)}return t||this.closed}_throttle(t,e,s){if(!this._throttled.has(t)){this._throttled.set(t,new Map)}const r=this._throttled.get(t);const i=r.get(e);if(i){i.count++;return false}let n;const clear=()=>{const t=r.get(e);const s=t?t.count:0;r.delete(e);clearTimeout(n);if(t)clearTimeout(t.timeoutObject);return s};n=setTimeout(clear,s);const o={timeoutObject:n,clear:clear,count:0};r.set(e,o);return o}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(t,e,s,n){let o;let a=t;if(this.options.cwd&&!i.isAbsolute(t)){a=i.join(this.options.cwd,t)}const u=new Date;const awaitWriteFinish=s=>{r.stat(a,((r,i)=>{if(r||!this._pendingWrites.has(t)){if(r&&r.code!=="ENOENT")n(r);return}const a=Number(new Date);if(s&&i.size!==s.size){this._pendingWrites.get(t).lastChange=a}const u=this._pendingWrites.get(t);const l=a-u.lastChange;if(l>=e){this._pendingWrites.delete(t);n(undefined,i)}else{o=setTimeout(awaitWriteFinish,this.options.awaitWriteFinish.pollInterval,i)}}))};if(!this._pendingWrites.has(t)){this._pendingWrites.set(t,{lastChange:u,cancelWait:()=>{this._pendingWrites.delete(t);clearTimeout(o);return s}});o=setTimeout(awaitWriteFinish,this.options.awaitWriteFinish.pollInterval)}}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(t,e){if(this.options.atomic&&T.test(t))return true;if(!this._userIgnored){const{cwd:t}=this.options;const e=this.options.ignored;const s=e&&e.map(normalizeIgnored(t));const r=arrify(s).filter((t=>typeof t===M&&!l(t))).map((t=>t+D));const i=this._getGlobIgnored().map(normalizeIgnored(t)).concat(s,r);this._userIgnored=a(i,undefined,F)}return this._userIgnored([t,e])}_isntIgnored(t,e){return!this._isIgnored(t,e)}_getWatchHelpers(t,e){const s=e||this.options.disableGlobbing||!l(t)?t:u(t);const r=this.options.followSymlinks;return new WatchHelper(t,s,r,this)}_getWatchedDir(t){if(!this._boundRemove)this._boundRemove=this._remove.bind(this);const e=i.resolve(t);if(!this._watched.has(e))this._watched.set(e,new DirEntry(e,this._boundRemove));return this._watched.get(e)}_hasReadPermissions(t){if(this.options.ignorePermissionErrors)return true;const e=t&&Number.parseInt(t.mode,10);const s=e&511;const r=Number.parseInt(s.toString(8)[0],10);return Boolean(4&r)}_remove(t,e,s){const r=i.join(t,e);const n=i.resolve(r);s=s!=null?s:this._watched.has(r)||this._watched.has(n);if(!this._throttle("remove",r,100))return;if(!s&&!this.options.useFsEvents&&this._watched.size===1){this.add(t,e,true)}const o=this._getWatchedDir(r);const a=o.getChildren();a.forEach((t=>this._remove(r,t)));const u=this._getWatchedDir(t);const l=u.has(e);u.remove(e);if(this._symlinkPaths.has(n)){this._symlinkPaths.delete(n)}let c=r;if(this.options.cwd)c=i.relative(this.options.cwd,r);if(this.options.awaitWriteFinish&&this._pendingWrites.has(c)){const t=this._pendingWrites.get(c).cancelWait();if(t===E)return}this._watched.delete(r);this._watched.delete(n);const f=s?R:m;if(l&&!this._isIgnored(r))this._emit(f,r);if(!this.options.useFsEvents){this._closePath(r)}}_closePath(t){this._closeFile(t);const e=i.dirname(t);this._getWatchedDir(e).remove(i.basename(t))}_closeFile(t){const e=this._closers.get(t);if(!e)return;e.forEach((t=>t()));this._closers.delete(t)}_addPathCloser(t,e){if(!e)return;let s=this._closers.get(t);if(!s){s=[];this._closers.set(t,s)}s.push(e)}_readdirp(t,e){if(this.closed)return;const s={type:d,alwaysStat:true,lstat:true,...e};let r=o(t,s);this._streams.add(r);r.once(b,(()=>{r=undefined}));r.once(v,(()=>{if(r){this._streams.delete(r);r=undefined}}));return r}}t.FSWatcher=FSWatcher;const watch=(t,e)=>{const s=new FSWatcher(e);s.add(t);return s};t.watch=watch})();module.exports=s})();
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the “Software”), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"chokidar","author":"Paul Miller (https://paulmillr.com)","version":"3.5.3","funding":[{"type":"individual","url":"https://paulmillr.com/funding/"}],"license":"MIT","types":"./types/index.d.ts"}
@@ -0,0 +1,188 @@
1
+ // TypeScript Version: 3.0
2
+
3
+ /// <reference types="node" />
4
+
5
+ import * as fs from 'fs';
6
+ import { EventEmitter } from 'events';
7
+ import { Matcher } from '../anymatch';
8
+
9
+ export class FSWatcher extends EventEmitter implements fs.FSWatcher {
10
+ options: WatchOptions;
11
+
12
+ /**
13
+ * Constructs a new FSWatcher instance with optional WatchOptions parameter.
14
+ */
15
+ constructor(options?: WatchOptions);
16
+
17
+ /**
18
+ * Add files, directories, or glob patterns for tracking. Takes an array of strings or just one
19
+ * string.
20
+ */
21
+ add(paths: string | ReadonlyArray<string>): this;
22
+
23
+ /**
24
+ * Stop watching files, directories, or glob patterns. Takes an array of strings or just one
25
+ * string.
26
+ */
27
+ unwatch(paths: string | ReadonlyArray<string>): this;
28
+
29
+ /**
30
+ * Returns an object representing all the paths on the file system being watched by this
31
+ * `FSWatcher` instance. The object's keys are all the directories (using absolute paths unless
32
+ * the `cwd` option was used), and the values are arrays of the names of the items contained in
33
+ * each directory.
34
+ */
35
+ getWatched(): {
36
+ [directory: string]: string[];
37
+ };
38
+
39
+ /**
40
+ * Removes all listeners from watched files.
41
+ */
42
+ close(): Promise<void>;
43
+
44
+ on(event: 'add'|'addDir'|'change', listener: (path: string, stats?: fs.Stats) => void): this;
45
+
46
+ on(event: 'all', listener: (eventName: 'add'|'addDir'|'change'|'unlink'|'unlinkDir', path: string, stats?: fs.Stats) => void): this;
47
+
48
+ /**
49
+ * Error occurred
50
+ */
51
+ on(event: 'error', listener: (error: Error) => void): this;
52
+
53
+ /**
54
+ * Exposes the native Node `fs.FSWatcher events`
55
+ */
56
+ on(event: 'raw', listener: (eventName: string, path: string, details: any) => void): this;
57
+
58
+ /**
59
+ * Fires when the initial scan is complete
60
+ */
61
+ on(event: 'ready', listener: () => void): this;
62
+
63
+ on(event: 'unlink'|'unlinkDir', listener: (path: string) => void): this;
64
+
65
+ on(event: string, listener: (...args: any[]) => void): this;
66
+ }
67
+
68
+ export interface WatchOptions {
69
+ /**
70
+ * Indicates whether the process should continue to run as long as files are being watched. If
71
+ * set to `false` when using `fsevents` to watch, no more events will be emitted after `ready`,
72
+ * even if the process continues to run.
73
+ */
74
+ persistent?: boolean;
75
+
76
+ /**
77
+ * ([anymatch](https://github.com/micromatch/anymatch)-compatible definition) Defines files/paths to
78
+ * be ignored. The whole relative or absolute path is tested, not just filename. If a function
79
+ * with two arguments is provided, it gets called twice per path - once with a single argument
80
+ * (the path), second time with two arguments (the path and the
81
+ * [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object of that path).
82
+ */
83
+ ignored?: Matcher;
84
+
85
+ /**
86
+ * If set to `false` then `add`/`addDir` events are also emitted for matching paths while
87
+ * instantiating the watching as chokidar discovers these file paths (before the `ready` event).
88
+ */
89
+ ignoreInitial?: boolean;
90
+
91
+ /**
92
+ * When `false`, only the symlinks themselves will be watched for changes instead of following
93
+ * the link references and bubbling events through the link's path.
94
+ */
95
+ followSymlinks?: boolean;
96
+
97
+ /**
98
+ * The base directory from which watch `paths` are to be derived. Paths emitted with events will
99
+ * be relative to this.
100
+ */
101
+ cwd?: string;
102
+
103
+ /**
104
+ * If set to true then the strings passed to .watch() and .add() are treated as literal path
105
+ * names, even if they look like globs. Default: false.
106
+ */
107
+ disableGlobbing?: boolean;
108
+
109
+ /**
110
+ * Whether to use fs.watchFile (backed by polling), or fs.watch. If polling leads to high CPU
111
+ * utilization, consider setting this to `false`. It is typically necessary to **set this to
112
+ * `true` to successfully watch files over a network**, and it may be necessary to successfully
113
+ * watch files in other non-standard situations. Setting to `true` explicitly on OS X overrides
114
+ * the `useFsEvents` default.
115
+ */
116
+ usePolling?: boolean;
117
+
118
+ /**
119
+ * Whether to use the `fsevents` watching interface if available. When set to `true` explicitly
120
+ * and `fsevents` is available this supercedes the `usePolling` setting. When set to `false` on
121
+ * OS X, `usePolling: true` becomes the default.
122
+ */
123
+ useFsEvents?: boolean;
124
+
125
+ /**
126
+ * If relying upon the [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object that
127
+ * may get passed with `add`, `addDir`, and `change` events, set this to `true` to ensure it is
128
+ * provided even in cases where it wasn't already available from the underlying watch events.
129
+ */
130
+ alwaysStat?: boolean;
131
+
132
+ /**
133
+ * If set, limits how many levels of subdirectories will be traversed.
134
+ */
135
+ depth?: number;
136
+
137
+ /**
138
+ * Interval of file system polling.
139
+ */
140
+ interval?: number;
141
+
142
+ /**
143
+ * Interval of file system polling for binary files. ([see list of binary extensions](https://gi
144
+ * thub.com/sindresorhus/binary-extensions/blob/master/binary-extensions.json))
145
+ */
146
+ binaryInterval?: number;
147
+
148
+ /**
149
+ * Indicates whether to watch files that don't have read permissions if possible. If watching
150
+ * fails due to `EPERM` or `EACCES` with this set to `true`, the errors will be suppressed
151
+ * silently.
152
+ */
153
+ ignorePermissionErrors?: boolean;
154
+
155
+ /**
156
+ * `true` if `useFsEvents` and `usePolling` are `false`). Automatically filters out artifacts
157
+ * that occur when using editors that use "atomic writes" instead of writing directly to the
158
+ * source file. If a file is re-added within 100 ms of being deleted, Chokidar emits a `change`
159
+ * event rather than `unlink` then `add`. If the default of 100 ms does not work well for you,
160
+ * you can override it by setting `atomic` to a custom value, in milliseconds.
161
+ */
162
+ atomic?: boolean | number;
163
+
164
+ /**
165
+ * can be set to an object in order to adjust timing params:
166
+ */
167
+ awaitWriteFinish?: AwaitWriteFinishOptions | boolean;
168
+ }
169
+
170
+ export interface AwaitWriteFinishOptions {
171
+ /**
172
+ * Amount of time in milliseconds for a file size to remain constant before emitting its event.
173
+ */
174
+ stabilityThreshold?: number;
175
+
176
+ /**
177
+ * File size polling interval.
178
+ */
179
+ pollInterval?: number;
180
+ }
181
+
182
+ /**
183
+ * produces an instance of `FSWatcher`.
184
+ */
185
+ export function watch(
186
+ paths: string | ReadonlyArray<string>,
187
+ options?: WatchOptions
188
+ ): FSWatcher;
@@ -0,0 +1 @@
1
+ (()=>{var e={81:e=>{"use strict";e.exports=require("child_process")},361:e=>{"use strict";e.exports=require("events")},147:e=>{"use strict";e.exports=require("fs")},17:e=>{"use strict";e.exports=require("path")},922:(e,t,i)=>{const{Argument:n}=i(969);const{Command:s}=i(694);const{CommanderError:r,InvalidArgumentError:o}=i(967);const{Help:a}=i(34);const{Option:h}=i(278);t=e.exports=new s;t.program=t;t.Argument=n;t.Command=s;t.CommanderError=r;t.Help=a;t.InvalidArgumentError=o;t.InvalidOptionArgumentError=o;t.Option=h},969:(e,t,i)=>{const{InvalidArgumentError:n}=i(967);class Argument{constructor(e,t){this.description=t||"";this.variadic=false;this.parseArg=undefined;this.defaultValue=undefined;this.defaultValueDescription=undefined;this.argChoices=undefined;switch(e[0]){case"<":this.required=true;this._name=e.slice(1,-1);break;case"[":this.required=false;this._name=e.slice(1,-1);break;default:this.required=true;this._name=e;break}if(this._name.length>3&&this._name.slice(-3)==="..."){this.variadic=true;this._name=this._name.slice(0,-3)}}name(){return this._name}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}argParser(e){this.parseArg=e;return this}choices(e){this.argChoices=e;this.parseArg=(t,i)=>{if(!e.includes(t)){throw new n(`Allowed choices are ${e.join(", ")}.`)}if(this.variadic){return this._concatValue(t,i)}return t};return this}argRequired(){this.required=true;return this}argOptional(){this.required=false;return this}}function humanReadableArgName(e){const t=e.name()+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}t.Argument=Argument;t.humanReadableArgName=humanReadableArgName},694:(e,t,i)=>{const n=i(361).EventEmitter;const s=i(81);const r=i(17);const o=i(147);const{Argument:a,humanReadableArgName:h}=i(969);const{CommanderError:l}=i(967);const{Help:u}=i(34);const{Option:c,splitOptionFlags:p}=i(278);const{suggestSimilar:m}=i(461);class Command extends n{constructor(e){super();this.commands=[];this.options=[];this.parent=null;this._allowUnknownOption=false;this._allowExcessArguments=true;this._args=[];this.args=[];this.rawArgs=[];this.processedArgs=[];this._scriptPath=null;this._name=e||"";this._optionValues={};this._optionValueSources={};this._storeOptionsAsProperties=false;this._actionHandler=null;this._executableHandler=false;this._executableFile=null;this._defaultCommandName=null;this._exitCallback=null;this._aliases=[];this._combineFlagAndOptionalValue=true;this._description="";this._argsDescription=undefined;this._enablePositionalOptions=false;this._passThroughOptions=false;this._lifeCycleHooks={};this._showHelpAfterError=false;this._showSuggestionAfterError=false;this._outputConfiguration={writeOut:e=>process.stdout.write(e),writeErr:e=>process.stderr.write(e),getOutHelpWidth:()=>process.stdout.isTTY?process.stdout.columns:undefined,getErrHelpWidth:()=>process.stderr.isTTY?process.stderr.columns:undefined,outputError:(e,t)=>t(e)};this._hidden=false;this._hasHelpOption=true;this._helpFlags="-h, --help";this._helpDescription="display help for command";this._helpShortFlag="-h";this._helpLongFlag="--help";this._addImplicitHelpCommand=undefined;this._helpCommandName="help";this._helpCommandnameAndArgs="help [command]";this._helpCommandDescription="display help for command";this._helpConfiguration={}}copyInheritedSettings(e){this._outputConfiguration=e._outputConfiguration;this._hasHelpOption=e._hasHelpOption;this._helpFlags=e._helpFlags;this._helpDescription=e._helpDescription;this._helpShortFlag=e._helpShortFlag;this._helpLongFlag=e._helpLongFlag;this._helpCommandName=e._helpCommandName;this._helpCommandnameAndArgs=e._helpCommandnameAndArgs;this._helpCommandDescription=e._helpCommandDescription;this._helpConfiguration=e._helpConfiguration;this._exitCallback=e._exitCallback;this._storeOptionsAsProperties=e._storeOptionsAsProperties;this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue;this._allowExcessArguments=e._allowExcessArguments;this._enablePositionalOptions=e._enablePositionalOptions;this._showHelpAfterError=e._showHelpAfterError;this._showSuggestionAfterError=e._showSuggestionAfterError;return this}command(e,t,i){let n=t;let s=i;if(typeof n==="object"&&n!==null){s=n;n=null}s=s||{};const[,r,o]=e.match(/([^ ]+) *(.*)/);const a=this.createCommand(r);if(n){a.description(n);a._executableHandler=true}if(s.isDefault)this._defaultCommandName=a._name;a._hidden=!!(s.noHelp||s.hidden);a._executableFile=s.executableFile||null;if(o)a.arguments(o);this.commands.push(a);a.parent=this;a.copyInheritedSettings(this);if(n)return this;return a}createCommand(e){return new Command(e)}createHelp(){return Object.assign(new u,this.configureHelp())}configureHelp(e){if(e===undefined)return this._helpConfiguration;this._helpConfiguration=e;return this}configureOutput(e){if(e===undefined)return this._outputConfiguration;Object.assign(this._outputConfiguration,e);return this}showHelpAfterError(e=true){if(typeof e!=="string")e=!!e;this._showHelpAfterError=e;return this}showSuggestionAfterError(e=true){this._showSuggestionAfterError=!!e;return this}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name");function checkExplicitNames(e){e.forEach((e=>{if(e._executableHandler&&!e._executableFile){throw new Error(`Must specify executableFile for deeply nested executable: ${e.name()}`)}checkExplicitNames(e.commands)}))}checkExplicitNames(e.commands);t=t||{};if(t.isDefault)this._defaultCommandName=e._name;if(t.noHelp||t.hidden)e._hidden=true;this.commands.push(e);e.parent=this;return this}createArgument(e,t){return new a(e,t)}argument(e,t,i,n){const s=this.createArgument(e,t);if(typeof i==="function"){s.default(n).argParser(i)}else{s.default(i)}this.addArgument(s);return this}arguments(e){e.split(/ +/).forEach((e=>{this.argument(e)}));return this}addArgument(e){const t=this._args.slice(-1)[0];if(t&&t.variadic){throw new Error(`only the last argument can be variadic '${t.name()}'`)}if(e.required&&e.defaultValue!==undefined&&e.parseArg===undefined){throw new Error(`a default value for a required argument is never used: '${e.name()}'`)}this._args.push(e);return this}addHelpCommand(e,t){if(e===false){this._addImplicitHelpCommand=false}else{this._addImplicitHelpCommand=true;if(typeof e==="string"){this._helpCommandName=e.split(" ")[0];this._helpCommandnameAndArgs=e}this._helpCommandDescription=t||this._helpCommandDescription}return this}_hasImplicitHelpCommand(){if(this._addImplicitHelpCommand===undefined){return this.commands.length&&!this._actionHandler&&!this._findCommand("help")}return this._addImplicitHelpCommand}hook(e,t){const i=["preAction","postAction"];if(!i.includes(e)){throw new Error(`Unexpected value for event passed to hook : '${e}'.\nExpecting one of '${i.join("', '")}'`)}if(this._lifeCycleHooks[e]){this._lifeCycleHooks[e].push(t)}else{this._lifeCycleHooks[e]=[t]}return this}exitOverride(e){if(e){this._exitCallback=e}else{this._exitCallback=e=>{if(e.code!=="commander.executeSubCommandAsync"){throw e}else{}}}return this}_exit(e,t,i){if(this._exitCallback){this._exitCallback(new l(e,t,i))}process.exit(e)}action(e){const listener=t=>{const i=this._args.length;const n=t.slice(0,i);if(this._storeOptionsAsProperties){n[i]=this}else{n[i]=this.opts()}n.push(this);return e.apply(this,n)};this._actionHandler=listener;return this}createOption(e,t){return new c(e,t)}addOption(e){const t=e.name();const i=e.attributeName();let n=e.defaultValue;if(e.negate||e.optional||e.required||typeof n==="boolean"){if(e.negate){const t=e.long.replace(/^--no-/,"--");n=this._findOption(t)?this.getOptionValue(i):true}if(n!==undefined){this.setOptionValueWithSource(i,n,"default")}}this.options.push(e);const handleOptionValue=(t,s,r)=>{const o=this.getOptionValue(i);if(t!==null&&e.parseArg){try{t=e.parseArg(t,o===undefined?n:o)}catch(e){if(e.code==="commander.invalidArgument"){const t=`${s} ${e.message}`;this._displayError(e.exitCode,e.code,t)}throw e}}else if(t!==null&&e.variadic){t=e._concatValue(t,o)}if(typeof o==="boolean"||typeof o==="undefined"){if(t==null){this.setOptionValueWithSource(i,e.negate?false:n||true,r)}else{this.setOptionValueWithSource(i,t,r)}}else if(t!==null){this.setOptionValueWithSource(i,e.negate?false:t,r)}};this.on("option:"+t,(t=>{const i=`error: option '${e.flags}' argument '${t}' is invalid.`;handleOptionValue(t,i,"cli")}));if(e.envVar){this.on("optionEnv:"+t,(t=>{const i=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;handleOptionValue(t,i,"env")}))}return this}_optionEx(e,t,i,n,s){const r=this.createOption(t,i);r.makeOptionMandatory(!!e.mandatory);if(typeof n==="function"){r.default(s).argParser(n)}else if(n instanceof RegExp){const e=n;n=(t,i)=>{const n=e.exec(t);return n?n[0]:i};r.default(s).argParser(n)}else{r.default(n)}return this.addOption(r)}option(e,t,i,n){return this._optionEx({},e,t,i,n)}requiredOption(e,t,i,n){return this._optionEx({mandatory:true},e,t,i,n)}combineFlagAndOptionalValue(e=true){this._combineFlagAndOptionalValue=!!e;return this}allowUnknownOption(e=true){this._allowUnknownOption=!!e;return this}allowExcessArguments(e=true){this._allowExcessArguments=!!e;return this}enablePositionalOptions(e=true){this._enablePositionalOptions=!!e;return this}passThroughOptions(e=true){this._passThroughOptions=!!e;if(!!this.parent&&e&&!this.parent._enablePositionalOptions){throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)")}return this}storeOptionsAsProperties(e=true){this._storeOptionsAsProperties=!!e;if(this.options.length){throw new Error("call .storeOptionsAsProperties() before adding options")}return this}getOptionValue(e){if(this._storeOptionsAsProperties){return this[e]}return this._optionValues[e]}setOptionValue(e,t){if(this._storeOptionsAsProperties){this[e]=t}else{this._optionValues[e]=t}return this}setOptionValueWithSource(e,t,i){this.setOptionValue(e,t);this._optionValueSources[e]=i;return this}getOptionValueSource(e){return this._optionValueSources[e]}_prepareUserArgs(e,t){if(e!==undefined&&!Array.isArray(e)){throw new Error("first parameter to parse must be array or undefined")}t=t||{};if(e===undefined){e=process.argv;if(process.versions&&process.versions.electron){t.from="electron"}}this.rawArgs=e.slice();let i;switch(t.from){case undefined:case"node":this._scriptPath=e[1];i=e.slice(2);break;case"electron":if(process.defaultApp){this._scriptPath=e[1];i=e.slice(2)}else{i=e.slice(1)}break;case"user":i=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}if(!this._scriptPath&&require.main){this._scriptPath=require.main.filename}this._name=this._name||this._scriptPath&&r.basename(this._scriptPath,r.extname(this._scriptPath));return i}parse(e,t){const i=this._prepareUserArgs(e,t);this._parseCommand([],i);return this}async parseAsync(e,t){const i=this._prepareUserArgs(e,t);await this._parseCommand([],i);return this}_executeSubCommand(e,t){t=t.slice();let i=false;const n=[".js",".ts",".tsx",".mjs",".cjs"];this._checkForMissingMandatoryOptions();let a=this._scriptPath;if(!a&&require.main){a=require.main.filename}let h;try{const e=o.realpathSync(a);h=r.dirname(e)}catch(e){h="."}let u=r.basename(a,r.extname(a))+"-"+e._name;if(e._executableFile){u=e._executableFile}const c=r.join(h,u);if(o.existsSync(c)){u=c}else{n.forEach((e=>{if(o.existsSync(`${c}${e}`)){u=`${c}${e}`}}))}i=n.includes(r.extname(u));let p;if(process.platform!=="win32"){if(i){t.unshift(u);t=incrementNodeInspectorPort(process.execArgv).concat(t);p=s.spawn(process.argv[0],t,{stdio:"inherit"})}else{p=s.spawn(u,t,{stdio:"inherit"})}}else{t.unshift(u);t=incrementNodeInspectorPort(process.execArgv).concat(t);p=s.spawn(process.execPath,t,{stdio:"inherit"})}const m=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];m.forEach((e=>{process.on(e,(()=>{if(p.killed===false&&p.exitCode===null){p.kill(e)}}))}));const d=this._exitCallback;if(!d){p.on("close",process.exit.bind(process))}else{p.on("close",(()=>{d(new l(process.exitCode||0,"commander.executeSubCommandAsync","(close)"))}))}p.on("error",(t=>{if(t.code==="ENOENT"){const t=`'${u}' does not exist\n - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name`;throw new Error(t)}else if(t.code==="EACCES"){throw new Error(`'${u}' not executable`)}if(!d){process.exit(1)}else{const e=new l(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t;d(e)}}));this.runningCommand=p}_dispatchSubcommand(e,t,i){const n=this._findCommand(e);if(!n)this.help({error:true});if(n._executableHandler){this._executeSubCommand(n,t.concat(i))}else{return n._parseCommand(t,i)}}_checkNumberOfArguments(){this._args.forEach(((e,t)=>{if(e.required&&this.args[t]==null){this.missingArgument(e.name())}}));if(this._args.length>0&&this._args[this._args.length-1].variadic){return}if(this.args.length>this._args.length){this._excessArguments(this.args)}}_processArguments(){const myParseArg=(e,t,i)=>{let n=t;if(t!==null&&e.parseArg){try{n=e.parseArg(t,i)}catch(i){if(i.code==="commander.invalidArgument"){const n=`error: command-argument value '${t}' is invalid for argument '${e.name()}'. ${i.message}`;this._displayError(i.exitCode,i.code,n)}throw i}}return n};this._checkNumberOfArguments();const e=[];this._args.forEach(((t,i)=>{let n=t.defaultValue;if(t.variadic){if(i<this.args.length){n=this.args.slice(i);if(t.parseArg){n=n.reduce(((e,i)=>myParseArg(t,i,e)),t.defaultValue)}}else if(n===undefined){n=[]}}else if(i<this.args.length){n=this.args[i];if(t.parseArg){n=myParseArg(t,n,t.defaultValue)}}e[i]=n}));this.processedArgs=e}_chainOrCall(e,t){if(e&&e.then&&typeof e.then==="function"){return e.then((()=>t()))}return t()}_chainOrCallHooks(e,t){let i=e;const n=[];getCommandAndParents(this).reverse().filter((e=>e._lifeCycleHooks[t]!==undefined)).forEach((e=>{e._lifeCycleHooks[t].forEach((t=>{n.push({hookedCommand:e,callback:t})}))}));if(t==="postAction"){n.reverse()}n.forEach((e=>{i=this._chainOrCall(i,(()=>e.callback(e.hookedCommand,this)))}));return i}_parseCommand(e,t){const i=this.parseOptions(t);this._parseOptionsEnv();e=e.concat(i.operands);t=i.unknown;this.args=e.concat(t);if(e&&this._findCommand(e[0])){return this._dispatchSubcommand(e[0],e.slice(1),t)}if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName){if(e.length===1){this.help()}return this._dispatchSubcommand(e[1],[],[this._helpLongFlag])}if(this._defaultCommandName){outputHelpIfRequested(this,t);return this._dispatchSubcommand(this._defaultCommandName,e,t)}if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName){this.help({error:true})}outputHelpIfRequested(this,i.unknown);this._checkForMissingMandatoryOptions();const checkForUnknownOptions=()=>{if(i.unknown.length>0){this.unknownOption(i.unknown[0])}};const n=`command:${this.name()}`;if(this._actionHandler){checkForUnknownOptions();this._processArguments();let i;i=this._chainOrCallHooks(i,"preAction");i=this._chainOrCall(i,(()=>this._actionHandler(this.processedArgs)));if(this.parent)this.parent.emit(n,e,t);i=this._chainOrCallHooks(i,"postAction");return i}if(this.parent&&this.parent.listenerCount(n)){checkForUnknownOptions();this._processArguments();this.parent.emit(n,e,t)}else if(e.length){if(this._findCommand("*")){return this._dispatchSubcommand("*",e,t)}if(this.listenerCount("command:*")){this.emit("command:*",e,t)}else if(this.commands.length){this.unknownCommand()}else{checkForUnknownOptions();this._processArguments()}}else if(this.commands.length){checkForUnknownOptions();this.help({error:true})}else{checkForUnknownOptions();this._processArguments()}}_findCommand(e){if(!e)return undefined;return this.commands.find((t=>t._name===e||t._aliases.includes(e)))}_findOption(e){return this.options.find((t=>t.is(e)))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent){e.options.forEach((t=>{if(t.mandatory&&e.getOptionValue(t.attributeName())===undefined){e.missingMandatoryOptionValue(t)}}))}}parseOptions(e){const t=[];const i=[];let n=t;const s=e.slice();function maybeOption(e){return e.length>1&&e[0]==="-"}let r=null;while(s.length){const e=s.shift();if(e==="--"){if(n===i)n.push(e);n.push(...s);break}if(r&&!maybeOption(e)){this.emit(`option:${r.name()}`,e);continue}r=null;if(maybeOption(e)){const t=this._findOption(e);if(t){if(t.required){const e=s.shift();if(e===undefined)this.optionMissingArgument(t);this.emit(`option:${t.name()}`,e)}else if(t.optional){let e=null;if(s.length>0&&!maybeOption(s[0])){e=s.shift()}this.emit(`option:${t.name()}`,e)}else{this.emit(`option:${t.name()}`)}r=t.variadic?t:null;continue}}if(e.length>2&&e[0]==="-"&&e[1]!=="-"){const t=this._findOption(`-${e[1]}`);if(t){if(t.required||t.optional&&this._combineFlagAndOptionalValue){this.emit(`option:${t.name()}`,e.slice(2))}else{this.emit(`option:${t.name()}`);s.unshift(`-${e.slice(2)}`)}continue}}if(/^--[^=]+=/.test(e)){const t=e.indexOf("=");const i=this._findOption(e.slice(0,t));if(i&&(i.required||i.optional)){this.emit(`option:${i.name()}`,e.slice(t+1));continue}}if(maybeOption(e)){n=i}if((this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&i.length===0){if(this._findCommand(e)){t.push(e);if(s.length>0)i.push(...s);break}else if(e===this._helpCommandName&&this._hasImplicitHelpCommand()){t.push(e);if(s.length>0)t.push(...s);break}else if(this._defaultCommandName){i.push(e);if(s.length>0)i.push(...s);break}}if(this._passThroughOptions){n.push(e);if(s.length>0)n.push(...s);break}n.push(e)}return{operands:t,unknown:i}}opts(){if(this._storeOptionsAsProperties){const e={};const t=this.options.length;for(let i=0;i<t;i++){const t=this.options[i].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}_displayError(e,t,i){this._outputConfiguration.outputError(`${i}\n`,this._outputConfiguration.writeErr);if(typeof this._showHelpAfterError==="string"){this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`)}else if(this._showHelpAfterError){this._outputConfiguration.writeErr("\n");this.outputHelp({error:true})}this._exit(e,t,i)}_parseOptionsEnv(){this.options.forEach((e=>{if(e.envVar&&e.envVar in process.env){const t=e.attributeName();if(this.getOptionValue(t)===undefined||["default","config","env"].includes(this.getOptionValueSource(t))){if(e.required||e.optional){this.emit(`optionEnv:${e.name()}`,process.env[e.envVar])}else{this.emit(`optionEnv:${e.name()}`)}}}}))}missingArgument(e){const t=`error: missing required argument '${e}'`;this._displayError(1,"commander.missingArgument",t)}optionMissingArgument(e){const t=`error: option '${e.flags}' argument missing`;this._displayError(1,"commander.optionMissingArgument",t)}missingMandatoryOptionValue(e){const t=`error: required option '${e.flags}' not specified`;this._displayError(1,"commander.missingMandatoryOptionValue",t)}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[];let n=this;do{const e=n.createHelp().visibleOptions(n).filter((e=>e.long)).map((e=>e.long));i=i.concat(e);n=n.parent}while(n&&!n._enablePositionalOptions);t=m(e,i)}const i=`error: unknown option '${e}'${t}`;this._displayError(1,"commander.unknownOption",i)}_excessArguments(e){if(this._allowExcessArguments)return;const t=this._args.length;const i=t===1?"":"s";const n=this.parent?` for '${this.name()}'`:"";const s=`error: too many arguments${n}. Expected ${t} argument${i} but got ${e.length}.`;this._displayError(1,"commander.excessArguments",s)}unknownCommand(){const e=this.args[0];let t="";if(this._showSuggestionAfterError){const i=[];this.createHelp().visibleCommands(this).forEach((e=>{i.push(e.name());if(e.alias())i.push(e.alias())}));t=m(e,i)}const i=`error: unknown command '${e}'${t}`;this._displayError(1,"commander.unknownCommand",i)}version(e,t,i){if(e===undefined)return this._version;this._version=e;t=t||"-V, --version";i=i||"output the version number";const n=this.createOption(t,i);this._versionOptionName=n.attributeName();this.options.push(n);this.on("option:"+n.name(),(()=>{this._outputConfiguration.writeOut(`${e}\n`);this._exit(0,"commander.version",e)}));return this}description(e,t){if(e===undefined&&t===undefined)return this._description;this._description=e;if(t){this._argsDescription=t}return this}alias(e){if(e===undefined)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler){t=this.commands[this.commands.length-1]}if(e===t._name)throw new Error("Command alias can't be the same as its name");t._aliases.push(e);return this}aliases(e){if(e===undefined)return this._aliases;e.forEach((e=>this.alias(e)));return this}usage(e){if(e===undefined){if(this._usage)return this._usage;const e=this._args.map((e=>h(e)));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?e:[]).join(" ")}this._usage=e;return this}name(e){if(e===undefined)return this._name;this._name=e;return this}helpInformation(e){const t=this.createHelp();if(t.helpWidth===undefined){t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()}return t.formatHelp(this,t)}_getHelpContext(e){e=e||{};const t={error:!!e.error};let i;if(t.error){i=e=>this._outputConfiguration.writeErr(e)}else{i=e=>this._outputConfiguration.writeOut(e)}t.write=e.write||i;t.command=this;return t}outputHelp(e){let t;if(typeof e==="function"){t=e;e=undefined}const i=this._getHelpContext(e);getCommandAndParents(this).reverse().forEach((e=>e.emit("beforeAllHelp",i)));this.emit("beforeHelp",i);let n=this.helpInformation(i);if(t){n=t(n);if(typeof n!=="string"&&!Buffer.isBuffer(n)){throw new Error("outputHelp callback must return a string or a Buffer")}}i.write(n);this.emit(this._helpLongFlag);this.emit("afterHelp",i);getCommandAndParents(this).forEach((e=>e.emit("afterAllHelp",i)))}helpOption(e,t){if(typeof e==="boolean"){this._hasHelpOption=e;return this}this._helpFlags=e||this._helpFlags;this._helpDescription=t||this._helpDescription;const i=p(this._helpFlags);this._helpShortFlag=i.shortFlag;this._helpLongFlag=i.longFlag;return this}help(e){this.outputHelp(e);let t=process.exitCode||0;if(t===0&&e&&typeof e!=="function"&&e.error){t=1}this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){const i=["beforeAll","before","after","afterAll"];if(!i.includes(e)){throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${i.join("', '")}'`)}const n=`${e}Help`;this.on(n,(e=>{let i;if(typeof t==="function"){i=t({error:e.error,command:e.command})}else{i=t}if(i){e.write(`${i}\n`)}}));return this}}function outputHelpIfRequested(e,t){const i=e._hasHelpOption&&t.find((t=>t===e._helpLongFlag||t===e._helpShortFlag));if(i){e.outputHelp();e._exit(0,"commander.helpDisplayed","(outputHelp)")}}function incrementNodeInspectorPort(e){return e.map((e=>{if(!e.startsWith("--inspect")){return e}let t;let i="127.0.0.1";let n="9229";let s;if((s=e.match(/^(--inspect(-brk)?)$/))!==null){t=s[1]}else if((s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null){t=s[1];if(/^\d+$/.test(s[3])){n=s[3]}else{i=s[3]}}else if((s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null){t=s[1];i=s[3];n=s[4]}if(t&&n!=="0"){return`${t}=${i}:${parseInt(n)+1}`}return e}))}function getCommandAndParents(e){const t=[];for(let i=e;i;i=i.parent){t.push(i)}return t}t.Command=Command},967:(e,t)=>{class CommanderError extends Error{constructor(e,t,i){super(i);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=t;this.exitCode=e;this.nestedError=undefined}}class InvalidArgumentError extends CommanderError{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name}}t.CommanderError=CommanderError;t.InvalidArgumentError=InvalidArgumentError},34:(e,t,i)=>{const{humanReadableArgName:n}=i(969);class Help{constructor(){this.helpWidth=undefined;this.sortSubcommands=false;this.sortOptions=false}visibleCommands(e){const t=e.commands.filter((e=>!e._hidden));if(e._hasImplicitHelpCommand()){const[,i,n]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/);const s=e.createCommand(i).helpOption(false);s.description(e._helpCommandDescription);if(n)s.arguments(n);t.push(s)}if(this.sortSubcommands){t.sort(((e,t)=>e.name().localeCompare(t.name())))}return t}visibleOptions(e){const t=e.options.filter((e=>!e.hidden));const i=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag);const n=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(i||n){let s;if(!i){s=e.createOption(e._helpLongFlag,e._helpDescription)}else if(!n){s=e.createOption(e._helpShortFlag,e._helpDescription)}else{s=e.createOption(e._helpFlags,e._helpDescription)}t.push(s)}if(this.sortOptions){const getSortKey=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");t.sort(((e,t)=>getSortKey(e).localeCompare(getSortKey(t))))}return t}visibleArguments(e){if(e._argsDescription){e._args.forEach((t=>{t.description=t.description||e._argsDescription[t.name()]||""}))}if(e._args.find((e=>e.description))){return e._args}return[]}subcommandTerm(e){const t=e._args.map((e=>n(e))).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce(((e,i)=>Math.max(e,t.subcommandTerm(i).length)),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce(((e,i)=>Math.max(e,t.optionTerm(i).length)),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce(((e,i)=>Math.max(e,t.argumentTerm(i).length)),0)}commandUsage(e){let t=e._name;if(e._aliases[0]){t=t+"|"+e._aliases[0]}let i="";for(let t=e.parent;t;t=t.parent){i=t.name()+" "+i}return i+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.description()}optionDescription(e){const t=[];if(e.argChoices&&!e.negate){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined&&!e.negate){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}if(e.envVar!==undefined){t.push(`env: ${e.envVar}`)}if(t.length>0){return`${e.description} (${t.join(", ")})`}return e.description}argumentDescription(e){const t=[];if(e.argChoices){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}if(t.length>0){const i=`(${t.join(", ")})`;if(e.description){return`${e.description} ${i}`}return i}return e.description}formatHelp(e,t){const i=t.padWidth(e,t);const n=t.helpWidth||80;const s=2;const r=2;function formatItem(e,o){if(o){const a=`${e.padEnd(i+r)}${o}`;return t.wrap(a,n-s,i+r)}return e}function formatList(e){return e.join("\n").replace(/^/gm," ".repeat(s))}let o=[`Usage: ${t.commandUsage(e)}`,""];const a=t.commandDescription(e);if(a.length>0){o=o.concat([a,""])}const h=t.visibleArguments(e).map((e=>formatItem(t.argumentTerm(e),t.argumentDescription(e))));if(h.length>0){o=o.concat(["Arguments:",formatList(h),""])}const l=t.visibleOptions(e).map((e=>formatItem(t.optionTerm(e),t.optionDescription(e))));if(l.length>0){o=o.concat(["Options:",formatList(l),""])}const u=t.visibleCommands(e).map((e=>formatItem(t.subcommandTerm(e),t.subcommandDescription(e))));if(u.length>0){o=o.concat(["Commands:",formatList(u),""])}return o.join("\n")}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,i,n=40){if(e.match(/[\n]\s+/))return e;const s=t-i;if(s<n)return e;const r=e.substr(0,i);const o=e.substr(i);const a=" ".repeat(i);const h=new RegExp(".{1,"+(s-1)+"}([\\s​]|$)|[^\\s​]+?([\\s​]|$)","g");const l=o.match(h)||[];return r+l.map(((e,t)=>{if(e.slice(-1)==="\n"){e=e.slice(0,e.length-1)}return(t>0?a:"")+e.trimRight()})).join("\n")}}t.Help=Help},278:(e,t,i)=>{const{InvalidArgumentError:n}=i(967);class Option{constructor(e,t){this.flags=e;this.description=t||"";this.required=e.includes("<");this.optional=e.includes("[");this.variadic=/\w\.\.\.[>\]]$/.test(e);this.mandatory=false;const i=splitOptionFlags(e);this.short=i.shortFlag;this.long=i.longFlag;this.negate=false;if(this.long){this.negate=this.long.startsWith("--no-")}this.defaultValue=undefined;this.defaultValueDescription=undefined;this.envVar=undefined;this.parseArg=undefined;this.hidden=false;this.argChoices=undefined}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}env(e){this.envVar=e;return this}argParser(e){this.parseArg=e;return this}makeOptionMandatory(e=true){this.mandatory=!!e;return this}hideHelp(e=true){this.hidden=!!e;return this}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}choices(e){this.argChoices=e;this.parseArg=(t,i)=>{if(!e.includes(t)){throw new n(`Allowed choices are ${e.join(", ")}.`)}if(this.variadic){return this._concatValue(t,i)}return t};return this}name(){if(this.long){return this.long.replace(/^--/,"")}return this.short.replace(/^-/,"")}attributeName(){return camelcase(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}}function camelcase(e){return e.split("-").reduce(((e,t)=>e+t[0].toUpperCase()+t.slice(1)))}function splitOptionFlags(e){let t;let i;const n=e.split(/[ |,]+/);if(n.length>1&&!/^[[<]/.test(n[1]))t=n.shift();i=n.shift();if(!t&&/^-[^-]$/.test(i)){t=i;i=undefined}return{shortFlag:t,longFlag:i}}t.Option=Option;t.splitOptionFlags=splitOptionFlags},461:(e,t)=>{const i=3;function editDistance(e,t){if(Math.abs(e.length-t.length)>i)return Math.max(e.length,t.length);const n=[];for(let t=0;t<=e.length;t++){n[t]=[t]}for(let e=0;e<=t.length;e++){n[0][e]=e}for(let i=1;i<=t.length;i++){for(let s=1;s<=e.length;s++){let r=1;if(e[s-1]===t[i-1]){r=0}else{r=1}n[s][i]=Math.min(n[s-1][i]+1,n[s][i-1]+1,n[s-1][i-1]+r);if(s>1&&i>1&&e[s-1]===t[i-2]&&e[s-2]===t[i-1]){n[s][i]=Math.min(n[s][i],n[s-2][i-2]+1)}}}return n[e.length][t.length]}function suggestSimilar(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));const n=e.startsWith("--");if(n){e=e.slice(2);t=t.map((e=>e.slice(2)))}let s=[];let r=i;const o=.4;t.forEach((t=>{if(t.length<=1)return;const i=editDistance(e,t);const n=Math.max(e.length,t.length);const a=(n-i)/n;if(a>o){if(i<r){r=i;s=[t]}else if(i===r){s.push(t)}}}));s.sort(((e,t)=>e.localeCompare(t)));if(n){s=s.map((e=>`--${e}`))}if(s.length>1){return`\n(Did you mean one of ${s.join(", ")}?)`}if(s.length===1){return`\n(Did you mean ${s[0]}?)`}return""}t.suggestSimilar=suggestSimilar}};var t={};function __nccwpck_require__(i){var n=t[i];if(n!==undefined){return n.exports}var s=t[i]={exports:{}};var r=true;try{e[i](s,s.exports,__nccwpck_require__);r=false}finally{if(r)delete t[i]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var i=__nccwpck_require__(922);module.exports=i})();
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"commander","author":"TJ Holowaychuk <tj@vision-media.ca>","version":"8.3.0","license":"MIT","types":"typings/index.d.ts"}