@socketsecurity/cli-with-sentry 1.0.7 → 1.0.9

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 (171) hide show
  1. package/dist/cli.js +135 -109
  2. package/dist/cli.js.map +1 -1
  3. package/dist/constants.js +8 -3
  4. package/dist/constants.js.map +1 -1
  5. package/dist/shadow-npm-bin.js +5 -5
  6. package/dist/shadow-npm-bin.js.map +1 -1
  7. package/dist/socket-completion.bash +23 -7
  8. package/dist/types/commands/analytics/cmd-analytics.d.mts.map +1 -1
  9. package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +1 -1
  10. package/dist/types/commands/config/cmd-config-auto.d.mts.map +1 -1
  11. package/dist/types/commands/config/cmd-config-get.d.mts.map +1 -1
  12. package/dist/types/commands/config/cmd-config-list.d.mts.map +1 -1
  13. package/dist/types/commands/config/cmd-config-set.d.mts.map +1 -1
  14. package/dist/types/commands/config/cmd-config-unset.d.mts.map +1 -1
  15. package/dist/types/commands/fix/agent-fix.d.mts +4 -4
  16. package/dist/types/commands/fix/agent-fix.d.mts.map +1 -1
  17. package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
  18. package/dist/types/commands/fix/handle-fix.d.mts +4 -3
  19. package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
  20. package/dist/types/commands/fix/npm-fix.d.mts +2 -2
  21. package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
  22. package/dist/types/commands/fix/pnpm-fix.d.mts +2 -2
  23. package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
  24. package/dist/types/commands/install/setup-tab-completion.d.mts.map +1 -1
  25. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -1
  26. package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -1
  27. package/dist/types/commands/npx/cmd-npx.d.mts.map +1 -1
  28. package/dist/types/commands/organization/cmd-organization-dependencies.d.mts.map +1 -1
  29. package/dist/types/commands/organization/cmd-organization-list.d.mts.map +1 -1
  30. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +1 -1
  31. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +1 -1
  32. package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +1 -1
  33. package/dist/types/commands/package/cmd-package-score.d.mts.map +1 -1
  34. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +1 -1
  35. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +1 -1
  36. package/dist/types/commands/repository/cmd-repository-create.d.mts.map +1 -1
  37. package/dist/types/commands/repository/cmd-repository-list.d.mts.map +1 -1
  38. package/dist/types/commands/repository/cmd-repository-update.d.mts.map +1 -1
  39. package/dist/types/commands/repository/cmd-repository-view.d.mts.map +1 -1
  40. package/dist/types/commands/scan/cmd-scan-del.d.mts.map +1 -1
  41. package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +1 -1
  42. package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
  43. package/dist/types/commands/scan/handle-scan-reach.d.mts +8 -0
  44. package/dist/types/commands/scan/handle-scan-reach.d.mts.map +1 -0
  45. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +1 -1
  46. package/dist/types/constants.d.mts.map +1 -1
  47. package/dist/types/utils/alerts-map.d.mts.map +1 -1
  48. package/dist/types/utils/api.d.mts.map +1 -1
  49. package/dist/types/utils/meow-with-subcommands.d.mts +1 -3
  50. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  51. package/dist/utils.js +33 -45
  52. package/dist/utils.js.map +1 -1
  53. package/dist/vendor.js +3008 -583
  54. package/external/@coana-tech/cli/cli.mjs +1 -1
  55. package/external/@socketsecurity/registry/lib/constants/npm-real-exec-path.js +2 -40
  56. package/external/@socketsecurity/registry/lib/npm.js +102 -71
  57. package/external/@socketsecurity/registry/lib/spinner.js +6 -0
  58. package/external/blessed-contrib/lib/widget/charts/bar.js +4 -3
  59. package/external/blessed-contrib/lib/widget/charts/line.js +4 -3
  60. package/external/blessed-contrib/lib/widget/table.js +3 -3
  61. package/package.json +17 -16
  62. package/dist/types/commands/scan/handle-reach-scan.d.mts +0 -3
  63. package/dist/types/commands/scan/handle-reach-scan.d.mts.map +0 -1
  64. package/external/node-gyp/.release-please-manifest.json +0 -3
  65. package/external/node-gyp/CHANGELOG.md +0 -1053
  66. package/external/node-gyp/CODE_OF_CONDUCT.md +0 -4
  67. package/external/node-gyp/CONTRIBUTING.md +0 -34
  68. package/external/node-gyp/LICENSE +0 -24
  69. package/external/node-gyp/README.md +0 -273
  70. package/external/node-gyp/SECURITY.md +0 -2
  71. package/external/node-gyp/addon.gypi +0 -204
  72. package/external/node-gyp/bin/node-gyp.js +0 -137
  73. package/external/node-gyp/eslint.config.js +0 -3
  74. package/external/node-gyp/gyp/.release-please-manifest.json +0 -3
  75. package/external/node-gyp/gyp/LICENSE +0 -28
  76. package/external/node-gyp/gyp/data/ninja/build.ninja +0 -4
  77. package/external/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  78. package/external/node-gyp/gyp/docs/GypVsCMake.md +0 -116
  79. package/external/node-gyp/gyp/docs/Hacking.md +0 -46
  80. package/external/node-gyp/gyp/docs/InputFormatReference.md +0 -1083
  81. package/external/node-gyp/gyp/docs/LanguageSpecification.md +0 -430
  82. package/external/node-gyp/gyp/docs/README.md +0 -27
  83. package/external/node-gyp/gyp/docs/Testing.md +0 -450
  84. package/external/node-gyp/gyp/docs/UserDocumentation.md +0 -965
  85. package/external/node-gyp/gyp/gyp +0 -8
  86. package/external/node-gyp/gyp/gyp.bat +0 -5
  87. package/external/node-gyp/gyp/gyp_main.py +0 -45
  88. package/external/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  89. package/external/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  90. package/external/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
  91. package/external/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
  92. package/external/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  93. package/external/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  94. package/external/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  95. package/external/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
  96. package/external/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
  97. package/external/node-gyp/gyp/pylib/gyp/common.py +0 -709
  98. package/external/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
  99. package/external/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
  100. package/external/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  101. package/external/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  102. package/external/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  103. package/external/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  104. package/external/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
  105. package/external/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
  106. package/external/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  107. package/external/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  108. package/external/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
  109. package/external/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
  110. package/external/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
  111. package/external/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
  112. package/external/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
  113. package/external/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  114. package/external/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
  115. package/external/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
  116. package/external/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
  117. package/external/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  118. package/external/node-gyp/gyp/pylib/gyp/input.py +0 -3112
  119. package/external/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  120. package/external/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
  121. package/external/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
  122. package/external/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  123. package/external/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  124. package/external/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
  125. package/external/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
  126. package/external/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  127. package/external/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
  128. package/external/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
  129. package/external/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
  130. package/external/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  131. package/external/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  132. package/external/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  133. package/external/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  134. package/external/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
  135. package/external/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  136. package/external/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  137. package/external/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  138. package/external/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  139. package/external/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  140. package/external/node-gyp/gyp/pylib/packaging/markers.py +0 -252
  141. package/external/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
  142. package/external/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  143. package/external/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  144. package/external/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  145. package/external/node-gyp/gyp/pylib/packaging/tags.py +0 -553
  146. package/external/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  147. package/external/node-gyp/gyp/pylib/packaging/version.py +0 -563
  148. package/external/node-gyp/gyp/pyproject.toml +0 -115
  149. package/external/node-gyp/gyp/release-please-config.json +0 -11
  150. package/external/node-gyp/gyp/test_gyp.py +0 -261
  151. package/external/node-gyp/lib/Find-VisualStudio.cs +0 -250
  152. package/external/node-gyp/lib/build.js +0 -230
  153. package/external/node-gyp/lib/clean.js +0 -15
  154. package/external/node-gyp/lib/configure.js +0 -328
  155. package/external/node-gyp/lib/create-config-gypi.js +0 -153
  156. package/external/node-gyp/lib/download.js +0 -41
  157. package/external/node-gyp/lib/find-node-directory.js +0 -63
  158. package/external/node-gyp/lib/find-python.js +0 -310
  159. package/external/node-gyp/lib/find-visualstudio.js +0 -600
  160. package/external/node-gyp/lib/install.js +0 -415
  161. package/external/node-gyp/lib/list.js +0 -26
  162. package/external/node-gyp/lib/log.js +0 -168
  163. package/external/node-gyp/lib/node-gyp.js +0 -188
  164. package/external/node-gyp/lib/process-release.js +0 -148
  165. package/external/node-gyp/lib/rebuild.js +0 -12
  166. package/external/node-gyp/lib/remove.js +0 -43
  167. package/external/node-gyp/lib/util.js +0 -81
  168. package/external/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  169. package/external/node-gyp/package.json +0 -52
  170. package/external/node-gyp/release-please-config.json +0 -40
  171. package/external/node-gyp/src/win_delay_load_hook.cc +0 -41
package/dist/vendor.js CHANGED
@@ -6,17 +6,22 @@ var path$2 = require('node:path');
6
6
  var fs$1 = require('node:fs');
7
7
  var require$$0$6 = require('node:url');
8
8
  var os$3 = require('node:os');
9
+ var require$$0$c = require('node:path');
10
+ var require$$0$9 = require('node:fs');
11
+ var require$$0$7 = require('node:constants');
12
+ var require$$1$7 = require('node:stream');
13
+ var require$$0$8 = require('node:util');
14
+ var require$$0$a = require('node:assert');
15
+ var require$$0$b = require('node:events');
16
+ var require$$0$d = require('node:url');
17
+ var require$$1$8 = require('node:http');
18
+ var require$$0$e = require('node:os');
9
19
  var fs$2 = require('node:fs/promises');
10
- var require$$0$7 = require('node:process');
11
- var require$$0$8 = require('node:buffer');
12
- var require$$0$9 = require('node:util');
13
- var require$$0$a = require('node:path');
14
- var require$$0$b = require('node:fs');
15
- var require$$0$c = require('node:tty');
20
+ var require$$0$f = require('node:process');
21
+ var require$$0$g = require('node:buffer');
22
+ var require$$0$h = require('node:tty');
16
23
  var require$$2$3 = require('node:https');
17
- var require$$1$7 = require('node:http');
18
- var require$$0$d = require('node:url');
19
- var require$$0$e = require('node:events');
24
+ var require$$0$i = require('node:events');
20
25
  var require$$2$4 = require('node:http');
21
26
  var require$$3$3 = require('node:https');
22
27
  var require$$5$2 = require('node:readline');
@@ -24,28 +29,24 @@ var require$$6$3 = require('../external/@socketsecurity/registry/lib/constants/a
24
29
  var require$$7$5 = require('../external/@socketsecurity/registry/lib/promises');
25
30
  var node_buffer = require('node:buffer');
26
31
  var childProcess = require('node:child_process');
27
- var require$$0$f = require('node:fs/promises');
28
- var require$$0$g = require('node:os');
29
- var require$$1$8 = require('node:tty');
30
- var require$$1$9 = require('node:stream');
32
+ var require$$0$j = require('node:fs/promises');
33
+ var require$$1$9 = require('node:tty');
31
34
  var require$$1$a = require('node:stream');
32
35
  var require$$2$5 = require('node:string_decoder');
33
- var require$$0$h = require('node:child_process');
36
+ var require$$0$k = require('node:child_process');
34
37
  var require$$1$b = require('node:path/win32');
35
- var require$$0$i = require('node:module');
38
+ var require$$0$l = require('node:module');
36
39
  var require$$2$6 = require('node:querystring');
37
- var require$$0$j = require('node:events');
38
40
  var require$$2$7 = require('node:string_decoder');
39
- var require$$0$k = require('node:crypto');
40
- var require$$0$m = require('node:assert');
41
- var require$$0$l = require('node:zlib');
42
- var require$$0$n = require('node:dns');
43
- var require$$0$o = require('node:net');
41
+ var require$$0$m = require('node:crypto');
42
+ var require$$0$n = require('node:zlib');
43
+ var require$$0$o = require('node:dns');
44
+ var require$$0$p = require('node:net');
44
45
  var require$$1$c = require('node:tls');
45
46
  var require$$3$4 = require('node:timers/promises');
46
47
  var require$$6$4 = require('node:querystring');
47
- var require$$0$q = require('node:crypto');
48
- var require$$0$p = require('node:http2');
48
+ var require$$0$r = require('node:crypto');
49
+ var require$$0$q = require('node:http2');
49
50
  var require$$1$d = require('node:v8');
50
51
  var Module = require('node:module');
51
52
 
@@ -3413,7 +3414,7 @@ commonjs$i.LRUCache = LRUCache$1;
3413
3414
  const maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : '';
3414
3415
  const maybeEncode = arg => arg ? encodeURIComponent(arg) : '';
3415
3416
  const formatHashFragment = f => f.toLowerCase().replace(/^\W+|\/|\W+$/g, '').replace(/\W+/g, '-');
3416
- const defaults$1 = {
3417
+ const defaults$2 = {
3417
3418
  sshtemplate: ({
3418
3419
  domain,
3419
3420
  user,
@@ -3777,7 +3778,7 @@ hosts$1.sourcehut = {
3777
3778
  }
3778
3779
  };
3779
3780
  for (const [name, host] of Object.entries(hosts$1)) {
3780
- hosts$1[name] = Object.assign({}, defaults$1, host);
3781
+ hosts$1[name] = Object.assign({}, defaults$2, host);
3781
3782
  }
3782
3783
  var hosts_1$1 = hosts$1;
3783
3784
  const url$2 = require$$0$6;
@@ -4986,7 +4987,7 @@ const require$$1$5 = {
4986
4987
  invalidLicense: invalidLicense,
4987
4988
  typo: typo
4988
4989
  };
4989
- var util$4 = require$$1$6;
4990
+ var util$5 = require$$1$6;
4990
4991
  var messages = require$$1$5;
4991
4992
  var make_warning = function () {
4992
4993
  var args = Array.prototype.slice.call(arguments, 0);
@@ -4996,7 +4997,7 @@ var make_warning = function () {
4996
4997
  } else {
4997
4998
  var msgTemplate = messages[warningName] ? messages[warningName] : warningName + ": '%s'";
4998
4999
  args.unshift(msgTemplate);
4999
- return util$4.format.apply(null, args);
5000
+ return util$5.format.apply(null, args);
5000
5001
  }
5001
5002
  };
5002
5003
  function makeTypoWarning(providedName, probableName, field) {
@@ -5004,11 +5005,11 @@ function makeTypoWarning(providedName, probableName, field) {
5004
5005
  providedName = field + "['" + providedName + "']";
5005
5006
  probableName = field + "['" + probableName + "']";
5006
5007
  }
5007
- return util$4.format(messages.typo, providedName, probableName);
5008
+ return util$5.format(messages.typo, providedName, probableName);
5008
5009
  }
5009
- var normalize_1$1 = normalize$2;
5010
+ var normalize_1$1 = normalize$3;
5010
5011
  var fixer = fixer$1;
5011
- normalize$2.fixer = fixer;
5012
+ normalize$3.fixer = fixer;
5012
5013
  var makeWarning = make_warning;
5013
5014
  var fieldsToFix = ['name', 'version', 'description', 'repository', 'modules', 'scripts', 'files', 'bin', 'man', 'bugs', 'keywords', 'readme', 'homepage', 'license'];
5014
5015
  var otherThingsToFix = ['dependencies', 'people', 'typos'];
@@ -5016,7 +5017,7 @@ var thingsToFix = fieldsToFix.map(function (fieldName) {
5016
5017
  return ucFirst(fieldName) + 'Field';
5017
5018
  });
5018
5019
  thingsToFix = thingsToFix.concat(otherThingsToFix);
5019
- function normalize$2(data, warn, strict) {
5020
+ function normalize$3(data, warn, strict) {
5020
5021
  if (warn === true) {
5021
5022
  warn = null;
5022
5023
  strict = true;
@@ -5043,7 +5044,7 @@ function ucFirst(string) {
5043
5044
  }
5044
5045
  const normalizePackageData = getDefaultExportFromCjs(normalize_1$1);
5045
5046
  const toPath$1 = urlOrPath => urlOrPath instanceof URL ? require$$0$6.fileURLToPath(urlOrPath) : urlOrPath;
5046
- function findUpSync(name, {
5047
+ function findUpSync$1(name, {
5047
5048
  cwd = process$2.cwd(),
5048
5049
  type = 'file',
5049
5050
  stopAt
@@ -7665,10 +7666,10 @@ function parseJson(string, reviver, fileName) {
7665
7666
  }
7666
7667
  throw jsonError;
7667
7668
  }
7668
- function toPath(urlOrPath) {
7669
+ function toPath$2(urlOrPath) {
7669
7670
  return urlOrPath instanceof URL ? require$$0$6.fileURLToPath(urlOrPath) : urlOrPath;
7670
7671
  }
7671
- const getPackagePath = cwd => path$2.resolve(toPath(cwd) ?? '.', 'package.json');
7672
+ const getPackagePath = cwd => path$2.resolve(toPath$2(cwd) ?? '.', 'package.json');
7672
7673
  const _readPackage = (file, normalize) => {
7673
7674
  const json = typeof file === 'string' ? parseJson(file) : file;
7674
7675
  if (normalize) {
@@ -7684,7 +7685,7 @@ function readPackageSync({
7684
7685
  return _readPackage(packageFile, normalize);
7685
7686
  }
7686
7687
  function readPackageUpSync(options) {
7687
- const filePath = findUpSync('package.json', options);
7688
+ const filePath = findUpSync$1('package.json', options);
7688
7689
  if (!filePath) {
7689
7690
  return;
7690
7691
  }
@@ -8273,8 +8274,9 @@ const validate$4 = (flags, options) => {
8273
8274
  const reportUnknownFlags = unknownFlags => {
8274
8275
  console.error([`Unknown flag${unknownFlags.length > 1 ? 's' : ''}`, ...unknownFlags].join('\n'));
8275
8276
  };
8277
+ const collectUnknownFlags = input => input.filter(item => typeof item === 'string' && item.startsWith('-'));
8276
8278
  const checkUnknownFlags = input => {
8277
- const unknownFlags = input.filter(item => typeof item === 'string' && item.startsWith('-'));
8279
+ const unknownFlags = collectUnknownFlags(input);
8278
8280
  if (unknownFlags.length > 0) {
8279
8281
  reportUnknownFlags(unknownFlags);
8280
8282
  process$2.exit(2);
@@ -8366,6 +8368,12 @@ const buildResult = (options, parserOptions) => {
8366
8368
  const flags = camelcaseKeys(argv, {
8367
8369
  exclude: ['--', /^\w$/]
8368
8370
  });
8371
+ const unknownFlags = options.collectUnknownFlags ? collectUnknownFlags(options.allowUnknownFlags ? yargsParser$1(options.argv, buildParserOptions({
8372
+ ...options,
8373
+ allowUnknownFlags: false,
8374
+ autoHelp: false,
8375
+ autoVersion: false
8376
+ }))._ : input) : [];
8369
8377
  const unnormalizedFlags = {
8370
8378
  ...flags
8371
8379
  };
@@ -8382,6 +8390,7 @@ const buildResult = (options, parserOptions) => {
8382
8390
  return {
8383
8391
  input,
8384
8392
  flags,
8393
+ unknownFlags,
8385
8394
  unnormalizedFlags,
8386
8395
  pkg: package_,
8387
8396
  help,
@@ -8548,6 +8557,2667 @@ var helpers$5 = /*#__PURE__*/Object.freeze({
8548
8557
  stackWithCauses: stackWithCauses
8549
8558
  });
8550
8559
 
8560
+ function getAugmentedNamespace(n) {
8561
+ if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
8562
+ var f = n.default;
8563
+ var a;
8564
+ if (typeof f == "function") {
8565
+ a = function a () {
8566
+ var isInstance = false;
8567
+ try {
8568
+ isInstance = this instanceof a;
8569
+ } catch {}
8570
+ if (isInstance) {
8571
+ return Reflect.construct(f, arguments, this.constructor);
8572
+ }
8573
+ return f.apply(this, arguments);
8574
+ };
8575
+ a.prototype = f.prototype;
8576
+ } else a = {};
8577
+ Object.defineProperty(a, '__esModule', {value: true});
8578
+ Object.keys(n).forEach(function (k) {
8579
+ var d = Object.getOwnPropertyDescriptor(n, k);
8580
+ Object.defineProperty(a, k, d.get ? d : {
8581
+ enumerable: true,
8582
+ get: function () {
8583
+ return n[k];
8584
+ }
8585
+ });
8586
+ });
8587
+ return a;
8588
+ }
8589
+
8590
+ var npmConf = {exports: {}};
8591
+
8592
+ var dist$j = {};
8593
+
8594
+ var caFile = {};
8595
+
8596
+ var polyfills;
8597
+ var hasRequiredPolyfills;
8598
+ function requirePolyfills() {
8599
+ if (hasRequiredPolyfills) return polyfills;
8600
+ hasRequiredPolyfills = 1;
8601
+ var constants = require$$0$7;
8602
+ var origCwd = process.cwd;
8603
+ var cwd = null;
8604
+ var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
8605
+ process.cwd = function () {
8606
+ if (!cwd) cwd = origCwd.call(process);
8607
+ return cwd;
8608
+ };
8609
+ try {
8610
+ process.cwd();
8611
+ } catch (er) {}
8612
+
8613
+ // This check is needed until node.js 12 is required
8614
+ if (typeof process.chdir === 'function') {
8615
+ var chdir = process.chdir;
8616
+ process.chdir = function (d) {
8617
+ cwd = null;
8618
+ chdir.call(process, d);
8619
+ };
8620
+ if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
8621
+ }
8622
+ polyfills = patch;
8623
+ function patch(fs) {
8624
+ // (re-)implement some things that are known busted or missing.
8625
+
8626
+ // lchmod, broken prior to 0.6.2
8627
+ // back-port the fix here.
8628
+ if (constants.hasOwnProperty('O_SYMLINK') && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
8629
+ patchLchmod(fs);
8630
+ }
8631
+
8632
+ // lutimes implementation, or no-op
8633
+ if (!fs.lutimes) {
8634
+ patchLutimes(fs);
8635
+ }
8636
+
8637
+ // https://github.com/isaacs/node-graceful-fs/issues/4
8638
+ // Chown should not fail on einval or eperm if non-root.
8639
+ // It should not fail on enosys ever, as this just indicates
8640
+ // that a fs doesn't support the intended operation.
8641
+
8642
+ fs.chown = chownFix(fs.chown);
8643
+ fs.fchown = chownFix(fs.fchown);
8644
+ fs.lchown = chownFix(fs.lchown);
8645
+ fs.chmod = chmodFix(fs.chmod);
8646
+ fs.fchmod = chmodFix(fs.fchmod);
8647
+ fs.lchmod = chmodFix(fs.lchmod);
8648
+ fs.chownSync = chownFixSync(fs.chownSync);
8649
+ fs.fchownSync = chownFixSync(fs.fchownSync);
8650
+ fs.lchownSync = chownFixSync(fs.lchownSync);
8651
+ fs.chmodSync = chmodFixSync(fs.chmodSync);
8652
+ fs.fchmodSync = chmodFixSync(fs.fchmodSync);
8653
+ fs.lchmodSync = chmodFixSync(fs.lchmodSync);
8654
+ fs.stat = statFix(fs.stat);
8655
+ fs.fstat = statFix(fs.fstat);
8656
+ fs.lstat = statFix(fs.lstat);
8657
+ fs.statSync = statFixSync(fs.statSync);
8658
+ fs.fstatSync = statFixSync(fs.fstatSync);
8659
+ fs.lstatSync = statFixSync(fs.lstatSync);
8660
+
8661
+ // if lchmod/lchown do not exist, then make them no-ops
8662
+ if (fs.chmod && !fs.lchmod) {
8663
+ fs.lchmod = function (path, mode, cb) {
8664
+ if (cb) process.nextTick(cb);
8665
+ };
8666
+ fs.lchmodSync = function () {};
8667
+ }
8668
+ if (fs.chown && !fs.lchown) {
8669
+ fs.lchown = function (path, uid, gid, cb) {
8670
+ if (cb) process.nextTick(cb);
8671
+ };
8672
+ fs.lchownSync = function () {};
8673
+ }
8674
+
8675
+ // on Windows, A/V software can lock the directory, causing this
8676
+ // to fail with an EACCES or EPERM if the directory contains newly
8677
+ // created files. Try again on failure, for up to 60 seconds.
8678
+
8679
+ // Set the timeout this long because some Windows Anti-Virus, such as Parity
8680
+ // bit9, may lock files for up to a minute, causing npm package install
8681
+ // failures. Also, take care to yield the scheduler. Windows scheduling gives
8682
+ // CPU to a busy looping process, which can cause the program causing the lock
8683
+ // contention to be starved of CPU by node, so the contention doesn't resolve.
8684
+ if (platform === "win32") {
8685
+ fs.rename = typeof fs.rename !== 'function' ? fs.rename : function (fs$rename) {
8686
+ function rename(from, to, cb) {
8687
+ var start = Date.now();
8688
+ var backoff = 0;
8689
+ fs$rename(from, to, function CB(er) {
8690
+ if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 60000) {
8691
+ setTimeout(function () {
8692
+ fs.stat(to, function (stater, st) {
8693
+ if (stater && stater.code === "ENOENT") fs$rename(from, to, CB);else cb(er);
8694
+ });
8695
+ }, backoff);
8696
+ if (backoff < 100) backoff += 10;
8697
+ return;
8698
+ }
8699
+ if (cb) cb(er);
8700
+ });
8701
+ }
8702
+ if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
8703
+ return rename;
8704
+ }(fs.rename);
8705
+ }
8706
+
8707
+ // if read() returns EAGAIN, then just try it again.
8708
+ fs.read = typeof fs.read !== 'function' ? fs.read : function (fs$read) {
8709
+ function read(fd, buffer, offset, length, position, callback_) {
8710
+ var callback;
8711
+ if (callback_ && typeof callback_ === 'function') {
8712
+ var eagCounter = 0;
8713
+ callback = function (er, _, __) {
8714
+ if (er && er.code === 'EAGAIN' && eagCounter < 10) {
8715
+ eagCounter++;
8716
+ return fs$read.call(fs, fd, buffer, offset, length, position, callback);
8717
+ }
8718
+ callback_.apply(this, arguments);
8719
+ };
8720
+ }
8721
+ return fs$read.call(fs, fd, buffer, offset, length, position, callback);
8722
+ }
8723
+
8724
+ // This ensures `util.promisify` works as it does for native `fs.read`.
8725
+ if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
8726
+ return read;
8727
+ }(fs.read);
8728
+ fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync : function (fs$readSync) {
8729
+ return function (fd, buffer, offset, length, position) {
8730
+ var eagCounter = 0;
8731
+ while (true) {
8732
+ try {
8733
+ return fs$readSync.call(fs, fd, buffer, offset, length, position);
8734
+ } catch (er) {
8735
+ if (er.code === 'EAGAIN' && eagCounter < 10) {
8736
+ eagCounter++;
8737
+ continue;
8738
+ }
8739
+ throw er;
8740
+ }
8741
+ }
8742
+ };
8743
+ }(fs.readSync);
8744
+ function patchLchmod(fs) {
8745
+ fs.lchmod = function (path, mode, callback) {
8746
+ fs.open(path, constants.O_WRONLY | constants.O_SYMLINK, mode, function (err, fd) {
8747
+ if (err) {
8748
+ if (callback) callback(err);
8749
+ return;
8750
+ }
8751
+ // prefer to return the chmod error, if one occurs,
8752
+ // but still try to close, and report closing errors if they occur.
8753
+ fs.fchmod(fd, mode, function (err) {
8754
+ fs.close(fd, function (err2) {
8755
+ if (callback) callback(err || err2);
8756
+ });
8757
+ });
8758
+ });
8759
+ };
8760
+ fs.lchmodSync = function (path, mode) {
8761
+ var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
8762
+
8763
+ // prefer to return the chmod error, if one occurs,
8764
+ // but still try to close, and report closing errors if they occur.
8765
+ var threw = true;
8766
+ var ret;
8767
+ try {
8768
+ ret = fs.fchmodSync(fd, mode);
8769
+ threw = false;
8770
+ } finally {
8771
+ if (threw) {
8772
+ try {
8773
+ fs.closeSync(fd);
8774
+ } catch (er) {}
8775
+ } else {
8776
+ fs.closeSync(fd);
8777
+ }
8778
+ }
8779
+ return ret;
8780
+ };
8781
+ }
8782
+ function patchLutimes(fs) {
8783
+ if (constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
8784
+ fs.lutimes = function (path, at, mt, cb) {
8785
+ fs.open(path, constants.O_SYMLINK, function (er, fd) {
8786
+ if (er) {
8787
+ if (cb) cb(er);
8788
+ return;
8789
+ }
8790
+ fs.futimes(fd, at, mt, function (er) {
8791
+ fs.close(fd, function (er2) {
8792
+ if (cb) cb(er || er2);
8793
+ });
8794
+ });
8795
+ });
8796
+ };
8797
+ fs.lutimesSync = function (path, at, mt) {
8798
+ var fd = fs.openSync(path, constants.O_SYMLINK);
8799
+ var ret;
8800
+ var threw = true;
8801
+ try {
8802
+ ret = fs.futimesSync(fd, at, mt);
8803
+ threw = false;
8804
+ } finally {
8805
+ if (threw) {
8806
+ try {
8807
+ fs.closeSync(fd);
8808
+ } catch (er) {}
8809
+ } else {
8810
+ fs.closeSync(fd);
8811
+ }
8812
+ }
8813
+ return ret;
8814
+ };
8815
+ } else if (fs.futimes) {
8816
+ fs.lutimes = function (_a, _b, _c, cb) {
8817
+ if (cb) process.nextTick(cb);
8818
+ };
8819
+ fs.lutimesSync = function () {};
8820
+ }
8821
+ }
8822
+ function chmodFix(orig) {
8823
+ if (!orig) return orig;
8824
+ return function (target, mode, cb) {
8825
+ return orig.call(fs, target, mode, function (er) {
8826
+ if (chownErOk(er)) er = null;
8827
+ if (cb) cb.apply(this, arguments);
8828
+ });
8829
+ };
8830
+ }
8831
+ function chmodFixSync(orig) {
8832
+ if (!orig) return orig;
8833
+ return function (target, mode) {
8834
+ try {
8835
+ return orig.call(fs, target, mode);
8836
+ } catch (er) {
8837
+ if (!chownErOk(er)) throw er;
8838
+ }
8839
+ };
8840
+ }
8841
+ function chownFix(orig) {
8842
+ if (!orig) return orig;
8843
+ return function (target, uid, gid, cb) {
8844
+ return orig.call(fs, target, uid, gid, function (er) {
8845
+ if (chownErOk(er)) er = null;
8846
+ if (cb) cb.apply(this, arguments);
8847
+ });
8848
+ };
8849
+ }
8850
+ function chownFixSync(orig) {
8851
+ if (!orig) return orig;
8852
+ return function (target, uid, gid) {
8853
+ try {
8854
+ return orig.call(fs, target, uid, gid);
8855
+ } catch (er) {
8856
+ if (!chownErOk(er)) throw er;
8857
+ }
8858
+ };
8859
+ }
8860
+ function statFix(orig) {
8861
+ if (!orig) return orig;
8862
+ // Older versions of Node erroneously returned signed integers for
8863
+ // uid + gid.
8864
+ return function (target, options, cb) {
8865
+ if (typeof options === 'function') {
8866
+ cb = options;
8867
+ options = null;
8868
+ }
8869
+ function callback(er, stats) {
8870
+ if (stats) {
8871
+ if (stats.uid < 0) stats.uid += 0x100000000;
8872
+ if (stats.gid < 0) stats.gid += 0x100000000;
8873
+ }
8874
+ if (cb) cb.apply(this, arguments);
8875
+ }
8876
+ return options ? orig.call(fs, target, options, callback) : orig.call(fs, target, callback);
8877
+ };
8878
+ }
8879
+ function statFixSync(orig) {
8880
+ if (!orig) return orig;
8881
+ // Older versions of Node erroneously returned signed integers for
8882
+ // uid + gid.
8883
+ return function (target, options) {
8884
+ var stats = options ? orig.call(fs, target, options) : orig.call(fs, target);
8885
+ if (stats) {
8886
+ if (stats.uid < 0) stats.uid += 0x100000000;
8887
+ if (stats.gid < 0) stats.gid += 0x100000000;
8888
+ }
8889
+ return stats;
8890
+ };
8891
+ }
8892
+
8893
+ // ENOSYS means that the fs doesn't support the op. Just ignore
8894
+ // that, because it doesn't matter.
8895
+ //
8896
+ // if there's no getuid, or if getuid() is something other
8897
+ // than 0, and the error is EINVAL or EPERM, then just ignore
8898
+ // it.
8899
+ //
8900
+ // This specific case is a silent failure in cp, install, tar,
8901
+ // and most other unix tools that manage permissions.
8902
+ //
8903
+ // When running as root, or if other types of errors are
8904
+ // encountered, then it's strict.
8905
+ function chownErOk(er) {
8906
+ if (!er) return true;
8907
+ if (er.code === "ENOSYS") return true;
8908
+ var nonroot = !process.getuid || process.getuid() !== 0;
8909
+ if (nonroot) {
8910
+ if (er.code === "EINVAL" || er.code === "EPERM") return true;
8911
+ }
8912
+ return false;
8913
+ }
8914
+ }
8915
+ return polyfills;
8916
+ }
8917
+
8918
+ var legacyStreams;
8919
+ var hasRequiredLegacyStreams;
8920
+ function requireLegacyStreams() {
8921
+ if (hasRequiredLegacyStreams) return legacyStreams;
8922
+ hasRequiredLegacyStreams = 1;
8923
+ var Stream = require$$1$7.Stream;
8924
+ legacyStreams = legacy;
8925
+ function legacy(fs) {
8926
+ return {
8927
+ ReadStream: ReadStream,
8928
+ WriteStream: WriteStream
8929
+ };
8930
+ function ReadStream(path, options) {
8931
+ if (!(this instanceof ReadStream)) return new ReadStream(path, options);
8932
+ Stream.call(this);
8933
+ var self = this;
8934
+ this.path = path;
8935
+ this.fd = null;
8936
+ this.readable = true;
8937
+ this.paused = false;
8938
+ this.flags = 'r';
8939
+ this.mode = 438; /*=0666*/
8940
+ this.bufferSize = 64 * 1024;
8941
+ options = options || {};
8942
+
8943
+ // Mixin options into this
8944
+ var keys = Object.keys(options);
8945
+ for (var index = 0, length = keys.length; index < length; index++) {
8946
+ var key = keys[index];
8947
+ this[key] = options[key];
8948
+ }
8949
+ if (this.encoding) this.setEncoding(this.encoding);
8950
+ if (this.start !== undefined) {
8951
+ if ('number' !== typeof this.start) {
8952
+ throw TypeError('start must be a Number');
8953
+ }
8954
+ if (this.end === undefined) {
8955
+ this.end = Infinity;
8956
+ } else if ('number' !== typeof this.end) {
8957
+ throw TypeError('end must be a Number');
8958
+ }
8959
+ if (this.start > this.end) {
8960
+ throw new Error('start must be <= end');
8961
+ }
8962
+ this.pos = this.start;
8963
+ }
8964
+ if (this.fd !== null) {
8965
+ process.nextTick(function () {
8966
+ self._read();
8967
+ });
8968
+ return;
8969
+ }
8970
+ fs.open(this.path, this.flags, this.mode, function (err, fd) {
8971
+ if (err) {
8972
+ self.emit('error', err);
8973
+ self.readable = false;
8974
+ return;
8975
+ }
8976
+ self.fd = fd;
8977
+ self.emit('open', fd);
8978
+ self._read();
8979
+ });
8980
+ }
8981
+ function WriteStream(path, options) {
8982
+ if (!(this instanceof WriteStream)) return new WriteStream(path, options);
8983
+ Stream.call(this);
8984
+ this.path = path;
8985
+ this.fd = null;
8986
+ this.writable = true;
8987
+ this.flags = 'w';
8988
+ this.encoding = 'binary';
8989
+ this.mode = 438; /*=0666*/
8990
+ this.bytesWritten = 0;
8991
+ options = options || {};
8992
+
8993
+ // Mixin options into this
8994
+ var keys = Object.keys(options);
8995
+ for (var index = 0, length = keys.length; index < length; index++) {
8996
+ var key = keys[index];
8997
+ this[key] = options[key];
8998
+ }
8999
+ if (this.start !== undefined) {
9000
+ if ('number' !== typeof this.start) {
9001
+ throw TypeError('start must be a Number');
9002
+ }
9003
+ if (this.start < 0) {
9004
+ throw new Error('start must be >= zero');
9005
+ }
9006
+ this.pos = this.start;
9007
+ }
9008
+ this.busy = false;
9009
+ this._queue = [];
9010
+ if (this.fd === null) {
9011
+ this._open = fs.open;
9012
+ this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);
9013
+ this.flush();
9014
+ }
9015
+ }
9016
+ }
9017
+ return legacyStreams;
9018
+ }
9019
+
9020
+ var clone_1$1;
9021
+ var hasRequiredClone$1;
9022
+ function requireClone$1() {
9023
+ if (hasRequiredClone$1) return clone_1$1;
9024
+ hasRequiredClone$1 = 1;
9025
+ clone_1$1 = clone;
9026
+ var getPrototypeOf = Object.getPrototypeOf || function (obj) {
9027
+ return obj.__proto__;
9028
+ };
9029
+ function clone(obj) {
9030
+ if (obj === null || typeof obj !== 'object') return obj;
9031
+ if (obj instanceof Object) var copy = {
9032
+ __proto__: getPrototypeOf(obj)
9033
+ };else var copy = Object.create(null);
9034
+ Object.getOwnPropertyNames(obj).forEach(function (key) {
9035
+ Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
9036
+ });
9037
+ return copy;
9038
+ }
9039
+ return clone_1$1;
9040
+ }
9041
+
9042
+ var gracefulFs;
9043
+ var hasRequiredGracefulFs;
9044
+ function requireGracefulFs() {
9045
+ if (hasRequiredGracefulFs) return gracefulFs;
9046
+ hasRequiredGracefulFs = 1;
9047
+ var fs = require$$0$9;
9048
+ var polyfills = requirePolyfills();
9049
+ var legacy = requireLegacyStreams();
9050
+ var clone = requireClone$1();
9051
+ var util = require$$0$8;
9052
+
9053
+ /* istanbul ignore next - node 0.x polyfill */
9054
+ var gracefulQueue;
9055
+ var previousSymbol;
9056
+
9057
+ /* istanbul ignore else - node 0.x polyfill */
9058
+ if (typeof Symbol === 'function' && typeof Symbol.for === 'function') {
9059
+ gracefulQueue = Symbol.for('graceful-fs.queue');
9060
+ // This is used in testing by future versions
9061
+ previousSymbol = Symbol.for('graceful-fs.previous');
9062
+ } else {
9063
+ gracefulQueue = '___graceful-fs.queue';
9064
+ previousSymbol = '___graceful-fs.previous';
9065
+ }
9066
+ function noop() {}
9067
+ function publishQueue(context, queue) {
9068
+ Object.defineProperty(context, gracefulQueue, {
9069
+ get: function () {
9070
+ return queue;
9071
+ }
9072
+ });
9073
+ }
9074
+ var debug = noop;
9075
+ if (util.debuglog) debug = util.debuglog('gfs4');else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) debug = function () {
9076
+ var m = util.format.apply(util, arguments);
9077
+ m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ');
9078
+ console.error(m);
9079
+ };
9080
+
9081
+ // Once time initialization
9082
+ if (!fs[gracefulQueue]) {
9083
+ // This queue can be shared by multiple loaded instances
9084
+ var queue = global[gracefulQueue] || [];
9085
+ publishQueue(fs, queue);
9086
+
9087
+ // Patch fs.close/closeSync to shared queue version, because we need
9088
+ // to retry() whenever a close happens *anywhere* in the program.
9089
+ // This is essential when multiple graceful-fs instances are
9090
+ // in play at the same time.
9091
+ fs.close = function (fs$close) {
9092
+ function close(fd, cb) {
9093
+ return fs$close.call(fs, fd, function (err) {
9094
+ // This function uses the graceful-fs shared queue
9095
+ if (!err) {
9096
+ resetQueue();
9097
+ }
9098
+ if (typeof cb === 'function') cb.apply(this, arguments);
9099
+ });
9100
+ }
9101
+ Object.defineProperty(close, previousSymbol, {
9102
+ value: fs$close
9103
+ });
9104
+ return close;
9105
+ }(fs.close);
9106
+ fs.closeSync = function (fs$closeSync) {
9107
+ function closeSync(fd) {
9108
+ // This function uses the graceful-fs shared queue
9109
+ fs$closeSync.apply(fs, arguments);
9110
+ resetQueue();
9111
+ }
9112
+ Object.defineProperty(closeSync, previousSymbol, {
9113
+ value: fs$closeSync
9114
+ });
9115
+ return closeSync;
9116
+ }(fs.closeSync);
9117
+ if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) {
9118
+ process.on('exit', function () {
9119
+ debug(fs[gracefulQueue]);
9120
+ require$$0$a.equal(fs[gracefulQueue].length, 0);
9121
+ });
9122
+ }
9123
+ }
9124
+ if (!global[gracefulQueue]) {
9125
+ publishQueue(global, fs[gracefulQueue]);
9126
+ }
9127
+ gracefulFs = patch(clone(fs));
9128
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
9129
+ gracefulFs = patch(fs);
9130
+ fs.__patched = true;
9131
+ }
9132
+ function patch(fs) {
9133
+ // Everything that references the open() function needs to be in here
9134
+ polyfills(fs);
9135
+ fs.gracefulify = patch;
9136
+ fs.createReadStream = createReadStream;
9137
+ fs.createWriteStream = createWriteStream;
9138
+ var fs$readFile = fs.readFile;
9139
+ fs.readFile = readFile;
9140
+ function readFile(path, options, cb) {
9141
+ if (typeof options === 'function') cb = options, options = null;
9142
+ return go$readFile(path, options, cb);
9143
+ function go$readFile(path, options, cb, startTime) {
9144
+ return fs$readFile(path, options, function (err) {
9145
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()]);else {
9146
+ if (typeof cb === 'function') cb.apply(this, arguments);
9147
+ }
9148
+ });
9149
+ }
9150
+ }
9151
+ var fs$writeFile = fs.writeFile;
9152
+ fs.writeFile = writeFile;
9153
+ function writeFile(path, data, options, cb) {
9154
+ if (typeof options === 'function') cb = options, options = null;
9155
+ return go$writeFile(path, data, options, cb);
9156
+ function go$writeFile(path, data, options, cb, startTime) {
9157
+ return fs$writeFile(path, data, options, function (err) {
9158
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]);else {
9159
+ if (typeof cb === 'function') cb.apply(this, arguments);
9160
+ }
9161
+ });
9162
+ }
9163
+ }
9164
+ var fs$appendFile = fs.appendFile;
9165
+ if (fs$appendFile) fs.appendFile = appendFile;
9166
+ function appendFile(path, data, options, cb) {
9167
+ if (typeof options === 'function') cb = options, options = null;
9168
+ return go$appendFile(path, data, options, cb);
9169
+ function go$appendFile(path, data, options, cb, startTime) {
9170
+ return fs$appendFile(path, data, options, function (err) {
9171
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]);else {
9172
+ if (typeof cb === 'function') cb.apply(this, arguments);
9173
+ }
9174
+ });
9175
+ }
9176
+ }
9177
+ var fs$copyFile = fs.copyFile;
9178
+ if (fs$copyFile) fs.copyFile = copyFile;
9179
+ function copyFile(src, dest, flags, cb) {
9180
+ if (typeof flags === 'function') {
9181
+ cb = flags;
9182
+ flags = 0;
9183
+ }
9184
+ return go$copyFile(src, dest, flags, cb);
9185
+ function go$copyFile(src, dest, flags, cb, startTime) {
9186
+ return fs$copyFile(src, dest, flags, function (err) {
9187
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()]);else {
9188
+ if (typeof cb === 'function') cb.apply(this, arguments);
9189
+ }
9190
+ });
9191
+ }
9192
+ }
9193
+ var fs$readdir = fs.readdir;
9194
+ fs.readdir = readdir;
9195
+ var noReaddirOptionVersions = /^v[0-5]\./;
9196
+ function readdir(path, options, cb) {
9197
+ if (typeof options === 'function') cb = options, options = null;
9198
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir(path, options, cb, startTime) {
9199
+ return fs$readdir(path, fs$readdirCallback(path, options, cb, startTime));
9200
+ } : function go$readdir(path, options, cb, startTime) {
9201
+ return fs$readdir(path, options, fs$readdirCallback(path, options, cb, startTime));
9202
+ };
9203
+ return go$readdir(path, options, cb);
9204
+ function fs$readdirCallback(path, options, cb, startTime) {
9205
+ return function (err, files) {
9206
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$readdir, [path, options, cb], err, startTime || Date.now(), Date.now()]);else {
9207
+ if (files && files.sort) files.sort();
9208
+ if (typeof cb === 'function') cb.call(this, err, files);
9209
+ }
9210
+ };
9211
+ }
9212
+ }
9213
+ if (process.version.substr(0, 4) === 'v0.8') {
9214
+ var legStreams = legacy(fs);
9215
+ ReadStream = legStreams.ReadStream;
9216
+ WriteStream = legStreams.WriteStream;
9217
+ }
9218
+ var fs$ReadStream = fs.ReadStream;
9219
+ if (fs$ReadStream) {
9220
+ ReadStream.prototype = Object.create(fs$ReadStream.prototype);
9221
+ ReadStream.prototype.open = ReadStream$open;
9222
+ }
9223
+ var fs$WriteStream = fs.WriteStream;
9224
+ if (fs$WriteStream) {
9225
+ WriteStream.prototype = Object.create(fs$WriteStream.prototype);
9226
+ WriteStream.prototype.open = WriteStream$open;
9227
+ }
9228
+ Object.defineProperty(fs, 'ReadStream', {
9229
+ get: function () {
9230
+ return ReadStream;
9231
+ },
9232
+ set: function (val) {
9233
+ ReadStream = val;
9234
+ },
9235
+ enumerable: true,
9236
+ configurable: true
9237
+ });
9238
+ Object.defineProperty(fs, 'WriteStream', {
9239
+ get: function () {
9240
+ return WriteStream;
9241
+ },
9242
+ set: function (val) {
9243
+ WriteStream = val;
9244
+ },
9245
+ enumerable: true,
9246
+ configurable: true
9247
+ });
9248
+
9249
+ // legacy names
9250
+ var FileReadStream = ReadStream;
9251
+ Object.defineProperty(fs, 'FileReadStream', {
9252
+ get: function () {
9253
+ return FileReadStream;
9254
+ },
9255
+ set: function (val) {
9256
+ FileReadStream = val;
9257
+ },
9258
+ enumerable: true,
9259
+ configurable: true
9260
+ });
9261
+ var FileWriteStream = WriteStream;
9262
+ Object.defineProperty(fs, 'FileWriteStream', {
9263
+ get: function () {
9264
+ return FileWriteStream;
9265
+ },
9266
+ set: function (val) {
9267
+ FileWriteStream = val;
9268
+ },
9269
+ enumerable: true,
9270
+ configurable: true
9271
+ });
9272
+ function ReadStream(path, options) {
9273
+ if (this instanceof ReadStream) return fs$ReadStream.apply(this, arguments), this;else return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
9274
+ }
9275
+ function ReadStream$open() {
9276
+ var that = this;
9277
+ open(that.path, that.flags, that.mode, function (err, fd) {
9278
+ if (err) {
9279
+ if (that.autoClose) that.destroy();
9280
+ that.emit('error', err);
9281
+ } else {
9282
+ that.fd = fd;
9283
+ that.emit('open', fd);
9284
+ that.read();
9285
+ }
9286
+ });
9287
+ }
9288
+ function WriteStream(path, options) {
9289
+ if (this instanceof WriteStream) return fs$WriteStream.apply(this, arguments), this;else return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
9290
+ }
9291
+ function WriteStream$open() {
9292
+ var that = this;
9293
+ open(that.path, that.flags, that.mode, function (err, fd) {
9294
+ if (err) {
9295
+ that.destroy();
9296
+ that.emit('error', err);
9297
+ } else {
9298
+ that.fd = fd;
9299
+ that.emit('open', fd);
9300
+ }
9301
+ });
9302
+ }
9303
+ function createReadStream(path, options) {
9304
+ return new fs.ReadStream(path, options);
9305
+ }
9306
+ function createWriteStream(path, options) {
9307
+ return new fs.WriteStream(path, options);
9308
+ }
9309
+ var fs$open = fs.open;
9310
+ fs.open = open;
9311
+ function open(path, flags, mode, cb) {
9312
+ if (typeof mode === 'function') cb = mode, mode = null;
9313
+ return go$open(path, flags, mode, cb);
9314
+ function go$open(path, flags, mode, cb, startTime) {
9315
+ return fs$open(path, flags, mode, function (err, fd) {
9316
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()]);else {
9317
+ if (typeof cb === 'function') cb.apply(this, arguments);
9318
+ }
9319
+ });
9320
+ }
9321
+ }
9322
+ return fs;
9323
+ }
9324
+ function enqueue(elem) {
9325
+ debug('ENQUEUE', elem[0].name, elem[1]);
9326
+ fs[gracefulQueue].push(elem);
9327
+ retry();
9328
+ }
9329
+
9330
+ // keep track of the timeout between retry() calls
9331
+ var retryTimer;
9332
+
9333
+ // reset the startTime and lastTime to now
9334
+ // this resets the start of the 60 second overall timeout as well as the
9335
+ // delay between attempts so that we'll retry these jobs sooner
9336
+ function resetQueue() {
9337
+ var now = Date.now();
9338
+ for (var i = 0; i < fs[gracefulQueue].length; ++i) {
9339
+ // entries that are only a length of 2 are from an older version, don't
9340
+ // bother modifying those since they'll be retried anyway.
9341
+ if (fs[gracefulQueue][i].length > 2) {
9342
+ fs[gracefulQueue][i][3] = now; // startTime
9343
+ fs[gracefulQueue][i][4] = now; // lastTime
9344
+ }
9345
+ }
9346
+ // call retry to make sure we're actively processing the queue
9347
+ retry();
9348
+ }
9349
+ function retry() {
9350
+ // clear the timer and remove it to help prevent unintended concurrency
9351
+ clearTimeout(retryTimer);
9352
+ retryTimer = undefined;
9353
+ if (fs[gracefulQueue].length === 0) return;
9354
+ var elem = fs[gracefulQueue].shift();
9355
+ var fn = elem[0];
9356
+ var args = elem[1];
9357
+ // these items may be unset if they were added by an older graceful-fs
9358
+ var err = elem[2];
9359
+ var startTime = elem[3];
9360
+ var lastTime = elem[4];
9361
+
9362
+ // if we don't have a startTime we have no way of knowing if we've waited
9363
+ // long enough, so go ahead and retry this item now
9364
+ if (startTime === undefined) {
9365
+ debug('RETRY', fn.name, args);
9366
+ fn.apply(null, args);
9367
+ } else if (Date.now() - startTime >= 60000) {
9368
+ // it's been more than 60 seconds total, bail now
9369
+ debug('TIMEOUT', fn.name, args);
9370
+ var cb = args.pop();
9371
+ if (typeof cb === 'function') cb.call(null, err);
9372
+ } else {
9373
+ // the amount of time between the last attempt and right now
9374
+ var sinceAttempt = Date.now() - lastTime;
9375
+ // the amount of time between when we first tried, and when we last tried
9376
+ // rounded up to at least 1
9377
+ var sinceStart = Math.max(lastTime - startTime, 1);
9378
+ // backoff. wait longer than the total time we've been retrying, but only
9379
+ // up to a maximum of 100ms
9380
+ var desiredDelay = Math.min(sinceStart * 1.2, 100);
9381
+ // it's been long enough since the last retry, do it again
9382
+ if (sinceAttempt >= desiredDelay) {
9383
+ debug('RETRY', fn.name, args);
9384
+ fn.apply(null, args.concat([startTime]));
9385
+ } else {
9386
+ // if we can't do this job yet, push it to the end of the queue
9387
+ // and let the next iteration check again
9388
+ fs[gracefulQueue].push(elem);
9389
+ }
9390
+ }
9391
+
9392
+ // schedule our next run if one isn't already scheduled
9393
+ if (retryTimer === undefined) {
9394
+ retryTimer = setTimeout(retry, 0);
9395
+ }
9396
+ }
9397
+ return gracefulFs;
9398
+ }
9399
+
9400
+ var hasRequiredCaFile;
9401
+ function requireCaFile() {
9402
+ if (hasRequiredCaFile) return caFile;
9403
+ hasRequiredCaFile = 1;
9404
+ var __importDefault = this && this.__importDefault || function (mod) {
9405
+ return mod && mod.__esModule ? mod : {
9406
+ "default": mod
9407
+ };
9408
+ };
9409
+ Object.defineProperty(caFile, "__esModule", {
9410
+ value: true
9411
+ });
9412
+ caFile.readCAFileSync = void 0;
9413
+ const graceful_fs_1 = __importDefault(requireGracefulFs());
9414
+ function readCAFileSync(filePath) {
9415
+ try {
9416
+ const contents = graceful_fs_1.default.readFileSync(filePath, 'utf8');
9417
+ const delim = '-----END CERTIFICATE-----';
9418
+ const output = contents.split(delim).filter(ca => Boolean(ca.trim())).map(ca => `${ca.trimLeft()}${delim}`);
9419
+ return output;
9420
+ } catch (err) {
9421
+ if (err.code === 'ENOENT') return undefined;
9422
+ throw err;
9423
+ }
9424
+ }
9425
+ caFile.readCAFileSync = readCAFileSync;
9426
+ return caFile;
9427
+ }
9428
+
9429
+ var hasRequiredDist$j;
9430
+ function requireDist$j() {
9431
+ if (hasRequiredDist$j) return dist$j;
9432
+ hasRequiredDist$j = 1;
9433
+ (function (exports) {
9434
+
9435
+ var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
9436
+ if (k2 === undefined) k2 = k;
9437
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9438
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9439
+ desc = {
9440
+ enumerable: true,
9441
+ get: function () {
9442
+ return m[k];
9443
+ }
9444
+ };
9445
+ }
9446
+ Object.defineProperty(o, k2, desc);
9447
+ } : function (o, m, k, k2) {
9448
+ if (k2 === undefined) k2 = k;
9449
+ o[k2] = m[k];
9450
+ });
9451
+ var __exportStar = this && this.__exportStar || function (m, exports) {
9452
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
9453
+ };
9454
+ Object.defineProperty(exports, "__esModule", {
9455
+ value: true
9456
+ });
9457
+ __exportStar(requireCaFile(), exports);
9458
+ })(dist$j);
9459
+ return dist$j;
9460
+ }
9461
+
9462
+ var configChain = {exports: {}};
9463
+
9464
+ var protoList;
9465
+ var hasRequiredProtoList;
9466
+ function requireProtoList() {
9467
+ if (hasRequiredProtoList) return protoList;
9468
+ hasRequiredProtoList = 1;
9469
+ protoList = ProtoList;
9470
+ function setProto(obj, proto) {
9471
+ if (typeof Object.setPrototypeOf === "function") return Object.setPrototypeOf(obj, proto);else Object.setPrototypeOf(obj, proto);
9472
+ }
9473
+ function ProtoList() {
9474
+ this.list = [];
9475
+ var root = null;
9476
+ Object.defineProperty(this, 'root', {
9477
+ get: function () {
9478
+ return root;
9479
+ },
9480
+ set: function (r) {
9481
+ root = r;
9482
+ if (this.list.length) {
9483
+ setProto(this.list[this.list.length - 1], r);
9484
+ }
9485
+ },
9486
+ enumerable: true,
9487
+ configurable: true
9488
+ });
9489
+ }
9490
+ ProtoList.prototype = {
9491
+ get length() {
9492
+ return this.list.length;
9493
+ },
9494
+ get keys() {
9495
+ var k = [];
9496
+ for (var i in this.list[0]) k.push(i);
9497
+ return k;
9498
+ },
9499
+ get snapshot() {
9500
+ var o = {};
9501
+ this.keys.forEach(function (k) {
9502
+ o[k] = this.get(k);
9503
+ }, this);
9504
+ return o;
9505
+ },
9506
+ get store() {
9507
+ return this.list[0];
9508
+ },
9509
+ push: function (obj) {
9510
+ if (typeof obj !== "object") obj = {
9511
+ valueOf: obj
9512
+ };
9513
+ if (this.list.length >= 1) {
9514
+ setProto(this.list[this.list.length - 1], obj);
9515
+ }
9516
+ setProto(obj, this.root);
9517
+ return this.list.push(obj);
9518
+ },
9519
+ pop: function () {
9520
+ if (this.list.length >= 2) {
9521
+ setProto(this.list[this.list.length - 2], this.root);
9522
+ }
9523
+ return this.list.pop();
9524
+ },
9525
+ unshift: function (obj) {
9526
+ setProto(obj, this.list[0] || this.root);
9527
+ return this.list.unshift(obj);
9528
+ },
9529
+ shift: function () {
9530
+ if (this.list.length === 1) {
9531
+ setProto(this.list[0], this.root);
9532
+ }
9533
+ return this.list.shift();
9534
+ },
9535
+ get: function (key) {
9536
+ return this.list[0][key];
9537
+ },
9538
+ set: function (key, val, save) {
9539
+ if (!this.length) this.push({});
9540
+ if (save && this.list[0].hasOwnProperty(key)) this.push({});
9541
+ return this.list[0][key] = val;
9542
+ },
9543
+ forEach: function (fn, thisp) {
9544
+ for (var key in this.list[0]) fn.call(thisp, key, this.list[0][key]);
9545
+ },
9546
+ slice: function () {
9547
+ return this.list.slice.apply(this.list, arguments);
9548
+ },
9549
+ splice: function () {
9550
+ // handle injections
9551
+ var ret = this.list.splice.apply(this.list, arguments);
9552
+ for (var i = 0, l = this.list.length; i < l; i++) {
9553
+ setProto(this.list[i], this.list[i + 1] || this.root);
9554
+ }
9555
+ return ret;
9556
+ }
9557
+ };
9558
+ return protoList;
9559
+ }
9560
+
9561
+ var ini$1 = {};
9562
+
9563
+ var hasRequiredIni$1;
9564
+ function requireIni$1() {
9565
+ if (hasRequiredIni$1) return ini$1;
9566
+ hasRequiredIni$1 = 1;
9567
+ ini$1.parse = ini$1.decode = decode;
9568
+ ini$1.stringify = ini$1.encode = encode;
9569
+ ini$1.safe = safe;
9570
+ ini$1.unsafe = unsafe;
9571
+ var eol = typeof process !== 'undefined' && process.platform === 'win32' ? '\r\n' : '\n';
9572
+ function encode(obj, opt) {
9573
+ var children = [];
9574
+ var out = '';
9575
+ if (typeof opt === 'string') {
9576
+ opt = {
9577
+ section: opt,
9578
+ whitespace: false
9579
+ };
9580
+ } else {
9581
+ opt = opt || {};
9582
+ opt.whitespace = opt.whitespace === true;
9583
+ }
9584
+ var separator = opt.whitespace ? ' = ' : '=';
9585
+ Object.keys(obj).forEach(function (k, _, __) {
9586
+ var val = obj[k];
9587
+ if (val && Array.isArray(val)) {
9588
+ val.forEach(function (item) {
9589
+ out += safe(k + '[]') + separator + safe(item) + '\n';
9590
+ });
9591
+ } else if (val && typeof val === 'object') children.push(k);else out += safe(k) + separator + safe(val) + eol;
9592
+ });
9593
+ if (opt.section && out.length) out = '[' + safe(opt.section) + ']' + eol + out;
9594
+ children.forEach(function (k, _, __) {
9595
+ var nk = dotSplit(k).join('\\.');
9596
+ var section = (opt.section ? opt.section + '.' : '') + nk;
9597
+ var child = encode(obj[k], {
9598
+ section: section,
9599
+ whitespace: opt.whitespace
9600
+ });
9601
+ if (out.length && child.length) out += eol;
9602
+ out += child;
9603
+ });
9604
+ return out;
9605
+ }
9606
+ function dotSplit(str) {
9607
+ return str.replace(/\1/g, '\u0002LITERAL\\1LITERAL\u0002').replace(/\\\./g, '\u0001').split(/\./).map(function (part) {
9608
+ return part.replace(/\1/g, '\\.').replace(/\2LITERAL\\1LITERAL\2/g, '\u0001');
9609
+ });
9610
+ }
9611
+ function decode(str) {
9612
+ var out = {};
9613
+ var p = out;
9614
+ var section = null;
9615
+ // section |key = value
9616
+ var re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;
9617
+ var lines = str.split(/[\r\n]+/g);
9618
+ lines.forEach(function (line, _, __) {
9619
+ if (!line || line.match(/^\s*[;#]/)) return;
9620
+ var match = line.match(re);
9621
+ if (!match) return;
9622
+ if (match[1] !== undefined) {
9623
+ section = unsafe(match[1]);
9624
+ if (section === '__proto__') {
9625
+ // not allowed
9626
+ // keep parsing the section, but don't attach it.
9627
+ p = {};
9628
+ return;
9629
+ }
9630
+ p = out[section] = out[section] || {};
9631
+ return;
9632
+ }
9633
+ var key = unsafe(match[2]);
9634
+ if (key === '__proto__') return;
9635
+ var value = match[3] ? unsafe(match[4]) : true;
9636
+ switch (value) {
9637
+ case 'true':
9638
+ case 'false':
9639
+ case 'null':
9640
+ value = JSON.parse(value);
9641
+ }
9642
+
9643
+ // Convert keys with '[]' suffix to an array
9644
+ if (key.length > 2 && key.slice(-2) === '[]') {
9645
+ key = key.substring(0, key.length - 2);
9646
+ if (key === '__proto__') return;
9647
+ if (!p[key]) p[key] = [];else if (!Array.isArray(p[key])) p[key] = [p[key]];
9648
+ }
9649
+
9650
+ // safeguard against resetting a previously defined
9651
+ // array by accidentally forgetting the brackets
9652
+ if (Array.isArray(p[key])) p[key].push(value);else p[key] = value;
9653
+ });
9654
+
9655
+ // {a:{y:1},"a.b":{x:2}} --> {a:{y:1,b:{x:2}}}
9656
+ // use a filter to return the keys that have to be deleted.
9657
+ Object.keys(out).filter(function (k, _, __) {
9658
+ if (!out[k] || typeof out[k] !== 'object' || Array.isArray(out[k])) return false;
9659
+
9660
+ // see if the parent section is also an object.
9661
+ // if so, add it to that, and mark this one for deletion
9662
+ var parts = dotSplit(k);
9663
+ var p = out;
9664
+ var l = parts.pop();
9665
+ var nl = l.replace(/\\\./g, '.');
9666
+ parts.forEach(function (part, _, __) {
9667
+ if (part === '__proto__') return;
9668
+ if (!p[part] || typeof p[part] !== 'object') p[part] = {};
9669
+ p = p[part];
9670
+ });
9671
+ if (p === out && nl === l) return false;
9672
+ p[nl] = out[k];
9673
+ return true;
9674
+ }).forEach(function (del, _, __) {
9675
+ delete out[del];
9676
+ });
9677
+ return out;
9678
+ }
9679
+ function isQuoted(val) {
9680
+ return val.charAt(0) === '"' && val.slice(-1) === '"' || val.charAt(0) === "'" && val.slice(-1) === "'";
9681
+ }
9682
+ function safe(val) {
9683
+ return typeof val !== 'string' || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim() ? JSON.stringify(val) : val.replace(/;/g, '\\;').replace(/#/g, '\\#');
9684
+ }
9685
+ function unsafe(val, doUnesc) {
9686
+ val = (val || '').trim();
9687
+ if (isQuoted(val)) {
9688
+ // remove the single quotes before calling JSON.parse
9689
+ if (val.charAt(0) === "'") val = val.substr(1, val.length - 2);
9690
+ try {
9691
+ val = JSON.parse(val);
9692
+ } catch (_) {}
9693
+ } else {
9694
+ // walk the val to find the first not-escaped ; character
9695
+ var esc = false;
9696
+ var unesc = '';
9697
+ for (var i = 0, l = val.length; i < l; i++) {
9698
+ var c = val.charAt(i);
9699
+ if (esc) {
9700
+ if ('\\;#'.indexOf(c) !== -1) unesc += c;else unesc += '\\' + c;
9701
+ esc = false;
9702
+ } else if (';#'.indexOf(c) !== -1) break;else if (c === '\\') esc = true;else unesc += c;
9703
+ }
9704
+ if (esc) unesc += '\\';
9705
+ return unesc.trim();
9706
+ }
9707
+ return val;
9708
+ }
9709
+ return ini$1;
9710
+ }
9711
+
9712
+ var hasRequiredConfigChain;
9713
+ function requireConfigChain() {
9714
+ if (hasRequiredConfigChain) return configChain.exports;
9715
+ hasRequiredConfigChain = 1;
9716
+ var ProtoList = requireProtoList(),
9717
+ path = require$$0$c,
9718
+ fs = require$$0$9,
9719
+ ini = requireIni$1(),
9720
+ EE = require$$0$b.EventEmitter,
9721
+ url = require$$0$d,
9722
+ http = require$$1$8;
9723
+ var exports = configChain.exports = function () {
9724
+ var args = [].slice.call(arguments),
9725
+ conf = new ConfigChain();
9726
+ while (args.length) {
9727
+ var a = args.shift();
9728
+ if (a) conf.push('string' === typeof a ? json(a) : a);
9729
+ }
9730
+ return conf;
9731
+ };
9732
+
9733
+ //recursively find a file...
9734
+
9735
+ exports.find = function () {
9736
+ var rel = path.join.apply(null, [].slice.call(arguments));
9737
+ function find(start, rel) {
9738
+ var file = path.join(start, rel);
9739
+ try {
9740
+ fs.statSync(file);
9741
+ return file;
9742
+ } catch (err) {
9743
+ if (path.dirname(start) !== start)
9744
+ // root
9745
+ return find(path.dirname(start), rel);
9746
+ }
9747
+ }
9748
+ return find(__dirname, rel);
9749
+ };
9750
+ var parse = exports.parse = function (content, file, type) {
9751
+ content = '' + content;
9752
+ // if we don't know what it is, try json and fall back to ini
9753
+ // if we know what it is, then it must be that.
9754
+ if (!type) {
9755
+ try {
9756
+ return JSON.parse(content);
9757
+ } catch (er) {
9758
+ return ini.parse(content);
9759
+ }
9760
+ } else if (type === 'json') {
9761
+ if (this.emit) {
9762
+ try {
9763
+ return JSON.parse(content);
9764
+ } catch (er) {
9765
+ this.emit('error', er);
9766
+ }
9767
+ } else {
9768
+ return JSON.parse(content);
9769
+ }
9770
+ } else {
9771
+ return ini.parse(content);
9772
+ }
9773
+ };
9774
+ var json = exports.json = function () {
9775
+ var args = [].slice.call(arguments).filter(function (arg) {
9776
+ return arg != null;
9777
+ });
9778
+ var file = path.join.apply(null, args);
9779
+ var content;
9780
+ try {
9781
+ content = fs.readFileSync(file, 'utf-8');
9782
+ } catch (err) {
9783
+ return;
9784
+ }
9785
+ return parse(content, file, 'json');
9786
+ };
9787
+ exports.env = function (prefix, env) {
9788
+ env = env || process.env;
9789
+ var obj = {};
9790
+ var l = prefix.length;
9791
+ for (var k in env) {
9792
+ if (k.indexOf(prefix) === 0) obj[k.substring(l)] = env[k];
9793
+ }
9794
+ return obj;
9795
+ };
9796
+ exports.ConfigChain = ConfigChain;
9797
+ function ConfigChain() {
9798
+ EE.apply(this);
9799
+ ProtoList.apply(this, arguments);
9800
+ this._awaiting = 0;
9801
+ this._saving = 0;
9802
+ this.sources = {};
9803
+ }
9804
+
9805
+ // multi-inheritance-ish
9806
+ var extras = {
9807
+ constructor: {
9808
+ value: ConfigChain
9809
+ }
9810
+ };
9811
+ Object.keys(EE.prototype).forEach(function (k) {
9812
+ extras[k] = Object.getOwnPropertyDescriptor(EE.prototype, k);
9813
+ });
9814
+ ConfigChain.prototype = Object.create(ProtoList.prototype, extras);
9815
+ ConfigChain.prototype.del = function (key, where) {
9816
+ // if not specified where, then delete from the whole chain, scorched
9817
+ // earth style
9818
+ if (where) {
9819
+ var target = this.sources[where];
9820
+ target = target && target.data;
9821
+ if (!target) {
9822
+ return this.emit('error', new Error('not found ' + where));
9823
+ }
9824
+ delete target[key];
9825
+ } else {
9826
+ for (var i = 0, l = this.list.length; i < l; i++) {
9827
+ delete this.list[i][key];
9828
+ }
9829
+ }
9830
+ return this;
9831
+ };
9832
+ ConfigChain.prototype.set = function (key, value, where) {
9833
+ var target;
9834
+ if (where) {
9835
+ target = this.sources[where];
9836
+ target = target && target.data;
9837
+ if (!target) {
9838
+ return this.emit('error', new Error('not found ' + where));
9839
+ }
9840
+ } else {
9841
+ target = this.list[0];
9842
+ if (!target) {
9843
+ return this.emit('error', new Error('cannot set, no confs!'));
9844
+ }
9845
+ }
9846
+ target[key] = value;
9847
+ return this;
9848
+ };
9849
+ ConfigChain.prototype.get = function (key, where) {
9850
+ if (where) {
9851
+ where = this.sources[where];
9852
+ if (where) where = where.data;
9853
+ if (where && Object.hasOwnProperty.call(where, key)) return where[key];
9854
+ return undefined;
9855
+ }
9856
+ return this.list[0][key];
9857
+ };
9858
+ ConfigChain.prototype.save = function (where, type, cb) {
9859
+ if (typeof type === 'function') cb = type, type = null;
9860
+ var target = this.sources[where];
9861
+ if (!target || !(target.path || target.source) || !target.data) {
9862
+ // TODO: maybe save() to a url target could be a PUT or something?
9863
+ // would be easy to swap out with a reddis type thing, too
9864
+ return this.emit('error', new Error('bad save target: ' + where));
9865
+ }
9866
+ if (target.source) {
9867
+ var pref = target.prefix || '';
9868
+ Object.keys(target.data).forEach(function (k) {
9869
+ target.source[pref + k] = target.data[k];
9870
+ });
9871
+ return this;
9872
+ }
9873
+ var type = type || target.type;
9874
+ var data = target.data;
9875
+ if (target.type === 'json') {
9876
+ data = JSON.stringify(data);
9877
+ } else {
9878
+ data = ini.stringify(data);
9879
+ }
9880
+ this._saving++;
9881
+ fs.writeFile(target.path, data, 'utf8', function (er) {
9882
+ this._saving--;
9883
+ if (er) {
9884
+ if (cb) return cb(er);else return this.emit('error', er);
9885
+ }
9886
+ if (this._saving === 0) {
9887
+ if (cb) cb();
9888
+ this.emit('save');
9889
+ }
9890
+ }.bind(this));
9891
+ return this;
9892
+ };
9893
+ ConfigChain.prototype.addFile = function (file, type, name) {
9894
+ name = name || file;
9895
+ var marker = {
9896
+ __source__: name
9897
+ };
9898
+ this.sources[name] = {
9899
+ path: file,
9900
+ type: type
9901
+ };
9902
+ this.push(marker);
9903
+ this._await();
9904
+ fs.readFile(file, 'utf8', function (er, data) {
9905
+ if (er) this.emit('error', er);
9906
+ this.addString(data, file, type, marker);
9907
+ }.bind(this));
9908
+ return this;
9909
+ };
9910
+ ConfigChain.prototype.addEnv = function (prefix, env, name) {
9911
+ name = name || 'env';
9912
+ var data = exports.env(prefix, env);
9913
+ this.sources[name] = {
9914
+ data: data,
9915
+ source: env,
9916
+ prefix: prefix
9917
+ };
9918
+ return this.add(data, name);
9919
+ };
9920
+ ConfigChain.prototype.addUrl = function (req, type, name) {
9921
+ this._await();
9922
+ var href = url.format(req);
9923
+ name = name || href;
9924
+ var marker = {
9925
+ __source__: name
9926
+ };
9927
+ this.sources[name] = {
9928
+ href: href,
9929
+ type: type
9930
+ };
9931
+ this.push(marker);
9932
+ http.request(req, function (res) {
9933
+ var c = [];
9934
+ var ct = res.headers['content-type'];
9935
+ if (!type) {
9936
+ type = ct.indexOf('json') !== -1 ? 'json' : ct.indexOf('ini') !== -1 ? 'ini' : href.match(/\.json$/) ? 'json' : href.match(/\.ini$/) ? 'ini' : null;
9937
+ marker.type = type;
9938
+ }
9939
+ res.on('data', c.push.bind(c)).on('end', function () {
9940
+ this.addString(Buffer.concat(c), href, type, marker);
9941
+ }.bind(this)).on('error', this.emit.bind(this, 'error'));
9942
+ }.bind(this)).on('error', this.emit.bind(this, 'error')).end();
9943
+ return this;
9944
+ };
9945
+ ConfigChain.prototype.addString = function (data, file, type, marker) {
9946
+ data = this.parse(data, file, type);
9947
+ this.add(data, marker);
9948
+ return this;
9949
+ };
9950
+ ConfigChain.prototype.add = function (data, marker) {
9951
+ if (marker && typeof marker === 'object') {
9952
+ var i = this.list.indexOf(marker);
9953
+ if (i === -1) {
9954
+ return this.emit('error', new Error('bad marker'));
9955
+ }
9956
+ this.splice(i, 1, data);
9957
+ marker = marker.__source__;
9958
+ this.sources[marker] = this.sources[marker] || {};
9959
+ this.sources[marker].data = data;
9960
+ // we were waiting for this. maybe emit 'load'
9961
+ this._resolve();
9962
+ } else {
9963
+ if (typeof marker === 'string') {
9964
+ this.sources[marker] = this.sources[marker] || {};
9965
+ this.sources[marker].data = data;
9966
+ }
9967
+ // trigger the load event if nothing was already going to do so.
9968
+ this._await();
9969
+ this.push(data);
9970
+ process.nextTick(this._resolve.bind(this));
9971
+ }
9972
+ return this;
9973
+ };
9974
+ ConfigChain.prototype.parse = exports.parse;
9975
+ ConfigChain.prototype._await = function () {
9976
+ this._awaiting++;
9977
+ };
9978
+ ConfigChain.prototype._resolve = function () {
9979
+ this._awaiting--;
9980
+ if (this._awaiting === 0) this.emit('load', this);
9981
+ };
9982
+ return configChain.exports;
9983
+ }
9984
+
9985
+ var envKeyToSetting;
9986
+ var hasRequiredEnvKeyToSetting;
9987
+ function requireEnvKeyToSetting() {
9988
+ if (hasRequiredEnvKeyToSetting) return envKeyToSetting;
9989
+ hasRequiredEnvKeyToSetting = 1;
9990
+ envKeyToSetting = function (x) {
9991
+ const colonIndex = x.indexOf(':');
9992
+ if (colonIndex === -1) {
9993
+ return normalize(x);
9994
+ }
9995
+ const firstPart = x.substr(0, colonIndex);
9996
+ const secondPart = x.substr(colonIndex + 1);
9997
+ return `${normalize(firstPart)}:${normalize(secondPart)}`;
9998
+ };
9999
+ function normalize(s) {
10000
+ s = s.toLowerCase();
10001
+ if (s === '_authtoken') return '_authToken';
10002
+ let r = s[0];
10003
+ for (let i = 1; i < s.length; i++) {
10004
+ r += s[i] === '_' ? '-' : s[i];
10005
+ }
10006
+ return r;
10007
+ }
10008
+ return envKeyToSetting;
10009
+ }
10010
+
10011
+ var util$4 = {};
10012
+
10013
+ var dist$i = {};
10014
+
10015
+ var envReplace$1 = {};
10016
+
10017
+ var hasRequiredEnvReplace$1;
10018
+ function requireEnvReplace$1() {
10019
+ if (hasRequiredEnvReplace$1) return envReplace$1;
10020
+ hasRequiredEnvReplace$1 = 1;
10021
+ Object.defineProperty(envReplace$1, "__esModule", {
10022
+ value: true
10023
+ });
10024
+ envReplace$1.envReplace = void 0;
10025
+ const ENV_EXPR = /(?<!\\)(\\*)\$\{([^${}]+)\}/g;
10026
+ function envReplace(settingValue, env) {
10027
+ return settingValue.replace(ENV_EXPR, replaceEnvMatch.bind(null, env));
10028
+ }
10029
+ envReplace$1.envReplace = envReplace;
10030
+ function replaceEnvMatch(env, orig, escape, name) {
10031
+ if (escape.length % 2) {
10032
+ return orig.slice((escape.length + 1) / 2);
10033
+ }
10034
+ const envValue = getEnvValue(env, name);
10035
+ if (envValue === undefined) {
10036
+ throw new Error(`Failed to replace env in config: ${orig}`);
10037
+ }
10038
+ return `${escape.slice(escape.length / 2)}${envValue}`;
10039
+ }
10040
+ const ENV_VALUE = /([^:-]+)(:?)-(.+)/;
10041
+ function getEnvValue(env, name) {
10042
+ const matched = name.match(ENV_VALUE);
10043
+ if (!matched) return env[name];
10044
+ const [, variableName, colon, fallback] = matched;
10045
+ if (Object.prototype.hasOwnProperty.call(env, variableName)) {
10046
+ return !env[variableName] && colon ? fallback : env[variableName];
10047
+ }
10048
+ return fallback;
10049
+ }
10050
+ return envReplace$1;
10051
+ }
10052
+
10053
+ var hasRequiredDist$i;
10054
+ function requireDist$i() {
10055
+ if (hasRequiredDist$i) return dist$i;
10056
+ hasRequiredDist$i = 1;
10057
+ (function (exports) {
10058
+
10059
+ Object.defineProperty(exports, "__esModule", {
10060
+ value: true
10061
+ });
10062
+ exports.envReplace = void 0;
10063
+ var env_replace_1 = requireEnvReplace$1();
10064
+ Object.defineProperty(exports, "envReplace", {
10065
+ enumerable: true,
10066
+ get: function () {
10067
+ return env_replace_1.envReplace;
10068
+ }
10069
+ });
10070
+ })(dist$i);
10071
+ return dist$i;
10072
+ }
10073
+
10074
+ var hasRequiredUtil$4;
10075
+ function requireUtil$4() {
10076
+ if (hasRequiredUtil$4) return util$4;
10077
+ hasRequiredUtil$4 = 1;
10078
+ const fs = require$$0$9;
10079
+ const path = require$$0$c;
10080
+ const {
10081
+ envReplace
10082
+ } = requireDist$i();
10083
+ const parseKey = key => {
10084
+ if (typeof key !== 'string') {
10085
+ return key;
10086
+ }
10087
+ return envReplace(key, process.env);
10088
+ };
10089
+
10090
+ // https://github.com/npm/cli/blob/latest/lib/config/core.js#L359-L404
10091
+ const parseField = (types, field, key) => {
10092
+ if (typeof field !== 'string') {
10093
+ return field;
10094
+ }
10095
+ const typeList = [].concat(types[key]);
10096
+ const isPath = typeList.indexOf(path) !== -1;
10097
+ const isBool = typeList.indexOf(Boolean) !== -1;
10098
+ const isString = typeList.indexOf(String) !== -1;
10099
+ const isNumber = typeList.indexOf(Number) !== -1;
10100
+ field = `${field}`.trim();
10101
+ if (/^".*"$/.test(field)) {
10102
+ try {
10103
+ field = JSON.parse(field);
10104
+ } catch (error) {
10105
+ throw new Error(`Failed parsing JSON config key ${key}: ${field}`);
10106
+ }
10107
+ }
10108
+ if (isBool && !isString && field === '') {
10109
+ return true;
10110
+ }
10111
+ switch (field) {
10112
+ // eslint-disable-line default-case
10113
+ case 'true':
10114
+ {
10115
+ return true;
10116
+ }
10117
+ case 'false':
10118
+ {
10119
+ return false;
10120
+ }
10121
+ case 'null':
10122
+ {
10123
+ return null;
10124
+ }
10125
+ case 'undefined':
10126
+ {
10127
+ return undefined;
10128
+ }
10129
+ }
10130
+ field = envReplace(field, process.env);
10131
+ if (isPath) {
10132
+ const regex = process.platform === 'win32' ? /^~(\/|\\)/ : /^~\//;
10133
+ if (regex.test(field) && process.env.HOME) {
10134
+ field = path.resolve(process.env.HOME, field.substr(2));
10135
+ }
10136
+ field = path.resolve(field);
10137
+ }
10138
+ if (isNumber && !isNaN(field)) {
10139
+ field = Number(field);
10140
+ }
10141
+ return field;
10142
+ };
10143
+
10144
+ // https://github.com/npm/cli/blob/latest/lib/config/find-prefix.js
10145
+ const findPrefix = name => {
10146
+ name = path.resolve(name);
10147
+ let walkedUp = false;
10148
+ while (path.basename(name) === 'node_modules') {
10149
+ name = path.dirname(name);
10150
+ walkedUp = true;
10151
+ }
10152
+ if (walkedUp) {
10153
+ return name;
10154
+ }
10155
+ const find = (name, original) => {
10156
+ const regex = /^[a-zA-Z]:(\\|\/)?$/;
10157
+ if (name === '/' || process.platform === 'win32' && regex.test(name)) {
10158
+ return original;
10159
+ }
10160
+ try {
10161
+ const files = fs.readdirSync(name);
10162
+ if (files.includes('node_modules') || files.includes('package.json') || files.includes('package.json5') || files.includes('package.yaml') || files.includes('pnpm-workspace.yaml')) {
10163
+ return name;
10164
+ }
10165
+ const dirname = path.dirname(name);
10166
+ if (dirname === name) {
10167
+ return original;
10168
+ }
10169
+ return find(dirname, original);
10170
+ } catch (error) {
10171
+ if (name === original) {
10172
+ if (error.code === 'ENOENT') {
10173
+ return original;
10174
+ }
10175
+ throw error;
10176
+ }
10177
+ return original;
10178
+ }
10179
+ };
10180
+ return find(name, name);
10181
+ };
10182
+ util$4.envReplace = envReplace;
10183
+ util$4.findPrefix = findPrefix;
10184
+ util$4.parseField = parseField;
10185
+ util$4.parseKey = parseKey;
10186
+ return util$4;
10187
+ }
10188
+
10189
+ var types$4 = {};
10190
+
10191
+ var hasRequiredTypes$4;
10192
+ function requireTypes$4() {
10193
+ if (hasRequiredTypes$4) return types$4;
10194
+ hasRequiredTypes$4 = 1;
10195
+ const path = require$$0$c;
10196
+ const Stream = require$$1$7.Stream;
10197
+ const url = require$$0$d;
10198
+ const Umask = () => {};
10199
+ const getLocalAddresses = () => [];
10200
+ const semver = () => {};
10201
+ types$4.types = {
10202
+ access: [null, 'restricted', 'public'],
10203
+ 'allow-same-version': Boolean,
10204
+ 'always-auth': Boolean,
10205
+ also: [null, 'dev', 'development'],
10206
+ audit: Boolean,
10207
+ 'auth-type': ['legacy', 'sso', 'saml', 'oauth'],
10208
+ 'bin-links': Boolean,
10209
+ browser: [null, String],
10210
+ ca: [null, String, Array],
10211
+ cafile: path,
10212
+ cache: path,
10213
+ 'cache-lock-stale': Number,
10214
+ 'cache-lock-retries': Number,
10215
+ 'cache-lock-wait': Number,
10216
+ 'cache-max': Number,
10217
+ 'cache-min': Number,
10218
+ cert: [null, String],
10219
+ cidr: [null, String, Array],
10220
+ color: ['always', Boolean],
10221
+ depth: Number,
10222
+ description: Boolean,
10223
+ dev: Boolean,
10224
+ 'dry-run': Boolean,
10225
+ editor: String,
10226
+ 'engine-strict': Boolean,
10227
+ force: Boolean,
10228
+ 'fetch-retries': Number,
10229
+ 'fetch-retry-factor': Number,
10230
+ 'fetch-retry-mintimeout': Number,
10231
+ 'fetch-retry-maxtimeout': Number,
10232
+ git: String,
10233
+ 'git-tag-version': Boolean,
10234
+ 'commit-hooks': Boolean,
10235
+ global: Boolean,
10236
+ globalconfig: path,
10237
+ 'global-style': Boolean,
10238
+ group: [Number, String],
10239
+ 'https-proxy': [null, url],
10240
+ 'user-agent': String,
10241
+ 'ham-it-up': Boolean,
10242
+ 'heading': String,
10243
+ 'if-present': Boolean,
10244
+ 'ignore-prepublish': Boolean,
10245
+ 'ignore-scripts': Boolean,
10246
+ 'init-module': path,
10247
+ 'init-author-name': String,
10248
+ 'init-author-email': String,
10249
+ 'init-author-url': ['', url],
10250
+ 'init-license': String,
10251
+ 'init-version': semver,
10252
+ json: Boolean,
10253
+ key: [null, String],
10254
+ 'legacy-bundling': Boolean,
10255
+ link: Boolean,
10256
+ // local-address must be listed as an IP for a local network interface
10257
+ // must be IPv4 due to node bug
10258
+ 'local-address': getLocalAddresses(),
10259
+ loglevel: ['silent', 'error', 'warn', 'notice', 'http', 'timing', 'info', 'verbose', 'silly'],
10260
+ logstream: Stream,
10261
+ 'logs-max': Number,
10262
+ long: Boolean,
10263
+ maxsockets: Number,
10264
+ message: String,
10265
+ 'metrics-registry': [null, String],
10266
+ 'node-options': [null, String],
10267
+ 'node-version': [null, semver],
10268
+ 'no-proxy': [null, String, Array],
10269
+ offline: Boolean,
10270
+ 'onload-script': [null, String],
10271
+ only: [null, 'dev', 'development', 'prod', 'production'],
10272
+ optional: Boolean,
10273
+ 'package-lock': Boolean,
10274
+ otp: [null, String],
10275
+ 'package-lock-only': Boolean,
10276
+ parseable: Boolean,
10277
+ 'prefer-offline': Boolean,
10278
+ 'prefer-online': Boolean,
10279
+ prefix: path,
10280
+ production: Boolean,
10281
+ progress: Boolean,
10282
+ proxy: [null, false, url],
10283
+ provenance: Boolean,
10284
+ // allow proxy to be disabled explicitly
10285
+ 'read-only': Boolean,
10286
+ 'rebuild-bundle': Boolean,
10287
+ registry: [null, url],
10288
+ rollback: Boolean,
10289
+ save: Boolean,
10290
+ 'save-bundle': Boolean,
10291
+ 'save-dev': Boolean,
10292
+ 'save-exact': Boolean,
10293
+ 'save-optional': Boolean,
10294
+ 'save-prefix': String,
10295
+ 'save-prod': Boolean,
10296
+ scope: String,
10297
+ 'script-shell': [null, String],
10298
+ 'scripts-prepend-node-path': [false, true, 'auto', 'warn-only'],
10299
+ searchopts: String,
10300
+ searchexclude: [null, String],
10301
+ searchlimit: Number,
10302
+ searchstaleness: Number,
10303
+ 'send-metrics': Boolean,
10304
+ shell: String,
10305
+ shrinkwrap: Boolean,
10306
+ 'sign-git-tag': Boolean,
10307
+ 'sso-poll-frequency': Number,
10308
+ 'sso-type': [null, 'oauth', 'saml'],
10309
+ 'strict-ssl': Boolean,
10310
+ tag: String,
10311
+ timing: Boolean,
10312
+ tmp: path,
10313
+ unicode: Boolean,
10314
+ 'unsafe-perm': Boolean,
10315
+ usage: Boolean,
10316
+ user: [Number, String],
10317
+ userconfig: path,
10318
+ umask: Umask,
10319
+ version: Boolean,
10320
+ 'tag-version-prefix': String,
10321
+ versions: Boolean,
10322
+ viewer: String,
10323
+ _exit: Boolean
10324
+ };
10325
+ return types$4;
10326
+ }
10327
+
10328
+ var conf;
10329
+ var hasRequiredConf;
10330
+ function requireConf() {
10331
+ if (hasRequiredConf) return conf;
10332
+ hasRequiredConf = 1;
10333
+ const {
10334
+ readCAFileSync
10335
+ } = requireDist$j();
10336
+ const fs = require$$0$9;
10337
+ const path = require$$0$c;
10338
+ const {
10339
+ ConfigChain
10340
+ } = requireConfigChain();
10341
+ const envKeyToSetting = requireEnvKeyToSetting();
10342
+ const util = requireUtil$4();
10343
+ class Conf extends ConfigChain {
10344
+ // https://github.com/npm/cli/blob/latest/lib/config/core.js#L203-L217
10345
+ constructor(base, types) {
10346
+ super(base);
10347
+ this.root = base;
10348
+ this._parseField = util.parseField.bind(null, types || requireTypes$4());
10349
+ }
10350
+
10351
+ // https://github.com/npm/cli/blob/latest/lib/config/core.js#L326-L338
10352
+ add(data, marker) {
10353
+ try {
10354
+ for (const [key, value] of Object.entries(data)) {
10355
+ const substKey = util.parseKey(key);
10356
+ if (substKey !== key) {
10357
+ delete data[key];
10358
+ }
10359
+ data[substKey] = this._parseField(value, substKey);
10360
+ }
10361
+ } catch (error) {
10362
+ throw error;
10363
+ }
10364
+ return super.add(data, marker);
10365
+ }
10366
+
10367
+ // https://github.com/npm/cli/blob/latest/lib/config/core.js#L306-L319
10368
+ addFile(file, name) {
10369
+ name = name || file;
10370
+ const marker = {
10371
+ __source__: name
10372
+ };
10373
+ this.sources[name] = {
10374
+ path: file,
10375
+ type: 'ini'
10376
+ };
10377
+ this.push(marker);
10378
+ this._await();
10379
+ try {
10380
+ const contents = fs.readFileSync(file, 'utf8');
10381
+ this.addString(contents, file, 'ini', marker);
10382
+ } catch (error) {
10383
+ if (error.code === 'ENOENT') {
10384
+ this.add({}, marker);
10385
+ } else if (error.code !== 'EISDIR') {
10386
+ return `Issue while reading "${file}". ${error.message}`;
10387
+ }
10388
+ }
10389
+ }
10390
+
10391
+ // https://github.com/npm/cli/blob/latest/lib/config/core.js#L341-L357
10392
+ addEnv(env) {
10393
+ env = env || process.env;
10394
+ const conf = {};
10395
+ Object.keys(env).filter(x => /^npm_config_/i.test(x)).forEach(x => {
10396
+ if (!env[x]) {
10397
+ return;
10398
+ }
10399
+
10400
+ // PNPM patch.
10401
+ // BEGIN
10402
+ const key = envKeyToSetting(x.substr(11));
10403
+ const rawVal = env[x];
10404
+ conf[key] = deserializeEnvVal(key, rawVal);
10405
+ // END
10406
+ });
10407
+ return super.addEnv('', conf, 'env');
10408
+ }
10409
+
10410
+ // https://github.com/npm/cli/blob/latest/lib/config/load-prefix.js
10411
+ loadPrefix() {
10412
+ const cli = this.list[0];
10413
+ Object.defineProperty(this, 'prefix', {
10414
+ enumerable: true,
10415
+ set: prefix => {
10416
+ const g = this.get('global');
10417
+ this[g ? 'globalPrefix' : 'localPrefix'] = prefix;
10418
+ },
10419
+ get: () => {
10420
+ const g = this.get('global');
10421
+ return g ? this.globalPrefix : this.localPrefix;
10422
+ }
10423
+ });
10424
+ Object.defineProperty(this, 'globalPrefix', {
10425
+ enumerable: true,
10426
+ set: prefix => {
10427
+ this.set('prefix', prefix);
10428
+ },
10429
+ get: () => {
10430
+ return path.resolve(this.get('prefix'));
10431
+ }
10432
+ });
10433
+ let p;
10434
+ Object.defineProperty(this, 'localPrefix', {
10435
+ enumerable: true,
10436
+ set: prefix => {
10437
+ p = prefix;
10438
+ },
10439
+ get: () => {
10440
+ return p;
10441
+ }
10442
+ });
10443
+ if (Object.prototype.hasOwnProperty.call(cli, 'prefix')) {
10444
+ p = path.resolve(cli.prefix);
10445
+ } else {
10446
+ try {
10447
+ const prefix = util.findPrefix(process.cwd());
10448
+ p = prefix;
10449
+ } catch (error) {
10450
+ throw error;
10451
+ }
10452
+ }
10453
+ return p;
10454
+ }
10455
+
10456
+ // https://github.com/npm/cli/blob/latest/lib/config/load-cafile.js
10457
+ loadCAFile(file) {
10458
+ if (!file) {
10459
+ return;
10460
+ }
10461
+ const ca = readCAFileSync(file);
10462
+ if (ca) {
10463
+ this.set('ca', ca);
10464
+ }
10465
+ }
10466
+
10467
+ // https://github.com/npm/cli/blob/latest/lib/config/set-user.js
10468
+ loadUser() {
10469
+ const defConf = this.root;
10470
+ if (this.get('global')) {
10471
+ return;
10472
+ }
10473
+ if (process.env.SUDO_UID) {
10474
+ defConf.user = Number(process.env.SUDO_UID);
10475
+ return;
10476
+ }
10477
+ const prefix = path.resolve(this.get('prefix'));
10478
+ try {
10479
+ const stats = fs.statSync(prefix);
10480
+ defConf.user = stats.uid;
10481
+ } catch (error) {
10482
+ if (error.code === 'ENOENT') {
10483
+ return;
10484
+ }
10485
+ throw error;
10486
+ }
10487
+ }
10488
+ }
10489
+
10490
+ // PNPM patch.
10491
+ // BEGIN
10492
+ function deserializeEnvVal(envKey, envValue) {
10493
+ function deserializeList(envValue) {
10494
+ const npmConfigSep = '\n\n';
10495
+ if (envValue.indexOf(npmConfigSep)) {
10496
+ // Supports NPM config serialization format. See:
10497
+ // https://docs.npmjs.com/cli/v10/using-npm/config#ca
10498
+ // https://github.com/npm/cli/blob/v10.0.0/workspaces/config/lib/set-envs.js#L15
10499
+ return envValue.split(npmConfigSep);
10500
+ }
10501
+ return envValue.split(',');
10502
+ }
10503
+ switch (envKey) {
10504
+ case 'hoist-pattern':
10505
+ case 'public-hoist-pattern':
10506
+ return deserializeList(envValue);
10507
+ }
10508
+ return envValue;
10509
+ }
10510
+ // END
10511
+
10512
+ conf = Conf;
10513
+ return conf;
10514
+ }
10515
+
10516
+ var defaults$1 = {};
10517
+
10518
+ var hasRequiredDefaults$1;
10519
+ function requireDefaults$1() {
10520
+ if (hasRequiredDefaults$1) return defaults$1;
10521
+ hasRequiredDefaults$1 = 1;
10522
+ (function (exports) {
10523
+
10524
+ const os = require$$0$e;
10525
+ const path = require$$0$c;
10526
+ const temp = os.tmpdir();
10527
+ const uidOrPid = process.getuid ? process.getuid() : process.pid;
10528
+ const hasUnicode = () => true;
10529
+ const isWindows = process.platform === 'win32';
10530
+ const osenv = {
10531
+ editor: () => process.env.EDITOR || process.env.VISUAL || (isWindows ? 'notepad.exe' : 'vi'),
10532
+ shell: () => isWindows ? process.env.COMSPEC || 'cmd.exe' : process.env.SHELL || '/bin/bash'
10533
+ };
10534
+ const umask = {
10535
+ fromString: () => process.umask()
10536
+ };
10537
+ let home = os.homedir();
10538
+ if (home) {
10539
+ process.env.HOME = home;
10540
+ } else {
10541
+ home = path.resolve(temp, 'npm-' + uidOrPid);
10542
+ }
10543
+ const cacheExtra = process.platform === 'win32' ? 'npm-cache' : '.npm';
10544
+ const cacheRoot = process.platform === 'win32' && process.env.APPDATA || home;
10545
+ const cache = path.resolve(cacheRoot, cacheExtra);
10546
+ let defaults;
10547
+ let globalPrefix;
10548
+ Object.defineProperty(exports, 'defaults', {
10549
+ get: function () {
10550
+ if (defaults) return defaults;
10551
+ if (process.env.PREFIX) {
10552
+ globalPrefix = process.env.PREFIX;
10553
+ } else if (process.platform === 'win32') {
10554
+ // c:\node\node.exe --> prefix=c:\node\
10555
+ globalPrefix = path.dirname(process.execPath);
10556
+ } else {
10557
+ // /usr/local/bin/node --> prefix=/usr/local
10558
+ globalPrefix = path.dirname(path.dirname(process.execPath)); // destdir only is respected on Unix
10559
+
10560
+ if (process.env.DESTDIR) {
10561
+ globalPrefix = path.join(process.env.DESTDIR, globalPrefix);
10562
+ }
10563
+ }
10564
+ defaults = {
10565
+ access: null,
10566
+ 'allow-same-version': false,
10567
+ 'always-auth': false,
10568
+ also: null,
10569
+ audit: true,
10570
+ 'auth-type': 'legacy',
10571
+ 'bin-links': true,
10572
+ browser: null,
10573
+ ca: null,
10574
+ cafile: null,
10575
+ cache: cache,
10576
+ 'cache-lock-stale': 60000,
10577
+ 'cache-lock-retries': 10,
10578
+ 'cache-lock-wait': 10000,
10579
+ 'cache-max': Infinity,
10580
+ 'cache-min': 10,
10581
+ cert: null,
10582
+ cidr: null,
10583
+ color: process.env.NO_COLOR == null,
10584
+ depth: Infinity,
10585
+ description: true,
10586
+ dev: false,
10587
+ 'dry-run': false,
10588
+ editor: osenv.editor(),
10589
+ 'engine-strict': false,
10590
+ force: false,
10591
+ 'fetch-retries': 2,
10592
+ 'fetch-retry-factor': 10,
10593
+ 'fetch-retry-mintimeout': 10000,
10594
+ 'fetch-retry-maxtimeout': 60000,
10595
+ git: 'git',
10596
+ 'git-tag-version': true,
10597
+ 'commit-hooks': true,
10598
+ global: false,
10599
+ globalconfig: path.resolve(globalPrefix, 'etc', 'npmrc'),
10600
+ 'global-style': false,
10601
+ group: process.platform === 'win32' ? 0 : process.env.SUDO_GID || process.getgid && process.getgid(),
10602
+ 'ham-it-up': false,
10603
+ heading: 'npm',
10604
+ 'if-present': false,
10605
+ 'ignore-prepublish': false,
10606
+ 'ignore-scripts': false,
10607
+ 'init-module': path.resolve(home, '.npm-init.js'),
10608
+ 'init-author-name': '',
10609
+ 'init-author-email': '',
10610
+ 'init-author-url': '',
10611
+ 'init-version': '1.0.0',
10612
+ 'init-license': 'ISC',
10613
+ json: false,
10614
+ key: null,
10615
+ 'legacy-bundling': false,
10616
+ link: false,
10617
+ 'local-address': undefined,
10618
+ loglevel: 'notice',
10619
+ logstream: process.stderr,
10620
+ 'logs-max': 10,
10621
+ long: false,
10622
+ maxsockets: 50,
10623
+ message: '%s',
10624
+ 'metrics-registry': null,
10625
+ 'node-options': null,
10626
+ // We remove node-version to fix the issue described here: https://github.com/pnpm/pnpm/issues/4203#issuecomment-1133872769
10627
+ 'offline': false,
10628
+ 'onload-script': false,
10629
+ only: null,
10630
+ optional: true,
10631
+ otp: null,
10632
+ 'package-lock': true,
10633
+ 'package-lock-only': false,
10634
+ parseable: false,
10635
+ 'prefer-offline': false,
10636
+ 'prefer-online': false,
10637
+ prefix: globalPrefix,
10638
+ production: process.env.NODE_ENV === 'production',
10639
+ 'progress': !process.env.TRAVIS && !process.env.CI,
10640
+ provenance: false,
10641
+ proxy: null,
10642
+ 'https-proxy': null,
10643
+ 'no-proxy': null,
10644
+ 'user-agent': 'npm/{npm-version} ' + 'node/{node-version} ' + '{platform} ' + '{arch}',
10645
+ 'read-only': false,
10646
+ 'rebuild-bundle': true,
10647
+ registry: 'https://registry.npmjs.org/',
10648
+ rollback: true,
10649
+ save: true,
10650
+ 'save-bundle': false,
10651
+ 'save-dev': false,
10652
+ 'save-exact': false,
10653
+ 'save-optional': false,
10654
+ 'save-prefix': '^',
10655
+ 'save-prod': false,
10656
+ scope: '',
10657
+ 'script-shell': null,
10658
+ 'scripts-prepend-node-path': 'warn-only',
10659
+ searchopts: '',
10660
+ searchexclude: null,
10661
+ searchlimit: 20,
10662
+ searchstaleness: 15 * 60,
10663
+ 'send-metrics': false,
10664
+ shell: osenv.shell(),
10665
+ shrinkwrap: true,
10666
+ 'sign-git-tag': false,
10667
+ 'sso-poll-frequency': 500,
10668
+ 'sso-type': 'oauth',
10669
+ 'strict-ssl': true,
10670
+ tag: 'latest',
10671
+ 'tag-version-prefix': 'v',
10672
+ timing: false,
10673
+ tmp: temp,
10674
+ unicode: hasUnicode(),
10675
+ 'unsafe-perm': process.platform === 'win32' || process.platform === 'cygwin' || !(process.getuid && process.setuid && process.getgid && process.setgid) || process.getuid() !== 0,
10676
+ usage: false,
10677
+ user: process.platform === 'win32' ? 0 : 'nobody',
10678
+ userconfig: path.resolve(home, '.npmrc'),
10679
+ umask: process.umask ? process.umask() : umask.fromString('022'),
10680
+ version: false,
10681
+ versions: false,
10682
+ viewer: process.platform === 'win32' ? 'browser' : 'man',
10683
+ _exit: true
10684
+ };
10685
+ return defaults;
10686
+ }
10687
+ });
10688
+ })(defaults$1);
10689
+ return defaults$1;
10690
+ }
10691
+
10692
+ var hasRequiredNpmConf;
10693
+ function requireNpmConf() {
10694
+ if (hasRequiredNpmConf) return npmConf.exports;
10695
+ hasRequiredNpmConf = 1;
10696
+ (function (module) {
10697
+
10698
+ const path = require$$0$c;
10699
+ const Conf = requireConf();
10700
+ const _defaults = requireDefaults$1();
10701
+
10702
+ // https://github.com/npm/cli/blob/latest/lib/config/core.js#L101-L200
10703
+ module.exports = (opts, types, defaults) => {
10704
+ const conf = new Conf(Object.assign({}, _defaults.defaults, defaults), types);
10705
+ conf.add(Object.assign({}, opts), 'cli');
10706
+ const warnings = [];
10707
+ let failedToLoadBuiltInConfig = false;
10708
+ if (require.resolve.paths) {
10709
+ const paths = require.resolve.paths('npm');
10710
+ // Assume that last path in resolve paths is builtin modules directory
10711
+ let npmPath;
10712
+ try {
10713
+ npmPath = require.resolve('npm', {
10714
+ paths: paths.slice(-1)
10715
+ });
10716
+ } catch (error) {
10717
+ // Error will be thrown if module cannot be found.
10718
+ // Update the flag while loading builtin config failed.
10719
+ failedToLoadBuiltInConfig = true;
10720
+ }
10721
+ if (npmPath) {
10722
+ /**
10723
+ * According to https://github.com/npm/cli/blob/86f5bdb91f7a5971953a5171d32d6eeda6a2e972/lib/npm.js#L258
10724
+ * and https://github.com/npm/cli/blob/86f5bdb91f7a5971953a5171d32d6eeda6a2e972/lib/config/core.js#L92
10725
+ */
10726
+ warnings.push(conf.addFile(path.resolve(path.dirname(npmPath), '..', 'npmrc'), 'builtin'));
10727
+ }
10728
+ }
10729
+ conf.addEnv();
10730
+ conf.loadPrefix();
10731
+ const projectConf = path.resolve(conf.localPrefix, '.npmrc');
10732
+ const userConf = conf.get('userconfig');
10733
+ if (!conf.get('global') && projectConf !== userConf) {
10734
+ warnings.push(conf.addFile(projectConf, 'project'));
10735
+ } else {
10736
+ conf.add({}, 'project');
10737
+ }
10738
+
10739
+ // TODO: cover with tests that configs from workspace .npmrc have bigger priority
10740
+ // than the ones in userconfig
10741
+ if (conf.get('workspace-prefix') && conf.get('workspace-prefix') !== projectConf) {
10742
+ const workspaceConf = path.resolve(conf.get('workspace-prefix'), '.npmrc');
10743
+ warnings.push(conf.addFile(workspaceConf, 'workspace'));
10744
+ }
10745
+ warnings.push(conf.addFile(conf.get('userconfig'), 'user'));
10746
+ if (conf.get('prefix')) {
10747
+ const etc = path.resolve(conf.get('prefix'), 'etc');
10748
+ conf.root.globalconfig = path.resolve(etc, 'npmrc');
10749
+ conf.root.globalignorefile = path.resolve(etc, 'npmignore');
10750
+ }
10751
+ warnings.push(conf.addFile(conf.get('globalconfig'), 'global'));
10752
+ conf.loadUser();
10753
+ const caFile = conf.get('cafile');
10754
+ if (caFile) {
10755
+ conf.loadCAFile(caFile);
10756
+ }
10757
+ return {
10758
+ config: conf,
10759
+ warnings: warnings.filter(Boolean),
10760
+ failedToLoadBuiltInConfig
10761
+ };
10762
+ };
10763
+ Object.defineProperty(module.exports, 'defaults', {
10764
+ get() {
10765
+ return _defaults.defaults;
10766
+ },
10767
+ enumerable: true
10768
+ });
10769
+ })(npmConf);
10770
+ return npmConf.exports;
10771
+ }
10772
+
10773
+ var registryAuthToken;
10774
+ var hasRequiredRegistryAuthToken;
10775
+ function requireRegistryAuthToken() {
10776
+ if (hasRequiredRegistryAuthToken) return registryAuthToken;
10777
+ hasRequiredRegistryAuthToken = 1;
10778
+ const npmConf = requireNpmConf();
10779
+ const tokenKey = ':_authToken';
10780
+ const legacyTokenKey = ':_auth';
10781
+ const userKey = ':username';
10782
+ const passwordKey = ':_password';
10783
+ registryAuthToken = function getRegistryAuthToken() {
10784
+ let checkUrl;
10785
+ let options;
10786
+ if (arguments.length >= 2) {
10787
+ checkUrl = arguments[0];
10788
+ options = Object.assign({}, arguments[1]);
10789
+ } else if (typeof arguments[0] === 'string') {
10790
+ checkUrl = arguments[0];
10791
+ } else {
10792
+ options = Object.assign({}, arguments[0]);
10793
+ }
10794
+ options = options || {};
10795
+ const providedNpmrc = options.npmrc;
10796
+ options.npmrc = (options.npmrc ? {
10797
+ config: {
10798
+ get: key => providedNpmrc[key]
10799
+ }
10800
+ } : npmConf()).config;
10801
+ checkUrl = checkUrl || options.npmrc.get('registry') || npmConf.defaults.registry;
10802
+ return getRegistryAuthInfo(checkUrl, options) || getLegacyAuthInfo(options.npmrc);
10803
+ };
10804
+
10805
+ // https://nodejs.org/api/url.html#urlresolvefrom-to
10806
+ function urlResolve(from, to) {
10807
+ const resolvedUrl = new URL(to, new URL(from.startsWith('//') ? `./${from}` : from, 'resolve://'));
10808
+ if (resolvedUrl.protocol === 'resolve:') {
10809
+ // `from` is a relative URL.
10810
+ const {
10811
+ pathname,
10812
+ search,
10813
+ hash
10814
+ } = resolvedUrl;
10815
+ return pathname + search + hash;
10816
+ }
10817
+ return resolvedUrl.toString();
10818
+ }
10819
+ function getRegistryAuthInfo(checkUrl, options) {
10820
+ let parsed = checkUrl instanceof URL ? checkUrl : new URL(checkUrl.startsWith('//') ? `http:${checkUrl}` : checkUrl);
10821
+ let pathname;
10822
+ while (pathname !== '/' && parsed.pathname !== pathname) {
10823
+ pathname = parsed.pathname || '/';
10824
+ const regUrl = '//' + parsed.host + pathname.replace(/\/$/, '');
10825
+ const authInfo = getAuthInfoForUrl(regUrl, options.npmrc);
10826
+ if (authInfo) {
10827
+ return authInfo;
10828
+ }
10829
+
10830
+ // break if not recursive
10831
+ if (!options.recursive) {
10832
+ return /\/$/.test(checkUrl) ? undefined : getRegistryAuthInfo(new URL('./', parsed), options);
10833
+ }
10834
+ parsed.pathname = urlResolve(normalizePath(pathname), '..') || '/';
10835
+ }
10836
+ return undefined;
10837
+ }
10838
+ function getLegacyAuthInfo(npmrc) {
10839
+ if (!npmrc.get('_auth')) {
10840
+ return undefined;
10841
+ }
10842
+ const token = replaceEnvironmentVariable(npmrc.get('_auth'));
10843
+ return {
10844
+ token: token,
10845
+ type: 'Basic'
10846
+ };
10847
+ }
10848
+ function normalizePath(path) {
10849
+ return path[path.length - 1] === '/' ? path : path + '/';
10850
+ }
10851
+ function getAuthInfoForUrl(regUrl, npmrc) {
10852
+ // try to get bearer token
10853
+ const bearerAuth = getBearerToken(npmrc.get(regUrl + tokenKey) || npmrc.get(regUrl + '/' + tokenKey));
10854
+ if (bearerAuth) {
10855
+ return bearerAuth;
10856
+ }
10857
+
10858
+ // try to get basic token
10859
+ const username = npmrc.get(regUrl + userKey) || npmrc.get(regUrl + '/' + userKey);
10860
+ const password = npmrc.get(regUrl + passwordKey) || npmrc.get(regUrl + '/' + passwordKey);
10861
+ const basicAuth = getTokenForUsernameAndPassword(username, password);
10862
+ if (basicAuth) {
10863
+ return basicAuth;
10864
+ }
10865
+ const basicAuthWithToken = getLegacyAuthToken(npmrc.get(regUrl + legacyTokenKey) || npmrc.get(regUrl + '/' + legacyTokenKey));
10866
+ if (basicAuthWithToken) {
10867
+ return basicAuthWithToken;
10868
+ }
10869
+ return undefined;
10870
+ }
10871
+ function replaceEnvironmentVariable(token) {
10872
+ return token.replace(/^\$\{?([^}]*)\}?$/, function (fullMatch, envVar) {
10873
+ return process.env[envVar];
10874
+ });
10875
+ }
10876
+ function getBearerToken(tok) {
10877
+ if (!tok) {
10878
+ return undefined;
10879
+ }
10880
+
10881
+ // check if bearer token is set as environment variable
10882
+ const token = replaceEnvironmentVariable(tok);
10883
+ return {
10884
+ token: token,
10885
+ type: 'Bearer'
10886
+ };
10887
+ }
10888
+ function getTokenForUsernameAndPassword(username, password) {
10889
+ if (!username || !password) {
10890
+ return undefined;
10891
+ }
10892
+
10893
+ // passwords are base64 encoded, so we need to decode it
10894
+ // See https://github.com/npm/npm/blob/v3.10.6/lib/config/set-credentials-by-uri.js#L26
10895
+ const pass = Buffer.from(replaceEnvironmentVariable(password), 'base64').toString('utf8');
10896
+
10897
+ // a basic auth token is base64 encoded 'username:password'
10898
+ // See https://github.com/npm/npm/blob/v3.10.6/lib/config/get-credentials-by-uri.js#L70
10899
+ const token = Buffer.from(username + ':' + pass, 'utf8').toString('base64');
10900
+
10901
+ // we found a basicToken token so let's exit the loop
10902
+ return {
10903
+ token: token,
10904
+ type: 'Basic',
10905
+ password: pass,
10906
+ username: username
10907
+ };
10908
+ }
10909
+ function getLegacyAuthToken(tok) {
10910
+ if (!tok) {
10911
+ return undefined;
10912
+ }
10913
+
10914
+ // check if legacy auth token is set as environment variable
10915
+ const token = replaceEnvironmentVariable(tok);
10916
+ return {
10917
+ token: token,
10918
+ type: 'Basic'
10919
+ };
10920
+ }
10921
+ return registryAuthToken;
10922
+ }
10923
+
10924
+ var registryAuthTokenExports = requireRegistryAuthToken();
10925
+
10926
+ const toPath = urlOrPath => urlOrPath instanceof URL ? require$$0$6.fileURLToPath(urlOrPath) : urlOrPath;
10927
+ function findUpSync(name, {
10928
+ cwd = process$2.cwd(),
10929
+ type = 'file',
10930
+ stopAt
10931
+ } = {}) {
10932
+ let directory = path$2.resolve(toPath(cwd) ?? '');
10933
+ const {
10934
+ root
10935
+ } = path$2.parse(directory);
10936
+ stopAt = path$2.resolve(directory, toPath(stopAt) ?? root);
10937
+ const isAbsoluteName = path$2.isAbsolute(name);
10938
+ while (directory) {
10939
+ const filePath = isAbsoluteName ? name : path$2.join(directory, name);
10940
+ try {
10941
+ const stats = fs$1.statSync(filePath, {
10942
+ throwIfNoEntry: false
10943
+ });
10944
+ if (type === 'file' && stats?.isFile() || type === 'directory' && stats?.isDirectory()) {
10945
+ return filePath;
10946
+ }
10947
+ } catch {}
10948
+ if (directory === stopAt || directory === root) {
10949
+ break;
10950
+ }
10951
+ directory = path$2.dirname(directory);
10952
+ }
10953
+ }
10954
+
10955
+ var ini;
10956
+ var hasRequiredIni;
10957
+ function requireIni() {
10958
+ if (hasRequiredIni) return ini;
10959
+ hasRequiredIni = 1;
10960
+ const {
10961
+ hasOwnProperty
10962
+ } = Object.prototype;
10963
+ const encode = (obj, opt = {}) => {
10964
+ if (typeof opt === 'string') {
10965
+ opt = {
10966
+ section: opt
10967
+ };
10968
+ }
10969
+ opt.align = opt.align === true;
10970
+ opt.newline = opt.newline === true;
10971
+ opt.sort = opt.sort === true;
10972
+ opt.whitespace = opt.whitespace === true || opt.align === true;
10973
+ // The `typeof` check is required because accessing the `process` directly fails on browsers.
10974
+ /* istanbul ignore next */
10975
+ opt.platform = opt.platform || typeof process !== 'undefined' && process.platform;
10976
+ opt.bracketedArray = opt.bracketedArray !== false;
10977
+
10978
+ /* istanbul ignore next */
10979
+ const eol = opt.platform === 'win32' ? '\r\n' : '\n';
10980
+ const separator = opt.whitespace ? ' = ' : '=';
10981
+ const children = [];
10982
+ const keys = opt.sort ? Object.keys(obj).sort() : Object.keys(obj);
10983
+ let padToChars = 0;
10984
+ // If aligning on the separator, then padToChars is determined as follows:
10985
+ // 1. Get the keys
10986
+ // 2. Exclude keys pointing to objects unless the value is null or an array
10987
+ // 3. Add `[]` to array keys
10988
+ // 4. Ensure non empty set of keys
10989
+ // 5. Reduce the set to the longest `safe` key
10990
+ // 6. Get the `safe` length
10991
+ if (opt.align) {
10992
+ padToChars = safe(keys.filter(k => obj[k] === null || Array.isArray(obj[k]) || typeof obj[k] !== 'object').map(k => Array.isArray(obj[k]) ? `${k}[]` : k).concat(['']).reduce((a, b) => safe(a).length >= safe(b).length ? a : b)).length;
10993
+ }
10994
+ let out = '';
10995
+ const arraySuffix = opt.bracketedArray ? '[]' : '';
10996
+ for (const k of keys) {
10997
+ const val = obj[k];
10998
+ if (val && Array.isArray(val)) {
10999
+ for (const item of val) {
11000
+ out += safe(`${k}${arraySuffix}`).padEnd(padToChars, ' ') + separator + safe(item) + eol;
11001
+ }
11002
+ } else if (val && typeof val === 'object') {
11003
+ children.push(k);
11004
+ } else {
11005
+ out += safe(k).padEnd(padToChars, ' ') + separator + safe(val) + eol;
11006
+ }
11007
+ }
11008
+ if (opt.section && out.length) {
11009
+ out = '[' + safe(opt.section) + ']' + (opt.newline ? eol + eol : eol) + out;
11010
+ }
11011
+ for (const k of children) {
11012
+ const nk = splitSections(k, '.').join('\\.');
11013
+ const section = (opt.section ? opt.section + '.' : '') + nk;
11014
+ const child = encode(obj[k], {
11015
+ ...opt,
11016
+ section
11017
+ });
11018
+ if (out.length && child.length) {
11019
+ out += eol;
11020
+ }
11021
+ out += child;
11022
+ }
11023
+ return out;
11024
+ };
11025
+ function splitSections(str, separator) {
11026
+ var lastMatchIndex = 0;
11027
+ var lastSeparatorIndex = 0;
11028
+ var nextIndex = 0;
11029
+ var sections = [];
11030
+ do {
11031
+ nextIndex = str.indexOf(separator, lastMatchIndex);
11032
+ if (nextIndex !== -1) {
11033
+ lastMatchIndex = nextIndex + separator.length;
11034
+ if (nextIndex > 0 && str[nextIndex - 1] === '\\') {
11035
+ continue;
11036
+ }
11037
+ sections.push(str.slice(lastSeparatorIndex, nextIndex));
11038
+ lastSeparatorIndex = nextIndex + separator.length;
11039
+ }
11040
+ } while (nextIndex !== -1);
11041
+ sections.push(str.slice(lastSeparatorIndex));
11042
+ return sections;
11043
+ }
11044
+ const decode = (str, opt = {}) => {
11045
+ opt.bracketedArray = opt.bracketedArray !== false;
11046
+ const out = Object.create(null);
11047
+ let p = out;
11048
+ let section = null;
11049
+ // section |key = value
11050
+ const re = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
11051
+ const lines = str.split(/[\r\n]+/g);
11052
+ const duplicates = {};
11053
+ for (const line of lines) {
11054
+ if (!line || line.match(/^\s*[;#]/) || line.match(/^\s*$/)) {
11055
+ continue;
11056
+ }
11057
+ const match = line.match(re);
11058
+ if (!match) {
11059
+ continue;
11060
+ }
11061
+ if (match[1] !== undefined) {
11062
+ section = unsafe(match[1]);
11063
+ if (section === '__proto__') {
11064
+ // not allowed
11065
+ // keep parsing the section, but don't attach it.
11066
+ p = Object.create(null);
11067
+ continue;
11068
+ }
11069
+ p = out[section] = out[section] || Object.create(null);
11070
+ continue;
11071
+ }
11072
+ const keyRaw = unsafe(match[2]);
11073
+ let isArray;
11074
+ if (opt.bracketedArray) {
11075
+ isArray = keyRaw.length > 2 && keyRaw.slice(-2) === '[]';
11076
+ } else {
11077
+ duplicates[keyRaw] = (duplicates?.[keyRaw] || 0) + 1;
11078
+ isArray = duplicates[keyRaw] > 1;
11079
+ }
11080
+ const key = isArray && keyRaw.endsWith('[]') ? keyRaw.slice(0, -2) : keyRaw;
11081
+ if (key === '__proto__') {
11082
+ continue;
11083
+ }
11084
+ const valueRaw = match[3] ? unsafe(match[4]) : true;
11085
+ const value = valueRaw === 'true' || valueRaw === 'false' || valueRaw === 'null' ? JSON.parse(valueRaw) : valueRaw;
11086
+
11087
+ // Convert keys with '[]' suffix to an array
11088
+ if (isArray) {
11089
+ if (!hasOwnProperty.call(p, key)) {
11090
+ p[key] = [];
11091
+ } else if (!Array.isArray(p[key])) {
11092
+ p[key] = [p[key]];
11093
+ }
11094
+ }
11095
+
11096
+ // safeguard against resetting a previously defined
11097
+ // array by accidentally forgetting the brackets
11098
+ if (Array.isArray(p[key])) {
11099
+ p[key].push(value);
11100
+ } else {
11101
+ p[key] = value;
11102
+ }
11103
+ }
11104
+
11105
+ // {a:{y:1},"a.b":{x:2}} --> {a:{y:1,b:{x:2}}}
11106
+ // use a filter to return the keys that have to be deleted.
11107
+ const remove = [];
11108
+ for (const k of Object.keys(out)) {
11109
+ if (!hasOwnProperty.call(out, k) || typeof out[k] !== 'object' || Array.isArray(out[k])) {
11110
+ continue;
11111
+ }
11112
+
11113
+ // see if the parent section is also an object.
11114
+ // if so, add it to that, and mark this one for deletion
11115
+ const parts = splitSections(k, '.');
11116
+ p = out;
11117
+ const l = parts.pop();
11118
+ const nl = l.replace(/\\\./g, '.');
11119
+ for (const part of parts) {
11120
+ if (part === '__proto__') {
11121
+ continue;
11122
+ }
11123
+ if (!hasOwnProperty.call(p, part) || typeof p[part] !== 'object') {
11124
+ p[part] = Object.create(null);
11125
+ }
11126
+ p = p[part];
11127
+ }
11128
+ if (p === out && nl === l) {
11129
+ continue;
11130
+ }
11131
+ p[nl] = out[k];
11132
+ remove.push(k);
11133
+ }
11134
+ for (const del of remove) {
11135
+ delete out[del];
11136
+ }
11137
+ return out;
11138
+ };
11139
+ const isQuoted = val => {
11140
+ return val.startsWith('"') && val.endsWith('"') || val.startsWith("'") && val.endsWith("'");
11141
+ };
11142
+ const safe = val => {
11143
+ if (typeof val !== 'string' || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim()) {
11144
+ return JSON.stringify(val);
11145
+ }
11146
+ return val.split(';').join('\\;').split('#').join('\\#');
11147
+ };
11148
+ const unsafe = val => {
11149
+ val = (val || '').trim();
11150
+ if (isQuoted(val)) {
11151
+ // remove the single quotes before calling JSON.parse
11152
+ if (val.charAt(0) === "'") {
11153
+ val = val.slice(1, -1);
11154
+ }
11155
+ try {
11156
+ val = JSON.parse(val);
11157
+ } catch {
11158
+ // ignore errors
11159
+ }
11160
+ } else {
11161
+ // walk the val to find the first not-escaped ; character
11162
+ let esc = false;
11163
+ let unesc = '';
11164
+ for (let i = 0, l = val.length; i < l; i++) {
11165
+ const c = val.charAt(i);
11166
+ if (esc) {
11167
+ if ('\\;#'.indexOf(c) !== -1) {
11168
+ unesc += c;
11169
+ } else {
11170
+ unesc += '\\' + c;
11171
+ }
11172
+ esc = false;
11173
+ } else if (';#'.indexOf(c) !== -1) {
11174
+ break;
11175
+ } else if (c === '\\') {
11176
+ esc = true;
11177
+ } else {
11178
+ unesc += c;
11179
+ }
11180
+ }
11181
+ if (esc) {
11182
+ unesc += '\\';
11183
+ }
11184
+ return unesc.trim();
11185
+ }
11186
+ return val;
11187
+ };
11188
+ ini = {
11189
+ parse: decode,
11190
+ decode,
11191
+ stringify: encode,
11192
+ encode,
11193
+ safe,
11194
+ unsafe
11195
+ };
11196
+ return ini;
11197
+ }
11198
+
11199
+ var iniExports = requireIni();
11200
+
11201
+ const defaultUrl = 'https://registry.npmjs.org/';
11202
+ const normalize$2 = url => url.endsWith('/') ? url : `${url}/`;
11203
+ function registryUrl(scope) {
11204
+ // Lowercased one is priority.
11205
+ // Run `NPM_CONFIG_REGISTRY=foo npm_config_registry=bar npm config get registry` to check.
11206
+ const npmConfigRegistry = process$2.env.npm_config_registry || process$2.env.NPM_CONFIG_REGISTRY;
11207
+
11208
+ // Don't find up for performance.
11209
+ if (npmConfigRegistry && !scope) {
11210
+ return normalize$2(npmConfigRegistry);
11211
+ }
11212
+ const npmRcPath = findUpSync('.npmrc');
11213
+ if (!npmRcPath) {
11214
+ return normalize$2(npmConfigRegistry || defaultUrl);
11215
+ }
11216
+ const content = fs$1.readFileSync(npmRcPath, 'utf8');
11217
+ const result = iniExports.parse(content);
11218
+ return normalize$2(result[`${scope}:registry`] || npmConfigRegistry || result.registry || defaultUrl);
11219
+ }
11220
+
8551
11221
  /* MAIN */
8552
11222
  const attempt = (fn, fallback) => {
8553
11223
  try {
@@ -8799,9 +11469,22 @@ const compare = (a, b) => {
8799
11469
  /* MAIN */
8800
11470
  const Utils = {
8801
11471
  /* API */
8802
- fetch: async url => {
11472
+ fetch: async (url, options = {}) => {
11473
+ const {
11474
+ authInfo
11475
+ } = {
11476
+ __proto__: null,
11477
+ ...options
11478
+ };
11479
+ const headers = new Headers({
11480
+ 'Accept': 'application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*'
11481
+ });
11482
+ if (authInfo) {
11483
+ headers.set('Authorization', `${authInfo.type} ${authInfo.token}`);
11484
+ }
8803
11485
  const signal = Utils.getExitSignal();
8804
11486
  const request = await fetch(url, {
11487
+ headers,
8805
11488
  signal
8806
11489
  });
8807
11490
  const json = await request.json();
@@ -8812,10 +11495,20 @@ const Utils = {
8812
11495
  whenExit(() => aborter.abort());
8813
11496
  return aborter.signal;
8814
11497
  },
8815
- getLatestVersion: async name => {
8816
- const latestUrl = `https://registry.npmjs.org/${name}/latest`;
8817
- const latest = await Utils.fetch(latestUrl);
8818
- return latest.version;
11498
+ getLatestVersion: async (name, options = {}) => {
11499
+ const {
11500
+ authInfo,
11501
+ registryUrl = 'https://registry.npmjs.org/'
11502
+ } = {
11503
+ __proto__: null,
11504
+ ...options
11505
+ };
11506
+ const maybeSlash = registryUrl.endsWith('/') ? '' : '/';
11507
+ const latestUrl = `${registryUrl}${maybeSlash}${name}/latest`;
11508
+ const json = await Utils.fetch(latestUrl, {
11509
+ authInfo
11510
+ });
11511
+ return json.version;
8819
11512
  },
8820
11513
  isNumber: value => {
8821
11514
  return typeof value === 'number';
@@ -8867,15 +11560,24 @@ var Store$1 = new Store();
8867
11560
  /* IMPORT */
8868
11561
  /* MAIN */
8869
11562
  //TODO: Account for non-latest releases
8870
- const updater$1 = async ({
8871
- name,
8872
- version,
8873
- ttl = 0
8874
- }) => {
11563
+ const updater$1 = async options => {
11564
+ const {
11565
+ authInfo,
11566
+ name,
11567
+ registryUrl,
11568
+ version,
11569
+ ttl = 0
11570
+ } = {
11571
+ __proto__: null,
11572
+ ...options
11573
+ };
8875
11574
  const record = Store$1.get(name);
8876
11575
  const timestamp = Date.now();
8877
11576
  const isFresh = !record || timestamp - record.timestampFetch >= ttl;
8878
- const latest = isFresh ? await Utils.getLatestVersion(name).catch(Utils.noop) : record?.version;
11577
+ const latest = isFresh ? await Utils.getLatestVersion(name, {
11578
+ authInfo,
11579
+ registryUrl
11580
+ }).catch(Utils.noop) : record?.version;
8879
11581
  if (!latest) return false;
8880
11582
  if (isFresh) {
8881
11583
  const record = {
@@ -8894,35 +11596,6 @@ const updater$1 = async ({
8894
11596
  return true;
8895
11597
  };
8896
11598
 
8897
- function getAugmentedNamespace(n) {
8898
- if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
8899
- var f = n.default;
8900
- if (typeof f == "function") {
8901
- var a = function a () {
8902
- var isInstance = false;
8903
- try {
8904
- isInstance = this instanceof a;
8905
- } catch {}
8906
- if (isInstance) {
8907
- return Reflect.construct(f, arguments, this.constructor);
8908
- }
8909
- return f.apply(this, arguments);
8910
- };
8911
- a.prototype = f.prototype;
8912
- } else a = {};
8913
- Object.defineProperty(a, '__esModule', {value: true});
8914
- Object.keys(n).forEach(function (k) {
8915
- var d = Object.getOwnPropertyDescriptor(n, k);
8916
- Object.defineProperty(a, k, d.get ? d : {
8917
- enumerable: true,
8918
- get: function () {
8919
- return n[k];
8920
- }
8921
- });
8922
- });
8923
- return a;
8924
- }
8925
-
8926
11599
  var ajv = {exports: {}};
8927
11600
 
8928
11601
  var core$2 = {};
@@ -18225,7 +20898,7 @@ var hasRequiredLog;
18225
20898
  function requireLog() {
18226
20899
  if (hasRequiredLog) return log;
18227
20900
  hasRequiredLog = 1;
18228
- var node_process = require$$0$7;
20901
+ var node_process = require$$0$f;
18229
20902
  function debug(logLevel, ...messages) {
18230
20903
  if (logLevel === 'debug') console.log(...messages);
18231
20904
  }
@@ -19149,7 +21822,7 @@ var hasRequiredBinary;
19149
21822
  function requireBinary() {
19150
21823
  if (hasRequiredBinary) return binary$1;
19151
21824
  hasRequiredBinary = 1;
19152
- var node_buffer = require$$0$8;
21825
+ var node_buffer = require$$0$g;
19153
21826
  var Scalar = requireScalar();
19154
21827
  var stringifyString = requireStringifyString();
19155
21828
  const binary = {
@@ -21729,7 +24402,7 @@ var hasRequiredComposer;
21729
24402
  function requireComposer() {
21730
24403
  if (hasRequiredComposer) return composer;
21731
24404
  hasRequiredComposer = 1;
21732
- var node_process = require$$0$7;
24405
+ var node_process = require$$0$f;
21733
24406
  var directives = requireDirectives();
21734
24407
  var Document = requireDocument();
21735
24408
  var errors = requireErrors$6();
@@ -23211,7 +25884,7 @@ var hasRequiredParser$1;
23211
25884
  function requireParser$1() {
23212
25885
  if (hasRequiredParser$1) return parser$2;
23213
25886
  hasRequiredParser$1 = 1;
23214
- var node_process = require$$0$7;
25887
+ var node_process = require$$0$f;
23215
25888
  var cst = requireCst();
23216
25889
  var lexer = requireLexer();
23217
25890
  function includesToken(list, type) {
@@ -25697,7 +28370,7 @@ var hasRequiredFillRange;
25697
28370
  function requireFillRange() {
25698
28371
  if (hasRequiredFillRange) return fillRange;
25699
28372
  hasRequiredFillRange = 1;
25700
- const util = require$$0$9;
28373
+ const util = require$$0$8;
25701
28374
  const toRegexRange = requireToRegexRange();
25702
28375
  const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
25703
28376
  const transform = toNumber => {
@@ -26709,7 +29382,7 @@ var hasRequiredConstants$9;
26709
29382
  function requireConstants$9() {
26710
29383
  if (hasRequiredConstants$9) return constants$9;
26711
29384
  hasRequiredConstants$9 = 1;
26712
- const path = require$$0$a;
29385
+ const path = require$$0$c;
26713
29386
  const WIN_SLASH = '\\\\/';
26714
29387
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
26715
29388
 
@@ -26950,7 +29623,7 @@ function requireUtils$6() {
26950
29623
  hasRequiredUtils$6 = 1;
26951
29624
  (function (exports) {
26952
29625
 
26953
- const path = require$$0$a;
29626
+ const path = require$$0$c;
26954
29627
  const win32 = process.platform === 'win32';
26955
29628
  const {
26956
29629
  REGEX_BACKSLASH,
@@ -28470,7 +31143,7 @@ var hasRequiredPicomatch$3;
28470
31143
  function requirePicomatch$3() {
28471
31144
  if (hasRequiredPicomatch$3) return picomatch_1$2;
28472
31145
  hasRequiredPicomatch$3 = 1;
28473
- const path = require$$0$a;
31146
+ const path = require$$0$c;
28474
31147
  const scan = requireScan$2();
28475
31148
  const parse = requireParse$6();
28476
31149
  const utils = requireUtils$6();
@@ -28837,7 +31510,7 @@ var hasRequiredMicromatch;
28837
31510
  function requireMicromatch() {
28838
31511
  if (hasRequiredMicromatch) return micromatch_1;
28839
31512
  hasRequiredMicromatch = 1;
28840
- const util = require$$0$9;
31513
+ const util = require$$0$8;
28841
31514
  const braces = requireBraces();
28842
31515
  const picomatch = requirePicomatch$2();
28843
31516
  const utils = requireUtils$6();
@@ -29329,7 +32002,7 @@ function requireUtils$5() {
29329
32002
  value: true
29330
32003
  });
29331
32004
  utils$5.normalizePath = utils$5.isRootDirectory = utils$5.convertSlashes = utils$5.cleanPath = void 0;
29332
- const path_1 = require$$0$a;
32005
+ const path_1 = require$$0$c;
29333
32006
  function cleanPath(path) {
29334
32007
  let normalized = (0, path_1.normalize)(path);
29335
32008
  // we have to remove the last path separator
@@ -29374,7 +32047,7 @@ function requireJoinPath() {
29374
32047
  value: true
29375
32048
  });
29376
32049
  joinPath.build = joinPath.joinDirectoryPath = joinPath.joinPathWithBasePath = void 0;
29377
- const path_1 = require$$0$a;
32050
+ const path_1 = require$$0$c;
29378
32051
  const utils_1 = requireUtils$5();
29379
32052
  function joinPathWithBasePath(filename, directoryPath) {
29380
32053
  return directoryPath + filename;
@@ -29556,8 +32229,8 @@ function requireResolveSymlink() {
29556
32229
  value: true
29557
32230
  });
29558
32231
  resolveSymlink.build = void 0;
29559
- const fs_1 = __importDefault(require$$0$b);
29560
- const path_1 = require$$0$a;
32232
+ const fs_1 = __importDefault(require$$0$9);
32233
+ const path_1 = require$$0$c;
29561
32234
  const resolveSymlinksAsync = function (path, state, callback) {
29562
32235
  const {
29563
32236
  queue,
@@ -29684,7 +32357,7 @@ function requireWalkDirectory() {
29684
32357
  value: true
29685
32358
  });
29686
32359
  walkDirectory.build = void 0;
29687
- const fs_1 = __importDefault(require$$0$b);
32360
+ const fs_1 = __importDefault(require$$0$9);
29688
32361
  const readdirOpts = {
29689
32362
  withFileTypes: true
29690
32363
  };
@@ -29827,7 +32500,7 @@ function requireWalker$3() {
29827
32500
  value: true
29828
32501
  });
29829
32502
  walker$3.Walker = void 0;
29830
- const path_1 = require$$0$a;
32503
+ const path_1 = require$$0$c;
29831
32504
  const utils_1 = requireUtils$5();
29832
32505
  const joinPath = __importStar(requireJoinPath());
29833
32506
  const pushDirectory = __importStar(requirePushDirectory());
@@ -32162,7 +34835,7 @@ function requireBuilder() {
32162
34835
  value: true
32163
34836
  });
32164
34837
  builder.Builder = void 0;
32165
- const path_1 = require$$0$a;
34838
+ const path_1 = require$$0$c;
32166
34839
  const api_builder_1 = requireApiBuilder();
32167
34840
  var pm = null;
32168
34841
  /* c8 ignore next 6 */
@@ -32387,7 +35060,7 @@ function requireDist$f() {
32387
35060
  }) : target, mod));
32388
35061
 
32389
35062
  //#endregion
32390
- const path = __toESM(require$$0$a);
35063
+ const path = __toESM(require$$0$c);
32391
35064
  const fdir = __toESM(requireDist$g());
32392
35065
  const picomatch = __toESM(/*@__PURE__*/requirePicomatch());
32393
35066
 
@@ -32645,7 +35318,7 @@ var hasRequiredYoctocolorsCjs;
32645
35318
  function requireYoctocolorsCjs() {
32646
35319
  if (hasRequiredYoctocolorsCjs) return yoctocolorsCjs;
32647
35320
  hasRequiredYoctocolorsCjs = 1;
32648
- const tty = require$$0$c;
35321
+ const tty = require$$0$h;
32649
35322
 
32650
35323
  // eslint-disable-next-line no-warning-comments
32651
35324
  // TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
@@ -32735,7 +35408,7 @@ function requireHpagent() {
32735
35408
  if (hasRequiredHpagent) return hpagent;
32736
35409
  hasRequiredHpagent = 1;
32737
35410
  const https = require$$2$3;
32738
- const http = require$$1$7;
35411
+ const http = require$$1$8;
32739
35412
  const {
32740
35413
  URL
32741
35414
  } = require$$0$d;
@@ -32879,7 +35552,7 @@ function requireIsInteractive () {
32879
35552
  if (_process === undefined) {
32880
35553
  // Use non-'node:' prefixed require to avoid Webpack errors.
32881
35554
  // eslint-disable-next-line n/prefer-node-protocol
32882
- _process = require$$0$7;
35555
+ _process = require$$0$f;
32883
35556
  }
32884
35557
  return _process
32885
35558
  }
@@ -32899,7 +35572,7 @@ var isInteractiveExports = /*@__PURE__*/ requireIsInteractive();
32899
35572
  var dist$e = {};
32900
35573
 
32901
35574
  var name$2 = "@socketsecurity/sdk";
32902
- var version$5 = "1.4.48";
35575
+ var version$5 = "1.4.50";
32903
35576
  var license = "MIT";
32904
35577
  var description = "SDK for the Socket API client";
32905
35578
  var author = {
@@ -32982,21 +35655,21 @@ var scripts = {
32982
35655
  "update:deps": "npx --yes npm-check-updates"
32983
35656
  };
32984
35657
  var dependencies = {
32985
- "@socketsecurity/registry": "1.0.209"
35658
+ "@socketsecurity/registry": "1.0.215"
32986
35659
  };
32987
35660
  var devDependencies = {
32988
- "@biomejs/biome": "2.0.4",
35661
+ "@biomejs/biome": "2.0.5",
32989
35662
  "@dotenvx/dotenvx": "1.45.1",
32990
- "@eslint/compat": "1.3.0",
35663
+ "@eslint/compat": "1.3.1",
32991
35664
  "@eslint/js": "9.29.0",
32992
- "@types/node": "24.0.3",
32993
- "@typescript-eslint/parser": "8.34.1",
35665
+ "@types/node": "24.0.4",
35666
+ "@typescript-eslint/parser": "8.35.0",
32994
35667
  "@vitest/coverage-v8": "3.2.4",
32995
35668
  "del-cli": "6.0.0",
32996
35669
  eslint: "9.29.0",
32997
- "eslint-import-resolver-typescript": "4.4.3",
32998
- "eslint-plugin-import-x": "4.15.2",
32999
- "eslint-plugin-jsdoc": "51.2.1",
35670
+ "eslint-import-resolver-typescript": "4.4.4",
35671
+ "eslint-plugin-import-x": "4.16.0",
35672
+ "eslint-plugin-jsdoc": "51.2.3",
33000
35673
  "eslint-plugin-n": "17.20.0",
33001
35674
  "eslint-plugin-sort-destructure-keys": "2.0.0",
33002
35675
  "eslint-plugin-unicorn": "56.0.1",
@@ -33010,7 +35683,7 @@ var devDependencies = {
33010
35683
  oxlint: "1.3.0",
33011
35684
  "type-coverage": "2.29.7",
33012
35685
  typescript: "~5.8.3",
33013
- "typescript-eslint": "8.34.1",
35686
+ "typescript-eslint": "8.35.0",
33014
35687
  vitest: "3.2.4"
33015
35688
  };
33016
35689
  var overrides = {
@@ -33058,7 +35731,7 @@ function requireDist$e () {
33058
35731
  Object.defineProperty(dist$e, "__esModule", { value: true });
33059
35732
  dist$e.SocketSdk = void 0;
33060
35733
  dist$e.createUserAgentFromPkgJson = createUserAgentFromPkgJson;
33061
- const node_events_1 = __importDefault(require$$0$e);
35734
+ const node_events_1 = __importDefault(require$$0$i);
33062
35735
  const node_fs_1 = fs$1;
33063
35736
  const node_http_1 = __importDefault(require$$2$4);
33064
35737
  const node_https_1 = __importDefault(require$$3$3);
@@ -38728,8 +41401,8 @@ function requirePosix() {
38728
41401
  value: true
38729
41402
  });
38730
41403
  posix.sync = posix.isexe = void 0;
38731
- const fs_1 = require$$0$b;
38732
- const promises_1 = require$$0$f;
41404
+ const fs_1 = require$$0$9;
41405
+ const promises_1 = require$$0$j;
38733
41406
  /**
38734
41407
  * Determine whether a path is executable according to the mode and
38735
41408
  * current (or specified) user and group IDs.
@@ -38801,8 +41474,8 @@ function requireWin32() {
38801
41474
  value: true
38802
41475
  });
38803
41476
  win32.sync = win32.isexe = void 0;
38804
- const fs_1 = require$$0$b;
38805
- const promises_1 = require$$0$f;
41477
+ const fs_1 = require$$0$9;
41478
+ const promises_1 = require$$0$j;
38806
41479
  /**
38807
41480
  * Determine whether a path is executable based on the file extension
38808
41481
  * and PATHEXT environment variable (or specified pathExt option)
@@ -38948,7 +41621,7 @@ function requireLib$H() {
38948
41621
  delimiter,
38949
41622
  sep,
38950
41623
  posix
38951
- } = require$$0$a;
41624
+ } = require$$0$c;
38952
41625
  const isWindows = process.platform === 'win32';
38953
41626
 
38954
41627
  // used to check for slashed in commands passed in. always checks for the posix
@@ -39203,8 +41876,8 @@ var hasRequiredSupportsColor$2;
39203
41876
  function requireSupportsColor$2() {
39204
41877
  if (hasRequiredSupportsColor$2) return supportsColor_1$1;
39205
41878
  hasRequiredSupportsColor$2 = 1;
39206
- const os = require$$0$g;
39207
- const tty = require$$1$8;
41879
+ const os = require$$0$e;
41880
+ const tty = require$$1$9;
39208
41881
  const hasFlag = requireHasFlag$1();
39209
41882
  const {
39210
41883
  env
@@ -39442,7 +42115,7 @@ function requireCommonjs$h() {
39442
42115
  value: true
39443
42116
  });
39444
42117
  commonjs$h.walkUp = void 0;
39445
- const path_1 = require$$0$a;
42118
+ const path_1 = require$$0$c;
39446
42119
  const walkUp = function* (path) {
39447
42120
  for (path = (0, path_1.resolve)(path); path;) {
39448
42121
  yield path;
@@ -39458,250 +42131,6 @@ function requireCommonjs$h() {
39458
42131
  return commonjs$h;
39459
42132
  }
39460
42133
 
39461
- var ini;
39462
- var hasRequiredIni;
39463
- function requireIni() {
39464
- if (hasRequiredIni) return ini;
39465
- hasRequiredIni = 1;
39466
- const {
39467
- hasOwnProperty
39468
- } = Object.prototype;
39469
- const encode = (obj, opt = {}) => {
39470
- if (typeof opt === 'string') {
39471
- opt = {
39472
- section: opt
39473
- };
39474
- }
39475
- opt.align = opt.align === true;
39476
- opt.newline = opt.newline === true;
39477
- opt.sort = opt.sort === true;
39478
- opt.whitespace = opt.whitespace === true || opt.align === true;
39479
- // The `typeof` check is required because accessing the `process` directly fails on browsers.
39480
- /* istanbul ignore next */
39481
- opt.platform = opt.platform || typeof process !== 'undefined' && process.platform;
39482
- opt.bracketedArray = opt.bracketedArray !== false;
39483
-
39484
- /* istanbul ignore next */
39485
- const eol = opt.platform === 'win32' ? '\r\n' : '\n';
39486
- const separator = opt.whitespace ? ' = ' : '=';
39487
- const children = [];
39488
- const keys = opt.sort ? Object.keys(obj).sort() : Object.keys(obj);
39489
- let padToChars = 0;
39490
- // If aligning on the separator, then padToChars is determined as follows:
39491
- // 1. Get the keys
39492
- // 2. Exclude keys pointing to objects unless the value is null or an array
39493
- // 3. Add `[]` to array keys
39494
- // 4. Ensure non empty set of keys
39495
- // 5. Reduce the set to the longest `safe` key
39496
- // 6. Get the `safe` length
39497
- if (opt.align) {
39498
- padToChars = safe(keys.filter(k => obj[k] === null || Array.isArray(obj[k]) || typeof obj[k] !== 'object').map(k => Array.isArray(obj[k]) ? `${k}[]` : k).concat(['']).reduce((a, b) => safe(a).length >= safe(b).length ? a : b)).length;
39499
- }
39500
- let out = '';
39501
- const arraySuffix = opt.bracketedArray ? '[]' : '';
39502
- for (const k of keys) {
39503
- const val = obj[k];
39504
- if (val && Array.isArray(val)) {
39505
- for (const item of val) {
39506
- out += safe(`${k}${arraySuffix}`).padEnd(padToChars, ' ') + separator + safe(item) + eol;
39507
- }
39508
- } else if (val && typeof val === 'object') {
39509
- children.push(k);
39510
- } else {
39511
- out += safe(k).padEnd(padToChars, ' ') + separator + safe(val) + eol;
39512
- }
39513
- }
39514
- if (opt.section && out.length) {
39515
- out = '[' + safe(opt.section) + ']' + (opt.newline ? eol + eol : eol) + out;
39516
- }
39517
- for (const k of children) {
39518
- const nk = splitSections(k, '.').join('\\.');
39519
- const section = (opt.section ? opt.section + '.' : '') + nk;
39520
- const child = encode(obj[k], {
39521
- ...opt,
39522
- section
39523
- });
39524
- if (out.length && child.length) {
39525
- out += eol;
39526
- }
39527
- out += child;
39528
- }
39529
- return out;
39530
- };
39531
- function splitSections(str, separator) {
39532
- var lastMatchIndex = 0;
39533
- var lastSeparatorIndex = 0;
39534
- var nextIndex = 0;
39535
- var sections = [];
39536
- do {
39537
- nextIndex = str.indexOf(separator, lastMatchIndex);
39538
- if (nextIndex !== -1) {
39539
- lastMatchIndex = nextIndex + separator.length;
39540
- if (nextIndex > 0 && str[nextIndex - 1] === '\\') {
39541
- continue;
39542
- }
39543
- sections.push(str.slice(lastSeparatorIndex, nextIndex));
39544
- lastSeparatorIndex = nextIndex + separator.length;
39545
- }
39546
- } while (nextIndex !== -1);
39547
- sections.push(str.slice(lastSeparatorIndex));
39548
- return sections;
39549
- }
39550
- const decode = (str, opt = {}) => {
39551
- opt.bracketedArray = opt.bracketedArray !== false;
39552
- const out = Object.create(null);
39553
- let p = out;
39554
- let section = null;
39555
- // section |key = value
39556
- const re = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
39557
- const lines = str.split(/[\r\n]+/g);
39558
- const duplicates = {};
39559
- for (const line of lines) {
39560
- if (!line || line.match(/^\s*[;#]/) || line.match(/^\s*$/)) {
39561
- continue;
39562
- }
39563
- const match = line.match(re);
39564
- if (!match) {
39565
- continue;
39566
- }
39567
- if (match[1] !== undefined) {
39568
- section = unsafe(match[1]);
39569
- if (section === '__proto__') {
39570
- // not allowed
39571
- // keep parsing the section, but don't attach it.
39572
- p = Object.create(null);
39573
- continue;
39574
- }
39575
- p = out[section] = out[section] || Object.create(null);
39576
- continue;
39577
- }
39578
- const keyRaw = unsafe(match[2]);
39579
- let isArray;
39580
- if (opt.bracketedArray) {
39581
- isArray = keyRaw.length > 2 && keyRaw.slice(-2) === '[]';
39582
- } else {
39583
- duplicates[keyRaw] = (duplicates?.[keyRaw] || 0) + 1;
39584
- isArray = duplicates[keyRaw] > 1;
39585
- }
39586
- const key = isArray && keyRaw.endsWith('[]') ? keyRaw.slice(0, -2) : keyRaw;
39587
- if (key === '__proto__') {
39588
- continue;
39589
- }
39590
- const valueRaw = match[3] ? unsafe(match[4]) : true;
39591
- const value = valueRaw === 'true' || valueRaw === 'false' || valueRaw === 'null' ? JSON.parse(valueRaw) : valueRaw;
39592
-
39593
- // Convert keys with '[]' suffix to an array
39594
- if (isArray) {
39595
- if (!hasOwnProperty.call(p, key)) {
39596
- p[key] = [];
39597
- } else if (!Array.isArray(p[key])) {
39598
- p[key] = [p[key]];
39599
- }
39600
- }
39601
-
39602
- // safeguard against resetting a previously defined
39603
- // array by accidentally forgetting the brackets
39604
- if (Array.isArray(p[key])) {
39605
- p[key].push(value);
39606
- } else {
39607
- p[key] = value;
39608
- }
39609
- }
39610
-
39611
- // {a:{y:1},"a.b":{x:2}} --> {a:{y:1,b:{x:2}}}
39612
- // use a filter to return the keys that have to be deleted.
39613
- const remove = [];
39614
- for (const k of Object.keys(out)) {
39615
- if (!hasOwnProperty.call(out, k) || typeof out[k] !== 'object' || Array.isArray(out[k])) {
39616
- continue;
39617
- }
39618
-
39619
- // see if the parent section is also an object.
39620
- // if so, add it to that, and mark this one for deletion
39621
- const parts = splitSections(k, '.');
39622
- p = out;
39623
- const l = parts.pop();
39624
- const nl = l.replace(/\\\./g, '.');
39625
- for (const part of parts) {
39626
- if (part === '__proto__') {
39627
- continue;
39628
- }
39629
- if (!hasOwnProperty.call(p, part) || typeof p[part] !== 'object') {
39630
- p[part] = Object.create(null);
39631
- }
39632
- p = p[part];
39633
- }
39634
- if (p === out && nl === l) {
39635
- continue;
39636
- }
39637
- p[nl] = out[k];
39638
- remove.push(k);
39639
- }
39640
- for (const del of remove) {
39641
- delete out[del];
39642
- }
39643
- return out;
39644
- };
39645
- const isQuoted = val => {
39646
- return val.startsWith('"') && val.endsWith('"') || val.startsWith("'") && val.endsWith("'");
39647
- };
39648
- const safe = val => {
39649
- if (typeof val !== 'string' || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim()) {
39650
- return JSON.stringify(val);
39651
- }
39652
- return val.split(';').join('\\;').split('#').join('\\#');
39653
- };
39654
- const unsafe = val => {
39655
- val = (val || '').trim();
39656
- if (isQuoted(val)) {
39657
- // remove the single quotes before calling JSON.parse
39658
- if (val.charAt(0) === "'") {
39659
- val = val.slice(1, -1);
39660
- }
39661
- try {
39662
- val = JSON.parse(val);
39663
- } catch {
39664
- // ignore errors
39665
- }
39666
- } else {
39667
- // walk the val to find the first not-escaped ; character
39668
- let esc = false;
39669
- let unesc = '';
39670
- for (let i = 0, l = val.length; i < l; i++) {
39671
- const c = val.charAt(i);
39672
- if (esc) {
39673
- if ('\\;#'.indexOf(c) !== -1) {
39674
- unesc += c;
39675
- } else {
39676
- unesc += '\\' + c;
39677
- }
39678
- esc = false;
39679
- } else if (';#'.indexOf(c) !== -1) {
39680
- break;
39681
- } else if (c === '\\') {
39682
- esc = true;
39683
- } else {
39684
- unesc += c;
39685
- }
39686
- }
39687
- if (esc) {
39688
- unesc += '\\';
39689
- }
39690
- return unesc.trim();
39691
- }
39692
- return val;
39693
- };
39694
- ini = {
39695
- parse: decode,
39696
- decode,
39697
- stringify: encode,
39698
- encode,
39699
- safe,
39700
- unsafe
39701
- };
39702
- return ini;
39703
- }
39704
-
39705
42134
  var nopt = {exports: {}};
39706
42135
 
39707
42136
  var lib$G;
@@ -39780,9 +42209,9 @@ function requireTypeDefs$1() {
39780
42209
  if (hasRequiredTypeDefs$1) return typeDefs$1;
39781
42210
  hasRequiredTypeDefs$1 = 1;
39782
42211
  const url = require$$0$d;
39783
- const path = require$$0$a;
39784
- const Stream = require$$1$9.Stream;
39785
- const os = require$$0$g;
42212
+ const path = require$$0$c;
42213
+ const Stream = require$$1$7.Stream;
42214
+ const os = require$$0$e;
39786
42215
  const debug = requireDebug$2();
39787
42216
  function validateString(data, k, val) {
39788
42217
  data[k] = String(val);
@@ -47654,7 +50083,7 @@ function requireCommonjs$d() {
47654
50083
  stdout: null,
47655
50084
  stderr: null
47656
50085
  };
47657
- const node_events_1 = require$$0$e;
50086
+ const node_events_1 = require$$0$i;
47658
50087
  const node_stream_1 = __importDefault(require$$1$a);
47659
50088
  const node_string_decoder_1 = require$$2$5;
47660
50089
  /**
@@ -48606,7 +51035,7 @@ function requireCommonjs$c() {
48606
51035
  const lru_cache_1 = /*@__PURE__*/requireCommonjs$e();
48607
51036
  const node_path_1 = path$2;
48608
51037
  const node_url_1 = require$$0$6;
48609
- const fs_1 = require$$0$b;
51038
+ const fs_1 = require$$0$9;
48610
51039
  const actualFS = __importStar(fs$1);
48611
51040
  const realpathSync = fs_1.realpathSync.native;
48612
51041
  // TODO: test perf of fs/promises realpath vs realpathCB,
@@ -51943,8 +54372,8 @@ function requireLib$C() {
51943
54372
  hasRequiredLib$C = 1;
51944
54373
  const {
51945
54374
  spawn
51946
- } = require$$0$h;
51947
- const os = require$$0$g;
54375
+ } = require$$0$k;
54376
+ const os = require$$0$e;
51948
54377
  const which = requireLib$H();
51949
54378
  const escape = require_escape();
51950
54379
 
@@ -56108,7 +58537,7 @@ function requireLib$B() {
56108
58537
  hasRequiredLib$B = 1;
56109
58538
  const {
56110
58539
  builtinModules: builtins
56111
- } = require$$0$i;
58540
+ } = require$$0$l;
56112
58541
  var scopedPackagePattern = new RegExp('^(?:@([^/]+?)[/])?([^/]+?)$');
56113
58542
  var blacklist = ['node_modules', 'favicon.ico'];
56114
58543
  function validate(name) {
@@ -56954,7 +59383,7 @@ function requireLib$z() {
56954
59383
  const {
56955
59384
  join,
56956
59385
  basename
56957
- } = require$$0$a;
59386
+ } = require$$0$c;
56958
59387
  const normalize = pkg => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === 'string' ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === 'object' ? normalizeObject(pkg) : removeBin(pkg);
56959
59388
  const normalizeString = pkg => {
56960
59389
  if (!pkg.name) {
@@ -57230,14 +59659,14 @@ function requireClone() {
57230
59659
  const {
57231
59660
  parse
57232
59661
  } = require$$0$d; // eslint-disable-line node/no-deprecated-api
57233
- const path = require$$0$a;
59662
+ const path = require$$0$c;
57234
59663
  const getRevs = requireRevs();
57235
59664
  const spawn = requireSpawn();
57236
59665
  const {
57237
59666
  isWindows
57238
59667
  } = requireUtils$3();
57239
59668
  const pickManifest = requireLib$y();
57240
- const fs = require$$0$f;
59669
+ const fs = require$$0$j;
57241
59670
  clone_1 = (repo, ref = 'HEAD', target = null, opts = {}) => getRevs(repo, opts).then(revs => clone(repo, revs, ref, resolveRef(revs, ref, opts), target || defaultTarget(repo, opts.cwd), opts));
57242
59671
  const maybeShallow = (repo, opts) => {
57243
59672
  if (opts.gitShallow === false || opts.gitShallow) {
@@ -57354,7 +59783,7 @@ function requireIs() {
57354
59783
  // not an airtight indicator, but a good gut-check to even bother trying
57355
59784
  const {
57356
59785
  stat
57357
- } = require$$0$f;
59786
+ } = require$$0$j;
57358
59787
  is = ({
57359
59788
  cwd = process.cwd()
57360
59789
  } = {}) => stat(cwd + '/.git').then(() => true, () => false);
@@ -57369,7 +59798,7 @@ function requireFind() {
57369
59798
  const is = requireIs();
57370
59799
  const {
57371
59800
  dirname
57372
- } = require$$0$a;
59801
+ } = require$$0$c;
57373
59802
  find = async ({
57374
59803
  cwd = process.cwd(),
57375
59804
  root
@@ -59642,7 +62071,7 @@ function requireReadPackage() {
59642
62071
 
59643
62072
  const {
59644
62073
  readFile
59645
- } = require$$0$f;
62074
+ } = require$$0$j;
59646
62075
  const parseJSON = requireLib$E();
59647
62076
  async function read(filename) {
59648
62077
  try {
@@ -60108,7 +62537,7 @@ function requireLib$v() {
60108
62537
  const {
60109
62538
  basename,
60110
62539
  dirname
60111
- } = require$$0$a;
62540
+ } = require$$0$c;
60112
62541
  const getName = (parent, base) => parent.charAt(0) === '@' ? `${parent}/${base}` : base;
60113
62542
  lib$v = dir => dir ? getName(basename(dirname(dir)), basename(dir)) : false;
60114
62543
  return lib$v;
@@ -61676,7 +64105,7 @@ function requireCommonjs$8() {
61676
64105
  const lru_cache_1 = /*@__PURE__*/requireCommonjs$9();
61677
64106
  const node_path_1 = path$2;
61678
64107
  const node_url_1 = require$$0$6;
61679
- const fs_1 = require$$0$b;
64108
+ const fs_1 = require$$0$9;
61680
64109
  const actualFS = __importStar(fs$1);
61681
64110
  const realpathSync = fs_1.realpathSync.native;
61682
64111
  // TODO: test perf of fs/promises realpath vs realpathCB,
@@ -64945,7 +67374,7 @@ var hasRequiredLib$u;
64945
67374
  function requireLib$u() {
64946
67375
  if (hasRequiredLib$u) return lib$u;
64947
67376
  hasRequiredLib$u = 1;
64948
- const path = require$$0$a;
67377
+ const path = require$$0$c;
64949
67378
  const getName = requireLib$v();
64950
67379
  const {
64951
67380
  minimatch
@@ -68052,7 +70481,7 @@ function requireDefinitions$1() {
68052
70481
  flatten
68053
70482
  }),
68054
70483
  'node-gyp': new Definition('node-gyp', {
68055
- default: require.resolve('../external/node-gyp/bin/node-gyp.js'),
70484
+ default: require('./constants.js').npmNmNodeGypPath,
68056
70485
  defaultDescription: `
68057
70486
  The path to the node-gyp bin that ships with npm
68058
70487
  `,
@@ -70029,7 +72458,7 @@ function requireLib$s() {
70029
72458
  readFile,
70030
72459
  lstat,
70031
72460
  readdir
70032
- } = require$$0$f;
72461
+ } = require$$0$j;
70033
72462
  const parse = requireLib$E();
70034
72463
  const normalizePackageBin = requireLib$z();
70035
72464
  const {
@@ -70037,7 +72466,7 @@ function requireLib$s() {
70037
72466
  dirname,
70038
72467
  join,
70039
72468
  relative
70040
- } = require$$0$a;
72469
+ } = require$$0$c;
70041
72470
  const rpj = path => readFile(path, 'utf8').then(data => readBinDir(path, normalize(stripUnderscores(parse(data))))).catch(er => {
70042
72471
  er.path = path;
70043
72472
  throw er;
@@ -70186,7 +72615,7 @@ function requireGetNodeModules() {
70186
72615
  const {
70187
72616
  dirname,
70188
72617
  basename
70189
- } = require$$0$a;
72618
+ } = require$$0$c;
70190
72619
  // this gets called a lot and can't change, so memoize it
70191
72620
  const memo = new Map();
70192
72621
  getNodeModules = path => {
@@ -70208,7 +72637,7 @@ function requireGetPrefix() {
70208
72637
  hasRequiredGetPrefix = 1;
70209
72638
  const {
70210
72639
  dirname
70211
- } = require$$0$a;
72640
+ } = require$$0$c;
70212
72641
  const getNodeModules = requireGetNodeModules();
70213
72642
  getPrefix = path => dirname(getNodeModules(path));
70214
72643
  return getPrefix;
@@ -70224,7 +72653,7 @@ function requireBinTarget() {
70224
72653
  const getNodeModules = requireGetNodeModules();
70225
72654
  const {
70226
72655
  dirname
70227
- } = require$$0$a;
72656
+ } = require$$0$c;
70228
72657
  binTarget = ({
70229
72658
  top,
70230
72659
  path
@@ -70308,11 +72737,11 @@ function requireLib$r() {
70308
72737
  stat,
70309
72738
  unlink,
70310
72739
  writeFile
70311
- } = require$$0$f;
72740
+ } = require$$0$j;
70312
72741
  const {
70313
72742
  dirname,
70314
72743
  relative
70315
- } = require$$0$a;
72744
+ } = require$$0$c;
70316
72745
  const toBatchSyntax = requireToBatchSyntax();
70317
72746
  // linting disabled because this regex is really long
70318
72747
  // eslint-disable-next-line max-len
@@ -70456,10 +72885,10 @@ var hasRequiredLib$q;
70456
72885
  function requireLib$q() {
70457
72886
  if (hasRequiredLib$q) return lib$q;
70458
72887
  hasRequiredLib$q = 1;
70459
- const fs = require$$0$b;
72888
+ const fs = require$$0$9;
70460
72889
  const {
70461
72890
  promisify
70462
- } = require$$0$9;
72891
+ } = require$$0$8;
70463
72892
  const {
70464
72893
  readFileSync
70465
72894
  } = fs;
@@ -71007,15 +73436,15 @@ function requireLib$p() {
71007
73436
  lib$p.exports.sync = writeFileSync;
71008
73437
  lib$p.exports._getTmpname = getTmpname; // for testing
71009
73438
  lib$p.exports._cleanupOnExit = cleanupOnExit;
71010
- const fs = require$$0$b;
73439
+ const fs = require$$0$9;
71011
73440
  const MurmurHash3 = requireImurmurhash();
71012
73441
  const {
71013
73442
  onExit
71014
73443
  } = requireCjs();
71015
- const path = require$$0$a;
73444
+ const path = require$$0$c;
71016
73445
  const {
71017
73446
  promisify
71018
- } = require$$0$9;
73447
+ } = require$$0$8;
71019
73448
  const activeFiles = {};
71020
73449
 
71021
73450
  // if we run inside of a worker_thread, `process.pid` is not unique
@@ -71261,7 +73690,7 @@ function requireFixBin() {
71261
73690
  chmod,
71262
73691
  open,
71263
73692
  readFile
71264
- } = require$$0$f;
73693
+ } = require$$0$j;
71265
73694
  const execMode = 0o777 & ~process.umask();
71266
73695
  const writeFileAtomic = requireLib$p();
71267
73696
  const isWindowsHashBang = buf => buf[0] === '#'.charCodeAt(0) && buf[1] === '!'.charCodeAt(0) && /^#![^\n]+\r\n/.test(buf.toString());
@@ -71291,10 +73720,10 @@ function requireShimBin() {
71291
73720
  const {
71292
73721
  resolve,
71293
73722
  dirname
71294
- } = require$$0$a;
73723
+ } = require$$0$c;
71295
73724
  const {
71296
73725
  lstat
71297
- } = require$$0$f;
73726
+ } = require$$0$j;
71298
73727
  const throwNonEnoent = er => {
71299
73728
  if (er.code !== 'ENOENT') {
71300
73729
  throw er;
@@ -71394,14 +73823,14 @@ function requireLinkGently() {
71394
73823
  const {
71395
73824
  resolve,
71396
73825
  dirname
71397
- } = require$$0$a;
73826
+ } = require$$0$c;
71398
73827
  const {
71399
73828
  lstat,
71400
73829
  mkdir,
71401
73830
  readlink,
71402
73831
  rm,
71403
73832
  symlink
71404
- } = require$$0$f;
73833
+ } = require$$0$j;
71405
73834
  const {
71406
73835
  log
71407
73836
  } = requireLib$F();
@@ -71532,7 +73961,7 @@ function requireLinkBins() {
71532
73961
  dirname,
71533
73962
  resolve,
71534
73963
  relative
71535
- } = require$$0$a;
73964
+ } = require$$0$c;
71536
73965
  const linkBin = isWindows ? requireShimBin() : requireLinkBin();
71537
73966
  const normalize = requireLib$z();
71538
73967
  const linkBins = ({
@@ -71577,7 +74006,7 @@ function requireManTarget() {
71577
74006
  const getPrefix = requireGetPrefix();
71578
74007
  const {
71579
74008
  dirname
71580
- } = require$$0$a;
74009
+ } = require$$0$c;
71581
74010
  manTarget = ({
71582
74011
  top,
71583
74012
  path
@@ -71596,7 +74025,7 @@ function requireLinkMans() {
71596
74025
  join,
71597
74026
  resolve,
71598
74027
  basename
71599
- } = require$$0$a;
74028
+ } = require$$0$c;
71600
74029
  const linkGently = requireLinkGently();
71601
74030
  const manTarget = requireManTarget();
71602
74031
  const linkMans = async ({
@@ -71669,11 +74098,11 @@ function requireCheckBin() {
71669
74098
  const {
71670
74099
  resolve,
71671
74100
  dirname
71672
- } = require$$0$a;
74101
+ } = require$$0$c;
71673
74102
  const readCmdShim = requireLib$q();
71674
74103
  const {
71675
74104
  readlink
71676
- } = require$$0$f;
74105
+ } = require$$0$j;
71677
74106
  const checkBin = async ({
71678
74107
  bin,
71679
74108
  path,
@@ -71813,7 +74242,7 @@ function requireGetPaths() {
71813
74242
  resolve,
71814
74243
  basename,
71815
74244
  extname
71816
- } = require$$0$a;
74245
+ } = require$$0$c;
71817
74246
  const isWindows = requireIsWindows();
71818
74247
  getPaths = ({
71819
74248
  path,
@@ -74015,7 +76444,7 @@ function requireNode$4() {
74015
76444
  * For Node.js, simply re-export the core `util.deprecate` function.
74016
76445
  */
74017
76446
 
74018
- node$4 = require$$0$9.deprecate;
76447
+ node$4 = require$$0$8.deprecate;
74019
76448
  return node$4;
74020
76449
  }
74021
76450
 
@@ -76835,8 +79264,8 @@ function requireMinipass$5() {
76835
79264
  stdout: null,
76836
79265
  stderr: null
76837
79266
  };
76838
- const EE = require$$0$j;
76839
- const Stream = require$$1$9;
79267
+ const EE = require$$0$b;
79268
+ const Stream = require$$1$7;
76840
79269
  const SD = require$$2$7.StringDecoder;
76841
79270
  const EOF = Symbol('EOF');
76842
79271
  const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
@@ -77331,7 +79760,7 @@ function requireMinipassPipeline() {
77331
79760
  if (hasRequiredMinipassPipeline) return minipassPipeline;
77332
79761
  hasRequiredMinipassPipeline = 1;
77333
79762
  const Minipass = requireMinipass$5();
77334
- const EE = require$$0$j;
79763
+ const EE = require$$0$b;
77335
79764
  const isStream = s => s && s instanceof EE && (typeof s.pipe === 'function' ||
77336
79765
  // readable
77337
79766
  typeof s.write === 'function' && typeof s.end === 'function' // writable
@@ -77447,7 +79876,7 @@ var hasRequiredLib$m;
77447
79876
  function requireLib$m() {
77448
79877
  if (hasRequiredLib$m) return lib$l;
77449
79878
  hasRequiredLib$m = 1;
77450
- const crypto = require$$0$k;
79879
+ const crypto = require$$0$m;
77451
79880
  const {
77452
79881
  Minipass
77453
79882
  } = requireCommonjs$d();
@@ -77958,7 +80387,7 @@ var hasRequiredLib$k;
77958
80387
  function requireLib$k() {
77959
80388
  if (hasRequiredLib$k) return lib$j;
77960
80389
  hasRequiredLib$k = 1;
77961
- var path = require$$0$a;
80390
+ var path = require$$0$c;
77962
80391
  var uniqueSlug = requireLib$l();
77963
80392
  lib$j = function (filepath, prefix, uniq) {
77964
80393
  return path.join(filepath, (prefix ? prefix + '-' : '') + uniqueSlug(uniq));
@@ -77992,7 +80421,7 @@ function requirePath() {
77992
80421
  hasRequiredPath = 1;
77993
80422
  const contentVer = require$$8['cache-version'].content;
77994
80423
  const hashToSegments = requireHashToSegments();
77995
- const path$1 = require$$0$a;
80424
+ const path$1 = require$$0$c;
77996
80425
  const ssri = requireLib$m();
77997
80426
 
77998
80427
  // Current format of content file path:
@@ -78070,7 +80499,7 @@ function requireErrors$3() {
78070
80499
 
78071
80500
  const {
78072
80501
  inspect
78073
- } = require$$0$9;
80502
+ } = require$$0$8;
78074
80503
 
78075
80504
  // adapted from node's internal/errors
78076
80505
  // https://github.com/nodejs/node/blob/c8a04049/lib/internal/errors.js
@@ -78218,7 +80647,7 @@ function requirePolyfill() {
78218
80647
  ENOTDIR
78219
80648
  }
78220
80649
  }
78221
- } = require$$0$g;
80650
+ } = require$$0$e;
78222
80651
  const {
78223
80652
  chmod,
78224
80653
  copyFile,
@@ -78230,7 +80659,7 @@ function requirePolyfill() {
78230
80659
  symlink,
78231
80660
  unlink,
78232
80661
  utimes
78233
- } = require$$0$f;
80662
+ } = require$$0$j;
78234
80663
  const {
78235
80664
  dirname,
78236
80665
  isAbsolute,
@@ -78239,7 +80668,7 @@ function requirePolyfill() {
78239
80668
  resolve,
78240
80669
  sep,
78241
80670
  toNamespacedPath
78242
- } = require$$0$a;
80671
+ } = require$$0$c;
78243
80672
  const {
78244
80673
  fileURLToPath
78245
80674
  } = require$$0$d;
@@ -78594,7 +81023,7 @@ var hasRequiredCp;
78594
81023
  function requireCp() {
78595
81024
  if (hasRequiredCp) return cp_1;
78596
81025
  hasRequiredCp = 1;
78597
- const fs = require$$0$f;
81026
+ const fs = require$$0$j;
78598
81027
  const getOptions = requireGetOptions();
78599
81028
  const node = requireNode$3();
78600
81029
  const polyfill = requirePolyfill();
@@ -78623,13 +81052,13 @@ function requireWithTempDir() {
78623
81052
  const {
78624
81053
  join,
78625
81054
  sep
78626
- } = require$$0$a;
81055
+ } = require$$0$c;
78627
81056
  const getOptions = requireGetOptions();
78628
81057
  const {
78629
81058
  mkdir,
78630
81059
  mkdtemp,
78631
81060
  rm
78632
- } = require$$0$f;
81061
+ } = require$$0$j;
78633
81062
 
78634
81063
  // create a temp directory, ensure its permissions match its parent, then call
78635
81064
  // the supplied function passing it the path to the directory. clean up after
@@ -78674,10 +81103,10 @@ function requireReaddirScoped() {
78674
81103
  hasRequiredReaddirScoped = 1;
78675
81104
  const {
78676
81105
  readdir
78677
- } = require$$0$f;
81106
+ } = require$$0$j;
78678
81107
  const {
78679
81108
  join
78680
- } = require$$0$a;
81109
+ } = require$$0$c;
78681
81110
  const readdirScoped = async dir => {
78682
81111
  const results = [];
78683
81112
  for (const item of await readdir(dir)) {
@@ -78706,8 +81135,8 @@ function requireMoveFile() {
78706
81135
  resolve,
78707
81136
  relative,
78708
81137
  isAbsolute
78709
- } = require$$0$a;
78710
- const fs = require$$0$f;
81138
+ } = require$$0$c;
81139
+ const fs = require$$0$j;
78711
81140
  const pathExists = async path => {
78712
81141
  try {
78713
81142
  await fs.access(path);
@@ -78806,7 +81235,7 @@ var hasRequiredEntryIndex;
78806
81235
  function requireEntryIndex() {
78807
81236
  if (hasRequiredEntryIndex) return entryIndex;
78808
81237
  hasRequiredEntryIndex = 1;
78809
- const crypto = require$$0$k;
81238
+ const crypto = require$$0$m;
78810
81239
  const {
78811
81240
  appendFile,
78812
81241
  mkdir,
@@ -78814,11 +81243,11 @@ function requireEntryIndex() {
78814
81243
  readdir,
78815
81244
  rm,
78816
81245
  writeFile
78817
- } = require$$0$f;
81246
+ } = require$$0$j;
78818
81247
  const {
78819
81248
  Minipass
78820
81249
  } = requireCommonjs$d();
78821
- const path = require$$0$a;
81250
+ const path = require$$0$c;
78822
81251
  const ssri = requireLib$m();
78823
81252
  const uniqueFilename = requireLib$k();
78824
81253
  const contentPath = requirePath();
@@ -80724,8 +83153,8 @@ function requireLib$i() {
80724
83153
  const {
80725
83154
  Minipass
80726
83155
  } = requireCommonjs$d();
80727
- const EE = require$$0$j.EventEmitter;
80728
- const fs = require$$0$b;
83156
+ const EE = require$$0$b.EventEmitter;
83157
+ const fs = require$$0$9;
80729
83158
  const writev = fs.writev;
80730
83159
  const _autoClose = Symbol('_autoClose');
80731
83160
  const _close = Symbol('_close');
@@ -81108,7 +83537,7 @@ var hasRequiredRead;
81108
83537
  function requireRead() {
81109
83538
  if (hasRequiredRead) return read.exports;
81110
83539
  hasRequiredRead = 1;
81111
- const fs = require$$0$f;
83540
+ const fs = require$$0$j;
81112
83541
  const fsm = requireLib$i();
81113
83542
  const ssri = requireLib$m();
81114
83543
  const contentPath = requirePath();
@@ -81463,8 +83892,8 @@ function requireMinipass$4() {
81463
83892
  stdout: null,
81464
83893
  stderr: null
81465
83894
  };
81466
- const EE = require$$0$j;
81467
- const Stream = require$$1$9;
83895
+ const EE = require$$0$b;
83896
+ const Stream = require$$1$7;
81468
83897
  const SD = require$$2$7.StringDecoder;
81469
83898
  const EOF = Symbol('EOF');
81470
83899
  const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
@@ -81993,9 +84422,9 @@ var hasRequiredWrite;
81993
84422
  function requireWrite() {
81994
84423
  if (hasRequiredWrite) return write.exports;
81995
84424
  hasRequiredWrite = 1;
81996
- const events = require$$0$j;
84425
+ const events = require$$0$b;
81997
84426
  const contentPath = requirePath();
81998
- const fs = require$$0$f;
84427
+ const fs = require$$0$j;
81999
84428
  const {
82000
84429
  moveFile
82001
84430
  } = requireLib$j();
@@ -82004,7 +84433,7 @@ function requireWrite() {
82004
84433
  } = requireCommonjs$d();
82005
84434
  const Pipeline = requireMinipassPipeline();
82006
84435
  const Flush = requireMinipassFlush();
82007
- const path = require$$0$a;
84436
+ const path = require$$0$c;
82008
84437
  const ssri = requireLib$m();
82009
84438
  const uniqueFilename = requireLib$k();
82010
84439
  const fsm = requireLib$i();
@@ -82329,7 +84758,7 @@ function requireCommonjs$5() {
82329
84758
  const lru_cache_1 = /*@__PURE__*/requireCommonjs$6();
82330
84759
  const node_path_1 = path$2;
82331
84760
  const node_url_1 = require$$0$6;
82332
- const fs_1 = require$$0$b;
84761
+ const fs_1 = require$$0$9;
82333
84762
  const actualFS = __importStar(fs$1);
82334
84763
  const realpathSync = fs_1.realpathSync.native;
82335
84764
  // TODO: test perf of fs/promises realpath vs realpathCB,
@@ -85601,7 +88030,7 @@ function requireGlob() {
85601
88030
  const {
85602
88031
  glob
85603
88032
  } = requireCommonjs$4();
85604
- const path = require$$0$a;
88033
+ const path = require$$0$c;
85605
88034
  const globify = pattern => pattern.split(path.win32.sep).join(path.posix.sep);
85606
88035
  glob_1 = (path, options) => glob(globify(path), options);
85607
88036
  return glob_1;
@@ -85612,7 +88041,7 @@ var hasRequiredRm$1;
85612
88041
  function requireRm$1() {
85613
88042
  if (hasRequiredRm$1) return rm_1;
85614
88043
  hasRequiredRm$1 = 1;
85615
- const fs = require$$0$f;
88044
+ const fs = require$$0$j;
85616
88045
  const contentPath = requirePath();
85617
88046
  const {
85618
88047
  hasContent
@@ -85640,11 +88069,11 @@ function requireRm() {
85640
88069
  hasRequiredRm = 1;
85641
88070
  const {
85642
88071
  rm: rm$1
85643
- } = require$$0$f;
88072
+ } = require$$0$j;
85644
88073
  const glob = requireGlob();
85645
88074
  const index = requireEntryIndex();
85646
88075
  const memo = requireMemoization();
85647
- const path = require$$0$a;
88076
+ const path = require$$0$c;
85648
88077
  const rmContent = requireRm$1();
85649
88078
  rm.exports = entry;
85650
88079
  rm.exports.entry = entry;
@@ -85685,12 +88114,12 @@ function requireVerify$1() {
85685
88114
  stat,
85686
88115
  truncate,
85687
88116
  writeFile
85688
- } = require$$0$f;
88117
+ } = require$$0$j;
85689
88118
  const contentPath = requirePath();
85690
88119
  const fsm = requireLib$i();
85691
88120
  const glob = requireGlob();
85692
88121
  const index$1 = requireEntryIndex();
85693
- const path = require$$0$a;
88122
+ const path = require$$0$c;
85694
88123
  const ssri = requireLib$m();
85695
88124
  const hasOwnProperty = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key);
85696
88125
  const verifyOpts = opts => ({
@@ -85936,8 +88365,8 @@ function requireTmp() {
85936
88365
  const {
85937
88366
  withTempDir
85938
88367
  } = requireLib$j();
85939
- const fs = require$$0$f;
85940
- const path = require$$0$a;
88368
+ const fs = require$$0$j;
88369
+ const path = require$$0$c;
85941
88370
  tmp.mkdir = mktmpdir;
85942
88371
  async function mktmpdir(cache, opts = {}) {
85943
88372
  const {
@@ -86023,9 +88452,9 @@ function requireLib$g() {
86023
88452
  // as the "bundled" argument. Additionally, packageJsonCache is shared so
86024
88453
  // packlist doesn't have to re-read files already consumed in this pass
86025
88454
 
86026
- const fs = require$$0$b;
86027
- const path = require$$0$a;
86028
- const EE = require$$0$j.EventEmitter;
88455
+ const fs = require$$0$9;
88456
+ const path = require$$0$c;
88457
+ const EE = require$$0$b.EventEmitter;
86029
88458
  // we don't care about the package bins, but we share a pj cache
86030
88459
  // with other modules that DO care about it, so keep it nice.
86031
88460
  const normalizePackageBin = requireLib$z();
@@ -86264,12 +88693,12 @@ function requireLib$f() {
86264
88693
  readFile,
86265
88694
  readdir,
86266
88695
  stat
86267
- } = require$$0$f;
88696
+ } = require$$0$j;
86268
88697
  const {
86269
88698
  resolve,
86270
88699
  basename,
86271
88700
  dirname
86272
- } = require$$0$a;
88701
+ } = require$$0$c;
86273
88702
  const normalizePackageBin = requireLib$z();
86274
88703
  const readPackage = ({
86275
88704
  path,
@@ -86450,8 +88879,8 @@ function requireMinipass$3() {
86450
88879
  stdout: null,
86451
88880
  stderr: null
86452
88881
  };
86453
- const EE = require$$0$j;
86454
- const Stream = require$$1$9;
88882
+ const EE = require$$0$b;
88883
+ const Stream = require$$1$7;
86455
88884
  const stringdecoder = require$$2$7;
86456
88885
  const SD = stringdecoder.StringDecoder;
86457
88886
  const EOF = Symbol('EOF');
@@ -87027,7 +89456,7 @@ function requireConstants$5() {
87027
89456
  // Node v6 didn't export this, so we just hard code the version and rely
87028
89457
  // on all the other hard-coded values from zlib v4736. When node v6
87029
89458
  // support drops, we can just export the realZlibConstants object.
87030
- const realZlibConstants = require$$0$l.constants || /* istanbul ignore next */{
89459
+ const realZlibConstants = require$$0$n.constants || /* istanbul ignore next */{
87031
89460
  ZLIB_VERNUM: 4736
87032
89461
  };
87033
89462
  constants$5 = Object.freeze(Object.assign(Object.create(null), {
@@ -87150,8 +89579,8 @@ function requireMinipass$2() {
87150
89579
  stdout: null,
87151
89580
  stderr: null
87152
89581
  };
87153
- const EE = require$$0$j;
87154
- const Stream = require$$1$9;
89582
+ const EE = require$$0$b;
89583
+ const Stream = require$$1$7;
87155
89584
  const SD = require$$2$7.StringDecoder;
87156
89585
  const EOF = Symbol('EOF');
87157
89586
  const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
@@ -87644,9 +90073,9 @@ var hasRequiredMinizlib;
87644
90073
  function requireMinizlib() {
87645
90074
  if (hasRequiredMinizlib) return minizlib;
87646
90075
  hasRequiredMinizlib = 1;
87647
- const assert = require$$0$m;
87648
- const Buffer = require$$0$8.Buffer;
87649
- const realZlib = require$$0$l;
90076
+ const assert = require$$0$a;
90077
+ const Buffer = require$$0$g.Buffer;
90078
+ const realZlib = require$$0$n;
87650
90079
  const constants = minizlib.constants = requireConstants$5();
87651
90080
  const Minipass = requireMinipass$2();
87652
90081
  const OriginalBufferConcat = Buffer.concat;
@@ -88215,7 +90644,7 @@ function requireHeader() {
88215
90644
  // (Also, check header.needPax to see if it needs a pax header.)
88216
90645
 
88217
90646
  const types = requireTypes();
88218
- const pathModule = require$$0$a.posix;
90647
+ const pathModule = require$$0$c.posix;
88219
90648
  const large = requireLargeNumbers();
88220
90649
  const SLURP = Symbol('slurp');
88221
90650
  const TYPE = Symbol('type');
@@ -88458,7 +90887,7 @@ function requirePax() {
88458
90887
  if (hasRequiredPax) return pax;
88459
90888
  hasRequiredPax = 1;
88460
90889
  const Header = requireHeader();
88461
- const path = require$$0$a;
90890
+ const path = require$$0$c;
88462
90891
  class Pax {
88463
90892
  constructor(obj, global) {
88464
90893
  this.atime = obj.atime || null;
@@ -88647,7 +91076,7 @@ function requireStripAbsolutePath() {
88647
91076
  const {
88648
91077
  isAbsolute,
88649
91078
  parse
88650
- } = require$$0$a.win32;
91079
+ } = require$$0$c.win32;
88651
91080
 
88652
91081
  // returns [root, stripped]
88653
91082
  // Note that windows will think that //x/y/z/a has a "root" of //x/y, and in
@@ -88715,8 +91144,8 @@ function requireWriteEntry() {
88715
91144
  } = requireMinipass$3();
88716
91145
  const Pax = requirePax();
88717
91146
  const Header = requireHeader();
88718
- const fs = require$$0$b;
88719
- const path = require$$0$a;
91147
+ const fs = require$$0$9;
91148
+ const path = require$$0$c;
88720
91149
  const normPath = requireNormalizeWindowsPath();
88721
91150
  const stripSlash = requireStripTrailingSlashes();
88722
91151
  const prefixPath = (path, prefix) => {
@@ -89645,8 +92074,8 @@ function requirePack() {
89645
92074
  const WRITEENTRYCLASS = Symbol('writeEntryClass');
89646
92075
  const WRITE = Symbol('write');
89647
92076
  const ONDRAIN = Symbol('ondrain');
89648
- const fs = require$$0$b;
89649
- const path = require$$0$a;
92077
+ const fs = require$$0$9;
92078
+ const path = require$$0$c;
89650
92079
  const warner = requireWarnMixin();
89651
92080
  const normPath = requireNormalizeWindowsPath();
89652
92081
  const Pack = warner(class Pack extends Minipass {
@@ -89989,8 +92418,8 @@ function requireMinipass$1() {
89989
92418
  stdout: null,
89990
92419
  stderr: null
89991
92420
  };
89992
- const EE = require$$0$j;
89993
- const Stream = require$$1$9;
92421
+ const EE = require$$0$b;
92422
+ const Stream = require$$1$7;
89994
92423
  const SD = require$$2$7.StringDecoder;
89995
92424
  const EOF = Symbol('EOF');
89996
92425
  const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
@@ -90484,8 +92913,8 @@ function requireFsMinipass() {
90484
92913
  if (hasRequiredFsMinipass) return fsMinipass;
90485
92914
  hasRequiredFsMinipass = 1;
90486
92915
  const MiniPass = requireMinipass$1();
90487
- const EE = require$$0$j.EventEmitter;
90488
- const fs = require$$0$b;
92916
+ const EE = require$$0$b.EventEmitter;
92917
+ const fs = require$$0$9;
90489
92918
  let writev = fs.writev;
90490
92919
  /* istanbul ignore next */
90491
92920
  if (!writev) {
@@ -90847,7 +93276,7 @@ function requireParse$2() {
90847
93276
 
90848
93277
  const warner = requireWarnMixin();
90849
93278
  const Header = requireHeader();
90850
- const EE = require$$0$j;
93279
+ const EE = require$$0$b;
90851
93280
  const Yallist = requireYallist();
90852
93281
  const maxMetaEntrySize = 1024 * 1024;
90853
93282
  const Entry = requireReadEntry();
@@ -90855,7 +93284,7 @@ function requireParse$2() {
90855
93284
  const zlib = requireMinizlib();
90856
93285
  const {
90857
93286
  nextTick
90858
- } = require$$0$7;
93287
+ } = require$$0$f;
90859
93288
  const gzipHeader = Buffer.from([0x1f, 0x8b]);
90860
93289
  const STATE = Symbol('state');
90861
93290
  const WRITEENTRY = Symbol('writeEntry');
@@ -91341,9 +93770,9 @@ function requireList() {
91341
93770
  // tar -t
91342
93771
  const hlo = requireHighLevelOpt();
91343
93772
  const Parser = requireParse$2();
91344
- const fs = require$$0$b;
93773
+ const fs = require$$0$9;
91345
93774
  const fsm = requireFsMinipass();
91346
- const path = require$$0$a;
93775
+ const path = require$$0$c;
91347
93776
  const stripSlash = requireStripTrailingSlashes();
91348
93777
  list_1 = (opt_, files, cb) => {
91349
93778
  if (typeof opt_ === 'function') {
@@ -91462,7 +93891,7 @@ function requireCreate() {
91462
93891
  const Pack = requirePack();
91463
93892
  const fsm = requireFsMinipass();
91464
93893
  const t = requireList();
91465
- const path = require$$0$a;
93894
+ const path = require$$0$c;
91466
93895
  create_1 = (opt_, files, cb) => {
91467
93896
  if (typeof files === 'function') {
91468
93897
  cb = files;
@@ -91557,10 +93986,10 @@ function requireReplace() {
91557
93986
  // tar -r
91558
93987
  const hlo = requireHighLevelOpt();
91559
93988
  const Pack = requirePack();
91560
- const fs = require$$0$b;
93989
+ const fs = require$$0$9;
91561
93990
  const fsm = requireFsMinipass();
91562
93991
  const t = requireList();
91563
- const path = require$$0$a;
93992
+ const path = require$$0$c;
91564
93993
 
91565
93994
  // starting at the head of the file, read a Header
91566
93995
  // If the checksum is invalid, that's our position to start writing
@@ -91809,8 +94238,8 @@ function requireOptsArg() {
91809
94238
  hasRequiredOptsArg = 1;
91810
94239
  const {
91811
94240
  promisify
91812
- } = require$$0$9;
91813
- const fs = require$$0$b;
94241
+ } = require$$0$8;
94242
+ const fs = require$$0$9;
91814
94243
  const optsArg = opts => {
91815
94244
  if (!opts) opts = {
91816
94245
  mode: 0o777,
@@ -91847,7 +94276,7 @@ function requirePathArg() {
91847
94276
  const {
91848
94277
  resolve,
91849
94278
  parse
91850
- } = require$$0$a;
94279
+ } = require$$0$c;
91851
94280
  const pathArg = path => {
91852
94281
  if (/\0/.test(path)) {
91853
94282
  // simulate same failure that node raises
@@ -91882,7 +94311,7 @@ function requireFindMade() {
91882
94311
  hasRequiredFindMade = 1;
91883
94312
  const {
91884
94313
  dirname
91885
- } = require$$0$a;
94314
+ } = require$$0$c;
91886
94315
  const findMade = (opts, parent, path = undefined) => {
91887
94316
  // we never want the 'made' return value to be a root directory
91888
94317
  if (path === parent) return Promise.resolve();
@@ -91912,7 +94341,7 @@ function requireMkdirpManual() {
91912
94341
  hasRequiredMkdirpManual = 1;
91913
94342
  const {
91914
94343
  dirname
91915
- } = require$$0$a;
94344
+ } = require$$0$c;
91916
94345
  const mkdirpManual = (path, opts, made) => {
91917
94346
  opts.recursive = false;
91918
94347
  const parent = dirname(path);
@@ -91972,7 +94401,7 @@ function requireMkdirpNative() {
91972
94401
  hasRequiredMkdirpNative = 1;
91973
94402
  const {
91974
94403
  dirname
91975
- } = require$$0$a;
94404
+ } = require$$0$c;
91976
94405
  const {
91977
94406
  findMade,
91978
94407
  findMadeSync
@@ -92013,7 +94442,7 @@ var hasRequiredUseNative;
92013
94442
  function requireUseNative() {
92014
94443
  if (hasRequiredUseNative) return useNative_1;
92015
94444
  hasRequiredUseNative = 1;
92016
- const fs = require$$0$b;
94445
+ const fs = require$$0$9;
92017
94446
  const version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;
92018
94447
  const versArr = version.replace(/^v/, '').split('.');
92019
94448
  const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
@@ -92069,8 +94498,8 @@ var hasRequiredChownr;
92069
94498
  function requireChownr() {
92070
94499
  if (hasRequiredChownr) return chownr_1;
92071
94500
  hasRequiredChownr = 1;
92072
- const fs = require$$0$b;
92073
- const path = require$$0$a;
94501
+ const fs = require$$0$9;
94502
+ const path = require$$0$c;
92074
94503
 
92075
94504
  /* istanbul ignore next */
92076
94505
  const LCHOWN = fs.lchown ? 'lchown' : 'chown';
@@ -92204,8 +94633,8 @@ function requireMkdir() {
92204
94633
  // passing around state in a gazillion args.
92205
94634
 
92206
94635
  const mkdirp = requireMkdirp();
92207
- const fs = require$$0$b;
92208
- const path = require$$0$a;
94636
+ const fs = require$$0$9;
94637
+ const path = require$$0$c;
92209
94638
  const chownr = requireChownr();
92210
94639
  const normPath = requireNormalizeWindowsPath();
92211
94640
  class SymlinkError extends Error {
@@ -92433,12 +94862,12 @@ function requirePathReservations() {
92433
94862
  // Used by async unpack to avoid clobbering paths in use,
92434
94863
  // while still allowing maximal safe parallelization.
92435
94864
 
92436
- const assert = require$$0$m;
94865
+ const assert = require$$0$a;
92437
94866
  const normalize = requireNormalizeUnicode();
92438
94867
  const stripSlashes = requireStripTrailingSlashes();
92439
94868
  const {
92440
94869
  join
92441
- } = require$$0$a;
94870
+ } = require$$0$c;
92442
94871
  const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
92443
94872
  const isWindows = platform === 'win32';
92444
94873
  pathReservations = () => {
@@ -92599,7 +95028,7 @@ function requireGetWriteFlag() {
92599
95028
  // Only supported in Node v12.9.0 and above.
92600
95029
  const platform = process.env.__FAKE_PLATFORM__ || process.platform;
92601
95030
  const isWindows = platform === 'win32';
92602
- const fs = global.__FAKE_TESTING_FS__ || require$$0$b;
95031
+ const fs = global.__FAKE_TESTING_FS__ || require$$0$9;
92603
95032
 
92604
95033
  /* istanbul ignore next */
92605
95034
  const {
@@ -92627,11 +95056,11 @@ function requireUnpack() {
92627
95056
  // (like a Link depending on its target) or destructive operations (like
92628
95057
  // clobbering an fs object to create one of a different type.)
92629
95058
 
92630
- const assert = require$$0$m;
95059
+ const assert = require$$0$a;
92631
95060
  const Parser = requireParse$2();
92632
- const fs = require$$0$b;
95061
+ const fs = require$$0$9;
92633
95062
  const fsm = requireFsMinipass();
92634
- const path = require$$0$a;
95063
+ const path = require$$0$c;
92635
95064
  const mkdir = requireMkdir();
92636
95065
  const wc = requireWinchars();
92637
95066
  const pathReservations = requirePathReservations();
@@ -92664,7 +95093,7 @@ function requireUnpack() {
92664
95093
  const UID = Symbol('uid');
92665
95094
  const GID = Symbol('gid');
92666
95095
  const CHECKED_CWD = Symbol('checkedCwd');
92667
- const crypto = require$$0$k;
95096
+ const crypto = require$$0$m;
92668
95097
  const getFlag = requireGetWriteFlag();
92669
95098
  const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
92670
95099
  const isWindows = platform === 'win32';
@@ -93440,9 +95869,9 @@ function requireExtract() {
93440
95869
  // tar -x
93441
95870
  const hlo = requireHighLevelOpt();
93442
95871
  const Unpack = requireUnpack();
93443
- const fs = require$$0$b;
95872
+ const fs = require$$0$9;
93444
95873
  const fsm = requireFsMinipass();
93445
- const path = require$$0$a;
95874
+ const path = require$$0$c;
93446
95875
  const stripSlash = requireStripTrailingSlashes();
93447
95876
  extract_1 = (opt_, files, cb) => {
93448
95877
  if (typeof opt_ === 'function') {
@@ -93644,9 +96073,9 @@ var hasRequiredLib$e;
93644
96073
  function requireLib$e() {
93645
96074
  if (hasRequiredLib$e) return lib$e;
93646
96075
  hasRequiredLib$e = 1;
93647
- const fs = require$$0$b;
93648
- const path = require$$0$a;
93649
- const EE = require$$0$j.EventEmitter;
96076
+ const fs = require$$0$9;
96077
+ const path = require$$0$c;
96078
+ const EE = require$$0$b.EventEmitter;
93650
96079
  const Minimatch = requireCommonjs$f().Minimatch;
93651
96080
  class Walker extends EE {
93652
96081
  constructor(opts) {
@@ -93950,7 +96379,7 @@ function requireLib$d() {
93950
96379
  const {
93951
96380
  lstatSync: lstat,
93952
96381
  readFileSync: readFile
93953
- } = require$$0$b;
96382
+ } = require$$0$9;
93954
96383
  const {
93955
96384
  basename,
93956
96385
  dirname,
@@ -93959,7 +96388,7 @@ function requireLib$d() {
93959
96388
  relative,
93960
96389
  resolve,
93961
96390
  sep
93962
- } = require$$0$a;
96391
+ } = require$$0$c;
93963
96392
 
93964
96393
  // symbols used to represent synthetic rule sets
93965
96394
  const defaultRules = Symbol('npm-packlist.rules.default');
@@ -94350,10 +96779,10 @@ function requireSetPath() {
94350
96779
  resolve,
94351
96780
  dirname,
94352
96781
  delimiter
94353
- } = require$$0$a;
96782
+ } = require$$0$c;
94354
96783
  // the path here is relative, even though it does not need to be
94355
96784
  // in order to make the posix tests pass in windows
94356
- const nodeGypPath = resolve(__dirname, '../lib/node-gyp-bin');
96785
+ const nodeGypPath = require('./constants.js').npmNmNodeGypPath;
94357
96786
 
94358
96787
  // Windows typically calls its PATH environ 'Path', but this is not
94359
96788
  // guaranteed, nor is it guaranteed to be the only one. Merge them
@@ -94400,7 +96829,7 @@ function requireMakeSpawnArgs() {
94400
96829
  const setPATH = requireSetPath();
94401
96830
  const {
94402
96831
  resolve
94403
- } = require$$0$a;
96832
+ } = require$$0$c;
94404
96833
  let npm_config_node_gyp;
94405
96834
  const makeSpawnArgs = options => {
94406
96835
  const {
@@ -94423,7 +96852,7 @@ function requireMakeSpawnArgs() {
94423
96852
  npm_config_node_gyp = env.npm_config_node_gyp;
94424
96853
  } else {
94425
96854
  // default
94426
- npm_config_node_gyp = require.resolve('../external/node-gyp/bin/node-gyp.js');
96855
+ npm_config_node_gyp = require('./constants.js').npmNmNodeGypPath;
94427
96856
  }
94428
96857
  const spawnEnv = setPATH(path, binPaths, {
94429
96858
  // we need to at least save the PATH environment var
@@ -94491,8 +96920,8 @@ var hasRequiredLib$c;
94491
96920
  function requireLib$c() {
94492
96921
  if (hasRequiredLib$c) return lib$c;
94493
96922
  hasRequiredLib$c = 1;
94494
- const util = require$$0$9;
94495
- const fs = require$$0$b;
96923
+ const util = require$$0$8;
96924
+ const fs = require$$0$9;
94496
96925
  const {
94497
96926
  stat
94498
96927
  } = fs.promises || {
@@ -95110,7 +97539,7 @@ function requireConstants$4() {
95110
97539
  // Node v6 didn't export this, so we just hard code the version and rely
95111
97540
  // on all the other hard-coded values from zlib v4736. When node v6
95112
97541
  // support drops, we can just export the realZlibConstants object.
95113
- const zlib_1 = __importDefault(require$$0$l);
97542
+ const zlib_1 = __importDefault(require$$0$n);
95114
97543
  /* c8 ignore start */
95115
97544
  const realZlibConstants = zlib_1.default.constants || {
95116
97545
  ZLIB_VERNUM: 4736
@@ -95283,10 +97712,10 @@ function requireCommonjs$3() {
95283
97712
  value: true
95284
97713
  });
95285
97714
  exports.BrotliDecompress = exports.BrotliCompress = exports.Brotli = exports.Unzip = exports.InflateRaw = exports.DeflateRaw = exports.Gunzip = exports.Gzip = exports.Inflate = exports.Deflate = exports.Zlib = exports.ZlibError = exports.constants = void 0;
95286
- const assert_1 = __importDefault(require$$0$m);
95287
- const buffer_1 = require$$0$8;
97715
+ const assert_1 = __importDefault(require$$0$a);
97716
+ const buffer_1 = require$$0$g;
95288
97717
  const minipass_1 = requireCommonjs$d();
95289
- const realZlib = __importStar(require$$0$l);
97718
+ const realZlib = __importStar(require$$0$n);
95290
97719
  const constants_js_1 = requireConstants$4();
95291
97720
  var constants_js_2 = requireConstants$4();
95292
97721
  Object.defineProperty(exports, "constants", {
@@ -95622,8 +98051,8 @@ function requireMinipass() {
95622
98051
  stdout: null,
95623
98052
  stderr: null
95624
98053
  };
95625
- const EE = require$$0$j;
95626
- const Stream = require$$1$9;
98054
+ const EE = require$$0$b;
98055
+ const Stream = require$$1$7;
95627
98056
  const SD = require$$2$7.StringDecoder;
95628
98057
  const EOF = Symbol('EOF');
95629
98058
  const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
@@ -96291,7 +98720,7 @@ function requireShared() {
96291
98720
 
96292
98721
  // Use non-'node:' prefixed require to avoid Webpack errors.
96293
98722
  // eslint-disable-next-line n/prefer-node-protocol
96294
- const builtinBufferExports = require$$0$8;
98723
+ const builtinBufferExports = require$$0$g;
96295
98724
  const builtinBufferExportsDescMap = Object.fromEntries(Object.entries(Object.getOwnPropertyDescriptors(builtinBufferExports)).filter(({
96296
98725
  0: key
96297
98726
  }) => key !== 'Buffer' && key !== 'SlowBuffer'));
@@ -96323,7 +98752,7 @@ function requireSafer() {
96323
98752
  transcode
96324
98753
  // Use non-'node:' prefixed require to avoid Webpack errors.
96325
98754
  // eslint-disable-next-line n/prefer-node-protocol
96326
- } = require$$0$8;
98755
+ } = require$$0$g;
96327
98756
  const {
96328
98757
  builtinBufferExportsDescMap
96329
98758
  } = /*@__PURE__*/requireShared();
@@ -107898,7 +110327,7 @@ var hasRequiredResponse;
107898
110327
  function requireResponse() {
107899
110328
  if (hasRequiredResponse) return response;
107900
110329
  hasRequiredResponse = 1;
107901
- const http = require$$1$7;
110330
+ const http = require$$1$8;
107902
110331
  const {
107903
110332
  STATUS_CODES
107904
110333
  } = http;
@@ -108282,7 +110711,7 @@ function requireLib$a() {
108282
110711
  const {
108283
110712
  URL
108284
110713
  } = require$$0$d;
108285
- const http = require$$1$7;
110714
+ const http = require$$1$8;
108286
110715
  const https = require$$2$3;
108287
110716
  const zlib = requireCommonjs$3();
108288
110717
  const {
@@ -109143,7 +111572,7 @@ var hasRequiredAuth;
109143
111572
  function requireAuth() {
109144
111573
  if (hasRequiredAuth) return auth$1;
109145
111574
  hasRequiredAuth = 1;
109146
- const fs = require$$0$b;
111575
+ const fs = require$$0$9;
109147
111576
  const npa = requireNpa();
109148
111577
  const {
109149
111578
  URL
@@ -109350,7 +111779,7 @@ var hasRequiredOptions$1;
109350
111779
  function requireOptions$1() {
109351
111780
  if (hasRequiredOptions$1) return options$1;
109352
111781
  hasRequiredOptions$1 = 1;
109353
- const dns = require$$0$n;
111782
+ const dns = require$$0$o;
109354
111783
  const conditionalHeaders = ['if-modified-since', 'if-none-match', 'if-unmodified-since', 'if-match', 'if-range'];
109355
111784
  const configureOptions = opts => {
109356
111785
  const {
@@ -112592,7 +115021,7 @@ function requireDns() {
112592
115021
  const {
112593
115022
  LRUCache
112594
115023
  } = /*@__PURE__*/requireCommonjs$2();
112595
- const dns = require$$0$n;
115024
+ const dns = require$$0$o;
112596
115025
 
112597
115026
  // this is a factory so that each request can have its own opts (i.e. ttl)
112598
115027
  // while still sharing the cache across all requests
@@ -113424,8 +115853,8 @@ function requireNode$2() {
113424
115853
  if (hasRequiredNode$2) return node$2.exports;
113425
115854
  hasRequiredNode$2 = 1;
113426
115855
  (function (module, exports) {
113427
- const tty = require$$1$8;
113428
- const util = require$$0$9;
115856
+ const tty = require$$1$9;
115857
+ const util = require$$0$8;
113429
115858
 
113430
115859
  /**
113431
115860
  * This is the Node.js implementation of `debug()`.
@@ -113654,7 +116083,7 @@ function requireHelpers$3() {
113654
116083
  value: true
113655
116084
  });
113656
116085
  helpers$3.req = helpers$3.json = helpers$3.toBuffer = void 0;
113657
- const http = __importStar(require$$1$7);
116086
+ const http = __importStar(require$$1$8);
113658
116087
  const https = __importStar(require$$2$3);
113659
116088
  async function toBuffer(stream) {
113660
116089
  let length = 0;
@@ -113736,8 +116165,8 @@ function requireDist$c() {
113736
116165
  value: true
113737
116166
  });
113738
116167
  exports.Agent = void 0;
113739
- const net = __importStar(require$$0$o);
113740
- const http = __importStar(require$$1$7);
116168
+ const net = __importStar(require$$0$p);
116169
+ const http = __importStar(require$$1$8);
113741
116170
  const https_1 = require$$2$3;
113742
116171
  __exportStar(requireHelpers$3(), exports);
113743
116172
  const INTERNAL = Symbol('AgentBaseInternalState');
@@ -113927,10 +116356,10 @@ function requireDist$b() {
113927
116356
  value: true
113928
116357
  });
113929
116358
  dist$c.HttpProxyAgent = void 0;
113930
- const net = __importStar(require$$0$o);
116359
+ const net = __importStar(require$$0$p);
113931
116360
  const tls = __importStar(require$$1$c);
113932
116361
  const debug_1 = __importDefault(requireSrc$1());
113933
- const events_1 = require$$0$j;
116362
+ const events_1 = require$$0$b;
113934
116363
  const agent_base_1 = requireDist$c();
113935
116364
  const url_1 = require$$0$d;
113936
116365
  const debug = (0, debug_1.default)('http-proxy-agent');
@@ -114191,9 +116620,9 @@ function requireDist$a() {
114191
116620
  value: true
114192
116621
  });
114193
116622
  dist$a.HttpsProxyAgent = void 0;
114194
- const net = __importStar(require$$0$o);
116623
+ const net = __importStar(require$$0$p);
114195
116624
  const tls = __importStar(require$$1$c);
114196
- const assert_1 = __importDefault(require$$0$m);
116625
+ const assert_1 = __importDefault(require$$0$a);
114197
116626
  const debug_1 = __importDefault(requireSrc$1());
114198
116627
  const agent_base_1 = requireDist$c();
114199
116628
  const url_1 = require$$0$d;
@@ -114361,7 +116790,7 @@ function requireUtils$1() {
114361
116790
  Object.defineProperty(utils$1, "__esModule", {
114362
116791
  value: true
114363
116792
  });
114364
- const buffer_1 = require$$0$8;
116793
+ const buffer_1 = require$$0$g;
114365
116794
  /**
114366
116795
  * Error strings
114367
116796
  */
@@ -119353,9 +121782,9 @@ function requireHelpers$1() {
119353
121782
  helpers$2.ipToBuffer = helpers$2.int32ToIpv4 = helpers$2.ipv4ToInt32 = helpers$2.validateSocksClientChainOptions = helpers$2.validateSocksClientOptions = void 0;
119354
121783
  const util_1 = requireUtil$1();
119355
121784
  const constants_1 = requireConstants$3();
119356
- const stream = require$$1$9;
121785
+ const stream = require$$1$7;
119357
121786
  const ip_address_1 = requireIpAddress();
119358
- const net = require$$0$o;
121787
+ const net = require$$0$p;
119359
121788
  /**
119360
121789
  * Validates the provided SocksClientOptions
119361
121790
  * @param options { SocksClientOptions }
@@ -119584,8 +122013,8 @@ function requireSocksclient() {
119584
122013
  value: true
119585
122014
  });
119586
122015
  exports.SocksClientError = exports.SocksClient = void 0;
119587
- const events_1 = require$$0$j;
119588
- const net = require$$0$o;
122016
+ const events_1 = require$$0$b;
122017
+ const net = require$$0$p;
119589
122018
  const smart_buffer_1 = requireSmartbuffer();
119590
122019
  const constants_1 = requireConstants$3();
119591
122020
  const helpers_1 = requireHelpers$1();
@@ -120421,8 +122850,8 @@ function requireDist$9() {
120421
122850
  const socks_1 = requireBuild$1();
120422
122851
  const agent_base_1 = requireDist$c();
120423
122852
  const debug_1 = __importDefault(requireSrc$1());
120424
- const dns = __importStar(require$$0$n);
120425
- const net = __importStar(require$$0$o);
122853
+ const dns = __importStar(require$$0$o);
122854
+ const net = __importStar(require$$0$p);
120426
122855
  const tls = __importStar(require$$1$c);
120427
122856
  const url_1 = require$$0$d;
120428
122857
  const debug = (0, debug_1.default)('socks-proxy-agent');
@@ -120749,11 +123178,11 @@ var hasRequiredAgents$2;
120749
123178
  function requireAgents$2() {
120750
123179
  if (hasRequiredAgents$2) return agents$2;
120751
123180
  hasRequiredAgents$2 = 1;
120752
- const net = require$$0$o;
123181
+ const net = require$$0$p;
120753
123182
  const tls = require$$1$c;
120754
123183
  const {
120755
123184
  once
120756
- } = require$$0$j;
123185
+ } = require$$0$b;
120757
123186
  const timers = require$$3$4;
120758
123187
  const {
120759
123188
  normalizeOptions,
@@ -125966,7 +128395,7 @@ function requireCrypto() {
125966
128395
  See the License for the specific language governing permissions and
125967
128396
  limitations under the License.
125968
128397
  */
125969
- const crypto_1 = __importDefault(require$$0$k);
128398
+ const crypto_1 = __importDefault(require$$0$m);
125970
128399
  function createPublicKey(key, type = 'spki') {
125971
128400
  if (typeof key === 'string') {
125972
128401
  return crypto_1.default.createPublicKey(key);
@@ -127335,7 +129764,7 @@ function requireUa() {
127335
129764
  See the License for the specific language governing permissions and
127336
129765
  limitations under the License.
127337
129766
  */
127338
- const os_1 = __importDefault(require$$0$g);
129767
+ const os_1 = __importDefault(require$$0$e);
127339
129768
  // Format User-Agent: <product> / <product-version> (<platform>)
127340
129769
  // source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
127341
129770
  const getUserAgent = () => {
@@ -127958,7 +130387,7 @@ function requireFetch() {
127958
130387
  See the License for the specific language governing permissions and
127959
130388
  limitations under the License.
127960
130389
  */
127961
- const http2_1 = require$$0$p;
130390
+ const http2_1 = require$$0$q;
127962
130391
  const make_fetch_happen_1 = __importDefault(requireLib$7());
127963
130392
  const proc_log_1 = requireLib$F();
127964
130393
  const promise_retry_1 = __importDefault(requirePromiseRetry());
@@ -128185,7 +130614,7 @@ function requireEphemeral() {
128185
130614
  See the License for the specific language governing permissions and
128186
130615
  limitations under the License.
128187
130616
  */
128188
- const crypto_1 = __importDefault(require$$0$k);
130617
+ const crypto_1 = __importDefault(require$$0$m);
128189
130618
  const EC_KEYPAIR_TYPE = 'ec';
128190
130619
  const P256_CURVE = 'P-256';
128191
130620
  // Signer implementation which uses an ephemeral keypair to sign artifacts.
@@ -129051,8 +131480,8 @@ function requireAppdata() {
129051
131480
  See the License for the specific language governing permissions and
129052
131481
  limitations under the License.
129053
131482
  */
129054
- const os_1 = __importDefault(require$$0$g);
129055
- const path_1 = __importDefault(require$$0$a);
131483
+ const os_1 = __importDefault(require$$0$e);
131484
+ const path_1 = __importDefault(require$$0$c);
129056
131485
  function appDataPath(name) {
129057
131486
  const homedir = os_1.default.homedir();
129058
131487
  switch (process.platform) {
@@ -129240,7 +131669,7 @@ function requireVerify() {
129240
131669
  });
129241
131670
  verify.verifySignature = void 0;
129242
131671
  const canonical_json_1 = requireLib$5();
129243
- const crypto_1 = __importDefault(require$$0$k);
131672
+ const crypto_1 = __importDefault(require$$0$m);
129244
131673
  const verifySignature = (metaDataSignedData, key, signature) => {
129245
131674
  const canonicalData = Buffer.from((0, canonical_json_1.canonicalize)(metaDataSignedData));
129246
131675
  return crypto_1.default.verify(undefined, canonicalData, key, Buffer.from(signature, 'hex'));
@@ -129307,7 +131736,7 @@ function requireBase() {
129307
131736
  });
129308
131737
  base.Signed = base.MetadataKind = void 0;
129309
131738
  base.isMetadataKind = isMetadataKind;
129310
- const util_1 = __importDefault(require$$0$9);
131739
+ const util_1 = __importDefault(require$$0$8);
129311
131740
  const error_1 = requireError$5();
129312
131741
  const utils_1 = requireUtils();
129313
131742
  const SPECIFICATION_VERSION = ['1', '0', '31'];
@@ -129407,8 +131836,8 @@ function requireFile() {
129407
131836
  value: true
129408
131837
  });
129409
131838
  file.TargetFile = file.MetaFile = void 0;
129410
- const crypto_1 = __importDefault(require$$0$k);
129411
- const util_1 = __importDefault(require$$0$9);
131839
+ const crypto_1 = __importDefault(require$$0$m);
131840
+ const util_1 = __importDefault(require$$0$8);
129412
131841
  const error_1 = requireError$5();
129413
131842
  const utils_1 = requireUtils();
129414
131843
  // A container with information about a particular metadata file.
@@ -129641,7 +132070,7 @@ function requireKey$2() {
129641
132070
  value: true
129642
132071
  });
129643
132072
  key$1.getPublicKey = getPublicKey;
129644
- const crypto_1 = __importDefault(require$$0$k);
132073
+ const crypto_1 = __importDefault(require$$0$m);
129645
132074
  const error_1 = requireError$5();
129646
132075
  const oid_1 = requireOid();
129647
132076
  const ASN1_TAG_SEQUENCE = 0x30;
@@ -129762,7 +132191,7 @@ function requireKey$1() {
129762
132191
  value: true
129763
132192
  });
129764
132193
  key$2.Key = void 0;
129765
- const util_1 = __importDefault(require$$0$9);
132194
+ const util_1 = __importDefault(require$$0$8);
129766
132195
  const error_1 = requireError$5();
129767
132196
  const utils_1 = requireUtils();
129768
132197
  const key_1 = requireKey$2();
@@ -129867,9 +132296,9 @@ function requireRole() {
129867
132296
  value: true
129868
132297
  });
129869
132298
  role.SuccinctRoles = role.DelegatedRole = role.Role = role.TOP_LEVEL_ROLE_NAMES = void 0;
129870
- const crypto_1 = __importDefault(require$$0$k);
132299
+ const crypto_1 = __importDefault(require$$0$m);
129871
132300
  const minimatch_1 = requireCommonjs$f();
129872
- const util_1 = __importDefault(require$$0$9);
132301
+ const util_1 = __importDefault(require$$0$8);
129873
132302
  const error_1 = requireError$5();
129874
132303
  const utils_1 = requireUtils();
129875
132304
  role.TOP_LEVEL_ROLE_NAMES = ['root', 'targets', 'snapshot', 'timestamp'];
@@ -130192,7 +132621,7 @@ function requireRoot() {
130192
132621
  value: true
130193
132622
  });
130194
132623
  root.Root = void 0;
130195
- const util_1 = __importDefault(require$$0$9);
132624
+ const util_1 = __importDefault(require$$0$8);
130196
132625
  const base_1 = requireBase();
130197
132626
  const error_1 = requireError$5();
130198
132627
  const key_1 = requireKey$1();
@@ -130387,7 +132816,7 @@ function requireSnapshot() {
130387
132816
  value: true
130388
132817
  });
130389
132818
  snapshot.Snapshot = void 0;
130390
- const util_1 = __importDefault(require$$0$9);
132819
+ const util_1 = __importDefault(require$$0$8);
130391
132820
  const base_1 = requireBase();
130392
132821
  const file_1 = requireFile();
130393
132822
  const utils_1 = requireUtils();
@@ -130481,7 +132910,7 @@ function requireDelegations() {
130481
132910
  value: true
130482
132911
  });
130483
132912
  delegations.Delegations = void 0;
130484
- const util_1 = __importDefault(require$$0$9);
132913
+ const util_1 = __importDefault(require$$0$8);
130485
132914
  const error_1 = requireError$5();
130486
132915
  const key_1 = requireKey$1();
130487
132916
  const role_1 = requireRole();
@@ -130609,7 +133038,7 @@ function requireTargets() {
130609
133038
  value: true
130610
133039
  });
130611
133040
  targets.Targets = void 0;
130612
- const util_1 = __importDefault(require$$0$9);
133041
+ const util_1 = __importDefault(require$$0$8);
130613
133042
  const base_1 = requireBase();
130614
133043
  const delegations_1 = requireDelegations();
130615
133044
  const file_1 = requireFile();
@@ -130792,7 +133221,7 @@ function requireMetadata() {
130792
133221
  });
130793
133222
  metadata.Metadata = void 0;
130794
133223
  const canonical_json_1 = requireLib$5();
130795
- const util_1 = __importDefault(require$$0$9);
133224
+ const util_1 = __importDefault(require$$0$8);
130796
133225
  const base_1 = requireBase();
130797
133226
  const error_1 = requireError$5();
130798
133227
  const root_1 = requireRoot();
@@ -131104,9 +133533,9 @@ function requireTmpfile() {
131104
133533
  value: true
131105
133534
  });
131106
133535
  tmpfile.withTempFile = void 0;
131107
- const promises_1 = __importDefault(require$$0$f);
131108
- const os_1 = __importDefault(require$$0$g);
131109
- const path_1 = __importDefault(require$$0$a);
133536
+ const promises_1 = __importDefault(require$$0$j);
133537
+ const os_1 = __importDefault(require$$0$e);
133538
+ const path_1 = __importDefault(require$$0$c);
131110
133539
  // Invokes the given handler with the path to a temporary file. The file
131111
133540
  // is deleted after the handler returns.
131112
133541
  const withTempFile = async handler => withTempDir(async dir => handler(path_1.default.join(dir, 'tempfile')));
@@ -131143,9 +133572,9 @@ function requireFetcher$1() {
131143
133572
  });
131144
133573
  fetcher$1.DefaultFetcher = fetcher$1.BaseFetcher = void 0;
131145
133574
  const debug_1 = __importDefault(requireSrc$1());
131146
- const fs_1 = __importDefault(require$$0$b);
133575
+ const fs_1 = __importDefault(require$$0$9);
131147
133576
  const make_fetch_happen_1 = __importDefault(requireLib$7());
131148
- const util_1 = __importDefault(require$$0$9);
133577
+ const util_1 = __importDefault(require$$0$8);
131149
133578
  const error_1 = requireError$4();
131150
133579
  const tmpfile_1 = requireTmpfile();
131151
133580
  const log = (0, debug_1.default)('tuf:fetch');
@@ -131541,8 +133970,8 @@ function requireUpdater() {
131541
133970
  updater.Updater = void 0;
131542
133971
  const models_1 = requireDist$4();
131543
133972
  const debug_1 = __importDefault(requireSrc$1());
131544
- const fs = __importStar(require$$0$b);
131545
- const path = __importStar(require$$0$a);
133973
+ const fs = __importStar(require$$0$9);
133974
+ const path = __importStar(require$$0$c);
131546
133975
  const config_1 = requireConfig$1();
131547
133976
  const error_1 = requireError$4();
131548
133977
  const fetcher_1 = requireFetcher$1();
@@ -131955,7 +134384,7 @@ function requireTarget() {
131955
134384
  See the License for the specific language governing permissions and
131956
134385
  limitations under the License.
131957
134386
  */
131958
- const fs_1 = __importDefault(require$$0$b);
134387
+ const fs_1 = __importDefault(require$$0$9);
131959
134388
  const error_1 = requireError$3();
131960
134389
  // Downloads and returns the specified target from the provided TUF Updater.
131961
134390
  async function readTarget(tuf, targetPath) {
@@ -132048,8 +134477,8 @@ function requireClient$1() {
132048
134477
  See the License for the specific language governing permissions and
132049
134478
  limitations under the License.
132050
134479
  */
132051
- const fs_1 = __importDefault(require$$0$b);
132052
- const path_1 = __importDefault(require$$0$a);
134480
+ const fs_1 = __importDefault(require$$0$9);
134481
+ const path_1 = __importDefault(require$$0$c);
132053
134482
  const tuf_js_1 = requireDist$3();
132054
134483
  const _1 = requireDist$2();
132055
134484
  const target_1 = requireTarget();
@@ -133717,7 +136146,7 @@ function requireVerifier() {
133717
136146
  See the License for the specific language governing permissions and
133718
136147
  limitations under the License.
133719
136148
  */
133720
- const util_1 = require$$0$9;
136149
+ const util_1 = require$$0$8;
133721
136150
  const error_1 = requireError$2();
133722
136151
  const key_1 = requireKey();
133723
136152
  const policy_1 = requirePolicy();
@@ -134274,7 +136703,7 @@ var hasRequiredRegistry;
134274
136703
  function requireRegistry() {
134275
136704
  if (hasRequiredRegistry) return registry;
134276
136705
  hasRequiredRegistry = 1;
134277
- const crypto = require$$0$q;
136706
+ const crypto = require$$0$r;
134278
136707
  const PackageJson = requireLib$w();
134279
136708
  const pickManifest = requireLib$y();
134280
136709
  const ssri = requireLib$m();
@@ -137129,13 +139558,7 @@ function requireNode$1() {
137129
139558
 
137130
139559
  // if they're links, they match if the targets match
137131
139560
  if (this.isLink) {
137132
- if (node.isLink) {
137133
- if (this.target && node.target) {
137134
- return this.target.matches(node.target);
137135
- }
137136
- } else {
137137
- return false;
137138
- }
139561
+ return node.isLink && this.target.matches(node.target);
137139
139562
  }
137140
139563
 
137141
139564
  // if they're two project root nodes, they're different if the paths differ
@@ -138139,7 +140562,7 @@ function requireHash() {
138139
140562
  hasRequiredHash = 1;
138140
140563
  const {
138141
140564
  createHash
138142
- } = require$$0$k;
140565
+ } = require$$0$m;
138143
140566
  hash = ({
138144
140567
  name,
138145
140568
  source
@@ -138580,7 +141003,7 @@ function requireLib$2() {
138580
141003
  const Advisory = requireAdvisory();
138581
141004
  const {
138582
141005
  homedir
138583
- } = require$$0$g;
141006
+ } = require$$0$e;
138584
141007
  const jsonParse = requireLib$E();
138585
141008
  const _packument = Symbol('packument');
138586
141009
  const _cachePut = Symbol('cachePut');
@@ -140638,7 +143061,7 @@ var hasRequiredClient;
140638
143061
  function requireClient() {
140639
143062
  if (hasRequiredClient) return client;
140640
143063
  hasRequiredClient = 1;
140641
- const EE = require$$0$j;
143064
+ const EE = require$$0$b;
140642
143065
  const onProgress = Symbol('onProgress');
140643
143066
  const bars = Symbol('bars');
140644
143067
  const listener = Symbol('listener');
@@ -140754,7 +143177,7 @@ function requireTracker$1() {
140754
143177
  hasRequiredTracker$1 = 1;
140755
143178
  // The tracker class is intentionally as naive as possible. it is just
140756
143179
  // an ergonomic wrapper around process.emit('progress', ...)
140757
- const EE = require$$0$j;
143180
+ const EE = require$$0$b;
140758
143181
  class Tracker extends EE {
140759
143182
  constructor(name, key, total) {
140760
143183
  super();
@@ -146148,7 +148571,7 @@ function requireCommonAncestorPath() {
146148
148571
  parse,
146149
148572
  sep,
146150
148573
  normalize: norm
146151
- } = require$$0$a;
148574
+ } = require$$0$c;
146152
148575
  function* commonArrayMembers(a, b) {
146153
148576
  const [l, s] = a.length > b.length ? [a, b] : [b, a];
146154
148577
  for (const x of s) {
@@ -147854,7 +150277,7 @@ var hasRequiredRetirePath;
147854
150277
  function requireRetirePath() {
147855
150278
  if (hasRequiredRetirePath) return retirePath_1;
147856
150279
  hasRequiredRetirePath = 1;
147857
- const crypto = require$$0$q;
150280
+ const crypto = require$$0$r;
147858
150281
  const {
147859
150282
  dirname,
147860
150283
  basename,
@@ -149461,7 +151884,7 @@ function requireIsolatedReifier() {
149461
151884
  const {
149462
151885
  depth
149463
151886
  } = requireLib$3();
149464
- const crypto = require$$0$q;
151887
+ const crypto = require$$0$r;
149465
151888
 
149466
151889
  // cache complicated function results
149467
151890
  const memoize = fn => {
@@ -149988,7 +152411,7 @@ function requireArborist() {
149988
152411
  const PackumentCache = requirePackumentCache();
149989
152412
  const mixins = [requireTracker(), requireBuildIdealTree(), requireLoadActual(), requireLoadVirtual(), requireRebuild(), requireReify(), requireIsolatedReifier()];
149990
152413
  const _setWorkspaces = Symbol.for('setWorkspaces');
149991
- const Base = mixins.reduce((a, b) => b(a), require$$0$e);
152414
+ const Base = mixins.reduce((a, b) => b(a), require$$0$i);
149992
152415
 
149993
152416
  // if it's 1, 2, or 3, set it explicitly that.
149994
152417
  // if undefined or null, set it null
@@ -165013,8 +167436,8 @@ function requireNode() {
165013
167436
  (function (module) {
165014
167437
  var feature = requireFeature().default;
165015
167438
  var region = requireRegion().default;
165016
- var fs = require$$0$b;
165017
- var path = require$$0$a;
167439
+ var fs = require$$0$9;
167440
+ var path = require$$0$c;
165018
167441
  var BrowserslistError = requireError();
165019
167442
  var IS_SECTION = /^\s*\[(.+)]\s*$/;
165020
167443
  var CONFIG_PATTERN = /^browserslist-config-/;
@@ -165473,7 +167896,7 @@ function requireBrowserslist() {
165473
167896
  var agents = requireAgents().agents;
165474
167897
  var e2c = requireVersions();
165475
167898
  var jsEOL = require$$3;
165476
- var path = require$$0$a;
167899
+ var path = require$$0$c;
165477
167900
  var BrowserslistError = requireError();
165478
167901
  var env = requireNode();
165479
167902
  var parseWithoutCache = requireParse(); // Will load browser.js in webpack
@@ -168148,7 +170571,7 @@ if (nodeVersion) {
168148
170571
  }
168149
170572
  // Creates a yargs-parser instance using Node.js standard libraries:
168150
170573
  const env = process ? process.env : {};
168151
- const require$1 = Module.createRequire ? Module.createRequire((typeof document === 'undefined' ? require$$0$6.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('vendor.js', document.baseURI).href))) : undefined;
170574
+ const require$1 =Module.createRequire(require$$0$6.pathToFileURL(__filename).href)
168152
170575
  const parser = new YargsParser({
168153
170576
  cwd: process.cwd,
168154
170577
  env: () => {
@@ -169476,7 +171899,7 @@ var hasRequiredSupportsColor;
169476
171899
  function requireSupportsColor() {
169477
171900
  if (hasRequiredSupportsColor) return supportsColor_1;
169478
171901
  hasRequiredSupportsColor = 1;
169479
- const os = require$$0$g;
171902
+ const os = require$$0$e;
169480
171903
  const hasFlag = requireHasFlag();
169481
171904
  const env = process.env;
169482
171905
  let forceColor;
@@ -170165,6 +172588,8 @@ exports.open = open;
170165
172588
  exports.overrideSetExports = overrideSetExports;
170166
172589
  exports.packageurlJsExports = packageurlJsExports$1;
170167
172590
  exports.packageurlJsExports$1 = packageurlJsExports;
172591
+ exports.registryAuthTokenExports = registryAuthTokenExports;
172592
+ exports.registryUrl = registryUrl;
170168
172593
  exports.semverExports = semverExports;
170169
172594
  exports.srcExports = srcExports;
170170
172595
  exports.stackWithCauses = stackWithCauses;
@@ -170172,5 +172597,5 @@ exports.terminalLinkExports = terminalLinkExports;
170172
172597
  exports.updater = updater$1;
170173
172598
  exports.yargsParser = yargsParser;
170174
172599
  exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
170175
- //# debugId=3ec6e371-ddfa-4a70-ae6f-721e3182f605
172600
+ //# debugId=6199d008-a967-4b64-9966-4aeffaad1d3b
170176
172601
  //# sourceMappingURL=vendor.js.map