@leofcoin/chain 1.7.69 → 1.7.70

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.
@@ -1,44 +1,46 @@
1
1
  import { t as toBase58, T as TransactionMessage, C as ContractMessage, R as RawTransactionMessage, B as BlockMessage, a as BWMessage, b as BWRequestMessage } from './index-DUfUgiQY.js';
2
2
 
3
- if (!globalThis.DEBUG) {
4
- let DEBUG = [];
5
- if (globalThis.localStorage) {
6
- DEBUG = globalThis.localStorage.getItem('DEBUG');
7
- globalThis.DEBUG = DEBUG.startsWith('[')
8
- ? JSON.parse(DEBUG).split(',')
9
- : [DEBUG];
10
- }
11
- }
12
-
13
- const getLogger = (trace) => (trace ? console.trace : console.log);
14
-
15
- const debug$3 = (target, text, trace) => {
16
- const _logger = getLogger(trace);
17
- if (!globalThis.DEBUG || globalThis.DEBUG?.length === 0) return;
18
- if (
19
- globalThis.DEBUG === 'true' ||
20
- globalThis.DEBUG === true ||
21
- globalThis.DEBUG?.indexOf(target) !== -1 ||
22
- globalThis.DEBUG?.indexOf('*') !== -1 ||
23
- globalThis.DEBUG?.indexOf(target.split('/')[0]) !== -1
24
- )
25
- if (text) _logger('\x1b[34m\x1b[1m%s', `${target}: ${text}`, '\x1b[0m');
26
- else _logger('\x1b[34m\x1b[1m%s', `${target}`, '\x1b[0m');
27
- };
28
-
29
- const createDebugger = (target) => (text) => debug$3(target, text);
30
-
31
- if (!globalThis.debug) {
32
- globalThis.debug = debug$3;
33
- // todo: deprecate
34
- globalThis.createDebugger = createDebugger;
3
+ if (!globalThis.DEBUG) {
4
+ globalThis.DEBUG = [];
5
+ if (globalThis.localStorage) {
6
+ const DEBUG = globalThis.localStorage.getItem("DEBUG");
7
+ if (DEBUG) {
8
+ globalThis.DEBUG = DEBUG.startsWith("[")
9
+ ? JSON.parse(DEBUG).split(",")
10
+ : [DEBUG];
11
+ }
12
+ }
13
+ }
14
+
15
+ const getLogger = (trace) => (trace ? console.trace : console.log);
16
+
17
+ const debug$3 = (target, text, trace) => {
18
+ const _logger = getLogger(trace);
19
+ if (!globalThis.DEBUG || globalThis.DEBUG?.length === 0) return;
20
+ if (
21
+ globalThis.DEBUG === "true" ||
22
+ globalThis.DEBUG === true ||
23
+ globalThis.DEBUG?.indexOf(target) !== -1 ||
24
+ globalThis.DEBUG?.indexOf("*") !== -1 ||
25
+ globalThis.DEBUG?.indexOf(target.split("/")[0]) !== -1
26
+ )
27
+ if (text) _logger("\x1b[34m\x1b[1m%s", `${target}: ${text}`, "\x1b[0m");
28
+ else _logger("\x1b[34m\x1b[1m%s", `${target}`, "\x1b[0m");
29
+ };
30
+
31
+ const createDebugger = (target) => (text) => debug$3(target, text);
32
+
33
+ if (!globalThis.debug) {
34
+ globalThis.debug = debug$3;
35
+ // todo: deprecate
36
+ globalThis.createDebugger = createDebugger;
35
37
  }
36
38
 
37
39
  /* Do NOT modify this file; see /src.ts/_admin/update-version.ts */
38
40
  /**
39
41
  * The current version of Ethers.
40
42
  */
41
- const version = "6.13.5";
43
+ const version = "6.15.0";
42
44
 
43
45
  /**
44
46
  * Property helper functions.
@@ -66,12 +68,21 @@ function defineProperties(target, values, types) {
66
68
  *
67
69
  * @_section: api/utils/errors:Errors [about-errors]
68
70
  */
69
- function stringify(value) {
71
+ function stringify(value, seen) {
70
72
  if (value == null) {
71
73
  return "null";
72
74
  }
75
+ if (seen == null) {
76
+ seen = new Set();
77
+ }
78
+ if (typeof (value) === "object") {
79
+ if (seen.has(value)) {
80
+ return "[Circular]";
81
+ }
82
+ seen.add(value);
83
+ }
73
84
  if (Array.isArray(value)) {
74
- return "[ " + (value.map(stringify)).join(", ") + " ]";
85
+ return "[ " + (value.map((v) => stringify(v, seen))).join(", ") + " ]";
75
86
  }
76
87
  if (value instanceof Uint8Array) {
77
88
  const HEX = "0123456789abcdef";
@@ -83,22 +94,21 @@ function stringify(value) {
83
94
  return result;
84
95
  }
85
96
  if (typeof (value) === "object" && typeof (value.toJSON) === "function") {
86
- return stringify(value.toJSON());
97
+ return stringify(value.toJSON(), seen);
87
98
  }
88
99
  switch (typeof (value)) {
89
100
  case "boolean":
101
+ case "number":
90
102
  case "symbol":
91
103
  return value.toString();
92
104
  case "bigint":
93
105
  return BigInt(value).toString();
94
- case "number":
95
- return (value).toString();
96
106
  case "string":
97
107
  return JSON.stringify(value);
98
108
  case "object": {
99
109
  const keys = Object.keys(value);
100
110
  keys.sort();
101
- return "{ " + keys.map((k) => `${stringify(k)}: ${stringify(value[k])}`).join(", ") + " }";
111
+ return "{ " + keys.map((k) => `${stringify(k, seen)}: ${stringify(value[k], seen)}`).join(", ") + " }";
102
112
  }
103
113
  }
104
114
  return `[ COULD NOT SERIALIZE ]`;
@@ -302,7 +312,7 @@ function getBigInt(value, name) {
302
312
  case "bigint": return value;
303
313
  case "number":
304
314
  assertArgument(Number.isInteger(value), "underflow", name || "value", value);
305
- assertArgument(value >= -9007199254740991 && value <= maxValue, "overflow", name || "value", value);
315
+ assertArgument(value >= -maxValue && value <= maxValue, "overflow", name || "value", value);
306
316
  return BigInt(value);
307
317
  case "string":
308
318
  try {
@@ -354,11 +364,11 @@ function toBigInt(value) {
354
364
  function getNumber(value, name) {
355
365
  switch (typeof (value)) {
356
366
  case "bigint":
357
- assertArgument(value >= -9007199254740991 && value <= maxValue, "overflow", name || "value", value);
367
+ assertArgument(value >= -maxValue && value <= maxValue, "overflow", name || "value", value);
358
368
  return Number(value);
359
369
  case "number":
360
370
  assertArgument(Number.isInteger(value), "underflow", name || "value", value);
361
- assertArgument(value >= -9007199254740991 && value <= maxValue, "overflow", name || "value", value);
371
+ assertArgument(value >= -maxValue && value <= maxValue, "overflow", name || "value", value);
362
372
  return value;
363
373
  case "string":
364
374
  try {
@@ -519,7 +529,7 @@ function toString(val, decimals) {
519
529
  * If operations are performed that cause a value to become too small
520
530
  * (close to zero), the value loses precison and is said to //underflow//.
521
531
  *
522
- * For example, an value with 1 decimal place may store a number as small
532
+ * For example, a value with 1 decimal place may store a number as small
523
533
  * as ``0.1``, but the value of ``0.1 / 2`` is ``0.05``, which cannot fit
524
534
  * into 1 decimal place, so underflow occurs which means precision is lost
525
535
  * and the value becomes ``0``.
@@ -1056,6 +1066,7 @@ var hasRequiredConstants;
1056
1066
  function requireConstants () {
1057
1067
  if (hasRequiredConstants) return constants;
1058
1068
  hasRequiredConstants = 1;
1069
+
1059
1070
  // Note: this is the semver.org version of the spec that it implements
1060
1071
  // Not necessarily the package version of this code.
1061
1072
  const SEMVER_SPEC_VERSION = '2.0.0';
@@ -1100,6 +1111,7 @@ var hasRequiredDebug;
1100
1111
  function requireDebug () {
1101
1112
  if (hasRequiredDebug) return debug_1;
1102
1113
  hasRequiredDebug = 1;
1114
+
1103
1115
  const debug = (
1104
1116
  typeof process === 'object' &&
1105
1117
  process.env &&
@@ -1118,6 +1130,7 @@ function requireRe () {
1118
1130
  if (hasRequiredRe) return re.exports;
1119
1131
  hasRequiredRe = 1;
1120
1132
  (function (module, exports) {
1133
+
1121
1134
  const {
1122
1135
  MAX_SAFE_COMPONENT_LENGTH,
1123
1136
  MAX_SAFE_BUILD_LENGTH,
@@ -1196,12 +1209,14 @@ function requireRe () {
1196
1209
 
1197
1210
  // ## Pre-release Version Identifier
1198
1211
  // A numeric identifier, or a non-numeric identifier.
1212
+ // Non-numberic identifiers include numberic identifiers but can be longer.
1213
+ // Therefore non-numberic identifiers must go first.
1199
1214
 
1200
- createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]
1201
- }|${src[t.NONNUMERICIDENTIFIER]})`);
1215
+ createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]
1216
+ }|${src[t.NUMERICIDENTIFIER]})`);
1202
1217
 
1203
- createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]
1204
- }|${src[t.NONNUMERICIDENTIFIER]})`);
1218
+ createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]
1219
+ }|${src[t.NUMERICIDENTIFIERLOOSE]})`);
1205
1220
 
1206
1221
  // ## Pre-release Version
1207
1222
  // Hyphen, followed by one or more dot-separated pre-release version
@@ -1347,6 +1362,7 @@ var hasRequiredParseOptions;
1347
1362
  function requireParseOptions () {
1348
1363
  if (hasRequiredParseOptions) return parseOptions_1;
1349
1364
  hasRequiredParseOptions = 1;
1365
+
1350
1366
  // parse out just the options we care about
1351
1367
  const looseOption = Object.freeze({ loose: true });
1352
1368
  const emptyOpts = Object.freeze({ });
@@ -1371,6 +1387,7 @@ var hasRequiredIdentifiers;
1371
1387
  function requireIdentifiers () {
1372
1388
  if (hasRequiredIdentifiers) return identifiers;
1373
1389
  hasRequiredIdentifiers = 1;
1390
+
1374
1391
  const numeric = /^[0-9]+$/;
1375
1392
  const compareIdentifiers = (a, b) => {
1376
1393
  const anum = numeric.test(a);
@@ -1403,9 +1420,10 @@ var hasRequiredSemver$1;
1403
1420
  function requireSemver$1 () {
1404
1421
  if (hasRequiredSemver$1) return semver$2;
1405
1422
  hasRequiredSemver$1 = 1;
1423
+
1406
1424
  const debug = requireDebug();
1407
1425
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = requireConstants();
1408
- const { safeRe: re, safeSrc: src, t } = requireRe();
1426
+ const { safeRe: re, t } = requireRe();
1409
1427
 
1410
1428
  const parseOptions = requireParseOptions();
1411
1429
  const { compareIdentifiers } = requireIdentifiers();
@@ -1587,8 +1605,7 @@ function requireSemver$1 () {
1587
1605
  }
1588
1606
  // Avoid an invalid semver results
1589
1607
  if (identifier) {
1590
- const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
1591
- const match = `-${identifier}`.match(r);
1608
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
1592
1609
  if (!match || match[1] !== identifier) {
1593
1610
  throw new Error(`invalid identifier: ${identifier}`)
1594
1611
  }
@@ -1730,6 +1747,7 @@ var hasRequiredParse;
1730
1747
  function requireParse () {
1731
1748
  if (hasRequiredParse) return parse_1;
1732
1749
  hasRequiredParse = 1;
1750
+
1733
1751
  const SemVer = requireSemver$1();
1734
1752
  const parse = (version, options, throwErrors = false) => {
1735
1753
  if (version instanceof SemVer) {
@@ -1755,6 +1773,7 @@ var hasRequiredValid$1;
1755
1773
  function requireValid$1 () {
1756
1774
  if (hasRequiredValid$1) return valid_1;
1757
1775
  hasRequiredValid$1 = 1;
1776
+
1758
1777
  const parse = requireParse();
1759
1778
  const valid = (version, options) => {
1760
1779
  const v = parse(version, options);
@@ -1770,6 +1789,7 @@ var hasRequiredClean;
1770
1789
  function requireClean () {
1771
1790
  if (hasRequiredClean) return clean_1;
1772
1791
  hasRequiredClean = 1;
1792
+
1773
1793
  const parse = requireParse();
1774
1794
  const clean = (version, options) => {
1775
1795
  const s = parse(version.trim().replace(/^[=v]+/, ''), options);
@@ -1785,6 +1805,7 @@ var hasRequiredInc;
1785
1805
  function requireInc () {
1786
1806
  if (hasRequiredInc) return inc_1;
1787
1807
  hasRequiredInc = 1;
1808
+
1788
1809
  const SemVer = requireSemver$1();
1789
1810
 
1790
1811
  const inc = (version, release, options, identifier, identifierBase) => {
@@ -1813,6 +1834,7 @@ var hasRequiredDiff;
1813
1834
  function requireDiff () {
1814
1835
  if (hasRequiredDiff) return diff_1;
1815
1836
  hasRequiredDiff = 1;
1837
+
1816
1838
  const parse = requireParse();
1817
1839
 
1818
1840
  const diff = (version1, version2) => {
@@ -1880,6 +1902,7 @@ var hasRequiredMajor;
1880
1902
  function requireMajor () {
1881
1903
  if (hasRequiredMajor) return major_1;
1882
1904
  hasRequiredMajor = 1;
1905
+
1883
1906
  const SemVer = requireSemver$1();
1884
1907
  const major = (a, loose) => new SemVer(a, loose).major;
1885
1908
  major_1 = major;
@@ -1892,6 +1915,7 @@ var hasRequiredMinor;
1892
1915
  function requireMinor () {
1893
1916
  if (hasRequiredMinor) return minor_1;
1894
1917
  hasRequiredMinor = 1;
1918
+
1895
1919
  const SemVer = requireSemver$1();
1896
1920
  const minor = (a, loose) => new SemVer(a, loose).minor;
1897
1921
  minor_1 = minor;
@@ -1904,6 +1928,7 @@ var hasRequiredPatch;
1904
1928
  function requirePatch () {
1905
1929
  if (hasRequiredPatch) return patch_1;
1906
1930
  hasRequiredPatch = 1;
1931
+
1907
1932
  const SemVer = requireSemver$1();
1908
1933
  const patch = (a, loose) => new SemVer(a, loose).patch;
1909
1934
  patch_1 = patch;
@@ -1916,6 +1941,7 @@ var hasRequiredPrerelease;
1916
1941
  function requirePrerelease () {
1917
1942
  if (hasRequiredPrerelease) return prerelease_1;
1918
1943
  hasRequiredPrerelease = 1;
1944
+
1919
1945
  const parse = requireParse();
1920
1946
  const prerelease = (version, options) => {
1921
1947
  const parsed = parse(version, options);
@@ -1931,6 +1957,7 @@ var hasRequiredCompare;
1931
1957
  function requireCompare () {
1932
1958
  if (hasRequiredCompare) return compare_1;
1933
1959
  hasRequiredCompare = 1;
1960
+
1934
1961
  const SemVer = requireSemver$1();
1935
1962
  const compare = (a, b, loose) =>
1936
1963
  new SemVer(a, loose).compare(new SemVer(b, loose));
@@ -1945,6 +1972,7 @@ var hasRequiredRcompare;
1945
1972
  function requireRcompare () {
1946
1973
  if (hasRequiredRcompare) return rcompare_1;
1947
1974
  hasRequiredRcompare = 1;
1975
+
1948
1976
  const compare = requireCompare();
1949
1977
  const rcompare = (a, b, loose) => compare(b, a, loose);
1950
1978
  rcompare_1 = rcompare;
@@ -1957,6 +1985,7 @@ var hasRequiredCompareLoose;
1957
1985
  function requireCompareLoose () {
1958
1986
  if (hasRequiredCompareLoose) return compareLoose_1;
1959
1987
  hasRequiredCompareLoose = 1;
1988
+
1960
1989
  const compare = requireCompare();
1961
1990
  const compareLoose = (a, b) => compare(a, b, true);
1962
1991
  compareLoose_1 = compareLoose;
@@ -1969,6 +1998,7 @@ var hasRequiredCompareBuild;
1969
1998
  function requireCompareBuild () {
1970
1999
  if (hasRequiredCompareBuild) return compareBuild_1;
1971
2000
  hasRequiredCompareBuild = 1;
2001
+
1972
2002
  const SemVer = requireSemver$1();
1973
2003
  const compareBuild = (a, b, loose) => {
1974
2004
  const versionA = new SemVer(a, loose);
@@ -1985,6 +2015,7 @@ var hasRequiredSort;
1985
2015
  function requireSort () {
1986
2016
  if (hasRequiredSort) return sort_1;
1987
2017
  hasRequiredSort = 1;
2018
+
1988
2019
  const compareBuild = requireCompareBuild();
1989
2020
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
1990
2021
  sort_1 = sort;
@@ -1997,6 +2028,7 @@ var hasRequiredRsort;
1997
2028
  function requireRsort () {
1998
2029
  if (hasRequiredRsort) return rsort_1;
1999
2030
  hasRequiredRsort = 1;
2031
+
2000
2032
  const compareBuild = requireCompareBuild();
2001
2033
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
2002
2034
  rsort_1 = rsort;
@@ -2009,6 +2041,7 @@ var hasRequiredGt;
2009
2041
  function requireGt () {
2010
2042
  if (hasRequiredGt) return gt_1;
2011
2043
  hasRequiredGt = 1;
2044
+
2012
2045
  const compare = requireCompare();
2013
2046
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
2014
2047
  gt_1 = gt;
@@ -2021,6 +2054,7 @@ var hasRequiredLt;
2021
2054
  function requireLt () {
2022
2055
  if (hasRequiredLt) return lt_1;
2023
2056
  hasRequiredLt = 1;
2057
+
2024
2058
  const compare = requireCompare();
2025
2059
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
2026
2060
  lt_1 = lt;
@@ -2033,6 +2067,7 @@ var hasRequiredEq;
2033
2067
  function requireEq () {
2034
2068
  if (hasRequiredEq) return eq_1;
2035
2069
  hasRequiredEq = 1;
2070
+
2036
2071
  const compare = requireCompare();
2037
2072
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
2038
2073
  eq_1 = eq;
@@ -2045,6 +2080,7 @@ var hasRequiredNeq;
2045
2080
  function requireNeq () {
2046
2081
  if (hasRequiredNeq) return neq_1;
2047
2082
  hasRequiredNeq = 1;
2083
+
2048
2084
  const compare = requireCompare();
2049
2085
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
2050
2086
  neq_1 = neq;
@@ -2057,6 +2093,7 @@ var hasRequiredGte;
2057
2093
  function requireGte () {
2058
2094
  if (hasRequiredGte) return gte_1;
2059
2095
  hasRequiredGte = 1;
2096
+
2060
2097
  const compare = requireCompare();
2061
2098
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
2062
2099
  gte_1 = gte;
@@ -2069,6 +2106,7 @@ var hasRequiredLte;
2069
2106
  function requireLte () {
2070
2107
  if (hasRequiredLte) return lte_1;
2071
2108
  hasRequiredLte = 1;
2109
+
2072
2110
  const compare = requireCompare();
2073
2111
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
2074
2112
  lte_1 = lte;
@@ -2081,6 +2119,7 @@ var hasRequiredCmp;
2081
2119
  function requireCmp () {
2082
2120
  if (hasRequiredCmp) return cmp_1;
2083
2121
  hasRequiredCmp = 1;
2122
+
2084
2123
  const eq = requireEq();
2085
2124
  const neq = requireNeq();
2086
2125
  const gt = requireGt();
@@ -2142,6 +2181,7 @@ var hasRequiredCoerce;
2142
2181
  function requireCoerce () {
2143
2182
  if (hasRequiredCoerce) return coerce_1;
2144
2183
  hasRequiredCoerce = 1;
2184
+
2145
2185
  const SemVer = requireSemver$1();
2146
2186
  const parse = requireParse();
2147
2187
  const { safeRe: re, t } = requireRe();
@@ -2211,6 +2251,7 @@ var hasRequiredLrucache;
2211
2251
  function requireLrucache () {
2212
2252
  if (hasRequiredLrucache) return lrucache;
2213
2253
  hasRequiredLrucache = 1;
2254
+
2214
2255
  class LRUCache {
2215
2256
  constructor () {
2216
2257
  this.max = 1000;
@@ -2260,6 +2301,7 @@ var hasRequiredRange;
2260
2301
  function requireRange () {
2261
2302
  if (hasRequiredRange) return range;
2262
2303
  hasRequiredRange = 1;
2304
+
2263
2305
  const SPACE_CHARACTERS = /\s+/g;
2264
2306
 
2265
2307
  // hoisted class for cyclic dependency
@@ -2823,6 +2865,7 @@ var hasRequiredComparator;
2823
2865
  function requireComparator () {
2824
2866
  if (hasRequiredComparator) return comparator;
2825
2867
  hasRequiredComparator = 1;
2868
+
2826
2869
  const ANY = Symbol('SemVer ANY');
2827
2870
  // hoisted class for cyclic dependency
2828
2871
  class Comparator {
@@ -2973,6 +3016,7 @@ var hasRequiredSatisfies;
2973
3016
  function requireSatisfies () {
2974
3017
  if (hasRequiredSatisfies) return satisfies_1;
2975
3018
  hasRequiredSatisfies = 1;
3019
+
2976
3020
  const Range = requireRange();
2977
3021
  const satisfies = (version, range, options) => {
2978
3022
  try {
@@ -2992,6 +3036,7 @@ var hasRequiredToComparators;
2992
3036
  function requireToComparators () {
2993
3037
  if (hasRequiredToComparators) return toComparators_1;
2994
3038
  hasRequiredToComparators = 1;
3039
+
2995
3040
  const Range = requireRange();
2996
3041
 
2997
3042
  // Mostly just for testing and legacy API reasons
@@ -3009,6 +3054,7 @@ var hasRequiredMaxSatisfying;
3009
3054
  function requireMaxSatisfying () {
3010
3055
  if (hasRequiredMaxSatisfying) return maxSatisfying_1;
3011
3056
  hasRequiredMaxSatisfying = 1;
3057
+
3012
3058
  const SemVer = requireSemver$1();
3013
3059
  const Range = requireRange();
3014
3060
 
@@ -3043,6 +3089,7 @@ var hasRequiredMinSatisfying;
3043
3089
  function requireMinSatisfying () {
3044
3090
  if (hasRequiredMinSatisfying) return minSatisfying_1;
3045
3091
  hasRequiredMinSatisfying = 1;
3092
+
3046
3093
  const SemVer = requireSemver$1();
3047
3094
  const Range = requireRange();
3048
3095
  const minSatisfying = (versions, range, options) => {
@@ -3076,6 +3123,7 @@ var hasRequiredMinVersion;
3076
3123
  function requireMinVersion () {
3077
3124
  if (hasRequiredMinVersion) return minVersion_1;
3078
3125
  hasRequiredMinVersion = 1;
3126
+
3079
3127
  const SemVer = requireSemver$1();
3080
3128
  const Range = requireRange();
3081
3129
  const gt = requireGt();
@@ -3146,6 +3194,7 @@ var hasRequiredValid;
3146
3194
  function requireValid () {
3147
3195
  if (hasRequiredValid) return valid;
3148
3196
  hasRequiredValid = 1;
3197
+
3149
3198
  const Range = requireRange();
3150
3199
  const validRange = (range, options) => {
3151
3200
  try {
@@ -3166,6 +3215,7 @@ var hasRequiredOutside;
3166
3215
  function requireOutside () {
3167
3216
  if (hasRequiredOutside) return outside_1;
3168
3217
  hasRequiredOutside = 1;
3218
+
3169
3219
  const SemVer = requireSemver$1();
3170
3220
  const Comparator = requireComparator();
3171
3221
  const { ANY } = Comparator;
@@ -3255,6 +3305,7 @@ var hasRequiredGtr;
3255
3305
  function requireGtr () {
3256
3306
  if (hasRequiredGtr) return gtr_1;
3257
3307
  hasRequiredGtr = 1;
3308
+
3258
3309
  // Determine if version is greater than all the versions possible in the range.
3259
3310
  const outside = requireOutside();
3260
3311
  const gtr = (version, range, options) => outside(version, range, '>', options);
@@ -3268,6 +3319,7 @@ var hasRequiredLtr;
3268
3319
  function requireLtr () {
3269
3320
  if (hasRequiredLtr) return ltr_1;
3270
3321
  hasRequiredLtr = 1;
3322
+
3271
3323
  const outside = requireOutside();
3272
3324
  // Determine if version is less than all the versions possible in the range
3273
3325
  const ltr = (version, range, options) => outside(version, range, '<', options);
@@ -3281,6 +3333,7 @@ var hasRequiredIntersects;
3281
3333
  function requireIntersects () {
3282
3334
  if (hasRequiredIntersects) return intersects_1;
3283
3335
  hasRequiredIntersects = 1;
3336
+
3284
3337
  const Range = requireRange();
3285
3338
  const intersects = (r1, r2, options) => {
3286
3339
  r1 = new Range(r1, options);
@@ -3297,6 +3350,7 @@ var hasRequiredSimplify;
3297
3350
  function requireSimplify () {
3298
3351
  if (hasRequiredSimplify) return simplify;
3299
3352
  hasRequiredSimplify = 1;
3353
+
3300
3354
  // given a set of versions and a range, create a "simplified" range
3301
3355
  // that includes the same versions that the original range does
3302
3356
  // If the original range is shorter than the simplified one, return that.
@@ -3353,6 +3407,7 @@ var hasRequiredSubset;
3353
3407
  function requireSubset () {
3354
3408
  if (hasRequiredSubset) return subset_1;
3355
3409
  hasRequiredSubset = 1;
3410
+
3356
3411
  const Range = requireRange();
3357
3412
  const Comparator = requireComparator();
3358
3413
  const { ANY } = Comparator;
@@ -3609,6 +3664,7 @@ var hasRequiredSemver;
3609
3664
  function requireSemver () {
3610
3665
  if (hasRequiredSemver) return semver$1;
3611
3666
  hasRequiredSemver = 1;
3667
+
3612
3668
  // just pre-load all the stuff that index.js lazily exports
3613
3669
  const internalRe = requireRe();
3614
3670
  const constants = requireConstants();
@@ -4158,7 +4214,7 @@ class Machine {
4158
4214
  }
4159
4215
  catch (error) {
4160
4216
  console.error(error);
4161
- this.worker.postMessage({ id: data.id, input: data.input });
4217
+ this.worker.postMessage({ id: data.id, error: `could not get ${data.question} @${data.input}` });
4162
4218
  this.wantList.push(data.input);
4163
4219
  }
4164
4220
  }
@@ -1,4 +1,5 @@
1
- import { L as LittlePubSub } from './node-browser-Bm1Y3-al.js';
1
+ import { L as LittlePubSub } from './node-browser-DcYcGvEF.js';
2
+ import './identity-CQ_ieRiz-CTM-_kGF.js';
2
3
  import './index-DUfUgiQY.js';
3
4
 
4
5
  class Api {
@@ -209,7 +210,7 @@ class SocketRequestClient {
209
210
  const init = async () => {
210
211
  // @ts-ignore
211
212
  if (!globalThis.WebSocket && !this.#experimentalWebsocket)
212
- globalThis.WebSocket = (await import('./browser-DQJ6xf_F-B2LPNwJ3.js').then(function (n) { return n.b; })).default.w3cwebsocket;
213
+ globalThis.WebSocket = (await import('./browser-DQJ6xf_F-BCS5wcAv.js').then(function (n) { return n.b; })).default.w3cwebsocket;
213
214
  const client = new WebSocket(this.#url, this.#protocol);
214
215
  if (this.#experimentalWebsocket) {
215
216
  client.addEventListener('error', this.onerror);
@@ -313,7 +314,7 @@ const iceServers = [
313
314
  credential: 'openrelayproject'
314
315
  }
315
316
  ];
316
- const SimplePeer = (await import('./index-CEwkDK9g-CSOjRfmt.js').then(function (n) { return n.i; })).default;
317
+ const SimplePeer = (await import('./index-CEwkDK9g-CHsuUR8y.js').then(function (n) { return n.i; })).default;
317
318
  class Peer extends SimplePeer {
318
319
  peerId;
319
320
  channelName;