@blackglory/match 0.3.3 → 0.3.4

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.
@@ -6,7 +6,7 @@
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
9
- var es2018$6 = {};
9
+ var es2018$8 = {};
10
10
 
11
11
  var flatMap$1 = {};
12
12
 
@@ -87,21 +87,21 @@
87
87
 
88
88
  var unwrap$1 = {};
89
89
 
90
- var es2018$5 = {};
90
+ var es2018$7 = {};
91
91
 
92
92
  var middleware = {};
93
93
 
94
94
  var chunkAsync$1 = {};
95
95
 
96
- var es2018$4 = {};
96
+ var es2018$6 = {};
97
97
 
98
- var go$1 = {};
98
+ var go$3 = {};
99
99
 
100
- go$1.go = void 0;
101
- function go(fn) {
100
+ go$3.go = void 0;
101
+ function go$2(fn) {
102
102
  return fn();
103
103
  }
104
- go$1.go = go;
104
+ go$3.go = go$2;
105
105
 
106
106
  (function (exports) {
107
107
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -113,11 +113,11 @@
113
113
  }));
114
114
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
115
115
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
116
- };__exportStar(go$1, exports);
116
+ };__exportStar(go$3, exports);
117
117
 
118
- }(es2018$4));
118
+ }(es2018$6));
119
119
 
120
- var es2018$3 = {};
120
+ var es2018$5 = {};
121
121
 
122
122
  var customError = {};
123
123
 
@@ -195,15 +195,15 @@
195
195
  __exportStar(refute$1, exports);
196
196
  __exportStar(assert$1, exports);
197
197
 
198
- }(es2018$3));
198
+ }(es2018$5));
199
199
 
200
200
  chunkAsync$1.chunkAsync = void 0;
201
- const go_1$f = es2018$4;
202
- const errors_1$m = es2018$3;
201
+ const go_1$g = es2018$6;
202
+ const errors_1$m = es2018$5;
203
203
  function chunkAsync(iterable, size) {
204
204
  (0, errors_1$m.assert)(Number.isInteger(size), 'The parameter size must be an integer');
205
205
  (0, errors_1$m.assert)(size > 0, 'The parameter size must be greater than 0');
206
- return (0, go_1$f.go)(async function* () {
206
+ return (0, go_1$g.go)(async function* () {
207
207
  let buffer = [];
208
208
  for await (const element of iterable) {
209
209
  buffer.push(element);
@@ -220,297 +220,297 @@
220
220
 
221
221
  var chunkByAsync$1 = {};
222
222
 
223
- var es2018$2 = {};
223
+ var es2018$4 = {};
224
224
 
225
- var array = {};
225
+ var array$1 = {};
226
226
 
227
- array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
228
- function isArray(val) {
227
+ array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
228
+ function isArray$1(val) {
229
229
  return Array.isArray(val);
230
230
  }
231
- array.isArray = isArray;
232
- function isntArray(val) {
233
- return !isArray(val);
231
+ array$1.isArray = isArray$1;
232
+ function isntArray$1(val) {
233
+ return !isArray$1(val);
234
234
  }
235
- array.isntArray = isntArray;
236
- function isEmptyArray(val) {
235
+ array$1.isntArray = isntArray$1;
236
+ function isEmptyArray$1(val) {
237
237
  return val.length === 0;
238
238
  }
239
- array.isEmptyArray = isEmptyArray;
240
- function isntEmptyArray(val) {
239
+ array$1.isEmptyArray = isEmptyArray$1;
240
+ function isntEmptyArray$1(val) {
241
241
  return val.length !== 0;
242
242
  }
243
- array.isntEmptyArray = isntEmptyArray;
243
+ array$1.isntEmptyArray = isntEmptyArray$1;
244
244
 
245
- var asyncIterable = {};
245
+ var asyncIterable$1 = {};
246
246
 
247
- var _null = {};
247
+ var _null$1 = {};
248
248
 
249
- _null.isntNull = _null.isNull = void 0;
250
- function isNull(val) {
249
+ _null$1.isntNull = _null$1.isNull = void 0;
250
+ function isNull$1(val) {
251
251
  return val === null;
252
252
  }
253
- _null.isNull = isNull;
254
- function isntNull(val) {
255
- return !isNull(val);
253
+ _null$1.isNull = isNull$1;
254
+ function isntNull$1(val) {
255
+ return !isNull$1(val);
256
256
  }
257
- _null.isntNull = isntNull;
257
+ _null$1.isntNull = isntNull$1;
258
258
 
259
- var _undefined = {};
259
+ var _undefined$1 = {};
260
260
 
261
- _undefined.isntUndefined = _undefined.isUndefined = void 0;
262
- function isUndefined(val) {
261
+ _undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
262
+ function isUndefined$1(val) {
263
263
  return val === undefined;
264
264
  }
265
- _undefined.isUndefined = isUndefined;
266
- function isntUndefined(val) {
267
- return !isUndefined(val);
265
+ _undefined$1.isUndefined = isUndefined$1;
266
+ function isntUndefined$1(val) {
267
+ return !isUndefined$1(val);
268
268
  }
269
- _undefined.isntUndefined = isntUndefined;
269
+ _undefined$1.isntUndefined = isntUndefined$1;
270
270
 
271
- asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
272
- const null_1$1 = _null;
273
- const undefined_1$2 = _undefined;
274
- function isAsyncIterable(val) {
275
- return (0, null_1$1.isntNull)(val)
276
- && (0, undefined_1$2.isntUndefined)(val)
271
+ asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
272
+ const null_1$3 = _null$1;
273
+ const undefined_1$5 = _undefined$1;
274
+ function isAsyncIterable$1(val) {
275
+ return (0, null_1$3.isntNull)(val)
276
+ && (0, undefined_1$5.isntUndefined)(val)
277
277
  && typeof val[Symbol.asyncIterator] === 'function';
278
278
  }
279
- asyncIterable.isAsyncIterable = isAsyncIterable;
280
- function isntAsyncIterable(val) {
281
- return !isAsyncIterable(val);
279
+ asyncIterable$1.isAsyncIterable = isAsyncIterable$1;
280
+ function isntAsyncIterable$1(val) {
281
+ return !isAsyncIterable$1(val);
282
282
  }
283
- asyncIterable.isntAsyncIterable = isntAsyncIterable;
283
+ asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
284
284
 
285
- var bigint = {};
285
+ var bigint$1 = {};
286
286
 
287
- bigint.isntBigInt = bigint.isBigInt = void 0;
288
- function isBigInt(val) {
287
+ bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
288
+ function isBigInt$1(val) {
289
289
  return typeof val === 'bigint';
290
290
  }
291
- bigint.isBigInt = isBigInt;
292
- function isntBigInt(val) {
293
- return !isBigInt(val);
291
+ bigint$1.isBigInt = isBigInt$1;
292
+ function isntBigInt$1(val) {
293
+ return !isBigInt$1(val);
294
294
  }
295
- bigint.isntBigInt = isntBigInt;
295
+ bigint$1.isntBigInt = isntBigInt$1;
296
296
 
297
- var boolean = {};
297
+ var boolean$1 = {};
298
298
 
299
- boolean.isntBoolean = boolean.isBoolean = void 0;
300
- function isBoolean(val) {
299
+ boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
300
+ function isBoolean$1(val) {
301
301
  return typeof val === 'boolean';
302
302
  }
303
- boolean.isBoolean = isBoolean;
304
- function isntBoolean(val) {
305
- return !isBoolean(val);
303
+ boolean$1.isBoolean = isBoolean$1;
304
+ function isntBoolean$1(val) {
305
+ return !isBoolean$1(val);
306
306
  }
307
- boolean.isntBoolean = isntBoolean;
307
+ boolean$1.isntBoolean = isntBoolean$1;
308
308
 
309
- var char = {};
309
+ var char$1 = {};
310
310
 
311
- var string = {};
311
+ var string$1 = {};
312
312
 
313
- string.isntString = string.isString = void 0;
314
- function isString(val) {
313
+ string$1.isntString = string$1.isString = void 0;
314
+ function isString$1(val) {
315
315
  return typeof val === 'string';
316
316
  }
317
- string.isString = isString;
318
- function isntString(val) {
319
- return !isString(val);
317
+ string$1.isString = isString$1;
318
+ function isntString$1(val) {
319
+ return !isString$1(val);
320
320
  }
321
- string.isntString = isntString;
321
+ string$1.isntString = isntString$1;
322
322
 
323
- char.isntChar = char.isChar = void 0;
324
- const string_1$1 = string;
325
- function isChar(val) {
326
- return (0, string_1$1.isString)(val)
323
+ char$1.isntChar = char$1.isChar = void 0;
324
+ const string_1$3 = string$1;
325
+ function isChar$1(val) {
326
+ return (0, string_1$3.isString)(val)
327
327
  && val.length === 1;
328
328
  }
329
- char.isChar = isChar;
330
- function isntChar(val) {
331
- return !isChar(val);
329
+ char$1.isChar = isChar$1;
330
+ function isntChar$1(val) {
331
+ return !isChar$1(val);
332
332
  }
333
- char.isntChar = isntChar;
333
+ char$1.isntChar = isntChar$1;
334
334
 
335
- var date = {};
335
+ var date$1 = {};
336
336
 
337
- date.isntDate = date.isDate = void 0;
338
- function isDate(val) {
337
+ date$1.isntDate = date$1.isDate = void 0;
338
+ function isDate$1(val) {
339
339
  return val instanceof Date;
340
340
  }
341
- date.isDate = isDate;
342
- function isntDate(val) {
343
- return !isDate(val);
341
+ date$1.isDate = isDate$1;
342
+ function isntDate$1(val) {
343
+ return !isDate$1(val);
344
344
  }
345
- date.isntDate = isntDate;
345
+ date$1.isntDate = isntDate$1;
346
346
 
347
- var _enum = {};
347
+ var _enum$1 = {};
348
348
 
349
- _enum.inEnum = void 0;
350
- function inEnum(val, _enum) {
349
+ _enum$1.inEnum = void 0;
350
+ function inEnum$1(val, _enum) {
351
351
  return Object.values(_enum).includes(val);
352
352
  }
353
- _enum.inEnum = inEnum;
353
+ _enum$1.inEnum = inEnum$1;
354
354
 
355
- var error = {};
355
+ var error$1 = {};
356
356
 
357
- error.isntError = error.isError = void 0;
358
- function isError(val) {
357
+ error$1.isntError = error$1.isError = void 0;
358
+ function isError$1(val) {
359
359
  return val instanceof Error;
360
360
  }
361
- error.isError = isError;
362
- function isntError(val) {
363
- return !isError(val);
361
+ error$1.isError = isError$1;
362
+ function isntError$1(val) {
363
+ return !isError$1(val);
364
364
  }
365
- error.isntError = isntError;
365
+ error$1.isntError = isntError$1;
366
366
 
367
- var falsy = {};
367
+ var falsy$1 = {};
368
368
 
369
- falsy.isntFalsy = falsy.isFalsy = void 0;
370
- function isFalsy(val) {
369
+ falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
370
+ function isFalsy$1(val) {
371
371
  return !val;
372
372
  }
373
- falsy.isFalsy = isFalsy;
374
- function isntFalsy(val) {
375
- return !isFalsy(val);
373
+ falsy$1.isFalsy = isFalsy$1;
374
+ function isntFalsy$1(val) {
375
+ return !isFalsy$1(val);
376
376
  }
377
- falsy.isntFalsy = isntFalsy;
377
+ falsy$1.isntFalsy = isntFalsy$1;
378
378
 
379
- var _function = {};
379
+ var _function$1 = {};
380
380
 
381
- _function.isntFunction = _function.isFunction = void 0;
382
- function isFunction(val) {
381
+ _function$1.isntFunction = _function$1.isFunction = void 0;
382
+ function isFunction$1(val) {
383
383
  return typeof val === 'function';
384
384
  }
385
- _function.isFunction = isFunction;
386
- function isntFunction(val) {
387
- return !isFunction(val);
385
+ _function$1.isFunction = isFunction$1;
386
+ function isntFunction$1(val) {
387
+ return !isFunction$1(val);
388
388
  }
389
- _function.isntFunction = isntFunction;
389
+ _function$1.isntFunction = isntFunction$1;
390
390
 
391
- var iterable = {};
391
+ var iterable$1 = {};
392
392
 
393
- iterable.isntIterable = iterable.isIterable = void 0;
394
- const null_1 = _null;
395
- const undefined_1$1 = _undefined;
396
- function isIterable(val) {
397
- return (0, null_1.isntNull)(val)
398
- && (0, undefined_1$1.isntUndefined)(val)
393
+ iterable$1.isntIterable = iterable$1.isIterable = void 0;
394
+ const null_1$2 = _null$1;
395
+ const undefined_1$4 = _undefined$1;
396
+ function isIterable$1(val) {
397
+ return (0, null_1$2.isntNull)(val)
398
+ && (0, undefined_1$4.isntUndefined)(val)
399
399
  && typeof val[Symbol.iterator] === 'function';
400
400
  }
401
- iterable.isIterable = isIterable;
402
- function isntIterable(val) {
403
- return !isIterable(val);
401
+ iterable$1.isIterable = isIterable$1;
402
+ function isntIterable$1(val) {
403
+ return !isIterable$1(val);
404
404
  }
405
- iterable.isntIterable = isntIterable;
405
+ iterable$1.isntIterable = isntIterable$1;
406
406
 
407
- var jsonRpc = {};
407
+ var jsonRpc$1 = {};
408
408
 
409
- var object = {};
409
+ var object$1 = {};
410
410
 
411
- object.isntEmptyObject = object.isEmptyObject = object.isRecord = object.isntObject = object.isObject = void 0;
412
- function isObject$1(val) {
411
+ object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isRecord = object$1.isntObject = object$1.isObject = void 0;
412
+ function isObject$2(val) {
413
413
  return val !== null && typeof val === 'object';
414
414
  }
415
- object.isObject = isObject$1;
416
- function isntObject(val) {
417
- return !isObject$1(val);
415
+ object$1.isObject = isObject$2;
416
+ function isntObject$1(val) {
417
+ return !isObject$2(val);
418
418
  }
419
- object.isntObject = isntObject;
420
- function isRecord(val) {
421
- return isObject$1(val);
419
+ object$1.isntObject = isntObject$1;
420
+ function isRecord$1(val) {
421
+ return isObject$2(val);
422
422
  }
423
- object.isRecord = isRecord;
424
- function isEmptyObject(val) {
423
+ object$1.isRecord = isRecord$1;
424
+ function isEmptyObject$1(val) {
425
425
  return Object.keys(val).length === 0;
426
426
  }
427
- object.isEmptyObject = isEmptyObject;
428
- function isntEmptyObject(val) {
427
+ object$1.isEmptyObject = isEmptyObject$1;
428
+ function isntEmptyObject$1(val) {
429
429
  return Object.keys(val).length !== 0;
430
430
  }
431
- object.isntEmptyObject = isntEmptyObject;
431
+ object$1.isntEmptyObject = isntEmptyObject$1;
432
432
 
433
- var number = {};
433
+ var number$1 = {};
434
434
 
435
- number.isntNumber = number.isNumber = void 0;
436
- function isNumber(val) {
435
+ number$1.isntNumber = number$1.isNumber = void 0;
436
+ function isNumber$1(val) {
437
437
  return typeof val === 'number';
438
438
  }
439
- number.isNumber = isNumber;
440
- function isntNumber(val) {
441
- return !isNumber(val);
442
- }
443
- number.isntNumber = isntNumber;
444
-
445
- jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
446
- const array_1 = array;
447
- const object_1 = object;
448
- const string_1 = string;
449
- const number_1 = number;
450
- const undefined_1 = _undefined;
451
- function isJsonRpcId(val) {
452
- return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
453
- }
454
- function isJsonRpcParams(val) {
455
- return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
456
- }
457
- function isJsonRpcNotification(val) {
458
- return (0, object_1.isRecord)(val)
459
- && (0, string_1.isString)(val.jsonrpc)
460
- && (0, string_1.isString)(val.method)
461
- && (0, undefined_1.isUndefined)(val.id)
462
- && isJsonRpcParams(val.params);
463
- }
464
- jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
465
- function isntJsonRpcNotification(val) {
466
- return !isJsonRpcNotification(val);
467
- }
468
- jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
469
- function isJsonRpcRequest(val) {
470
- return (0, object_1.isRecord)(val)
471
- && (0, string_1.isString)(val.jsonrpc)
472
- && (0, string_1.isString)(val.method)
473
- && isJsonRpcId(val.id)
474
- && isJsonRpcParams(val.params);
475
- }
476
- jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
477
- function isntJsonRpcRequest(val) {
478
- return !isJsonRpcRequest(val);
479
- }
480
- jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
481
- function isJsonRpcSuccess(val) {
482
- return (0, object_1.isRecord)(val)
483
- && (0, string_1.isString)(val.jsonrpc)
484
- && (0, string_1.isString)(val.id)
485
- && (0, undefined_1.isntUndefined)(val.result);
486
- }
487
- jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
488
- function isntJsonRpcSuccess(val) {
489
- return !isJsonRpcSuccess(val);
490
- }
491
- jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
492
- function isJsonRpcError(val) {
493
- return (0, object_1.isRecord)(val)
494
- && (0, string_1.isString)(val.jsonrpc)
495
- && isJsonRpcId(val.id)
496
- && isJsonRpcErrorObject(val.error);
497
- }
498
- jsonRpc.isJsonRpcError = isJsonRpcError;
499
- function isntJsonRpcError(val) {
500
- return !isJsonRpcError(val);
501
- }
502
- jsonRpc.isntJsonRpcError = isntJsonRpcError;
503
- function isJsonRpcErrorObject(val) {
504
- return (0, object_1.isRecord)(val)
505
- && (0, number_1.isNumber)(val.code)
506
- && (0, string_1.isString)(val.message)
507
- && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
508
- }
509
-
510
- var json = {};
511
-
512
- json.isntJson = json.isJson = void 0;
513
- function isJson(val) {
439
+ number$1.isNumber = isNumber$1;
440
+ function isntNumber$1(val) {
441
+ return !isNumber$1(val);
442
+ }
443
+ number$1.isntNumber = isntNumber$1;
444
+
445
+ jsonRpc$1.isntJsonRpcError = jsonRpc$1.isJsonRpcError = jsonRpc$1.isntJsonRpcSuccess = jsonRpc$1.isJsonRpcSuccess = jsonRpc$1.isntJsonRpcRequest = jsonRpc$1.isJsonRpcRequest = jsonRpc$1.isntJsonRpcNotification = jsonRpc$1.isJsonRpcNotification = void 0;
446
+ const array_1$1 = array$1;
447
+ const object_1$1 = object$1;
448
+ const string_1$2 = string$1;
449
+ const number_1$1 = number$1;
450
+ const undefined_1$3 = _undefined$1;
451
+ function isJsonRpcId$1(val) {
452
+ return (0, string_1$2.isString)(val) || (0, number_1$1.isNumber)(val);
453
+ }
454
+ function isJsonRpcParams$1(val) {
455
+ return (0, array_1$1.isArray)(val) || (0, object_1$1.isObject)(val);
456
+ }
457
+ function isJsonRpcNotification$1(val) {
458
+ return (0, object_1$1.isRecord)(val)
459
+ && (0, string_1$2.isString)(val.jsonrpc)
460
+ && (0, string_1$2.isString)(val.method)
461
+ && (0, undefined_1$3.isUndefined)(val.id)
462
+ && isJsonRpcParams$1(val.params);
463
+ }
464
+ jsonRpc$1.isJsonRpcNotification = isJsonRpcNotification$1;
465
+ function isntJsonRpcNotification$1(val) {
466
+ return !isJsonRpcNotification$1(val);
467
+ }
468
+ jsonRpc$1.isntJsonRpcNotification = isntJsonRpcNotification$1;
469
+ function isJsonRpcRequest$1(val) {
470
+ return (0, object_1$1.isRecord)(val)
471
+ && (0, string_1$2.isString)(val.jsonrpc)
472
+ && (0, string_1$2.isString)(val.method)
473
+ && isJsonRpcId$1(val.id)
474
+ && isJsonRpcParams$1(val.params);
475
+ }
476
+ jsonRpc$1.isJsonRpcRequest = isJsonRpcRequest$1;
477
+ function isntJsonRpcRequest$1(val) {
478
+ return !isJsonRpcRequest$1(val);
479
+ }
480
+ jsonRpc$1.isntJsonRpcRequest = isntJsonRpcRequest$1;
481
+ function isJsonRpcSuccess$1(val) {
482
+ return (0, object_1$1.isRecord)(val)
483
+ && (0, string_1$2.isString)(val.jsonrpc)
484
+ && (0, string_1$2.isString)(val.id)
485
+ && (0, undefined_1$3.isntUndefined)(val.result);
486
+ }
487
+ jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
488
+ function isntJsonRpcSuccess$1(val) {
489
+ return !isJsonRpcSuccess$1(val);
490
+ }
491
+ jsonRpc$1.isntJsonRpcSuccess = isntJsonRpcSuccess$1;
492
+ function isJsonRpcError$1(val) {
493
+ return (0, object_1$1.isRecord)(val)
494
+ && (0, string_1$2.isString)(val.jsonrpc)
495
+ && isJsonRpcId$1(val.id)
496
+ && isJsonRpcErrorObject$1(val.error);
497
+ }
498
+ jsonRpc$1.isJsonRpcError = isJsonRpcError$1;
499
+ function isntJsonRpcError$1(val) {
500
+ return !isJsonRpcError$1(val);
501
+ }
502
+ jsonRpc$1.isntJsonRpcError = isntJsonRpcError$1;
503
+ function isJsonRpcErrorObject$1(val) {
504
+ return (0, object_1$1.isRecord)(val)
505
+ && (0, number_1$1.isNumber)(val.code)
506
+ && (0, string_1$2.isString)(val.message)
507
+ && ((0, undefined_1$3.isUndefined)(val.data) || (0, object_1$1.isObject)(val.data));
508
+ }
509
+
510
+ var json$1 = {};
511
+
512
+ json$1.isntJson = json$1.isJson = void 0;
513
+ function isJson$1(val) {
514
514
  try {
515
515
  JSON.stringify(val);
516
516
  return true;
@@ -519,16 +519,16 @@
519
519
  return false;
520
520
  }
521
521
  }
522
- json.isJson = isJson;
523
- function isntJson(val) {
524
- return !isntJson();
522
+ json$1.isJson = isJson$1;
523
+ function isntJson$1(val) {
524
+ return !isntJson$1();
525
525
  }
526
- json.isntJson = isntJson;
526
+ json$1.isntJson = isntJson$1;
527
527
 
528
- var url = {};
528
+ var url$1 = {};
529
529
 
530
- url.isAbsoluteURL = void 0;
531
- function isAbsoluteURL(str) {
530
+ url$1.isAbsoluteURL = void 0;
531
+ function isAbsoluteURL$1(str) {
532
532
  try {
533
533
  new URL(str);
534
534
  return true;
@@ -537,7 +537,7 @@
537
537
  return false;
538
538
  }
539
539
  }
540
- url.isAbsoluteURL = isAbsoluteURL;
540
+ url$1.isAbsoluteURL = isAbsoluteURL$1;
541
541
 
542
542
  (function (exports) {
543
543
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -549,30 +549,30 @@
549
549
  }));
550
550
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
551
551
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
552
- };__exportStar(array, exports);
553
- __exportStar(asyncIterable, exports);
554
- __exportStar(bigint, exports);
555
- __exportStar(boolean, exports);
556
- __exportStar(char, exports);
557
- __exportStar(date, exports);
558
- __exportStar(_enum, exports);
559
- __exportStar(error, exports);
560
- __exportStar(falsy, exports);
561
- __exportStar(_function, exports);
562
- __exportStar(iterable, exports);
563
- __exportStar(jsonRpc, exports);
564
- __exportStar(json, exports);
565
- __exportStar(_null, exports);
566
- __exportStar(number, exports);
567
- __exportStar(object, exports);
568
- __exportStar(string, exports);
569
- __exportStar(_undefined, exports);
570
- __exportStar(url, exports);
552
+ };__exportStar(array$1, exports);
553
+ __exportStar(asyncIterable$1, exports);
554
+ __exportStar(bigint$1, exports);
555
+ __exportStar(boolean$1, exports);
556
+ __exportStar(char$1, exports);
557
+ __exportStar(date$1, exports);
558
+ __exportStar(_enum$1, exports);
559
+ __exportStar(error$1, exports);
560
+ __exportStar(falsy$1, exports);
561
+ __exportStar(_function$1, exports);
562
+ __exportStar(iterable$1, exports);
563
+ __exportStar(jsonRpc$1, exports);
564
+ __exportStar(json$1, exports);
565
+ __exportStar(_null$1, exports);
566
+ __exportStar(number$1, exports);
567
+ __exportStar(object$1, exports);
568
+ __exportStar(string$1, exports);
569
+ __exportStar(_undefined$1, exports);
570
+ __exportStar(url$1, exports);
571
571
 
572
- }(es2018$2));
572
+ }(es2018$4));
573
573
 
574
574
  chunkByAsync$1.chunkByAsync = void 0;
575
- const types_1$l = es2018$2;
575
+ const types_1$l = es2018$4;
576
576
  function chunkByAsync(iterable, predicate) {
577
577
  if ((0, types_1$l.isAsyncIterable)(iterable)) {
578
578
  return chunkByAsyncIterable(iterable);
@@ -633,12 +633,12 @@
633
633
  var chunk$1 = {};
634
634
 
635
635
  chunk$1.chunk = void 0;
636
- const go_1$e = es2018$4;
637
- const errors_1$l = es2018$3;
636
+ const go_1$f = es2018$6;
637
+ const errors_1$l = es2018$5;
638
638
  function chunk(iterable, size) {
639
639
  (0, errors_1$l.assert)(Number.isInteger(size), 'The parameter size must be an integer');
640
640
  (0, errors_1$l.assert)(size > 0, 'The parameter size must be greater than 0');
641
- return (0, go_1$e.go)(function* () {
641
+ return (0, go_1$f.go)(function* () {
642
642
  let buffer = [];
643
643
  for (const element of iterable) {
644
644
  buffer.push(element);
@@ -656,10 +656,10 @@
656
656
  var concatAsync$1 = {};
657
657
 
658
658
  concatAsync$1.concatAsync = void 0;
659
- const types_1$k = es2018$2;
660
- const go_1$d = es2018$4;
659
+ const types_1$k = es2018$4;
660
+ const go_1$e = es2018$6;
661
661
  function concatAsync(iterable, ...otherIterables) {
662
- return (0, go_1$d.go)(async function* () {
662
+ return (0, go_1$e.go)(async function* () {
663
663
  for (const iter of [iterable, ...otherIterables]) {
664
664
  if ((0, types_1$k.isAsyncIterable)(iter)) {
665
665
  for await (const element of iter) {
@@ -679,9 +679,9 @@
679
679
  var concat$2 = {};
680
680
 
681
681
  concat$2.concat = void 0;
682
- const go_1$c = es2018$4;
682
+ const go_1$d = es2018$6;
683
683
  function concat$1(iterable, ...otherIterables) {
684
- return (0, go_1$c.go)(function* () {
684
+ return (0, go_1$d.go)(function* () {
685
685
  for (const iter of [iterable, ...otherIterables]) {
686
686
  yield* iter;
687
687
  }
@@ -708,15 +708,15 @@
708
708
  utils.copyIterable = copyIterable;
709
709
 
710
710
  dropAsync$1.dropAsync = void 0;
711
- const go_1$b = es2018$4;
711
+ const go_1$c = es2018$6;
712
712
  const utils_1$3 = utils;
713
- const errors_1$k = es2018$3;
713
+ const errors_1$k = es2018$5;
714
714
  function dropAsync(iterable, count) {
715
715
  (0, errors_1$k.assert)(Number.isInteger(count), 'The parameter count must be an integer');
716
716
  (0, errors_1$k.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
717
717
  if (count === 0)
718
718
  return (0, utils_1$3.copyAsyncIterable)(iterable);
719
- return (0, go_1$b.go)(async function* () {
719
+ return (0, go_1$c.go)(async function* () {
720
720
  var _a;
721
721
  const iterator = iterable[Symbol.asyncIterator]();
722
722
  let done;
@@ -743,15 +743,15 @@
743
743
  var dropRightAsync$1 = {};
744
744
 
745
745
  dropRightAsync$1.dropRightAsync = void 0;
746
- const go_1$a = es2018$4;
746
+ const go_1$b = es2018$6;
747
747
  const utils_1$2 = utils;
748
- const errors_1$j = es2018$3;
748
+ const errors_1$j = es2018$5;
749
749
  function dropRightAsync(iterable, count) {
750
750
  (0, errors_1$j.assert)(Number.isInteger(count), 'The parameter count must be an integer');
751
751
  (0, errors_1$j.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
752
752
  if (count === 0)
753
753
  return (0, utils_1$2.copyAsyncIterable)(iterable);
754
- return (0, go_1$a.go)(async function* () {
754
+ return (0, go_1$b.go)(async function* () {
755
755
  const arr = await toArrayAsync$2(iterable);
756
756
  const result = arr.slice(0, -count);
757
757
  for (const value of result) {
@@ -771,15 +771,15 @@
771
771
  var dropRight$1 = {};
772
772
 
773
773
  dropRight$1.dropRight = void 0;
774
- const go_1$9 = es2018$4;
774
+ const go_1$a = es2018$6;
775
775
  const utils_1$1 = utils;
776
- const errors_1$i = es2018$3;
776
+ const errors_1$i = es2018$5;
777
777
  function dropRight(iterable, count) {
778
778
  (0, errors_1$i.assert)(Number.isInteger(count), 'The parameter count must be an integer');
779
779
  (0, errors_1$i.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
780
780
  if (count === 0)
781
781
  return (0, utils_1$1.copyIterable)(iterable);
782
- return (0, go_1$9.go)(function* () {
782
+ return (0, go_1$a.go)(function* () {
783
783
  const arr = Array.from(iterable);
784
784
  yield* arr.slice(0, -count);
785
785
  });
@@ -789,7 +789,7 @@
789
789
  var dropUntilAsync$1 = {};
790
790
 
791
791
  dropUntilAsync$1.dropUntilAsync = void 0;
792
- const types_1$j = es2018$2;
792
+ const types_1$j = es2018$4;
793
793
  function dropUntilAsync(iterable, predicate) {
794
794
  if ((0, types_1$j.isAsyncIterable)(iterable)) {
795
795
  return dropUntilAsyncIterable(iterable);
@@ -871,15 +871,15 @@
871
871
  var drop$1 = {};
872
872
 
873
873
  drop$1.drop = void 0;
874
- const go_1$8 = es2018$4;
874
+ const go_1$9 = es2018$6;
875
875
  const utils_1 = utils;
876
- const errors_1$h = es2018$3;
876
+ const errors_1$h = es2018$5;
877
877
  function drop(iterable, count) {
878
878
  (0, errors_1$h.assert)(Number.isInteger(count), 'The parameter count must be an integer');
879
879
  (0, errors_1$h.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
880
880
  if (count === 0)
881
881
  return (0, utils_1.copyIterable)(iterable);
882
- return (0, go_1$8.go)(function* () {
882
+ return (0, go_1$9.go)(function* () {
883
883
  var _a;
884
884
  const iterator = iterable[Symbol.iterator]();
885
885
  let done;
@@ -906,7 +906,7 @@
906
906
  var filterAsync$1 = {};
907
907
 
908
908
  filterAsync$1.filterAsync = void 0;
909
- const types_1$i = es2018$2;
909
+ const types_1$i = es2018$4;
910
910
  function filterAsync(iterable, predicate) {
911
911
  if ((0, types_1$i.isAsyncIterable)(iterable)) {
912
912
  return filterAsyncIterable(iterable);
@@ -953,7 +953,7 @@
953
953
  var flattenByAsync$1 = {};
954
954
 
955
955
  flattenByAsync$1.flattenByAsync = void 0;
956
- const types_1$h = es2018$2;
956
+ const types_1$h = es2018$4;
957
957
  function flattenByAsync(iterable, predicate) {
958
958
  if ((0, types_1$h.isAsyncIterable)(iterable)) {
959
959
  return flattenByAsyncIterable(iterable);
@@ -993,7 +993,7 @@
993
993
 
994
994
  flattenDeepAsync$1.flattenDeepAsync = void 0;
995
995
  const flatten_by_async_1 = flattenByAsync$1;
996
- const errors_1$g = es2018$3;
996
+ const errors_1$g = es2018$5;
997
997
  function flattenDeepAsync(iterable, depth = Infinity) {
998
998
  (0, errors_1$g.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
999
999
  (0, errors_1$g.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1011,7 +1011,7 @@
1011
1011
  var flattenBy$1 = {};
1012
1012
 
1013
1013
  flattenBy$1.flattenBy = void 0;
1014
- const types_1$g = es2018$2;
1014
+ const types_1$g = es2018$4;
1015
1015
  function flattenBy(iterable, predicate) {
1016
1016
  return flatten(iterable, 1);
1017
1017
  function* flatten(iterable, level) {
@@ -1034,7 +1034,7 @@
1034
1034
 
1035
1035
  flattenDeep$1.flattenDeep = void 0;
1036
1036
  const flatten_by_1 = flattenBy$1;
1037
- const errors_1$f = es2018$3;
1037
+ const errors_1$f = es2018$5;
1038
1038
  function flattenDeep(iterable, depth = Infinity) {
1039
1039
  (0, errors_1$f.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1040
1040
  (0, errors_1$f.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1054,7 +1054,7 @@
1054
1054
  var mapAsync$1 = {};
1055
1055
 
1056
1056
  mapAsync$1.mapAsync = void 0;
1057
- const types_1$f = es2018$2;
1057
+ const types_1$f = es2018$4;
1058
1058
  function mapAsync(iterable, fn) {
1059
1059
  if ((0, types_1$f.isAsyncIterable)(iterable)) {
1060
1060
  return mapAsyncIterable(iterable);
@@ -1094,14 +1094,14 @@
1094
1094
  var repeatAsync$1 = {};
1095
1095
 
1096
1096
  repeatAsync$1.repeatAsync = void 0;
1097
- const go_1$7 = es2018$4;
1098
- const errors_1$e = es2018$3;
1097
+ const go_1$8 = es2018$6;
1098
+ const errors_1$e = es2018$5;
1099
1099
  function repeatAsync(iterable, times) {
1100
1100
  (0, errors_1$e.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1101
1101
  (0, errors_1$e.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1102
1102
  if (times === Infinity)
1103
1103
  warnInfiniteLoop$1();
1104
- return (0, go_1$7.go)(async function* () {
1104
+ return (0, go_1$8.go)(async function* () {
1105
1105
  const cache = [];
1106
1106
  if (times > 0) {
1107
1107
  for await (const element of iterable) {
@@ -1129,14 +1129,14 @@
1129
1129
  var repeat$4 = {};
1130
1130
 
1131
1131
  repeat$4.repeat = void 0;
1132
- const go_1$6 = es2018$4;
1133
- const errors_1$d = es2018$3;
1132
+ const go_1$7 = es2018$6;
1133
+ const errors_1$d = es2018$5;
1134
1134
  function repeat$3(iterable, times) {
1135
1135
  (0, errors_1$d.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1136
1136
  (0, errors_1$d.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1137
1137
  if (times === Infinity)
1138
1138
  warnInfiniteLoop();
1139
- return (0, go_1$6.go)(function* () {
1139
+ return (0, go_1$7.go)(function* () {
1140
1140
  const cache = [];
1141
1141
  if (times > 0) {
1142
1142
  for (const element of iterable) {
@@ -1164,14 +1164,14 @@
1164
1164
  var sliceAsync$1 = {};
1165
1165
 
1166
1166
  sliceAsync$1.sliceAsync = void 0;
1167
- const go_1$5 = es2018$4;
1168
- const errors_1$c = es2018$3;
1167
+ const go_1$6 = es2018$6;
1168
+ const errors_1$c = es2018$5;
1169
1169
  function sliceAsync(iterable, start, end = Infinity) {
1170
1170
  (0, errors_1$c.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1171
1171
  (0, errors_1$c.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1172
1172
  (0, errors_1$c.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1173
1173
  (0, errors_1$c.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1174
- return (0, go_1$5.go)(async function* () {
1174
+ return (0, go_1$6.go)(async function* () {
1175
1175
  let index = 0;
1176
1176
  for await (const element of iterable) {
1177
1177
  if (index >= end)
@@ -1187,14 +1187,14 @@
1187
1187
  var slice$1 = {};
1188
1188
 
1189
1189
  slice$1.slice = void 0;
1190
- const go_1$4 = es2018$4;
1191
- const errors_1$b = es2018$3;
1190
+ const go_1$5 = es2018$6;
1191
+ const errors_1$b = es2018$5;
1192
1192
  function slice(iterable, start, end = Infinity) {
1193
1193
  (0, errors_1$b.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1194
1194
  (0, errors_1$b.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1195
1195
  (0, errors_1$b.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1196
1196
  (0, errors_1$b.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1197
- return (0, go_1$4.go)(function* () {
1197
+ return (0, go_1$5.go)(function* () {
1198
1198
  let index = 0;
1199
1199
  for (const element of iterable) {
1200
1200
  if (index >= end)
@@ -1228,7 +1228,7 @@
1228
1228
  var splitByAsync$1 = {};
1229
1229
 
1230
1230
  splitByAsync$1.splitByAsync = void 0;
1231
- const types_1$e = es2018$2;
1231
+ const types_1$e = es2018$4;
1232
1232
  function splitByAsync(iterable, predicate) {
1233
1233
  if ((0, types_1$e.isAsyncIterable)(iterable)) {
1234
1234
  return splitByAsyncIterable(iterable);
@@ -1310,12 +1310,12 @@
1310
1310
  var takeAsync$1 = {};
1311
1311
 
1312
1312
  takeAsync$1.takeAsync = void 0;
1313
- const go_1$3 = es2018$4;
1314
- const errors_1$a = es2018$3;
1313
+ const go_1$4 = es2018$6;
1314
+ const errors_1$a = es2018$5;
1315
1315
  function takeAsync(iterable, count) {
1316
1316
  (0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1317
1317
  (0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1318
- return (0, go_1$3.go)(async function* () {
1318
+ return (0, go_1$4.go)(async function* () {
1319
1319
  if (count === 0)
1320
1320
  return;
1321
1321
  for await (const element of iterable) {
@@ -1331,12 +1331,12 @@
1331
1331
  var takeRightAsync$1 = {};
1332
1332
 
1333
1333
  takeRightAsync$1.takeRightAsync = void 0;
1334
- const go_1$2 = es2018$4;
1335
- const errors_1$9 = es2018$3;
1334
+ const go_1$3 = es2018$6;
1335
+ const errors_1$9 = es2018$5;
1336
1336
  function takeRightAsync(iterable, count) {
1337
1337
  (0, errors_1$9.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1338
1338
  (0, errors_1$9.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1339
- return (0, go_1$2.go)(async function* () {
1339
+ return (0, go_1$3.go)(async function* () {
1340
1340
  var _a;
1341
1341
  const iterator = iterable[Symbol.asyncIterator]();
1342
1342
  let done;
@@ -1361,12 +1361,12 @@
1361
1361
  var takeRight$1 = {};
1362
1362
 
1363
1363
  takeRight$1.takeRight = void 0;
1364
- const go_1$1 = es2018$4;
1365
- const errors_1$8 = es2018$3;
1364
+ const go_1$2 = es2018$6;
1365
+ const errors_1$8 = es2018$5;
1366
1366
  function takeRight(iterable, count) {
1367
1367
  (0, errors_1$8.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1368
1368
  (0, errors_1$8.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1369
- return (0, go_1$1.go)(function* () {
1369
+ return (0, go_1$2.go)(function* () {
1370
1370
  var _a;
1371
1371
  const iterator = iterable[Symbol.iterator]();
1372
1372
  let done;
@@ -1391,7 +1391,7 @@
1391
1391
  var takeUntilAsync$1 = {};
1392
1392
 
1393
1393
  takeUntilAsync$1.takeUntilAsync = void 0;
1394
- const types_1$d = es2018$2;
1394
+ const types_1$d = es2018$4;
1395
1395
  function takeUntilAsync(iterable, predicate) {
1396
1396
  if ((0, types_1$d.isAsyncIterable)(iterable)) {
1397
1397
  return takeUntilAsyncIterable(iterable);
@@ -1437,12 +1437,12 @@
1437
1437
  var take$1 = {};
1438
1438
 
1439
1439
  take$1.take = void 0;
1440
- const go_1 = es2018$4;
1441
- const errors_1$7 = es2018$3;
1440
+ const go_1$1 = es2018$6;
1441
+ const errors_1$7 = es2018$5;
1442
1442
  function take(iterable, count) {
1443
1443
  (0, errors_1$7.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1444
1444
  (0, errors_1$7.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1445
- return (0, go_1.go)(function* () {
1445
+ return (0, go_1$1.go)(function* () {
1446
1446
  if (count === 0)
1447
1447
  return;
1448
1448
  for (const element of iterable) {
@@ -1458,7 +1458,7 @@
1458
1458
  var tapAsync$1 = {};
1459
1459
 
1460
1460
  tapAsync$1.tapAsync = void 0;
1461
- const types_1$c = es2018$2;
1461
+ const types_1$c = es2018$4;
1462
1462
  function tapAsync(iterable, fn) {
1463
1463
  if ((0, types_1$c.isAsyncIterable)(iterable)) {
1464
1464
  return tapAsyncIterable(iterable);
@@ -1541,7 +1541,7 @@
1541
1541
  var uniqByAsync$1 = {};
1542
1542
 
1543
1543
  uniqByAsync$1.uniqByAsync = void 0;
1544
- const types_1$b = es2018$2;
1544
+ const types_1$b = es2018$4;
1545
1545
  function uniqByAsync(iterable, fn) {
1546
1546
  if ((0, types_1$b.isAsyncIterable)(iterable)) {
1547
1547
  return uniqByAsyncIterable(iterable);
@@ -1610,7 +1610,7 @@
1610
1610
  var zipAsync$1 = {};
1611
1611
 
1612
1612
  zipAsync$1.zipAsync = void 0;
1613
- const types_1$a = es2018$2;
1613
+ const types_1$a = es2018$4;
1614
1614
  var Kind;
1615
1615
  (function (Kind) {
1616
1616
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -1770,7 +1770,7 @@
1770
1770
  var eachAsync$1 = {};
1771
1771
 
1772
1772
  eachAsync$1.eachAsync = void 0;
1773
- const types_1$9 = es2018$2;
1773
+ const types_1$9 = es2018$4;
1774
1774
  function eachAsync(iterable, fn) {
1775
1775
  if ((0, types_1$9.isAsyncIterable)(iterable)) {
1776
1776
  return eachAsyncIterable(iterable);
@@ -1810,7 +1810,7 @@
1810
1810
  var everyAsync$1 = {};
1811
1811
 
1812
1812
  everyAsync$1.everyAsync = void 0;
1813
- const types_1$8 = es2018$2;
1813
+ const types_1$8 = es2018$4;
1814
1814
  function everyAsync(iterable, predicate) {
1815
1815
  if ((0, types_1$8.isAsyncIterable)(iterable)) {
1816
1816
  return everyAsyncIterable(iterable);
@@ -1856,7 +1856,7 @@
1856
1856
  var findAsync$1 = {};
1857
1857
 
1858
1858
  findAsync$1.findAsync = void 0;
1859
- const types_1$7 = es2018$2;
1859
+ const types_1$7 = es2018$4;
1860
1860
  function findAsync(iterable, predicate) {
1861
1861
  if ((0, types_1$7.isAsyncIterable)(iterable)) {
1862
1862
  return findAsyncIterable(iterable);
@@ -1980,7 +1980,7 @@
1980
1980
  var reduceAsync$1 = {};
1981
1981
 
1982
1982
  reduceAsync$1.reduceAsync = void 0;
1983
- const types_1$6 = es2018$2;
1983
+ const types_1$6 = es2018$4;
1984
1984
  function reduceAsync(iterable, fn, initialValue) {
1985
1985
  if ((0, types_1$6.isUndefined)(initialValue)) {
1986
1986
  return reduceAsyncWithoutInitialValue(iterable, fn);
@@ -2076,7 +2076,7 @@
2076
2076
  var reduce$1 = {};
2077
2077
 
2078
2078
  reduce$1.reduce = void 0;
2079
- const types_1$5 = es2018$2;
2079
+ const types_1$5 = es2018$4;
2080
2080
  function reduce(iterable, fn, initialValue) {
2081
2081
  if ((0, types_1$5.isUndefined)(initialValue)) {
2082
2082
  return reduceWithoutInitialValue(iterable, fn);
@@ -2123,7 +2123,7 @@
2123
2123
  var someAsync$1 = {};
2124
2124
 
2125
2125
  someAsync$1.someAsync = void 0;
2126
- const types_1$4 = es2018$2;
2126
+ const types_1$4 = es2018$4;
2127
2127
  function someAsync(iterable, predicate) {
2128
2128
  if ((0, types_1$4.isAsyncIterable)(iterable)) {
2129
2129
  return someAsyncIterable(iterable);
@@ -2307,11 +2307,11 @@
2307
2307
  };__exportStar(middleware, exports);
2308
2308
  __exportStar(output, exports);
2309
2309
 
2310
- }(es2018$5));
2310
+ }(es2018$7));
2311
2311
 
2312
2312
  unwrap$1.unwrap = void 0;
2313
2313
  const flat_map_1 = flatMap$1;
2314
- const iterable_operator_1$2 = es2018$5;
2314
+ const iterable_operator_1$2 = es2018$7;
2315
2315
  function unwrap(node, predicate) {
2316
2316
  return (0, flat_map_1.flatMap)(node, node => {
2317
2317
  if (predicate(node)) {
@@ -2341,7 +2341,7 @@
2341
2341
 
2342
2342
  findInDescendantNodes$1.findInDescendantNodes = void 0;
2343
2343
  const traverse_descendant_nodes_1 = traverseDescendantNodes$1;
2344
- const iterable_operator_1$1 = es2018$5;
2344
+ const iterable_operator_1$1 = es2018$7;
2345
2345
  function findInDescendantNodes(node, predicate) {
2346
2346
  return (0, iterable_operator_1$1.find)((0, traverse_descendant_nodes_1.traverseDescendantNodes)(node), node => predicate(node));
2347
2347
  }
@@ -2451,9 +2451,360 @@
2451
2451
 
2452
2452
  }(nodeType));
2453
2453
 
2454
+ var es2018$3 = {};
2455
+
2456
+ var array = {};
2457
+
2458
+ array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
2459
+ function isArray(val) {
2460
+ return Array.isArray(val);
2461
+ }
2462
+ array.isArray = isArray;
2463
+ function isntArray(val) {
2464
+ return !isArray(val);
2465
+ }
2466
+ array.isntArray = isntArray;
2467
+ function isEmptyArray(val) {
2468
+ return val.length === 0;
2469
+ }
2470
+ array.isEmptyArray = isEmptyArray;
2471
+ function isntEmptyArray(val) {
2472
+ return val.length !== 0;
2473
+ }
2474
+ array.isntEmptyArray = isntEmptyArray;
2475
+
2476
+ var asyncIterable = {};
2477
+
2478
+ var _null = {};
2479
+
2480
+ _null.isntNull = _null.isNull = void 0;
2481
+ function isNull(val) {
2482
+ return val === null;
2483
+ }
2484
+ _null.isNull = isNull;
2485
+ function isntNull(val) {
2486
+ return !isNull(val);
2487
+ }
2488
+ _null.isntNull = isntNull;
2489
+
2490
+ var _undefined = {};
2491
+
2492
+ _undefined.isntUndefined = _undefined.isUndefined = void 0;
2493
+ function isUndefined(val) {
2494
+ return val === undefined;
2495
+ }
2496
+ _undefined.isUndefined = isUndefined;
2497
+ function isntUndefined(val) {
2498
+ return !isUndefined(val);
2499
+ }
2500
+ _undefined.isntUndefined = isntUndefined;
2501
+
2502
+ asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
2503
+ const null_1$1 = _null;
2504
+ const undefined_1$2 = _undefined;
2505
+ function isAsyncIterable(val) {
2506
+ return (0, null_1$1.isntNull)(val)
2507
+ && (0, undefined_1$2.isntUndefined)(val)
2508
+ && typeof val[Symbol.asyncIterator] === 'function';
2509
+ }
2510
+ asyncIterable.isAsyncIterable = isAsyncIterable;
2511
+ function isntAsyncIterable(val) {
2512
+ return !isAsyncIterable(val);
2513
+ }
2514
+ asyncIterable.isntAsyncIterable = isntAsyncIterable;
2515
+
2516
+ var bigint = {};
2517
+
2518
+ bigint.isntBigInt = bigint.isBigInt = void 0;
2519
+ function isBigInt(val) {
2520
+ return typeof val === 'bigint';
2521
+ }
2522
+ bigint.isBigInt = isBigInt;
2523
+ function isntBigInt(val) {
2524
+ return !isBigInt(val);
2525
+ }
2526
+ bigint.isntBigInt = isntBigInt;
2527
+
2528
+ var boolean = {};
2529
+
2530
+ boolean.isntBoolean = boolean.isBoolean = void 0;
2531
+ function isBoolean(val) {
2532
+ return typeof val === 'boolean';
2533
+ }
2534
+ boolean.isBoolean = isBoolean;
2535
+ function isntBoolean(val) {
2536
+ return !isBoolean(val);
2537
+ }
2538
+ boolean.isntBoolean = isntBoolean;
2539
+
2540
+ var char = {};
2541
+
2542
+ var string = {};
2543
+
2544
+ string.isntString = string.isString = void 0;
2545
+ function isString(val) {
2546
+ return typeof val === 'string';
2547
+ }
2548
+ string.isString = isString;
2549
+ function isntString(val) {
2550
+ return !isString(val);
2551
+ }
2552
+ string.isntString = isntString;
2553
+
2554
+ char.isntChar = char.isChar = void 0;
2555
+ const string_1$1 = string;
2556
+ function isChar(val) {
2557
+ return (0, string_1$1.isString)(val)
2558
+ && val.length === 1;
2559
+ }
2560
+ char.isChar = isChar;
2561
+ function isntChar(val) {
2562
+ return !isChar(val);
2563
+ }
2564
+ char.isntChar = isntChar;
2565
+
2566
+ var date = {};
2567
+
2568
+ date.isntDate = date.isDate = void 0;
2569
+ function isDate(val) {
2570
+ return val instanceof Date;
2571
+ }
2572
+ date.isDate = isDate;
2573
+ function isntDate(val) {
2574
+ return !isDate(val);
2575
+ }
2576
+ date.isntDate = isntDate;
2577
+
2578
+ var _enum = {};
2579
+
2580
+ _enum.inEnum = void 0;
2581
+ function inEnum(val, _enum) {
2582
+ return Object.values(_enum).includes(val);
2583
+ }
2584
+ _enum.inEnum = inEnum;
2585
+
2586
+ var error = {};
2587
+
2588
+ error.isntError = error.isError = void 0;
2589
+ function isError(val) {
2590
+ return val instanceof Error;
2591
+ }
2592
+ error.isError = isError;
2593
+ function isntError(val) {
2594
+ return !isError(val);
2595
+ }
2596
+ error.isntError = isntError;
2597
+
2598
+ var falsy = {};
2599
+
2600
+ falsy.isntFalsy = falsy.isFalsy = void 0;
2601
+ function isFalsy(val) {
2602
+ return !val;
2603
+ }
2604
+ falsy.isFalsy = isFalsy;
2605
+ function isntFalsy(val) {
2606
+ return !isFalsy(val);
2607
+ }
2608
+ falsy.isntFalsy = isntFalsy;
2609
+
2610
+ var _function = {};
2611
+
2612
+ _function.isntFunction = _function.isFunction = void 0;
2613
+ function isFunction(val) {
2614
+ return typeof val === 'function';
2615
+ }
2616
+ _function.isFunction = isFunction;
2617
+ function isntFunction(val) {
2618
+ return !isFunction(val);
2619
+ }
2620
+ _function.isntFunction = isntFunction;
2621
+
2622
+ var iterable = {};
2623
+
2624
+ iterable.isntIterable = iterable.isIterable = void 0;
2625
+ const null_1 = _null;
2626
+ const undefined_1$1 = _undefined;
2627
+ function isIterable(val) {
2628
+ return (0, null_1.isntNull)(val)
2629
+ && (0, undefined_1$1.isntUndefined)(val)
2630
+ && typeof val[Symbol.iterator] === 'function';
2631
+ }
2632
+ iterable.isIterable = isIterable;
2633
+ function isntIterable(val) {
2634
+ return !isIterable(val);
2635
+ }
2636
+ iterable.isntIterable = isntIterable;
2637
+
2638
+ var jsonRpc = {};
2639
+
2640
+ var object = {};
2641
+
2642
+ object.isntEmptyObject = object.isEmptyObject = object.isRecord = object.isntObject = object.isObject = void 0;
2643
+ function isObject$1(val) {
2644
+ return val !== null && typeof val === 'object';
2645
+ }
2646
+ object.isObject = isObject$1;
2647
+ function isntObject(val) {
2648
+ return !isObject$1(val);
2649
+ }
2650
+ object.isntObject = isntObject;
2651
+ function isRecord(val) {
2652
+ return isObject$1(val);
2653
+ }
2654
+ object.isRecord = isRecord;
2655
+ function isEmptyObject(val) {
2656
+ return Object.keys(val).length === 0;
2657
+ }
2658
+ object.isEmptyObject = isEmptyObject;
2659
+ function isntEmptyObject(val) {
2660
+ return Object.keys(val).length !== 0;
2661
+ }
2662
+ object.isntEmptyObject = isntEmptyObject;
2663
+
2664
+ var number = {};
2665
+
2666
+ number.isntNumber = number.isNumber = void 0;
2667
+ function isNumber(val) {
2668
+ return typeof val === 'number';
2669
+ }
2670
+ number.isNumber = isNumber;
2671
+ function isntNumber(val) {
2672
+ return !isNumber(val);
2673
+ }
2674
+ number.isntNumber = isntNumber;
2675
+
2676
+ jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
2677
+ const array_1 = array;
2678
+ const object_1 = object;
2679
+ const string_1 = string;
2680
+ const number_1 = number;
2681
+ const undefined_1 = _undefined;
2682
+ function isJsonRpcId(val) {
2683
+ return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
2684
+ }
2685
+ function isJsonRpcParams(val) {
2686
+ return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
2687
+ }
2688
+ function isJsonRpcNotification(val) {
2689
+ return (0, object_1.isRecord)(val)
2690
+ && (0, string_1.isString)(val.jsonrpc)
2691
+ && (0, string_1.isString)(val.method)
2692
+ && (0, undefined_1.isUndefined)(val.id)
2693
+ && isJsonRpcParams(val.params);
2694
+ }
2695
+ jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
2696
+ function isntJsonRpcNotification(val) {
2697
+ return !isJsonRpcNotification(val);
2698
+ }
2699
+ jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
2700
+ function isJsonRpcRequest(val) {
2701
+ return (0, object_1.isRecord)(val)
2702
+ && (0, string_1.isString)(val.jsonrpc)
2703
+ && (0, string_1.isString)(val.method)
2704
+ && isJsonRpcId(val.id)
2705
+ && isJsonRpcParams(val.params);
2706
+ }
2707
+ jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
2708
+ function isntJsonRpcRequest(val) {
2709
+ return !isJsonRpcRequest(val);
2710
+ }
2711
+ jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
2712
+ function isJsonRpcSuccess(val) {
2713
+ return (0, object_1.isRecord)(val)
2714
+ && (0, string_1.isString)(val.jsonrpc)
2715
+ && (0, string_1.isString)(val.id)
2716
+ && 'result' in val;
2717
+ }
2718
+ jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
2719
+ function isntJsonRpcSuccess(val) {
2720
+ return !isJsonRpcSuccess(val);
2721
+ }
2722
+ jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
2723
+ function isJsonRpcError(val) {
2724
+ return (0, object_1.isRecord)(val)
2725
+ && (0, string_1.isString)(val.jsonrpc)
2726
+ && isJsonRpcId(val.id)
2727
+ && isJsonRpcErrorObject(val.error);
2728
+ }
2729
+ jsonRpc.isJsonRpcError = isJsonRpcError;
2730
+ function isntJsonRpcError(val) {
2731
+ return !isJsonRpcError(val);
2732
+ }
2733
+ jsonRpc.isntJsonRpcError = isntJsonRpcError;
2734
+ function isJsonRpcErrorObject(val) {
2735
+ return (0, object_1.isRecord)(val)
2736
+ && (0, number_1.isNumber)(val.code)
2737
+ && (0, string_1.isString)(val.message)
2738
+ && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
2739
+ }
2740
+
2741
+ var json = {};
2742
+
2743
+ json.isntJson = json.isJson = void 0;
2744
+ function isJson(val) {
2745
+ try {
2746
+ JSON.stringify(val);
2747
+ return true;
2748
+ }
2749
+ catch (_a) {
2750
+ return false;
2751
+ }
2752
+ }
2753
+ json.isJson = isJson;
2754
+ function isntJson(val) {
2755
+ return !isntJson();
2756
+ }
2757
+ json.isntJson = isntJson;
2758
+
2759
+ var url = {};
2760
+
2761
+ url.isAbsoluteURL = void 0;
2762
+ function isAbsoluteURL(str) {
2763
+ try {
2764
+ new URL(str);
2765
+ return true;
2766
+ }
2767
+ catch (_a) {
2768
+ return false;
2769
+ }
2770
+ }
2771
+ url.isAbsoluteURL = isAbsoluteURL;
2772
+
2773
+ (function (exports) {
2774
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2775
+ if (k2 === undefined) k2 = k;
2776
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2777
+ }) : (function(o, m, k, k2) {
2778
+ if (k2 === undefined) k2 = k;
2779
+ o[k2] = m[k];
2780
+ }));
2781
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2782
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2783
+ };__exportStar(array, exports);
2784
+ __exportStar(asyncIterable, exports);
2785
+ __exportStar(bigint, exports);
2786
+ __exportStar(boolean, exports);
2787
+ __exportStar(char, exports);
2788
+ __exportStar(date, exports);
2789
+ __exportStar(_enum, exports);
2790
+ __exportStar(error, exports);
2791
+ __exportStar(falsy, exports);
2792
+ __exportStar(_function, exports);
2793
+ __exportStar(iterable, exports);
2794
+ __exportStar(jsonRpc, exports);
2795
+ __exportStar(json, exports);
2796
+ __exportStar(_null, exports);
2797
+ __exportStar(number, exports);
2798
+ __exportStar(object, exports);
2799
+ __exportStar(string, exports);
2800
+ __exportStar(_undefined, exports);
2801
+ __exportStar(url, exports);
2802
+
2803
+ }(es2018$3));
2804
+
2454
2805
  isDocument$1.isDocument = void 0;
2455
2806
  const node_type_1$2 = nodeType;
2456
- const types_1$3 = es2018$2;
2807
+ const types_1$3 = es2018$3;
2457
2808
  function isDocument(val) {
2458
2809
  if ('HTMLDocument' in globalThis && val instanceof HTMLDocument)
2459
2810
  return true;
@@ -2465,7 +2816,7 @@
2465
2816
 
2466
2817
  isElement$1.isElement = void 0;
2467
2818
  const node_type_1$1 = nodeType;
2468
- const types_1$2 = es2018$2;
2819
+ const types_1$2 = es2018$3;
2469
2820
  function isElement(val) {
2470
2821
  if ('HTMLElement' in globalThis && val instanceof HTMLElement)
2471
2822
  return true;
@@ -2525,7 +2876,7 @@
2525
2876
 
2526
2877
  findInAncestorNodes$1.findInAncestorNodes = void 0;
2527
2878
  const traverse_ancestor_nodes_1 = traverseAncestorNodes$1;
2528
- const iterable_operator_1 = es2018$5;
2879
+ const iterable_operator_1 = es2018$7;
2529
2880
  function findInAncestorNodes(node, predicate) {
2530
2881
  return (0, iterable_operator_1.find)((0, traverse_ancestor_nodes_1.traverseAncestorNodes)(node), node => predicate(node));
2531
2882
  }
@@ -2566,7 +2917,7 @@
2566
2917
  var parentNode$1 = {};
2567
2918
 
2568
2919
  parentNode$1.parentNode = void 0;
2569
- const errors_1$6 = es2018$3;
2920
+ const errors_1$6 = es2018$5;
2570
2921
  function parentNode(node, distance = 1) {
2571
2922
  (0, errors_1$6.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2572
2923
  (0, errors_1$6.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2588,7 +2939,7 @@
2588
2939
  var nextSibling$2 = {};
2589
2940
 
2590
2941
  nextSibling$2.nextSibling = void 0;
2591
- const errors_1$5 = es2018$3;
2942
+ const errors_1$5 = es2018$5;
2592
2943
  function nextSibling$1(node, distance = 1) {
2593
2944
  (0, errors_1$5.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2594
2945
  (0, errors_1$5.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2610,30 +2961,30 @@
2610
2961
  var previousSibling$1 = {};
2611
2962
 
2612
2963
  previousSibling$1.previousSibling = void 0;
2613
- const errors_1$4 = es2018$3;
2964
+ const errors_1$4 = es2018$5;
2614
2965
  function previousSibling(node, distance = 1) {
2615
2966
  (0, errors_1$4.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2616
2967
  (0, errors_1$4.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
2617
- return _previousSibling(node, distance);
2618
- }
2619
- previousSibling$1.previousSibling = previousSibling;
2620
- function _previousSibling(node, distance = 1) {
2621
- const currentNode = node.previousSibling;
2622
- if (!currentNode)
2623
- return undefined;
2624
- if (distance === 1) {
2625
- return currentNode;
2626
- }
2627
- else {
2628
- return _previousSibling(currentNode, distance - 1);
2968
+ return previousSibling(node, distance);
2969
+ function previousSibling(node, distance = 1) {
2970
+ const currentNode = node.previousSibling;
2971
+ if (!currentNode)
2972
+ return undefined;
2973
+ if (distance === 1) {
2974
+ return currentNode;
2975
+ }
2976
+ else {
2977
+ return previousSibling(currentNode, distance - 1);
2978
+ }
2629
2979
  }
2630
2980
  }
2981
+ previousSibling$1.previousSibling = previousSibling;
2631
2982
 
2632
2983
  var nextElementSibling$2 = {};
2633
2984
 
2634
2985
  nextElementSibling$2.nextElementSibling = void 0;
2635
2986
  const is_element_1$2 = isElement$1;
2636
- const errors_1$3 = es2018$3;
2987
+ const errors_1$3 = es2018$5;
2637
2988
  function nextElementSibling$1(node, distance = 1) {
2638
2989
  (0, errors_1$3.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2639
2990
  (0, errors_1$3.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2661,29 +3012,29 @@
2661
3012
 
2662
3013
  previousElementSibling$1.previousElementSibling = void 0;
2663
3014
  const is_element_1$1 = isElement$1;
2664
- const errors_1$2 = es2018$3;
3015
+ const errors_1$2 = es2018$5;
2665
3016
  function previousElementSibling(node, distance = 1) {
2666
3017
  (0, errors_1$2.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2667
3018
  (0, errors_1$2.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
2668
- return _previousElementSibling(node, distance);
2669
- }
2670
- previousElementSibling$1.previousElementSibling = previousElementSibling;
2671
- function _previousElementSibling(node, distance = 1) {
2672
- const currentNode = node.previousSibling;
2673
- if (!currentNode)
2674
- return undefined;
2675
- if ((0, is_element_1$1.isElement)(currentNode)) {
2676
- if (distance === 1) {
2677
- return currentNode;
3019
+ return previousElementSibling(node, distance);
3020
+ function previousElementSibling(node, distance = 1) {
3021
+ const currentNode = node.previousSibling;
3022
+ if (!currentNode)
3023
+ return undefined;
3024
+ if ((0, is_element_1$1.isElement)(currentNode)) {
3025
+ if (distance === 1) {
3026
+ return currentNode;
3027
+ }
3028
+ else {
3029
+ return previousElementSibling(currentNode, distance - 1);
3030
+ }
2678
3031
  }
2679
3032
  else {
2680
- return _previousElementSibling(currentNode, distance - 1);
3033
+ return previousElementSibling(currentNode, distance);
2681
3034
  }
2682
3035
  }
2683
- else {
2684
- return _previousElementSibling(currentNode, distance);
2685
- }
2686
3036
  }
3037
+ previousElementSibling$1.previousElementSibling = previousElementSibling;
2687
3038
 
2688
3039
  var isntDocument$1 = {};
2689
3040
 
@@ -2706,7 +3057,7 @@
2706
3057
  var isNode$1 = {};
2707
3058
 
2708
3059
  isNode$1.isNode = void 0;
2709
- const types_1$1 = es2018$2;
3060
+ const types_1$1 = es2018$3;
2710
3061
  function isNode(val) {
2711
3062
  if ('Node' in globalThis && val instanceof Node)
2712
3063
  return true;
@@ -2727,7 +3078,7 @@
2727
3078
 
2728
3079
  isTextNode$1.isTextNode = void 0;
2729
3080
  const node_type_1 = nodeType;
2730
- const types_1 = es2018$2;
3081
+ const types_1 = es2018$3;
2731
3082
  function isTextNode(val) {
2732
3083
  if ('Text' in globalThis && val instanceof Text)
2733
3084
  return true;
@@ -2893,7 +3244,7 @@
2893
3244
  __exportStar(isBefore$1, exports);
2894
3245
  __exportStar(isAfter$1, exports);
2895
3246
 
2896
- }(es2018$6));
3247
+ }(es2018$8));
2897
3248
 
2898
3249
  function matchOneByOne(context, source, ...matchers) {
2899
3250
  if (matchers.length === 0)
@@ -2903,7 +3254,7 @@
2903
3254
  const [matcher, ...otherMatchers] = matchers;
2904
3255
  const result = Reflect.apply(matcher, context, [source]);
2905
3256
  // TerminalMatcher
2906
- if (es2018$2.isBoolean(result)) {
3257
+ if (es2018$3.isBoolean(result)) {
2907
3258
  if (result) {
2908
3259
  const nextNode = context.next(source);
2909
3260
  return matchOneByOne(context, nextNode, ...otherMatchers);
@@ -2913,13 +3264,13 @@
2913
3264
  }
2914
3265
  }
2915
3266
  // 此处一定是成功匹配, 因为SkipMatcher在失败时会返回false.
2916
- if (es2018$2.isNumber(result)) {
3267
+ if (es2018$3.isNumber(result)) {
2917
3268
  const distance = result;
2918
3269
  const nextNode = context.next(source, distance);
2919
3270
  return matchOneByOne(context, nextNode, ...otherMatchers);
2920
3271
  }
2921
3272
  // SkipMatcher返回Iterable意味着存在多种可能性, 可能出现失败回溯.
2922
- if (es2018$2.isIterable(result)) {
3273
+ if (es2018$3.isIterable(result)) {
2923
3274
  for (const distance of result) {
2924
3275
  const nextNode = context.next(source, distance);
2925
3276
  if (matchOneByOne(context, nextNode, ...otherMatchers)) {
@@ -2935,11 +3286,11 @@
2935
3286
  function nextSibling(node, distance = 1) {
2936
3287
  if (distance === 0)
2937
3288
  return node;
2938
- return es2018$6.nextSibling(node, distance);
3289
+ return es2018$8.nextSibling(node, distance);
2939
3290
  }
2940
3291
 
2941
3292
  function match(node, ...matchers) {
2942
- const document = es2018$6.isDocument(this) ? this : globalThis.document;
3293
+ const document = es2018$8.isDocument(this) ? this : globalThis.document;
2943
3294
  const context = {
2944
3295
  document,
2945
3296
  collection: {},
@@ -2956,11 +3307,11 @@
2956
3307
  function nextElementSibling(node, distance = 1) {
2957
3308
  if (distance === 0)
2958
3309
  return node;
2959
- return es2018$6.nextElementSibling(node, distance);
3310
+ return es2018$8.nextElementSibling(node, distance);
2960
3311
  }
2961
3312
 
2962
3313
  function matchElement(element, ...matchers) {
2963
- const document = es2018$6.isDocument(this) ? this : globalThis.document;
3314
+ const document = es2018$8.isDocument(this) ? this : globalThis.document;
2964
3315
  const context = {
2965
3316
  document,
2966
3317
  collection: {},
@@ -2983,8 +3334,8 @@
2983
3334
  function merge(target, source) {
2984
3335
  for (const [key, value] of Object.entries(source)) {
2985
3336
  if (target[key]) {
2986
- if (Array.isArray(target[key])) {
2987
- if (Array.isArray(value)) {
3337
+ if (es2018$3.isArray(target[key])) {
3338
+ if (es2018$3.isArray(value)) {
2988
3339
  target[key] = [...target[key], ...value];
2989
3340
  }
2990
3341
  else {
@@ -2992,7 +3343,7 @@
2992
3343
  }
2993
3344
  }
2994
3345
  else {
2995
- if (Array.isArray(value)) {
3346
+ if (es2018$3.isArray(value)) {
2996
3347
  target[key] = [target[key], ...value];
2997
3348
  }
2998
3349
  else {
@@ -3051,7 +3402,7 @@
3051
3402
  }
3052
3403
 
3053
3404
  function css(...args) {
3054
- if (es2018$2.isString(args[0])) {
3405
+ if (es2018$3.isString(args[0])) {
3055
3406
  const [selector] = args;
3056
3407
  return (element) => element.matches(selector);
3057
3408
  }
@@ -3063,12 +3414,12 @@
3063
3414
  }
3064
3415
 
3065
3416
  function element(...args) {
3066
- if (Array.isArray(args[0])) {
3417
+ if (es2018$3.isArray(args[0])) {
3067
3418
  const [strings, ...values] = args;
3068
3419
  const name = concat(strings, values).join('');
3069
3420
  return (...matchers) => element(name, ...matchers);
3070
3421
  }
3071
- if (es2018$2.isString(args[0])) {
3422
+ if (es2018$3.isString(args[0])) {
3072
3423
  const [name, ...matchers] = args;
3073
3424
  return function (_element) {
3074
3425
  const result = element(...matchers).call(this, _element);
@@ -3080,7 +3431,7 @@
3080
3431
  }
3081
3432
  const [...matchers] = args;
3082
3433
  return function (element) {
3083
- if (es2018$6.isntElement(element))
3434
+ if (es2018$8.isntElement(element))
3084
3435
  return false;
3085
3436
  if (matchers.length === 0)
3086
3437
  return true;
@@ -3088,7 +3439,7 @@
3088
3439
  };
3089
3440
  }
3090
3441
 
3091
- var es2018$1 = {};
3442
+ var es2018$2 = {};
3092
3443
 
3093
3444
  var of$1 = {};
3094
3445
 
@@ -3100,15 +3451,40 @@
3100
3451
 
3101
3452
  var repeat$2 = {};
3102
3453
 
3454
+ var es2018$1 = {};
3455
+
3456
+ var go$1 = {};
3457
+
3458
+ go$1.go = void 0;
3459
+ function go(fn) {
3460
+ return fn();
3461
+ }
3462
+ go$1.go = go;
3463
+
3464
+ (function (exports) {
3465
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3466
+ if (k2 === undefined) k2 = k;
3467
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3468
+ }) : (function(o, m, k, k2) {
3469
+ if (k2 === undefined) k2 = k;
3470
+ o[k2] = m[k];
3471
+ }));
3472
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3473
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3474
+ };__exportStar(go$1, exports);
3475
+
3476
+ }(es2018$1));
3477
+
3103
3478
  repeat$2.repeat = void 0;
3104
- const errors_1$1 = es2018$3;
3479
+ const errors_1$1 = es2018$5;
3480
+ const go_1 = es2018$1;
3105
3481
  function repeat$1(val, times = Infinity) {
3106
3482
  (0, errors_1$1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
3107
- return (function* () {
3483
+ return (0, go_1.go)(function* () {
3108
3484
  while (times-- > 0) {
3109
3485
  yield val;
3110
3486
  }
3111
- })();
3487
+ });
3112
3488
  }
3113
3489
  repeat$2.repeat = repeat$1;
3114
3490
 
@@ -3139,7 +3515,7 @@
3139
3515
  var range$1 = {};
3140
3516
 
3141
3517
  range$1.range = void 0;
3142
- const errors_1 = es2018$3;
3518
+ const errors_1 = es2018$5;
3143
3519
  function range(start, end, step = 1) {
3144
3520
  (0, errors_1.assert)(step > 0, 'step parameter must be greater than 0');
3145
3521
  return rangeByUnsignedStep(start, end, step);
@@ -3696,6 +4072,29 @@
3696
4072
  }
3697
4073
  reusableAsyncIterable.ReusableAsyncIterable = ReusableAsyncIterable;
3698
4074
 
4075
+ var timestampBasedId$1 = {};
4076
+
4077
+ timestampBasedId$1.timestampBasedId = void 0;
4078
+ function* timestampBasedId() {
4079
+ const num = 0;
4080
+ const timestamp = Date.now();
4081
+ yield [timestamp, num];
4082
+ let lastTimestamp = timestamp;
4083
+ let lastNum = num;
4084
+ while (true) {
4085
+ const timestamp = Date.now();
4086
+ if (timestamp === lastTimestamp) {
4087
+ yield [lastTimestamp, ++lastNum];
4088
+ }
4089
+ else {
4090
+ lastNum = 0;
4091
+ lastTimestamp = timestamp;
4092
+ yield [lastTimestamp, lastNum];
4093
+ }
4094
+ }
4095
+ }
4096
+ timestampBasedId$1.timestampBasedId = timestampBasedId;
4097
+
3699
4098
  (function (exports) {
3700
4099
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3701
4100
  if (k2 === undefined) k2 = k;
@@ -3718,15 +4117,16 @@
3718
4117
  __exportStar(sse$1, exports);
3719
4118
  __exportStar(reusableIterable, exports);
3720
4119
  __exportStar(reusableAsyncIterable, exports);
4120
+ __exportStar(timestampBasedId$1, exports);
3721
4121
 
3722
- }(es2018$1));
4122
+ }(es2018$2));
3723
4123
 
3724
4124
  /**
3725
4125
  * @returns {number} 返回值为成功匹配的元素个数, 当此值等于ubound时, 代表匹配成功.
3726
4126
  */
3727
4127
  function matchMultiple(node, ubound, matcher) {
3728
4128
  let currentNode = node;
3729
- for (const round of es2018$1.countup(1, ubound)) {
4129
+ for (const round of es2018$2.countup(1, ubound)) {
3730
4130
  if (!currentNode)
3731
4131
  return round - 1;
3732
4132
  const result = matcher.call(this, currentNode);
@@ -3746,10 +4146,10 @@
3746
4146
  Range[Range["Max"] = 1] = "Max";
3747
4147
  })(Range || (Range = {}));
3748
4148
  function multiple([min, max], matcher, options = { greedy: true }) {
3749
- es2018$3.assert(Number.isInteger(min), 'parameter min must be an integer');
3750
- es2018$3.assert(Number.isInteger(max) || max === Infinity, 'parameter max must be an integer or Infinity');
3751
- es2018$3.assert(min >= 0, 'parameter min must be greater than or equal to 0');
3752
- es2018$3.assert(min <= max, 'parameter max must be greater than or equal to min');
4149
+ es2018$5.assert(Number.isInteger(min), 'parameter min must be an integer');
4150
+ es2018$5.assert(Number.isInteger(max) || max === Infinity, 'parameter max must be an integer or Infinity');
4151
+ es2018$5.assert(min >= 0, 'parameter min must be greater than or equal to 0');
4152
+ es2018$5.assert(min <= max, 'parameter max must be greater than or equal to min');
3753
4153
  return function* (node) {
3754
4154
  if (options.greedy) {
3755
4155
  let ubound = max;
@@ -3764,7 +4164,7 @@
3764
4164
  }
3765
4165
  }
3766
4166
  else {
3767
- for (const ubound of es2018$1.countup(min, max)) {
4167
+ for (const ubound of es2018$2.countup(min, max)) {
3768
4168
  const result = matchMultiple.call(this, node, ubound, matcher);
3769
4169
  // 如果匹配的节点数量少于ubound, 说明匹配失败, 即使尝试更长的匹配也不会成功.
3770
4170
  if (result < ubound)
@@ -3777,12 +4177,12 @@
3777
4177
  }
3778
4178
 
3779
4179
  function node(...args) {
3780
- if (Array.isArray(args[0])) {
4180
+ if (es2018$3.isArray(args[0])) {
3781
4181
  const [strings, ...values] = args;
3782
4182
  const name = concat(strings, values).join('');
3783
4183
  return (...matchers) => node(name, ...matchers);
3784
4184
  }
3785
- if (es2018$2.isString(args[0])) {
4185
+ if (es2018$3.isString(args[0])) {
3786
4186
  const [name, ...matchers] = args;
3787
4187
  return function (_node) {
3788
4188
  const result = node(...matchers).call(this, _node);
@@ -3805,8 +4205,8 @@
3805
4205
  }
3806
4206
 
3807
4207
  function repeat(times, matcher) {
3808
- es2018$3.assert(Number.isInteger(times), 'parameter times must be an integer');
3809
- es2018$3.assert(times >= 0, 'parameter number must be greater than or equal to 0');
4208
+ es2018$5.assert(Number.isInteger(times), 'parameter times must be an integer');
4209
+ es2018$5.assert(times >= 0, 'parameter number must be greater than or equal to 0');
3810
4210
  return function (node) {
3811
4211
  const result = matchMultiple.call(this, node, times, matcher);
3812
4212
  if (result === times) {
@@ -3828,7 +4228,7 @@
3828
4228
 
3829
4229
  function textContentEquals(text, { caseSensitive = true, trim = false } = {}) {
3830
4230
  return (node) => {
3831
- if (es2018$2.isNull(node.textContent))
4231
+ if (es2018$3.isNull(node.textContent))
3832
4232
  return false;
3833
4233
  let textContent = node.textContent;
3834
4234
  if (!caseSensitive) {
@@ -3843,7 +4243,7 @@
3843
4243
 
3844
4244
  function textContentIncludes(searchString, { caseSensitive = true, trim = false } = {}) {
3845
4245
  return (node) => {
3846
- if (es2018$2.isNull(node.textContent))
4246
+ if (es2018$3.isNull(node.textContent))
3847
4247
  return false;
3848
4248
  let textContent = node.textContent;
3849
4249
  if (!caseSensitive) {
@@ -3858,7 +4258,7 @@
3858
4258
 
3859
4259
  function textContentMatches(pattern, { trim = false } = {}) {
3860
4260
  return (node) => {
3861
- if (es2018$2.isNull(node.textContent))
4261
+ if (es2018$3.isNull(node.textContent))
3862
4262
  return false;
3863
4263
  let textContent = node.textContent;
3864
4264
  if (trim)
@@ -3868,12 +4268,12 @@
3868
4268
  }
3869
4269
 
3870
4270
  function textNode(...args) {
3871
- if (Array.isArray(args[0])) {
4271
+ if (es2018$3.isArray(args[0])) {
3872
4272
  const [strings, ...values] = args;
3873
4273
  const name = concat(strings, values).join('');
3874
4274
  return (...matchers) => textNode(name, ...matchers);
3875
4275
  }
3876
- if (es2018$2.isString(args[0])) {
4276
+ if (es2018$3.isString(args[0])) {
3877
4277
  const [name, ...matchers] = args;
3878
4278
  return function (node) {
3879
4279
  const result = textNode(...matchers).call(this, node);
@@ -3885,7 +4285,7 @@
3885
4285
  }
3886
4286
  const [...matchers] = args;
3887
4287
  return function (node) {
3888
- if (es2018$6.isntTextNode(node))
4288
+ if (es2018$8.isntTextNode(node))
3889
4289
  return false;
3890
4290
  if (matchers.length === 0)
3891
4291
  return true;
@@ -3897,9 +4297,9 @@
3897
4297
  ? XPathResult.UNORDERED_NODE_ITERATOR_TYPE
3898
4298
  : 4;
3899
4299
  function xpath(...args) {
3900
- if (es2018$2.isString(args[0])) {
4300
+ if (es2018$3.isString(args[0])) {
3901
4301
  const [expression] = args;
3902
- es2018$3.assert(expression.startsWith('//*'), 'XPath expressions must start with "//*"');
4302
+ es2018$5.assert(expression.startsWith('//*'), 'XPath expressions must start with "//*"');
3903
4303
  return function (node) {
3904
4304
  return xpathMatches(this.document, expression, node);
3905
4305
  };