@blackglory/match 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/es2015/index.min.mjs +1 -1
  2. package/dist/es2015/index.min.mjs.map +1 -1
  3. package/dist/es2015/index.mjs +272 -145
  4. package/dist/es2015/index.mjs.map +1 -1
  5. package/dist/es2015/index.umd.js +272 -145
  6. package/dist/es2015/index.umd.js.map +1 -1
  7. package/dist/es2015/index.umd.min.js +1 -1
  8. package/dist/es2015/index.umd.min.js.map +1 -1
  9. package/dist/es2018/index.min.mjs +1 -1
  10. package/dist/es2018/index.min.mjs.map +1 -1
  11. package/dist/es2018/index.mjs +272 -145
  12. package/dist/es2018/index.mjs.map +1 -1
  13. package/dist/es2018/index.umd.js +272 -145
  14. package/dist/es2018/index.umd.js.map +1 -1
  15. package/dist/es2018/index.umd.min.js +1 -1
  16. package/dist/es2018/index.umd.min.js.map +1 -1
  17. package/lib/es2015/matchers/child-nodes.js +2 -2
  18. package/lib/es2015/matchers/child-nodes.js.map +1 -1
  19. package/lib/es2015/matchers/children.js +2 -2
  20. package/lib/es2015/matchers/children.js.map +1 -1
  21. package/lib/es2015/matchers/element.js +2 -2
  22. package/lib/es2015/matchers/element.js.map +1 -1
  23. package/lib/es2015/matchers/node.js +2 -2
  24. package/lib/es2015/matchers/node.js.map +1 -1
  25. package/lib/es2015/matchers/text-node.js +2 -2
  26. package/lib/es2015/matchers/text-node.js.map +1 -1
  27. package/lib/{es2018/utils/merge.d.ts → es2015/utils/merge-in-place.d.ts} +1 -1
  28. package/lib/{es2018/utils/merge.js → es2015/utils/merge-in-place.js} +4 -4
  29. package/lib/es2015/utils/merge-in-place.js.map +1 -0
  30. package/lib/es2018/matchers/child-nodes.js +2 -2
  31. package/lib/es2018/matchers/child-nodes.js.map +1 -1
  32. package/lib/es2018/matchers/children.js +2 -2
  33. package/lib/es2018/matchers/children.js.map +1 -1
  34. package/lib/es2018/matchers/element.js +2 -2
  35. package/lib/es2018/matchers/element.js.map +1 -1
  36. package/lib/es2018/matchers/node.js +2 -2
  37. package/lib/es2018/matchers/node.js.map +1 -1
  38. package/lib/es2018/matchers/text-node.js +2 -2
  39. package/lib/es2018/matchers/text-node.js.map +1 -1
  40. package/lib/{es2015/utils/merge.d.ts → es2018/utils/merge-in-place.d.ts} +1 -1
  41. package/lib/{es2015/utils/merge.js → es2018/utils/merge-in-place.js} +4 -4
  42. package/lib/es2018/utils/merge-in-place.js.map +1 -0
  43. package/package.json +3 -2
  44. package/CHANGELOG.md +0 -64
  45. package/lib/es2015/utils/merge.js.map +0 -1
  46. package/lib/es2018/utils/merge.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
2
 
3
- var es2018$8 = {};
3
+ var es2018$7 = {};
4
4
 
5
5
  var flatMap$1 = {};
6
6
 
@@ -81,21 +81,21 @@ filter$3.filter = filter$2;
81
81
 
82
82
  var unwrap$1 = {};
83
83
 
84
- var es2018$7 = {};
84
+ var es2018$6 = {};
85
85
 
86
86
  var middleware = {};
87
87
 
88
88
  var chunkAsync$1 = {};
89
89
 
90
- var es2018$6 = {};
90
+ var es2018$5 = {};
91
91
 
92
- var go$3 = {};
92
+ var go$1 = {};
93
93
 
94
- go$3.go = void 0;
95
- function go$2(fn) {
94
+ go$1.go = void 0;
95
+ function go(fn) {
96
96
  return fn();
97
97
  }
98
- go$3.go = go$2;
98
+ go$1.go = go;
99
99
 
100
100
  (function (exports) {
101
101
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -107,11 +107,11 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
107
107
  }));
108
108
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
109
109
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
110
- };__exportStar(go$3, exports);
110
+ };__exportStar(go$1, exports);
111
111
 
112
- }(es2018$6));
112
+ }(es2018$5));
113
113
 
114
- var es2018$5 = {};
114
+ var es2018$4 = {};
115
115
 
116
116
  var customError = {};
117
117
 
@@ -189,11 +189,11 @@ __exportStar(normalize$3, exports);
189
189
  __exportStar(refute$1, exports);
190
190
  __exportStar(assert$1, exports);
191
191
 
192
- }(es2018$5));
192
+ }(es2018$4));
193
193
 
194
194
  chunkAsync$1.chunkAsync = void 0;
195
- const go_1$g = es2018$6;
196
- const errors_1$m = es2018$5;
195
+ const go_1$g = es2018$5;
196
+ const errors_1$m = es2018$4;
197
197
  function chunkAsync(iterable, size) {
198
198
  (0, errors_1$m.assert)(Number.isInteger(size), 'The parameter size must be an integer');
199
199
  (0, errors_1$m.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -214,7 +214,7 @@ chunkAsync$1.chunkAsync = chunkAsync;
214
214
 
215
215
  var chunkByAsync$1 = {};
216
216
 
217
- var es2018$4 = {};
217
+ var es2018$3 = {};
218
218
 
219
219
  var array$1 = {};
220
220
 
@@ -411,10 +411,10 @@ function isntObject$1(val) {
411
411
  return !isObject$2(val);
412
412
  }
413
413
  object$1.isntObject = isntObject$1;
414
- function isRecord$1(val) {
414
+ function isRecord(val) {
415
415
  return isObject$2(val);
416
416
  }
417
- object$1.isRecord = isRecord$1;
417
+ object$1.isRecord = isRecord;
418
418
  function isEmptyObject$1(val) {
419
419
  return Object.keys(val).length === 0;
420
420
  }
@@ -476,7 +476,7 @@ function isJsonRpcSuccess$1(val) {
476
476
  return (0, object_1$1.isRecord)(val)
477
477
  && (0, string_1$2.isString)(val.jsonrpc)
478
478
  && (0, string_1$2.isString)(val.id)
479
- && (0, undefined_1$3.isntUndefined)(val.result);
479
+ && 'result' in val;
480
480
  }
481
481
  jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
482
482
  function isntJsonRpcSuccess$1(val) {
@@ -563,10 +563,10 @@ __exportStar(string$1, exports);
563
563
  __exportStar(_undefined$1, exports);
564
564
  __exportStar(url$1, exports);
565
565
 
566
- }(es2018$4));
566
+ }(es2018$3));
567
567
 
568
568
  chunkByAsync$1.chunkByAsync = void 0;
569
- const types_1$l = es2018$4;
569
+ const types_1$l = es2018$3;
570
570
  function chunkByAsync(iterable, predicate) {
571
571
  if ((0, types_1$l.isAsyncIterable)(iterable)) {
572
572
  return chunkByAsyncIterable(iterable);
@@ -627,8 +627,8 @@ chunkBy$1.chunkBy = chunkBy;
627
627
  var chunk$1 = {};
628
628
 
629
629
  chunk$1.chunk = void 0;
630
- const go_1$f = es2018$6;
631
- const errors_1$l = es2018$5;
630
+ const go_1$f = es2018$5;
631
+ const errors_1$l = es2018$4;
632
632
  function chunk(iterable, size) {
633
633
  (0, errors_1$l.assert)(Number.isInteger(size), 'The parameter size must be an integer');
634
634
  (0, errors_1$l.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -650,8 +650,8 @@ chunk$1.chunk = chunk;
650
650
  var concatAsync$1 = {};
651
651
 
652
652
  concatAsync$1.concatAsync = void 0;
653
- const types_1$k = es2018$4;
654
- const go_1$e = es2018$6;
653
+ const types_1$k = es2018$3;
654
+ const go_1$e = es2018$5;
655
655
  function concatAsync(iterable, ...otherIterables) {
656
656
  return (0, go_1$e.go)(async function* () {
657
657
  for (const iter of [iterable, ...otherIterables]) {
@@ -673,7 +673,7 @@ concatAsync$1.concatAsync = concatAsync;
673
673
  var concat$2 = {};
674
674
 
675
675
  concat$2.concat = void 0;
676
- const go_1$d = es2018$6;
676
+ const go_1$d = es2018$5;
677
677
  function concat$1(iterable, ...otherIterables) {
678
678
  return (0, go_1$d.go)(function* () {
679
679
  for (const iter of [iterable, ...otherIterables]) {
@@ -702,9 +702,9 @@ function* copyIterable(iterable) {
702
702
  utils.copyIterable = copyIterable;
703
703
 
704
704
  dropAsync$1.dropAsync = void 0;
705
- const go_1$c = es2018$6;
705
+ const go_1$c = es2018$5;
706
706
  const utils_1$3 = utils;
707
- const errors_1$k = es2018$5;
707
+ const errors_1$k = es2018$4;
708
708
  function dropAsync(iterable, count) {
709
709
  (0, errors_1$k.assert)(Number.isInteger(count), 'The parameter count must be an integer');
710
710
  (0, errors_1$k.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -737,9 +737,9 @@ dropAsync$1.dropAsync = dropAsync;
737
737
  var dropRightAsync$1 = {};
738
738
 
739
739
  dropRightAsync$1.dropRightAsync = void 0;
740
- const go_1$b = es2018$6;
740
+ const go_1$b = es2018$5;
741
741
  const utils_1$2 = utils;
742
- const errors_1$j = es2018$5;
742
+ const errors_1$j = es2018$4;
743
743
  function dropRightAsync(iterable, count) {
744
744
  (0, errors_1$j.assert)(Number.isInteger(count), 'The parameter count must be an integer');
745
745
  (0, errors_1$j.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -765,9 +765,9 @@ async function toArrayAsync$2(iterable) {
765
765
  var dropRight$1 = {};
766
766
 
767
767
  dropRight$1.dropRight = void 0;
768
- const go_1$a = es2018$6;
768
+ const go_1$a = es2018$5;
769
769
  const utils_1$1 = utils;
770
- const errors_1$i = es2018$5;
770
+ const errors_1$i = es2018$4;
771
771
  function dropRight(iterable, count) {
772
772
  (0, errors_1$i.assert)(Number.isInteger(count), 'The parameter count must be an integer');
773
773
  (0, errors_1$i.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -783,7 +783,7 @@ dropRight$1.dropRight = dropRight;
783
783
  var dropUntilAsync$1 = {};
784
784
 
785
785
  dropUntilAsync$1.dropUntilAsync = void 0;
786
- const types_1$j = es2018$4;
786
+ const types_1$j = es2018$3;
787
787
  function dropUntilAsync(iterable, predicate) {
788
788
  if ((0, types_1$j.isAsyncIterable)(iterable)) {
789
789
  return dropUntilAsyncIterable(iterable);
@@ -865,9 +865,9 @@ dropUntil$1.dropUntil = dropUntil;
865
865
  var drop$1 = {};
866
866
 
867
867
  drop$1.drop = void 0;
868
- const go_1$9 = es2018$6;
868
+ const go_1$9 = es2018$5;
869
869
  const utils_1 = utils;
870
- const errors_1$h = es2018$5;
870
+ const errors_1$h = es2018$4;
871
871
  function drop(iterable, count) {
872
872
  (0, errors_1$h.assert)(Number.isInteger(count), 'The parameter count must be an integer');
873
873
  (0, errors_1$h.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -900,7 +900,7 @@ drop$1.drop = drop;
900
900
  var filterAsync$1 = {};
901
901
 
902
902
  filterAsync$1.filterAsync = void 0;
903
- const types_1$i = es2018$4;
903
+ const types_1$i = es2018$3;
904
904
  function filterAsync(iterable, predicate) {
905
905
  if ((0, types_1$i.isAsyncIterable)(iterable)) {
906
906
  return filterAsyncIterable(iterable);
@@ -947,7 +947,7 @@ var flattenDeepAsync$1 = {};
947
947
  var flattenByAsync$1 = {};
948
948
 
949
949
  flattenByAsync$1.flattenByAsync = void 0;
950
- const types_1$h = es2018$4;
950
+ const types_1$h = es2018$3;
951
951
  function flattenByAsync(iterable, predicate) {
952
952
  if ((0, types_1$h.isAsyncIterable)(iterable)) {
953
953
  return flattenByAsyncIterable(iterable);
@@ -987,7 +987,7 @@ function isFiniteIterable$1(val) {
987
987
 
988
988
  flattenDeepAsync$1.flattenDeepAsync = void 0;
989
989
  const flatten_by_async_1 = flattenByAsync$1;
990
- const errors_1$g = es2018$5;
990
+ const errors_1$g = es2018$4;
991
991
  function flattenDeepAsync(iterable, depth = Infinity) {
992
992
  (0, errors_1$g.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
993
993
  (0, errors_1$g.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1005,7 +1005,7 @@ flattenAsync$1.flattenAsync = flattenAsync;
1005
1005
  var flattenBy$1 = {};
1006
1006
 
1007
1007
  flattenBy$1.flattenBy = void 0;
1008
- const types_1$g = es2018$4;
1008
+ const types_1$g = es2018$3;
1009
1009
  function flattenBy(iterable, predicate) {
1010
1010
  return flatten(iterable, 1);
1011
1011
  function* flatten(iterable, level) {
@@ -1028,7 +1028,7 @@ var flattenDeep$1 = {};
1028
1028
 
1029
1029
  flattenDeep$1.flattenDeep = void 0;
1030
1030
  const flatten_by_1 = flattenBy$1;
1031
- const errors_1$f = es2018$5;
1031
+ const errors_1$f = es2018$4;
1032
1032
  function flattenDeep(iterable, depth = Infinity) {
1033
1033
  (0, errors_1$f.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1034
1034
  (0, errors_1$f.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1048,7 +1048,7 @@ flatten$1.flatten = flatten;
1048
1048
  var mapAsync$1 = {};
1049
1049
 
1050
1050
  mapAsync$1.mapAsync = void 0;
1051
- const types_1$f = es2018$4;
1051
+ const types_1$f = es2018$3;
1052
1052
  function mapAsync(iterable, fn) {
1053
1053
  if ((0, types_1$f.isAsyncIterable)(iterable)) {
1054
1054
  return mapAsyncIterable(iterable);
@@ -1088,8 +1088,8 @@ map$1.map = map;
1088
1088
  var repeatAsync$1 = {};
1089
1089
 
1090
1090
  repeatAsync$1.repeatAsync = void 0;
1091
- const go_1$8 = es2018$6;
1092
- const errors_1$e = es2018$5;
1091
+ const go_1$8 = es2018$5;
1092
+ const errors_1$e = es2018$4;
1093
1093
  function repeatAsync(iterable, times) {
1094
1094
  (0, errors_1$e.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1095
1095
  (0, errors_1$e.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -1123,8 +1123,8 @@ function isProduction$1() {
1123
1123
  var repeat$4 = {};
1124
1124
 
1125
1125
  repeat$4.repeat = void 0;
1126
- const go_1$7 = es2018$6;
1127
- const errors_1$d = es2018$5;
1126
+ const go_1$7 = es2018$5;
1127
+ const errors_1$d = es2018$4;
1128
1128
  function repeat$3(iterable, times) {
1129
1129
  (0, errors_1$d.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1130
1130
  (0, errors_1$d.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -1158,8 +1158,8 @@ function isProduction() {
1158
1158
  var sliceAsync$1 = {};
1159
1159
 
1160
1160
  sliceAsync$1.sliceAsync = void 0;
1161
- const go_1$6 = es2018$6;
1162
- const errors_1$c = es2018$5;
1161
+ const go_1$6 = es2018$5;
1162
+ const errors_1$c = es2018$4;
1163
1163
  function sliceAsync(iterable, start, end = Infinity) {
1164
1164
  (0, errors_1$c.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1165
1165
  (0, errors_1$c.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -1181,8 +1181,8 @@ sliceAsync$1.sliceAsync = sliceAsync;
1181
1181
  var slice$1 = {};
1182
1182
 
1183
1183
  slice$1.slice = void 0;
1184
- const go_1$5 = es2018$6;
1185
- const errors_1$b = es2018$5;
1184
+ const go_1$5 = es2018$5;
1185
+ const errors_1$b = es2018$4;
1186
1186
  function slice(iterable, start, end = Infinity) {
1187
1187
  (0, errors_1$b.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1188
1188
  (0, errors_1$b.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -1222,7 +1222,7 @@ splitAsync$1.splitAsync = splitAsync;
1222
1222
  var splitByAsync$1 = {};
1223
1223
 
1224
1224
  splitByAsync$1.splitByAsync = void 0;
1225
- const types_1$e = es2018$4;
1225
+ const types_1$e = es2018$3;
1226
1226
  function splitByAsync(iterable, predicate) {
1227
1227
  if ((0, types_1$e.isAsyncIterable)(iterable)) {
1228
1228
  return splitByAsyncIterable(iterable);
@@ -1304,8 +1304,8 @@ split$1.split = split;
1304
1304
  var takeAsync$1 = {};
1305
1305
 
1306
1306
  takeAsync$1.takeAsync = void 0;
1307
- const go_1$4 = es2018$6;
1308
- const errors_1$a = es2018$5;
1307
+ const go_1$4 = es2018$5;
1308
+ const errors_1$a = es2018$4;
1309
1309
  function takeAsync(iterable, count) {
1310
1310
  (0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1311
1311
  (0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1325,8 +1325,8 @@ takeAsync$1.takeAsync = takeAsync;
1325
1325
  var takeRightAsync$1 = {};
1326
1326
 
1327
1327
  takeRightAsync$1.takeRightAsync = void 0;
1328
- const go_1$3 = es2018$6;
1329
- const errors_1$9 = es2018$5;
1328
+ const go_1$3 = es2018$5;
1329
+ const errors_1$9 = es2018$4;
1330
1330
  function takeRightAsync(iterable, count) {
1331
1331
  (0, errors_1$9.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1332
1332
  (0, errors_1$9.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1355,8 +1355,8 @@ takeRightAsync$1.takeRightAsync = takeRightAsync;
1355
1355
  var takeRight$1 = {};
1356
1356
 
1357
1357
  takeRight$1.takeRight = void 0;
1358
- const go_1$2 = es2018$6;
1359
- const errors_1$8 = es2018$5;
1358
+ const go_1$2 = es2018$5;
1359
+ const errors_1$8 = es2018$4;
1360
1360
  function takeRight(iterable, count) {
1361
1361
  (0, errors_1$8.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1362
1362
  (0, errors_1$8.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1385,7 +1385,7 @@ takeRight$1.takeRight = takeRight;
1385
1385
  var takeUntilAsync$1 = {};
1386
1386
 
1387
1387
  takeUntilAsync$1.takeUntilAsync = void 0;
1388
- const types_1$d = es2018$4;
1388
+ const types_1$d = es2018$3;
1389
1389
  function takeUntilAsync(iterable, predicate) {
1390
1390
  if ((0, types_1$d.isAsyncIterable)(iterable)) {
1391
1391
  return takeUntilAsyncIterable(iterable);
@@ -1431,8 +1431,8 @@ takeUntil$1.takeUntil = takeUntil;
1431
1431
  var take$1 = {};
1432
1432
 
1433
1433
  take$1.take = void 0;
1434
- const go_1$1 = es2018$6;
1435
- const errors_1$7 = es2018$5;
1434
+ const go_1$1 = es2018$5;
1435
+ const errors_1$7 = es2018$4;
1436
1436
  function take(iterable, count) {
1437
1437
  (0, errors_1$7.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1438
1438
  (0, errors_1$7.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1452,7 +1452,7 @@ take$1.take = take;
1452
1452
  var tapAsync$1 = {};
1453
1453
 
1454
1454
  tapAsync$1.tapAsync = void 0;
1455
- const types_1$c = es2018$4;
1455
+ const types_1$c = es2018$3;
1456
1456
  function tapAsync(iterable, fn) {
1457
1457
  if ((0, types_1$c.isAsyncIterable)(iterable)) {
1458
1458
  return tapAsyncIterable(iterable);
@@ -1535,7 +1535,7 @@ uniqAsync$1.uniqAsync = uniqAsync;
1535
1535
  var uniqByAsync$1 = {};
1536
1536
 
1537
1537
  uniqByAsync$1.uniqByAsync = void 0;
1538
- const types_1$b = es2018$4;
1538
+ const types_1$b = es2018$3;
1539
1539
  function uniqByAsync(iterable, fn) {
1540
1540
  if ((0, types_1$b.isAsyncIterable)(iterable)) {
1541
1541
  return uniqByAsyncIterable(iterable);
@@ -1604,7 +1604,7 @@ uniq$1.uniq = uniq;
1604
1604
  var zipAsync$1 = {};
1605
1605
 
1606
1606
  zipAsync$1.zipAsync = void 0;
1607
- const types_1$a = es2018$4;
1607
+ const types_1$a = es2018$3;
1608
1608
  var Kind;
1609
1609
  (function (Kind) {
1610
1610
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -1764,7 +1764,7 @@ consume$1.consume = consume;
1764
1764
  var eachAsync$1 = {};
1765
1765
 
1766
1766
  eachAsync$1.eachAsync = void 0;
1767
- const types_1$9 = es2018$4;
1767
+ const types_1$9 = es2018$3;
1768
1768
  function eachAsync(iterable, fn) {
1769
1769
  if ((0, types_1$9.isAsyncIterable)(iterable)) {
1770
1770
  return eachAsyncIterable(iterable);
@@ -1804,7 +1804,7 @@ each$1.each = each;
1804
1804
  var everyAsync$1 = {};
1805
1805
 
1806
1806
  everyAsync$1.everyAsync = void 0;
1807
- const types_1$8 = es2018$4;
1807
+ const types_1$8 = es2018$3;
1808
1808
  function everyAsync(iterable, predicate) {
1809
1809
  if ((0, types_1$8.isAsyncIterable)(iterable)) {
1810
1810
  return everyAsyncIterable(iterable);
@@ -1850,7 +1850,7 @@ every$1.every = every;
1850
1850
  var findAsync$1 = {};
1851
1851
 
1852
1852
  findAsync$1.findAsync = void 0;
1853
- const types_1$7 = es2018$4;
1853
+ const types_1$7 = es2018$3;
1854
1854
  function findAsync(iterable, predicate) {
1855
1855
  if ((0, types_1$7.isAsyncIterable)(iterable)) {
1856
1856
  return findAsyncIterable(iterable);
@@ -1974,7 +1974,7 @@ match$2.match = match$1;
1974
1974
  var reduceAsync$1 = {};
1975
1975
 
1976
1976
  reduceAsync$1.reduceAsync = void 0;
1977
- const types_1$6 = es2018$4;
1977
+ const types_1$6 = es2018$3;
1978
1978
  function reduceAsync(iterable, fn, initialValue) {
1979
1979
  if ((0, types_1$6.isUndefined)(initialValue)) {
1980
1980
  return reduceAsyncWithoutInitialValue(iterable, fn);
@@ -2070,7 +2070,7 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
2070
2070
  var reduce$1 = {};
2071
2071
 
2072
2072
  reduce$1.reduce = void 0;
2073
- const types_1$5 = es2018$4;
2073
+ const types_1$5 = es2018$3;
2074
2074
  function reduce(iterable, fn, initialValue) {
2075
2075
  if ((0, types_1$5.isUndefined)(initialValue)) {
2076
2076
  return reduceWithoutInitialValue(iterable, fn);
@@ -2117,7 +2117,7 @@ function reduceWithoutInitialValue(iterable, fn) {
2117
2117
  var someAsync$1 = {};
2118
2118
 
2119
2119
  someAsync$1.someAsync = void 0;
2120
- const types_1$4 = es2018$4;
2120
+ const types_1$4 = es2018$3;
2121
2121
  function someAsync(iterable, predicate) {
2122
2122
  if ((0, types_1$4.isAsyncIterable)(iterable)) {
2123
2123
  return someAsyncIterable(iterable);
@@ -2301,11 +2301,11 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
2301
2301
  };__exportStar(middleware, exports);
2302
2302
  __exportStar(output, exports);
2303
2303
 
2304
- }(es2018$7));
2304
+ }(es2018$6));
2305
2305
 
2306
2306
  unwrap$1.unwrap = void 0;
2307
2307
  const flat_map_1 = flatMap$1;
2308
- const iterable_operator_1$2 = es2018$7;
2308
+ const iterable_operator_1$2 = es2018$6;
2309
2309
  function unwrap(node, predicate) {
2310
2310
  return (0, flat_map_1.flatMap)(node, node => {
2311
2311
  if (predicate(node)) {
@@ -2335,7 +2335,7 @@ traverseDescendantNodes$1.traverseDescendantNodes = traverseDescendantNodes;
2335
2335
 
2336
2336
  findInDescendantNodes$1.findInDescendantNodes = void 0;
2337
2337
  const traverse_descendant_nodes_1 = traverseDescendantNodes$1;
2338
- const iterable_operator_1$1 = es2018$7;
2338
+ const iterable_operator_1$1 = es2018$6;
2339
2339
  function findInDescendantNodes(node, predicate) {
2340
2340
  return (0, iterable_operator_1$1.find)((0, traverse_descendant_nodes_1.traverseDescendantNodes)(node), node => predicate(node));
2341
2341
  }
@@ -2445,7 +2445,7 @@ const nodeExists = 'Node' in globalThis;
2445
2445
 
2446
2446
  }(nodeType));
2447
2447
 
2448
- var es2018$3 = {};
2448
+ var es2018$2 = {};
2449
2449
 
2450
2450
  var array = {};
2451
2451
 
@@ -2633,19 +2633,167 @@ var jsonRpc = {};
2633
2633
 
2634
2634
  var object = {};
2635
2635
 
2636
- object.isntEmptyObject = object.isEmptyObject = object.isRecord = object.isntObject = object.isObject = void 0;
2636
+ /**
2637
+ * lodash (Custom Build) <https://lodash.com/>
2638
+ * Build: `lodash modularize exports="npm" -o ./`
2639
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
2640
+ * Released under MIT license <https://lodash.com/license>
2641
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2642
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2643
+ */
2644
+
2645
+ /** `Object#toString` result references. */
2646
+ var objectTag = '[object Object]';
2647
+
2648
+ /**
2649
+ * Checks if `value` is a host object in IE < 9.
2650
+ *
2651
+ * @private
2652
+ * @param {*} value The value to check.
2653
+ * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
2654
+ */
2655
+ function isHostObject(value) {
2656
+ // Many host objects are `Object` objects that can coerce to strings
2657
+ // despite having improperly defined `toString` methods.
2658
+ var result = false;
2659
+ if (value != null && typeof value.toString != 'function') {
2660
+ try {
2661
+ result = !!(value + '');
2662
+ } catch (e) {}
2663
+ }
2664
+ return result;
2665
+ }
2666
+
2667
+ /**
2668
+ * Creates a unary function that invokes `func` with its argument transformed.
2669
+ *
2670
+ * @private
2671
+ * @param {Function} func The function to wrap.
2672
+ * @param {Function} transform The argument transform.
2673
+ * @returns {Function} Returns the new function.
2674
+ */
2675
+ function overArg(func, transform) {
2676
+ return function(arg) {
2677
+ return func(transform(arg));
2678
+ };
2679
+ }
2680
+
2681
+ /** Used for built-in method references. */
2682
+ var funcProto = Function.prototype,
2683
+ objectProto$1 = Object.prototype;
2684
+
2685
+ /** Used to resolve the decompiled source of functions. */
2686
+ var funcToString = funcProto.toString;
2687
+
2688
+ /** Used to check objects for own properties. */
2689
+ var hasOwnProperty = objectProto$1.hasOwnProperty;
2690
+
2691
+ /** Used to infer the `Object` constructor. */
2692
+ var objectCtorString = funcToString.call(Object);
2693
+
2694
+ /**
2695
+ * Used to resolve the
2696
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
2697
+ * of values.
2698
+ */
2699
+ var objectToString$1 = objectProto$1.toString;
2700
+
2701
+ /** Built-in value references. */
2702
+ var getPrototype = overArg(Object.getPrototypeOf, Object);
2703
+
2704
+ /**
2705
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
2706
+ * and has a `typeof` result of "object".
2707
+ *
2708
+ * @static
2709
+ * @memberOf _
2710
+ * @since 4.0.0
2711
+ * @category Lang
2712
+ * @param {*} value The value to check.
2713
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2714
+ * @example
2715
+ *
2716
+ * _.isObjectLike({});
2717
+ * // => true
2718
+ *
2719
+ * _.isObjectLike([1, 2, 3]);
2720
+ * // => true
2721
+ *
2722
+ * _.isObjectLike(_.noop);
2723
+ * // => false
2724
+ *
2725
+ * _.isObjectLike(null);
2726
+ * // => false
2727
+ */
2728
+ function isObjectLike$1(value) {
2729
+ return !!value && typeof value == 'object';
2730
+ }
2731
+
2732
+ /**
2733
+ * Checks if `value` is a plain object, that is, an object created by the
2734
+ * `Object` constructor or one with a `[[Prototype]]` of `null`.
2735
+ *
2736
+ * @static
2737
+ * @memberOf _
2738
+ * @since 0.8.0
2739
+ * @category Lang
2740
+ * @param {*} value The value to check.
2741
+ * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
2742
+ * @example
2743
+ *
2744
+ * function Foo() {
2745
+ * this.a = 1;
2746
+ * }
2747
+ *
2748
+ * _.isPlainObject(new Foo);
2749
+ * // => false
2750
+ *
2751
+ * _.isPlainObject([1, 2, 3]);
2752
+ * // => false
2753
+ *
2754
+ * _.isPlainObject({ 'x': 0, 'y': 0 });
2755
+ * // => true
2756
+ *
2757
+ * _.isPlainObject(Object.create(null));
2758
+ * // => true
2759
+ */
2760
+ function isPlainObject$1(value) {
2761
+ if (!isObjectLike$1(value) ||
2762
+ objectToString$1.call(value) != objectTag || isHostObject(value)) {
2763
+ return false;
2764
+ }
2765
+ var proto = getPrototype(value);
2766
+ if (proto === null) {
2767
+ return true;
2768
+ }
2769
+ var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
2770
+ return (typeof Ctor == 'function' &&
2771
+ Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
2772
+ }
2773
+
2774
+ var lodash_isplainobject = isPlainObject$1;
2775
+
2776
+ var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
2777
+ return (mod && mod.__esModule) ? mod : { "default": mod };
2778
+ };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
2779
+ const lodash_isplainobject_1 = __importDefault$1(lodash_isplainobject);
2637
2780
  function isObject$1(val) {
2638
- return val !== null && typeof val === 'object';
2781
+ return val !== null
2782
+ && typeof val === 'object';
2639
2783
  }
2640
2784
  object.isObject = isObject$1;
2641
2785
  function isntObject(val) {
2642
2786
  return !isObject$1(val);
2643
2787
  }
2644
2788
  object.isntObject = isntObject;
2645
- function isRecord(val) {
2646
- return isObject$1(val);
2789
+ function isPlainObject(val) {
2790
+ return (0, lodash_isplainobject_1.default)(val);
2647
2791
  }
2648
- object.isRecord = isRecord;
2792
+ object.isPlainObject = isPlainObject;
2793
+ function isntPlainObject(val) {
2794
+ return !isPlainObject(val);
2795
+ }
2796
+ object.isntPlainObject = isntPlainObject;
2649
2797
  function isEmptyObject(val) {
2650
2798
  return Object.keys(val).length === 0;
2651
2799
  }
@@ -2680,7 +2828,7 @@ function isJsonRpcParams(val) {
2680
2828
  return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
2681
2829
  }
2682
2830
  function isJsonRpcNotification(val) {
2683
- return (0, object_1.isRecord)(val)
2831
+ return (0, object_1.isPlainObject)(val)
2684
2832
  && (0, string_1.isString)(val.jsonrpc)
2685
2833
  && (0, string_1.isString)(val.method)
2686
2834
  && (0, undefined_1.isUndefined)(val.id)
@@ -2692,7 +2840,7 @@ function isntJsonRpcNotification(val) {
2692
2840
  }
2693
2841
  jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
2694
2842
  function isJsonRpcRequest(val) {
2695
- return (0, object_1.isRecord)(val)
2843
+ return (0, object_1.isPlainObject)(val)
2696
2844
  && (0, string_1.isString)(val.jsonrpc)
2697
2845
  && (0, string_1.isString)(val.method)
2698
2846
  && isJsonRpcId(val.id)
@@ -2704,7 +2852,7 @@ function isntJsonRpcRequest(val) {
2704
2852
  }
2705
2853
  jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
2706
2854
  function isJsonRpcSuccess(val) {
2707
- return (0, object_1.isRecord)(val)
2855
+ return (0, object_1.isPlainObject)(val)
2708
2856
  && (0, string_1.isString)(val.jsonrpc)
2709
2857
  && (0, string_1.isString)(val.id)
2710
2858
  && 'result' in val;
@@ -2715,7 +2863,7 @@ function isntJsonRpcSuccess(val) {
2715
2863
  }
2716
2864
  jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
2717
2865
  function isJsonRpcError(val) {
2718
- return (0, object_1.isRecord)(val)
2866
+ return (0, object_1.isPlainObject)(val)
2719
2867
  && (0, string_1.isString)(val.jsonrpc)
2720
2868
  && isJsonRpcId(val.id)
2721
2869
  && isJsonRpcErrorObject(val.error);
@@ -2726,7 +2874,7 @@ function isntJsonRpcError(val) {
2726
2874
  }
2727
2875
  jsonRpc.isntJsonRpcError = isntJsonRpcError;
2728
2876
  function isJsonRpcErrorObject(val) {
2729
- return (0, object_1.isRecord)(val)
2877
+ return (0, object_1.isPlainObject)(val)
2730
2878
  && (0, number_1.isNumber)(val.code)
2731
2879
  && (0, string_1.isString)(val.message)
2732
2880
  && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
@@ -2794,15 +2942,16 @@ __exportStar(string, exports);
2794
2942
  __exportStar(_undefined, exports);
2795
2943
  __exportStar(url, exports);
2796
2944
 
2797
- }(es2018$3));
2945
+ }(es2018$2));
2798
2946
 
2799
2947
  isDocument$1.isDocument = void 0;
2800
2948
  const node_type_1$2 = nodeType;
2801
- const types_1$3 = es2018$3;
2949
+ const types_1$3 = es2018$2;
2802
2950
  function isDocument(val) {
2803
2951
  if ('HTMLDocument' in globalThis && val instanceof HTMLDocument)
2804
2952
  return true;
2805
- return (0, types_1$3.isRecord)(val) && val.nodeType === node_type_1$2.NodeType.DOCUMENT_NODE;
2953
+ return (0, types_1$3.isObject)(val)
2954
+ && val.nodeType === node_type_1$2.NodeType.DOCUMENT_NODE;
2806
2955
  }
2807
2956
  isDocument$1.isDocument = isDocument;
2808
2957
 
@@ -2810,11 +2959,12 @@ var isElement$1 = {};
2810
2959
 
2811
2960
  isElement$1.isElement = void 0;
2812
2961
  const node_type_1$1 = nodeType;
2813
- const types_1$2 = es2018$3;
2962
+ const types_1$2 = es2018$2;
2814
2963
  function isElement(val) {
2815
2964
  if ('HTMLElement' in globalThis && val instanceof HTMLElement)
2816
2965
  return true;
2817
- return (0, types_1$2.isRecord)(val) && val.nodeType === node_type_1$1.NodeType.ELEMENT_NODE;
2966
+ return (0, types_1$2.isObject)(val)
2967
+ && val.nodeType === node_type_1$1.NodeType.ELEMENT_NODE;
2818
2968
  }
2819
2969
  isElement$1.isElement = isElement;
2820
2970
 
@@ -2870,7 +3020,7 @@ var findInAncestorNodes$1 = {};
2870
3020
 
2871
3021
  findInAncestorNodes$1.findInAncestorNodes = void 0;
2872
3022
  const traverse_ancestor_nodes_1 = traverseAncestorNodes$1;
2873
- const iterable_operator_1 = es2018$7;
3023
+ const iterable_operator_1 = es2018$6;
2874
3024
  function findInAncestorNodes(node, predicate) {
2875
3025
  return (0, iterable_operator_1.find)((0, traverse_ancestor_nodes_1.traverseAncestorNodes)(node), node => predicate(node));
2876
3026
  }
@@ -2911,7 +3061,7 @@ findInPrecedingSiblingNodes$1.findInPrecedingSiblingNodes = findInPrecedingSibli
2911
3061
  var parentNode$1 = {};
2912
3062
 
2913
3063
  parentNode$1.parentNode = void 0;
2914
- const errors_1$6 = es2018$5;
3064
+ const errors_1$6 = es2018$4;
2915
3065
  function parentNode(node, distance = 1) {
2916
3066
  (0, errors_1$6.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2917
3067
  (0, errors_1$6.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2933,7 +3083,7 @@ function _parentNode(node, distance) {
2933
3083
  var nextSibling$2 = {};
2934
3084
 
2935
3085
  nextSibling$2.nextSibling = void 0;
2936
- const errors_1$5 = es2018$5;
3086
+ const errors_1$5 = es2018$4;
2937
3087
  function nextSibling$1(node, distance = 1) {
2938
3088
  (0, errors_1$5.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2939
3089
  (0, errors_1$5.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2955,7 +3105,7 @@ function _nextSibling(node, distance) {
2955
3105
  var previousSibling$1 = {};
2956
3106
 
2957
3107
  previousSibling$1.previousSibling = void 0;
2958
- const errors_1$4 = es2018$5;
3108
+ const errors_1$4 = es2018$4;
2959
3109
  function previousSibling(node, distance = 1) {
2960
3110
  (0, errors_1$4.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2961
3111
  (0, errors_1$4.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2978,7 +3128,7 @@ var nextElementSibling$2 = {};
2978
3128
 
2979
3129
  nextElementSibling$2.nextElementSibling = void 0;
2980
3130
  const is_element_1$2 = isElement$1;
2981
- const errors_1$3 = es2018$5;
3131
+ const errors_1$3 = es2018$4;
2982
3132
  function nextElementSibling$1(node, distance = 1) {
2983
3133
  (0, errors_1$3.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2984
3134
  (0, errors_1$3.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -3006,7 +3156,7 @@ var previousElementSibling$1 = {};
3006
3156
 
3007
3157
  previousElementSibling$1.previousElementSibling = void 0;
3008
3158
  const is_element_1$1 = isElement$1;
3009
- const errors_1$2 = es2018$5;
3159
+ const errors_1$2 = es2018$4;
3010
3160
  function previousElementSibling(node, distance = 1) {
3011
3161
  (0, errors_1$2.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
3012
3162
  (0, errors_1$2.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -3051,7 +3201,7 @@ isntElement$1.isntElement = isntElement;
3051
3201
  var isNode$1 = {};
3052
3202
 
3053
3203
  isNode$1.isNode = void 0;
3054
- const types_1$1 = es2018$3;
3204
+ const types_1$1 = es2018$2;
3055
3205
  function isNode(val) {
3056
3206
  if ('Node' in globalThis && val instanceof Node)
3057
3207
  return true;
@@ -3072,11 +3222,12 @@ var isTextNode$1 = {};
3072
3222
 
3073
3223
  isTextNode$1.isTextNode = void 0;
3074
3224
  const node_type_1 = nodeType;
3075
- const types_1 = es2018$3;
3225
+ const types_1 = es2018$2;
3076
3226
  function isTextNode(val) {
3077
3227
  if ('Text' in globalThis && val instanceof Text)
3078
3228
  return true;
3079
- return (0, types_1.isRecord)(val) && val.nodeType === node_type_1.NodeType.TEXT_NODE;
3229
+ return (0, types_1.isObject)(val)
3230
+ && val.nodeType === node_type_1.NodeType.TEXT_NODE;
3080
3231
  }
3081
3232
  isTextNode$1.isTextNode = isTextNode;
3082
3233
 
@@ -3238,7 +3389,7 @@ __exportStar(replaceBrWithNewline$1, exports);
3238
3389
  __exportStar(isBefore$1, exports);
3239
3390
  __exportStar(isAfter$1, exports);
3240
3391
 
3241
- }(es2018$8));
3392
+ }(es2018$7));
3242
3393
 
3243
3394
  function matchOneByOne(context, source, ...matchers) {
3244
3395
  if (matchers.length === 0)
@@ -3280,11 +3431,11 @@ function matchOneByOne(context, source, ...matchers) {
3280
3431
  function nextSibling(node, distance = 1) {
3281
3432
  if (distance === 0)
3282
3433
  return node;
3283
- return es2018$8.nextSibling(node, distance);
3434
+ return es2018$7.nextSibling(node, distance);
3284
3435
  }
3285
3436
 
3286
3437
  function match(node, ...matchers) {
3287
- const document = es2018$8.isDocument(this) ? this : globalThis.document;
3438
+ const document = es2018$7.isDocument(this) ? this : globalThis.document;
3288
3439
  const context = {
3289
3440
  document,
3290
3441
  collection: {},
@@ -3301,11 +3452,11 @@ function match(node, ...matchers) {
3301
3452
  function nextElementSibling(node, distance = 1) {
3302
3453
  if (distance === 0)
3303
3454
  return node;
3304
- return es2018$8.nextElementSibling(node, distance);
3455
+ return es2018$7.nextElementSibling(node, distance);
3305
3456
  }
3306
3457
 
3307
3458
  function matchElement(element, ...matchers) {
3308
- const document = es2018$8.isDocument(this) ? this : globalThis.document;
3459
+ const document = es2018$7.isDocument(this) ? this : globalThis.document;
3309
3460
  const context = {
3310
3461
  document,
3311
3462
  collection: {},
@@ -3325,7 +3476,7 @@ function anyOf(...matchers) {
3325
3476
  };
3326
3477
  }
3327
3478
 
3328
- function merge(target, source) {
3479
+ function mergeInPlace(target, source) {
3329
3480
  for (const [key, value] of Object.entries(source)) {
3330
3481
  if (target[key]) {
3331
3482
  if (es2018$3.isArray(target[key])) {
@@ -3362,7 +3513,7 @@ function childNodes(...matchers) {
3362
3513
  const context = Object.assign(Object.assign({}, this), { collection: {}, next: nextSibling });
3363
3514
  const result = matchOneByOne(context, node.childNodes[0], ...matchers);
3364
3515
  if (result) {
3365
- merge(this.collection, context.collection);
3516
+ mergeInPlace(this.collection, context.collection);
3366
3517
  }
3367
3518
  return result;
3368
3519
  };
@@ -3379,7 +3530,7 @@ function children(...matchers) {
3379
3530
  const context = Object.assign(Object.assign({}, this), { collection: {}, next: nextElementSibling });
3380
3531
  const result = matchOneByOne(context, element.children[0], ...matchers);
3381
3532
  if (result) {
3382
- merge(this.collection, context.collection);
3533
+ mergeInPlace(this.collection, context.collection);
3383
3534
  }
3384
3535
  return result;
3385
3536
  };
@@ -3418,14 +3569,14 @@ function element(...args) {
3418
3569
  return function (_element) {
3419
3570
  const result = element(...matchers).call(this, _element);
3420
3571
  if (result) {
3421
- merge(this.collection, { [name]: _element });
3572
+ mergeInPlace(this.collection, { [name]: _element });
3422
3573
  }
3423
3574
  return result;
3424
3575
  };
3425
3576
  }
3426
3577
  const [...matchers] = args;
3427
3578
  return function (element) {
3428
- if (es2018$8.isntElement(element))
3579
+ if (es2018$7.isntElement(element))
3429
3580
  return false;
3430
3581
  if (matchers.length === 0)
3431
3582
  return true;
@@ -3433,7 +3584,7 @@ function element(...args) {
3433
3584
  };
3434
3585
  }
3435
3586
 
3436
- var es2018$2 = {};
3587
+ var es2018$1 = {};
3437
3588
 
3438
3589
  var of$1 = {};
3439
3590
 
@@ -3445,33 +3596,9 @@ of$1.of = of;
3445
3596
 
3446
3597
  var repeat$2 = {};
3447
3598
 
3448
- var es2018$1 = {};
3449
-
3450
- var go$1 = {};
3451
-
3452
- go$1.go = void 0;
3453
- function go(fn) {
3454
- return fn();
3455
- }
3456
- go$1.go = go;
3457
-
3458
- (function (exports) {
3459
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3460
- if (k2 === undefined) k2 = k;
3461
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3462
- }) : (function(o, m, k, k2) {
3463
- if (k2 === undefined) k2 = k;
3464
- o[k2] = m[k];
3465
- }));
3466
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3467
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3468
- };__exportStar(go$1, exports);
3469
-
3470
- }(es2018$1));
3471
-
3472
3599
  repeat$2.repeat = void 0;
3473
- const errors_1$1 = es2018$5;
3474
- const go_1 = es2018$1;
3600
+ const errors_1$1 = es2018$4;
3601
+ const go_1 = es2018$5;
3475
3602
  function repeat$1(val, times = Infinity) {
3476
3603
  (0, errors_1$1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
3477
3604
  return (0, go_1.go)(function* () {
@@ -3509,7 +3636,7 @@ countup$1.countup = countup;
3509
3636
  var range$1 = {};
3510
3637
 
3511
3638
  range$1.range = void 0;
3512
- const errors_1 = es2018$5;
3639
+ const errors_1 = es2018$4;
3513
3640
  function range(start, end, step = 1) {
3514
3641
  (0, errors_1.assert)(step > 0, 'step parameter must be greater than 0');
3515
3642
  return rangeByUnsignedStep(start, end, step);
@@ -4113,14 +4240,14 @@ __exportStar(reusableIterable, exports);
4113
4240
  __exportStar(reusableAsyncIterable, exports);
4114
4241
  __exportStar(timestampBasedId$1, exports);
4115
4242
 
4116
- }(es2018$2));
4243
+ }(es2018$1));
4117
4244
 
4118
4245
  /**
4119
4246
  * @returns {number} 返回值为成功匹配的元素个数, 当此值等于ubound时, 代表匹配成功.
4120
4247
  */
4121
4248
  function matchMultiple(node, ubound, matcher) {
4122
4249
  let currentNode = node;
4123
- for (const round of es2018$2.countup(1, ubound)) {
4250
+ for (const round of es2018$1.countup(1, ubound)) {
4124
4251
  if (!currentNode)
4125
4252
  return round - 1;
4126
4253
  const result = matcher.call(this, currentNode);
@@ -4140,10 +4267,10 @@ var Range;
4140
4267
  Range[Range["Max"] = 1] = "Max";
4141
4268
  })(Range || (Range = {}));
4142
4269
  function multiple([min, max], matcher, options = { greedy: true }) {
4143
- es2018$5.assert(Number.isInteger(min), 'parameter min must be an integer');
4144
- es2018$5.assert(Number.isInteger(max) || max === Infinity, 'parameter max must be an integer or Infinity');
4145
- es2018$5.assert(min >= 0, 'parameter min must be greater than or equal to 0');
4146
- es2018$5.assert(min <= max, 'parameter max must be greater than or equal to min');
4270
+ es2018$4.assert(Number.isInteger(min), 'parameter min must be an integer');
4271
+ es2018$4.assert(Number.isInteger(max) || max === Infinity, 'parameter max must be an integer or Infinity');
4272
+ es2018$4.assert(min >= 0, 'parameter min must be greater than or equal to 0');
4273
+ es2018$4.assert(min <= max, 'parameter max must be greater than or equal to min');
4147
4274
  return function* (node) {
4148
4275
  if (options.greedy) {
4149
4276
  let ubound = max;
@@ -4158,7 +4285,7 @@ function multiple([min, max], matcher, options = { greedy: true }) {
4158
4285
  }
4159
4286
  }
4160
4287
  else {
4161
- for (const ubound of es2018$2.countup(min, max)) {
4288
+ for (const ubound of es2018$1.countup(min, max)) {
4162
4289
  const result = matchMultiple.call(this, node, ubound, matcher);
4163
4290
  // 如果匹配的节点数量少于ubound, 说明匹配失败, 即使尝试更长的匹配也不会成功.
4164
4291
  if (result < ubound)
@@ -4181,7 +4308,7 @@ function node(...args) {
4181
4308
  return function (_node) {
4182
4309
  const result = node(...matchers).call(this, _node);
4183
4310
  if (result) {
4184
- merge(this.collection, { [name]: _node });
4311
+ mergeInPlace(this.collection, { [name]: _node });
4185
4312
  }
4186
4313
  return result;
4187
4314
  };
@@ -4199,8 +4326,8 @@ function optional(matcher) {
4199
4326
  }
4200
4327
 
4201
4328
  function repeat(times, matcher) {
4202
- es2018$5.assert(Number.isInteger(times), 'parameter times must be an integer');
4203
- es2018$5.assert(times >= 0, 'parameter number must be greater than or equal to 0');
4329
+ es2018$4.assert(Number.isInteger(times), 'parameter times must be an integer');
4330
+ es2018$4.assert(times >= 0, 'parameter number must be greater than or equal to 0');
4204
4331
  return function (node) {
4205
4332
  const result = matchMultiple.call(this, node, times, matcher);
4206
4333
  if (result === times) {
@@ -4272,14 +4399,14 @@ function textNode(...args) {
4272
4399
  return function (node) {
4273
4400
  const result = textNode(...matchers).call(this, node);
4274
4401
  if (result) {
4275
- merge(this.collection, { [name]: node });
4402
+ mergeInPlace(this.collection, { [name]: node });
4276
4403
  }
4277
4404
  return result;
4278
4405
  };
4279
4406
  }
4280
4407
  const [...matchers] = args;
4281
4408
  return function (node) {
4282
- if (es2018$8.isntTextNode(node))
4409
+ if (es2018$7.isntTextNode(node))
4283
4410
  return false;
4284
4411
  if (matchers.length === 0)
4285
4412
  return true;
@@ -4293,7 +4420,7 @@ const UNORDERED_NODE_ITERATOR_TYPE = 'XPathResult' in globalThis
4293
4420
  function xpath(...args) {
4294
4421
  if (es2018$3.isString(args[0])) {
4295
4422
  const [expression] = args;
4296
- es2018$5.assert(expression.startsWith('//*'), 'XPath expressions must start with "//*"');
4423
+ es2018$4.assert(expression.startsWith('//*'), 'XPath expressions must start with "//*"');
4297
4424
  return function (node) {
4298
4425
  return xpathMatches(this.document, expression, node);
4299
4426
  };