@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.
@@ -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$6 = {};
3
+ var es2018$8 = {};
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$5 = {};
84
+ var es2018$7 = {};
85
85
 
86
86
  var middleware = {};
87
87
 
88
88
  var chunkAsync$1 = {};
89
89
 
90
- var es2018$4 = {};
90
+ var es2018$6 = {};
91
91
 
92
- var go$1 = {};
92
+ var go$3 = {};
93
93
 
94
- go$1.go = void 0;
95
- function go(fn) {
94
+ go$3.go = void 0;
95
+ function go$2(fn) {
96
96
  return fn();
97
97
  }
98
- go$1.go = go;
98
+ go$3.go = go$2;
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$1, exports);
110
+ };__exportStar(go$3, exports);
111
111
 
112
- }(es2018$4));
112
+ }(es2018$6));
113
113
 
114
- var es2018$3 = {};
114
+ var es2018$5 = {};
115
115
 
116
116
  var customError = {};
117
117
 
@@ -189,15 +189,15 @@ __exportStar(normalize$3, exports);
189
189
  __exportStar(refute$1, exports);
190
190
  __exportStar(assert$1, exports);
191
191
 
192
- }(es2018$3));
192
+ }(es2018$5));
193
193
 
194
194
  chunkAsync$1.chunkAsync = void 0;
195
- const go_1$f = es2018$4;
196
- const errors_1$m = es2018$3;
195
+ const go_1$g = es2018$6;
196
+ const errors_1$m = es2018$5;
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');
200
- return (0, go_1$f.go)(async function* () {
200
+ return (0, go_1$g.go)(async function* () {
201
201
  let buffer = [];
202
202
  for await (const element of iterable) {
203
203
  buffer.push(element);
@@ -214,297 +214,297 @@ chunkAsync$1.chunkAsync = chunkAsync;
214
214
 
215
215
  var chunkByAsync$1 = {};
216
216
 
217
- var es2018$2 = {};
217
+ var es2018$4 = {};
218
218
 
219
- var array = {};
219
+ var array$1 = {};
220
220
 
221
- array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
222
- function isArray(val) {
221
+ array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
222
+ function isArray$1(val) {
223
223
  return Array.isArray(val);
224
224
  }
225
- array.isArray = isArray;
226
- function isntArray(val) {
227
- return !isArray(val);
225
+ array$1.isArray = isArray$1;
226
+ function isntArray$1(val) {
227
+ return !isArray$1(val);
228
228
  }
229
- array.isntArray = isntArray;
230
- function isEmptyArray(val) {
229
+ array$1.isntArray = isntArray$1;
230
+ function isEmptyArray$1(val) {
231
231
  return val.length === 0;
232
232
  }
233
- array.isEmptyArray = isEmptyArray;
234
- function isntEmptyArray(val) {
233
+ array$1.isEmptyArray = isEmptyArray$1;
234
+ function isntEmptyArray$1(val) {
235
235
  return val.length !== 0;
236
236
  }
237
- array.isntEmptyArray = isntEmptyArray;
237
+ array$1.isntEmptyArray = isntEmptyArray$1;
238
238
 
239
- var asyncIterable = {};
239
+ var asyncIterable$1 = {};
240
240
 
241
- var _null = {};
241
+ var _null$1 = {};
242
242
 
243
- _null.isntNull = _null.isNull = void 0;
244
- function isNull(val) {
243
+ _null$1.isntNull = _null$1.isNull = void 0;
244
+ function isNull$1(val) {
245
245
  return val === null;
246
246
  }
247
- _null.isNull = isNull;
248
- function isntNull(val) {
249
- return !isNull(val);
247
+ _null$1.isNull = isNull$1;
248
+ function isntNull$1(val) {
249
+ return !isNull$1(val);
250
250
  }
251
- _null.isntNull = isntNull;
251
+ _null$1.isntNull = isntNull$1;
252
252
 
253
- var _undefined = {};
253
+ var _undefined$1 = {};
254
254
 
255
- _undefined.isntUndefined = _undefined.isUndefined = void 0;
256
- function isUndefined(val) {
255
+ _undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
256
+ function isUndefined$1(val) {
257
257
  return val === undefined;
258
258
  }
259
- _undefined.isUndefined = isUndefined;
260
- function isntUndefined(val) {
261
- return !isUndefined(val);
259
+ _undefined$1.isUndefined = isUndefined$1;
260
+ function isntUndefined$1(val) {
261
+ return !isUndefined$1(val);
262
262
  }
263
- _undefined.isntUndefined = isntUndefined;
263
+ _undefined$1.isntUndefined = isntUndefined$1;
264
264
 
265
- asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
266
- const null_1$1 = _null;
267
- const undefined_1$2 = _undefined;
268
- function isAsyncIterable(val) {
269
- return (0, null_1$1.isntNull)(val)
270
- && (0, undefined_1$2.isntUndefined)(val)
265
+ asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
266
+ const null_1$3 = _null$1;
267
+ const undefined_1$5 = _undefined$1;
268
+ function isAsyncIterable$1(val) {
269
+ return (0, null_1$3.isntNull)(val)
270
+ && (0, undefined_1$5.isntUndefined)(val)
271
271
  && typeof val[Symbol.asyncIterator] === 'function';
272
272
  }
273
- asyncIterable.isAsyncIterable = isAsyncIterable;
274
- function isntAsyncIterable(val) {
275
- return !isAsyncIterable(val);
273
+ asyncIterable$1.isAsyncIterable = isAsyncIterable$1;
274
+ function isntAsyncIterable$1(val) {
275
+ return !isAsyncIterable$1(val);
276
276
  }
277
- asyncIterable.isntAsyncIterable = isntAsyncIterable;
277
+ asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
278
278
 
279
- var bigint = {};
279
+ var bigint$1 = {};
280
280
 
281
- bigint.isntBigInt = bigint.isBigInt = void 0;
282
- function isBigInt(val) {
281
+ bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
282
+ function isBigInt$1(val) {
283
283
  return typeof val === 'bigint';
284
284
  }
285
- bigint.isBigInt = isBigInt;
286
- function isntBigInt(val) {
287
- return !isBigInt(val);
285
+ bigint$1.isBigInt = isBigInt$1;
286
+ function isntBigInt$1(val) {
287
+ return !isBigInt$1(val);
288
288
  }
289
- bigint.isntBigInt = isntBigInt;
289
+ bigint$1.isntBigInt = isntBigInt$1;
290
290
 
291
- var boolean = {};
291
+ var boolean$1 = {};
292
292
 
293
- boolean.isntBoolean = boolean.isBoolean = void 0;
294
- function isBoolean(val) {
293
+ boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
294
+ function isBoolean$1(val) {
295
295
  return typeof val === 'boolean';
296
296
  }
297
- boolean.isBoolean = isBoolean;
298
- function isntBoolean(val) {
299
- return !isBoolean(val);
297
+ boolean$1.isBoolean = isBoolean$1;
298
+ function isntBoolean$1(val) {
299
+ return !isBoolean$1(val);
300
300
  }
301
- boolean.isntBoolean = isntBoolean;
301
+ boolean$1.isntBoolean = isntBoolean$1;
302
302
 
303
- var char = {};
303
+ var char$1 = {};
304
304
 
305
- var string = {};
305
+ var string$1 = {};
306
306
 
307
- string.isntString = string.isString = void 0;
308
- function isString(val) {
307
+ string$1.isntString = string$1.isString = void 0;
308
+ function isString$1(val) {
309
309
  return typeof val === 'string';
310
310
  }
311
- string.isString = isString;
312
- function isntString(val) {
313
- return !isString(val);
311
+ string$1.isString = isString$1;
312
+ function isntString$1(val) {
313
+ return !isString$1(val);
314
314
  }
315
- string.isntString = isntString;
315
+ string$1.isntString = isntString$1;
316
316
 
317
- char.isntChar = char.isChar = void 0;
318
- const string_1$1 = string;
319
- function isChar(val) {
320
- return (0, string_1$1.isString)(val)
317
+ char$1.isntChar = char$1.isChar = void 0;
318
+ const string_1$3 = string$1;
319
+ function isChar$1(val) {
320
+ return (0, string_1$3.isString)(val)
321
321
  && val.length === 1;
322
322
  }
323
- char.isChar = isChar;
324
- function isntChar(val) {
325
- return !isChar(val);
323
+ char$1.isChar = isChar$1;
324
+ function isntChar$1(val) {
325
+ return !isChar$1(val);
326
326
  }
327
- char.isntChar = isntChar;
327
+ char$1.isntChar = isntChar$1;
328
328
 
329
- var date = {};
329
+ var date$1 = {};
330
330
 
331
- date.isntDate = date.isDate = void 0;
332
- function isDate(val) {
331
+ date$1.isntDate = date$1.isDate = void 0;
332
+ function isDate$1(val) {
333
333
  return val instanceof Date;
334
334
  }
335
- date.isDate = isDate;
336
- function isntDate(val) {
337
- return !isDate(val);
335
+ date$1.isDate = isDate$1;
336
+ function isntDate$1(val) {
337
+ return !isDate$1(val);
338
338
  }
339
- date.isntDate = isntDate;
339
+ date$1.isntDate = isntDate$1;
340
340
 
341
- var _enum = {};
341
+ var _enum$1 = {};
342
342
 
343
- _enum.inEnum = void 0;
344
- function inEnum(val, _enum) {
343
+ _enum$1.inEnum = void 0;
344
+ function inEnum$1(val, _enum) {
345
345
  return Object.values(_enum).includes(val);
346
346
  }
347
- _enum.inEnum = inEnum;
347
+ _enum$1.inEnum = inEnum$1;
348
348
 
349
- var error = {};
349
+ var error$1 = {};
350
350
 
351
- error.isntError = error.isError = void 0;
352
- function isError(val) {
351
+ error$1.isntError = error$1.isError = void 0;
352
+ function isError$1(val) {
353
353
  return val instanceof Error;
354
354
  }
355
- error.isError = isError;
356
- function isntError(val) {
357
- return !isError(val);
355
+ error$1.isError = isError$1;
356
+ function isntError$1(val) {
357
+ return !isError$1(val);
358
358
  }
359
- error.isntError = isntError;
359
+ error$1.isntError = isntError$1;
360
360
 
361
- var falsy = {};
361
+ var falsy$1 = {};
362
362
 
363
- falsy.isntFalsy = falsy.isFalsy = void 0;
364
- function isFalsy(val) {
363
+ falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
364
+ function isFalsy$1(val) {
365
365
  return !val;
366
366
  }
367
- falsy.isFalsy = isFalsy;
368
- function isntFalsy(val) {
369
- return !isFalsy(val);
367
+ falsy$1.isFalsy = isFalsy$1;
368
+ function isntFalsy$1(val) {
369
+ return !isFalsy$1(val);
370
370
  }
371
- falsy.isntFalsy = isntFalsy;
371
+ falsy$1.isntFalsy = isntFalsy$1;
372
372
 
373
- var _function = {};
373
+ var _function$1 = {};
374
374
 
375
- _function.isntFunction = _function.isFunction = void 0;
376
- function isFunction(val) {
375
+ _function$1.isntFunction = _function$1.isFunction = void 0;
376
+ function isFunction$1(val) {
377
377
  return typeof val === 'function';
378
378
  }
379
- _function.isFunction = isFunction;
380
- function isntFunction(val) {
381
- return !isFunction(val);
379
+ _function$1.isFunction = isFunction$1;
380
+ function isntFunction$1(val) {
381
+ return !isFunction$1(val);
382
382
  }
383
- _function.isntFunction = isntFunction;
383
+ _function$1.isntFunction = isntFunction$1;
384
384
 
385
- var iterable = {};
385
+ var iterable$1 = {};
386
386
 
387
- iterable.isntIterable = iterable.isIterable = void 0;
388
- const null_1 = _null;
389
- const undefined_1$1 = _undefined;
390
- function isIterable(val) {
391
- return (0, null_1.isntNull)(val)
392
- && (0, undefined_1$1.isntUndefined)(val)
387
+ iterable$1.isntIterable = iterable$1.isIterable = void 0;
388
+ const null_1$2 = _null$1;
389
+ const undefined_1$4 = _undefined$1;
390
+ function isIterable$1(val) {
391
+ return (0, null_1$2.isntNull)(val)
392
+ && (0, undefined_1$4.isntUndefined)(val)
393
393
  && typeof val[Symbol.iterator] === 'function';
394
394
  }
395
- iterable.isIterable = isIterable;
396
- function isntIterable(val) {
397
- return !isIterable(val);
395
+ iterable$1.isIterable = isIterable$1;
396
+ function isntIterable$1(val) {
397
+ return !isIterable$1(val);
398
398
  }
399
- iterable.isntIterable = isntIterable;
399
+ iterable$1.isntIterable = isntIterable$1;
400
400
 
401
- var jsonRpc = {};
401
+ var jsonRpc$1 = {};
402
402
 
403
- var object = {};
403
+ var object$1 = {};
404
404
 
405
- object.isntEmptyObject = object.isEmptyObject = object.isRecord = object.isntObject = object.isObject = void 0;
406
- function isObject$1(val) {
405
+ object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isRecord = object$1.isntObject = object$1.isObject = void 0;
406
+ function isObject$2(val) {
407
407
  return val !== null && typeof val === 'object';
408
408
  }
409
- object.isObject = isObject$1;
410
- function isntObject(val) {
411
- return !isObject$1(val);
409
+ object$1.isObject = isObject$2;
410
+ function isntObject$1(val) {
411
+ return !isObject$2(val);
412
412
  }
413
- object.isntObject = isntObject;
414
- function isRecord(val) {
415
- return isObject$1(val);
413
+ object$1.isntObject = isntObject$1;
414
+ function isRecord$1(val) {
415
+ return isObject$2(val);
416
416
  }
417
- object.isRecord = isRecord;
418
- function isEmptyObject(val) {
417
+ object$1.isRecord = isRecord$1;
418
+ function isEmptyObject$1(val) {
419
419
  return Object.keys(val).length === 0;
420
420
  }
421
- object.isEmptyObject = isEmptyObject;
422
- function isntEmptyObject(val) {
421
+ object$1.isEmptyObject = isEmptyObject$1;
422
+ function isntEmptyObject$1(val) {
423
423
  return Object.keys(val).length !== 0;
424
424
  }
425
- object.isntEmptyObject = isntEmptyObject;
425
+ object$1.isntEmptyObject = isntEmptyObject$1;
426
426
 
427
- var number = {};
427
+ var number$1 = {};
428
428
 
429
- number.isntNumber = number.isNumber = void 0;
430
- function isNumber(val) {
429
+ number$1.isntNumber = number$1.isNumber = void 0;
430
+ function isNumber$1(val) {
431
431
  return typeof val === 'number';
432
432
  }
433
- number.isNumber = isNumber;
434
- function isntNumber(val) {
435
- return !isNumber(val);
436
- }
437
- number.isntNumber = isntNumber;
438
-
439
- jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
440
- const array_1 = array;
441
- const object_1 = object;
442
- const string_1 = string;
443
- const number_1 = number;
444
- const undefined_1 = _undefined;
445
- function isJsonRpcId(val) {
446
- return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
447
- }
448
- function isJsonRpcParams(val) {
449
- return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
450
- }
451
- function isJsonRpcNotification(val) {
452
- return (0, object_1.isRecord)(val)
453
- && (0, string_1.isString)(val.jsonrpc)
454
- && (0, string_1.isString)(val.method)
455
- && (0, undefined_1.isUndefined)(val.id)
456
- && isJsonRpcParams(val.params);
457
- }
458
- jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
459
- function isntJsonRpcNotification(val) {
460
- return !isJsonRpcNotification(val);
461
- }
462
- jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
463
- function isJsonRpcRequest(val) {
464
- return (0, object_1.isRecord)(val)
465
- && (0, string_1.isString)(val.jsonrpc)
466
- && (0, string_1.isString)(val.method)
467
- && isJsonRpcId(val.id)
468
- && isJsonRpcParams(val.params);
469
- }
470
- jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
471
- function isntJsonRpcRequest(val) {
472
- return !isJsonRpcRequest(val);
473
- }
474
- jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
475
- function isJsonRpcSuccess(val) {
476
- return (0, object_1.isRecord)(val)
477
- && (0, string_1.isString)(val.jsonrpc)
478
- && (0, string_1.isString)(val.id)
479
- && (0, undefined_1.isntUndefined)(val.result);
480
- }
481
- jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
482
- function isntJsonRpcSuccess(val) {
483
- return !isJsonRpcSuccess(val);
484
- }
485
- jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
486
- function isJsonRpcError(val) {
487
- return (0, object_1.isRecord)(val)
488
- && (0, string_1.isString)(val.jsonrpc)
489
- && isJsonRpcId(val.id)
490
- && isJsonRpcErrorObject(val.error);
491
- }
492
- jsonRpc.isJsonRpcError = isJsonRpcError;
493
- function isntJsonRpcError(val) {
494
- return !isJsonRpcError(val);
495
- }
496
- jsonRpc.isntJsonRpcError = isntJsonRpcError;
497
- function isJsonRpcErrorObject(val) {
498
- return (0, object_1.isRecord)(val)
499
- && (0, number_1.isNumber)(val.code)
500
- && (0, string_1.isString)(val.message)
501
- && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
502
- }
503
-
504
- var json = {};
505
-
506
- json.isntJson = json.isJson = void 0;
507
- function isJson(val) {
433
+ number$1.isNumber = isNumber$1;
434
+ function isntNumber$1(val) {
435
+ return !isNumber$1(val);
436
+ }
437
+ number$1.isntNumber = isntNumber$1;
438
+
439
+ 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;
440
+ const array_1$1 = array$1;
441
+ const object_1$1 = object$1;
442
+ const string_1$2 = string$1;
443
+ const number_1$1 = number$1;
444
+ const undefined_1$3 = _undefined$1;
445
+ function isJsonRpcId$1(val) {
446
+ return (0, string_1$2.isString)(val) || (0, number_1$1.isNumber)(val);
447
+ }
448
+ function isJsonRpcParams$1(val) {
449
+ return (0, array_1$1.isArray)(val) || (0, object_1$1.isObject)(val);
450
+ }
451
+ function isJsonRpcNotification$1(val) {
452
+ return (0, object_1$1.isRecord)(val)
453
+ && (0, string_1$2.isString)(val.jsonrpc)
454
+ && (0, string_1$2.isString)(val.method)
455
+ && (0, undefined_1$3.isUndefined)(val.id)
456
+ && isJsonRpcParams$1(val.params);
457
+ }
458
+ jsonRpc$1.isJsonRpcNotification = isJsonRpcNotification$1;
459
+ function isntJsonRpcNotification$1(val) {
460
+ return !isJsonRpcNotification$1(val);
461
+ }
462
+ jsonRpc$1.isntJsonRpcNotification = isntJsonRpcNotification$1;
463
+ function isJsonRpcRequest$1(val) {
464
+ return (0, object_1$1.isRecord)(val)
465
+ && (0, string_1$2.isString)(val.jsonrpc)
466
+ && (0, string_1$2.isString)(val.method)
467
+ && isJsonRpcId$1(val.id)
468
+ && isJsonRpcParams$1(val.params);
469
+ }
470
+ jsonRpc$1.isJsonRpcRequest = isJsonRpcRequest$1;
471
+ function isntJsonRpcRequest$1(val) {
472
+ return !isJsonRpcRequest$1(val);
473
+ }
474
+ jsonRpc$1.isntJsonRpcRequest = isntJsonRpcRequest$1;
475
+ function isJsonRpcSuccess$1(val) {
476
+ return (0, object_1$1.isRecord)(val)
477
+ && (0, string_1$2.isString)(val.jsonrpc)
478
+ && (0, string_1$2.isString)(val.id)
479
+ && (0, undefined_1$3.isntUndefined)(val.result);
480
+ }
481
+ jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
482
+ function isntJsonRpcSuccess$1(val) {
483
+ return !isJsonRpcSuccess$1(val);
484
+ }
485
+ jsonRpc$1.isntJsonRpcSuccess = isntJsonRpcSuccess$1;
486
+ function isJsonRpcError$1(val) {
487
+ return (0, object_1$1.isRecord)(val)
488
+ && (0, string_1$2.isString)(val.jsonrpc)
489
+ && isJsonRpcId$1(val.id)
490
+ && isJsonRpcErrorObject$1(val.error);
491
+ }
492
+ jsonRpc$1.isJsonRpcError = isJsonRpcError$1;
493
+ function isntJsonRpcError$1(val) {
494
+ return !isJsonRpcError$1(val);
495
+ }
496
+ jsonRpc$1.isntJsonRpcError = isntJsonRpcError$1;
497
+ function isJsonRpcErrorObject$1(val) {
498
+ return (0, object_1$1.isRecord)(val)
499
+ && (0, number_1$1.isNumber)(val.code)
500
+ && (0, string_1$2.isString)(val.message)
501
+ && ((0, undefined_1$3.isUndefined)(val.data) || (0, object_1$1.isObject)(val.data));
502
+ }
503
+
504
+ var json$1 = {};
505
+
506
+ json$1.isntJson = json$1.isJson = void 0;
507
+ function isJson$1(val) {
508
508
  try {
509
509
  JSON.stringify(val);
510
510
  return true;
@@ -513,16 +513,16 @@ function isJson(val) {
513
513
  return false;
514
514
  }
515
515
  }
516
- json.isJson = isJson;
517
- function isntJson(val) {
518
- return !isntJson();
516
+ json$1.isJson = isJson$1;
517
+ function isntJson$1(val) {
518
+ return !isntJson$1();
519
519
  }
520
- json.isntJson = isntJson;
520
+ json$1.isntJson = isntJson$1;
521
521
 
522
- var url = {};
522
+ var url$1 = {};
523
523
 
524
- url.isAbsoluteURL = void 0;
525
- function isAbsoluteURL(str) {
524
+ url$1.isAbsoluteURL = void 0;
525
+ function isAbsoluteURL$1(str) {
526
526
  try {
527
527
  new URL(str);
528
528
  return true;
@@ -531,7 +531,7 @@ function isAbsoluteURL(str) {
531
531
  return false;
532
532
  }
533
533
  }
534
- url.isAbsoluteURL = isAbsoluteURL;
534
+ url$1.isAbsoluteURL = isAbsoluteURL$1;
535
535
 
536
536
  (function (exports) {
537
537
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -543,30 +543,30 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
543
543
  }));
544
544
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
545
545
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
546
- };__exportStar(array, exports);
547
- __exportStar(asyncIterable, exports);
548
- __exportStar(bigint, exports);
549
- __exportStar(boolean, exports);
550
- __exportStar(char, exports);
551
- __exportStar(date, exports);
552
- __exportStar(_enum, exports);
553
- __exportStar(error, exports);
554
- __exportStar(falsy, exports);
555
- __exportStar(_function, exports);
556
- __exportStar(iterable, exports);
557
- __exportStar(jsonRpc, exports);
558
- __exportStar(json, exports);
559
- __exportStar(_null, exports);
560
- __exportStar(number, exports);
561
- __exportStar(object, exports);
562
- __exportStar(string, exports);
563
- __exportStar(_undefined, exports);
564
- __exportStar(url, exports);
546
+ };__exportStar(array$1, exports);
547
+ __exportStar(asyncIterable$1, exports);
548
+ __exportStar(bigint$1, exports);
549
+ __exportStar(boolean$1, exports);
550
+ __exportStar(char$1, exports);
551
+ __exportStar(date$1, exports);
552
+ __exportStar(_enum$1, exports);
553
+ __exportStar(error$1, exports);
554
+ __exportStar(falsy$1, exports);
555
+ __exportStar(_function$1, exports);
556
+ __exportStar(iterable$1, exports);
557
+ __exportStar(jsonRpc$1, exports);
558
+ __exportStar(json$1, exports);
559
+ __exportStar(_null$1, exports);
560
+ __exportStar(number$1, exports);
561
+ __exportStar(object$1, exports);
562
+ __exportStar(string$1, exports);
563
+ __exportStar(_undefined$1, exports);
564
+ __exportStar(url$1, exports);
565
565
 
566
- }(es2018$2));
566
+ }(es2018$4));
567
567
 
568
568
  chunkByAsync$1.chunkByAsync = void 0;
569
- const types_1$l = es2018$2;
569
+ const types_1$l = es2018$4;
570
570
  function chunkByAsync(iterable, predicate) {
571
571
  if ((0, types_1$l.isAsyncIterable)(iterable)) {
572
572
  return chunkByAsyncIterable(iterable);
@@ -627,12 +627,12 @@ chunkBy$1.chunkBy = chunkBy;
627
627
  var chunk$1 = {};
628
628
 
629
629
  chunk$1.chunk = void 0;
630
- const go_1$e = es2018$4;
631
- const errors_1$l = es2018$3;
630
+ const go_1$f = es2018$6;
631
+ const errors_1$l = es2018$5;
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');
635
- return (0, go_1$e.go)(function* () {
635
+ return (0, go_1$f.go)(function* () {
636
636
  let buffer = [];
637
637
  for (const element of iterable) {
638
638
  buffer.push(element);
@@ -650,10 +650,10 @@ chunk$1.chunk = chunk;
650
650
  var concatAsync$1 = {};
651
651
 
652
652
  concatAsync$1.concatAsync = void 0;
653
- const types_1$k = es2018$2;
654
- const go_1$d = es2018$4;
653
+ const types_1$k = es2018$4;
654
+ const go_1$e = es2018$6;
655
655
  function concatAsync(iterable, ...otherIterables) {
656
- return (0, go_1$d.go)(async function* () {
656
+ return (0, go_1$e.go)(async function* () {
657
657
  for (const iter of [iterable, ...otherIterables]) {
658
658
  if ((0, types_1$k.isAsyncIterable)(iter)) {
659
659
  for await (const element of iter) {
@@ -673,9 +673,9 @@ concatAsync$1.concatAsync = concatAsync;
673
673
  var concat$2 = {};
674
674
 
675
675
  concat$2.concat = void 0;
676
- const go_1$c = es2018$4;
676
+ const go_1$d = es2018$6;
677
677
  function concat$1(iterable, ...otherIterables) {
678
- return (0, go_1$c.go)(function* () {
678
+ return (0, go_1$d.go)(function* () {
679
679
  for (const iter of [iterable, ...otherIterables]) {
680
680
  yield* iter;
681
681
  }
@@ -702,15 +702,15 @@ function* copyIterable(iterable) {
702
702
  utils.copyIterable = copyIterable;
703
703
 
704
704
  dropAsync$1.dropAsync = void 0;
705
- const go_1$b = es2018$4;
705
+ const go_1$c = es2018$6;
706
706
  const utils_1$3 = utils;
707
- const errors_1$k = es2018$3;
707
+ const errors_1$k = es2018$5;
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');
711
711
  if (count === 0)
712
712
  return (0, utils_1$3.copyAsyncIterable)(iterable);
713
- return (0, go_1$b.go)(async function* () {
713
+ return (0, go_1$c.go)(async function* () {
714
714
  var _a;
715
715
  const iterator = iterable[Symbol.asyncIterator]();
716
716
  let done;
@@ -737,15 +737,15 @@ dropAsync$1.dropAsync = dropAsync;
737
737
  var dropRightAsync$1 = {};
738
738
 
739
739
  dropRightAsync$1.dropRightAsync = void 0;
740
- const go_1$a = es2018$4;
740
+ const go_1$b = es2018$6;
741
741
  const utils_1$2 = utils;
742
- const errors_1$j = es2018$3;
742
+ const errors_1$j = es2018$5;
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');
746
746
  if (count === 0)
747
747
  return (0, utils_1$2.copyAsyncIterable)(iterable);
748
- return (0, go_1$a.go)(async function* () {
748
+ return (0, go_1$b.go)(async function* () {
749
749
  const arr = await toArrayAsync$2(iterable);
750
750
  const result = arr.slice(0, -count);
751
751
  for (const value of result) {
@@ -765,15 +765,15 @@ async function toArrayAsync$2(iterable) {
765
765
  var dropRight$1 = {};
766
766
 
767
767
  dropRight$1.dropRight = void 0;
768
- const go_1$9 = es2018$4;
768
+ const go_1$a = es2018$6;
769
769
  const utils_1$1 = utils;
770
- const errors_1$i = es2018$3;
770
+ const errors_1$i = es2018$5;
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');
774
774
  if (count === 0)
775
775
  return (0, utils_1$1.copyIterable)(iterable);
776
- return (0, go_1$9.go)(function* () {
776
+ return (0, go_1$a.go)(function* () {
777
777
  const arr = Array.from(iterable);
778
778
  yield* arr.slice(0, -count);
779
779
  });
@@ -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$2;
786
+ const types_1$j = es2018$4;
787
787
  function dropUntilAsync(iterable, predicate) {
788
788
  if ((0, types_1$j.isAsyncIterable)(iterable)) {
789
789
  return dropUntilAsyncIterable(iterable);
@@ -865,15 +865,15 @@ dropUntil$1.dropUntil = dropUntil;
865
865
  var drop$1 = {};
866
866
 
867
867
  drop$1.drop = void 0;
868
- const go_1$8 = es2018$4;
868
+ const go_1$9 = es2018$6;
869
869
  const utils_1 = utils;
870
- const errors_1$h = es2018$3;
870
+ const errors_1$h = es2018$5;
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');
874
874
  if (count === 0)
875
875
  return (0, utils_1.copyIterable)(iterable);
876
- return (0, go_1$8.go)(function* () {
876
+ return (0, go_1$9.go)(function* () {
877
877
  var _a;
878
878
  const iterator = iterable[Symbol.iterator]();
879
879
  let done;
@@ -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$2;
903
+ const types_1$i = es2018$4;
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$2;
950
+ const types_1$h = es2018$4;
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$3;
990
+ const errors_1$g = es2018$5;
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$2;
1008
+ const types_1$g = es2018$4;
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$3;
1031
+ const errors_1$f = es2018$5;
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$2;
1051
+ const types_1$f = es2018$4;
1052
1052
  function mapAsync(iterable, fn) {
1053
1053
  if ((0, types_1$f.isAsyncIterable)(iterable)) {
1054
1054
  return mapAsyncIterable(iterable);
@@ -1088,14 +1088,14 @@ map$1.map = map;
1088
1088
  var repeatAsync$1 = {};
1089
1089
 
1090
1090
  repeatAsync$1.repeatAsync = void 0;
1091
- const go_1$7 = es2018$4;
1092
- const errors_1$e = es2018$3;
1091
+ const go_1$8 = es2018$6;
1092
+ const errors_1$e = es2018$5;
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');
1096
1096
  if (times === Infinity)
1097
1097
  warnInfiniteLoop$1();
1098
- return (0, go_1$7.go)(async function* () {
1098
+ return (0, go_1$8.go)(async function* () {
1099
1099
  const cache = [];
1100
1100
  if (times > 0) {
1101
1101
  for await (const element of iterable) {
@@ -1123,14 +1123,14 @@ function isProduction$1() {
1123
1123
  var repeat$4 = {};
1124
1124
 
1125
1125
  repeat$4.repeat = void 0;
1126
- const go_1$6 = es2018$4;
1127
- const errors_1$d = es2018$3;
1126
+ const go_1$7 = es2018$6;
1127
+ const errors_1$d = es2018$5;
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');
1131
1131
  if (times === Infinity)
1132
1132
  warnInfiniteLoop();
1133
- return (0, go_1$6.go)(function* () {
1133
+ return (0, go_1$7.go)(function* () {
1134
1134
  const cache = [];
1135
1135
  if (times > 0) {
1136
1136
  for (const element of iterable) {
@@ -1158,14 +1158,14 @@ function isProduction() {
1158
1158
  var sliceAsync$1 = {};
1159
1159
 
1160
1160
  sliceAsync$1.sliceAsync = void 0;
1161
- const go_1$5 = es2018$4;
1162
- const errors_1$c = es2018$3;
1161
+ const go_1$6 = es2018$6;
1162
+ const errors_1$c = es2018$5;
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');
1166
1166
  (0, errors_1$c.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1167
1167
  (0, errors_1$c.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1168
- return (0, go_1$5.go)(async function* () {
1168
+ return (0, go_1$6.go)(async function* () {
1169
1169
  let index = 0;
1170
1170
  for await (const element of iterable) {
1171
1171
  if (index >= end)
@@ -1181,14 +1181,14 @@ sliceAsync$1.sliceAsync = sliceAsync;
1181
1181
  var slice$1 = {};
1182
1182
 
1183
1183
  slice$1.slice = void 0;
1184
- const go_1$4 = es2018$4;
1185
- const errors_1$b = es2018$3;
1184
+ const go_1$5 = es2018$6;
1185
+ const errors_1$b = es2018$5;
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');
1189
1189
  (0, errors_1$b.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1190
1190
  (0, errors_1$b.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1191
- return (0, go_1$4.go)(function* () {
1191
+ return (0, go_1$5.go)(function* () {
1192
1192
  let index = 0;
1193
1193
  for (const element of iterable) {
1194
1194
  if (index >= end)
@@ -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$2;
1225
+ const types_1$e = es2018$4;
1226
1226
  function splitByAsync(iterable, predicate) {
1227
1227
  if ((0, types_1$e.isAsyncIterable)(iterable)) {
1228
1228
  return splitByAsyncIterable(iterable);
@@ -1304,12 +1304,12 @@ split$1.split = split;
1304
1304
  var takeAsync$1 = {};
1305
1305
 
1306
1306
  takeAsync$1.takeAsync = void 0;
1307
- const go_1$3 = es2018$4;
1308
- const errors_1$a = es2018$3;
1307
+ const go_1$4 = es2018$6;
1308
+ const errors_1$a = es2018$5;
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');
1312
- return (0, go_1$3.go)(async function* () {
1312
+ return (0, go_1$4.go)(async function* () {
1313
1313
  if (count === 0)
1314
1314
  return;
1315
1315
  for await (const element of iterable) {
@@ -1325,12 +1325,12 @@ takeAsync$1.takeAsync = takeAsync;
1325
1325
  var takeRightAsync$1 = {};
1326
1326
 
1327
1327
  takeRightAsync$1.takeRightAsync = void 0;
1328
- const go_1$2 = es2018$4;
1329
- const errors_1$9 = es2018$3;
1328
+ const go_1$3 = es2018$6;
1329
+ const errors_1$9 = es2018$5;
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');
1333
- return (0, go_1$2.go)(async function* () {
1333
+ return (0, go_1$3.go)(async function* () {
1334
1334
  var _a;
1335
1335
  const iterator = iterable[Symbol.asyncIterator]();
1336
1336
  let done;
@@ -1355,12 +1355,12 @@ takeRightAsync$1.takeRightAsync = takeRightAsync;
1355
1355
  var takeRight$1 = {};
1356
1356
 
1357
1357
  takeRight$1.takeRight = void 0;
1358
- const go_1$1 = es2018$4;
1359
- const errors_1$8 = es2018$3;
1358
+ const go_1$2 = es2018$6;
1359
+ const errors_1$8 = es2018$5;
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');
1363
- return (0, go_1$1.go)(function* () {
1363
+ return (0, go_1$2.go)(function* () {
1364
1364
  var _a;
1365
1365
  const iterator = iterable[Symbol.iterator]();
1366
1366
  let done;
@@ -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$2;
1388
+ const types_1$d = es2018$4;
1389
1389
  function takeUntilAsync(iterable, predicate) {
1390
1390
  if ((0, types_1$d.isAsyncIterable)(iterable)) {
1391
1391
  return takeUntilAsyncIterable(iterable);
@@ -1431,12 +1431,12 @@ takeUntil$1.takeUntil = takeUntil;
1431
1431
  var take$1 = {};
1432
1432
 
1433
1433
  take$1.take = void 0;
1434
- const go_1 = es2018$4;
1435
- const errors_1$7 = es2018$3;
1434
+ const go_1$1 = es2018$6;
1435
+ const errors_1$7 = es2018$5;
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');
1439
- return (0, go_1.go)(function* () {
1439
+ return (0, go_1$1.go)(function* () {
1440
1440
  if (count === 0)
1441
1441
  return;
1442
1442
  for (const element of iterable) {
@@ -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$2;
1455
+ const types_1$c = es2018$4;
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$2;
1538
+ const types_1$b = es2018$4;
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$2;
1607
+ const types_1$a = es2018$4;
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$2;
1767
+ const types_1$9 = es2018$4;
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$2;
1807
+ const types_1$8 = es2018$4;
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$2;
1853
+ const types_1$7 = es2018$4;
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$2;
1977
+ const types_1$6 = es2018$4;
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$2;
2073
+ const types_1$5 = es2018$4;
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$2;
2120
+ const types_1$4 = es2018$4;
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$5));
2304
+ }(es2018$7));
2305
2305
 
2306
2306
  unwrap$1.unwrap = void 0;
2307
2307
  const flat_map_1 = flatMap$1;
2308
- const iterable_operator_1$2 = es2018$5;
2308
+ const iterable_operator_1$2 = es2018$7;
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$5;
2338
+ const iterable_operator_1$1 = es2018$7;
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,9 +2445,360 @@ const nodeExists = 'Node' in globalThis;
2445
2445
 
2446
2446
  }(nodeType));
2447
2447
 
2448
+ var es2018$3 = {};
2449
+
2450
+ var array = {};
2451
+
2452
+ array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
2453
+ function isArray(val) {
2454
+ return Array.isArray(val);
2455
+ }
2456
+ array.isArray = isArray;
2457
+ function isntArray(val) {
2458
+ return !isArray(val);
2459
+ }
2460
+ array.isntArray = isntArray;
2461
+ function isEmptyArray(val) {
2462
+ return val.length === 0;
2463
+ }
2464
+ array.isEmptyArray = isEmptyArray;
2465
+ function isntEmptyArray(val) {
2466
+ return val.length !== 0;
2467
+ }
2468
+ array.isntEmptyArray = isntEmptyArray;
2469
+
2470
+ var asyncIterable = {};
2471
+
2472
+ var _null = {};
2473
+
2474
+ _null.isntNull = _null.isNull = void 0;
2475
+ function isNull(val) {
2476
+ return val === null;
2477
+ }
2478
+ _null.isNull = isNull;
2479
+ function isntNull(val) {
2480
+ return !isNull(val);
2481
+ }
2482
+ _null.isntNull = isntNull;
2483
+
2484
+ var _undefined = {};
2485
+
2486
+ _undefined.isntUndefined = _undefined.isUndefined = void 0;
2487
+ function isUndefined(val) {
2488
+ return val === undefined;
2489
+ }
2490
+ _undefined.isUndefined = isUndefined;
2491
+ function isntUndefined(val) {
2492
+ return !isUndefined(val);
2493
+ }
2494
+ _undefined.isntUndefined = isntUndefined;
2495
+
2496
+ asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
2497
+ const null_1$1 = _null;
2498
+ const undefined_1$2 = _undefined;
2499
+ function isAsyncIterable(val) {
2500
+ return (0, null_1$1.isntNull)(val)
2501
+ && (0, undefined_1$2.isntUndefined)(val)
2502
+ && typeof val[Symbol.asyncIterator] === 'function';
2503
+ }
2504
+ asyncIterable.isAsyncIterable = isAsyncIterable;
2505
+ function isntAsyncIterable(val) {
2506
+ return !isAsyncIterable(val);
2507
+ }
2508
+ asyncIterable.isntAsyncIterable = isntAsyncIterable;
2509
+
2510
+ var bigint = {};
2511
+
2512
+ bigint.isntBigInt = bigint.isBigInt = void 0;
2513
+ function isBigInt(val) {
2514
+ return typeof val === 'bigint';
2515
+ }
2516
+ bigint.isBigInt = isBigInt;
2517
+ function isntBigInt(val) {
2518
+ return !isBigInt(val);
2519
+ }
2520
+ bigint.isntBigInt = isntBigInt;
2521
+
2522
+ var boolean = {};
2523
+
2524
+ boolean.isntBoolean = boolean.isBoolean = void 0;
2525
+ function isBoolean(val) {
2526
+ return typeof val === 'boolean';
2527
+ }
2528
+ boolean.isBoolean = isBoolean;
2529
+ function isntBoolean(val) {
2530
+ return !isBoolean(val);
2531
+ }
2532
+ boolean.isntBoolean = isntBoolean;
2533
+
2534
+ var char = {};
2535
+
2536
+ var string = {};
2537
+
2538
+ string.isntString = string.isString = void 0;
2539
+ function isString(val) {
2540
+ return typeof val === 'string';
2541
+ }
2542
+ string.isString = isString;
2543
+ function isntString(val) {
2544
+ return !isString(val);
2545
+ }
2546
+ string.isntString = isntString;
2547
+
2548
+ char.isntChar = char.isChar = void 0;
2549
+ const string_1$1 = string;
2550
+ function isChar(val) {
2551
+ return (0, string_1$1.isString)(val)
2552
+ && val.length === 1;
2553
+ }
2554
+ char.isChar = isChar;
2555
+ function isntChar(val) {
2556
+ return !isChar(val);
2557
+ }
2558
+ char.isntChar = isntChar;
2559
+
2560
+ var date = {};
2561
+
2562
+ date.isntDate = date.isDate = void 0;
2563
+ function isDate(val) {
2564
+ return val instanceof Date;
2565
+ }
2566
+ date.isDate = isDate;
2567
+ function isntDate(val) {
2568
+ return !isDate(val);
2569
+ }
2570
+ date.isntDate = isntDate;
2571
+
2572
+ var _enum = {};
2573
+
2574
+ _enum.inEnum = void 0;
2575
+ function inEnum(val, _enum) {
2576
+ return Object.values(_enum).includes(val);
2577
+ }
2578
+ _enum.inEnum = inEnum;
2579
+
2580
+ var error = {};
2581
+
2582
+ error.isntError = error.isError = void 0;
2583
+ function isError(val) {
2584
+ return val instanceof Error;
2585
+ }
2586
+ error.isError = isError;
2587
+ function isntError(val) {
2588
+ return !isError(val);
2589
+ }
2590
+ error.isntError = isntError;
2591
+
2592
+ var falsy = {};
2593
+
2594
+ falsy.isntFalsy = falsy.isFalsy = void 0;
2595
+ function isFalsy(val) {
2596
+ return !val;
2597
+ }
2598
+ falsy.isFalsy = isFalsy;
2599
+ function isntFalsy(val) {
2600
+ return !isFalsy(val);
2601
+ }
2602
+ falsy.isntFalsy = isntFalsy;
2603
+
2604
+ var _function = {};
2605
+
2606
+ _function.isntFunction = _function.isFunction = void 0;
2607
+ function isFunction(val) {
2608
+ return typeof val === 'function';
2609
+ }
2610
+ _function.isFunction = isFunction;
2611
+ function isntFunction(val) {
2612
+ return !isFunction(val);
2613
+ }
2614
+ _function.isntFunction = isntFunction;
2615
+
2616
+ var iterable = {};
2617
+
2618
+ iterable.isntIterable = iterable.isIterable = void 0;
2619
+ const null_1 = _null;
2620
+ const undefined_1$1 = _undefined;
2621
+ function isIterable(val) {
2622
+ return (0, null_1.isntNull)(val)
2623
+ && (0, undefined_1$1.isntUndefined)(val)
2624
+ && typeof val[Symbol.iterator] === 'function';
2625
+ }
2626
+ iterable.isIterable = isIterable;
2627
+ function isntIterable(val) {
2628
+ return !isIterable(val);
2629
+ }
2630
+ iterable.isntIterable = isntIterable;
2631
+
2632
+ var jsonRpc = {};
2633
+
2634
+ var object = {};
2635
+
2636
+ object.isntEmptyObject = object.isEmptyObject = object.isRecord = object.isntObject = object.isObject = void 0;
2637
+ function isObject$1(val) {
2638
+ return val !== null && typeof val === 'object';
2639
+ }
2640
+ object.isObject = isObject$1;
2641
+ function isntObject(val) {
2642
+ return !isObject$1(val);
2643
+ }
2644
+ object.isntObject = isntObject;
2645
+ function isRecord(val) {
2646
+ return isObject$1(val);
2647
+ }
2648
+ object.isRecord = isRecord;
2649
+ function isEmptyObject(val) {
2650
+ return Object.keys(val).length === 0;
2651
+ }
2652
+ object.isEmptyObject = isEmptyObject;
2653
+ function isntEmptyObject(val) {
2654
+ return Object.keys(val).length !== 0;
2655
+ }
2656
+ object.isntEmptyObject = isntEmptyObject;
2657
+
2658
+ var number = {};
2659
+
2660
+ number.isntNumber = number.isNumber = void 0;
2661
+ function isNumber(val) {
2662
+ return typeof val === 'number';
2663
+ }
2664
+ number.isNumber = isNumber;
2665
+ function isntNumber(val) {
2666
+ return !isNumber(val);
2667
+ }
2668
+ number.isntNumber = isntNumber;
2669
+
2670
+ jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
2671
+ const array_1 = array;
2672
+ const object_1 = object;
2673
+ const string_1 = string;
2674
+ const number_1 = number;
2675
+ const undefined_1 = _undefined;
2676
+ function isJsonRpcId(val) {
2677
+ return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
2678
+ }
2679
+ function isJsonRpcParams(val) {
2680
+ return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
2681
+ }
2682
+ function isJsonRpcNotification(val) {
2683
+ return (0, object_1.isRecord)(val)
2684
+ && (0, string_1.isString)(val.jsonrpc)
2685
+ && (0, string_1.isString)(val.method)
2686
+ && (0, undefined_1.isUndefined)(val.id)
2687
+ && isJsonRpcParams(val.params);
2688
+ }
2689
+ jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
2690
+ function isntJsonRpcNotification(val) {
2691
+ return !isJsonRpcNotification(val);
2692
+ }
2693
+ jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
2694
+ function isJsonRpcRequest(val) {
2695
+ return (0, object_1.isRecord)(val)
2696
+ && (0, string_1.isString)(val.jsonrpc)
2697
+ && (0, string_1.isString)(val.method)
2698
+ && isJsonRpcId(val.id)
2699
+ && isJsonRpcParams(val.params);
2700
+ }
2701
+ jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
2702
+ function isntJsonRpcRequest(val) {
2703
+ return !isJsonRpcRequest(val);
2704
+ }
2705
+ jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
2706
+ function isJsonRpcSuccess(val) {
2707
+ return (0, object_1.isRecord)(val)
2708
+ && (0, string_1.isString)(val.jsonrpc)
2709
+ && (0, string_1.isString)(val.id)
2710
+ && 'result' in val;
2711
+ }
2712
+ jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
2713
+ function isntJsonRpcSuccess(val) {
2714
+ return !isJsonRpcSuccess(val);
2715
+ }
2716
+ jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
2717
+ function isJsonRpcError(val) {
2718
+ return (0, object_1.isRecord)(val)
2719
+ && (0, string_1.isString)(val.jsonrpc)
2720
+ && isJsonRpcId(val.id)
2721
+ && isJsonRpcErrorObject(val.error);
2722
+ }
2723
+ jsonRpc.isJsonRpcError = isJsonRpcError;
2724
+ function isntJsonRpcError(val) {
2725
+ return !isJsonRpcError(val);
2726
+ }
2727
+ jsonRpc.isntJsonRpcError = isntJsonRpcError;
2728
+ function isJsonRpcErrorObject(val) {
2729
+ return (0, object_1.isRecord)(val)
2730
+ && (0, number_1.isNumber)(val.code)
2731
+ && (0, string_1.isString)(val.message)
2732
+ && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
2733
+ }
2734
+
2735
+ var json = {};
2736
+
2737
+ json.isntJson = json.isJson = void 0;
2738
+ function isJson(val) {
2739
+ try {
2740
+ JSON.stringify(val);
2741
+ return true;
2742
+ }
2743
+ catch (_a) {
2744
+ return false;
2745
+ }
2746
+ }
2747
+ json.isJson = isJson;
2748
+ function isntJson(val) {
2749
+ return !isntJson();
2750
+ }
2751
+ json.isntJson = isntJson;
2752
+
2753
+ var url = {};
2754
+
2755
+ url.isAbsoluteURL = void 0;
2756
+ function isAbsoluteURL(str) {
2757
+ try {
2758
+ new URL(str);
2759
+ return true;
2760
+ }
2761
+ catch (_a) {
2762
+ return false;
2763
+ }
2764
+ }
2765
+ url.isAbsoluteURL = isAbsoluteURL;
2766
+
2767
+ (function (exports) {
2768
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2769
+ if (k2 === undefined) k2 = k;
2770
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2771
+ }) : (function(o, m, k, k2) {
2772
+ if (k2 === undefined) k2 = k;
2773
+ o[k2] = m[k];
2774
+ }));
2775
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2776
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2777
+ };__exportStar(array, exports);
2778
+ __exportStar(asyncIterable, exports);
2779
+ __exportStar(bigint, exports);
2780
+ __exportStar(boolean, exports);
2781
+ __exportStar(char, exports);
2782
+ __exportStar(date, exports);
2783
+ __exportStar(_enum, exports);
2784
+ __exportStar(error, exports);
2785
+ __exportStar(falsy, exports);
2786
+ __exportStar(_function, exports);
2787
+ __exportStar(iterable, exports);
2788
+ __exportStar(jsonRpc, exports);
2789
+ __exportStar(json, exports);
2790
+ __exportStar(_null, exports);
2791
+ __exportStar(number, exports);
2792
+ __exportStar(object, exports);
2793
+ __exportStar(string, exports);
2794
+ __exportStar(_undefined, exports);
2795
+ __exportStar(url, exports);
2796
+
2797
+ }(es2018$3));
2798
+
2448
2799
  isDocument$1.isDocument = void 0;
2449
2800
  const node_type_1$2 = nodeType;
2450
- const types_1$3 = es2018$2;
2801
+ const types_1$3 = es2018$3;
2451
2802
  function isDocument(val) {
2452
2803
  if ('HTMLDocument' in globalThis && val instanceof HTMLDocument)
2453
2804
  return true;
@@ -2459,7 +2810,7 @@ var isElement$1 = {};
2459
2810
 
2460
2811
  isElement$1.isElement = void 0;
2461
2812
  const node_type_1$1 = nodeType;
2462
- const types_1$2 = es2018$2;
2813
+ const types_1$2 = es2018$3;
2463
2814
  function isElement(val) {
2464
2815
  if ('HTMLElement' in globalThis && val instanceof HTMLElement)
2465
2816
  return true;
@@ -2519,7 +2870,7 @@ var findInAncestorNodes$1 = {};
2519
2870
 
2520
2871
  findInAncestorNodes$1.findInAncestorNodes = void 0;
2521
2872
  const traverse_ancestor_nodes_1 = traverseAncestorNodes$1;
2522
- const iterable_operator_1 = es2018$5;
2873
+ const iterable_operator_1 = es2018$7;
2523
2874
  function findInAncestorNodes(node, predicate) {
2524
2875
  return (0, iterable_operator_1.find)((0, traverse_ancestor_nodes_1.traverseAncestorNodes)(node), node => predicate(node));
2525
2876
  }
@@ -2560,7 +2911,7 @@ findInPrecedingSiblingNodes$1.findInPrecedingSiblingNodes = findInPrecedingSibli
2560
2911
  var parentNode$1 = {};
2561
2912
 
2562
2913
  parentNode$1.parentNode = void 0;
2563
- const errors_1$6 = es2018$3;
2914
+ const errors_1$6 = es2018$5;
2564
2915
  function parentNode(node, distance = 1) {
2565
2916
  (0, errors_1$6.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2566
2917
  (0, errors_1$6.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2582,7 +2933,7 @@ function _parentNode(node, distance) {
2582
2933
  var nextSibling$2 = {};
2583
2934
 
2584
2935
  nextSibling$2.nextSibling = void 0;
2585
- const errors_1$5 = es2018$3;
2936
+ const errors_1$5 = es2018$5;
2586
2937
  function nextSibling$1(node, distance = 1) {
2587
2938
  (0, errors_1$5.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2588
2939
  (0, errors_1$5.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2604,30 +2955,30 @@ function _nextSibling(node, distance) {
2604
2955
  var previousSibling$1 = {};
2605
2956
 
2606
2957
  previousSibling$1.previousSibling = void 0;
2607
- const errors_1$4 = es2018$3;
2958
+ const errors_1$4 = es2018$5;
2608
2959
  function previousSibling(node, distance = 1) {
2609
2960
  (0, errors_1$4.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2610
2961
  (0, errors_1$4.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
2611
- return _previousSibling(node, distance);
2612
- }
2613
- previousSibling$1.previousSibling = previousSibling;
2614
- function _previousSibling(node, distance = 1) {
2615
- const currentNode = node.previousSibling;
2616
- if (!currentNode)
2617
- return undefined;
2618
- if (distance === 1) {
2619
- return currentNode;
2620
- }
2621
- else {
2622
- return _previousSibling(currentNode, distance - 1);
2962
+ return previousSibling(node, distance);
2963
+ function previousSibling(node, distance = 1) {
2964
+ const currentNode = node.previousSibling;
2965
+ if (!currentNode)
2966
+ return undefined;
2967
+ if (distance === 1) {
2968
+ return currentNode;
2969
+ }
2970
+ else {
2971
+ return previousSibling(currentNode, distance - 1);
2972
+ }
2623
2973
  }
2624
2974
  }
2975
+ previousSibling$1.previousSibling = previousSibling;
2625
2976
 
2626
2977
  var nextElementSibling$2 = {};
2627
2978
 
2628
2979
  nextElementSibling$2.nextElementSibling = void 0;
2629
2980
  const is_element_1$2 = isElement$1;
2630
- const errors_1$3 = es2018$3;
2981
+ const errors_1$3 = es2018$5;
2631
2982
  function nextElementSibling$1(node, distance = 1) {
2632
2983
  (0, errors_1$3.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2633
2984
  (0, errors_1$3.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2655,29 +3006,29 @@ var previousElementSibling$1 = {};
2655
3006
 
2656
3007
  previousElementSibling$1.previousElementSibling = void 0;
2657
3008
  const is_element_1$1 = isElement$1;
2658
- const errors_1$2 = es2018$3;
3009
+ const errors_1$2 = es2018$5;
2659
3010
  function previousElementSibling(node, distance = 1) {
2660
3011
  (0, errors_1$2.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2661
3012
  (0, errors_1$2.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
2662
- return _previousElementSibling(node, distance);
2663
- }
2664
- previousElementSibling$1.previousElementSibling = previousElementSibling;
2665
- function _previousElementSibling(node, distance = 1) {
2666
- const currentNode = node.previousSibling;
2667
- if (!currentNode)
2668
- return undefined;
2669
- if ((0, is_element_1$1.isElement)(currentNode)) {
2670
- if (distance === 1) {
2671
- return currentNode;
3013
+ return previousElementSibling(node, distance);
3014
+ function previousElementSibling(node, distance = 1) {
3015
+ const currentNode = node.previousSibling;
3016
+ if (!currentNode)
3017
+ return undefined;
3018
+ if ((0, is_element_1$1.isElement)(currentNode)) {
3019
+ if (distance === 1) {
3020
+ return currentNode;
3021
+ }
3022
+ else {
3023
+ return previousElementSibling(currentNode, distance - 1);
3024
+ }
2672
3025
  }
2673
3026
  else {
2674
- return _previousElementSibling(currentNode, distance - 1);
3027
+ return previousElementSibling(currentNode, distance);
2675
3028
  }
2676
3029
  }
2677
- else {
2678
- return _previousElementSibling(currentNode, distance);
2679
- }
2680
3030
  }
3031
+ previousElementSibling$1.previousElementSibling = previousElementSibling;
2681
3032
 
2682
3033
  var isntDocument$1 = {};
2683
3034
 
@@ -2700,7 +3051,7 @@ isntElement$1.isntElement = isntElement;
2700
3051
  var isNode$1 = {};
2701
3052
 
2702
3053
  isNode$1.isNode = void 0;
2703
- const types_1$1 = es2018$2;
3054
+ const types_1$1 = es2018$3;
2704
3055
  function isNode(val) {
2705
3056
  if ('Node' in globalThis && val instanceof Node)
2706
3057
  return true;
@@ -2721,7 +3072,7 @@ var isTextNode$1 = {};
2721
3072
 
2722
3073
  isTextNode$1.isTextNode = void 0;
2723
3074
  const node_type_1 = nodeType;
2724
- const types_1 = es2018$2;
3075
+ const types_1 = es2018$3;
2725
3076
  function isTextNode(val) {
2726
3077
  if ('Text' in globalThis && val instanceof Text)
2727
3078
  return true;
@@ -2887,7 +3238,7 @@ __exportStar(replaceBrWithNewline$1, exports);
2887
3238
  __exportStar(isBefore$1, exports);
2888
3239
  __exportStar(isAfter$1, exports);
2889
3240
 
2890
- }(es2018$6));
3241
+ }(es2018$8));
2891
3242
 
2892
3243
  function matchOneByOne(context, source, ...matchers) {
2893
3244
  if (matchers.length === 0)
@@ -2897,7 +3248,7 @@ function matchOneByOne(context, source, ...matchers) {
2897
3248
  const [matcher, ...otherMatchers] = matchers;
2898
3249
  const result = Reflect.apply(matcher, context, [source]);
2899
3250
  // TerminalMatcher
2900
- if (es2018$2.isBoolean(result)) {
3251
+ if (es2018$3.isBoolean(result)) {
2901
3252
  if (result) {
2902
3253
  const nextNode = context.next(source);
2903
3254
  return matchOneByOne(context, nextNode, ...otherMatchers);
@@ -2907,13 +3258,13 @@ function matchOneByOne(context, source, ...matchers) {
2907
3258
  }
2908
3259
  }
2909
3260
  // 此处一定是成功匹配, 因为SkipMatcher在失败时会返回false.
2910
- if (es2018$2.isNumber(result)) {
3261
+ if (es2018$3.isNumber(result)) {
2911
3262
  const distance = result;
2912
3263
  const nextNode = context.next(source, distance);
2913
3264
  return matchOneByOne(context, nextNode, ...otherMatchers);
2914
3265
  }
2915
3266
  // SkipMatcher返回Iterable意味着存在多种可能性, 可能出现失败回溯.
2916
- if (es2018$2.isIterable(result)) {
3267
+ if (es2018$3.isIterable(result)) {
2917
3268
  for (const distance of result) {
2918
3269
  const nextNode = context.next(source, distance);
2919
3270
  if (matchOneByOne(context, nextNode, ...otherMatchers)) {
@@ -2929,11 +3280,11 @@ function matchOneByOne(context, source, ...matchers) {
2929
3280
  function nextSibling(node, distance = 1) {
2930
3281
  if (distance === 0)
2931
3282
  return node;
2932
- return es2018$6.nextSibling(node, distance);
3283
+ return es2018$8.nextSibling(node, distance);
2933
3284
  }
2934
3285
 
2935
3286
  function match(node, ...matchers) {
2936
- const document = es2018$6.isDocument(this) ? this : globalThis.document;
3287
+ const document = es2018$8.isDocument(this) ? this : globalThis.document;
2937
3288
  const context = {
2938
3289
  document,
2939
3290
  collection: {},
@@ -2950,11 +3301,11 @@ function match(node, ...matchers) {
2950
3301
  function nextElementSibling(node, distance = 1) {
2951
3302
  if (distance === 0)
2952
3303
  return node;
2953
- return es2018$6.nextElementSibling(node, distance);
3304
+ return es2018$8.nextElementSibling(node, distance);
2954
3305
  }
2955
3306
 
2956
3307
  function matchElement(element, ...matchers) {
2957
- const document = es2018$6.isDocument(this) ? this : globalThis.document;
3308
+ const document = es2018$8.isDocument(this) ? this : globalThis.document;
2958
3309
  const context = {
2959
3310
  document,
2960
3311
  collection: {},
@@ -2977,8 +3328,8 @@ function anyOf(...matchers) {
2977
3328
  function merge(target, source) {
2978
3329
  for (const [key, value] of Object.entries(source)) {
2979
3330
  if (target[key]) {
2980
- if (Array.isArray(target[key])) {
2981
- if (Array.isArray(value)) {
3331
+ if (es2018$3.isArray(target[key])) {
3332
+ if (es2018$3.isArray(value)) {
2982
3333
  target[key] = [...target[key], ...value];
2983
3334
  }
2984
3335
  else {
@@ -2986,7 +3337,7 @@ function merge(target, source) {
2986
3337
  }
2987
3338
  }
2988
3339
  else {
2989
- if (Array.isArray(value)) {
3340
+ if (es2018$3.isArray(value)) {
2990
3341
  target[key] = [target[key], ...value];
2991
3342
  }
2992
3343
  else {
@@ -3045,7 +3396,7 @@ function concat(strings, values) {
3045
3396
  }
3046
3397
 
3047
3398
  function css(...args) {
3048
- if (es2018$2.isString(args[0])) {
3399
+ if (es2018$3.isString(args[0])) {
3049
3400
  const [selector] = args;
3050
3401
  return (element) => element.matches(selector);
3051
3402
  }
@@ -3057,12 +3408,12 @@ function css(...args) {
3057
3408
  }
3058
3409
 
3059
3410
  function element(...args) {
3060
- if (Array.isArray(args[0])) {
3411
+ if (es2018$3.isArray(args[0])) {
3061
3412
  const [strings, ...values] = args;
3062
3413
  const name = concat(strings, values).join('');
3063
3414
  return (...matchers) => element(name, ...matchers);
3064
3415
  }
3065
- if (es2018$2.isString(args[0])) {
3416
+ if (es2018$3.isString(args[0])) {
3066
3417
  const [name, ...matchers] = args;
3067
3418
  return function (_element) {
3068
3419
  const result = element(...matchers).call(this, _element);
@@ -3074,7 +3425,7 @@ function element(...args) {
3074
3425
  }
3075
3426
  const [...matchers] = args;
3076
3427
  return function (element) {
3077
- if (es2018$6.isntElement(element))
3428
+ if (es2018$8.isntElement(element))
3078
3429
  return false;
3079
3430
  if (matchers.length === 0)
3080
3431
  return true;
@@ -3082,7 +3433,7 @@ function element(...args) {
3082
3433
  };
3083
3434
  }
3084
3435
 
3085
- var es2018$1 = {};
3436
+ var es2018$2 = {};
3086
3437
 
3087
3438
  var of$1 = {};
3088
3439
 
@@ -3094,15 +3445,40 @@ of$1.of = of;
3094
3445
 
3095
3446
  var repeat$2 = {};
3096
3447
 
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
+
3097
3472
  repeat$2.repeat = void 0;
3098
- const errors_1$1 = es2018$3;
3473
+ const errors_1$1 = es2018$5;
3474
+ const go_1 = es2018$1;
3099
3475
  function repeat$1(val, times = Infinity) {
3100
3476
  (0, errors_1$1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
3101
- return (function* () {
3477
+ return (0, go_1.go)(function* () {
3102
3478
  while (times-- > 0) {
3103
3479
  yield val;
3104
3480
  }
3105
- })();
3481
+ });
3106
3482
  }
3107
3483
  repeat$2.repeat = repeat$1;
3108
3484
 
@@ -3133,7 +3509,7 @@ countup$1.countup = countup;
3133
3509
  var range$1 = {};
3134
3510
 
3135
3511
  range$1.range = void 0;
3136
- const errors_1 = es2018$3;
3512
+ const errors_1 = es2018$5;
3137
3513
  function range(start, end, step = 1) {
3138
3514
  (0, errors_1.assert)(step > 0, 'step parameter must be greater than 0');
3139
3515
  return rangeByUnsignedStep(start, end, step);
@@ -3690,6 +4066,29 @@ class ReusableAsyncIterable {
3690
4066
  }
3691
4067
  reusableAsyncIterable.ReusableAsyncIterable = ReusableAsyncIterable;
3692
4068
 
4069
+ var timestampBasedId$1 = {};
4070
+
4071
+ timestampBasedId$1.timestampBasedId = void 0;
4072
+ function* timestampBasedId() {
4073
+ const num = 0;
4074
+ const timestamp = Date.now();
4075
+ yield [timestamp, num];
4076
+ let lastTimestamp = timestamp;
4077
+ let lastNum = num;
4078
+ while (true) {
4079
+ const timestamp = Date.now();
4080
+ if (timestamp === lastTimestamp) {
4081
+ yield [lastTimestamp, ++lastNum];
4082
+ }
4083
+ else {
4084
+ lastNum = 0;
4085
+ lastTimestamp = timestamp;
4086
+ yield [lastTimestamp, lastNum];
4087
+ }
4088
+ }
4089
+ }
4090
+ timestampBasedId$1.timestampBasedId = timestampBasedId;
4091
+
3693
4092
  (function (exports) {
3694
4093
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3695
4094
  if (k2 === undefined) k2 = k;
@@ -3712,15 +4111,16 @@ __exportStar(stringifyNdjsonStreamAsync, exports);
3712
4111
  __exportStar(sse$1, exports);
3713
4112
  __exportStar(reusableIterable, exports);
3714
4113
  __exportStar(reusableAsyncIterable, exports);
4114
+ __exportStar(timestampBasedId$1, exports);
3715
4115
 
3716
- }(es2018$1));
4116
+ }(es2018$2));
3717
4117
 
3718
4118
  /**
3719
4119
  * @returns {number} 返回值为成功匹配的元素个数, 当此值等于ubound时, 代表匹配成功.
3720
4120
  */
3721
4121
  function matchMultiple(node, ubound, matcher) {
3722
4122
  let currentNode = node;
3723
- for (const round of es2018$1.countup(1, ubound)) {
4123
+ for (const round of es2018$2.countup(1, ubound)) {
3724
4124
  if (!currentNode)
3725
4125
  return round - 1;
3726
4126
  const result = matcher.call(this, currentNode);
@@ -3740,10 +4140,10 @@ var Range;
3740
4140
  Range[Range["Max"] = 1] = "Max";
3741
4141
  })(Range || (Range = {}));
3742
4142
  function multiple([min, max], matcher, options = { greedy: true }) {
3743
- es2018$3.assert(Number.isInteger(min), 'parameter min must be an integer');
3744
- es2018$3.assert(Number.isInteger(max) || max === Infinity, 'parameter max must be an integer or Infinity');
3745
- es2018$3.assert(min >= 0, 'parameter min must be greater than or equal to 0');
3746
- es2018$3.assert(min <= max, 'parameter max must be greater than or equal to min');
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');
3747
4147
  return function* (node) {
3748
4148
  if (options.greedy) {
3749
4149
  let ubound = max;
@@ -3758,7 +4158,7 @@ function multiple([min, max], matcher, options = { greedy: true }) {
3758
4158
  }
3759
4159
  }
3760
4160
  else {
3761
- for (const ubound of es2018$1.countup(min, max)) {
4161
+ for (const ubound of es2018$2.countup(min, max)) {
3762
4162
  const result = matchMultiple.call(this, node, ubound, matcher);
3763
4163
  // 如果匹配的节点数量少于ubound, 说明匹配失败, 即使尝试更长的匹配也不会成功.
3764
4164
  if (result < ubound)
@@ -3771,12 +4171,12 @@ function multiple([min, max], matcher, options = { greedy: true }) {
3771
4171
  }
3772
4172
 
3773
4173
  function node(...args) {
3774
- if (Array.isArray(args[0])) {
4174
+ if (es2018$3.isArray(args[0])) {
3775
4175
  const [strings, ...values] = args;
3776
4176
  const name = concat(strings, values).join('');
3777
4177
  return (...matchers) => node(name, ...matchers);
3778
4178
  }
3779
- if (es2018$2.isString(args[0])) {
4179
+ if (es2018$3.isString(args[0])) {
3780
4180
  const [name, ...matchers] = args;
3781
4181
  return function (_node) {
3782
4182
  const result = node(...matchers).call(this, _node);
@@ -3799,8 +4199,8 @@ function optional(matcher) {
3799
4199
  }
3800
4200
 
3801
4201
  function repeat(times, matcher) {
3802
- es2018$3.assert(Number.isInteger(times), 'parameter times must be an integer');
3803
- es2018$3.assert(times >= 0, 'parameter number must be greater than or equal to 0');
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');
3804
4204
  return function (node) {
3805
4205
  const result = matchMultiple.call(this, node, times, matcher);
3806
4206
  if (result === times) {
@@ -3822,7 +4222,7 @@ function tap(matcher, callback) {
3822
4222
 
3823
4223
  function textContentEquals(text, { caseSensitive = true, trim = false } = {}) {
3824
4224
  return (node) => {
3825
- if (es2018$2.isNull(node.textContent))
4225
+ if (es2018$3.isNull(node.textContent))
3826
4226
  return false;
3827
4227
  let textContent = node.textContent;
3828
4228
  if (!caseSensitive) {
@@ -3837,7 +4237,7 @@ function textContentEquals(text, { caseSensitive = true, trim = false } = {}) {
3837
4237
 
3838
4238
  function textContentIncludes(searchString, { caseSensitive = true, trim = false } = {}) {
3839
4239
  return (node) => {
3840
- if (es2018$2.isNull(node.textContent))
4240
+ if (es2018$3.isNull(node.textContent))
3841
4241
  return false;
3842
4242
  let textContent = node.textContent;
3843
4243
  if (!caseSensitive) {
@@ -3852,7 +4252,7 @@ function textContentIncludes(searchString, { caseSensitive = true, trim = false
3852
4252
 
3853
4253
  function textContentMatches(pattern, { trim = false } = {}) {
3854
4254
  return (node) => {
3855
- if (es2018$2.isNull(node.textContent))
4255
+ if (es2018$3.isNull(node.textContent))
3856
4256
  return false;
3857
4257
  let textContent = node.textContent;
3858
4258
  if (trim)
@@ -3862,12 +4262,12 @@ function textContentMatches(pattern, { trim = false } = {}) {
3862
4262
  }
3863
4263
 
3864
4264
  function textNode(...args) {
3865
- if (Array.isArray(args[0])) {
4265
+ if (es2018$3.isArray(args[0])) {
3866
4266
  const [strings, ...values] = args;
3867
4267
  const name = concat(strings, values).join('');
3868
4268
  return (...matchers) => textNode(name, ...matchers);
3869
4269
  }
3870
- if (es2018$2.isString(args[0])) {
4270
+ if (es2018$3.isString(args[0])) {
3871
4271
  const [name, ...matchers] = args;
3872
4272
  return function (node) {
3873
4273
  const result = textNode(...matchers).call(this, node);
@@ -3879,7 +4279,7 @@ function textNode(...args) {
3879
4279
  }
3880
4280
  const [...matchers] = args;
3881
4281
  return function (node) {
3882
- if (es2018$6.isntTextNode(node))
4282
+ if (es2018$8.isntTextNode(node))
3883
4283
  return false;
3884
4284
  if (matchers.length === 0)
3885
4285
  return true;
@@ -3891,9 +4291,9 @@ const UNORDERED_NODE_ITERATOR_TYPE = 'XPathResult' in globalThis
3891
4291
  ? XPathResult.UNORDERED_NODE_ITERATOR_TYPE
3892
4292
  : 4;
3893
4293
  function xpath(...args) {
3894
- if (es2018$2.isString(args[0])) {
4294
+ if (es2018$3.isString(args[0])) {
3895
4295
  const [expression] = args;
3896
- es2018$3.assert(expression.startsWith('//*'), 'XPath expressions must start with "//*"');
4296
+ es2018$5.assert(expression.startsWith('//*'), 'XPath expressions must start with "//*"');
3897
4297
  return function (node) {
3898
4298
  return xpathMatches(this.document, expression, node);
3899
4299
  };