@blackglory/structures 0.10.15 → 0.10.17

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.
@@ -21,7 +21,7 @@
21
21
 
22
22
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
23
23
 
24
- var es2018$8 = {};
24
+ var es2018$7 = {};
25
25
 
26
26
  var array$1 = {};
27
27
 
@@ -646,10 +646,10 @@
646
646
  __exportStar(regexp$1, exports);
647
647
  __exportStar(symbol, exports);
648
648
 
649
- } (es2018$8));
649
+ } (es2018$7));
650
650
 
651
651
  function convertConsToArray([value, next]) {
652
- if (es2018$8.isNull(next)) {
652
+ if (es2018$7.isNull(next)) {
653
653
  return [value];
654
654
  }
655
655
  else {
@@ -805,17 +805,17 @@
805
805
  }
806
806
  }
807
807
 
808
- var es2018$7 = {};
808
+ var es2018$6 = {};
809
809
 
810
- var customError$1 = {};
810
+ var customError = {};
811
811
 
812
- var es2018$6 = {};
812
+ var es2018$5 = {};
813
813
 
814
814
  var middleware = {};
815
815
 
816
816
  var chunkAsync = {};
817
817
 
818
- var es2018$5 = {};
818
+ var es2018$4 = {};
819
819
 
820
820
  var go$1 = {};
821
821
 
@@ -844,11 +844,11 @@
844
844
 
845
845
  var goMacrotask$1 = {};
846
846
 
847
- var es2018$4 = {};
847
+ var es2018$3 = {};
848
848
 
849
849
  var exponentialBackoff = {};
850
850
 
851
- var es2018$3 = {};
851
+ var es2018$2 = {};
852
852
 
853
853
  var random$1 = {};
854
854
 
@@ -892,10 +892,10 @@
892
892
  __exportStar(randomInt$1, exports);
893
893
  __exportStar(randomIntInclusive$1, exports);
894
894
 
895
- } (es2018$3));
895
+ } (es2018$2));
896
896
 
897
897
  exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
898
- const extra_rand_1 = es2018$3;
898
+ const extra_rand_1 = es2018$2;
899
899
  function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
900
900
  const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
901
901
  if (jitter) {
@@ -1010,10 +1010,10 @@
1010
1010
  __exportStar(setTimeoutLoop$1, exports);
1011
1011
  __exportStar(setDynamicTimeoutLoop$1, exports);
1012
1012
 
1013
- } (es2018$4));
1013
+ } (es2018$3));
1014
1014
 
1015
1015
  goMacrotask$1.goMacrotask = void 0;
1016
- const extra_timers_1 = es2018$4;
1016
+ const extra_timers_1 = es2018$3;
1017
1017
  function goMacrotask(fn) {
1018
1018
  return new Promise((resolve, reject) => {
1019
1019
  (0, extra_timers_1.setImmediate)(async () => {
@@ -1046,13 +1046,38 @@
1046
1046
  __exportStar(goMicrotask$1, exports);
1047
1047
  __exportStar(goMacrotask$1, exports);
1048
1048
 
1049
- } (es2018$5));
1049
+ } (es2018$4));
1050
1050
 
1051
- var es2018$2 = {};
1051
+ var hasRequiredChunkAsync;
1052
1052
 
1053
- var customError = {};
1053
+ function requireChunkAsync () {
1054
+ if (hasRequiredChunkAsync) return chunkAsync;
1055
+ hasRequiredChunkAsync = 1;
1056
+ chunkAsync.chunkAsync = void 0;
1057
+ const go_1 = es2018$4;
1058
+ const errors_1 = requireEs2018();
1059
+ function chunkAsync$1(iterable, size) {
1060
+ (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
1061
+ (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');
1062
+ return (0, go_1.go)(async function* () {
1063
+ let buffer = [];
1064
+ for await (const element of iterable) {
1065
+ buffer.push(element);
1066
+ if (buffer.length >= size) {
1067
+ yield buffer;
1068
+ buffer = [];
1069
+ }
1070
+ }
1071
+ if (buffer.length)
1072
+ yield buffer;
1073
+ });
1074
+ }
1075
+ chunkAsync.chunkAsync = chunkAsync$1;
1076
+
1077
+ return chunkAsync;
1078
+ }
1054
1079
 
1055
- var getErrorNames$3 = {};
1080
+ var chunkByAsync$1 = {};
1056
1081
 
1057
1082
  var es2018$1 = {};
1058
1083
 
@@ -1427,269 +1452,10 @@
1427
1452
 
1428
1453
  } (es2018$1));
1429
1454
 
1430
- var traverseErrorPrototypeChain$3 = {};
1431
-
1432
- traverseErrorPrototypeChain$3.traverseErrorPrototypeChain = void 0;
1433
- function* traverseErrorPrototypeChain$2(err) {
1434
- let current = err;
1435
- while ((current = Object.getPrototypeOf(current))) {
1436
- yield current;
1437
- if (current === Error.prototype)
1438
- break;
1439
- }
1440
- }
1441
- traverseErrorPrototypeChain$3.traverseErrorPrototypeChain = traverseErrorPrototypeChain$2;
1442
-
1443
- getErrorNames$3.getErrorNames = void 0;
1444
- const types_1$m = es2018$1;
1445
- const traverse_error_prototype_chain_1$1 = traverseErrorPrototypeChain$3;
1446
- function* getErrorNames$2(err) {
1447
- var _a;
1448
- if ((0, types_1$m.isError)(err)) {
1449
- for (const prototype of (0, traverse_error_prototype_chain_1$1.traverseErrorPrototypeChain)(err)) {
1450
- if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
1451
- yield prototype.constructor.name;
1452
- }
1453
- }
1454
- }
1455
- else {
1456
- yield err.name;
1457
- yield* err.ancestors;
1458
- }
1459
- }
1460
- getErrorNames$3.getErrorNames = getErrorNames$2;
1461
-
1462
- var serializableError$1 = {};
1463
-
1464
- serializableError$1.isSerializableError = void 0;
1465
- const types_1$l = es2018$1;
1466
- function isSerializableError$1(val) {
1467
- return (0, types_1$l.isObject)(val)
1468
- && (0, types_1$l.isString)(val.name)
1469
- && (0, types_1$l.isString)(val.message)
1470
- && ((0, types_1$l.isString)(val.stack) || (0, types_1$l.isNull)(val.stack))
1471
- && ((0, types_1$l.isArray)(val.ancestors) && val.ancestors.every(types_1$l.isString));
1472
- }
1473
- serializableError$1.isSerializableError = isSerializableError$1;
1474
-
1475
- var hasRequiredCustomError;
1476
-
1477
- function requireCustomError () {
1478
- if (hasRequiredCustomError) return customError;
1479
- hasRequiredCustomError = 1;
1480
- customError.CustomError = void 0;
1481
- const iterable_operator_1 = requireEs2018();
1482
- const get_error_names_1 = getErrorNames$3;
1483
- const types_1 = es2018$1;
1484
- const serializable_error_1 = serializableError$1;
1485
- class CustomError extends Error {
1486
- get name() {
1487
- var _a, _b;
1488
- return (_b = (_a = (0, iterable_operator_1.first)((0, get_error_names_1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';
1489
- }
1490
- static [Symbol.hasInstance](instance) {
1491
- var _a;
1492
- if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
1493
- const reversedClassNames = [
1494
- (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
1495
- ...(0, get_error_names_1.getErrorNames)(this.prototype)
1496
- ].reverse();
1497
- const reversedInstanceNames = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(instance)).reverse();
1498
- return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
1499
- }
1500
- else {
1501
- return false;
1502
- }
1503
- }
1504
- }
1505
- customError.CustomError = CustomError;
1506
-
1507
- return customError;
1508
- }
1509
-
1510
- var assertionError$1 = {};
1511
-
1512
- var hasRequiredAssertionError;
1513
-
1514
- function requireAssertionError () {
1515
- if (hasRequiredAssertionError) return assertionError$1;
1516
- hasRequiredAssertionError = 1;
1517
- assertionError$1.AssertionError = void 0;
1518
- const custom_error_1 = requireCustomError();
1519
- class AssertionError extends custom_error_1.CustomError {
1520
- }
1521
- assertionError$1.AssertionError = AssertionError;
1522
-
1523
- return assertionError$1;
1524
- }
1525
-
1526
- var normalize$2 = {};
1527
-
1528
- var hasRequiredNormalize;
1529
-
1530
- function requireNormalize () {
1531
- if (hasRequiredNormalize) return normalize$2;
1532
- hasRequiredNormalize = 1;
1533
- normalize$2.normalize = void 0;
1534
- const get_error_names_1 = getErrorNames$3;
1535
- const iterable_operator_1 = requireEs2018();
1536
- function normalize(err) {
1537
- var _a;
1538
- const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
1539
- return {
1540
- name,
1541
- ancestors,
1542
- message: err.message,
1543
- stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
1544
- };
1545
- }
1546
- normalize$2.normalize = normalize;
1547
-
1548
- return normalize$2;
1549
- }
1550
-
1551
- var hydrate$3 = {};
1552
-
1553
- var es2018 = {};
1554
-
1555
- var pass$1 = {};
1556
-
1557
- pass$1.pass = void 0;
1558
- function pass() { }
1559
- pass$1.pass = pass;
1560
-
1561
- var passAsync$1 = {};
1562
-
1563
- passAsync$1.passAsync = void 0;
1564
- async function passAsync() { }
1565
- passAsync$1.passAsync = passAsync;
1566
-
1567
- (function (exports) {
1568
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1569
- if (k2 === undefined) k2 = k;
1570
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
1571
- }) : (function(o, m, k, k2) {
1572
- if (k2 === undefined) k2 = k;
1573
- o[k2] = m[k];
1574
- }));
1575
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1576
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1577
- };__exportStar(pass$1, exports);
1578
- __exportStar(passAsync$1, exports);
1579
-
1580
- } (es2018));
1581
-
1582
- hydrate$3.hydrate = void 0;
1583
- const pass_1$1 = es2018;
1584
- function hydrate$2(err) {
1585
- var _a;
1586
- const errorNames = [err.name, ...err.ancestors]
1587
- .slice(0, -1)
1588
- .reverse();
1589
- let errorConstructor = Error;
1590
- for (const name of errorNames) {
1591
- errorConstructor = createChildErrorConstructor$1(errorConstructor, name);
1592
- }
1593
- const result = new errorConstructor();
1594
- result.name = err.name;
1595
- result.message = err.message;
1596
- result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;
1597
- return result;
1598
- }
1599
- hydrate$3.hydrate = hydrate$2;
1600
- function createChildErrorConstructor$1(parentErrorConstructor, name) {
1601
- const constructor = function () { (0, pass_1$1.pass)(); };
1602
- constructor.prototype = Object.create(parentErrorConstructor.prototype);
1603
- constructor.prototype.constructor = constructor;
1604
- Object.defineProperty(constructor, 'name', { value: name });
1605
- return constructor;
1606
- }
1607
-
1608
- var assert$2 = {};
1609
-
1610
- var hasRequiredAssert;
1611
-
1612
- function requireAssert () {
1613
- if (hasRequiredAssert) return assert$2;
1614
- hasRequiredAssert = 1;
1615
- assert$2.assert = void 0;
1616
- const assertion_error_1 = requireAssertionError();
1617
- function assert(condition, message) {
1618
- if (!condition)
1619
- throw new assertion_error_1.AssertionError(message);
1620
- }
1621
- assert$2.assert = assert;
1622
-
1623
- return assert$2;
1624
- }
1625
-
1626
- var hasRequiredEs2018$1;
1627
-
1628
- function requireEs2018$1 () {
1629
- if (hasRequiredEs2018$1) return es2018$2;
1630
- hasRequiredEs2018$1 = 1;
1631
- (function (exports) {
1632
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1633
- if (k2 === undefined) k2 = k;
1634
- var desc = Object.getOwnPropertyDescriptor(m, k);
1635
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1636
- desc = { enumerable: true, get: function() { return m[k]; } };
1637
- }
1638
- Object.defineProperty(o, k2, desc);
1639
- }) : (function(o, m, k, k2) {
1640
- if (k2 === undefined) k2 = k;
1641
- o[k2] = m[k];
1642
- }));
1643
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1644
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1645
- };__exportStar(requireCustomError(), exports);
1646
- __exportStar(requireAssertionError(), exports);
1647
- __exportStar(serializableError$1, exports);
1648
- __exportStar(requireNormalize(), exports);
1649
- __exportStar(hydrate$3, exports);
1650
- __exportStar(requireAssert(), exports);
1651
- __exportStar(getErrorNames$3, exports);
1652
- __exportStar(traverseErrorPrototypeChain$3, exports);
1653
-
1654
- } (es2018$2));
1655
- return es2018$2;
1656
- }
1657
-
1658
- var hasRequiredChunkAsync;
1659
-
1660
- function requireChunkAsync () {
1661
- if (hasRequiredChunkAsync) return chunkAsync;
1662
- hasRequiredChunkAsync = 1;
1663
- chunkAsync.chunkAsync = void 0;
1664
- const go_1 = es2018$5;
1665
- const errors_1 = requireEs2018$1();
1666
- function chunkAsync$1(iterable, size) {
1667
- (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
1668
- (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');
1669
- return (0, go_1.go)(async function* () {
1670
- let buffer = [];
1671
- for await (const element of iterable) {
1672
- buffer.push(element);
1673
- if (buffer.length >= size) {
1674
- yield buffer;
1675
- buffer = [];
1676
- }
1677
- }
1678
- if (buffer.length)
1679
- yield buffer;
1680
- });
1681
- }
1682
- chunkAsync.chunkAsync = chunkAsync$1;
1683
-
1684
- return chunkAsync;
1685
- }
1686
-
1687
- var chunkByAsync$1 = {};
1688
-
1689
1455
  chunkByAsync$1.chunkByAsync = void 0;
1690
- const types_1$k = es2018$1;
1456
+ const types_1$j = es2018$1;
1691
1457
  function chunkByAsync(iterable, predicate) {
1692
- if ((0, types_1$k.isAsyncIterable)(iterable)) {
1458
+ if ((0, types_1$j.isAsyncIterable)(iterable)) {
1693
1459
  return chunkByAsyncIterable(iterable, predicate);
1694
1460
  }
1695
1461
  else {
@@ -1753,8 +1519,8 @@
1753
1519
  if (hasRequiredChunk) return chunk;
1754
1520
  hasRequiredChunk = 1;
1755
1521
  chunk.chunk = void 0;
1756
- const go_1 = es2018$5;
1757
- const errors_1 = requireEs2018$1();
1522
+ const go_1 = es2018$4;
1523
+ const errors_1 = requireEs2018();
1758
1524
  function chunk$1(iterable, size) {
1759
1525
  (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
1760
1526
  (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -1779,12 +1545,12 @@
1779
1545
  var concatAsync$1 = {};
1780
1546
 
1781
1547
  concatAsync$1.concatAsync = void 0;
1782
- const types_1$j = es2018$1;
1783
- const go_1$1 = es2018$5;
1548
+ const types_1$i = es2018$1;
1549
+ const go_1$1 = es2018$4;
1784
1550
  function concatAsync(iterable, ...otherIterables) {
1785
1551
  return (0, go_1$1.go)(async function* () {
1786
1552
  for (const iter of [iterable, ...otherIterables]) {
1787
- if ((0, types_1$j.isAsyncIterable)(iter)) {
1553
+ if ((0, types_1$i.isAsyncIterable)(iter)) {
1788
1554
  for await (const element of iter) {
1789
1555
  yield element;
1790
1556
  }
@@ -1802,7 +1568,7 @@
1802
1568
  var concat$1 = {};
1803
1569
 
1804
1570
  concat$1.concat = void 0;
1805
- const go_1 = es2018$5;
1571
+ const go_1 = es2018$4;
1806
1572
  function concat(iterable, ...otherIterables) {
1807
1573
  return (0, go_1.go)(function* () {
1808
1574
  for (const iter of [iterable, ...otherIterables]) {
@@ -1836,9 +1602,9 @@
1836
1602
  if (hasRequiredDropAsync) return dropAsync;
1837
1603
  hasRequiredDropAsync = 1;
1838
1604
  dropAsync.dropAsync = void 0;
1839
- const go_1 = es2018$5;
1605
+ const go_1 = es2018$4;
1840
1606
  const utils_1 = utils;
1841
- const errors_1 = requireEs2018$1();
1607
+ const errors_1 = requireEs2018();
1842
1608
  function dropAsync$1(iterable, count) {
1843
1609
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1844
1610
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1879,9 +1645,9 @@
1879
1645
  if (hasRequiredDropRightAsync) return dropRightAsync;
1880
1646
  hasRequiredDropRightAsync = 1;
1881
1647
  dropRightAsync.dropRightAsync = void 0;
1882
- const go_1 = es2018$5;
1648
+ const go_1 = es2018$4;
1883
1649
  const utils_1 = utils;
1884
- const errors_1 = requireEs2018$1();
1650
+ const errors_1 = requireEs2018();
1885
1651
  function dropRightAsync$1(iterable, count) {
1886
1652
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1887
1653
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1915,9 +1681,9 @@
1915
1681
  if (hasRequiredDropRight) return dropRight;
1916
1682
  hasRequiredDropRight = 1;
1917
1683
  dropRight.dropRight = void 0;
1918
- const go_1 = es2018$5;
1684
+ const go_1 = es2018$4;
1919
1685
  const utils_1 = utils;
1920
- const errors_1 = requireEs2018$1();
1686
+ const errors_1 = requireEs2018();
1921
1687
  function dropRight$1(iterable, count) {
1922
1688
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1923
1689
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1936,9 +1702,9 @@
1936
1702
  var dropUntilAsync$1 = {};
1937
1703
 
1938
1704
  dropUntilAsync$1.dropUntilAsync = void 0;
1939
- const types_1$i = es2018$1;
1705
+ const types_1$h = es2018$1;
1940
1706
  function dropUntilAsync(iterable, predicate) {
1941
- if ((0, types_1$i.isAsyncIterable)(iterable)) {
1707
+ if ((0, types_1$h.isAsyncIterable)(iterable)) {
1942
1708
  return dropUntilAsyncIterable(iterable, predicate);
1943
1709
  }
1944
1710
  else {
@@ -2023,9 +1789,9 @@
2023
1789
  if (hasRequiredDrop) return drop;
2024
1790
  hasRequiredDrop = 1;
2025
1791
  drop.drop = void 0;
2026
- const go_1 = es2018$5;
1792
+ const go_1 = es2018$4;
2027
1793
  const utils_1 = utils;
2028
- const errors_1 = requireEs2018$1();
1794
+ const errors_1 = requireEs2018();
2029
1795
  function drop$1(iterable, count) {
2030
1796
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2031
1797
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2061,9 +1827,9 @@
2061
1827
  var filterAsync$1 = {};
2062
1828
 
2063
1829
  filterAsync$1.filterAsync = void 0;
2064
- const types_1$h = es2018$1;
1830
+ const types_1$g = es2018$1;
2065
1831
  function filterAsync(iterable, predicate) {
2066
- if ((0, types_1$h.isAsyncIterable)(iterable)) {
1832
+ if ((0, types_1$g.isAsyncIterable)(iterable)) {
2067
1833
  return filterAsyncIterable(iterable, predicate);
2068
1834
  }
2069
1835
  else {
@@ -2108,9 +1874,9 @@
2108
1874
  var flattenByAsync$1 = {};
2109
1875
 
2110
1876
  flattenByAsync$1.flattenByAsync = void 0;
2111
- const types_1$g = es2018$1;
1877
+ const types_1$f = es2018$1;
2112
1878
  function flattenByAsync(iterable, predicate) {
2113
- if ((0, types_1$g.isAsyncIterable)(iterable)) {
1879
+ if ((0, types_1$f.isAsyncIterable)(iterable)) {
2114
1880
  return flattenByAsyncIterable(iterable, predicate);
2115
1881
  }
2116
1882
  else {
@@ -2143,7 +1909,7 @@
2143
1909
  }
2144
1910
  }
2145
1911
  function isFiniteIterable$1(val) {
2146
- return (0, types_1$g.isIterable)(val) && (0, types_1$g.isntChar)(val);
1912
+ return (0, types_1$f.isIterable)(val) && (0, types_1$f.isntChar)(val);
2147
1913
  }
2148
1914
 
2149
1915
  var hasRequiredFlattenDeepAsync;
@@ -2153,7 +1919,7 @@
2153
1919
  hasRequiredFlattenDeepAsync = 1;
2154
1920
  flattenDeepAsync.flattenDeepAsync = void 0;
2155
1921
  const flatten_by_async_1 = flattenByAsync$1;
2156
- const errors_1 = requireEs2018$1();
1922
+ const errors_1 = requireEs2018();
2157
1923
  function flattenDeepAsync$1(iterable, depth = Infinity) {
2158
1924
  (0, errors_1.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
2159
1925
  (0, errors_1.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -2182,7 +1948,7 @@
2182
1948
  var flattenBy$1 = {};
2183
1949
 
2184
1950
  flattenBy$1.flattenBy = void 0;
2185
- const types_1$f = es2018$1;
1951
+ const types_1$e = es2018$1;
2186
1952
  function flattenBy(iterable, predicate) {
2187
1953
  return flatten$1(iterable, predicate, 1);
2188
1954
  }
@@ -2198,7 +1964,7 @@
2198
1964
  }
2199
1965
  }
2200
1966
  function isFiniteIterable(val) {
2201
- return (0, types_1$f.isIterable)(val) && (0, types_1$f.isntChar)(val);
1967
+ return (0, types_1$e.isIterable)(val) && (0, types_1$e.isntChar)(val);
2202
1968
  }
2203
1969
 
2204
1970
  var flattenDeep = {};
@@ -2210,7 +1976,7 @@
2210
1976
  hasRequiredFlattenDeep = 1;
2211
1977
  flattenDeep.flattenDeep = void 0;
2212
1978
  const flatten_by_1 = flattenBy$1;
2213
- const errors_1 = requireEs2018$1();
1979
+ const errors_1 = requireEs2018();
2214
1980
  function flattenDeep$1(iterable, depth = Infinity) {
2215
1981
  (0, errors_1.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
2216
1982
  (0, errors_1.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -2241,9 +2007,9 @@
2241
2007
  var mapAsync$1 = {};
2242
2008
 
2243
2009
  mapAsync$1.mapAsync = void 0;
2244
- const types_1$e = es2018$1;
2010
+ const types_1$d = es2018$1;
2245
2011
  function mapAsync(iterable, fn) {
2246
- if ((0, types_1$e.isAsyncIterable)(iterable)) {
2012
+ if ((0, types_1$d.isAsyncIterable)(iterable)) {
2247
2013
  return mapAsyncIterable(iterable, fn);
2248
2014
  }
2249
2015
  else {
@@ -2286,8 +2052,8 @@
2286
2052
  if (hasRequiredRepeatAsync) return repeatAsync;
2287
2053
  hasRequiredRepeatAsync = 1;
2288
2054
  repeatAsync.repeatAsync = void 0;
2289
- const go_1 = es2018$5;
2290
- const errors_1 = requireEs2018$1();
2055
+ const go_1 = es2018$4;
2056
+ const errors_1 = requireEs2018();
2291
2057
  function repeatAsync$1(iterable, times) {
2292
2058
  (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
2293
2059
  (0, errors_1.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -2329,8 +2095,8 @@
2329
2095
  if (hasRequiredRepeat) return repeat;
2330
2096
  hasRequiredRepeat = 1;
2331
2097
  repeat.repeat = void 0;
2332
- const go_1 = es2018$5;
2333
- const errors_1 = requireEs2018$1();
2098
+ const go_1 = es2018$4;
2099
+ const errors_1 = requireEs2018();
2334
2100
  function repeat$1(iterable, times) {
2335
2101
  (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
2336
2102
  (0, errors_1.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -2372,8 +2138,8 @@
2372
2138
  if (hasRequiredSliceAsync) return sliceAsync;
2373
2139
  hasRequiredSliceAsync = 1;
2374
2140
  sliceAsync.sliceAsync = void 0;
2375
- const go_1 = es2018$5;
2376
- const errors_1 = requireEs2018$1();
2141
+ const go_1 = es2018$4;
2142
+ const errors_1 = requireEs2018();
2377
2143
  function sliceAsync$1(iterable, start, end = Infinity) {
2378
2144
  (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
2379
2145
  (0, errors_1.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -2403,8 +2169,8 @@
2403
2169
  if (hasRequiredSlice) return slice;
2404
2170
  hasRequiredSlice = 1;
2405
2171
  slice.slice = void 0;
2406
- const go_1 = es2018$5;
2407
- const errors_1 = requireEs2018$1();
2172
+ const go_1 = es2018$4;
2173
+ const errors_1 = requireEs2018();
2408
2174
  function slice$1(iterable, start, end = Infinity) {
2409
2175
  (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
2410
2176
  (0, errors_1.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -2447,9 +2213,9 @@
2447
2213
  var splitByAsync$1 = {};
2448
2214
 
2449
2215
  splitByAsync$1.splitByAsync = void 0;
2450
- const types_1$d = es2018$1;
2216
+ const types_1$c = es2018$1;
2451
2217
  function splitByAsync(iterable, predicate) {
2452
- if ((0, types_1$d.isAsyncIterable)(iterable)) {
2218
+ if ((0, types_1$c.isAsyncIterable)(iterable)) {
2453
2219
  return splitByAsyncIterable(iterable, predicate);
2454
2220
  }
2455
2221
  else {
@@ -2534,8 +2300,8 @@
2534
2300
  if (hasRequiredTakeAsync) return takeAsync;
2535
2301
  hasRequiredTakeAsync = 1;
2536
2302
  takeAsync.takeAsync = void 0;
2537
- const go_1 = es2018$5;
2538
- const errors_1 = requireEs2018$1();
2303
+ const go_1 = es2018$4;
2304
+ const errors_1 = requireEs2018();
2539
2305
  function takeAsync$1(iterable, count) {
2540
2306
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2541
2307
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2563,8 +2329,8 @@
2563
2329
  if (hasRequiredTakeRightAsync) return takeRightAsync;
2564
2330
  hasRequiredTakeRightAsync = 1;
2565
2331
  takeRightAsync.takeRightAsync = void 0;
2566
- const go_1 = es2018$5;
2567
- const errors_1 = requireEs2018$1();
2332
+ const go_1 = es2018$4;
2333
+ const errors_1 = requireEs2018();
2568
2334
  function takeRightAsync$1(iterable, count) {
2569
2335
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2570
2336
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2601,8 +2367,8 @@
2601
2367
  if (hasRequiredTakeRight) return takeRight;
2602
2368
  hasRequiredTakeRight = 1;
2603
2369
  takeRight.takeRight = void 0;
2604
- const go_1 = es2018$5;
2605
- const errors_1 = requireEs2018$1();
2370
+ const go_1 = es2018$4;
2371
+ const errors_1 = requireEs2018();
2606
2372
  function takeRight$1(iterable, count) {
2607
2373
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2608
2374
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2634,9 +2400,9 @@
2634
2400
  var takeUntilAsync$1 = {};
2635
2401
 
2636
2402
  takeUntilAsync$1.takeUntilAsync = void 0;
2637
- const types_1$c = es2018$1;
2403
+ const types_1$b = es2018$1;
2638
2404
  function takeUntilAsync(iterable, predicate) {
2639
- if ((0, types_1$c.isAsyncIterable)(iterable)) {
2405
+ if ((0, types_1$b.isAsyncIterable)(iterable)) {
2640
2406
  return takeUntilAsyncIterable(iterable, predicate);
2641
2407
  }
2642
2408
  else {
@@ -2685,8 +2451,8 @@
2685
2451
  if (hasRequiredTake) return take;
2686
2452
  hasRequiredTake = 1;
2687
2453
  take.take = void 0;
2688
- const go_1 = es2018$5;
2689
- const errors_1 = requireEs2018$1();
2454
+ const go_1 = es2018$4;
2455
+ const errors_1 = requireEs2018();
2690
2456
  function take$1(iterable, count) {
2691
2457
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2692
2458
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2709,9 +2475,9 @@
2709
2475
  var tapAsync$1 = {};
2710
2476
 
2711
2477
  tapAsync$1.tapAsync = void 0;
2712
- const types_1$b = es2018$1;
2478
+ const types_1$a = es2018$1;
2713
2479
  function tapAsync(iterable, fn) {
2714
- if ((0, types_1$b.isAsyncIterable)(iterable)) {
2480
+ if ((0, types_1$a.isAsyncIterable)(iterable)) {
2715
2481
  return tapAsyncIterable(iterable, fn);
2716
2482
  }
2717
2483
  else {
@@ -2792,9 +2558,9 @@
2792
2558
  var uniqByAsync$1 = {};
2793
2559
 
2794
2560
  uniqByAsync$1.uniqByAsync = void 0;
2795
- const types_1$a = es2018$1;
2561
+ const types_1$9 = es2018$1;
2796
2562
  function uniqByAsync(iterable, fn) {
2797
- if ((0, types_1$a.isAsyncIterable)(iterable)) {
2563
+ if ((0, types_1$9.isAsyncIterable)(iterable)) {
2798
2564
  return uniqByAsyncIterable(iterable, fn);
2799
2565
  }
2800
2566
  else {
@@ -2861,7 +2627,7 @@
2861
2627
  var zipAsync$1 = {};
2862
2628
 
2863
2629
  zipAsync$1.zipAsync = void 0;
2864
- const types_1$9 = es2018$1;
2630
+ const types_1$8 = es2018$1;
2865
2631
  var Kind;
2866
2632
  (function (Kind) {
2867
2633
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -2875,7 +2641,7 @@
2875
2641
  var _a, _b, _c, _d;
2876
2642
  const length = iterables.length;
2877
2643
  const iterators = iterables.map(iterable => {
2878
- if ((0, types_1$9.isAsyncIterable)(iterable)) {
2644
+ if ((0, types_1$8.isAsyncIterable)(iterable)) {
2879
2645
  return [Kind.Async, iterable[Symbol.asyncIterator]()];
2880
2646
  }
2881
2647
  else {
@@ -3032,9 +2798,9 @@
3032
2798
  var eachAsync$1 = {};
3033
2799
 
3034
2800
  eachAsync$1.eachAsync = void 0;
3035
- const types_1$8 = es2018$1;
2801
+ const types_1$7 = es2018$1;
3036
2802
  function eachAsync(iterable, fn) {
3037
- if ((0, types_1$8.isAsyncIterable)(iterable)) {
2803
+ if ((0, types_1$7.isAsyncIterable)(iterable)) {
3038
2804
  return eachAsyncIterable(iterable, fn);
3039
2805
  }
3040
2806
  else {
@@ -3072,9 +2838,9 @@
3072
2838
  var everyAsync$1 = {};
3073
2839
 
3074
2840
  everyAsync$1.everyAsync = void 0;
3075
- const types_1$7 = es2018$1;
2841
+ const types_1$6 = es2018$1;
3076
2842
  function everyAsync(iterable, predicate) {
3077
- if ((0, types_1$7.isAsyncIterable)(iterable)) {
2843
+ if ((0, types_1$6.isAsyncIterable)(iterable)) {
3078
2844
  return everyAsyncIterable(iterable, predicate);
3079
2845
  }
3080
2846
  else {
@@ -3118,9 +2884,9 @@
3118
2884
  var findAsync$1 = {};
3119
2885
 
3120
2886
  findAsync$1.findAsync = void 0;
3121
- const types_1$6 = es2018$1;
2887
+ const types_1$5 = es2018$1;
3122
2888
  function findAsync(iterable, predicate) {
3123
- if ((0, types_1$6.isAsyncIterable)(iterable)) {
2889
+ if ((0, types_1$5.isAsyncIterable)(iterable)) {
3124
2890
  return findAsyncIterable(iterable, predicate);
3125
2891
  }
3126
2892
  else {
@@ -3242,9 +3008,9 @@
3242
3008
  var reduceAsync$1 = {};
3243
3009
 
3244
3010
  reduceAsync$1.reduceAsync = void 0;
3245
- const types_1$5 = es2018$1;
3011
+ const types_1$4 = es2018$1;
3246
3012
  function reduceAsync(iterable, fn, initialValue) {
3247
- if ((0, types_1$5.isUndefined)(initialValue)) {
3013
+ if ((0, types_1$4.isUndefined)(initialValue)) {
3248
3014
  return reduceAsyncWithoutInitialValue(iterable, fn);
3249
3015
  }
3250
3016
  else {
@@ -3253,7 +3019,7 @@
3253
3019
  }
3254
3020
  reduceAsync$1.reduceAsync = reduceAsync;
3255
3021
  function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
3256
- if ((0, types_1$5.isAsyncIterable)(iterable)) {
3022
+ if ((0, types_1$4.isAsyncIterable)(iterable)) {
3257
3023
  return reduceAsyncIterable(iterable);
3258
3024
  }
3259
3025
  else {
@@ -3275,7 +3041,7 @@
3275
3041
  }
3276
3042
  }
3277
3043
  function reduceAsyncWithoutInitialValue(iterable, fn) {
3278
- if ((0, types_1$5.isAsyncIterable)(iterable)) {
3044
+ if ((0, types_1$4.isAsyncIterable)(iterable)) {
3279
3045
  return reduceAsyncIterable(iterable);
3280
3046
  }
3281
3047
  else {
@@ -3338,9 +3104,9 @@
3338
3104
  var reduce$1 = {};
3339
3105
 
3340
3106
  reduce$1.reduce = void 0;
3341
- const types_1$4 = es2018$1;
3107
+ const types_1$3 = es2018$1;
3342
3108
  function reduce(iterable, fn, initialValue) {
3343
- if ((0, types_1$4.isUndefined)(initialValue)) {
3109
+ if ((0, types_1$3.isUndefined)(initialValue)) {
3344
3110
  return reduceWithoutInitialValue(iterable, fn);
3345
3111
  }
3346
3112
  else {
@@ -3385,9 +3151,9 @@
3385
3151
  var someAsync$1 = {};
3386
3152
 
3387
3153
  someAsync$1.someAsync = void 0;
3388
- const types_1$3 = es2018$1;
3154
+ const types_1$2 = es2018$1;
3389
3155
  function someAsync(iterable, predicate) {
3390
- if ((0, types_1$3.isAsyncIterable)(iterable)) {
3156
+ if ((0, types_1$2.isAsyncIterable)(iterable)) {
3391
3157
  return someAsyncIterable(iterable, predicate);
3392
3158
  }
3393
3159
  else {
@@ -3622,11 +3388,11 @@
3622
3388
 
3623
3389
  } (output));
3624
3390
 
3625
- var hasRequiredEs2018;
3391
+ var hasRequiredEs2018$1;
3626
3392
 
3627
- function requireEs2018 () {
3628
- if (hasRequiredEs2018) return es2018$6;
3629
- hasRequiredEs2018 = 1;
3393
+ function requireEs2018$1 () {
3394
+ if (hasRequiredEs2018$1) return es2018$5;
3395
+ hasRequiredEs2018$1 = 1;
3630
3396
  (function (exports) {
3631
3397
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3632
3398
  if (k2 === undefined) k2 = k;
@@ -3644,8 +3410,8 @@
3644
3410
  };__exportStar(requireMiddleware(), exports);
3645
3411
  __exportStar(output, exports);
3646
3412
 
3647
- } (es2018$6));
3648
- return es2018$6;
3413
+ } (es2018$5));
3414
+ return es2018$5;
3649
3415
  }
3650
3416
 
3651
3417
  var getErrorNames$1 = {};
@@ -3664,11 +3430,11 @@
3664
3430
  traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
3665
3431
 
3666
3432
  getErrorNames$1.getErrorNames = void 0;
3667
- const types_1$2 = es2018$8;
3433
+ const types_1$1 = es2018$7;
3668
3434
  const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
3669
3435
  function* getErrorNames(err) {
3670
3436
  var _a;
3671
- if ((0, types_1$2.isError)(err)) {
3437
+ if ((0, types_1$1.isError)(err)) {
3672
3438
  for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {
3673
3439
  if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
3674
3440
  yield prototype.constructor.name;
@@ -3685,70 +3451,123 @@
3685
3451
  var serializableError = {};
3686
3452
 
3687
3453
  serializableError.isSerializableError = void 0;
3688
- const types_1$1 = es2018$8;
3454
+ const types_1 = es2018$7;
3689
3455
  function isSerializableError(val) {
3690
- return (0, types_1$1.isObject)(val)
3691
- && (0, types_1$1.isString)(val.name)
3692
- && (0, types_1$1.isString)(val.message)
3693
- && ((0, types_1$1.isString)(val.stack) || (0, types_1$1.isNull)(val.stack))
3694
- && ((0, types_1$1.isArray)(val.ancestors) && val.ancestors.every(types_1$1.isString));
3456
+ return (0, types_1.isObject)(val)
3457
+ && (0, types_1.isString)(val.name)
3458
+ && (0, types_1.isString)(val.message)
3459
+ && ((0, types_1.isString)(val.stack) || (0, types_1.isNull)(val.stack))
3460
+ && ((0, types_1.isArray)(val.ancestors) && val.ancestors.every(types_1.isString));
3695
3461
  }
3696
3462
  serializableError.isSerializableError = isSerializableError;
3697
3463
 
3698
- customError$1.CustomError = void 0;
3699
- const iterable_operator_1$1 = requireEs2018();
3700
- const get_error_names_1$1 = getErrorNames$1;
3701
- const types_1 = es2018$8;
3702
- const serializable_error_1 = serializableError;
3703
- class CustomError extends Error {
3704
- get name() {
3705
- var _a, _b;
3706
- return (_b = (_a = (0, iterable_operator_1$1.first)((0, get_error_names_1$1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';
3707
- }
3708
- static [Symbol.hasInstance](instance) {
3709
- var _a;
3710
- if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
3711
- const reversedClassNames = [
3712
- (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
3713
- ...(0, get_error_names_1$1.getErrorNames)(this.prototype)
3714
- ].reverse();
3715
- const reversedInstanceNames = (0, iterable_operator_1$1.toArray)((0, get_error_names_1$1.getErrorNames)(instance)).reverse();
3716
- return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
3717
- }
3718
- else {
3719
- return false;
3720
- }
3721
- }
3464
+ var hasRequiredCustomError;
3465
+
3466
+ function requireCustomError () {
3467
+ if (hasRequiredCustomError) return customError;
3468
+ hasRequiredCustomError = 1;
3469
+ customError.CustomError = void 0;
3470
+ const iterable_operator_1 = requireEs2018$1();
3471
+ const get_error_names_1 = getErrorNames$1;
3472
+ const types_1 = es2018$7;
3473
+ const serializable_error_1 = serializableError;
3474
+ class CustomError extends Error {
3475
+ get name() {
3476
+ var _a, _b;
3477
+ return (_b = (_a = (0, iterable_operator_1.first)((0, get_error_names_1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';
3478
+ }
3479
+ static [Symbol.hasInstance](instance) {
3480
+ var _a;
3481
+ if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
3482
+ const reversedClassNames = [
3483
+ (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
3484
+ ...(0, get_error_names_1.getErrorNames)(this.prototype)
3485
+ ].reverse();
3486
+ const reversedInstanceNames = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(instance)).reverse();
3487
+ return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
3488
+ }
3489
+ else {
3490
+ return false;
3491
+ }
3492
+ }
3493
+ }
3494
+ customError.CustomError = CustomError;
3495
+
3496
+ return customError;
3722
3497
  }
3723
- customError$1.CustomError = CustomError;
3724
3498
 
3725
3499
  var assertionError = {};
3726
3500
 
3501
+ var hasRequiredAssertionError;
3502
+
3503
+ function requireAssertionError () {
3504
+ if (hasRequiredAssertionError) return assertionError;
3505
+ hasRequiredAssertionError = 1;
3727
3506
  assertionError.AssertionError = void 0;
3728
- const custom_error_1 = customError$1;
3729
- class AssertionError extends custom_error_1.CustomError {
3507
+ const custom_error_1 = requireCustomError();
3508
+ class AssertionError extends custom_error_1.CustomError {
3509
+ }
3510
+ assertionError.AssertionError = AssertionError;
3511
+
3512
+ return assertionError;
3730
3513
  }
3731
- assertionError.AssertionError = AssertionError;
3732
3514
 
3733
- var normalize$1 = {};
3515
+ var normalize = {};
3734
3516
 
3735
- normalize$1.normalize = void 0;
3736
- const get_error_names_1 = getErrorNames$1;
3737
- const iterable_operator_1 = requireEs2018();
3738
- function normalize(err) {
3739
- var _a;
3740
- const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
3741
- return {
3742
- name,
3743
- ancestors,
3744
- message: err.message,
3745
- stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
3746
- };
3517
+ var hasRequiredNormalize;
3518
+
3519
+ function requireNormalize () {
3520
+ if (hasRequiredNormalize) return normalize;
3521
+ hasRequiredNormalize = 1;
3522
+ normalize.normalize = void 0;
3523
+ const get_error_names_1 = getErrorNames$1;
3524
+ const iterable_operator_1 = requireEs2018$1();
3525
+ function normalize$1(err) {
3526
+ var _a;
3527
+ const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
3528
+ return {
3529
+ name,
3530
+ ancestors,
3531
+ message: err.message,
3532
+ stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
3533
+ };
3534
+ }
3535
+ normalize.normalize = normalize$1;
3536
+
3537
+ return normalize;
3747
3538
  }
3748
- normalize$1.normalize = normalize;
3749
3539
 
3750
3540
  var hydrate$1 = {};
3751
3541
 
3542
+ var es2018 = {};
3543
+
3544
+ var pass$1 = {};
3545
+
3546
+ pass$1.pass = void 0;
3547
+ function pass() { }
3548
+ pass$1.pass = pass;
3549
+
3550
+ var passAsync$1 = {};
3551
+
3552
+ passAsync$1.passAsync = void 0;
3553
+ async function passAsync() { }
3554
+ passAsync$1.passAsync = passAsync;
3555
+
3556
+ (function (exports) {
3557
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3558
+ if (k2 === undefined) k2 = k;
3559
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3560
+ }) : (function(o, m, k, k2) {
3561
+ if (k2 === undefined) k2 = k;
3562
+ o[k2] = m[k];
3563
+ }));
3564
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3565
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3566
+ };__exportStar(pass$1, exports);
3567
+ __exportStar(passAsync$1, exports);
3568
+
3569
+ } (es2018));
3570
+
3752
3571
  hydrate$1.hydrate = void 0;
3753
3572
  const pass_1 = es2018;
3754
3573
  function hydrate(err) {
@@ -3775,48 +3594,65 @@
3775
3594
  return constructor;
3776
3595
  }
3777
3596
 
3778
- var assert$1 = {};
3597
+ var assert = {};
3779
3598
 
3780
- assert$1.assert = void 0;
3781
- const assertion_error_1 = assertionError;
3782
- function assert(condition, message) {
3783
- if (!condition)
3784
- throw new assertion_error_1.AssertionError(message);
3785
- }
3786
- assert$1.assert = assert;
3599
+ var hasRequiredAssert;
3787
3600
 
3788
- (function (exports) {
3789
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3790
- if (k2 === undefined) k2 = k;
3791
- var desc = Object.getOwnPropertyDescriptor(m, k);
3792
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3793
- desc = { enumerable: true, get: function() { return m[k]; } };
3794
- }
3795
- Object.defineProperty(o, k2, desc);
3796
- }) : (function(o, m, k, k2) {
3797
- if (k2 === undefined) k2 = k;
3798
- o[k2] = m[k];
3799
- }));
3800
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3801
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3802
- };__exportStar(customError$1, exports);
3803
- __exportStar(assertionError, exports);
3804
- __exportStar(serializableError, exports);
3805
- __exportStar(normalize$1, exports);
3806
- __exportStar(hydrate$1, exports);
3807
- __exportStar(assert$1, exports);
3808
- __exportStar(getErrorNames$1, exports);
3809
- __exportStar(traverseErrorPrototypeChain$1, exports);
3601
+ function requireAssert () {
3602
+ if (hasRequiredAssert) return assert;
3603
+ hasRequiredAssert = 1;
3604
+ assert.assert = void 0;
3605
+ const assertion_error_1 = requireAssertionError();
3606
+ function assert$1(condition, message) {
3607
+ if (!condition)
3608
+ throw new assertion_error_1.AssertionError(message);
3609
+ }
3610
+ assert.assert = assert$1;
3810
3611
 
3811
- } (es2018$7));
3612
+ return assert;
3613
+ }
3614
+
3615
+ var hasRequiredEs2018;
3616
+
3617
+ function requireEs2018 () {
3618
+ if (hasRequiredEs2018) return es2018$6;
3619
+ hasRequiredEs2018 = 1;
3620
+ (function (exports) {
3621
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3622
+ if (k2 === undefined) k2 = k;
3623
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3624
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3625
+ desc = { enumerable: true, get: function() { return m[k]; } };
3626
+ }
3627
+ Object.defineProperty(o, k2, desc);
3628
+ }) : (function(o, m, k, k2) {
3629
+ if (k2 === undefined) k2 = k;
3630
+ o[k2] = m[k];
3631
+ }));
3632
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3633
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3634
+ };__exportStar(requireCustomError(), exports);
3635
+ __exportStar(requireAssertionError(), exports);
3636
+ __exportStar(serializableError, exports);
3637
+ __exportStar(requireNormalize(), exports);
3638
+ __exportStar(hydrate$1, exports);
3639
+ __exportStar(requireAssert(), exports);
3640
+ __exportStar(getErrorNames$1, exports);
3641
+ __exportStar(traverseErrorPrototypeChain$1, exports);
3642
+
3643
+ } (es2018$6));
3644
+ return es2018$6;
3645
+ }
3646
+
3647
+ var es2018Exports$1 = requireEs2018();
3812
3648
 
3813
- var es2018Exports = requireEs2018();
3649
+ var es2018Exports = requireEs2018$1();
3814
3650
 
3815
3651
  class LRUMap {
3816
3652
  constructor(limit) {
3817
3653
  this.map = new Map();
3818
- es2018$7.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
3819
- es2018$7.assert(limit > 0, 'The parameter limit must be a positive value');
3654
+ es2018Exports$1.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
3655
+ es2018Exports$1.assert(limit > 0, 'The parameter limit must be a positive value');
3820
3656
  this.limit = limit;
3821
3657
  }
3822
3658
  get [Symbol.toStringTag]() {
@@ -3954,7 +3790,7 @@
3954
3790
  if (this.itemMetadataSortedByExpirationTime.length > 0) {
3955
3791
  const item = this.itemMetadataSortedByExpirationTime[0];
3956
3792
  if (Number.isFinite(item.expirationTime)) {
3957
- const cancel = es2018$4.setSchedule(item.expirationTime, () => {
3793
+ const cancel = es2018$3.setSchedule(item.expirationTime, () => {
3958
3794
  this.clearExpiredItems(Date.now());
3959
3795
  this.rescheduleClearTimeout();
3960
3796
  });
@@ -3977,8 +3813,8 @@
3977
3813
  * 按过期时间升序排列所有项目的元数据
3978
3814
  */
3979
3815
  this.itemMetadataSortedByExpirationTime = [];
3980
- es2018$7.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
3981
- es2018$7.assert(limit > 0, 'The parameter limit must be a positive value');
3816
+ es2018Exports$1.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
3817
+ es2018Exports$1.assert(limit > 0, 'The parameter limit must be a positive value');
3982
3818
  this.limit = limit;
3983
3819
  }
3984
3820
  get [Symbol.toStringTag]() {
@@ -4082,7 +3918,7 @@
4082
3918
  if (this.itemMetadataSortedByExpirationTime.length > 0) {
4083
3919
  const item = this.itemMetadataSortedByExpirationTime[0];
4084
3920
  if (Number.isFinite(item.expirationTime)) {
4085
- const cancel = es2018$4.setSchedule(item.expirationTime, () => {
3921
+ const cancel = es2018$3.setSchedule(item.expirationTime, () => {
4086
3922
  this.clearExpiredItems(Date.now());
4087
3923
  this.rescheduleClearTimeout();
4088
3924
  });
@@ -4119,7 +3955,7 @@
4119
3955
  function* dfs(node, paths) {
4120
3956
  for (const [path, childNode] of node.children) {
4121
3957
  const newPaths = [...paths, path];
4122
- if (es2018$8.isntUndefined(childNode.value)) {
3958
+ if (es2018$7.isntUndefined(childNode.value)) {
4123
3959
  yield [newPaths, childNode.value];
4124
3960
  }
4125
3961
  yield* dfs(childNode, newPaths);
@@ -4221,7 +4057,7 @@
4221
4057
  }
4222
4058
  }
4223
4059
  }
4224
- class BadEventError extends es2018$7.CustomError {
4060
+ class BadEventError extends es2018Exports$1.CustomError {
4225
4061
  constructor(state, event) {
4226
4062
  super(`State ${state} cannot react to event ${event}`);
4227
4063
  }
@@ -5812,7 +5648,7 @@
5812
5648
  super.send(event);
5813
5649
  const newState = this.state;
5814
5650
  this.stateChanges.next({ event, oldState, newState });
5815
- if (es2018$8.isEmptyObject(this.schema[newState])) {
5651
+ if (es2018$7.isEmptyObject(this.schema[newState])) {
5816
5652
  this.stateChanges.complete();
5817
5653
  }
5818
5654
  }
@@ -5946,7 +5782,7 @@
5946
5782
  constructor(array) {
5947
5783
  this.keyToIndex = [];
5948
5784
  this.indexToKey = [];
5949
- es2018$7.assert(array.length === 0, 'array should be empty');
5785
+ es2018Exports$1.assert(array.length === 0, 'array should be empty');
5950
5786
  this.indexToValue = array;
5951
5787
  }
5952
5788
  get [Symbol.toStringTag]() {
@@ -6070,9 +5906,9 @@
6070
5906
  constructor(typedArrayConstructor, { capacity = 0, growthFactor = 1.5 } = {}) {
6071
5907
  this.typedArrayConstructor = typedArrayConstructor;
6072
5908
  this._length = 0;
6073
- es2018$7.assert(Number.isInteger(capacity), 'capacity must be an integer');
6074
- es2018$7.assert(capacity >= 0, 'capacity must be greater than or equal to 0');
6075
- es2018$7.assert(growthFactor >= 1, 'growthFactory must be greater than or equal to 1');
5909
+ es2018Exports$1.assert(Number.isInteger(capacity), 'capacity must be an integer');
5910
+ es2018Exports$1.assert(capacity >= 0, 'capacity must be greater than or equal to 0');
5911
+ es2018Exports$1.assert(growthFactor >= 1, 'growthFactory must be greater than or equal to 1');
6076
5912
  this.array = new typedArrayConstructor(capacity);
6077
5913
  this.growthFactor = growthFactor;
6078
5914
  }
@@ -6226,7 +6062,7 @@
6226
6062
  while (currentNode.down) {
6227
6063
  currentNode = currentNode.down;
6228
6064
  }
6229
- while (currentNode.next && es2018$8.isntNull(currentNode.next.value)) {
6065
+ while (currentNode.next && es2018$7.isntNull(currentNode.next.value)) {
6230
6066
  currentNode = currentNode.next;
6231
6067
  yield currentNode;
6232
6068
  }
@@ -6256,12 +6092,12 @@
6256
6092
  this._size--;
6257
6093
  }
6258
6094
  has(value) {
6259
- return es2018$8.isntNull(this.findNode(value));
6095
+ return es2018$7.isntNull(this.findNode(value));
6260
6096
  }
6261
6097
  findNode(value) {
6262
6098
  let currentNode = this.head;
6263
6099
  while (true) {
6264
- while (currentNode.next && es2018$8.isntNull(currentNode.next.value)) {
6100
+ while (currentNode.next && es2018$7.isntNull(currentNode.next.value)) {
6265
6101
  const result = this.compare(currentNode.next.value, value);
6266
6102
  if (result === 0) {
6267
6103
  return currentNode.next;
@@ -6285,7 +6121,7 @@
6285
6121
  let previousNode = this.findPreviousNode(value);
6286
6122
  // 如果previousNode.next.value等于value, 则说明value已经存在
6287
6123
  if (previousNode.next &&
6288
- es2018$8.isntNull(previousNode.next.value) &&
6124
+ es2018$7.isntNull(previousNode.next.value) &&
6289
6125
  this.compare(previousNode.next.value, value) === 0) {
6290
6126
  return;
6291
6127
  }
@@ -6340,7 +6176,7 @@
6340
6176
  findPreviousNode(value) {
6341
6177
  let currentNode = this.head;
6342
6178
  while (true) {
6343
- while (currentNode.next && es2018$8.isntNull(currentNode.next.value)) {
6179
+ while (currentNode.next && es2018$7.isntNull(currentNode.next.value)) {
6344
6180
  const result = this.compare(currentNode.next.value, value);
6345
6181
  if (result >= 0) {
6346
6182
  break;
@@ -6442,7 +6278,7 @@
6442
6278
  }
6443
6279
  add(value) {
6444
6280
  var _a;
6445
- es2018$7.assert(value >= 0, 'value must be greater than or equal to 0');
6281
+ es2018Exports$1.assert(value >= 0, 'value must be greater than or equal to 0');
6446
6282
  if (value >= this.length) {
6447
6283
  this.length = value + 1;
6448
6284
  }
@@ -6470,7 +6306,7 @@
6470
6306
  }
6471
6307
  // 输入一定是一个小于bitsPerElement的值, 取值范围是[0, bitsPerElement)
6472
6308
  getMask(value) {
6473
- return 2 ** value;
6309
+ return 1 << value;
6474
6310
  }
6475
6311
  }
6476
6312
 
@@ -6533,7 +6369,7 @@
6533
6369
  }
6534
6370
  add(value) {
6535
6371
  var _a;
6536
- es2018$7.assert(value >= 0, 'value must be greater than or equal to 0');
6372
+ es2018Exports$1.assert(value >= 0, 'value must be greater than or equal to 0');
6537
6373
  if (value >= this.length) {
6538
6374
  this.length = value + 1;
6539
6375
  }
@@ -6561,7 +6397,7 @@
6561
6397
  }
6562
6398
  // 输入一定是一个小于bitsPerElement的值, 取值范围是[0, bitsPerElement)
6563
6399
  getMask(value) {
6564
- return 2 ** value;
6400
+ return 1 << value;
6565
6401
  }
6566
6402
  }
6567
6403