socket 0.14.21 → 0.14.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vendor.js CHANGED
@@ -1,22 +1,45 @@
1
1
  'use strict';
2
2
 
3
- var require$$0$3 = require('node:fs');
3
+ var require$$0$1 = require('node:fs');
4
4
  var require$$1 = require('node:path');
5
5
  var require$$2$4 = require('node:url');
6
- var require$$0$2 = require('node:process');
6
+ var require$$0 = require('node:process');
7
7
  var require$$2$1 = require('node:os');
8
8
  var require$$2 = require('node:tty');
9
9
  var require$$2$6 = require('node:child_process');
10
- var require$$0$4 = require('node:util');
10
+ var require$$0$2 = require('node:util');
11
11
  var require$$2$2 = require('graceful-fs');
12
- var require$$0$5 = require('rc');
12
+ var require$$0$3 = require('rc');
13
13
  var require$$2$3 = require('registry-auth-token');
14
14
  var require$$3 = require('semver');
15
+ var require$$4 = require('ini');
15
16
  var require$$2$5 = require('emoji-regex');
17
+ var require$$4$1 = require('cli-boxes');
16
18
  var require$$6 = require('ansi-align');
17
19
  var require$$2$7 = require('signal-exit');
18
- var require$$1$1 = require('node:fs/promises');
19
- var require$$2$8 = require('node:buffer');
20
+ var require$$3$1 = require('cli-spinners');
21
+ var require$$1$1 = require('supports-hyperlinks');
22
+ var require$$1$3 = require('node:fs/promises');
23
+ var require$$1$2 = require('@npmcli/package-json');
24
+ var require$$7 = require('npm-package-arg');
25
+ var require$$2$9 = require('cacache');
26
+ var require$$4$2 = require('fs-extra');
27
+ var require$$4$3 = require('libnpmpack');
28
+ var require$$5$1 = require('make-fetch-happen');
29
+ var require$$6$2 = require('normalize-package-data');
30
+ var require$$8$1 = require('packageurl-js');
31
+ var require$$5 = require('pacote');
32
+ var require$$11 = require('spdx-correct');
33
+ var require$$12 = require('spdx-expression-parse');
34
+ var require$$13 = require('validate-npm-package-name');
35
+ var require$$0$4 = require('node:module');
36
+ var require$$2$8 = require('@yarnpkg/extensions');
37
+ var require$$3$2 = require('fast-sort');
38
+ var require$$6$1 = require('picomatch');
39
+ var require$$8 = require('which');
40
+ var require$$10$1 = require('browserslist');
41
+ var require$$0$5 = require('prettier');
42
+ var require$$2$a = require('node:buffer');
20
43
 
21
44
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
22
45
  function getAugmentedNamespace(n) {
@@ -300,19 +323,19 @@ function assembleStyles$1() {
300
323
  const ansiStyles$2 = assembleStyles$1();
301
324
  ansiStyles$3.default = ansiStyles$2;
302
325
 
303
- var supportsColor$3 = {};
326
+ var supportsColor$1 = {};
304
327
 
305
- Object.defineProperty(supportsColor$3, "__esModule", {
328
+ Object.defineProperty(supportsColor$1, "__esModule", {
306
329
  value: true
307
330
  });
308
- supportsColor$3.createSupportsColor = createSupportsColor;
309
- supportsColor$3.default = void 0;
310
- var _nodeProcess$m = require$$0$2;
331
+ supportsColor$1.createSupportsColor = createSupportsColor;
332
+ supportsColor$1.default = void 0;
333
+ var _nodeProcess$m = require$$0;
311
334
  var _nodeOs$4 = require$$2$1;
312
335
  var _nodeTty = require$$2;
313
336
  // From: https://github.com/sindresorhus/has-flag/blob/main/index.js
314
337
  /// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {
315
- function hasFlag$3(flag, argv = globalThis.Deno ? globalThis.Deno.args : _nodeProcess$m.argv) {
338
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : _nodeProcess$m.argv) {
316
339
  const prefix = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--';
317
340
  const position = argv.indexOf(prefix + flag);
318
341
  const terminatorPosition = argv.indexOf('--');
@@ -322,9 +345,9 @@ const {
322
345
  env: env$2
323
346
  } = _nodeProcess$m;
324
347
  let flagForceColor;
325
- if (hasFlag$3('no-color') || hasFlag$3('no-colors') || hasFlag$3('color=false') || hasFlag$3('color=never')) {
348
+ if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) {
326
349
  flagForceColor = 0;
327
- } else if (hasFlag$3('color') || hasFlag$3('colors') || hasFlag$3('color=true') || hasFlag$3('color=always')) {
350
+ } else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) {
328
351
  flagForceColor = 1;
329
352
  }
330
353
  function envForceColor() {
@@ -338,7 +361,7 @@ function envForceColor() {
338
361
  return env$2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env$2.FORCE_COLOR, 10), 3);
339
362
  }
340
363
  }
341
- function translateLevel$1(level) {
364
+ function translateLevel(level) {
342
365
  if (level === 0) {
343
366
  return false;
344
367
  }
@@ -362,10 +385,10 @@ function _supportsColor(haveStream, {
362
385
  return 0;
363
386
  }
364
387
  if (sniffFlags) {
365
- if (hasFlag$3('color=16m') || hasFlag$3('color=full') || hasFlag$3('color=truecolor')) {
388
+ if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) {
366
389
  return 3;
367
390
  }
368
- if (hasFlag$3('color=256')) {
391
+ if (hasFlag('color=256')) {
369
392
  return 2;
370
393
  }
371
394
  }
@@ -439,9 +462,9 @@ function createSupportsColor(stream, options = {}) {
439
462
  streamIsTTY: stream && stream.isTTY,
440
463
  ...options
441
464
  });
442
- return translateLevel$1(level);
465
+ return translateLevel(level);
443
466
  }
444
- const supportsColor$2 = {
467
+ const supportsColor = {
445
468
  stdout: createSupportsColor({
446
469
  isTTY: _nodeTty.isatty(1)
447
470
  }),
@@ -449,7 +472,7 @@ const supportsColor$2 = {
449
472
  isTTY: _nodeTty.isatty(2)
450
473
  })
451
474
  };
452
- supportsColor$3.default = supportsColor$2;
475
+ supportsColor$1.default = supportsColor;
453
476
 
454
477
  var utilities = {};
455
478
 
@@ -546,7 +569,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
546
569
  });
547
570
  exports.supportsColorStderr = exports.supportsColor = void 0;
548
571
  var _ansiStyles = ansiStyles$3;
549
- var _supportsColor = supportsColor$3;
572
+ var _supportsColor = supportsColor$1;
550
573
  var _utilities = utilities;
551
574
  var _index = ansiStyles$3;
552
575
  const {
@@ -793,21 +816,21 @@ const attemptifySync = (fn, onError) => {
793
816
  /* EXPORT */
794
817
  attemptify.attemptifySync = attemptifySync;
795
818
 
796
- var constants$4 = {};
819
+ var constants$7 = {};
797
820
 
798
- Object.defineProperty(constants$4, "__esModule", {
821
+ Object.defineProperty(constants$7, "__esModule", {
799
822
  value: true
800
823
  });
801
- constants$4.NOOP = constants$4.LIMIT_FILES_DESCRIPTORS = constants$4.IS_USER_ROOT = void 0;
802
- var _nodeProcess$l = require$$0$2;
824
+ constants$7.NOOP = constants$7.LIMIT_FILES_DESCRIPTORS = constants$7.IS_USER_ROOT = void 0;
825
+ var _nodeProcess$l = require$$0;
803
826
  /* IMPORT */
804
827
 
805
828
  /* MAIN */
806
- constants$4.IS_USER_ROOT = _nodeProcess$l.getuid ? !_nodeProcess$l.getuid() : false;
807
- constants$4.LIMIT_FILES_DESCRIPTORS = 10000; //TODO: Fetch the real limit from the filesystem, somehow
829
+ constants$7.IS_USER_ROOT = _nodeProcess$l.getuid ? !_nodeProcess$l.getuid() : false;
830
+ constants$7.LIMIT_FILES_DESCRIPTORS = 10000; //TODO: Fetch the real limit from the filesystem, somehow
808
831
  const NOOP$1 = () => undefined;
809
832
  /* EXPORT */
810
- constants$4.NOOP = NOOP$1;
833
+ constants$7.NOOP = NOOP$1;
811
834
 
812
835
  var handlers = {};
813
836
 
@@ -815,7 +838,7 @@ Object.defineProperty(handlers, "__esModule", {
815
838
  value: true
816
839
  });
817
840
  handlers.default = void 0;
818
- var _constants$9 = constants$4;
841
+ var _constants$9 = constants$7;
819
842
  /* IMPORT */
820
843
 
821
844
  /* MAIN */
@@ -858,7 +881,7 @@ Object.defineProperty(retryify_queue, "__esModule", {
858
881
  value: true
859
882
  });
860
883
  retryify_queue.default = void 0;
861
- var _constants$8 = constants$4;
884
+ var _constants$8 = constants$7;
862
885
  /* IMPORT */
863
886
 
864
887
  /* MAIN */
@@ -969,10 +992,10 @@ Object.defineProperty(dist, "__esModule", {
969
992
  value: true
970
993
  });
971
994
  dist.default = void 0;
972
- var _nodeFs$5 = require$$0$3;
973
- var _nodeUtil$5 = require$$0$4;
995
+ var _nodeFs$5 = require$$0$1;
996
+ var _nodeUtil$5 = require$$0$2;
974
997
  var _attemptify = attemptify;
975
- var _constants$7 = constants$4;
998
+ var _constants$7 = constants$7;
976
999
  var _handlers = handlers;
977
1000
  var _retryify = retryify;
978
1001
  /* IMPORT */
@@ -1024,33 +1047,33 @@ const FS = {
1024
1047
  /* EXPORT */
1025
1048
  dist.default = FS;
1026
1049
 
1027
- var constants$3 = {};
1050
+ var constants$6 = {};
1028
1051
 
1029
- Object.defineProperty(constants$3, "__esModule", {
1052
+ Object.defineProperty(constants$6, "__esModule", {
1030
1053
  value: true
1031
1054
  });
1032
- constants$3.NOOP = constants$3.LIMIT_FILES_DESCRIPTORS = constants$3.LIMIT_BASENAME_LENGTH = constants$3.IS_USER_ROOT = constants$3.IS_POSIX = constants$3.DEFAULT_WRITE_OPTIONS = constants$3.DEFAULT_USER_UID = constants$3.DEFAULT_USER_GID = constants$3.DEFAULT_TIMEOUT_SYNC = constants$3.DEFAULT_TIMEOUT_ASYNC = constants$3.DEFAULT_READ_OPTIONS = constants$3.DEFAULT_FOLDER_MODE = constants$3.DEFAULT_FILE_MODE = constants$3.DEFAULT_ENCODING = void 0;
1055
+ constants$6.NOOP = constants$6.LIMIT_FILES_DESCRIPTORS = constants$6.LIMIT_BASENAME_LENGTH = constants$6.IS_USER_ROOT = constants$6.IS_POSIX = constants$6.DEFAULT_WRITE_OPTIONS = constants$6.DEFAULT_USER_UID = constants$6.DEFAULT_USER_GID = constants$6.DEFAULT_TIMEOUT_SYNC = constants$6.DEFAULT_TIMEOUT_ASYNC = constants$6.DEFAULT_READ_OPTIONS = constants$6.DEFAULT_FOLDER_MODE = constants$6.DEFAULT_FILE_MODE = constants$6.DEFAULT_ENCODING = void 0;
1033
1056
  var _nodeOs$3 = require$$2$1;
1034
- var _nodeProcess$k = require$$0$2;
1057
+ var _nodeProcess$k = require$$0;
1035
1058
  /* IMPORT */
1036
1059
 
1037
1060
  /* MAIN */
1038
- constants$3.DEFAULT_ENCODING = 'utf8';
1039
- constants$3.DEFAULT_FILE_MODE = 0o666;
1040
- constants$3.DEFAULT_FOLDER_MODE = 0o777;
1041
- constants$3.DEFAULT_READ_OPTIONS = {};
1042
- constants$3.DEFAULT_WRITE_OPTIONS = {};
1043
- constants$3.DEFAULT_USER_UID = _nodeOs$3.userInfo().uid;
1044
- constants$3.DEFAULT_USER_GID = _nodeOs$3.userInfo().gid;
1045
- constants$3.DEFAULT_TIMEOUT_ASYNC = 7500;
1046
- constants$3.DEFAULT_TIMEOUT_SYNC = 1000;
1047
- constants$3.IS_POSIX = !!_nodeProcess$k.getuid;
1048
- constants$3.IS_USER_ROOT = _nodeProcess$k.getuid ? !_nodeProcess$k.getuid() : false;
1049
- constants$3.LIMIT_BASENAME_LENGTH = 128; //TODO: Fetch the real limit from the filesystem //TODO: Fetch the whole-path length limit too
1050
- constants$3.LIMIT_FILES_DESCRIPTORS = 10000; //TODO: Fetch the real limit from the filesystem
1061
+ constants$6.DEFAULT_ENCODING = 'utf8';
1062
+ constants$6.DEFAULT_FILE_MODE = 0o666;
1063
+ constants$6.DEFAULT_FOLDER_MODE = 0o777;
1064
+ constants$6.DEFAULT_READ_OPTIONS = {};
1065
+ constants$6.DEFAULT_WRITE_OPTIONS = {};
1066
+ constants$6.DEFAULT_USER_UID = _nodeOs$3.userInfo().uid;
1067
+ constants$6.DEFAULT_USER_GID = _nodeOs$3.userInfo().gid;
1068
+ constants$6.DEFAULT_TIMEOUT_ASYNC = 7500;
1069
+ constants$6.DEFAULT_TIMEOUT_SYNC = 1000;
1070
+ constants$6.IS_POSIX = !!_nodeProcess$k.getuid;
1071
+ constants$6.IS_USER_ROOT = _nodeProcess$k.getuid ? !_nodeProcess$k.getuid() : false;
1072
+ constants$6.LIMIT_BASENAME_LENGTH = 128; //TODO: Fetch the real limit from the filesystem //TODO: Fetch the whole-path length limit too
1073
+ constants$6.LIMIT_FILES_DESCRIPTORS = 10000; //TODO: Fetch the real limit from the filesystem
1051
1074
  const NOOP = () => {};
1052
1075
  /* EXPORT */
1053
- constants$3.NOOP = NOOP;
1076
+ constants$6.NOOP = NOOP;
1054
1077
 
1055
1078
  var lang = {};
1056
1079
 
@@ -1121,18 +1144,18 @@ var node = {};
1121
1144
 
1122
1145
  var interceptor = {};
1123
1146
 
1124
- var constants$2 = {};
1147
+ var constants$5 = {};
1125
1148
 
1126
- Object.defineProperty(constants$2, "__esModule", {
1149
+ Object.defineProperty(constants$5, "__esModule", {
1127
1150
  value: true
1128
1151
  });
1129
- constants$2.IS_WINDOWS = constants$2.IS_LINUX = void 0;
1130
- var _nodeProcess$j = require$$0$2;
1152
+ constants$5.IS_WINDOWS = constants$5.IS_LINUX = void 0;
1153
+ var _nodeProcess$j = require$$0;
1131
1154
  /* IMPORT */
1132
1155
 
1133
1156
  /* MAIN */
1134
- constants$2.IS_LINUX = _nodeProcess$j.platform === 'linux';
1135
- constants$2.IS_WINDOWS = _nodeProcess$j.platform === 'win32';
1157
+ constants$5.IS_LINUX = _nodeProcess$j.platform === 'linux';
1158
+ constants$5.IS_WINDOWS = _nodeProcess$j.platform === 'win32';
1136
1159
 
1137
1160
  var signals = {};
1138
1161
 
@@ -1140,7 +1163,7 @@ Object.defineProperty(signals, "__esModule", {
1140
1163
  value: true
1141
1164
  });
1142
1165
  signals.default = void 0;
1143
- var _constants$6 = constants$2;
1166
+ var _constants$6 = constants$5;
1144
1167
  /* IMPORT */
1145
1168
 
1146
1169
  /* MAIN */
@@ -1159,8 +1182,8 @@ Object.defineProperty(interceptor, "__esModule", {
1159
1182
  value: true
1160
1183
  });
1161
1184
  interceptor.default = void 0;
1162
- var _nodeProcess$i = require$$0$2;
1163
- var _constants$5 = constants$2;
1185
+ var _nodeProcess$i = require$$0;
1186
+ var _constants$5 = constants$5;
1164
1187
  var _signals = signals;
1165
1188
  /* IMPORT */
1166
1189
 
@@ -1228,7 +1251,7 @@ temp.default = void 0;
1228
1251
  var _nodePath$8 = require$$1;
1229
1252
  var _stubbornFs$1 = dist;
1230
1253
  var _whenExit = node;
1231
- var _constants$4 = constants$3;
1254
+ var _constants$4 = constants$6;
1232
1255
  /* IMPORT */
1233
1256
 
1234
1257
  /* MAIN */
@@ -1290,7 +1313,7 @@ dist$1.writeFile = writeFile;
1290
1313
  dist$1.writeFileSync = writeFileSync;
1291
1314
  var _nodePath$7 = require$$1;
1292
1315
  var _stubbornFs = dist;
1293
- var _constants$3 = constants$3;
1316
+ var _constants$3 = constants$6;
1294
1317
  var _lang = lang;
1295
1318
  var _scheduler = scheduler;
1296
1319
  var _temp = temp;
@@ -1488,11 +1511,11 @@ dotProp.escapePath = escapePath;
1488
1511
  dotProp.getProperty = getProperty;
1489
1512
  dotProp.hasProperty = hasProperty;
1490
1513
  dotProp.setProperty = setProperty;
1491
- const isObject$1 = value => {
1514
+ const isObject$3 = value => {
1492
1515
  const type = typeof value;
1493
1516
  return value !== null && (type === 'object' || type === 'function');
1494
1517
  };
1495
- const isEmptyObject = value => isObject$1(value) && Object.keys(value).length === 0;
1518
+ const isEmptyObject = value => isObject$3(value) && Object.keys(value).length === 0;
1496
1519
  const disallowedKeys = new Set(['__proto__', 'prototype', 'constructor']);
1497
1520
  const digits = new Set('0123456789');
1498
1521
  function getPathSegments(path) {
@@ -1634,7 +1657,7 @@ function assertNotStringIndex(object, key) {
1634
1657
  }
1635
1658
  }
1636
1659
  function getProperty(object, path, value) {
1637
- if (!isObject$1(object) || typeof path !== 'string') {
1660
+ if (!isObject$3(object) || typeof path !== 'string') {
1638
1661
  return value === undefined ? object : value;
1639
1662
  }
1640
1663
  const pathArray = getPathSegments(path);
@@ -1663,7 +1686,7 @@ function getProperty(object, path, value) {
1663
1686
  return object === undefined ? value : object;
1664
1687
  }
1665
1688
  function setProperty(object, path, value) {
1666
- if (!isObject$1(object) || typeof path !== 'string') {
1689
+ if (!isObject$3(object) || typeof path !== 'string') {
1667
1690
  return object;
1668
1691
  }
1669
1692
  const root = object;
@@ -1673,7 +1696,7 @@ function setProperty(object, path, value) {
1673
1696
  assertNotStringIndex(object, key);
1674
1697
  if (index === pathArray.length - 1) {
1675
1698
  object[key] = value;
1676
- } else if (!isObject$1(object[key])) {
1699
+ } else if (!isObject$3(object[key])) {
1677
1700
  object[key] = typeof pathArray[index + 1] === 'number' ? [] : {};
1678
1701
  }
1679
1702
  object = object[key];
@@ -1681,7 +1704,7 @@ function setProperty(object, path, value) {
1681
1704
  return root;
1682
1705
  }
1683
1706
  function deleteProperty(object, path) {
1684
- if (!isObject$1(object) || typeof path !== 'string') {
1707
+ if (!isObject$3(object) || typeof path !== 'string') {
1685
1708
  return false;
1686
1709
  }
1687
1710
  const pathArray = getPathSegments(path);
@@ -1693,13 +1716,13 @@ function deleteProperty(object, path) {
1693
1716
  return true;
1694
1717
  }
1695
1718
  object = object[key];
1696
- if (!isObject$1(object)) {
1719
+ if (!isObject$3(object)) {
1697
1720
  return false;
1698
1721
  }
1699
1722
  }
1700
1723
  }
1701
1724
  function hasProperty(object, path) {
1702
- if (!isObject$1(object) || typeof path !== 'string') {
1725
+ if (!isObject$3(object) || typeof path !== 'string') {
1703
1726
  return false;
1704
1727
  }
1705
1728
  const pathArray = getPathSegments(path);
@@ -1707,7 +1730,7 @@ function hasProperty(object, path) {
1707
1730
  return false;
1708
1731
  }
1709
1732
  for (const key of pathArray) {
1710
- if (!isObject$1(object) || !(key in object) || isStringIndex(object, key)) {
1733
+ if (!isObject$3(object) || !(key in object) || isStringIndex(object, key)) {
1711
1734
  return false;
1712
1735
  }
1713
1736
  object = object[key];
@@ -1744,7 +1767,7 @@ function stringifyPath(pathSegments) {
1744
1767
  return result;
1745
1768
  }
1746
1769
  function* deepKeysIterator(object, currentPath = []) {
1747
- if (!isObject$1(object) || isEmptyObject(object)) {
1770
+ if (!isObject$3(object) || isEmptyObject(object)) {
1748
1771
  if (currentPath.length > 0) {
1749
1772
  yield stringifyPath(currentPath);
1750
1773
  }
@@ -1876,7 +1899,7 @@ const MAX_SAFE_COMPONENT_LENGTH = 16;
1876
1899
  // the shortest version with a build 0.0.0+BUILD.
1877
1900
  const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH$1 - 6;
1878
1901
  const RELEASE_TYPES = ['major', 'premajor', 'minor', 'preminor', 'patch', 'prepatch', 'prerelease'];
1879
- var constants$1 = {
1902
+ var constants$4 = {
1880
1903
  MAX_LENGTH: MAX_LENGTH$1,
1881
1904
  MAX_SAFE_COMPONENT_LENGTH,
1882
1905
  MAX_SAFE_BUILD_LENGTH,
@@ -1895,7 +1918,7 @@ var re$1 = {exports: {}};
1895
1918
  MAX_SAFE_COMPONENT_LENGTH,
1896
1919
  MAX_SAFE_BUILD_LENGTH,
1897
1920
  MAX_LENGTH
1898
- } = constants$1;
1921
+ } = constants$4;
1899
1922
  const debug = debug_1;
1900
1923
  exports = module.exports = {};
1901
1924
 
@@ -2089,7 +2112,7 @@ const debug = debug_1;
2089
2112
  const {
2090
2113
  MAX_LENGTH,
2091
2114
  MAX_SAFE_INTEGER
2092
- } = constants$1;
2115
+ } = constants$4;
2093
2116
  const {
2094
2117
  safeRe: re,
2095
2118
  t
@@ -2358,9 +2381,9 @@ let SemVer$2 = class SemVer {
2358
2381
  return this;
2359
2382
  }
2360
2383
  };
2361
- var semver = SemVer$2;
2384
+ var semver$2 = SemVer$2;
2362
2385
 
2363
- const SemVer$1 = semver;
2386
+ const SemVer$1 = semver$2;
2364
2387
  const parse$1 = (version, options, throwErrors = false) => {
2365
2388
  if (version instanceof SemVer$1) {
2366
2389
  return version;
@@ -2433,7 +2456,7 @@ const diff = (version1, version2) => {
2433
2456
  };
2434
2457
  var diff_1 = diff;
2435
2458
 
2436
- const SemVer = semver;
2459
+ const SemVer = semver$2;
2437
2460
  const compare$1 = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
2438
2461
  var compare_1 = compare$1;
2439
2462
 
@@ -2489,7 +2512,7 @@ class TimeoutError extends Error {
2489
2512
  }
2490
2513
  TimeoutError$1.TimeoutError = TimeoutError;
2491
2514
 
2492
- var merge = {};
2515
+ var merge$2 = {};
2493
2516
 
2494
2517
  var is = {};
2495
2518
 
@@ -2498,13 +2521,13 @@ Object.defineProperty(is, "__esModule", {
2498
2521
  });
2499
2522
  is.isObject = void 0;
2500
2523
  // eslint-disable-next-line @typescript-eslint/ban-types
2501
- const isObject = value => value !== null && typeof value === 'object';
2502
- is.isObject = isObject;
2524
+ const isObject$2 = value => value !== null && typeof value === 'object';
2525
+ is.isObject = isObject$2;
2503
2526
 
2504
- Object.defineProperty(merge, "__esModule", {
2527
+ Object.defineProperty(merge$2, "__esModule", {
2505
2528
  value: true
2506
2529
  });
2507
- merge.validateAndMerge = merge.mergeHooks = merge.mergeHeaders = merge.deepMerge = void 0;
2530
+ merge$2.validateAndMerge = merge$2.mergeHooks = merge$2.mergeHeaders = merge$2.deepMerge = void 0;
2508
2531
  var _is = is;
2509
2532
  const validateAndMerge = (...sources) => {
2510
2533
  for (const source of sources) {
@@ -2514,7 +2537,7 @@ const validateAndMerge = (...sources) => {
2514
2537
  }
2515
2538
  return deepMerge({}, ...sources);
2516
2539
  };
2517
- merge.validateAndMerge = validateAndMerge;
2540
+ merge$2.validateAndMerge = validateAndMerge;
2518
2541
  const mergeHeaders = (source1 = {}, source2 = {}) => {
2519
2542
  const result = new globalThis.Headers(source1);
2520
2543
  const isHeadersInstance = source2 instanceof globalThis.Headers;
@@ -2528,7 +2551,7 @@ const mergeHeaders = (source1 = {}, source2 = {}) => {
2528
2551
  }
2529
2552
  return result;
2530
2553
  };
2531
- merge.mergeHeaders = mergeHeaders;
2554
+ merge$2.mergeHeaders = mergeHeaders;
2532
2555
  function newHookValue(original, incoming, property) {
2533
2556
  return Object.hasOwn(incoming, property) && incoming[property] === undefined ? [] : deepMerge(original[property] ?? [], incoming[property] ?? []);
2534
2557
  }
@@ -2539,7 +2562,7 @@ const mergeHooks = (original = {}, incoming = {}) => ({
2539
2562
  beforeError: newHookValue(original, incoming, 'beforeError')
2540
2563
  });
2541
2564
  // TODO: Make this strongly-typed (no `any`).
2542
- merge.mergeHooks = mergeHooks;
2565
+ merge$2.mergeHooks = mergeHooks;
2543
2566
  const deepMerge = (...sources) => {
2544
2567
  let returnValue = {};
2545
2568
  let headers = {};
@@ -2572,17 +2595,17 @@ const deepMerge = (...sources) => {
2572
2595
  }
2573
2596
  return returnValue;
2574
2597
  };
2575
- merge.deepMerge = deepMerge;
2598
+ merge$2.deepMerge = deepMerge;
2576
2599
 
2577
2600
  var normalize = {};
2578
2601
 
2579
- var constants = {};
2602
+ var constants$3 = {};
2580
2603
 
2581
- Object.defineProperty(constants, "__esModule", {
2604
+ Object.defineProperty(constants$3, "__esModule", {
2582
2605
  value: true
2583
2606
  });
2584
- constants.supportsResponseStreams = constants.supportsRequestStreams = constants.supportsFormData = constants.supportsAbortController = constants.stop = constants.responseTypes = constants.requestOptionsRegistry = constants.requestMethods = constants.maxSafeTimeout = constants.kyOptionKeys = void 0;
2585
- constants.supportsRequestStreams = (() => {
2607
+ constants$3.supportsResponseStreams = constants$3.supportsRequestStreams = constants$3.supportsFormData = constants$3.supportsAbortController = constants$3.stop = constants$3.responseTypes = constants$3.requestOptionsRegistry = constants$3.requestMethods = constants$3.maxSafeTimeout = constants$3.kyOptionKeys = void 0;
2608
+ constants$3.supportsRequestStreams = (() => {
2586
2609
  let duplexAccessed = false;
2587
2610
  let hasContentType = false;
2588
2611
  const supportsReadableStream = typeof globalThis.ReadableStream === 'function';
@@ -2608,11 +2631,11 @@ constants.supportsRequestStreams = (() => {
2608
2631
  }
2609
2632
  return duplexAccessed && !hasContentType;
2610
2633
  })();
2611
- constants.supportsAbortController = typeof globalThis.AbortController === 'function';
2612
- constants.supportsResponseStreams = typeof globalThis.ReadableStream === 'function';
2613
- constants.supportsFormData = typeof globalThis.FormData === 'function';
2614
- constants.requestMethods = ['get', 'post', 'put', 'patch', 'head', 'delete'];
2615
- constants.responseTypes = {
2634
+ constants$3.supportsAbortController = typeof globalThis.AbortController === 'function';
2635
+ constants$3.supportsResponseStreams = typeof globalThis.ReadableStream === 'function';
2636
+ constants$3.supportsFormData = typeof globalThis.FormData === 'function';
2637
+ constants$3.requestMethods = ['get', 'post', 'put', 'patch', 'head', 'delete'];
2638
+ constants$3.responseTypes = {
2616
2639
  json: 'application/json',
2617
2640
  text: 'text/*',
2618
2641
  formData: 'multipart/form-data',
@@ -2620,9 +2643,9 @@ constants.responseTypes = {
2620
2643
  blob: '*/*'
2621
2644
  };
2622
2645
  // The maximum value of a 32bit int (see issue #117)
2623
- constants.maxSafeTimeout = 2_147_483_647;
2624
- constants.stop = Symbol('stop');
2625
- constants.kyOptionKeys = {
2646
+ constants$3.maxSafeTimeout = 2_147_483_647;
2647
+ constants$3.stop = Symbol('stop');
2648
+ constants$3.kyOptionKeys = {
2626
2649
  json: true,
2627
2650
  parseJson: true,
2628
2651
  stringifyJson: true,
@@ -2635,7 +2658,7 @@ constants.kyOptionKeys = {
2635
2658
  onDownloadProgress: true,
2636
2659
  fetch: true
2637
2660
  };
2638
- constants.requestOptionsRegistry = {
2661
+ constants$3.requestOptionsRegistry = {
2639
2662
  method: true,
2640
2663
  headers: true,
2641
2664
  body: true,
@@ -2658,7 +2681,7 @@ Object.defineProperty(normalize, "__esModule", {
2658
2681
  value: true
2659
2682
  });
2660
2683
  normalize.normalizeRetryOptions = normalize.normalizeRequestMethod = void 0;
2661
- var _constants$2 = constants;
2684
+ var _constants$2 = constants$3;
2662
2685
  const normalizeRequestMethod = input => _constants$2.requestMethods.includes(input) ? input.toUpperCase() : input;
2663
2686
  normalize.normalizeRequestMethod = normalizeRequestMethod;
2664
2687
  const retryMethods = ['get', 'put', 'head', 'delete', 'options', 'trace'];
@@ -2749,7 +2772,7 @@ Object.defineProperty(options$1, "__esModule", {
2749
2772
  value: true
2750
2773
  });
2751
2774
  options$1.findUnknownOptions = void 0;
2752
- var _constants$1 = constants;
2775
+ var _constants$1 = constants$3;
2753
2776
  const findUnknownOptions = (request, options) => {
2754
2777
  const unknownOptions = {};
2755
2778
  for (const key in options) {
@@ -2767,12 +2790,12 @@ Object.defineProperty(Ky$1, "__esModule", {
2767
2790
  Ky$1.Ky = void 0;
2768
2791
  var _HTTPError = HTTPError$1;
2769
2792
  var _TimeoutError = TimeoutError$1;
2770
- var _merge = merge;
2793
+ var _merge = merge$2;
2771
2794
  var _normalize = normalize;
2772
2795
  var _timeout = timeout$1;
2773
2796
  var _delay = delay$1;
2774
2797
  var _options$1 = options$1;
2775
- var _constants = constants;
2798
+ var _constants = constants$3;
2776
2799
  class Ky {
2777
2800
  static create(input, options) {
2778
2801
  const ky = new Ky(input, options);
@@ -3070,8 +3093,8 @@ Ky$1.Ky = Ky;
3070
3093
  });
3071
3094
  exports.default = void 0;
3072
3095
  var _Ky = Ky$1;
3073
- var _constants = constants;
3074
- var _merge = merge;
3096
+ var _constants = constants$3;
3097
+ var _merge = merge$2;
3075
3098
  var _HTTPError = HTTPError$1;
3076
3099
  var _TimeoutError = TimeoutError$1;
3077
3100
  /*! MIT License © Sindre Sorhus */
@@ -3105,7 +3128,7 @@ Object.defineProperty(registryUrl$1, "__esModule", {
3105
3128
  value: true
3106
3129
  });
3107
3130
  registryUrl$1.default = registryUrl;
3108
- var _rc = require$$0$5;
3131
+ var _rc = require$$0$3;
3109
3132
  function registryUrl(scope) {
3110
3133
  const result = _rc('npm', {
3111
3134
  registry: 'https://registry.npmjs.org/'
@@ -3253,252 +3276,15 @@ var isInstalledGlobally$1 = {};
3253
3276
 
3254
3277
  var globalDirectory$1 = {};
3255
3278
 
3256
- const {
3257
- hasOwnProperty
3258
- } = Object.prototype;
3259
- const encode = (obj, opt = {}) => {
3260
- if (typeof opt === 'string') {
3261
- opt = {
3262
- section: opt
3263
- };
3264
- }
3265
- opt.align = opt.align === true;
3266
- opt.newline = opt.newline === true;
3267
- opt.sort = opt.sort === true;
3268
- opt.whitespace = opt.whitespace === true || opt.align === true;
3269
- // The `typeof` check is required because accessing the `process` directly fails on browsers.
3270
- /* istanbul ignore next */
3271
- opt.platform = opt.platform || typeof process !== 'undefined' && process.platform;
3272
- opt.bracketedArray = opt.bracketedArray !== false;
3273
-
3274
- /* istanbul ignore next */
3275
- const eol = opt.platform === 'win32' ? '\r\n' : '\n';
3276
- const separator = opt.whitespace ? ' = ' : '=';
3277
- const children = [];
3278
- const keys = opt.sort ? Object.keys(obj).sort() : Object.keys(obj);
3279
- let padToChars = 0;
3280
- // If aligning on the separator, then padToChars is determined as follows:
3281
- // 1. Get the keys
3282
- // 2. Exclude keys pointing to objects unless the value is null or an array
3283
- // 3. Add `[]` to array keys
3284
- // 4. Ensure non empty set of keys
3285
- // 5. Reduce the set to the longest `safe` key
3286
- // 6. Get the `safe` length
3287
- if (opt.align) {
3288
- 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;
3289
- }
3290
- let out = '';
3291
- const arraySuffix = opt.bracketedArray ? '[]' : '';
3292
- for (const k of keys) {
3293
- const val = obj[k];
3294
- if (val && Array.isArray(val)) {
3295
- for (const item of val) {
3296
- out += safe(`${k}${arraySuffix}`).padEnd(padToChars, ' ') + separator + safe(item) + eol;
3297
- }
3298
- } else if (val && typeof val === 'object') {
3299
- children.push(k);
3300
- } else {
3301
- out += safe(k).padEnd(padToChars, ' ') + separator + safe(val) + eol;
3302
- }
3303
- }
3304
- if (opt.section && out.length) {
3305
- out = '[' + safe(opt.section) + ']' + (opt.newline ? eol + eol : eol) + out;
3306
- }
3307
- for (const k of children) {
3308
- const nk = splitSections(k, '.').join('\\.');
3309
- const section = (opt.section ? opt.section + '.' : '') + nk;
3310
- const child = encode(obj[k], {
3311
- ...opt,
3312
- section
3313
- });
3314
- if (out.length && child.length) {
3315
- out += eol;
3316
- }
3317
- out += child;
3318
- }
3319
- return out;
3320
- };
3321
- function splitSections(str, separator) {
3322
- var lastMatchIndex = 0;
3323
- var lastSeparatorIndex = 0;
3324
- var nextIndex = 0;
3325
- var sections = [];
3326
- do {
3327
- nextIndex = str.indexOf(separator, lastMatchIndex);
3328
- if (nextIndex !== -1) {
3329
- lastMatchIndex = nextIndex + separator.length;
3330
- if (nextIndex > 0 && str[nextIndex - 1] === '\\') {
3331
- continue;
3332
- }
3333
- sections.push(str.slice(lastSeparatorIndex, nextIndex));
3334
- lastSeparatorIndex = nextIndex + separator.length;
3335
- }
3336
- } while (nextIndex !== -1);
3337
- sections.push(str.slice(lastSeparatorIndex));
3338
- return sections;
3339
- }
3340
- const decode = (str, opt = {}) => {
3341
- opt.bracketedArray = opt.bracketedArray !== false;
3342
- const out = Object.create(null);
3343
- let p = out;
3344
- let section = null;
3345
- // section |key = value
3346
- const re = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
3347
- const lines = str.split(/[\r\n]+/g);
3348
- const duplicates = {};
3349
- for (const line of lines) {
3350
- if (!line || line.match(/^\s*[;#]/) || line.match(/^\s*$/)) {
3351
- continue;
3352
- }
3353
- const match = line.match(re);
3354
- if (!match) {
3355
- continue;
3356
- }
3357
- if (match[1] !== undefined) {
3358
- section = unsafe(match[1]);
3359
- if (section === '__proto__') {
3360
- // not allowed
3361
- // keep parsing the section, but don't attach it.
3362
- p = Object.create(null);
3363
- continue;
3364
- }
3365
- p = out[section] = out[section] || Object.create(null);
3366
- continue;
3367
- }
3368
- const keyRaw = unsafe(match[2]);
3369
- let isArray;
3370
- if (opt.bracketedArray) {
3371
- isArray = keyRaw.length > 2 && keyRaw.slice(-2) === '[]';
3372
- } else {
3373
- duplicates[keyRaw] = (duplicates?.[keyRaw] || 0) + 1;
3374
- isArray = duplicates[keyRaw] > 1;
3375
- }
3376
- const key = isArray ? keyRaw.slice(0, -2) : keyRaw;
3377
- if (key === '__proto__') {
3378
- continue;
3379
- }
3380
- const valueRaw = match[3] ? unsafe(match[4]) : true;
3381
- const value = valueRaw === 'true' || valueRaw === 'false' || valueRaw === 'null' ? JSON.parse(valueRaw) : valueRaw;
3382
-
3383
- // Convert keys with '[]' suffix to an array
3384
- if (isArray) {
3385
- if (!hasOwnProperty.call(p, key)) {
3386
- p[key] = [];
3387
- } else if (!Array.isArray(p[key])) {
3388
- p[key] = [p[key]];
3389
- }
3390
- }
3391
-
3392
- // safeguard against resetting a previously defined
3393
- // array by accidentally forgetting the brackets
3394
- if (Array.isArray(p[key])) {
3395
- p[key].push(value);
3396
- } else {
3397
- p[key] = value;
3398
- }
3399
- }
3400
-
3401
- // {a:{y:1},"a.b":{x:2}} --> {a:{y:1,b:{x:2}}}
3402
- // use a filter to return the keys that have to be deleted.
3403
- const remove = [];
3404
- for (const k of Object.keys(out)) {
3405
- if (!hasOwnProperty.call(out, k) || typeof out[k] !== 'object' || Array.isArray(out[k])) {
3406
- continue;
3407
- }
3408
-
3409
- // see if the parent section is also an object.
3410
- // if so, add it to that, and mark this one for deletion
3411
- const parts = splitSections(k, '.');
3412
- p = out;
3413
- const l = parts.pop();
3414
- const nl = l.replace(/\\\./g, '.');
3415
- for (const part of parts) {
3416
- if (part === '__proto__') {
3417
- continue;
3418
- }
3419
- if (!hasOwnProperty.call(p, part) || typeof p[part] !== 'object') {
3420
- p[part] = Object.create(null);
3421
- }
3422
- p = p[part];
3423
- }
3424
- if (p === out && nl === l) {
3425
- continue;
3426
- }
3427
- p[nl] = out[k];
3428
- remove.push(k);
3429
- }
3430
- for (const del of remove) {
3431
- delete out[del];
3432
- }
3433
- return out;
3434
- };
3435
- const isQuoted = val => {
3436
- return val.startsWith('"') && val.endsWith('"') || val.startsWith("'") && val.endsWith("'");
3437
- };
3438
- const safe = val => {
3439
- if (typeof val !== 'string' || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim()) {
3440
- return JSON.stringify(val);
3441
- }
3442
- return val.split(';').join('\\;').split('#').join('\\#');
3443
- };
3444
- const unsafe = (val, doUnesc) => {
3445
- val = (val || '').trim();
3446
- if (isQuoted(val)) {
3447
- // remove the single quotes before calling JSON.parse
3448
- if (val.charAt(0) === "'") {
3449
- val = val.slice(1, -1);
3450
- }
3451
- try {
3452
- val = JSON.parse(val);
3453
- } catch {
3454
- // ignore errors
3455
- }
3456
- } else {
3457
- // walk the val to find the first not-escaped ; character
3458
- let esc = false;
3459
- let unesc = '';
3460
- for (let i = 0, l = val.length; i < l; i++) {
3461
- const c = val.charAt(i);
3462
- if (esc) {
3463
- if ('\\;#'.indexOf(c) !== -1) {
3464
- unesc += c;
3465
- } else {
3466
- unesc += '\\' + c;
3467
- }
3468
- esc = false;
3469
- } else if (';#'.indexOf(c) !== -1) {
3470
- break;
3471
- } else if (c === '\\') {
3472
- esc = true;
3473
- } else {
3474
- unesc += c;
3475
- }
3476
- }
3477
- if (esc) {
3478
- unesc += '\\';
3479
- }
3480
- return unesc.trim();
3481
- }
3482
- return val;
3483
- };
3484
- var ini = {
3485
- parse: decode,
3486
- decode,
3487
- stringify: encode,
3488
- encode,
3489
- safe,
3490
- unsafe
3491
- };
3492
-
3493
3279
  Object.defineProperty(globalDirectory$1, "__esModule", {
3494
3280
  value: true
3495
3281
  });
3496
3282
  globalDirectory$1.default = void 0;
3497
- var _nodeProcess$h = require$$0$2;
3283
+ var _nodeProcess$h = require$$0;
3498
3284
  var _nodePath$5 = require$$1;
3499
3285
  var _nodeOs$1 = require$$2$1;
3500
- var _nodeFs$4 = require$$0$3;
3501
- var _ini = ini;
3286
+ var _nodeFs$4 = require$$0$1;
3287
+ var _ini = require$$4;
3502
3288
  const isWindows = _nodeProcess$h.platform === 'win32';
3503
3289
  const readRc = filePath => {
3504
3290
  try {
@@ -3613,7 +3399,7 @@ Object.defineProperty(isInstalledGlobally$1, "__esModule", {
3613
3399
  value: true
3614
3400
  });
3615
3401
  isInstalledGlobally$1.default = void 0;
3616
- var _nodeFs$3 = require$$0$3;
3402
+ var _nodeFs$3 = require$$0$1;
3617
3403
  var _nodePath$3 = require$$1;
3618
3404
  var _nodeUrl$3 = require$$2$4;
3619
3405
  var _globalDirectory = globalDirectory$1;
@@ -3826,106 +3612,6 @@ function widestLine(string) {
3826
3612
  return lineWidth;
3827
3613
  }
3828
3614
 
3829
- var cliBoxes$1 = {exports: {}};
3830
-
3831
- var single = {
3832
- topLeft: "┌",
3833
- top: "─",
3834
- topRight: "┐",
3835
- right: "│",
3836
- bottomRight: "┘",
3837
- bottom: "─",
3838
- bottomLeft: "└",
3839
- left: "│"
3840
- };
3841
- var double = {
3842
- topLeft: "╔",
3843
- top: "═",
3844
- topRight: "╗",
3845
- right: "║",
3846
- bottomRight: "╝",
3847
- bottom: "═",
3848
- bottomLeft: "╚",
3849
- left: "║"
3850
- };
3851
- var round = {
3852
- topLeft: "╭",
3853
- top: "─",
3854
- topRight: "╮",
3855
- right: "│",
3856
- bottomRight: "╯",
3857
- bottom: "─",
3858
- bottomLeft: "╰",
3859
- left: "│"
3860
- };
3861
- var bold = {
3862
- topLeft: "┏",
3863
- top: "━",
3864
- topRight: "┓",
3865
- right: "┃",
3866
- bottomRight: "┛",
3867
- bottom: "━",
3868
- bottomLeft: "┗",
3869
- left: "┃"
3870
- };
3871
- var singleDouble = {
3872
- topLeft: "╓",
3873
- top: "─",
3874
- topRight: "╖",
3875
- right: "║",
3876
- bottomRight: "╜",
3877
- bottom: "─",
3878
- bottomLeft: "╙",
3879
- left: "║"
3880
- };
3881
- var doubleSingle = {
3882
- topLeft: "╒",
3883
- top: "═",
3884
- topRight: "╕",
3885
- right: "│",
3886
- bottomRight: "╛",
3887
- bottom: "═",
3888
- bottomLeft: "╘",
3889
- left: "│"
3890
- };
3891
- var classic = {
3892
- topLeft: "+",
3893
- top: "-",
3894
- topRight: "+",
3895
- right: "|",
3896
- bottomRight: "+",
3897
- bottom: "-",
3898
- bottomLeft: "+",
3899
- left: "|"
3900
- };
3901
- var arrow$1 = {
3902
- topLeft: "↘",
3903
- top: "↓",
3904
- topRight: "↙",
3905
- right: "←",
3906
- bottomRight: "↖",
3907
- bottom: "↑",
3908
- bottomLeft: "↗",
3909
- left: "→"
3910
- };
3911
- var require$$0$1 = {
3912
- single: single,
3913
- double: double,
3914
- round: round,
3915
- bold: bold,
3916
- singleDouble: singleDouble,
3917
- doubleSingle: doubleSingle,
3918
- classic: classic,
3919
- arrow: arrow$1
3920
- };
3921
-
3922
- const cliBoxes = require$$0$1;
3923
- cliBoxes$1.exports = cliBoxes;
3924
- // TODO: Remove this for the next major release
3925
- cliBoxes$1.exports.default = cliBoxes;
3926
-
3927
- var cliBoxesExports = cliBoxes$1.exports;
3928
-
3929
3615
  var camelcase = {};
3930
3616
 
3931
3617
  Object.defineProperty(camelcase, "__esModule", {
@@ -4399,11 +4085,11 @@ Object.defineProperty(boxen$1, "__esModule", {
4399
4085
  });
4400
4086
  boxen$1._borderStyles = _cliBoxes;
4401
4087
  boxen$1.default = boxen;
4402
- var _nodeProcess$g = require$$0$2;
4088
+ var _nodeProcess$g = require$$0;
4403
4089
  var _stringWidth$1 = stringWidth$3;
4404
4090
  var _chalk$3 = source;
4405
4091
  var _widestLine = widestLine$1;
4406
- var _cliBoxes = cliBoxesExports;
4092
+ var _cliBoxes = require$$4$1;
4407
4093
  var _camelcase = camelcase;
4408
4094
  var _ansiAlign = require$$6;
4409
4095
  var _wrapAnsi = wrapAnsi$1;
@@ -4732,7 +4418,7 @@ Object.defineProperty(isInCi$1, "__esModule", {
4732
4418
  value: true
4733
4419
  });
4734
4420
  isInCi$1.default = void 0;
4735
- var _nodeProcess$f = require$$0$2;
4421
+ var _nodeProcess$f = require$$0;
4736
4422
  const isInCi = _nodeProcess$f.env.CI !== '0' && _nodeProcess$f.env.CI !== 'false' && ('CI' in _nodeProcess$f.env || 'CONTINUOUS_INTEGRATION' in _nodeProcess$f.env || Object.keys(_nodeProcess$f.env).some(key => key.startsWith('CI_')));
4737
4423
  isInCi$1.default = isInCi;
4738
4424
 
@@ -4826,11 +4512,11 @@ Object.defineProperty(updateNotifier$1, "__esModule", {
4826
4512
  value: true
4827
4513
  });
4828
4514
  updateNotifier$1.default = void 0;
4829
- var _nodeProcess$e = require$$0$2;
4515
+ var _nodeProcess$e = require$$0;
4830
4516
  var _nodeChild_process$5 = require$$2$6;
4831
4517
  var _nodeUrl$2 = require$$2$4;
4832
4518
  var _nodePath$2 = require$$1;
4833
- var _nodeUtil$4 = require$$0$4;
4519
+ var _nodeUtil$4 = require$$0$2;
4834
4520
  var _configstore = configstore;
4835
4521
  var _chalk$2 = source;
4836
4522
  var _diff = diff_1;
@@ -5001,13 +4687,13 @@ var dependencies = {};
5001
4687
  exports.r = redent;
5002
4688
  exports.t = trimNewlines;
5003
4689
  exports.y = void 0;
5004
- var _util = _interopRequireWildcard2(require$$0$4, true);
4690
+ var _util = _interopRequireWildcard2(require$$0$2, true);
5005
4691
  var _path = require$$1;
5006
- var _fs = require$$0$3;
4692
+ var _fs = require$$0$1;
5007
4693
  var _nodePath = require$$1;
5008
- var _nodeProcess = require$$0$2;
4694
+ var _nodeProcess = require$$0;
5009
4695
  var _nodeUrl = require$$2$4;
5010
- var _nodeFs = require$$0$3;
4696
+ var _nodeFs = require$$0$1;
5011
4697
  var _os = require$$2$1;
5012
4698
  var _url = require$$2$4;
5013
4699
  function camelCase$1(str) {
@@ -13060,7 +12746,7 @@ Object.defineProperty(options, "__esModule", {
13060
12746
  value: true
13061
12747
  });
13062
12748
  options.buildOptions = void 0;
13063
- var _nodeProcess$d = require$$0$2;
12749
+ var _nodeProcess$d = require$$0;
13064
12750
  var _nodePath$1 = require$$1;
13065
12751
  var _nodeUrl$1 = require$$2$4;
13066
12752
  var _dependencies$2 = dependencies;
@@ -13230,7 +12916,7 @@ Object.defineProperty(validate$1, "__esModule", {
13230
12916
  value: true
13231
12917
  });
13232
12918
  validate$1.validate = validate$1.checkUnknownFlags = validate$1.checkMissingRequiredFlags = void 0;
13233
- var _nodeProcess$c = require$$0$2;
12919
+ var _nodeProcess$c = require$$0;
13234
12920
  var _utils = utils;
13235
12921
  const validateFlags = (flags, options) => {
13236
12922
  for (const [flagKey, flagValue] of Object.entries(options.flags)) {
@@ -13337,7 +13023,7 @@ Object.defineProperty(build, "__esModule", {
13337
13023
  value: true
13338
13024
  });
13339
13025
  build.default = void 0;
13340
- var _nodeProcess$b = require$$0$2;
13026
+ var _nodeProcess$b = require$$0;
13341
13027
  var _dependencies = dependencies;
13342
13028
  var _options = options;
13343
13029
  var _parser = parser;
@@ -13544,7 +13230,7 @@ Object.defineProperty(restoreCursor$1, "__esModule", {
13544
13230
  value: true
13545
13231
  });
13546
13232
  restoreCursor$1.default = void 0;
13547
- var _nodeProcess$a = require$$0$2;
13233
+ var _nodeProcess$a = require$$0;
13548
13234
  var _onetime = onetime$1;
13549
13235
  var _signalExit = require$$2$7;
13550
13236
  const terminal = _nodeProcess$a.stderr.isTTY ? _nodeProcess$a.stderr : _nodeProcess$a.stdout.isTTY ? _nodeProcess$a.stdout : undefined;
@@ -13561,7 +13247,7 @@ Object.defineProperty(cliCursor$1, "__esModule", {
13561
13247
  value: true
13562
13248
  });
13563
13249
  cliCursor$1.default = void 0;
13564
- var _nodeProcess$9 = require$$0$2;
13250
+ var _nodeProcess$9 = require$$0;
13565
13251
  var _restoreCursor = restoreCursor$1;
13566
13252
  let isHidden = false;
13567
13253
  const cliCursor = {};
@@ -13592,1727 +13278,6 @@ cliCursor.toggle = (force, writableStream) => {
13592
13278
  };
13593
13279
  cliCursor$1.default = cliCursor;
13594
13280
 
13595
- var dots = {
13596
- interval: 80,
13597
- frames: [
13598
- "⠋",
13599
- "⠙",
13600
- "⠹",
13601
- "⠸",
13602
- "⠼",
13603
- "⠴",
13604
- "⠦",
13605
- "⠧",
13606
- "⠇",
13607
- "⠏"
13608
- ]
13609
- };
13610
- var dots2 = {
13611
- interval: 80,
13612
- frames: [
13613
- "⣾",
13614
- "⣽",
13615
- "⣻",
13616
- "⢿",
13617
- "⡿",
13618
- "⣟",
13619
- "⣯",
13620
- "⣷"
13621
- ]
13622
- };
13623
- var dots3 = {
13624
- interval: 80,
13625
- frames: [
13626
- "⠋",
13627
- "⠙",
13628
- "⠚",
13629
- "⠞",
13630
- "⠖",
13631
- "⠦",
13632
- "⠴",
13633
- "⠲",
13634
- "⠳",
13635
- "⠓"
13636
- ]
13637
- };
13638
- var dots4 = {
13639
- interval: 80,
13640
- frames: [
13641
- "⠄",
13642
- "⠆",
13643
- "⠇",
13644
- "⠋",
13645
- "⠙",
13646
- "⠸",
13647
- "⠰",
13648
- "⠠",
13649
- "⠰",
13650
- "⠸",
13651
- "⠙",
13652
- "⠋",
13653
- "⠇",
13654
- "⠆"
13655
- ]
13656
- };
13657
- var dots5 = {
13658
- interval: 80,
13659
- frames: [
13660
- "⠋",
13661
- "⠙",
13662
- "⠚",
13663
- "⠒",
13664
- "⠂",
13665
- "⠂",
13666
- "⠒",
13667
- "⠲",
13668
- "⠴",
13669
- "⠦",
13670
- "⠖",
13671
- "⠒",
13672
- "⠐",
13673
- "⠐",
13674
- "⠒",
13675
- "⠓",
13676
- "⠋"
13677
- ]
13678
- };
13679
- var dots6 = {
13680
- interval: 80,
13681
- frames: [
13682
- "⠁",
13683
- "⠉",
13684
- "⠙",
13685
- "⠚",
13686
- "⠒",
13687
- "⠂",
13688
- "⠂",
13689
- "⠒",
13690
- "⠲",
13691
- "⠴",
13692
- "⠤",
13693
- "⠄",
13694
- "⠄",
13695
- "⠤",
13696
- "⠴",
13697
- "⠲",
13698
- "⠒",
13699
- "⠂",
13700
- "⠂",
13701
- "⠒",
13702
- "⠚",
13703
- "⠙",
13704
- "⠉",
13705
- "⠁"
13706
- ]
13707
- };
13708
- var dots7 = {
13709
- interval: 80,
13710
- frames: [
13711
- "⠈",
13712
- "⠉",
13713
- "⠋",
13714
- "⠓",
13715
- "⠒",
13716
- "⠐",
13717
- "⠐",
13718
- "⠒",
13719
- "⠖",
13720
- "⠦",
13721
- "⠤",
13722
- "⠠",
13723
- "⠠",
13724
- "⠤",
13725
- "⠦",
13726
- "⠖",
13727
- "⠒",
13728
- "⠐",
13729
- "⠐",
13730
- "⠒",
13731
- "⠓",
13732
- "⠋",
13733
- "⠉",
13734
- "⠈"
13735
- ]
13736
- };
13737
- var dots8 = {
13738
- interval: 80,
13739
- frames: [
13740
- "⠁",
13741
- "⠁",
13742
- "⠉",
13743
- "⠙",
13744
- "⠚",
13745
- "⠒",
13746
- "⠂",
13747
- "⠂",
13748
- "⠒",
13749
- "⠲",
13750
- "⠴",
13751
- "⠤",
13752
- "⠄",
13753
- "⠄",
13754
- "⠤",
13755
- "⠠",
13756
- "⠠",
13757
- "⠤",
13758
- "⠦",
13759
- "⠖",
13760
- "⠒",
13761
- "⠐",
13762
- "⠐",
13763
- "⠒",
13764
- "⠓",
13765
- "⠋",
13766
- "⠉",
13767
- "⠈",
13768
- "⠈"
13769
- ]
13770
- };
13771
- var dots9 = {
13772
- interval: 80,
13773
- frames: [
13774
- "⢹",
13775
- "⢺",
13776
- "⢼",
13777
- "⣸",
13778
- "⣇",
13779
- "⡧",
13780
- "⡗",
13781
- "⡏"
13782
- ]
13783
- };
13784
- var dots10 = {
13785
- interval: 80,
13786
- frames: [
13787
- "⢄",
13788
- "⢂",
13789
- "⢁",
13790
- "⡁",
13791
- "⡈",
13792
- "⡐",
13793
- "⡠"
13794
- ]
13795
- };
13796
- var dots11 = {
13797
- interval: 100,
13798
- frames: [
13799
- "⠁",
13800
- "⠂",
13801
- "⠄",
13802
- "⡀",
13803
- "⢀",
13804
- "⠠",
13805
- "⠐",
13806
- "⠈"
13807
- ]
13808
- };
13809
- var dots12 = {
13810
- interval: 80,
13811
- frames: [
13812
- "⢀⠀",
13813
- "⡀⠀",
13814
- "⠄⠀",
13815
- "⢂⠀",
13816
- "⡂⠀",
13817
- "⠅⠀",
13818
- "⢃⠀",
13819
- "⡃⠀",
13820
- "⠍⠀",
13821
- "⢋⠀",
13822
- "⡋⠀",
13823
- "⠍⠁",
13824
- "⢋⠁",
13825
- "⡋⠁",
13826
- "⠍⠉",
13827
- "⠋⠉",
13828
- "⠋⠉",
13829
- "⠉⠙",
13830
- "⠉⠙",
13831
- "⠉⠩",
13832
- "⠈⢙",
13833
- "⠈⡙",
13834
- "⢈⠩",
13835
- "⡀⢙",
13836
- "⠄⡙",
13837
- "⢂⠩",
13838
- "⡂⢘",
13839
- "⠅⡘",
13840
- "⢃⠨",
13841
- "⡃⢐",
13842
- "⠍⡐",
13843
- "⢋⠠",
13844
- "⡋⢀",
13845
- "⠍⡁",
13846
- "⢋⠁",
13847
- "⡋⠁",
13848
- "⠍⠉",
13849
- "⠋⠉",
13850
- "⠋⠉",
13851
- "⠉⠙",
13852
- "⠉⠙",
13853
- "⠉⠩",
13854
- "⠈⢙",
13855
- "⠈⡙",
13856
- "⠈⠩",
13857
- "⠀⢙",
13858
- "⠀⡙",
13859
- "⠀⠩",
13860
- "⠀⢘",
13861
- "⠀⡘",
13862
- "⠀⠨",
13863
- "⠀⢐",
13864
- "⠀⡐",
13865
- "⠀⠠",
13866
- "⠀⢀",
13867
- "⠀⡀"
13868
- ]
13869
- };
13870
- var dots13 = {
13871
- interval: 80,
13872
- frames: [
13873
- "⣼",
13874
- "⣹",
13875
- "⢻",
13876
- "⠿",
13877
- "⡟",
13878
- "⣏",
13879
- "⣧",
13880
- "⣶"
13881
- ]
13882
- };
13883
- var dots8Bit = {
13884
- interval: 80,
13885
- frames: [
13886
- "⠀",
13887
- "⠁",
13888
- "⠂",
13889
- "⠃",
13890
- "⠄",
13891
- "⠅",
13892
- "⠆",
13893
- "⠇",
13894
- "⡀",
13895
- "⡁",
13896
- "⡂",
13897
- "⡃",
13898
- "⡄",
13899
- "⡅",
13900
- "⡆",
13901
- "⡇",
13902
- "⠈",
13903
- "⠉",
13904
- "⠊",
13905
- "⠋",
13906
- "⠌",
13907
- "⠍",
13908
- "⠎",
13909
- "⠏",
13910
- "⡈",
13911
- "⡉",
13912
- "⡊",
13913
- "⡋",
13914
- "⡌",
13915
- "⡍",
13916
- "⡎",
13917
- "⡏",
13918
- "⠐",
13919
- "⠑",
13920
- "⠒",
13921
- "⠓",
13922
- "⠔",
13923
- "⠕",
13924
- "⠖",
13925
- "⠗",
13926
- "⡐",
13927
- "⡑",
13928
- "⡒",
13929
- "⡓",
13930
- "⡔",
13931
- "⡕",
13932
- "⡖",
13933
- "⡗",
13934
- "⠘",
13935
- "⠙",
13936
- "⠚",
13937
- "⠛",
13938
- "⠜",
13939
- "⠝",
13940
- "⠞",
13941
- "⠟",
13942
- "⡘",
13943
- "⡙",
13944
- "⡚",
13945
- "⡛",
13946
- "⡜",
13947
- "⡝",
13948
- "⡞",
13949
- "⡟",
13950
- "⠠",
13951
- "⠡",
13952
- "⠢",
13953
- "⠣",
13954
- "⠤",
13955
- "⠥",
13956
- "⠦",
13957
- "⠧",
13958
- "⡠",
13959
- "⡡",
13960
- "⡢",
13961
- "⡣",
13962
- "⡤",
13963
- "⡥",
13964
- "⡦",
13965
- "⡧",
13966
- "⠨",
13967
- "⠩",
13968
- "⠪",
13969
- "⠫",
13970
- "⠬",
13971
- "⠭",
13972
- "⠮",
13973
- "⠯",
13974
- "⡨",
13975
- "⡩",
13976
- "⡪",
13977
- "⡫",
13978
- "⡬",
13979
- "⡭",
13980
- "⡮",
13981
- "⡯",
13982
- "⠰",
13983
- "⠱",
13984
- "⠲",
13985
- "⠳",
13986
- "⠴",
13987
- "⠵",
13988
- "⠶",
13989
- "⠷",
13990
- "⡰",
13991
- "⡱",
13992
- "⡲",
13993
- "⡳",
13994
- "⡴",
13995
- "⡵",
13996
- "⡶",
13997
- "⡷",
13998
- "⠸",
13999
- "⠹",
14000
- "⠺",
14001
- "⠻",
14002
- "⠼",
14003
- "⠽",
14004
- "⠾",
14005
- "⠿",
14006
- "⡸",
14007
- "⡹",
14008
- "⡺",
14009
- "⡻",
14010
- "⡼",
14011
- "⡽",
14012
- "⡾",
14013
- "⡿",
14014
- "⢀",
14015
- "⢁",
14016
- "⢂",
14017
- "⢃",
14018
- "⢄",
14019
- "⢅",
14020
- "⢆",
14021
- "⢇",
14022
- "⣀",
14023
- "⣁",
14024
- "⣂",
14025
- "⣃",
14026
- "⣄",
14027
- "⣅",
14028
- "⣆",
14029
- "⣇",
14030
- "⢈",
14031
- "⢉",
14032
- "⢊",
14033
- "⢋",
14034
- "⢌",
14035
- "⢍",
14036
- "⢎",
14037
- "⢏",
14038
- "⣈",
14039
- "⣉",
14040
- "⣊",
14041
- "⣋",
14042
- "⣌",
14043
- "⣍",
14044
- "⣎",
14045
- "⣏",
14046
- "⢐",
14047
- "⢑",
14048
- "⢒",
14049
- "⢓",
14050
- "⢔",
14051
- "⢕",
14052
- "⢖",
14053
- "⢗",
14054
- "⣐",
14055
- "⣑",
14056
- "⣒",
14057
- "⣓",
14058
- "⣔",
14059
- "⣕",
14060
- "⣖",
14061
- "⣗",
14062
- "⢘",
14063
- "⢙",
14064
- "⢚",
14065
- "⢛",
14066
- "⢜",
14067
- "⢝",
14068
- "⢞",
14069
- "⢟",
14070
- "⣘",
14071
- "⣙",
14072
- "⣚",
14073
- "⣛",
14074
- "⣜",
14075
- "⣝",
14076
- "⣞",
14077
- "⣟",
14078
- "⢠",
14079
- "⢡",
14080
- "⢢",
14081
- "⢣",
14082
- "⢤",
14083
- "⢥",
14084
- "⢦",
14085
- "⢧",
14086
- "⣠",
14087
- "⣡",
14088
- "⣢",
14089
- "⣣",
14090
- "⣤",
14091
- "⣥",
14092
- "⣦",
14093
- "⣧",
14094
- "⢨",
14095
- "⢩",
14096
- "⢪",
14097
- "⢫",
14098
- "⢬",
14099
- "⢭",
14100
- "⢮",
14101
- "⢯",
14102
- "⣨",
14103
- "⣩",
14104
- "⣪",
14105
- "⣫",
14106
- "⣬",
14107
- "⣭",
14108
- "⣮",
14109
- "⣯",
14110
- "⢰",
14111
- "⢱",
14112
- "⢲",
14113
- "⢳",
14114
- "⢴",
14115
- "⢵",
14116
- "⢶",
14117
- "⢷",
14118
- "⣰",
14119
- "⣱",
14120
- "⣲",
14121
- "⣳",
14122
- "⣴",
14123
- "⣵",
14124
- "⣶",
14125
- "⣷",
14126
- "⢸",
14127
- "⢹",
14128
- "⢺",
14129
- "⢻",
14130
- "⢼",
14131
- "⢽",
14132
- "⢾",
14133
- "⢿",
14134
- "⣸",
14135
- "⣹",
14136
- "⣺",
14137
- "⣻",
14138
- "⣼",
14139
- "⣽",
14140
- "⣾",
14141
- "⣿"
14142
- ]
14143
- };
14144
- var sand = {
14145
- interval: 80,
14146
- frames: [
14147
- "⠁",
14148
- "⠂",
14149
- "⠄",
14150
- "⡀",
14151
- "⡈",
14152
- "⡐",
14153
- "⡠",
14154
- "⣀",
14155
- "⣁",
14156
- "⣂",
14157
- "⣄",
14158
- "⣌",
14159
- "⣔",
14160
- "⣤",
14161
- "⣥",
14162
- "⣦",
14163
- "⣮",
14164
- "⣶",
14165
- "⣷",
14166
- "⣿",
14167
- "⡿",
14168
- "⠿",
14169
- "⢟",
14170
- "⠟",
14171
- "⡛",
14172
- "⠛",
14173
- "⠫",
14174
- "⢋",
14175
- "⠋",
14176
- "⠍",
14177
- "⡉",
14178
- "⠉",
14179
- "⠑",
14180
- "⠡",
14181
- "⢁"
14182
- ]
14183
- };
14184
- var line = {
14185
- interval: 130,
14186
- frames: [
14187
- "-",
14188
- "\\",
14189
- "|",
14190
- "/"
14191
- ]
14192
- };
14193
- var line2 = {
14194
- interval: 100,
14195
- frames: [
14196
- "⠂",
14197
- "-",
14198
- "–",
14199
- "—",
14200
- "–",
14201
- "-"
14202
- ]
14203
- };
14204
- var pipe = {
14205
- interval: 100,
14206
- frames: [
14207
- "┤",
14208
- "┘",
14209
- "┴",
14210
- "└",
14211
- "├",
14212
- "┌",
14213
- "┬",
14214
- "┐"
14215
- ]
14216
- };
14217
- var simpleDots = {
14218
- interval: 400,
14219
- frames: [
14220
- ". ",
14221
- ".. ",
14222
- "...",
14223
- " "
14224
- ]
14225
- };
14226
- var simpleDotsScrolling = {
14227
- interval: 200,
14228
- frames: [
14229
- ". ",
14230
- ".. ",
14231
- "...",
14232
- " ..",
14233
- " .",
14234
- " "
14235
- ]
14236
- };
14237
- var star = {
14238
- interval: 70,
14239
- frames: [
14240
- "✶",
14241
- "✸",
14242
- "✹",
14243
- "✺",
14244
- "✹",
14245
- "✷"
14246
- ]
14247
- };
14248
- var star2 = {
14249
- interval: 80,
14250
- frames: [
14251
- "+",
14252
- "x",
14253
- "*"
14254
- ]
14255
- };
14256
- var flip = {
14257
- interval: 70,
14258
- frames: [
14259
- "_",
14260
- "_",
14261
- "_",
14262
- "-",
14263
- "`",
14264
- "`",
14265
- "'",
14266
- "´",
14267
- "-",
14268
- "_",
14269
- "_",
14270
- "_"
14271
- ]
14272
- };
14273
- var hamburger = {
14274
- interval: 100,
14275
- frames: [
14276
- "☱",
14277
- "☲",
14278
- "☴"
14279
- ]
14280
- };
14281
- var growVertical = {
14282
- interval: 120,
14283
- frames: [
14284
- "▁",
14285
- "▃",
14286
- "▄",
14287
- "▅",
14288
- "▆",
14289
- "▇",
14290
- "▆",
14291
- "▅",
14292
- "▄",
14293
- "▃"
14294
- ]
14295
- };
14296
- var growHorizontal = {
14297
- interval: 120,
14298
- frames: [
14299
- "▏",
14300
- "▎",
14301
- "▍",
14302
- "▌",
14303
- "▋",
14304
- "▊",
14305
- "▉",
14306
- "▊",
14307
- "▋",
14308
- "▌",
14309
- "▍",
14310
- "▎"
14311
- ]
14312
- };
14313
- var balloon = {
14314
- interval: 140,
14315
- frames: [
14316
- " ",
14317
- ".",
14318
- "o",
14319
- "O",
14320
- "@",
14321
- "*",
14322
- " "
14323
- ]
14324
- };
14325
- var balloon2 = {
14326
- interval: 120,
14327
- frames: [
14328
- ".",
14329
- "o",
14330
- "O",
14331
- "°",
14332
- "O",
14333
- "o",
14334
- "."
14335
- ]
14336
- };
14337
- var noise = {
14338
- interval: 100,
14339
- frames: [
14340
- "▓",
14341
- "▒",
14342
- "░"
14343
- ]
14344
- };
14345
- var bounce = {
14346
- interval: 120,
14347
- frames: [
14348
- "⠁",
14349
- "⠂",
14350
- "⠄",
14351
- "⠂"
14352
- ]
14353
- };
14354
- var boxBounce = {
14355
- interval: 120,
14356
- frames: [
14357
- "▖",
14358
- "▘",
14359
- "▝",
14360
- "▗"
14361
- ]
14362
- };
14363
- var boxBounce2 = {
14364
- interval: 100,
14365
- frames: [
14366
- "▌",
14367
- "▀",
14368
- "▐",
14369
- "▄"
14370
- ]
14371
- };
14372
- var triangle = {
14373
- interval: 50,
14374
- frames: [
14375
- "◢",
14376
- "◣",
14377
- "◤",
14378
- "◥"
14379
- ]
14380
- };
14381
- var binary = {
14382
- interval: 80,
14383
- frames: [
14384
- "010010",
14385
- "001100",
14386
- "100101",
14387
- "111010",
14388
- "111101",
14389
- "010111",
14390
- "101011",
14391
- "111000",
14392
- "110011",
14393
- "110101"
14394
- ]
14395
- };
14396
- var arc = {
14397
- interval: 100,
14398
- frames: [
14399
- "◜",
14400
- "◠",
14401
- "◝",
14402
- "◞",
14403
- "◡",
14404
- "◟"
14405
- ]
14406
- };
14407
- var circle = {
14408
- interval: 120,
14409
- frames: [
14410
- "◡",
14411
- "⊙",
14412
- "◠"
14413
- ]
14414
- };
14415
- var squareCorners = {
14416
- interval: 180,
14417
- frames: [
14418
- "◰",
14419
- "◳",
14420
- "◲",
14421
- "◱"
14422
- ]
14423
- };
14424
- var circleQuarters = {
14425
- interval: 120,
14426
- frames: [
14427
- "◴",
14428
- "◷",
14429
- "◶",
14430
- "◵"
14431
- ]
14432
- };
14433
- var circleHalves = {
14434
- interval: 50,
14435
- frames: [
14436
- "◐",
14437
- "◓",
14438
- "◑",
14439
- "◒"
14440
- ]
14441
- };
14442
- var squish = {
14443
- interval: 100,
14444
- frames: [
14445
- "╫",
14446
- "╪"
14447
- ]
14448
- };
14449
- var toggle = {
14450
- interval: 250,
14451
- frames: [
14452
- "⊶",
14453
- "⊷"
14454
- ]
14455
- };
14456
- var toggle2 = {
14457
- interval: 80,
14458
- frames: [
14459
- "▫",
14460
- "▪"
14461
- ]
14462
- };
14463
- var toggle3 = {
14464
- interval: 120,
14465
- frames: [
14466
- "□",
14467
- "■"
14468
- ]
14469
- };
14470
- var toggle4 = {
14471
- interval: 100,
14472
- frames: [
14473
- "■",
14474
- "□",
14475
- "▪",
14476
- "▫"
14477
- ]
14478
- };
14479
- var toggle5 = {
14480
- interval: 100,
14481
- frames: [
14482
- "▮",
14483
- "▯"
14484
- ]
14485
- };
14486
- var toggle6 = {
14487
- interval: 300,
14488
- frames: [
14489
- "ဝ",
14490
- "၀"
14491
- ]
14492
- };
14493
- var toggle7 = {
14494
- interval: 80,
14495
- frames: [
14496
- "⦾",
14497
- "⦿"
14498
- ]
14499
- };
14500
- var toggle8 = {
14501
- interval: 100,
14502
- frames: [
14503
- "◍",
14504
- "◌"
14505
- ]
14506
- };
14507
- var toggle9 = {
14508
- interval: 100,
14509
- frames: [
14510
- "◉",
14511
- "◎"
14512
- ]
14513
- };
14514
- var toggle10 = {
14515
- interval: 100,
14516
- frames: [
14517
- "㊂",
14518
- "㊀",
14519
- "㊁"
14520
- ]
14521
- };
14522
- var toggle11 = {
14523
- interval: 50,
14524
- frames: [
14525
- "⧇",
14526
- "⧆"
14527
- ]
14528
- };
14529
- var toggle12 = {
14530
- interval: 120,
14531
- frames: [
14532
- "☗",
14533
- "☖"
14534
- ]
14535
- };
14536
- var toggle13 = {
14537
- interval: 80,
14538
- frames: [
14539
- "=",
14540
- "*",
14541
- "-"
14542
- ]
14543
- };
14544
- var arrow = {
14545
- interval: 100,
14546
- frames: [
14547
- "←",
14548
- "↖",
14549
- "↑",
14550
- "↗",
14551
- "→",
14552
- "↘",
14553
- "↓",
14554
- "↙"
14555
- ]
14556
- };
14557
- var arrow2 = {
14558
- interval: 80,
14559
- frames: [
14560
- "⬆️ ",
14561
- "↗️ ",
14562
- "➡️ ",
14563
- "↘️ ",
14564
- "⬇️ ",
14565
- "↙️ ",
14566
- "⬅️ ",
14567
- "↖️ "
14568
- ]
14569
- };
14570
- var arrow3 = {
14571
- interval: 120,
14572
- frames: [
14573
- "▹▹▹▹▹",
14574
- "▸▹▹▹▹",
14575
- "▹▸▹▹▹",
14576
- "▹▹▸▹▹",
14577
- "▹▹▹▸▹",
14578
- "▹▹▹▹▸"
14579
- ]
14580
- };
14581
- var bouncingBar = {
14582
- interval: 80,
14583
- frames: [
14584
- "[ ]",
14585
- "[= ]",
14586
- "[== ]",
14587
- "[=== ]",
14588
- "[====]",
14589
- "[ ===]",
14590
- "[ ==]",
14591
- "[ =]",
14592
- "[ ]",
14593
- "[ =]",
14594
- "[ ==]",
14595
- "[ ===]",
14596
- "[====]",
14597
- "[=== ]",
14598
- "[== ]",
14599
- "[= ]"
14600
- ]
14601
- };
14602
- var bouncingBall = {
14603
- interval: 80,
14604
- frames: [
14605
- "( ● )",
14606
- "( ● )",
14607
- "( ● )",
14608
- "( ● )",
14609
- "( ●)",
14610
- "( ● )",
14611
- "( ● )",
14612
- "( ● )",
14613
- "( ● )",
14614
- "(● )"
14615
- ]
14616
- };
14617
- var smiley = {
14618
- interval: 200,
14619
- frames: [
14620
- "😄 ",
14621
- "😝 "
14622
- ]
14623
- };
14624
- var monkey = {
14625
- interval: 300,
14626
- frames: [
14627
- "🙈 ",
14628
- "🙈 ",
14629
- "🙉 ",
14630
- "🙊 "
14631
- ]
14632
- };
14633
- var hearts = {
14634
- interval: 100,
14635
- frames: [
14636
- "💛 ",
14637
- "💙 ",
14638
- "💜 ",
14639
- "💚 ",
14640
- "❤️ "
14641
- ]
14642
- };
14643
- var clock = {
14644
- interval: 100,
14645
- frames: [
14646
- "🕛 ",
14647
- "🕐 ",
14648
- "🕑 ",
14649
- "🕒 ",
14650
- "🕓 ",
14651
- "🕔 ",
14652
- "🕕 ",
14653
- "🕖 ",
14654
- "🕗 ",
14655
- "🕘 ",
14656
- "🕙 ",
14657
- "🕚 "
14658
- ]
14659
- };
14660
- var earth = {
14661
- interval: 180,
14662
- frames: [
14663
- "🌍 ",
14664
- "🌎 ",
14665
- "🌏 "
14666
- ]
14667
- };
14668
- var material = {
14669
- interval: 17,
14670
- frames: [
14671
- "█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
14672
- "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
14673
- "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
14674
- "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
14675
- "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
14676
- "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
14677
- "███████▁▁▁▁▁▁▁▁▁▁▁▁▁",
14678
- "████████▁▁▁▁▁▁▁▁▁▁▁▁",
14679
- "█████████▁▁▁▁▁▁▁▁▁▁▁",
14680
- "█████████▁▁▁▁▁▁▁▁▁▁▁",
14681
- "██████████▁▁▁▁▁▁▁▁▁▁",
14682
- "███████████▁▁▁▁▁▁▁▁▁",
14683
- "█████████████▁▁▁▁▁▁▁",
14684
- "██████████████▁▁▁▁▁▁",
14685
- "██████████████▁▁▁▁▁▁",
14686
- "▁██████████████▁▁▁▁▁",
14687
- "▁██████████████▁▁▁▁▁",
14688
- "▁██████████████▁▁▁▁▁",
14689
- "▁▁██████████████▁▁▁▁",
14690
- "▁▁▁██████████████▁▁▁",
14691
- "▁▁▁▁█████████████▁▁▁",
14692
- "▁▁▁▁██████████████▁▁",
14693
- "▁▁▁▁██████████████▁▁",
14694
- "▁▁▁▁▁██████████████▁",
14695
- "▁▁▁▁▁██████████████▁",
14696
- "▁▁▁▁▁██████████████▁",
14697
- "▁▁▁▁▁▁██████████████",
14698
- "▁▁▁▁▁▁██████████████",
14699
- "▁▁▁▁▁▁▁█████████████",
14700
- "▁▁▁▁▁▁▁█████████████",
14701
- "▁▁▁▁▁▁▁▁████████████",
14702
- "▁▁▁▁▁▁▁▁████████████",
14703
- "▁▁▁▁▁▁▁▁▁███████████",
14704
- "▁▁▁▁▁▁▁▁▁███████████",
14705
- "▁▁▁▁▁▁▁▁▁▁██████████",
14706
- "▁▁▁▁▁▁▁▁▁▁██████████",
14707
- "▁▁▁▁▁▁▁▁▁▁▁▁████████",
14708
- "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
14709
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████",
14710
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
14711
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
14712
- "█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
14713
- "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
14714
- "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
14715
- "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
14716
- "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
14717
- "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
14718
- "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
14719
- "██████▁▁▁▁▁▁▁▁▁▁▁▁▁█",
14720
- "████████▁▁▁▁▁▁▁▁▁▁▁▁",
14721
- "█████████▁▁▁▁▁▁▁▁▁▁▁",
14722
- "█████████▁▁▁▁▁▁▁▁▁▁▁",
14723
- "█████████▁▁▁▁▁▁▁▁▁▁▁",
14724
- "█████████▁▁▁▁▁▁▁▁▁▁▁",
14725
- "███████████▁▁▁▁▁▁▁▁▁",
14726
- "████████████▁▁▁▁▁▁▁▁",
14727
- "████████████▁▁▁▁▁▁▁▁",
14728
- "██████████████▁▁▁▁▁▁",
14729
- "██████████████▁▁▁▁▁▁",
14730
- "▁██████████████▁▁▁▁▁",
14731
- "▁██████████████▁▁▁▁▁",
14732
- "▁▁▁█████████████▁▁▁▁",
14733
- "▁▁▁▁▁████████████▁▁▁",
14734
- "▁▁▁▁▁████████████▁▁▁",
14735
- "▁▁▁▁▁▁███████████▁▁▁",
14736
- "▁▁▁▁▁▁▁▁█████████▁▁▁",
14737
- "▁▁▁▁▁▁▁▁█████████▁▁▁",
14738
- "▁▁▁▁▁▁▁▁▁█████████▁▁",
14739
- "▁▁▁▁▁▁▁▁▁█████████▁▁",
14740
- "▁▁▁▁▁▁▁▁▁▁█████████▁",
14741
- "▁▁▁▁▁▁▁▁▁▁▁████████▁",
14742
- "▁▁▁▁▁▁▁▁▁▁▁████████▁",
14743
- "▁▁▁▁▁▁▁▁▁▁▁▁███████▁",
14744
- "▁▁▁▁▁▁▁▁▁▁▁▁███████▁",
14745
- "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
14746
- "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
14747
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
14748
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
14749
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
14750
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
14751
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
14752
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
14753
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
14754
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
14755
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
14756
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
14757
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
14758
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
14759
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
14760
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
14761
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
14762
- "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"
14763
- ]
14764
- };
14765
- var moon = {
14766
- interval: 80,
14767
- frames: [
14768
- "🌑 ",
14769
- "🌒 ",
14770
- "🌓 ",
14771
- "🌔 ",
14772
- "🌕 ",
14773
- "🌖 ",
14774
- "🌗 ",
14775
- "🌘 "
14776
- ]
14777
- };
14778
- var runner = {
14779
- interval: 140,
14780
- frames: [
14781
- "🚶 ",
14782
- "🏃 "
14783
- ]
14784
- };
14785
- var pong = {
14786
- interval: 80,
14787
- frames: [
14788
- "▐⠂ ▌",
14789
- "▐⠈ ▌",
14790
- "▐ ⠂ ▌",
14791
- "▐ ⠠ ▌",
14792
- "▐ ⡀ ▌",
14793
- "▐ ⠠ ▌",
14794
- "▐ ⠂ ▌",
14795
- "▐ ⠈ ▌",
14796
- "▐ ⠂ ▌",
14797
- "▐ ⠠ ▌",
14798
- "▐ ⡀ ▌",
14799
- "▐ ⠠ ▌",
14800
- "▐ ⠂ ▌",
14801
- "▐ ⠈ ▌",
14802
- "▐ ⠂▌",
14803
- "▐ ⠠▌",
14804
- "▐ ⡀▌",
14805
- "▐ ⠠ ▌",
14806
- "▐ ⠂ ▌",
14807
- "▐ ⠈ ▌",
14808
- "▐ ⠂ ▌",
14809
- "▐ ⠠ ▌",
14810
- "▐ ⡀ ▌",
14811
- "▐ ⠠ ▌",
14812
- "▐ ⠂ ▌",
14813
- "▐ ⠈ ▌",
14814
- "▐ ⠂ ▌",
14815
- "▐ ⠠ ▌",
14816
- "▐ ⡀ ▌",
14817
- "▐⠠ ▌"
14818
- ]
14819
- };
14820
- var shark = {
14821
- interval: 120,
14822
- frames: [
14823
- "▐|\\____________▌",
14824
- "▐_|\\___________▌",
14825
- "▐__|\\__________▌",
14826
- "▐___|\\_________▌",
14827
- "▐____|\\________▌",
14828
- "▐_____|\\_______▌",
14829
- "▐______|\\______▌",
14830
- "▐_______|\\_____▌",
14831
- "▐________|\\____▌",
14832
- "▐_________|\\___▌",
14833
- "▐__________|\\__▌",
14834
- "▐___________|\\_▌",
14835
- "▐____________|\\▌",
14836
- "▐____________/|▌",
14837
- "▐___________/|_▌",
14838
- "▐__________/|__▌",
14839
- "▐_________/|___▌",
14840
- "▐________/|____▌",
14841
- "▐_______/|_____▌",
14842
- "▐______/|______▌",
14843
- "▐_____/|_______▌",
14844
- "▐____/|________▌",
14845
- "▐___/|_________▌",
14846
- "▐__/|__________▌",
14847
- "▐_/|___________▌",
14848
- "▐/|____________▌"
14849
- ]
14850
- };
14851
- var dqpb = {
14852
- interval: 100,
14853
- frames: [
14854
- "d",
14855
- "q",
14856
- "p",
14857
- "b"
14858
- ]
14859
- };
14860
- var weather = {
14861
- interval: 100,
14862
- frames: [
14863
- "☀️ ",
14864
- "☀️ ",
14865
- "☀️ ",
14866
- "🌤 ",
14867
- "⛅️ ",
14868
- "🌥 ",
14869
- "☁️ ",
14870
- "🌧 ",
14871
- "🌨 ",
14872
- "🌧 ",
14873
- "🌨 ",
14874
- "🌧 ",
14875
- "🌨 ",
14876
- "⛈ ",
14877
- "🌨 ",
14878
- "🌧 ",
14879
- "🌨 ",
14880
- "☁️ ",
14881
- "🌥 ",
14882
- "⛅️ ",
14883
- "🌤 ",
14884
- "☀️ ",
14885
- "☀️ "
14886
- ]
14887
- };
14888
- var christmas = {
14889
- interval: 400,
14890
- frames: [
14891
- "🌲",
14892
- "🎄"
14893
- ]
14894
- };
14895
- var grenade = {
14896
- interval: 80,
14897
- frames: [
14898
- "، ",
14899
- "′ ",
14900
- " ´ ",
14901
- " ‾ ",
14902
- " ⸌",
14903
- " ⸊",
14904
- " |",
14905
- " ⁎",
14906
- " ⁕",
14907
- " ෴ ",
14908
- " ⁓",
14909
- " ",
14910
- " ",
14911
- " "
14912
- ]
14913
- };
14914
- var point = {
14915
- interval: 125,
14916
- frames: [
14917
- "∙∙∙",
14918
- "●∙∙",
14919
- "∙●∙",
14920
- "∙∙●",
14921
- "∙∙∙"
14922
- ]
14923
- };
14924
- var layer = {
14925
- interval: 150,
14926
- frames: [
14927
- "-",
14928
- "=",
14929
- "≡"
14930
- ]
14931
- };
14932
- var betaWave = {
14933
- interval: 80,
14934
- frames: [
14935
- "ρββββββ",
14936
- "βρβββββ",
14937
- "ββρββββ",
14938
- "βββρβββ",
14939
- "ββββρββ",
14940
- "βββββρβ",
14941
- "ββββββρ"
14942
- ]
14943
- };
14944
- var fingerDance = {
14945
- interval: 160,
14946
- frames: [
14947
- "🤘 ",
14948
- "🤟 ",
14949
- "🖖 ",
14950
- "✋ ",
14951
- "🤚 ",
14952
- "👆 "
14953
- ]
14954
- };
14955
- var fistBump = {
14956
- interval: 80,
14957
- frames: [
14958
- "🤜    🤛 ",
14959
- "🤜    🤛 ",
14960
- "🤜    🤛 ",
14961
- " 🤜  🤛  ",
14962
- "  🤜🤛   ",
14963
- " 🤜✨🤛   ",
14964
- "🤜 ✨ 🤛  "
14965
- ]
14966
- };
14967
- var soccerHeader = {
14968
- interval: 80,
14969
- frames: [
14970
- " 🧑⚽️ 🧑 ",
14971
- "🧑 ⚽️ 🧑 ",
14972
- "🧑 ⚽️ 🧑 ",
14973
- "🧑 ⚽️ 🧑 ",
14974
- "🧑 ⚽️ 🧑 ",
14975
- "🧑 ⚽️ 🧑 ",
14976
- "🧑 ⚽️🧑 ",
14977
- "🧑 ⚽️ 🧑 ",
14978
- "🧑 ⚽️ 🧑 ",
14979
- "🧑 ⚽️ 🧑 ",
14980
- "🧑 ⚽️ 🧑 ",
14981
- "🧑 ⚽️ 🧑 "
14982
- ]
14983
- };
14984
- var mindblown = {
14985
- interval: 160,
14986
- frames: [
14987
- "😐 ",
14988
- "😐 ",
14989
- "😮 ",
14990
- "😮 ",
14991
- "😦 ",
14992
- "😦 ",
14993
- "😧 ",
14994
- "😧 ",
14995
- "🤯 ",
14996
- "💥 ",
14997
- "✨ ",
14998
- "  ",
14999
- "  ",
15000
- "  "
15001
- ]
15002
- };
15003
- var speaker = {
15004
- interval: 160,
15005
- frames: [
15006
- "🔈 ",
15007
- "🔉 ",
15008
- "🔊 ",
15009
- "🔉 "
15010
- ]
15011
- };
15012
- var orangePulse = {
15013
- interval: 100,
15014
- frames: [
15015
- "🔸 ",
15016
- "🔶 ",
15017
- "🟠 ",
15018
- "🟠 ",
15019
- "🔶 "
15020
- ]
15021
- };
15022
- var bluePulse = {
15023
- interval: 100,
15024
- frames: [
15025
- "🔹 ",
15026
- "🔷 ",
15027
- "🔵 ",
15028
- "🔵 ",
15029
- "🔷 "
15030
- ]
15031
- };
15032
- var orangeBluePulse = {
15033
- interval: 100,
15034
- frames: [
15035
- "🔸 ",
15036
- "🔶 ",
15037
- "🟠 ",
15038
- "🟠 ",
15039
- "🔶 ",
15040
- "🔹 ",
15041
- "🔷 ",
15042
- "🔵 ",
15043
- "🔵 ",
15044
- "🔷 "
15045
- ]
15046
- };
15047
- var timeTravel = {
15048
- interval: 100,
15049
- frames: [
15050
- "🕛 ",
15051
- "🕚 ",
15052
- "🕙 ",
15053
- "🕘 ",
15054
- "🕗 ",
15055
- "🕖 ",
15056
- "🕕 ",
15057
- "🕔 ",
15058
- "🕓 ",
15059
- "🕒 ",
15060
- "🕑 ",
15061
- "🕐 "
15062
- ]
15063
- };
15064
- var aesthetic = {
15065
- interval: 80,
15066
- frames: [
15067
- "▰▱▱▱▱▱▱",
15068
- "▰▰▱▱▱▱▱",
15069
- "▰▰▰▱▱▱▱",
15070
- "▰▰▰▰▱▱▱",
15071
- "▰▰▰▰▰▱▱",
15072
- "▰▰▰▰▰▰▱",
15073
- "▰▰▰▰▰▰▰",
15074
- "▰▱▱▱▱▱▱"
15075
- ]
15076
- };
15077
- var dwarfFortress = {
15078
- interval: 80,
15079
- frames: [
15080
- " ██████£££ ",
15081
- "☺██████£££ ",
15082
- "☺██████£££ ",
15083
- "☺▓█████£££ ",
15084
- "☺▓█████£££ ",
15085
- "☺▒█████£££ ",
15086
- "☺▒█████£££ ",
15087
- "☺░█████£££ ",
15088
- "☺░█████£££ ",
15089
- "☺ █████£££ ",
15090
- " ☺█████£££ ",
15091
- " ☺█████£££ ",
15092
- " ☺▓████£££ ",
15093
- " ☺▓████£££ ",
15094
- " ☺▒████£££ ",
15095
- " ☺▒████£££ ",
15096
- " ☺░████£££ ",
15097
- " ☺░████£££ ",
15098
- " ☺ ████£££ ",
15099
- " ☺████£££ ",
15100
- " ☺████£££ ",
15101
- " ☺▓███£££ ",
15102
- " ☺▓███£££ ",
15103
- " ☺▒███£££ ",
15104
- " ☺▒███£££ ",
15105
- " ☺░███£££ ",
15106
- " ☺░███£££ ",
15107
- " ☺ ███£££ ",
15108
- " ☺███£££ ",
15109
- " ☺███£££ ",
15110
- " ☺▓██£££ ",
15111
- " ☺▓██£££ ",
15112
- " ☺▒██£££ ",
15113
- " ☺▒██£££ ",
15114
- " ☺░██£££ ",
15115
- " ☺░██£££ ",
15116
- " ☺ ██£££ ",
15117
- " ☺██£££ ",
15118
- " ☺██£££ ",
15119
- " ☺▓█£££ ",
15120
- " ☺▓█£££ ",
15121
- " ☺▒█£££ ",
15122
- " ☺▒█£££ ",
15123
- " ☺░█£££ ",
15124
- " ☺░█£££ ",
15125
- " ☺ █£££ ",
15126
- " ☺█£££ ",
15127
- " ☺█£££ ",
15128
- " ☺▓£££ ",
15129
- " ☺▓£££ ",
15130
- " ☺▒£££ ",
15131
- " ☺▒£££ ",
15132
- " ☺░£££ ",
15133
- " ☺░£££ ",
15134
- " ☺ £££ ",
15135
- " ☺£££ ",
15136
- " ☺£££ ",
15137
- " ☺▓££ ",
15138
- " ☺▓££ ",
15139
- " ☺▒££ ",
15140
- " ☺▒££ ",
15141
- " ☺░££ ",
15142
- " ☺░££ ",
15143
- " ☺ ££ ",
15144
- " ☺££ ",
15145
- " ☺££ ",
15146
- " ☺▓£ ",
15147
- " ☺▓£ ",
15148
- " ☺▒£ ",
15149
- " ☺▒£ ",
15150
- " ☺░£ ",
15151
- " ☺░£ ",
15152
- " ☺ £ ",
15153
- " ☺£ ",
15154
- " ☺£ ",
15155
- " ☺▓ ",
15156
- " ☺▓ ",
15157
- " ☺▒ ",
15158
- " ☺▒ ",
15159
- " ☺░ ",
15160
- " ☺░ ",
15161
- " ☺ ",
15162
- " ☺ &",
15163
- " ☺ ☼&",
15164
- " ☺ ☼ &",
15165
- " ☺☼ &",
15166
- " ☺☼ & ",
15167
- " ‼ & ",
15168
- " ☺ & ",
15169
- " ‼ & ",
15170
- " ☺ & ",
15171
- " ‼ & ",
15172
- " ☺ & ",
15173
- "‼ & ",
15174
- " & ",
15175
- " & ",
15176
- " & ░ ",
15177
- " & ▒ ",
15178
- " & ▓ ",
15179
- " & £ ",
15180
- " & ░£ ",
15181
- " & ▒£ ",
15182
- " & ▓£ ",
15183
- " & ££ ",
15184
- " & ░££ ",
15185
- " & ▒££ ",
15186
- "& ▓££ ",
15187
- "& £££ ",
15188
- " ░£££ ",
15189
- " ▒£££ ",
15190
- " ▓£££ ",
15191
- " █£££ ",
15192
- " ░█£££ ",
15193
- " ▒█£££ ",
15194
- " ▓█£££ ",
15195
- " ██£££ ",
15196
- " ░██£££ ",
15197
- " ▒██£££ ",
15198
- " ▓██£££ ",
15199
- " ███£££ ",
15200
- " ░███£££ ",
15201
- " ▒███£££ ",
15202
- " ▓███£££ ",
15203
- " ████£££ ",
15204
- " ░████£££ ",
15205
- " ▒████£££ ",
15206
- " ▓████£££ ",
15207
- " █████£££ ",
15208
- " ░█████£££ ",
15209
- " ▒█████£££ ",
15210
- " ▓█████£££ ",
15211
- " ██████£££ ",
15212
- " ██████£££ "
15213
- ]
15214
- };
15215
- var require$$0 = {
15216
- dots: dots,
15217
- dots2: dots2,
15218
- dots3: dots3,
15219
- dots4: dots4,
15220
- dots5: dots5,
15221
- dots6: dots6,
15222
- dots7: dots7,
15223
- dots8: dots8,
15224
- dots9: dots9,
15225
- dots10: dots10,
15226
- dots11: dots11,
15227
- dots12: dots12,
15228
- dots13: dots13,
15229
- dots8Bit: dots8Bit,
15230
- sand: sand,
15231
- line: line,
15232
- line2: line2,
15233
- pipe: pipe,
15234
- simpleDots: simpleDots,
15235
- simpleDotsScrolling: simpleDotsScrolling,
15236
- star: star,
15237
- star2: star2,
15238
- flip: flip,
15239
- hamburger: hamburger,
15240
- growVertical: growVertical,
15241
- growHorizontal: growHorizontal,
15242
- balloon: balloon,
15243
- balloon2: balloon2,
15244
- noise: noise,
15245
- bounce: bounce,
15246
- boxBounce: boxBounce,
15247
- boxBounce2: boxBounce2,
15248
- triangle: triangle,
15249
- binary: binary,
15250
- arc: arc,
15251
- circle: circle,
15252
- squareCorners: squareCorners,
15253
- circleQuarters: circleQuarters,
15254
- circleHalves: circleHalves,
15255
- squish: squish,
15256
- toggle: toggle,
15257
- toggle2: toggle2,
15258
- toggle3: toggle3,
15259
- toggle4: toggle4,
15260
- toggle5: toggle5,
15261
- toggle6: toggle6,
15262
- toggle7: toggle7,
15263
- toggle8: toggle8,
15264
- toggle9: toggle9,
15265
- toggle10: toggle10,
15266
- toggle11: toggle11,
15267
- toggle12: toggle12,
15268
- toggle13: toggle13,
15269
- arrow: arrow,
15270
- arrow2: arrow2,
15271
- arrow3: arrow3,
15272
- bouncingBar: bouncingBar,
15273
- bouncingBall: bouncingBall,
15274
- smiley: smiley,
15275
- monkey: monkey,
15276
- hearts: hearts,
15277
- clock: clock,
15278
- earth: earth,
15279
- material: material,
15280
- moon: moon,
15281
- runner: runner,
15282
- pong: pong,
15283
- shark: shark,
15284
- dqpb: dqpb,
15285
- weather: weather,
15286
- christmas: christmas,
15287
- grenade: grenade,
15288
- point: point,
15289
- layer: layer,
15290
- betaWave: betaWave,
15291
- fingerDance: fingerDance,
15292
- fistBump: fistBump,
15293
- soccerHeader: soccerHeader,
15294
- mindblown: mindblown,
15295
- speaker: speaker,
15296
- orangePulse: orangePulse,
15297
- bluePulse: bluePulse,
15298
- orangeBluePulse: orangeBluePulse,
15299
- timeTravel: timeTravel,
15300
- aesthetic: aesthetic,
15301
- dwarfFortress: dwarfFortress
15302
- };
15303
-
15304
- const spinners = Object.assign({}, require$$0); // eslint-disable-line import/extensions
15305
-
15306
- const spinnersList = Object.keys(spinners);
15307
- Object.defineProperty(spinners, 'random', {
15308
- get() {
15309
- const randomIndex = Math.floor(Math.random() * spinnersList.length);
15310
- const spinnerName = spinnersList[randomIndex];
15311
- return spinners[spinnerName];
15312
- }
15313
- });
15314
- var cliSpinners = spinners;
15315
-
15316
13281
  var logSymbols$1 = {};
15317
13282
 
15318
13283
  var isUnicodeSupported$3 = {};
@@ -15321,7 +13286,7 @@ Object.defineProperty(isUnicodeSupported$3, "__esModule", {
15321
13286
  value: true
15322
13287
  });
15323
13288
  isUnicodeSupported$3.default = isUnicodeSupported$2;
15324
- var _nodeProcess$8 = require$$0$2;
13289
+ var _nodeProcess$8 = require$$0;
15325
13290
  function isUnicodeSupported$2() {
15326
13291
  if (_nodeProcess$8.platform !== 'win32') {
15327
13292
  return _nodeProcess$8.env.TERM !== 'linux'; // Linux console (kernel)
@@ -15486,7 +13451,7 @@ Object.defineProperty(isUnicodeSupported$1, "__esModule", {
15486
13451
  value: true
15487
13452
  });
15488
13453
  isUnicodeSupported$1.default = isUnicodeSupported;
15489
- var _nodeProcess$7 = require$$0$2;
13454
+ var _nodeProcess$7 = require$$0;
15490
13455
  function isUnicodeSupported() {
15491
13456
  const {
15492
13457
  env
@@ -15510,7 +13475,7 @@ Object.defineProperty(stdinDiscarder$1, "__esModule", {
15510
13475
  value: true
15511
13476
  });
15512
13477
  stdinDiscarder$1.default = void 0;
15513
- var _nodeProcess$6 = require$$0$2;
13478
+ var _nodeProcess$6 = require$$0;
15514
13479
  const ASCII_ETX_CODE = 0x03; // Ctrl+C emits this code
15515
13480
 
15516
13481
  class StdinDiscarder {
@@ -15562,11 +13527,11 @@ Object.defineProperty(ora$1, "__esModule", {
15562
13527
  });
15563
13528
  ora$1.default = ora;
15564
13529
  ora$1.oraPromise = oraPromise;
15565
- ora$1.spinners = cliSpinners;
15566
- var _nodeProcess$5 = require$$0$2;
13530
+ ora$1.spinners = require$$3$1;
13531
+ var _nodeProcess$5 = require$$0;
15567
13532
  var _chalk = source;
15568
13533
  var _cliCursor = cliCursor$1;
15569
- var _cliSpinners = cliSpinners;
13534
+ var _cliSpinners = require$$3$1;
15570
13535
  var _logSymbols = logSymbols$1;
15571
13536
  var _stripAnsi = stripAnsi$1;
15572
13537
  var _stringWidth = stringWidth$1;
@@ -15577,7 +13542,8 @@ class Ora {
15577
13542
  #linesToClear = 0;
15578
13543
  #isDiscardingStdin = false;
15579
13544
  #lineCount = 0;
15580
- #frameIndex = 0;
13545
+ #frameIndex = -1;
13546
+ #lastSpinnerFrameTime = 0;
15581
13547
  #options;
15582
13548
  #spinner;
15583
13549
  #stream;
@@ -15662,7 +13628,7 @@ class Ora {
15662
13628
  return this.#spinner;
15663
13629
  }
15664
13630
  set spinner(spinner) {
15665
- this.#frameIndex = 0;
13631
+ this.#frameIndex = -1;
15666
13632
  this.#initialInterval = undefined;
15667
13633
  if (typeof spinner === 'object') {
15668
13634
  if (spinner.frames === undefined) {
@@ -15753,6 +13719,13 @@ class Ora {
15753
13719
  this.#isSilent = value;
15754
13720
  }
15755
13721
  frame() {
13722
+ // Ensure we only update the spinner frame at the wanted interval,
13723
+ // even if the render method is called more often.
13724
+ const now = Date.now();
13725
+ if (this.#frameIndex === -1 || now - this.#lastSpinnerFrameTime >= this.interval) {
13726
+ this.#frameIndex = ++this.#frameIndex % this.#spinner.frames.length;
13727
+ this.#lastSpinnerFrameTime = now;
13728
+ }
15756
13729
  const {
15757
13730
  frames
15758
13731
  } = this.#spinner;
@@ -15760,7 +13733,6 @@ class Ora {
15760
13733
  if (this.color) {
15761
13734
  frame = _chalk.default[this.color](frame);
15762
13735
  }
15763
- this.#frameIndex = ++this.#frameIndex % frames.length;
15764
13736
  const fullPrefixText = typeof this.#prefixText === 'string' && this.#prefixText !== '' ? this.#prefixText + ' ' : '';
15765
13737
  const fullText = typeof this.text === 'string' ? ' ' + this.text : '';
15766
13738
  const fullSuffixText = typeof this.#suffixText === 'string' && this.#suffixText !== '' ? ' ' + this.#suffixText : '';
@@ -15869,7 +13841,8 @@ class Ora {
15869
13841
  const fullPrefixText = this.#getFullPrefixText(prefixText, ' ');
15870
13842
  const symbolText = options.symbol ?? ' ';
15871
13843
  const text = options.text ?? this.text;
15872
- const fullText = typeof text === 'string' ? ' ' + text : '';
13844
+ const separatorText = symbolText ? ' ' : '';
13845
+ const fullText = typeof text === 'string' ? separatorText + text : '';
15873
13846
  const suffixText = options.suffixText ?? this.#suffixText;
15874
13847
  const fullSuffixText = this.#getFullSuffixText(suffixText, ' ');
15875
13848
  const textToWrite = fullPrefixText + symbolText + fullText + fullSuffixText + '\n';
@@ -15906,6 +13879,23 @@ async function oraPromise(action, options) {
15906
13879
  }
15907
13880
  }
15908
13881
 
13882
+ function envAsBoolean$1(value) {
13883
+ return typeof value === 'string' ? value === '1' || value.toLowerCase() === 'true' : !!value;
13884
+ }
13885
+ function envAsString$1(value) {
13886
+ if (typeof value === 'string') {
13887
+ return value;
13888
+ }
13889
+ if (value === null || value === undefined) {
13890
+ return '';
13891
+ }
13892
+ return String(value);
13893
+ }
13894
+ var env = {
13895
+ envAsBoolean: envAsBoolean$1,
13896
+ envAsString: envAsString$1
13897
+ };
13898
+
15909
13899
  var terminalLink$1 = {};
15910
13900
 
15911
13901
  var ansiEscapes$1 = {};
@@ -16021,224 +14011,1526 @@ ansiEscapes.iTerm = {
16021
14011
  };
16022
14012
  ansiEscapes$1.default = ansiEscapes;
16023
14013
 
16024
- var hasFlag$2 = (flag, argv = process.argv) => {
16025
- const prefix = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--';
16026
- const position = argv.indexOf(prefix + flag);
16027
- const terminatorPosition = argv.indexOf('--');
16028
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
16029
- };
14014
+ Object.defineProperty(terminalLink$1, "__esModule", {
14015
+ value: true
14016
+ });
14017
+ terminalLink$1.default = terminalLink;
14018
+ var _ansiEscapes = ansiEscapes$1;
14019
+ var _supportsHyperlinks = require$$1$1;
14020
+ function terminalLink(text, url, {
14021
+ target = 'stdout',
14022
+ ...options
14023
+ } = {}) {
14024
+ if (!_supportsHyperlinks[target]) {
14025
+ // If the fallback has been explicitly disabled, don't modify the text itself.
14026
+ if (options.fallback === false) {
14027
+ return text;
14028
+ }
14029
+ return typeof options.fallback === 'function' ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
14030
+ }
14031
+ return _ansiEscapes.default.link(text, url);
14032
+ }
14033
+ terminalLink.isSupported = _supportsHyperlinks.stdout;
14034
+ terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, {
14035
+ target: 'stderr',
14036
+ ...options
14037
+ });
14038
+ terminalLink.stderr.isSupported = _supportsHyperlinks.stderr;
16030
14039
 
16031
- const os = require$$2$1;
16032
- const tty = require$$2;
16033
- const hasFlag$1 = hasFlag$2;
14040
+ const Module = require$$0$4;
14041
+ // Available in Node v22.8.0.
14042
+ // https://nodejs.org/docs/latest/api/module.html#moduleenablecompilecachecachedir
14043
+ if (typeof Module.enableCompileCache === 'function') {
14044
+ Module.enableCompileCache();
14045
+ }
14046
+ const path$2 = require$$1;
14047
+ const {
14048
+ packageExtensions: yarnPkgExts
14049
+ } = require$$2$8;
14050
+ const {
14051
+ createNewSortInstance
14052
+ } = require$$3$2;
14053
+ const fs$1 = require$$4$2;
14054
+ const pacote$1 = require$$5;
14055
+ const picomatch = require$$6$1;
14056
+ const semver$1 = require$$3;
14057
+ const which = require$$8;
14058
+ const {
14059
+ envAsBoolean,
14060
+ envAsString
14061
+ } = env;
16034
14062
  const {
16035
- env
14063
+ sync: whichSync
14064
+ } = which;
14065
+ const UNDEFINED_LAZY_VALUE = {};
14066
+ const {
14067
+ __defineGetter__
14068
+ } = Object.prototype;
14069
+ const {
14070
+ execPath
16036
14071
  } = process;
16037
- let forceColor;
16038
- if (hasFlag$1('no-color') || hasFlag$1('no-colors') || hasFlag$1('color=false') || hasFlag$1('color=never')) {
16039
- forceColor = 0;
16040
- } else if (hasFlag$1('color') || hasFlag$1('colors') || hasFlag$1('color=true') || hasFlag$1('color=always')) {
16041
- forceColor = 1;
14072
+ const {
14073
+ constructor: PacoteFetcherBase
14074
+ } = Reflect.getPrototypeOf(pacote$1.RegistryFetcher.prototype);
14075
+ const packumentCache$1 = new Map();
14076
+ const pacoteCachePath$1 = new PacoteFetcherBase(/*dummy package spec*/'x', {}).cache;
14077
+ function createLazyGetter(getter) {
14078
+ let lazyValue = UNDEFINED_LAZY_VALUE;
14079
+ return () => {
14080
+ if (lazyValue === UNDEFINED_LAZY_VALUE) {
14081
+ lazyValue = getter();
14082
+ }
14083
+ return lazyValue;
14084
+ };
16042
14085
  }
16043
- if ('FORCE_COLOR' in env) {
16044
- if (env.FORCE_COLOR === 'true') {
16045
- forceColor = 1;
16046
- } else if (env.FORCE_COLOR === 'false') {
16047
- forceColor = 0;
16048
- } else {
16049
- forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
16050
- }
14086
+ function defineLazyGetter(object, propKey, getter) {
14087
+ __defineGetter__.call(object, propKey, createLazyGetter(getter));
14088
+ return object;
16051
14089
  }
16052
- function translateLevel(level) {
16053
- if (level === 0) {
16054
- return false;
14090
+ function defineLazyGetters(object, getterObj) {
14091
+ const keys = Reflect.ownKeys(getterObj);
14092
+ for (let i = 0, {
14093
+ length
14094
+ } = keys; i < length; i += 1) {
14095
+ const key = keys[i];
14096
+ defineLazyGetter(object, key, createLazyGetter(getterObj[key]));
16055
14097
  }
16056
- return {
16057
- level,
16058
- hasBasic: true,
16059
- has256: level >= 2,
16060
- has16m: level >= 3
16061
- };
14098
+ return object;
16062
14099
  }
16063
- function supportsColor$1(haveStream, streamIsTTY) {
16064
- if (forceColor === 0) {
16065
- return 0;
16066
- }
16067
- if (hasFlag$1('color=16m') || hasFlag$1('color=full') || hasFlag$1('color=truecolor')) {
16068
- return 3;
16069
- }
16070
- if (hasFlag$1('color=256')) {
16071
- return 2;
14100
+ const COLUMN_LIMIT = 80;
14101
+ const EMPTY_FILE = '/* empty */\n';
14102
+ const ENV = Object.freeze({
14103
+ __proto__: null,
14104
+ // CI is always set to "true" in a GitHub action.
14105
+ // https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
14106
+ CI: envAsBoolean(process.env.CI),
14107
+ // .github/workflows/provenance.yml defines this.
14108
+ NODE_AUTH_TOKEN: envAsString(process.env.NODE_AUTH_TOKEN),
14109
+ // PRE_COMMIT is set to "1" by our "test-pre-commit" script run by the
14110
+ // .husky/pre-commit hook.
14111
+ PRE_COMMIT: envAsBoolean(process.env.PRE_COMMIT)
14112
+ });
14113
+ const ESLINT_CONFIG_JS = 'eslint.config.js';
14114
+ const ESNEXT = 'esnext';
14115
+ const LICENSE = 'LICENSE';
14116
+ const LICENSE_GLOB = 'LICEN[CS]E{[.-]*,}';
14117
+ const LICENSE_GLOB_RECURSIVE = `**/${LICENSE_GLOB}`;
14118
+ const LICENSE_ORIGINAL = `${LICENSE}.original`;
14119
+ const LICENSE_ORIGINAL_GLOB = '*.original{.*,}';
14120
+ const LICENSE_ORIGINAL_GLOB_RECURSIVE = `**/${LICENSE_ORIGINAL_GLOB}`;
14121
+ const LOOP_SENTINEL$2 = 1_000_000;
14122
+ const MIT$1 = 'MIT';
14123
+ const NODE_MODULES = 'node_modules';
14124
+ const NODE_MODULES_GLOB_RECURSIVE = `**/${NODE_MODULES}`;
14125
+ const NODE_WORKSPACES = 'node_workspaces';
14126
+ const NODE_VERSION = process.versions.node;
14127
+ const NPM_ORG = 'socketregistry';
14128
+ const OVERRIDES = 'overrides';
14129
+ const PACKAGE_DEFAULT_SOCKET_CATEGORIES$1 = Object.freeze(['cleanup']);
14130
+ const PACKAGE_DEFAULT_VERSION = '1.0.0';
14131
+ const PACKAGE_JSON$1 = 'package.json';
14132
+ const PACKAGE_LOCK = 'package-lock.json';
14133
+ const PACKAGE_SCOPE$1 = `@${NPM_ORG}`;
14134
+ const README_GLOB = 'README{.*,}';
14135
+ const README_GLOB_RECURSIVE = `**/${README_GLOB}`;
14136
+ const README_MD = 'README.md';
14137
+ const REGISTRY_SCOPE_DELIMITER$1 = '__';
14138
+ const REGISTRY_WORKSPACE = 'registry';
14139
+ const REPO_ORG$1 = 'SocketDev';
14140
+ const REPO_NAME$1 = 'socket-registry';
14141
+ const TEMPLATE_CJS = 'cjs';
14142
+ const TEMPLATE_CJS_BROWSER = 'cjs-browser';
14143
+ const TEMPLATE_CJS_ESM = 'cjs-esm';
14144
+ const TEMPLATE_ES_SHIM_CONSTRUCTOR = 'es-shim-constructor';
14145
+ const TEMPLATE_ES_SHIM_PROTOTYPE_METHOD = 'es-shim-prototype-method';
14146
+ const TEMPLATE_ES_SHIM_STATIC_METHOD = 'es-shim-static-method';
14147
+ const TSCONFIG_JSON = 'tsconfig.json';
14148
+ const UNLICENCED$1 = 'UNLICENCED';
14149
+ const UNLICENSED$1 = 'UNLICENSED';
14150
+ const WIN_32 = process.platform === 'win32';
14151
+ const {
14152
+ compare: localeCompare$2
14153
+ } = new Intl.Collator();
14154
+ const naturalSort$1 = createNewSortInstance({
14155
+ comparer: new Intl.Collator(undefined, {
14156
+ numeric: true,
14157
+ sensitivity: 'base'
14158
+ }).compare
14159
+ });
14160
+ const innerReadDirNames = function innerReadDirNames(dirents, options) {
14161
+ const {
14162
+ includeEmpty,
14163
+ sort
14164
+ } = {
14165
+ __proto__: null,
14166
+ sort: true,
14167
+ includeEmpty: false,
14168
+ ...options
14169
+ };
14170
+ const names = dirents.filter(d => d.isDirectory() && (includeEmpty || !isDirEmptySync(path$2.join(d.parentPath, d.name)))).map(d => d.name);
14171
+ return sort ? names.sort(localeCompare$2) : names;
14172
+ };
14173
+ const matcherCache = new Map();
14174
+ const getGlobMatcher = function getGlobMatcher(glob, options) {
14175
+ const patterns = Array.isArray(glob) ? glob : [glob];
14176
+ const key = JSON.stringify({
14177
+ patterns,
14178
+ options
14179
+ });
14180
+ let matcher = matcherCache.get(key);
14181
+ if (matcher) {
14182
+ return matcher;
16072
14183
  }
16073
- if (haveStream && !streamIsTTY && forceColor === undefined) {
16074
- return 0;
16075
- }
16076
- const min = forceColor || 0;
16077
- if (env.TERM === 'dumb') {
16078
- return min;
14184
+ matcher = picomatch(patterns, {
14185
+ dot: true,
14186
+ nocase: true,
14187
+ ...options
14188
+ });
14189
+ matcherCache.set(key, matcher);
14190
+ return matcher;
14191
+ };
14192
+ const isDirEmptySync = function isDirEmptySync(dirname) {
14193
+ try {
14194
+ const files = fs$1.readdirSync(dirname);
14195
+ const {
14196
+ length
14197
+ } = files;
14198
+ if (length === 0) {
14199
+ return true;
14200
+ }
14201
+ // Lazily access constants.ignoreGlobs.
14202
+ const matcher = getGlobMatcher(constants$2.ignoreGlobs, {
14203
+ cwd: dirname
14204
+ });
14205
+ let ignoredCount = 0;
14206
+ for (let i = 0; i < length; i += 1) {
14207
+ if (matcher(files[i])) {
14208
+ ignoredCount += 1;
14209
+ }
14210
+ }
14211
+ return ignoredCount === length;
14212
+ } catch (e) {
14213
+ return e?.code === 'ENOENT';
16079
14214
  }
16080
- if (process.platform === 'win32') {
16081
- // Windows 10 build 10586 is the first Windows release that supports 256 colors.
16082
- // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
16083
- const osRelease = os.release().split('.');
16084
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
16085
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
14215
+ };
14216
+ const readDirNamesSync = function readDirNamesSync(dirname, options) {
14217
+ try {
14218
+ return innerReadDirNames(fs$1.readdirSync(dirname, {
14219
+ withFileTypes: true
14220
+ }), options);
14221
+ } catch {}
14222
+ return [];
14223
+ };
14224
+ const kInternalsSymbol$1 = Symbol('@socketregistry.constants.internals');
14225
+ const internals = Object.freeze({
14226
+ __proto__: null,
14227
+ createLazyGetter,
14228
+ defineLazyGetter,
14229
+ defineLazyGetters,
14230
+ getGlobMatcher,
14231
+ innerReadDirNames,
14232
+ isDirEmptySync,
14233
+ localeCompare: localeCompare$2,
14234
+ naturalSort: naturalSort$1,
14235
+ readDirNamesSync
14236
+ });
14237
+ const LAZY_PACKAGE_DEFAULT_NODE_RANGE = () =>
14238
+ // Lazily access constants.maintainedNodeVersions.
14239
+ `>=${constants$2.maintainedNodeVersions.previous}`;
14240
+ const lazyMaintainedNodeVersions = () => {
14241
+ // Under the hood browserlist uses the node-releases package which is out of date:
14242
+ // https://github.com/chicoxyzzy/node-releases/issues/37
14243
+ // So we maintain a manual version list for now.
14244
+ // https://nodejs.org/en/about/previous-releases#looking-for-latest-release-of-a-version-branch
14245
+ const manualPrev = '18.20.4';
14246
+ const manualCurr = '20.18.0';
14247
+ const manualNext = '22.10.0';
14248
+
14249
+ // Defer loading browserslist until needed.
14250
+ const browserslist = require$$10$1;
14251
+ const query = naturalSort$1(browserslist('maintained node versions')
14252
+ // Trim value, e.g. 'node 22.5.0' to '22.5.0'.
14253
+ .map(s => s.slice(5 /*'node '.length*/))).asc();
14254
+ const queryPrev = query.at(0) ?? manualPrev;
14255
+ const queryCurr = query.at(1) ?? manualCurr;
14256
+ const queryNext = query.at(2) ?? manualNext;
14257
+ const previous = semver$1.maxSatisfying([queryPrev, manualPrev], `^${semver$1.major(queryPrev)}`);
14258
+ const current = semver$1.maxSatisfying([queryCurr, manualCurr], `^${semver$1.major(queryCurr)}`);
14259
+ const next = semver$1.maxSatisfying([queryNext, manualNext], `^${semver$1.major(queryNext)}`);
14260
+ return Object.freeze(Object.assign([previous, current, next], {
14261
+ previous,
14262
+ current,
14263
+ next
14264
+ }));
14265
+ };
14266
+ const lazyNpmExecPath = () => whichSync('npm');
14267
+ const copyLeftLicenses$1 = new Set(['AGPL-3.0-or-later', 'AGPL-3.0', 'AGPL-3.0-only', 'AGPL-1.0-or-later', 'AGPL-1.0', 'AGPL-1.0-only', 'CC-BY-SA-4.0', 'CC-BY-SA-3.0', 'CC-BY-SA-2.0', 'CC-BY-SA-1.0', 'EPL-2.0', 'EPL-1.0', 'EUPL-1.2', 'EUPL-1.1', 'GPL-3.0-or-later', 'GPL-3.0', 'GPL-3.0-only', 'GPL-2.0-or-later', 'GPL-2.0', 'GPL-2.0-only', 'GPL-1.0-or-later', 'GPL-1.0', 'GPL-1.0-only']);
14268
+ const ignoreGlobs = Object.freeze([
14269
+ // Most of these ignored files can be included specifically if included in the
14270
+ // files globs. Exceptions to this are:
14271
+ // https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files
14272
+ // These can not be included.
14273
+ '.git', '.npmrc', '**/node_modules', '**/package-lock.json', '**/pnpm-lock.ya?ml', '**/yarn.lock',
14274
+ // Inline .gitignore from the socket-registry repository root.
14275
+ '.env', '.eslintcache', '.nvm', '.tap', '.tapci.yaml', '.vscode', 'npm-debug.log', '*.tsbuildinfo', '**/.DS_Store', '**/._.DS_Store', '**/Thumbs.db']);
14276
+ const lifecycleScriptNames = new Set(['dependencies', 'prepublishOnly', ...['install', 'pack', 'prepare', 'publish', 'restart', 'start', 'stop', 'version'].map(n => [`pre${n}`, n, `post${n}`])].flat());
14277
+ const parseArgsConfig = Object.freeze({
14278
+ __proto__: null,
14279
+ options: {
14280
+ __proto__: null,
14281
+ force: {
14282
+ __proto__: null,
14283
+ type: 'boolean',
14284
+ short: 'f'
14285
+ },
14286
+ quiet: {
14287
+ __proto__: null,
14288
+ type: 'boolean'
16086
14289
  }
16087
- return 1;
14290
+ },
14291
+ strict: false
14292
+ });
14293
+ const packageExtensions$1 = Object.freeze([...yarnPkgExts, ['@yarnpkg/extensions@>=1.1.0', {
14294
+ // Properties with undefined values are omitted when saved as JSON.
14295
+ peerDependencies: undefined
14296
+ }], ['abab@>=2.0.0', {
14297
+ devDependencies: {
14298
+ // Lower the Webpack from v4.x to one supported by abab's peers.
14299
+ webpack: '^3.12.0'
14300
+ }
14301
+ }], ['is-generator-function@>=1.0.7', {
14302
+ scripts: {
14303
+ // Make the script a silent no-op.
14304
+ 'test:uglified': ''
14305
+ }
14306
+ }]].sort((a, b) => localeCompare$2(a[0].slice(0, a[0].lastIndexOf('@')), b[0].slice(0, b[0].lastIndexOf('@')))));
14307
+ const skipTestsByEcosystem = Object.freeze({
14308
+ __proto__: null,
14309
+ npm: new Set([
14310
+ // @hyrious/bun.lockb has no unit tests.
14311
+ // https://github.com/hyrious/bun.lockb/tree/v0.0.4
14312
+ '@hyrious/bun.lockb', 'hyrious__bun.lockb',
14313
+ // Our array-flatten override supports v1, v2, and v3 APIs, so we handle
14314
+ // testing ourselves.
14315
+ 'array-flatten',
14316
+ // date tests fail for some Node versions and platforms, but pass in CI
14317
+ // Win32 environments for the time being.
14318
+ // https://github.com/es-shims/Date/issues/3
14319
+ // https://github.com/es-shims/Date/tree/v2.0.5
14320
+ ...(ENV.WIN_32 ? [] : ['date']),
14321
+ // es6-object-assign has no unit tests.
14322
+ // https://github.com/rubennorte/es6-object-assign/tree/v1.1.0
14323
+ 'es6-object-assign',
14324
+ // harmony-reflect has known failures in its package and requires running
14325
+ // tests in browser.
14326
+ // https://github.com/tvcutsem/harmony-reflect/tree/v1.6.2/test
14327
+ 'harmony-reflect',
14328
+ // is-regex tests don't account for `is-regex` backed by
14329
+ // `require('node:util/types).isRegExp` which triggers no proxy traps and
14330
+ // assumes instead that the "getOwnPropertyDescriptor" trap will be triggered
14331
+ // by `Object.getOwnPropertyDescriptor(value, 'lastIndex')`.
14332
+ // https://github.com/inspect-js/is-regex/issues/35
14333
+ // https://github.com/inspect-js/is-regex/blob/v1.1.4/test/index.js
14334
+ 'is-regex',
14335
+ // safer-buffer tests assume Buffer.alloc, Buffer.allocUnsafe, and
14336
+ // Buffer.allocUnsafeSlow throw for a size of 2 * (1 << 30), i.e. 2147483648,
14337
+ // which is no longer the case.
14338
+ // https://github.com/ChALkeR/safer-buffer/issues/16
14339
+ // https://github.com/ChALkeR/safer-buffer/blob/v2.1.2/tests.js
14340
+ 'safer-buffer'])
14341
+ });
14342
+ const tsLibsAvailable = new Set([
14343
+ // Defined in priority order.
14344
+ 'esnext', 'es2024', 'es2023', 'dom', 'webworker', 'es2022', 'es2021', 'es2020', 'es2019', 'es2018', 'es2017', 'es2016', 'es2015', 'es6', 'es5', 'decorators', 'scripthost']);
14345
+ const tsTypesAvailable = new Set(['node']);
14346
+ const win32EnsureTestsByEcosystem = Object.freeze({
14347
+ __proto__: null,
14348
+ npm: new Set(['date'])
14349
+ });
14350
+ const constants$2 = Object.freeze(defineLazyGetters({
14351
+ __proto__: null,
14352
+ [kInternalsSymbol$1]: internals,
14353
+ COLUMN_LIMIT,
14354
+ EMPTY_FILE,
14355
+ ENV,
14356
+ ESLINT_CONFIG_JS,
14357
+ ESNEXT,
14358
+ LICENSE,
14359
+ LICENSE_GLOB,
14360
+ LICENSE_GLOB_RECURSIVE,
14361
+ LICENSE_ORIGINAL,
14362
+ LICENSE_ORIGINAL_GLOB,
14363
+ LICENSE_ORIGINAL_GLOB_RECURSIVE,
14364
+ LOOP_SENTINEL: LOOP_SENTINEL$2,
14365
+ MIT: MIT$1,
14366
+ NODE_MODULES,
14367
+ NODE_MODULES_GLOB_RECURSIVE,
14368
+ NODE_WORKSPACES,
14369
+ NODE_VERSION,
14370
+ NPM_ORG,
14371
+ OVERRIDES,
14372
+ PACKAGE_DEFAULT_SOCKET_CATEGORIES: PACKAGE_DEFAULT_SOCKET_CATEGORIES$1,
14373
+ // Lazily defined values are initialized as `undefined` to keep their key order.
14374
+ PACKAGE_DEFAULT_NODE_RANGE: undefined,
14375
+ PACKAGE_DEFAULT_VERSION,
14376
+ PACKAGE_JSON: PACKAGE_JSON$1,
14377
+ PACKAGE_LOCK,
14378
+ PACKAGE_SCOPE: PACKAGE_SCOPE$1,
14379
+ README_GLOB,
14380
+ README_GLOB_RECURSIVE,
14381
+ README_MD,
14382
+ REGISTRY_SCOPE_DELIMITER: REGISTRY_SCOPE_DELIMITER$1,
14383
+ REGISTRY_WORKSPACE,
14384
+ REPO_ORG: REPO_ORG$1,
14385
+ REPO_NAME: REPO_NAME$1,
14386
+ TEMPLATE_CJS,
14387
+ TEMPLATE_CJS_BROWSER,
14388
+ TEMPLATE_CJS_ESM,
14389
+ TEMPLATE_ES_SHIM_CONSTRUCTOR,
14390
+ TEMPLATE_ES_SHIM_PROTOTYPE_METHOD,
14391
+ TEMPLATE_ES_SHIM_STATIC_METHOD,
14392
+ TSCONFIG_JSON,
14393
+ UNLICENCED: UNLICENCED$1,
14394
+ UNLICENSED: UNLICENSED$1,
14395
+ WIN_32,
14396
+ copyLeftLicenses: copyLeftLicenses$1,
14397
+ execPath,
14398
+ ignoreGlobs,
14399
+ kInternalsSymbol: kInternalsSymbol$1,
14400
+ lifecycleScriptNames,
14401
+ maintainedNodeVersions: undefined,
14402
+ npmExecPath: undefined,
14403
+ packageExtensions: packageExtensions$1,
14404
+ packumentCache: packumentCache$1,
14405
+ pacoteCachePath: pacoteCachePath$1,
14406
+ parseArgsConfig,
14407
+ skipTestsByEcosystem,
14408
+ tsLibsAvailable,
14409
+ tsTypesAvailable,
14410
+ win32EnsureTestsByEcosystem
14411
+ }, {
14412
+ PACKAGE_DEFAULT_NODE_RANGE: LAZY_PACKAGE_DEFAULT_NODE_RANGE,
14413
+ maintainedNodeVersions: lazyMaintainedNodeVersions,
14414
+ npmExecPath: lazyNpmExecPath
14415
+ }));
14416
+ var constants_1 = constants$2;
14417
+
14418
+ const {
14419
+ kInternalsSymbol,
14420
+ [kInternalsSymbol]: {
14421
+ localeCompare: localeCompare$1,
14422
+ naturalSort
16088
14423
  }
16089
- if ('CI' in env) {
16090
- if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
16091
- return 1;
14424
+ } = constants_1;
14425
+ var sorts = {
14426
+ localeCompare: localeCompare$1,
14427
+ naturalSort
14428
+ };
14429
+
14430
+ const {
14431
+ LOOP_SENTINEL: LOOP_SENTINEL$1
14432
+ } = constants_1;
14433
+ const {
14434
+ localeCompare
14435
+ } = sorts;
14436
+ function getOwnPropertyValues$1(obj) {
14437
+ if (obj === null || obj === undefined) {
14438
+ return [];
14439
+ }
14440
+ const keys = Object.getOwnPropertyNames(obj);
14441
+ const {
14442
+ length
14443
+ } = keys;
14444
+ const values = Array(length);
14445
+ for (let i = 0; i < length; i += 1) {
14446
+ values[i] = obj[keys[i]];
14447
+ }
14448
+ return values;
14449
+ }
14450
+ function hasKeys(obj) {
14451
+ if (obj === null || obj === undefined) {
14452
+ return false;
14453
+ }
14454
+ for (const key in obj) {
14455
+ if (Object.hasOwn(obj, key)) {
14456
+ return true;
16092
14457
  }
16093
- return min;
16094
14458
  }
16095
- if ('TEAMCITY_VERSION' in env) {
16096
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
14459
+ return false;
14460
+ }
14461
+ function hasOwn(obj, propKey) {
14462
+ if (obj === null || obj === undefined) {
14463
+ return false;
16097
14464
  }
16098
- if (env.COLORTERM === 'truecolor') {
16099
- return 3;
14465
+ return Object.hasOwn(obj, propKey);
14466
+ }
14467
+ function isObject$1(value) {
14468
+ return value !== null && typeof value === 'object';
14469
+ }
14470
+ function isObjectObject$1(value) {
14471
+ return value !== null && typeof value === 'object' && !Array.isArray(value);
14472
+ }
14473
+ function merge$1(target, source) {
14474
+ if (!isObject$1(target) || !isObject$1(source)) {
14475
+ return target;
16100
14476
  }
16101
- if ('TERM_PROGRAM' in env) {
16102
- const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
16103
- switch (env.TERM_PROGRAM) {
16104
- case 'iTerm.app':
16105
- return version >= 3 ? 3 : 2;
16106
- case 'Apple_Terminal':
16107
- return 2;
16108
- // No default
14477
+ const queue = [[target, source]];
14478
+ let pos = 0;
14479
+ let {
14480
+ length: queueLength
14481
+ } = queue;
14482
+ while (pos < queueLength) {
14483
+ if (pos === LOOP_SENTINEL$1) {
14484
+ throw new Error('Detected infinite loop in object crawl of merge');
14485
+ }
14486
+ const {
14487
+ 0: currentTarget,
14488
+ 1: currentSource
14489
+ } = queue[pos++];
14490
+ const isSourceArray = Array.isArray(currentSource);
14491
+ if (Array.isArray(currentTarget)) {
14492
+ if (isSourceArray) {
14493
+ const seen = new Set(currentTarget);
14494
+ for (let i = 0, {
14495
+ length
14496
+ } = currentSource; i < length; i += 1) {
14497
+ const item = currentSource[i];
14498
+ if (!seen.has(item)) {
14499
+ currentTarget.push(item);
14500
+ seen.add(item);
14501
+ }
14502
+ }
14503
+ }
14504
+ continue;
14505
+ }
14506
+ if (isSourceArray) {
14507
+ continue;
14508
+ }
14509
+ const keys = Reflect.ownKeys(currentSource);
14510
+ for (let i = 0, {
14511
+ length
14512
+ } = keys; i < length; i += 1) {
14513
+ const key = keys[i];
14514
+ const srcVal = currentSource[key];
14515
+ const targetVal = currentTarget[key];
14516
+ if (Array.isArray(srcVal)) {
14517
+ if (Array.isArray(targetVal)) {
14518
+ const seen = new Set(targetVal);
14519
+ for (let i = 0, {
14520
+ length
14521
+ } = srcVal; i < length; i += 1) {
14522
+ const item = srcVal[i];
14523
+ if (!seen.has(item)) {
14524
+ targetVal.push(item);
14525
+ seen.add(item);
14526
+ }
14527
+ }
14528
+ } else {
14529
+ currentTarget[key] = srcVal;
14530
+ }
14531
+ } else if (isObject$1(srcVal)) {
14532
+ if (isObject$1(targetVal) && !Array.isArray(targetVal)) {
14533
+ queue[queueLength++] = [targetVal, srcVal];
14534
+ } else {
14535
+ currentTarget[key] = srcVal;
14536
+ }
14537
+ } else {
14538
+ currentTarget[key] = srcVal;
14539
+ }
16109
14540
  }
16110
14541
  }
16111
- if (/-256(color)?$/i.test(env.TERM)) {
16112
- return 2;
14542
+ return target;
14543
+ }
14544
+ function objectEntries$1(obj) {
14545
+ if (obj === null || obj === undefined) {
14546
+ return [];
16113
14547
  }
16114
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
16115
- return 1;
14548
+ const entries = Object.entries(obj);
14549
+ const symbols = Object.getOwnPropertySymbols(obj);
14550
+ for (let i = 0, {
14551
+ length
14552
+ } = symbols; i < length; i += 1) {
14553
+ const symbol = symbols[i];
14554
+ entries.push([symbol, obj[symbol]]);
16116
14555
  }
16117
- if ('COLORTERM' in env) {
16118
- return 1;
14556
+ return entries;
14557
+ }
14558
+ function objectFromEntries$1(entries) {
14559
+ const keyEntries = [];
14560
+ const symbolEntries = [];
14561
+ for (let i = 0, {
14562
+ length
14563
+ } = entries; i < length; i += 1) {
14564
+ const entry = entries[i];
14565
+ if (typeof entry[0] === 'symbol') {
14566
+ symbolEntries.push(entry);
14567
+ } else {
14568
+ keyEntries.push(entry);
14569
+ }
16119
14570
  }
16120
- return min;
14571
+ const object = Object.fromEntries(keyEntries);
14572
+ for (let i = 0, {
14573
+ length
14574
+ } = symbolEntries; i < length; i += 1) {
14575
+ const entry = symbolEntries[i];
14576
+ object[entry[0]] = entry[1];
14577
+ }
14578
+ return object;
16121
14579
  }
16122
- function getSupportLevel(stream) {
16123
- const level = supportsColor$1(stream, stream && stream.isTTY);
16124
- return translateLevel(level);
14580
+ function toSortedObject(obj) {
14581
+ return toSortedObjectFromEntries(objectEntries$1(obj));
14582
+ }
14583
+ function toSortedObjectFromEntries(entries) {
14584
+ return objectFromEntries$1(entries.sort((a, b) => localeCompare(a[0], b[0])));
14585
+ }
14586
+ var objects = {
14587
+ getOwnPropertyValues: getOwnPropertyValues$1,
14588
+ hasKeys,
14589
+ hasOwn,
14590
+ isObject: isObject$1,
14591
+ isObjectObject: isObjectObject$1,
14592
+ merge: merge$1,
14593
+ objectEntries: objectEntries$1,
14594
+ objectFromEntries: objectFromEntries$1,
14595
+ toSortedObject,
14596
+ toSortedObjectFromEntries
14597
+ };
14598
+
14599
+ const prettier = require$$0$5;
14600
+ const constants$1 = constants_1;
14601
+ function indentString(str, count = 1) {
14602
+ return str.replace(/^(?!\s*$)/gm, ' '.repeat(count));
14603
+ }
14604
+ function isNonEmptyString$1(value) {
14605
+ return typeof value === 'string' && value.length > 0;
14606
+ }
14607
+ function search$1(str, regexp, fromIndex = 0) {
14608
+ const {
14609
+ length
14610
+ } = str;
14611
+ if (fromIndex >= length) return -1;
14612
+ if (fromIndex === 0) return str.search(regexp);
14613
+ const offset = fromIndex < 0 ? Math.max(length + fromIndex, 0) : fromIndex;
14614
+ const result = str.slice(offset).search(regexp);
14615
+ return result === -1 ? -1 : result + offset;
16125
14616
  }
16126
- var supportsColor_1 = {
16127
- supportsColor: getSupportLevel,
16128
- stdout: translateLevel(supportsColor$1(true, tty.isatty(1))),
16129
- stderr: translateLevel(supportsColor$1(true, tty.isatty(2)))
14617
+ async function prettierFormat(str, options) {
14618
+ return prettier.format(str, {
14619
+ __proto__: null,
14620
+ // Lazily access constants.prettierConfigPromise.
14621
+ ...(await constants$1.prettierConfigPromise),
14622
+ ...options
14623
+ });
14624
+ }
14625
+ var strings = {
14626
+ indentString,
14627
+ isNonEmptyString: isNonEmptyString$1,
14628
+ prettierFormat,
14629
+ search: search$1
16130
14630
  };
16131
14631
 
16132
- const supportsColor = supportsColor_1;
16133
- const hasFlag = hasFlag$2;
16134
- function parseVersion(versionString) {
16135
- if (/^\d{3,4}$/.test(versionString)) {
16136
- // Env var doesn't always use dots. example: 4601 => 46.1.0
16137
- const m = /(\d{1,2})(\d{2})/.exec(versionString);
16138
- return {
16139
- major: 0,
16140
- minor: parseInt(m[1], 10),
16141
- patch: parseInt(m[2], 10)
16142
- };
14632
+ const {
14633
+ search
14634
+ } = strings;
14635
+ const leadingDotSlashRegExp = /^\.\.?[/\\]/;
14636
+ const slashRegExp = /[/\\]/;
14637
+ const nodeModulesPathRegExp = /(?:^|[/\\])node_modules(?:[/\\]|$)/;
14638
+ function isNodeModules$1(filepath) {
14639
+ return nodeModulesPathRegExp.test(filepath);
14640
+ }
14641
+ function isRelative(filepath) {
14642
+ if (typeof filepath === 'string' && filepath.charCodeAt(0) === 46 /*'.'*/) {
14643
+ if (filepath.length === 1) {
14644
+ return true;
14645
+ }
14646
+ const code1 = filepath.charCodeAt(1);
14647
+ return code1 === 47 /*'/'*/ || code1 === 92; /*'\\'*/
14648
+ }
14649
+ return false;
14650
+ }
14651
+ function normalizePath$1(filePath) {
14652
+ const {
14653
+ length
14654
+ } = filePath;
14655
+ if (length < 2) {
14656
+ return length === 1 && filePath.charCodeAt(0) === 92 /*'\\'*/ ? '/' : filePath;
14657
+ }
14658
+ let code = 0;
14659
+ let collapsed = '';
14660
+ let start = 0;
14661
+
14662
+ // Ensure win32 namespaces have two leading slashes so they are handled properly
14663
+ // by path.win32.parse() after being normalized.
14664
+ // https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#namespaces
14665
+ // UNC paths, paths starting with double slashes, e.g. "\\\\wsl.localhost\\Ubuntu\home\\",
14666
+ // are okay to convert to forward slashes.
14667
+ // https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
14668
+ let prefix = '';
14669
+ if (length > 4 && filePath.charCodeAt(3) === 92 /*'\\'*/) {
14670
+ const code2 = filePath.charCodeAt(2);
14671
+ // Look for \\?\ or \\.\
14672
+ if ((code2 === 63 /*'?'*/ || code2 === 46 /*'.'*/) && filePath.charCodeAt(0) === 92 /*'\\'*/ && filePath.charCodeAt(1) === 92 /*'\\'*/) {
14673
+ start = 2;
14674
+ prefix = '//';
14675
+ }
14676
+ }
14677
+ if (start === 0) {
14678
+ // Trim leading slashes
14679
+ while (code = filePath.charCodeAt(start), code === 47 /*'/'*/ || code === 92 /*'\\'*/) {
14680
+ start += 1;
14681
+ }
14682
+ if (start) {
14683
+ prefix = '/';
14684
+ }
14685
+ }
14686
+ let nextIndex = search(filePath, slashRegExp, start);
14687
+ if (nextIndex === -1) {
14688
+ return prefix + filePath.slice(start);
14689
+ }
14690
+ // Discard any empty string segments by collapsing repeated segment separator slashes.
14691
+ while (nextIndex !== -1) {
14692
+ const segment = filePath.slice(start, nextIndex);
14693
+ collapsed = collapsed + (collapsed.length === 0 ? '' : '/') + segment;
14694
+ start = nextIndex + 1;
14695
+ while (code = filePath.charCodeAt(start), code === 47 /*'/'*/ || code === 92 /*'\\'*/) {
14696
+ start += 1;
14697
+ }
14698
+ nextIndex = search(filePath, slashRegExp, start);
14699
+ }
14700
+ const lastSegment = filePath.slice(start);
14701
+ if (lastSegment.length !== 0) {
14702
+ collapsed = collapsed + '/' + lastSegment;
14703
+ }
14704
+ return prefix + collapsed;
14705
+ }
14706
+ function splitPath(filepath) {
14707
+ return filepath.split(slashRegExp);
14708
+ }
14709
+ function trimLeadingDotSlash(filepath) {
14710
+ return filepath.replace(leadingDotSlashRegExp, '');
14711
+ }
14712
+ var path$1 = {
14713
+ isNodeModules: isNodeModules$1,
14714
+ isRelative,
14715
+ normalizePath: normalizePath$1,
14716
+ splitPath,
14717
+ trimLeadingDotSlash
14718
+ };
14719
+
14720
+ // Inlined "escape-string-regexp":
14721
+ // https://socket.dev/npm/package/escape-string-regexp/overview/5.0.0
14722
+ // MIT License
14723
+ // Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
14724
+ function escapeRegExp$1(str) {
14725
+ // Escape characters with special meaning either inside or outside character sets.
14726
+ // Use a simple backslash escape when it’s always valid, and a `\xnn` escape when
14727
+ // the simpler form would be disallowed by Unicode patterns’ stricter grammar.
14728
+ return str.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d');
14729
+ }
14730
+ var regexps = {
14731
+ escapeRegExp: escapeRegExp$1
14732
+ };
14733
+
14734
+ const path = require$$1;
14735
+ const EditablePackageJson = require$$1$2;
14736
+ const cacache = require$$2$9;
14737
+ const fs = require$$4$2;
14738
+ const pack = require$$4$3;
14739
+ const makeFetchHappen = require$$5$1;
14740
+ const normalizePackageData = require$$6$2;
14741
+ const npmPackageArg = require$$7;
14742
+ const {
14743
+ PackageURL
14744
+ } = require$$8$1;
14745
+ const pacote = require$$5;
14746
+ const semver = require$$3;
14747
+ const spdxCorrect = require$$11;
14748
+ const spdxExpParse = require$$12;
14749
+ const validateNpmPackageName = require$$13;
14750
+ const {
14751
+ getOwnPropertyValues,
14752
+ isObject,
14753
+ isObjectObject,
14754
+ merge,
14755
+ objectEntries,
14756
+ objectFromEntries
14757
+ } = objects;
14758
+ const {
14759
+ isNodeModules,
14760
+ normalizePath
14761
+ } = path$1;
14762
+ const {
14763
+ escapeRegExp
14764
+ } = regexps;
14765
+ const {
14766
+ isNonEmptyString
14767
+ } = strings;
14768
+ const constants = constants_1;
14769
+ const {
14770
+ LOOP_SENTINEL,
14771
+ MIT,
14772
+ PACKAGE_DEFAULT_SOCKET_CATEGORIES,
14773
+ PACKAGE_JSON,
14774
+ PACKAGE_SCOPE,
14775
+ REGISTRY_SCOPE_DELIMITER,
14776
+ REPO_NAME,
14777
+ REPO_ORG,
14778
+ UNLICENCED,
14779
+ UNLICENSED,
14780
+ copyLeftLicenses,
14781
+ packageExtensions,
14782
+ packumentCache,
14783
+ pacoteCachePath
14784
+ } = constants;
14785
+ const BINARY_OPERATION_NODE_TYPE = 'BinaryOperation';
14786
+ const LICENSE_NODE_TYPE = 'License';
14787
+ const escapedScopeRegExp = new RegExp(`^[^${escapeRegExp(REGISTRY_SCOPE_DELIMITER[0])}]+${escapeRegExp(REGISTRY_SCOPE_DELIMITER)}(?!${escapeRegExp(REGISTRY_SCOPE_DELIMITER[0])})`);
14788
+ const fileReferenceRegExp = /^SEE LICEN[CS]E IN (.+)$/;
14789
+ const pkgScopeRegExp = new RegExp(`^${escapeRegExp(PACKAGE_SCOPE)}/`);
14790
+ const fetcher = makeFetchHappen.defaults({
14791
+ cachePath: pacoteCachePath,
14792
+ // Prefer-offline: Staleness checks for cached data will be bypassed, but
14793
+ // missing data will be requested from the server.
14794
+ // https://github.com/npm/make-fetch-happen?tab=readme-ov-file#--optscache
14795
+ cache: 'force-cache'
14796
+ });
14797
+ function collectIncompatibleLicenses(licenseNodes) {
14798
+ const result = [];
14799
+ for (let i = 0, {
14800
+ length
14801
+ } = licenseNodes; i < length; i += 1) {
14802
+ const node = licenseNodes[i];
14803
+ if (copyLeftLicenses.has(node.license)) {
14804
+ result.push(node);
14805
+ }
14806
+ }
14807
+ return result;
14808
+ }
14809
+ function collectLicenseWarnings(licenseNodes) {
14810
+ const warnings = new Map();
14811
+ for (let i = 0, {
14812
+ length
14813
+ } = licenseNodes; i < length; i += 1) {
14814
+ const node = licenseNodes[i];
14815
+ const {
14816
+ license
14817
+ } = node;
14818
+ if (license === UNLICENSED) {
14819
+ warnings.set(UNLICENSED, `Package is unlicensed`);
14820
+ } else if (node.inFile !== undefined) {
14821
+ warnings.set('IN_FILE', `License terms specified in ${node.inFile}`);
14822
+ }
16143
14823
  }
16144
- const versions = (versionString || '').split('.').map(n => parseInt(n, 10));
14824
+ return [...warnings.values()];
14825
+ }
14826
+ function createAstNode(rawNode) {
14827
+ return Object.hasOwn(rawNode, 'license') ? createLicenseNode(rawNode) : createBinaryOperationNode(rawNode);
14828
+ }
14829
+ function createBinaryOperationNode(rawNode) {
14830
+ let left;
14831
+ let right;
14832
+ let {
14833
+ left: rawLeft,
14834
+ right: rawRight
14835
+ } = rawNode;
14836
+ const {
14837
+ conjunction
14838
+ } = rawNode;
14839
+ rawNode = undefined;
14840
+ return {
14841
+ __proto__: null,
14842
+ type: BINARY_OPERATION_NODE_TYPE,
14843
+ get left() {
14844
+ if (left === undefined) {
14845
+ left = createAstNode(rawLeft);
14846
+ rawLeft = undefined;
14847
+ }
14848
+ return left;
14849
+ },
14850
+ conjunction,
14851
+ get right() {
14852
+ if (right === undefined) {
14853
+ right = createAstNode(rawRight);
14854
+ rawRight = undefined;
14855
+ }
14856
+ return right;
14857
+ }
14858
+ };
14859
+ }
14860
+ function createLicenseNode(rawNode) {
16145
14861
  return {
16146
- major: versions[0],
16147
- minor: versions[1],
16148
- patch: versions[2]
14862
+ __proto__: null,
14863
+ ...rawNode,
14864
+ type: LICENSE_NODE_TYPE
16149
14865
  };
16150
14866
  }
16151
- function supportsHyperlink(stream) {
14867
+ function createPackageJson(regPkgName, directory, options) {
16152
14868
  const {
16153
- env
16154
- } = process;
16155
- if ('FORCE_HYPERLINK' in env) {
16156
- return !(env.FORCE_HYPERLINK.length > 0 && parseInt(env.FORCE_HYPERLINK, 10) === 0);
14869
+ dependencies,
14870
+ description,
14871
+ engines,
14872
+ exports: entryExportsRaw,
14873
+ files,
14874
+ keywords,
14875
+ main,
14876
+ overrides,
14877
+ resolutions,
14878
+ sideEffects,
14879
+ socket,
14880
+ type,
14881
+ version
14882
+ } = {
14883
+ __proto__: null,
14884
+ ...options
14885
+ };
14886
+ // Lazily access constants.PACKAGE_DEFAULT_NODE_RANGE.
14887
+ const {
14888
+ PACKAGE_DEFAULT_NODE_RANGE
14889
+ } = constants;
14890
+ const name = `${PACKAGE_SCOPE}/${regPkgName.replace(pkgScopeRegExp, '')}`;
14891
+ const entryExports = resolvePackageJsonEntryExports(entryExportsRaw);
14892
+ const githubUrl = `https://github.com/${REPO_ORG}/${REPO_NAME}`;
14893
+ return {
14894
+ __proto__: null,
14895
+ name,
14896
+ version,
14897
+ license: MIT,
14898
+ description,
14899
+ keywords,
14900
+ homepage: `${githubUrl}/tree/main/${directory}`,
14901
+ repository: {
14902
+ type: 'git',
14903
+ url: `git+${githubUrl}.git`,
14904
+ directory
14905
+ },
14906
+ ...(type ? {
14907
+ type
14908
+ } : {}),
14909
+ ...(entryExports ? {
14910
+ exports: entryExports
14911
+ } : {}),
14912
+ ...(entryExports ? {} : {
14913
+ main: `${main ?? './index.js'}`
14914
+ }),
14915
+ sideEffects: sideEffects !== undefined && !!sideEffects,
14916
+ ...(isObjectObject(dependencies) ? {
14917
+ dependencies
14918
+ } : {}),
14919
+ ...(isObjectObject(overrides) ? {
14920
+ overrides
14921
+ } : {}),
14922
+ ...(isObjectObject(resolutions) ? {
14923
+ resolutions
14924
+ } : {}),
14925
+ ...(isObjectObject(engines) ? {
14926
+ engines: objectFromEntries(objectEntries(engines).map(pair => {
14927
+ if (pair[0] === 'node') {
14928
+ const {
14929
+ 1: range
14930
+ } = pair;
14931
+ if (!semver.satisfies(semver.coerce(range), PACKAGE_DEFAULT_NODE_RANGE)) {
14932
+ pair[1] = pkgScopeRegExp;
14933
+ }
14934
+ }
14935
+ return pair;
14936
+ }))
14937
+ } : {
14938
+ engines: {
14939
+ node: PACKAGE_DEFAULT_NODE_RANGE
14940
+ }
14941
+ }),
14942
+ files: Array.isArray(files) ? files : ['*.d.ts', '*.js'],
14943
+ ...(isObjectObject(socket) ? {
14944
+ socket
14945
+ } : {
14946
+ socket: {
14947
+ // Valid categories are: cleanup, levelup, speedup, tuneup
14948
+ categories: PACKAGE_DEFAULT_SOCKET_CATEGORIES
14949
+ }
14950
+ })
14951
+ };
14952
+ }
14953
+ async function extractPackage(pkgNameOrId, options, callback) {
14954
+ if (arguments.length === 2 && typeof options === 'function') {
14955
+ callback = options;
14956
+ options = undefined;
16157
14957
  }
16158
- if (hasFlag('no-hyperlink') || hasFlag('no-hyperlinks') || hasFlag('hyperlink=false') || hasFlag('hyperlink=never')) {
16159
- return false;
14958
+ const {
14959
+ tmpPrefix,
14960
+ ...extractOptions
14961
+ } = {
14962
+ __proto__: null,
14963
+ ...options
14964
+ };
14965
+ await cacache.tmp.withTmp(pacoteCachePath, {
14966
+ tmpPrefix
14967
+ }, async tmpDirPath => {
14968
+ await pacote.extract(pkgNameOrId, tmpDirPath, {
14969
+ __proto__: null,
14970
+ packumentCache,
14971
+ preferOffline: true,
14972
+ ...extractOptions
14973
+ });
14974
+ await callback(tmpDirPath);
14975
+ });
14976
+ }
14977
+ async function fetchPackageManifest(pkgNameOrId, options) {
14978
+ const pacoteOptions = {
14979
+ __proto__: null,
14980
+ ...options,
14981
+ packumentCache,
14982
+ preferOffline: true
14983
+ };
14984
+ const {
14985
+ signal
14986
+ } = pacoteOptions;
14987
+ if (signal?.aborted) {
14988
+ return null;
16160
14989
  }
16161
- if (hasFlag('hyperlink=true') || hasFlag('hyperlink=always')) {
16162
- return true;
14990
+ let result;
14991
+ try {
14992
+ result = await pacote.manifest(pkgNameOrId, pacoteOptions);
14993
+ } catch {}
14994
+ if (signal?.aborted) {
14995
+ return null;
16163
14996
  }
16164
-
16165
- // Netlify does not run a TTY, it does not need `supportsColor` check
16166
- if ('NETLIFY' in env) {
16167
- return true;
14997
+ if (result) {
14998
+ const spec = npmPackageArg(pkgNameOrId, pacoteOptions.where);
14999
+ if (isRegistryFetcherType(spec.type)) {
15000
+ return result;
15001
+ }
16168
15002
  }
16169
-
16170
- // If they specify no colors, they probably don't want hyperlinks.
16171
- if (!supportsColor.supportsColor(stream)) {
16172
- return false;
15003
+ // Convert a manifest not fetched by RegistryFetcher to one that is.
15004
+ return result ? fetchPackageManifest(`${result.name}@${result.version}`, pacoteOptions) : null;
15005
+ }
15006
+ function findPackageExtensions(pkgName, pkgVer) {
15007
+ let result;
15008
+ for (const {
15009
+ 0: selector,
15010
+ 1: ext
15011
+ } of packageExtensions) {
15012
+ const lastAtSignIndex = selector.lastIndexOf('@');
15013
+ const name = selector.slice(0, lastAtSignIndex);
15014
+ if (pkgName === name) {
15015
+ const range = selector.slice(lastAtSignIndex + 1);
15016
+ if (semver.satisfies(pkgVer, range)) {
15017
+ if (result === undefined) {
15018
+ result = {};
15019
+ }
15020
+ merge(result, ext);
15021
+ }
15022
+ }
16173
15023
  }
16174
- if (stream && !stream.isTTY) {
16175
- return false;
15024
+ return result;
15025
+ }
15026
+ function findTypesForSubpath(entryExports, subpath) {
15027
+ const queue = [entryExports];
15028
+ let pos = 0;
15029
+ while (pos < queue.length) {
15030
+ if (pos === LOOP_SENTINEL) {
15031
+ throw new Error('Detected infinite loop in entry exports crawl of getTypesForSubpath');
15032
+ }
15033
+ const value = queue[pos++];
15034
+ if (Array.isArray(value)) {
15035
+ for (let i = 0, {
15036
+ length
15037
+ } = value; i < length; i += 1) {
15038
+ const item = value[i];
15039
+ if (item === subpath) {
15040
+ return value.types;
15041
+ }
15042
+ if (isObject(item)) {
15043
+ queue.push(item);
15044
+ }
15045
+ }
15046
+ } else if (isObject(value)) {
15047
+ const keys = Object.getOwnPropertyNames(value);
15048
+ for (let i = 0, {
15049
+ length
15050
+ } = keys; i < length; i += 1) {
15051
+ const item = value[keys[i]];
15052
+ if (item === subpath) {
15053
+ return value.types;
15054
+ }
15055
+ if (isObject(item)) {
15056
+ queue.push(item);
15057
+ }
15058
+ }
15059
+ }
16176
15060
  }
16177
- if (process.platform === 'win32') {
16178
- return false;
15061
+ return undefined;
15062
+ }
15063
+ function getRepoUrlDetails(repoUrl = '') {
15064
+ const userAndRepo = repoUrl.replace(/^.+github.com\//, '').split('/');
15065
+ const {
15066
+ 0: user
15067
+ } = userAndRepo;
15068
+ const project = userAndRepo.length > 1 ? userAndRepo[1].slice(0, -'.git'.length) : '';
15069
+ return {
15070
+ user,
15071
+ project
15072
+ };
15073
+ }
15074
+ function getSubpaths(entryExports) {
15075
+ const result = [];
15076
+ const queue = getOwnPropertyValues(entryExports);
15077
+ let pos = 0;
15078
+ while (pos < queue.length) {
15079
+ if (pos === LOOP_SENTINEL) {
15080
+ throw new Error('Detected infinite loop in entry exports crawl of getSubpaths');
15081
+ }
15082
+ const value = queue[pos++];
15083
+ if (typeof value === 'string') {
15084
+ result.push(value);
15085
+ } else if (Array.isArray(value)) {
15086
+ queue.push(...value);
15087
+ } else if (isObject(value)) {
15088
+ queue.push(...getOwnPropertyValues(value));
15089
+ }
16179
15090
  }
16180
- if ('CI' in env) {
15091
+ return result;
15092
+ }
15093
+ function gitHubTagRefUrl(user, project, tag) {
15094
+ return `https://api.github.com/repos/${user}/${project}/git/ref/tags/${tag}`;
15095
+ }
15096
+ function gitHubTgzUrl(user, project, sha) {
15097
+ return `https://github.com/${user}/${project}/archive/${sha}.tar.gz`;
15098
+ }
15099
+ function isConditionalExports(entryExports) {
15100
+ if (!isObjectObject(entryExports)) {
16181
15101
  return false;
16182
15102
  }
16183
- if ('TEAMCITY_VERSION' in env) {
15103
+ const keys = Object.getOwnPropertyNames(entryExports);
15104
+ const {
15105
+ length
15106
+ } = keys;
15107
+ if (!length) {
16184
15108
  return false;
16185
15109
  }
16186
- if ('TERM_PROGRAM' in env) {
16187
- const version = parseVersion(env.TERM_PROGRAM_VERSION);
16188
- switch (env.TERM_PROGRAM) {
16189
- case 'iTerm.app':
16190
- if (version.major === 3) {
16191
- return version.minor >= 1;
16192
- }
16193
- return version.major > 3;
16194
- case 'WezTerm':
16195
- return version.major >= 20200620;
16196
- case 'vscode':
16197
- return version.major > 1 || version.major === 1 && version.minor >= 72;
16198
- // No default
15110
+ // Conditional entry exports do NOT contain keys starting with '.'.
15111
+ // Entry exports cannot contain some keys starting with '.' and some not.
15112
+ // The exports object MUST either be an object of package subpath keys OR
15113
+ // an object of main entry condition name keys only.
15114
+ for (let i = 0; i < length; i += 1) {
15115
+ const key = keys[i];
15116
+ if (key.length > 0 && key.charCodeAt(0) === 46 /*'.'*/) {
15117
+ return false;
16199
15118
  }
16200
15119
  }
16201
- if ('VTE_VERSION' in env) {
16202
- // 0.50.0 was supposed to support hyperlinks, but throws a segfault
16203
- if (env.VTE_VERSION === '0.50.0') {
16204
- return false;
15120
+ return true;
15121
+ }
15122
+ function isRegistryFetcherType(type) {
15123
+ // RegistryFetcher spec.type check based on:
15124
+ // https://github.com/npm/pacote/blob/v19.0.0/lib/fetcher.js#L467-L488
15125
+ return type === 'alias' || type === 'range' || type === 'tag' || type === 'version';
15126
+ }
15127
+ function isSubpathExports(entryExports) {
15128
+ if (isObjectObject(entryExports)) {
15129
+ const keys = Object.getOwnPropertyNames(entryExports);
15130
+ for (let i = 0, {
15131
+ length
15132
+ } = keys; i < length; i += 1) {
15133
+ // Subpath entry exports contain keys starting with '.'.
15134
+ // Entry exports cannot contain some keys starting with '.' and some not.
15135
+ // The exports object MUST either be an object of package subpath keys OR
15136
+ // an object of main entry condition name keys only.
15137
+ if (keys[i].charCodeAt(0) === 46 /*'.'*/) {
15138
+ return true;
15139
+ }
16205
15140
  }
16206
- const version = parseVersion(env.VTE_VERSION);
16207
- return version.major > 0 || version.minor >= 50;
16208
15141
  }
16209
15142
  return false;
16210
15143
  }
16211
- var supportsHyperlinks = {
16212
- supportsHyperlink,
16213
- stdout: supportsHyperlink(process.stdout),
16214
- stderr: supportsHyperlink(process.stderr)
15144
+ function isValidPackageName(value) {
15145
+ return validateNpmPackageName(value).validForOldPackages;
15146
+ }
15147
+ function jsonToEditablePackageJson(pkgJson, options) {
15148
+ return new EditablePackageJson().fromContent(normalizePackageJson(pkgJson, options));
15149
+ }
15150
+ function normalizePackageJson(pkgJson, options) {
15151
+ const {
15152
+ preserve
15153
+ } = {
15154
+ __proto__: null,
15155
+ ...options
15156
+ };
15157
+ const preserved = [['_id', undefined], ['readme', undefined], ...(Object.hasOwn(pkgJson, 'bugs') ? [] : [['bugs', undefined]]), ...(Object.hasOwn(pkgJson, 'homepage') ? [] : [['homepage', undefined]]), ...(Object.hasOwn(pkgJson, 'name') ? [] : [['name', undefined]]), ...(Object.hasOwn(pkgJson, 'version') ? [] : [['version', undefined]]), ...(Array.isArray(preserve) ? preserve.map(k => [k, Object.hasOwn(pkgJson, k) ? pkgJson[k] : undefined]) : [])];
15158
+ normalizePackageData(pkgJson);
15159
+ merge(pkgJson, findPackageExtensions(pkgJson.name, pkgJson.version));
15160
+ // Revert/remove properties we don't care to have normalized.
15161
+ // Properties with undefined values are omitted when saved as JSON.
15162
+ for (const {
15163
+ 0: key,
15164
+ 1: value
15165
+ } of preserved) {
15166
+ pkgJson[key] = value;
15167
+ }
15168
+ return pkgJson;
15169
+ }
15170
+ async function packPackage(spec, options) {
15171
+ return await pack(spec, {
15172
+ __proto__: null,
15173
+ ...options,
15174
+ packumentCache,
15175
+ preferOffline: true
15176
+ });
15177
+ }
15178
+ function parseSpdxExp(spdxExp) {
15179
+ try {
15180
+ return spdxExpParse(spdxExp);
15181
+ } catch {}
15182
+ const corrected = spdxCorrect(spdxExp);
15183
+ return corrected ? spdxExpParse(corrected) : null;
15184
+ }
15185
+ async function readPackageJson(filepath, options) {
15186
+ const {
15187
+ editable,
15188
+ ...otherOptions
15189
+ } = {
15190
+ __proto__: null,
15191
+ ...options
15192
+ };
15193
+ const pkgJson = await fs.readJson(resolvePackageJsonPath(filepath));
15194
+ return editable ? await toEditablePackageJson(pkgJson, {
15195
+ path: filepath,
15196
+ ...otherOptions
15197
+ }) : normalizePackageJson(pkgJson, otherOptions);
15198
+ }
15199
+ function readPackageJsonSync(filepath, options) {
15200
+ const {
15201
+ editable,
15202
+ ...otherOptions
15203
+ } = {
15204
+ __proto__: null,
15205
+ ...options
15206
+ };
15207
+ const pkgJson = fs.readJsonSync(resolvePackageJsonPath(filepath));
15208
+ return editable ? toEditablePackageJsonSync(pkgJson, {
15209
+ path: filepath,
15210
+ ...otherOptions
15211
+ }) : normalizePackageJson(pkgJson, otherOptions);
15212
+ }
15213
+ function resolveEscapedScope(regPkgName) {
15214
+ return escapedScopeRegExp.exec(regPkgName)?.[0] ?? '';
15215
+ }
15216
+ async function resolveGitHubTgzUrl(pkgNameOrId, where) {
15217
+ const whereIsPkgJson = isObjectObject(where);
15218
+ const pkgJson = whereIsPkgJson ? where : await readPackageJson(where);
15219
+ const {
15220
+ version
15221
+ } = pkgJson;
15222
+ const parsedSpec = npmPackageArg(pkgNameOrId, whereIsPkgJson ? undefined : where);
15223
+ const isTarballUrl = parsedSpec.type === 'remote' && !!parsedSpec.saveSpec?.endsWith('.tar.gz');
15224
+ if (isTarballUrl) {
15225
+ return parsedSpec.saveSpec;
15226
+ }
15227
+ const isgithubUrl = parsedSpec.type === 'git' && parsedSpec.hosted?.domain === 'github.com' && isNonEmptyString(parsedSpec.gitCommittish);
15228
+ const {
15229
+ project,
15230
+ user
15231
+ } = isgithubUrl ? parsedSpec.hosted : getRepoUrlDetails(pkgJson.repository?.url);
15232
+ if (user && project) {
15233
+ let apiUrl = '';
15234
+ if (isgithubUrl) {
15235
+ apiUrl = gitHubTagRefUrl(user, project, parsedSpec.gitCommittish);
15236
+ } else {
15237
+ // First try to resolve the sha for a tag starting with "v", e.g. v1.2.3.
15238
+ apiUrl = gitHubTagRefUrl(user, project, `v${version}`);
15239
+ if (!(await fetcher(apiUrl, {
15240
+ method: 'head'
15241
+ })).ok) {
15242
+ // If a sha isn't found, try again with the "v" removed, e.g. 1.2.3.
15243
+ apiUrl = gitHubTagRefUrl(user, project, version);
15244
+ if (!(await fetcher(apiUrl, {
15245
+ method: 'head'
15246
+ })).ok) {
15247
+ apiUrl = '';
15248
+ }
15249
+ }
15250
+ }
15251
+ if (apiUrl) {
15252
+ const resp = await fetcher(apiUrl);
15253
+ const json = await resp.json();
15254
+ const sha = json?.object?.sha;
15255
+ if (sha) {
15256
+ return gitHubTgzUrl(user, project, sha);
15257
+ }
15258
+ }
15259
+ }
15260
+ return '';
15261
+ }
15262
+ function resolveOriginalPackageName(regPkgName) {
15263
+ const escapedScope = resolveEscapedScope(regPkgName);
15264
+ return escapedScope ? `${unescapeScope(escapedScope)}/${regPkgName.slice(escapedScope.length)}` : regPkgName;
15265
+ }
15266
+ function resolvePackageJsonDirname(filepath) {
15267
+ return filepath.endsWith(PACKAGE_JSON) ? path.dirname(filepath) : filepath;
15268
+ }
15269
+ function resolvePackageJsonEntryExports(entryExports) {
15270
+ // If conditional exports main sugar
15271
+ // https://nodejs.org/api/packages.html#exports-sugar
15272
+ if (typeof entryExports === 'string' || Array.isArray(entryExports)) {
15273
+ return {
15274
+ '.': entryExports
15275
+ };
15276
+ }
15277
+ if (isConditionalExports(entryExports)) {
15278
+ return entryExports;
15279
+ }
15280
+ return isObject(entryExports) ? entryExports : undefined;
15281
+ }
15282
+ function resolvePackageJsonPath(filepath) {
15283
+ return filepath.endsWith(PACKAGE_JSON) ? filepath : path.join(filepath, PACKAGE_JSON);
15284
+ }
15285
+ function resolvePackageLicenses(licenseFieldValue, where) {
15286
+ // Based off of validate-npm-package-license which npm, by way of normalize-package-data,
15287
+ // uses to validate license field values:
15288
+ // https://github.com/kemitchell/validate-npm-package-license.js/blob/v3.0.4/index.js#L40-L41
15289
+ if (licenseFieldValue === UNLICENSED || licenseFieldValue === UNLICENCED) {
15290
+ return [{
15291
+ license: UNLICENSED
15292
+ }];
15293
+ }
15294
+ // Match "SEE LICENSE IN <relativeFilepathToLicense>"
15295
+ // https://github.com/kemitchell/validate-npm-package-license.js/blob/v3.0.4/index.js#L48-L53
15296
+ const match = fileReferenceRegExp.exec(licenseFieldValue);
15297
+ if (match) {
15298
+ return [{
15299
+ license: licenseFieldValue,
15300
+ inFile: normalizePath(path.relative(where, match[1]))
15301
+ }];
15302
+ }
15303
+ const licenseNodes = [];
15304
+ const ast = parseSpdxExp(licenseFieldValue);
15305
+ if (ast) {
15306
+ // SPDX expressions are valid, too except if they contain "LicenseRef" or
15307
+ // "DocumentRef". If the licensing terms cannot be described with standardized
15308
+ // SPDX identifiers, then the terms should be put in a file in the package
15309
+ // and the license field should point users there, e.g. "SEE LICENSE IN LICENSE.txt".
15310
+ // https://github.com/kemitchell/validate-npm-package-license.js/blob/v3.0.4/index.js#L18-L24
15311
+ visitLicenses(ast, {
15312
+ __proto__: null,
15313
+ License(node) {
15314
+ const {
15315
+ license
15316
+ } = node;
15317
+ if (license.startsWith('LicenseRef') || license.startsWith('DocumentRef')) {
15318
+ licenseNodes.length = 0;
15319
+ return false;
15320
+ }
15321
+ licenseNodes.push(node);
15322
+ }
15323
+ });
15324
+ }
15325
+ return licenseNodes;
15326
+ }
15327
+ function resolveRegistryPackageName(pkgName) {
15328
+ const purlObj = PackageURL.fromString(`pkg:npm/${pkgName}`);
15329
+ return purlObj.namespace ? `${purlObj.namespace.slice(1)}${REGISTRY_SCOPE_DELIMITER}${purlObj.name}` : pkgName;
15330
+ }
15331
+ async function toEditablePackageJson(pkgJson, options) {
15332
+ const {
15333
+ path: filepath,
15334
+ ...normalizeOptions
15335
+ } = {
15336
+ __proto__: null,
15337
+ ...options
15338
+ };
15339
+ if (typeof filepath !== 'string') {
15340
+ return jsonToEditablePackageJson(pkgJson, normalizeOptions);
15341
+ }
15342
+ const pkgJsonPath = resolvePackageJsonDirname(filepath);
15343
+ return (await EditablePackageJson.load(pkgJsonPath, {
15344
+ create: true
15345
+ })).fromJSON(`${JSON.stringify(normalizePackageJson(pkgJson, {
15346
+ __proto__: null,
15347
+ ...(isNodeModules(pkgJsonPath) ? {} : {
15348
+ preserve: ['repository']
15349
+ }),
15350
+ ...normalizeOptions
15351
+ }), null, 2)}\n`);
15352
+ }
15353
+ function toEditablePackageJsonSync(pkgJson, options) {
15354
+ const {
15355
+ path: filepath,
15356
+ ...normalizeOptions
15357
+ } = {
15358
+ __proto__: null,
15359
+ ...options
15360
+ };
15361
+ if (typeof filepath !== 'string') {
15362
+ return jsonToEditablePackageJson(pkgJson, normalizeOptions);
15363
+ }
15364
+ const pkgJsonPath = resolvePackageJsonDirname(filepath);
15365
+ return new EditablePackageJson().create(pkgJsonPath).fromJSON(`${JSON.stringify(normalizePackageJson(pkgJson, {
15366
+ __proto__: null,
15367
+ ...(isNodeModules(pkgJsonPath) ? {} : {
15368
+ preserve: ['repository']
15369
+ }),
15370
+ ...normalizeOptions
15371
+ }), null, 2)}\n`);
15372
+ }
15373
+ function unescapeScope(escapedScope) {
15374
+ return `@${escapedScope.slice(0, -REGISTRY_SCOPE_DELIMITER.length)}`;
15375
+ }
15376
+ function visitLicenses(ast, visitor) {
15377
+ const queue = [[createAstNode(ast), undefined]];
15378
+ let pos = 0;
15379
+ let {
15380
+ length: queueLength
15381
+ } = queue;
15382
+ while (pos < queueLength) {
15383
+ if (pos === LOOP_SENTINEL) {
15384
+ throw new Error('Detected infinite loop in ast crawl of visitLicenses');
15385
+ }
15386
+ // AST nodes can be a license node which looks like
15387
+ // {
15388
+ // license: string
15389
+ // plus?: boolean
15390
+ // exception?: string
15391
+ // }
15392
+ // or a binary operation node which looks like
15393
+ // {
15394
+ // left: License | BinaryOperation
15395
+ // conjunction: string
15396
+ // right: License | BinaryOperation
15397
+ // }
15398
+ const {
15399
+ 0: node,
15400
+ 1: parent
15401
+ } = queue[pos++];
15402
+ const {
15403
+ type
15404
+ } = node;
15405
+ if (visitor[type]?.(node, parent) === false) {
15406
+ break;
15407
+ }
15408
+ if (type === BINARY_OPERATION_NODE_TYPE) {
15409
+ queue[queueLength++] = [node.left, node];
15410
+ queue[queueLength++] = [node.right, node];
15411
+ }
15412
+ }
15413
+ }
15414
+ var packages = {
15415
+ collectIncompatibleLicenses,
15416
+ collectLicenseWarnings,
15417
+ createPackageJson,
15418
+ extractPackage,
15419
+ fetchPackageManifest,
15420
+ findTypesForSubpath,
15421
+ getSubpaths,
15422
+ isConditionalExports,
15423
+ isSubpathExports,
15424
+ isValidPackageName,
15425
+ normalizePackageJson,
15426
+ packPackage,
15427
+ readPackageJson,
15428
+ readPackageJsonSync,
15429
+ resolveEscapedScope,
15430
+ resolveGitHubTgzUrl,
15431
+ resolveOriginalPackageName,
15432
+ resolvePackageJsonDirname,
15433
+ resolvePackageJsonEntryExports,
15434
+ resolvePackageJsonPath,
15435
+ resolvePackageLicenses,
15436
+ resolveRegistryPackageName,
15437
+ toEditablePackageJson,
15438
+ toEditablePackageJsonSync,
15439
+ unescapeScope
15440
+ };
15441
+
15442
+ function arrayChunk$1(arr, size = 2) {
15443
+ const {
15444
+ length
15445
+ } = arr;
15446
+ const chunkSize = Math.min(length, size);
15447
+ const chunks = [];
15448
+ for (let i = 0; i < length; i += chunkSize) {
15449
+ chunks.push(arr.slice(i, i + chunkSize));
15450
+ }
15451
+ return chunks;
15452
+ }
15453
+ function arrayUnique(arr) {
15454
+ return [...new Set(arr)];
15455
+ }
15456
+ function joinAsList(arr) {
15457
+ const {
15458
+ length
15459
+ } = arr;
15460
+ if (length === 0) {
15461
+ return '';
15462
+ }
15463
+ if (length === 1) {
15464
+ return arr[0];
15465
+ }
15466
+ if (length === 2) {
15467
+ return `${arr[0]} and ${arr[1]}`;
15468
+ }
15469
+ return `${arr.slice(0, -1).join(', ')}, and ${arr.at(-1)}`;
15470
+ }
15471
+ var arrays = {
15472
+ arrayChunk: arrayChunk$1,
15473
+ arrayUnique,
15474
+ joinAsList
16215
15475
  };
16216
15476
 
16217
- Object.defineProperty(terminalLink$1, "__esModule", {
16218
- value: true
16219
- });
16220
- terminalLink$1.default = terminalLink;
16221
- var _ansiEscapes = ansiEscapes$1;
16222
- var _supportsHyperlinks = supportsHyperlinks;
16223
- function terminalLink(text, url, {
16224
- target = 'stdout',
16225
- ...options
16226
- } = {}) {
16227
- if (!_supportsHyperlinks[target]) {
16228
- // If the fallback has been explicitly disabled, don't modify the text itself.
16229
- if (options.fallback === false) {
16230
- return text;
15477
+ const {
15478
+ arrayChunk
15479
+ } = arrays;
15480
+ async function pEach(array, concurrency, callbackFn, options) {
15481
+ await pEachChunk(arrayChunk(array, concurrency), callbackFn, options);
15482
+ }
15483
+ async function pFilter(array, concurrency, callbackFn, options) {
15484
+ return (await pFilterChunk(arrayChunk(array, concurrency), callbackFn, options)).flat();
15485
+ }
15486
+ async function pEachChunk(chunks, callbackFn, options) {
15487
+ const {
15488
+ signal
15489
+ } = {
15490
+ __proto__: null,
15491
+ ...options
15492
+ };
15493
+ for (const chunk of chunks) {
15494
+ if (signal?.aborted) {
15495
+ return;
16231
15496
  }
16232
- return typeof options.fallback === 'function' ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
15497
+ // eslint-disable-next-line no-await-in-loop
15498
+ await Promise.all(chunk.map(value => signal?.aborted ? undefined : callbackFn(value, {
15499
+ signal
15500
+ })));
16233
15501
  }
16234
- return _ansiEscapes.default.link(text, url);
16235
15502
  }
16236
- terminalLink.isSupported = _supportsHyperlinks.stdout;
16237
- terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, {
16238
- target: 'stderr',
16239
- ...options
16240
- });
16241
- terminalLink.stderr.isSupported = _supportsHyperlinks.stderr;
15503
+ async function pFilterChunk(chunks, callbackFn, options) {
15504
+ const {
15505
+ signal
15506
+ } = {
15507
+ __proto__: null,
15508
+ ...options
15509
+ };
15510
+ const {
15511
+ length
15512
+ } = chunks;
15513
+ const filteredChunks = Array(length);
15514
+ for (let i = 0; i < length; i += 1) {
15515
+ // Process each chunk, filtering based on the callback function
15516
+ if (signal?.aborted) {
15517
+ filteredChunks[i] = [];
15518
+ } else {
15519
+ // eslint-disable-next-line no-await-in-loop
15520
+ const results = await Promise.all(chunks[i].map(value => signal?.aborted ? Promise.resolve() : callbackFn(value, {
15521
+ signal
15522
+ })));
15523
+ filteredChunks[i] = results.filter(Boolean);
15524
+ }
15525
+ }
15526
+ return filteredChunks;
15527
+ }
15528
+ var promises = {
15529
+ pEach,
15530
+ pEachChunk,
15531
+ pFilter,
15532
+ pFilterChunk
15533
+ };
16242
15534
 
16243
15535
  var open$1 = {};
16244
15536
 
@@ -16252,7 +15544,7 @@ Object.defineProperty(isDocker$1, "__esModule", {
16252
15544
  value: true
16253
15545
  });
16254
15546
  isDocker$1.default = isDocker;
16255
- var _nodeFs$2 = require$$0$3;
15547
+ var _nodeFs$2 = require$$0$1;
16256
15548
  let isDockerCached;
16257
15549
  function hasDockerEnv() {
16258
15550
  try {
@@ -16281,7 +15573,7 @@ Object.defineProperty(isInsideContainer$1, "__esModule", {
16281
15573
  value: true
16282
15574
  });
16283
15575
  isInsideContainer$1.default = isInsideContainer;
16284
- var _nodeFs$1 = require$$0$3;
15576
+ var _nodeFs$1 = require$$0$1;
16285
15577
  var _isDocker = isDocker$1;
16286
15578
  let cachedResult;
16287
15579
 
@@ -16306,9 +15598,9 @@ Object.defineProperty(isWsl$1, "__esModule", {
16306
15598
  value: true
16307
15599
  });
16308
15600
  isWsl$1.default = void 0;
16309
- var _nodeProcess$4 = require$$0$2;
15601
+ var _nodeProcess$4 = require$$0;
16310
15602
  var _nodeOs = require$$2$1;
16311
- var _nodeFs = require$$0$3;
15603
+ var _nodeFs = require$$0$1;
16312
15604
  var _isInsideContainer$1 = isInsideContainer$1;
16313
15605
  const isWsl = () => {
16314
15606
  if (_nodeProcess$4.platform !== 'linux') {
@@ -16363,8 +15655,8 @@ Object.defineProperty(defaultBrowserId$1, "__esModule", {
16363
15655
  value: true
16364
15656
  });
16365
15657
  defaultBrowserId$1.default = defaultBrowserId;
16366
- var _nodeUtil$3 = require$$0$4;
16367
- var _nodeProcess$3 = require$$0$2;
15658
+ var _nodeUtil$3 = require$$0$2;
15659
+ var _nodeProcess$3 = require$$0;
16368
15660
  var _nodeChild_process$4 = require$$2$6;
16369
15661
  const execFileAsync$3 = (0, _nodeUtil$3.promisify)(_nodeChild_process$4.execFile);
16370
15662
  async function defaultBrowserId() {
@@ -16389,8 +15681,8 @@ Object.defineProperty(runApplescript, "__esModule", {
16389
15681
  });
16390
15682
  runApplescript.runAppleScript = runAppleScript;
16391
15683
  runApplescript.runAppleScriptSync = runAppleScriptSync;
16392
- var _nodeProcess$2 = require$$0$2;
16393
- var _nodeUtil$2 = require$$0$4;
15684
+ var _nodeProcess$2 = require$$0;
15685
+ var _nodeUtil$2 = require$$0$2;
16394
15686
  var _nodeChild_process$3 = require$$2$6;
16395
15687
  const execFileAsync$2 = (0, _nodeUtil$2.promisify)(_nodeChild_process$3.execFile);
16396
15688
  async function runAppleScript(script, {
@@ -16436,7 +15728,7 @@ Object.defineProperty(windows, "__esModule", {
16436
15728
  });
16437
15729
  windows.UnknownBrowserError = void 0;
16438
15730
  windows.default = defaultBrowser$1;
16439
- var _nodeUtil$1 = require$$0$4;
15731
+ var _nodeUtil$1 = require$$0$2;
16440
15732
  var _nodeChild_process$2 = require$$2$6;
16441
15733
  const execFileAsync$1 = (0, _nodeUtil$1.promisify)(_nodeChild_process$2.execFile);
16442
15734
 
@@ -16506,8 +15798,8 @@ Object.defineProperty(defaultBrowser$2, "__esModule", {
16506
15798
  value: true
16507
15799
  });
16508
15800
  defaultBrowser$2.default = defaultBrowser;
16509
- var _nodeUtil = require$$0$4;
16510
- var _nodeProcess$1 = require$$0$2;
15801
+ var _nodeUtil = require$$0$2;
15802
+ var _nodeProcess$1 = require$$0;
16511
15803
  var _nodeChild_process$1 = require$$2$6;
16512
15804
  var _defaultBrowserId = defaultBrowserId$1;
16513
15805
  var _bundleName = bundleName$1;
@@ -16547,12 +15839,12 @@ Object.defineProperty(open$1, "__esModule", {
16547
15839
  value: true
16548
15840
  });
16549
15841
  open$1.openApp = open$1.default = open$1.apps = void 0;
16550
- var _nodeProcess = require$$0$2;
16551
- var _nodeBuffer = require$$2$8;
15842
+ var _nodeProcess = require$$0;
15843
+ var _nodeBuffer = require$$2$a;
16552
15844
  var _nodePath = require$$1;
16553
15845
  var _nodeUrl = require$$2$4;
16554
15846
  var _nodeChild_process = require$$2$6;
16555
- var _promises = _interopRequireWildcard(require$$1$1, true);
15847
+ var _promises = _interopRequireWildcard(require$$1$3, true);
16556
15848
  var _isWsl = isWsl$1;
16557
15849
  var _defineLazyProp = defineLazyProp;
16558
15850
  var _defaultBrowser = defaultBrowser$2;
@@ -16853,12 +16145,19 @@ const apps = open$1.apps = {};
16853
16145
  open$1.default = open;
16854
16146
 
16855
16147
  exports.build = build;
16148
+ exports.constants_1 = constants_1;
16149
+ exports.env = env;
16856
16150
  exports.interopRequireDefault = interopRequireDefault;
16857
16151
  exports.interopRequireWildcard = interopRequireWildcard;
16858
16152
  exports.isInteractive = isInteractive$1;
16859
16153
  exports.isUnicodeSupported = isUnicodeSupported$1;
16154
+ exports.objects = objects;
16860
16155
  exports.open = open$1;
16861
16156
  exports.ora = ora$1;
16157
+ exports.packages = packages;
16158
+ exports.promises = promises;
16159
+ exports.regexps = regexps;
16862
16160
  exports.source = source;
16161
+ exports.strings = strings;
16863
16162
  exports.terminalLink = terminalLink$1;
16864
16163
  exports.updateNotifier = updateNotifier$2;