@blackglory/structures 0.3.2 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/es2015/index.min.mjs +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +2780 -409
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +2780 -409
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +1 -1
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +2780 -409
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +2780 -409
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +1 -1
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/finite-state-machine.d.ts +1 -0
- package/lib/es2015/finite-state-machine.js +4 -1
- package/lib/es2015/finite-state-machine.js.map +1 -1
- package/lib/es2015/index.js +5 -1
- package/lib/es2015/index.js.map +1 -1
- package/lib/es2018/finite-state-machine.d.ts +1 -0
- package/lib/es2018/finite-state-machine.js +4 -1
- package/lib/es2018/finite-state-machine.js.map +1 -1
- package/lib/es2018/index.js +5 -1
- package/lib/es2018/index.js.map +1 -1
- package/package.json +23 -23
package/dist/es2015/index.umd.js
CHANGED
|
@@ -239,30 +239,2458 @@
|
|
|
239
239
|
|
|
240
240
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
241
241
|
|
|
242
|
-
var es2018$
|
|
242
|
+
var es2018$b = {};
|
|
243
|
+
|
|
244
|
+
var customError$1 = {};
|
|
245
|
+
|
|
246
|
+
var es2018$a = {};
|
|
247
|
+
|
|
248
|
+
var middleware$1 = {};
|
|
249
|
+
|
|
250
|
+
var chunkAsync$3 = {};
|
|
251
|
+
|
|
252
|
+
var es2018$9 = {};
|
|
253
|
+
|
|
254
|
+
var go$3 = {};
|
|
255
|
+
|
|
256
|
+
go$3.go = void 0;
|
|
257
|
+
function go$2(fn) {
|
|
258
|
+
return fn();
|
|
259
|
+
}
|
|
260
|
+
go$3.go = go$2;
|
|
261
|
+
|
|
262
|
+
(function (exports) {
|
|
263
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
264
|
+
if (k2 === undefined) k2 = k;
|
|
265
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
266
|
+
}) : (function(o, m, k, k2) {
|
|
267
|
+
if (k2 === undefined) k2 = k;
|
|
268
|
+
o[k2] = m[k];
|
|
269
|
+
}));
|
|
270
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
271
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
272
|
+
};__exportStar(go$3, exports);
|
|
273
|
+
|
|
274
|
+
}(es2018$9));
|
|
275
|
+
|
|
276
|
+
var es2018$8 = {};
|
|
277
|
+
|
|
278
|
+
var customError = {};
|
|
279
|
+
|
|
280
|
+
customError.CustomError = void 0;
|
|
281
|
+
class CustomError$1 extends Error {
|
|
282
|
+
get name() {
|
|
283
|
+
return this.constructor.name;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
customError.CustomError = CustomError$1;
|
|
287
|
+
|
|
288
|
+
var expectedError = {};
|
|
289
|
+
|
|
290
|
+
expectedError.ExpectedError = void 0;
|
|
291
|
+
const custom_error_1$2 = customError;
|
|
292
|
+
class ExpectedError extends custom_error_1$2.CustomError {
|
|
293
|
+
}
|
|
294
|
+
expectedError.ExpectedError = ExpectedError;
|
|
295
|
+
|
|
296
|
+
var assertionError$1 = {};
|
|
297
|
+
|
|
298
|
+
assertionError$1.AssertionError = void 0;
|
|
299
|
+
const custom_error_1$1 = customError;
|
|
300
|
+
class AssertionError$1 extends custom_error_1$1.CustomError {
|
|
301
|
+
}
|
|
302
|
+
assertionError$1.AssertionError = AssertionError$1;
|
|
303
|
+
|
|
304
|
+
var normalize$3 = {};
|
|
305
|
+
|
|
306
|
+
normalize$3.normalize = void 0;
|
|
307
|
+
function normalize$2(err) {
|
|
308
|
+
var _a;
|
|
309
|
+
return {
|
|
310
|
+
name: err.name,
|
|
311
|
+
message: err.message,
|
|
312
|
+
stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
normalize$3.normalize = normalize$2;
|
|
316
|
+
|
|
317
|
+
var refute$1 = {};
|
|
318
|
+
|
|
319
|
+
refute$1.refute = void 0;
|
|
320
|
+
const expected_error_1 = expectedError;
|
|
321
|
+
function refute(condition, message) {
|
|
322
|
+
if (condition)
|
|
323
|
+
throw new expected_error_1.ExpectedError(message);
|
|
324
|
+
}
|
|
325
|
+
refute$1.refute = refute;
|
|
326
|
+
|
|
327
|
+
var assert$3 = {};
|
|
328
|
+
|
|
329
|
+
assert$3.assert = void 0;
|
|
330
|
+
const assertion_error_1$1 = assertionError$1;
|
|
331
|
+
function assert$2(condition, message) {
|
|
332
|
+
if (!condition)
|
|
333
|
+
throw new assertion_error_1$1.AssertionError(message);
|
|
334
|
+
}
|
|
335
|
+
assert$3.assert = assert$2;
|
|
336
|
+
|
|
337
|
+
(function (exports) {
|
|
338
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
339
|
+
if (k2 === undefined) k2 = k;
|
|
340
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
341
|
+
}) : (function(o, m, k, k2) {
|
|
342
|
+
if (k2 === undefined) k2 = k;
|
|
343
|
+
o[k2] = m[k];
|
|
344
|
+
}));
|
|
345
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
346
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
347
|
+
};__exportStar(customError, exports);
|
|
348
|
+
__exportStar(expectedError, exports);
|
|
349
|
+
__exportStar(assertionError$1, exports);
|
|
350
|
+
__exportStar(normalize$3, exports);
|
|
351
|
+
__exportStar(refute$1, exports);
|
|
352
|
+
__exportStar(assert$3, exports);
|
|
353
|
+
|
|
354
|
+
}(es2018$8));
|
|
355
|
+
|
|
356
|
+
chunkAsync$3.chunkAsync = void 0;
|
|
357
|
+
const go_1$v = es2018$9;
|
|
358
|
+
const errors_1$v = es2018$8;
|
|
359
|
+
function chunkAsync$2(iterable, size) {
|
|
360
|
+
(0, errors_1$v.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
361
|
+
(0, errors_1$v.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
362
|
+
return (0, go_1$v.go)(async function* () {
|
|
363
|
+
let buffer = [];
|
|
364
|
+
for await (const element of iterable) {
|
|
365
|
+
buffer.push(element);
|
|
366
|
+
if (buffer.length >= size) {
|
|
367
|
+
yield buffer;
|
|
368
|
+
buffer = [];
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
if (buffer.length)
|
|
372
|
+
yield buffer;
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
chunkAsync$3.chunkAsync = chunkAsync$2;
|
|
376
|
+
|
|
377
|
+
var chunkByAsync$3 = {};
|
|
378
|
+
|
|
379
|
+
var es2018$7 = {};
|
|
380
|
+
|
|
381
|
+
var array$2 = {};
|
|
382
|
+
|
|
383
|
+
array$2.isntEmptyArray = array$2.isEmptyArray = array$2.isntArray = array$2.isArray = void 0;
|
|
384
|
+
function isArray$2(val) {
|
|
385
|
+
return Array.isArray(val);
|
|
386
|
+
}
|
|
387
|
+
array$2.isArray = isArray$2;
|
|
388
|
+
function isntArray$2(val) {
|
|
389
|
+
return !isArray$2(val);
|
|
390
|
+
}
|
|
391
|
+
array$2.isntArray = isntArray$2;
|
|
392
|
+
function isEmptyArray$2(val) {
|
|
393
|
+
return val.length === 0;
|
|
394
|
+
}
|
|
395
|
+
array$2.isEmptyArray = isEmptyArray$2;
|
|
396
|
+
function isntEmptyArray$2(val) {
|
|
397
|
+
return val.length !== 0;
|
|
398
|
+
}
|
|
399
|
+
array$2.isntEmptyArray = isntEmptyArray$2;
|
|
400
|
+
|
|
401
|
+
var asyncIterable$2 = {};
|
|
402
|
+
|
|
403
|
+
var _null$2 = {};
|
|
404
|
+
|
|
405
|
+
_null$2.isntNull = _null$2.isNull = void 0;
|
|
406
|
+
function isNull$2(val) {
|
|
407
|
+
return val === null;
|
|
408
|
+
}
|
|
409
|
+
_null$2.isNull = isNull$2;
|
|
410
|
+
function isntNull$2(val) {
|
|
411
|
+
return !isNull$2(val);
|
|
412
|
+
}
|
|
413
|
+
_null$2.isntNull = isntNull$2;
|
|
414
|
+
|
|
415
|
+
var _undefined$2 = {};
|
|
416
|
+
|
|
417
|
+
_undefined$2.isntUndefined = _undefined$2.isUndefined = void 0;
|
|
418
|
+
function isUndefined$2(val) {
|
|
419
|
+
return val === undefined;
|
|
420
|
+
}
|
|
421
|
+
_undefined$2.isUndefined = isUndefined$2;
|
|
422
|
+
function isntUndefined$2(val) {
|
|
423
|
+
return !isUndefined$2(val);
|
|
424
|
+
}
|
|
425
|
+
_undefined$2.isntUndefined = isntUndefined$2;
|
|
426
|
+
|
|
427
|
+
asyncIterable$2.isntAsyncIterable = asyncIterable$2.isAsyncIterable = void 0;
|
|
428
|
+
const null_1$6 = _null$2;
|
|
429
|
+
const undefined_1$7 = _undefined$2;
|
|
430
|
+
function isAsyncIterable$2(val) {
|
|
431
|
+
return (0, null_1$6.isntNull)(val)
|
|
432
|
+
&& (0, undefined_1$7.isntUndefined)(val)
|
|
433
|
+
&& typeof val[Symbol.asyncIterator] === 'function';
|
|
434
|
+
}
|
|
435
|
+
asyncIterable$2.isAsyncIterable = isAsyncIterable$2;
|
|
436
|
+
function isntAsyncIterable$2(val) {
|
|
437
|
+
return !isAsyncIterable$2(val);
|
|
438
|
+
}
|
|
439
|
+
asyncIterable$2.isntAsyncIterable = isntAsyncIterable$2;
|
|
440
|
+
|
|
441
|
+
var bigint$2 = {};
|
|
442
|
+
|
|
443
|
+
bigint$2.isntBigInt = bigint$2.isBigInt = void 0;
|
|
444
|
+
function isBigInt$2(val) {
|
|
445
|
+
return typeof val === 'bigint';
|
|
446
|
+
}
|
|
447
|
+
bigint$2.isBigInt = isBigInt$2;
|
|
448
|
+
function isntBigInt$2(val) {
|
|
449
|
+
return !isBigInt$2(val);
|
|
450
|
+
}
|
|
451
|
+
bigint$2.isntBigInt = isntBigInt$2;
|
|
452
|
+
|
|
453
|
+
var boolean$2 = {};
|
|
454
|
+
|
|
455
|
+
boolean$2.isntBoolean = boolean$2.isBoolean = void 0;
|
|
456
|
+
function isBoolean$2(val) {
|
|
457
|
+
return typeof val === 'boolean';
|
|
458
|
+
}
|
|
459
|
+
boolean$2.isBoolean = isBoolean$2;
|
|
460
|
+
function isntBoolean$2(val) {
|
|
461
|
+
return !isBoolean$2(val);
|
|
462
|
+
}
|
|
463
|
+
boolean$2.isntBoolean = isntBoolean$2;
|
|
464
|
+
|
|
465
|
+
var char$2 = {};
|
|
466
|
+
|
|
467
|
+
var string$2 = {};
|
|
468
|
+
|
|
469
|
+
string$2.isntString = string$2.isString = void 0;
|
|
470
|
+
function isString$2(val) {
|
|
471
|
+
return typeof val === 'string';
|
|
472
|
+
}
|
|
473
|
+
string$2.isString = isString$2;
|
|
474
|
+
function isntString$2(val) {
|
|
475
|
+
return !isString$2(val);
|
|
476
|
+
}
|
|
477
|
+
string$2.isntString = isntString$2;
|
|
478
|
+
|
|
479
|
+
char$2.isntChar = char$2.isChar = void 0;
|
|
480
|
+
const string_1$5 = string$2;
|
|
481
|
+
function isChar$2(val) {
|
|
482
|
+
return (0, string_1$5.isString)(val)
|
|
483
|
+
&& val.length === 1;
|
|
484
|
+
}
|
|
485
|
+
char$2.isChar = isChar$2;
|
|
486
|
+
function isntChar$2(val) {
|
|
487
|
+
return !isChar$2(val);
|
|
488
|
+
}
|
|
489
|
+
char$2.isntChar = isntChar$2;
|
|
490
|
+
|
|
491
|
+
var date$2 = {};
|
|
492
|
+
|
|
493
|
+
date$2.isntDate = date$2.isDate = void 0;
|
|
494
|
+
function isDate$2(val) {
|
|
495
|
+
return val instanceof Date;
|
|
496
|
+
}
|
|
497
|
+
date$2.isDate = isDate$2;
|
|
498
|
+
function isntDate$2(val) {
|
|
499
|
+
return !isDate$2(val);
|
|
500
|
+
}
|
|
501
|
+
date$2.isntDate = isntDate$2;
|
|
502
|
+
|
|
503
|
+
var _enum$2 = {};
|
|
504
|
+
|
|
505
|
+
_enum$2.inEnum = void 0;
|
|
506
|
+
function inEnum$2(val, _enum) {
|
|
507
|
+
return Object.values(_enum).includes(val);
|
|
508
|
+
}
|
|
509
|
+
_enum$2.inEnum = inEnum$2;
|
|
510
|
+
|
|
511
|
+
var error$2 = {};
|
|
512
|
+
|
|
513
|
+
error$2.isntError = error$2.isError = void 0;
|
|
514
|
+
function isError$2(val) {
|
|
515
|
+
return val instanceof Error;
|
|
516
|
+
}
|
|
517
|
+
error$2.isError = isError$2;
|
|
518
|
+
function isntError$2(val) {
|
|
519
|
+
return !isError$2(val);
|
|
520
|
+
}
|
|
521
|
+
error$2.isntError = isntError$2;
|
|
522
|
+
|
|
523
|
+
var falsy$2 = {};
|
|
524
|
+
|
|
525
|
+
falsy$2.isntFalsy = falsy$2.isFalsy = void 0;
|
|
526
|
+
function isFalsy$2(val) {
|
|
527
|
+
return !val;
|
|
528
|
+
}
|
|
529
|
+
falsy$2.isFalsy = isFalsy$2;
|
|
530
|
+
function isntFalsy$2(val) {
|
|
531
|
+
return !isFalsy$2(val);
|
|
532
|
+
}
|
|
533
|
+
falsy$2.isntFalsy = isntFalsy$2;
|
|
534
|
+
|
|
535
|
+
var _function$2 = {};
|
|
536
|
+
|
|
537
|
+
_function$2.isntFunction = _function$2.isFunction = void 0;
|
|
538
|
+
function isFunction$3(val) {
|
|
539
|
+
return typeof val === 'function';
|
|
540
|
+
}
|
|
541
|
+
_function$2.isFunction = isFunction$3;
|
|
542
|
+
function isntFunction$2(val) {
|
|
543
|
+
return !isFunction$3(val);
|
|
544
|
+
}
|
|
545
|
+
_function$2.isntFunction = isntFunction$2;
|
|
546
|
+
|
|
547
|
+
var iterable$2 = {};
|
|
548
|
+
|
|
549
|
+
iterable$2.isntIterable = iterable$2.isIterable = void 0;
|
|
550
|
+
const null_1$5 = _null$2;
|
|
551
|
+
const undefined_1$6 = _undefined$2;
|
|
552
|
+
function isIterable$2(val) {
|
|
553
|
+
return (0, null_1$5.isntNull)(val)
|
|
554
|
+
&& (0, undefined_1$6.isntUndefined)(val)
|
|
555
|
+
&& typeof val[Symbol.iterator] === 'function';
|
|
556
|
+
}
|
|
557
|
+
iterable$2.isIterable = isIterable$2;
|
|
558
|
+
function isntIterable$2(val) {
|
|
559
|
+
return !isIterable$2(val);
|
|
560
|
+
}
|
|
561
|
+
iterable$2.isntIterable = isntIterable$2;
|
|
562
|
+
|
|
563
|
+
var jsonRpc$1 = {};
|
|
564
|
+
|
|
565
|
+
var object$2 = {};
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
569
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
570
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
571
|
+
* Released under MIT license <https://lodash.com/license>
|
|
572
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
573
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
574
|
+
*/
|
|
575
|
+
|
|
576
|
+
/** `Object#toString` result references. */
|
|
577
|
+
var objectTag = '[object Object]';
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Checks if `value` is a host object in IE < 9.
|
|
581
|
+
*
|
|
582
|
+
* @private
|
|
583
|
+
* @param {*} value The value to check.
|
|
584
|
+
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
585
|
+
*/
|
|
586
|
+
function isHostObject(value) {
|
|
587
|
+
// Many host objects are `Object` objects that can coerce to strings
|
|
588
|
+
// despite having improperly defined `toString` methods.
|
|
589
|
+
var result = false;
|
|
590
|
+
if (value != null && typeof value.toString != 'function') {
|
|
591
|
+
try {
|
|
592
|
+
result = !!(value + '');
|
|
593
|
+
} catch (e) {}
|
|
594
|
+
}
|
|
595
|
+
return result;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
600
|
+
*
|
|
601
|
+
* @private
|
|
602
|
+
* @param {Function} func The function to wrap.
|
|
603
|
+
* @param {Function} transform The argument transform.
|
|
604
|
+
* @returns {Function} Returns the new function.
|
|
605
|
+
*/
|
|
606
|
+
function overArg(func, transform) {
|
|
607
|
+
return function(arg) {
|
|
608
|
+
return func(transform(arg));
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/** Used for built-in method references. */
|
|
613
|
+
var funcProto = Function.prototype,
|
|
614
|
+
objectProto = Object.prototype;
|
|
615
|
+
|
|
616
|
+
/** Used to resolve the decompiled source of functions. */
|
|
617
|
+
var funcToString = funcProto.toString;
|
|
618
|
+
|
|
619
|
+
/** Used to check objects for own properties. */
|
|
620
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
621
|
+
|
|
622
|
+
/** Used to infer the `Object` constructor. */
|
|
623
|
+
var objectCtorString = funcToString.call(Object);
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Used to resolve the
|
|
627
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
628
|
+
* of values.
|
|
629
|
+
*/
|
|
630
|
+
var objectToString = objectProto.toString;
|
|
631
|
+
|
|
632
|
+
/** Built-in value references. */
|
|
633
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
637
|
+
* and has a `typeof` result of "object".
|
|
638
|
+
*
|
|
639
|
+
* @static
|
|
640
|
+
* @memberOf _
|
|
641
|
+
* @since 4.0.0
|
|
642
|
+
* @category Lang
|
|
643
|
+
* @param {*} value The value to check.
|
|
644
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
645
|
+
* @example
|
|
646
|
+
*
|
|
647
|
+
* _.isObjectLike({});
|
|
648
|
+
* // => true
|
|
649
|
+
*
|
|
650
|
+
* _.isObjectLike([1, 2, 3]);
|
|
651
|
+
* // => true
|
|
652
|
+
*
|
|
653
|
+
* _.isObjectLike(_.noop);
|
|
654
|
+
* // => false
|
|
655
|
+
*
|
|
656
|
+
* _.isObjectLike(null);
|
|
657
|
+
* // => false
|
|
658
|
+
*/
|
|
659
|
+
function isObjectLike(value) {
|
|
660
|
+
return !!value && typeof value == 'object';
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
665
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
666
|
+
*
|
|
667
|
+
* @static
|
|
668
|
+
* @memberOf _
|
|
669
|
+
* @since 0.8.0
|
|
670
|
+
* @category Lang
|
|
671
|
+
* @param {*} value The value to check.
|
|
672
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
673
|
+
* @example
|
|
674
|
+
*
|
|
675
|
+
* function Foo() {
|
|
676
|
+
* this.a = 1;
|
|
677
|
+
* }
|
|
678
|
+
*
|
|
679
|
+
* _.isPlainObject(new Foo);
|
|
680
|
+
* // => false
|
|
681
|
+
*
|
|
682
|
+
* _.isPlainObject([1, 2, 3]);
|
|
683
|
+
* // => false
|
|
684
|
+
*
|
|
685
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
686
|
+
* // => true
|
|
687
|
+
*
|
|
688
|
+
* _.isPlainObject(Object.create(null));
|
|
689
|
+
* // => true
|
|
690
|
+
*/
|
|
691
|
+
function isPlainObject$3(value) {
|
|
692
|
+
if (!isObjectLike(value) ||
|
|
693
|
+
objectToString.call(value) != objectTag || isHostObject(value)) {
|
|
694
|
+
return false;
|
|
695
|
+
}
|
|
696
|
+
var proto = getPrototype(value);
|
|
697
|
+
if (proto === null) {
|
|
698
|
+
return true;
|
|
699
|
+
}
|
|
700
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
701
|
+
return (typeof Ctor == 'function' &&
|
|
702
|
+
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
var lodash_isplainobject = isPlainObject$3;
|
|
706
|
+
|
|
707
|
+
var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
708
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
709
|
+
};object$2.isntEmptyObject = object$2.isEmptyObject = object$2.isntPlainObject = object$2.isPlainObject = object$2.isntObject = object$2.isObject = void 0;
|
|
710
|
+
const lodash_isplainobject_1$2 = __importDefault$2(lodash_isplainobject);
|
|
711
|
+
function isObject$2(val) {
|
|
712
|
+
return val !== null
|
|
713
|
+
&& typeof val === 'object';
|
|
714
|
+
}
|
|
715
|
+
object$2.isObject = isObject$2;
|
|
716
|
+
function isntObject$2(val) {
|
|
717
|
+
return !isObject$2(val);
|
|
718
|
+
}
|
|
719
|
+
object$2.isntObject = isntObject$2;
|
|
720
|
+
function isPlainObject$2(val) {
|
|
721
|
+
return (0, lodash_isplainobject_1$2.default)(val);
|
|
722
|
+
}
|
|
723
|
+
object$2.isPlainObject = isPlainObject$2;
|
|
724
|
+
function isntPlainObject$2(val) {
|
|
725
|
+
return !isPlainObject$2(val);
|
|
726
|
+
}
|
|
727
|
+
object$2.isntPlainObject = isntPlainObject$2;
|
|
728
|
+
function isEmptyObject$2(val) {
|
|
729
|
+
return Object.keys(val).length === 0;
|
|
730
|
+
}
|
|
731
|
+
object$2.isEmptyObject = isEmptyObject$2;
|
|
732
|
+
function isntEmptyObject$2(val) {
|
|
733
|
+
return Object.keys(val).length !== 0;
|
|
734
|
+
}
|
|
735
|
+
object$2.isntEmptyObject = isntEmptyObject$2;
|
|
736
|
+
|
|
737
|
+
var number$2 = {};
|
|
738
|
+
|
|
739
|
+
number$2.isntNumber = number$2.isNumber = void 0;
|
|
740
|
+
function isNumber$2(val) {
|
|
741
|
+
return typeof val === 'number';
|
|
742
|
+
}
|
|
743
|
+
number$2.isNumber = isNumber$2;
|
|
744
|
+
function isntNumber$2(val) {
|
|
745
|
+
return !isNumber$2(val);
|
|
746
|
+
}
|
|
747
|
+
number$2.isntNumber = isntNumber$2;
|
|
748
|
+
|
|
749
|
+
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;
|
|
750
|
+
const array_1$2 = array$2;
|
|
751
|
+
const object_1$3 = object$2;
|
|
752
|
+
const string_1$4 = string$2;
|
|
753
|
+
const number_1$2 = number$2;
|
|
754
|
+
const undefined_1$5 = _undefined$2;
|
|
755
|
+
function isJsonRpcId$1(val) {
|
|
756
|
+
return (0, string_1$4.isString)(val) || (0, number_1$2.isNumber)(val);
|
|
757
|
+
}
|
|
758
|
+
function isJsonRpcParams$1(val) {
|
|
759
|
+
return (0, array_1$2.isArray)(val) || (0, object_1$3.isObject)(val);
|
|
760
|
+
}
|
|
761
|
+
function isJsonRpcNotification$1(val) {
|
|
762
|
+
return (0, object_1$3.isPlainObject)(val)
|
|
763
|
+
&& (0, string_1$4.isString)(val.jsonrpc)
|
|
764
|
+
&& (0, string_1$4.isString)(val.method)
|
|
765
|
+
&& (0, undefined_1$5.isUndefined)(val.id)
|
|
766
|
+
&& isJsonRpcParams$1(val.params);
|
|
767
|
+
}
|
|
768
|
+
jsonRpc$1.isJsonRpcNotification = isJsonRpcNotification$1;
|
|
769
|
+
function isntJsonRpcNotification$1(val) {
|
|
770
|
+
return !isJsonRpcNotification$1(val);
|
|
771
|
+
}
|
|
772
|
+
jsonRpc$1.isntJsonRpcNotification = isntJsonRpcNotification$1;
|
|
773
|
+
function isJsonRpcRequest$1(val) {
|
|
774
|
+
return (0, object_1$3.isPlainObject)(val)
|
|
775
|
+
&& (0, string_1$4.isString)(val.jsonrpc)
|
|
776
|
+
&& (0, string_1$4.isString)(val.method)
|
|
777
|
+
&& isJsonRpcId$1(val.id)
|
|
778
|
+
&& isJsonRpcParams$1(val.params);
|
|
779
|
+
}
|
|
780
|
+
jsonRpc$1.isJsonRpcRequest = isJsonRpcRequest$1;
|
|
781
|
+
function isntJsonRpcRequest$1(val) {
|
|
782
|
+
return !isJsonRpcRequest$1(val);
|
|
783
|
+
}
|
|
784
|
+
jsonRpc$1.isntJsonRpcRequest = isntJsonRpcRequest$1;
|
|
785
|
+
function isJsonRpcSuccess$1(val) {
|
|
786
|
+
return (0, object_1$3.isPlainObject)(val)
|
|
787
|
+
&& (0, string_1$4.isString)(val.jsonrpc)
|
|
788
|
+
&& (0, string_1$4.isString)(val.id)
|
|
789
|
+
&& 'result' in val;
|
|
790
|
+
}
|
|
791
|
+
jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
|
|
792
|
+
function isntJsonRpcSuccess$1(val) {
|
|
793
|
+
return !isJsonRpcSuccess$1(val);
|
|
794
|
+
}
|
|
795
|
+
jsonRpc$1.isntJsonRpcSuccess = isntJsonRpcSuccess$1;
|
|
796
|
+
function isJsonRpcError$1(val) {
|
|
797
|
+
return (0, object_1$3.isPlainObject)(val)
|
|
798
|
+
&& (0, string_1$4.isString)(val.jsonrpc)
|
|
799
|
+
&& isJsonRpcId$1(val.id)
|
|
800
|
+
&& isJsonRpcErrorObject$1(val.error);
|
|
801
|
+
}
|
|
802
|
+
jsonRpc$1.isJsonRpcError = isJsonRpcError$1;
|
|
803
|
+
function isntJsonRpcError$1(val) {
|
|
804
|
+
return !isJsonRpcError$1(val);
|
|
805
|
+
}
|
|
806
|
+
jsonRpc$1.isntJsonRpcError = isntJsonRpcError$1;
|
|
807
|
+
function isJsonRpcErrorObject$1(val) {
|
|
808
|
+
return (0, object_1$3.isPlainObject)(val)
|
|
809
|
+
&& (0, number_1$2.isNumber)(val.code)
|
|
810
|
+
&& (0, string_1$4.isString)(val.message)
|
|
811
|
+
&& ((0, undefined_1$5.isUndefined)(val.data) || (0, object_1$3.isObject)(val.data));
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
var json$2 = {};
|
|
815
|
+
|
|
816
|
+
json$2.isntJson = json$2.isJson = void 0;
|
|
817
|
+
function isJson$2(val) {
|
|
818
|
+
try {
|
|
819
|
+
JSON.stringify(val);
|
|
820
|
+
return true;
|
|
821
|
+
}
|
|
822
|
+
catch (_a) {
|
|
823
|
+
return false;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
json$2.isJson = isJson$2;
|
|
827
|
+
function isntJson$2(val) {
|
|
828
|
+
return !isntJson$2();
|
|
829
|
+
}
|
|
830
|
+
json$2.isntJson = isntJson$2;
|
|
831
|
+
|
|
832
|
+
var url$2 = {};
|
|
833
|
+
|
|
834
|
+
url$2.isAbsoluteURL = void 0;
|
|
835
|
+
function isAbsoluteURL$2(str) {
|
|
836
|
+
try {
|
|
837
|
+
new URL(str);
|
|
838
|
+
return true;
|
|
839
|
+
}
|
|
840
|
+
catch (_a) {
|
|
841
|
+
return false;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
url$2.isAbsoluteURL = isAbsoluteURL$2;
|
|
845
|
+
|
|
846
|
+
(function (exports) {
|
|
847
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
848
|
+
if (k2 === undefined) k2 = k;
|
|
849
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
850
|
+
}) : (function(o, m, k, k2) {
|
|
851
|
+
if (k2 === undefined) k2 = k;
|
|
852
|
+
o[k2] = m[k];
|
|
853
|
+
}));
|
|
854
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
855
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
856
|
+
};__exportStar(array$2, exports);
|
|
857
|
+
__exportStar(asyncIterable$2, exports);
|
|
858
|
+
__exportStar(bigint$2, exports);
|
|
859
|
+
__exportStar(boolean$2, exports);
|
|
860
|
+
__exportStar(char$2, exports);
|
|
861
|
+
__exportStar(date$2, exports);
|
|
862
|
+
__exportStar(_enum$2, exports);
|
|
863
|
+
__exportStar(error$2, exports);
|
|
864
|
+
__exportStar(falsy$2, exports);
|
|
865
|
+
__exportStar(_function$2, exports);
|
|
866
|
+
__exportStar(iterable$2, exports);
|
|
867
|
+
__exportStar(jsonRpc$1, exports);
|
|
868
|
+
__exportStar(json$2, exports);
|
|
869
|
+
__exportStar(_null$2, exports);
|
|
870
|
+
__exportStar(number$2, exports);
|
|
871
|
+
__exportStar(object$2, exports);
|
|
872
|
+
__exportStar(string$2, exports);
|
|
873
|
+
__exportStar(_undefined$2, exports);
|
|
874
|
+
__exportStar(url$2, exports);
|
|
875
|
+
|
|
876
|
+
}(es2018$7));
|
|
877
|
+
|
|
878
|
+
chunkByAsync$3.chunkByAsync = void 0;
|
|
879
|
+
const types_1$C = es2018$7;
|
|
880
|
+
function chunkByAsync$2(iterable, predicate) {
|
|
881
|
+
if ((0, types_1$C.isAsyncIterable)(iterable)) {
|
|
882
|
+
return chunkByAsyncIterable(iterable);
|
|
883
|
+
}
|
|
884
|
+
else {
|
|
885
|
+
return chunkByIterable(iterable);
|
|
886
|
+
}
|
|
887
|
+
async function* chunkByAsyncIterable(iterable) {
|
|
888
|
+
let buffer = [];
|
|
889
|
+
let index = 0;
|
|
890
|
+
for await (const element of iterable) {
|
|
891
|
+
buffer.push(element);
|
|
892
|
+
if (await predicate(element, index)) {
|
|
893
|
+
yield buffer;
|
|
894
|
+
buffer = [];
|
|
895
|
+
}
|
|
896
|
+
index++;
|
|
897
|
+
}
|
|
898
|
+
if (buffer.length)
|
|
899
|
+
yield buffer;
|
|
900
|
+
}
|
|
901
|
+
async function* chunkByIterable(iterable) {
|
|
902
|
+
let buffer = [];
|
|
903
|
+
let index = 0;
|
|
904
|
+
for (const element of iterable) {
|
|
905
|
+
buffer.push(element);
|
|
906
|
+
if (await predicate(element, index)) {
|
|
907
|
+
yield buffer;
|
|
908
|
+
buffer = [];
|
|
909
|
+
}
|
|
910
|
+
index++;
|
|
911
|
+
}
|
|
912
|
+
if (buffer.length)
|
|
913
|
+
yield buffer;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
chunkByAsync$3.chunkByAsync = chunkByAsync$2;
|
|
917
|
+
|
|
918
|
+
var chunkBy$3 = {};
|
|
919
|
+
|
|
920
|
+
chunkBy$3.chunkBy = void 0;
|
|
921
|
+
function* chunkBy$2(iterable, predicate) {
|
|
922
|
+
let buffer = [];
|
|
923
|
+
let index = 0;
|
|
924
|
+
for (const element of iterable) {
|
|
925
|
+
buffer.push(element);
|
|
926
|
+
if (predicate(element, index)) {
|
|
927
|
+
yield buffer;
|
|
928
|
+
buffer = [];
|
|
929
|
+
}
|
|
930
|
+
index++;
|
|
931
|
+
}
|
|
932
|
+
if (buffer.length)
|
|
933
|
+
yield buffer;
|
|
934
|
+
}
|
|
935
|
+
chunkBy$3.chunkBy = chunkBy$2;
|
|
936
|
+
|
|
937
|
+
var chunk$3 = {};
|
|
938
|
+
|
|
939
|
+
chunk$3.chunk = void 0;
|
|
940
|
+
const go_1$u = es2018$9;
|
|
941
|
+
const errors_1$u = es2018$8;
|
|
942
|
+
function chunk$2(iterable, size) {
|
|
943
|
+
(0, errors_1$u.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
944
|
+
(0, errors_1$u.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
945
|
+
return (0, go_1$u.go)(function* () {
|
|
946
|
+
let buffer = [];
|
|
947
|
+
for (const element of iterable) {
|
|
948
|
+
buffer.push(element);
|
|
949
|
+
if (buffer.length >= size) {
|
|
950
|
+
yield buffer;
|
|
951
|
+
buffer = [];
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
if (buffer.length)
|
|
955
|
+
yield buffer;
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
chunk$3.chunk = chunk$2;
|
|
959
|
+
|
|
960
|
+
var concatAsync$3 = {};
|
|
961
|
+
|
|
962
|
+
concatAsync$3.concatAsync = void 0;
|
|
963
|
+
const types_1$B = es2018$7;
|
|
964
|
+
const go_1$t = es2018$9;
|
|
965
|
+
function concatAsync$2(iterable, ...otherIterables) {
|
|
966
|
+
return (0, go_1$t.go)(async function* () {
|
|
967
|
+
for (const iter of [iterable, ...otherIterables]) {
|
|
968
|
+
if ((0, types_1$B.isAsyncIterable)(iter)) {
|
|
969
|
+
for await (const element of iter) {
|
|
970
|
+
yield element;
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
else {
|
|
974
|
+
for (const element of iter) {
|
|
975
|
+
yield element;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
concatAsync$3.concatAsync = concatAsync$2;
|
|
982
|
+
|
|
983
|
+
var concat$3 = {};
|
|
984
|
+
|
|
985
|
+
concat$3.concat = void 0;
|
|
986
|
+
const go_1$s = es2018$9;
|
|
987
|
+
function concat$2(iterable, ...otherIterables) {
|
|
988
|
+
return (0, go_1$s.go)(function* () {
|
|
989
|
+
for (const iter of [iterable, ...otherIterables]) {
|
|
990
|
+
yield* iter;
|
|
991
|
+
}
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
concat$3.concat = concat$2;
|
|
995
|
+
|
|
996
|
+
var dropAsync$3 = {};
|
|
997
|
+
|
|
998
|
+
var utils$1 = {};
|
|
999
|
+
|
|
1000
|
+
utils$1.copyIterable = utils$1.copyAsyncIterable = void 0;
|
|
1001
|
+
async function* copyAsyncIterable$1(iterable) {
|
|
1002
|
+
for await (const element of iterable) {
|
|
1003
|
+
yield element;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
utils$1.copyAsyncIterable = copyAsyncIterable$1;
|
|
1007
|
+
function* copyIterable$1(iterable) {
|
|
1008
|
+
for (const element of iterable) {
|
|
1009
|
+
yield element;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
utils$1.copyIterable = copyIterable$1;
|
|
1013
|
+
|
|
1014
|
+
dropAsync$3.dropAsync = void 0;
|
|
1015
|
+
const go_1$r = es2018$9;
|
|
1016
|
+
const utils_1$7 = utils$1;
|
|
1017
|
+
const errors_1$t = es2018$8;
|
|
1018
|
+
function dropAsync$2(iterable, count) {
|
|
1019
|
+
(0, errors_1$t.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1020
|
+
(0, errors_1$t.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1021
|
+
if (count === 0)
|
|
1022
|
+
return (0, utils_1$7.copyAsyncIterable)(iterable);
|
|
1023
|
+
return (0, go_1$r.go)(async function* () {
|
|
1024
|
+
var _a;
|
|
1025
|
+
const iterator = iterable[Symbol.asyncIterator]();
|
|
1026
|
+
let done;
|
|
1027
|
+
try {
|
|
1028
|
+
let value;
|
|
1029
|
+
while ({ value, done } = await iterator.next(), !done) {
|
|
1030
|
+
if (count <= 0)
|
|
1031
|
+
break;
|
|
1032
|
+
count--;
|
|
1033
|
+
}
|
|
1034
|
+
while (!done) {
|
|
1035
|
+
yield value;
|
|
1036
|
+
({ value, done } = await iterator.next());
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
finally {
|
|
1040
|
+
if (!done)
|
|
1041
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
1042
|
+
}
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
dropAsync$3.dropAsync = dropAsync$2;
|
|
1046
|
+
|
|
1047
|
+
var dropRightAsync$3 = {};
|
|
1048
|
+
|
|
1049
|
+
dropRightAsync$3.dropRightAsync = void 0;
|
|
1050
|
+
const go_1$q = es2018$9;
|
|
1051
|
+
const utils_1$6 = utils$1;
|
|
1052
|
+
const errors_1$s = es2018$8;
|
|
1053
|
+
function dropRightAsync$2(iterable, count) {
|
|
1054
|
+
(0, errors_1$s.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1055
|
+
(0, errors_1$s.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1056
|
+
if (count === 0)
|
|
1057
|
+
return (0, utils_1$6.copyAsyncIterable)(iterable);
|
|
1058
|
+
return (0, go_1$q.go)(async function* () {
|
|
1059
|
+
const arr = await toArrayAsync$5(iterable);
|
|
1060
|
+
const result = arr.slice(0, -count);
|
|
1061
|
+
for (const value of result) {
|
|
1062
|
+
yield value;
|
|
1063
|
+
}
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
dropRightAsync$3.dropRightAsync = dropRightAsync$2;
|
|
1067
|
+
async function toArrayAsync$5(iterable) {
|
|
1068
|
+
const result = [];
|
|
1069
|
+
for await (const element of iterable) {
|
|
1070
|
+
result.push(element);
|
|
1071
|
+
}
|
|
1072
|
+
return result;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
var dropRight$3 = {};
|
|
1076
|
+
|
|
1077
|
+
dropRight$3.dropRight = void 0;
|
|
1078
|
+
const go_1$p = es2018$9;
|
|
1079
|
+
const utils_1$5 = utils$1;
|
|
1080
|
+
const errors_1$r = es2018$8;
|
|
1081
|
+
function dropRight$2(iterable, count) {
|
|
1082
|
+
(0, errors_1$r.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1083
|
+
(0, errors_1$r.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1084
|
+
if (count === 0)
|
|
1085
|
+
return (0, utils_1$5.copyIterable)(iterable);
|
|
1086
|
+
return (0, go_1$p.go)(function* () {
|
|
1087
|
+
const arr = Array.from(iterable);
|
|
1088
|
+
yield* arr.slice(0, -count);
|
|
1089
|
+
});
|
|
1090
|
+
}
|
|
1091
|
+
dropRight$3.dropRight = dropRight$2;
|
|
1092
|
+
|
|
1093
|
+
var dropUntilAsync$3 = {};
|
|
1094
|
+
|
|
1095
|
+
dropUntilAsync$3.dropUntilAsync = void 0;
|
|
1096
|
+
const types_1$A = es2018$7;
|
|
1097
|
+
function dropUntilAsync$2(iterable, predicate) {
|
|
1098
|
+
if ((0, types_1$A.isAsyncIterable)(iterable)) {
|
|
1099
|
+
return dropUntilAsyncIterable(iterable);
|
|
1100
|
+
}
|
|
1101
|
+
else {
|
|
1102
|
+
return dropUntilIterable(iterable);
|
|
1103
|
+
}
|
|
1104
|
+
async function* dropUntilAsyncIterable(iterable) {
|
|
1105
|
+
var _a;
|
|
1106
|
+
const iterator = iterable[Symbol.asyncIterator]();
|
|
1107
|
+
let done;
|
|
1108
|
+
try {
|
|
1109
|
+
let index = 0;
|
|
1110
|
+
let value;
|
|
1111
|
+
while ({ value, done } = await iterator.next(), !done) {
|
|
1112
|
+
if (await predicate(value, index++))
|
|
1113
|
+
break;
|
|
1114
|
+
}
|
|
1115
|
+
while (!done) {
|
|
1116
|
+
yield value;
|
|
1117
|
+
({ value, done } = await iterator.next());
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
finally {
|
|
1121
|
+
if (!done)
|
|
1122
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
async function* dropUntilIterable(iterable) {
|
|
1126
|
+
var _a;
|
|
1127
|
+
const iterator = iterable[Symbol.iterator]();
|
|
1128
|
+
let done;
|
|
1129
|
+
try {
|
|
1130
|
+
let index = 0;
|
|
1131
|
+
let value;
|
|
1132
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
1133
|
+
if (await predicate(value, index++))
|
|
1134
|
+
break;
|
|
1135
|
+
}
|
|
1136
|
+
while (!done) {
|
|
1137
|
+
yield value;
|
|
1138
|
+
({ value, done } = iterator.next());
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
finally {
|
|
1142
|
+
if (!done)
|
|
1143
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
dropUntilAsync$3.dropUntilAsync = dropUntilAsync$2;
|
|
1148
|
+
|
|
1149
|
+
var dropUntil$3 = {};
|
|
1150
|
+
|
|
1151
|
+
dropUntil$3.dropUntil = void 0;
|
|
1152
|
+
function* dropUntil$2(iterable, predicate) {
|
|
1153
|
+
var _a;
|
|
1154
|
+
const iterator = iterable[Symbol.iterator]();
|
|
1155
|
+
let done;
|
|
1156
|
+
try {
|
|
1157
|
+
let index = 0;
|
|
1158
|
+
let value;
|
|
1159
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
1160
|
+
if (predicate(value, index++))
|
|
1161
|
+
break;
|
|
1162
|
+
}
|
|
1163
|
+
while (!done) {
|
|
1164
|
+
yield value;
|
|
1165
|
+
({ value, done } = iterator.next());
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
finally {
|
|
1169
|
+
if (!done)
|
|
1170
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
dropUntil$3.dropUntil = dropUntil$2;
|
|
1174
|
+
|
|
1175
|
+
var drop$3 = {};
|
|
1176
|
+
|
|
1177
|
+
drop$3.drop = void 0;
|
|
1178
|
+
const go_1$o = es2018$9;
|
|
1179
|
+
const utils_1$4 = utils$1;
|
|
1180
|
+
const errors_1$q = es2018$8;
|
|
1181
|
+
function drop$2(iterable, count) {
|
|
1182
|
+
(0, errors_1$q.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1183
|
+
(0, errors_1$q.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1184
|
+
if (count === 0)
|
|
1185
|
+
return (0, utils_1$4.copyIterable)(iterable);
|
|
1186
|
+
return (0, go_1$o.go)(function* () {
|
|
1187
|
+
var _a;
|
|
1188
|
+
const iterator = iterable[Symbol.iterator]();
|
|
1189
|
+
let done;
|
|
1190
|
+
try {
|
|
1191
|
+
let value;
|
|
1192
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
1193
|
+
if (count <= 0)
|
|
1194
|
+
break;
|
|
1195
|
+
count--;
|
|
1196
|
+
}
|
|
1197
|
+
while (!done) {
|
|
1198
|
+
yield value;
|
|
1199
|
+
({ value, done } = iterator.next());
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
finally {
|
|
1203
|
+
if (!done)
|
|
1204
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
1205
|
+
}
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
drop$3.drop = drop$2;
|
|
1209
|
+
|
|
1210
|
+
var filterAsync$3 = {};
|
|
1211
|
+
|
|
1212
|
+
filterAsync$3.filterAsync = void 0;
|
|
1213
|
+
const types_1$z = es2018$7;
|
|
1214
|
+
function filterAsync$2(iterable, predicate) {
|
|
1215
|
+
if ((0, types_1$z.isAsyncIterable)(iterable)) {
|
|
1216
|
+
return filterAsyncIterable(iterable);
|
|
1217
|
+
}
|
|
1218
|
+
else {
|
|
1219
|
+
return filterIterable(iterable);
|
|
1220
|
+
}
|
|
1221
|
+
async function* filterAsyncIterable(iterable) {
|
|
1222
|
+
let index = 0;
|
|
1223
|
+
for await (const element of iterable) {
|
|
1224
|
+
if (await predicate(element, index))
|
|
1225
|
+
yield element;
|
|
1226
|
+
index++;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
async function* filterIterable(iterable) {
|
|
1230
|
+
let index = 0;
|
|
1231
|
+
for (const element of iterable) {
|
|
1232
|
+
if (await predicate(element, index))
|
|
1233
|
+
yield element;
|
|
1234
|
+
index++;
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
filterAsync$3.filterAsync = filterAsync$2;
|
|
1239
|
+
|
|
1240
|
+
var filter$3 = {};
|
|
1241
|
+
|
|
1242
|
+
filter$3.filter = void 0;
|
|
1243
|
+
function* filter$2(iterable, predicate) {
|
|
1244
|
+
let index = 0;
|
|
1245
|
+
for (const element of iterable) {
|
|
1246
|
+
if (predicate(element, index))
|
|
1247
|
+
yield element;
|
|
1248
|
+
index++;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
filter$3.filter = filter$2;
|
|
1252
|
+
|
|
1253
|
+
var flattenAsync$3 = {};
|
|
1254
|
+
|
|
1255
|
+
var flattenDeepAsync$3 = {};
|
|
1256
|
+
|
|
1257
|
+
var flattenByAsync$3 = {};
|
|
1258
|
+
|
|
1259
|
+
flattenByAsync$3.flattenByAsync = void 0;
|
|
1260
|
+
const types_1$y = es2018$7;
|
|
1261
|
+
function flattenByAsync$2(iterable, predicate) {
|
|
1262
|
+
if ((0, types_1$y.isAsyncIterable)(iterable)) {
|
|
1263
|
+
return flattenByAsyncIterable(iterable);
|
|
1264
|
+
}
|
|
1265
|
+
else {
|
|
1266
|
+
return flattenByIterable(iterable);
|
|
1267
|
+
}
|
|
1268
|
+
async function* flattenByAsyncIterable(iterable) {
|
|
1269
|
+
const level = 1;
|
|
1270
|
+
for await (const element of iterable) {
|
|
1271
|
+
if (isFiniteIterable$3(element) && await predicate(element, level)) {
|
|
1272
|
+
yield* flatten(element, level + 1);
|
|
1273
|
+
}
|
|
1274
|
+
else {
|
|
1275
|
+
yield element;
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
function flattenByIterable(iterable) {
|
|
1280
|
+
return flatten(iterable, 1);
|
|
1281
|
+
}
|
|
1282
|
+
async function* flatten(iterable, level) {
|
|
1283
|
+
for (const element of iterable) {
|
|
1284
|
+
if (isFiniteIterable$3(element) && await predicate(element, level)) {
|
|
1285
|
+
yield* flatten(element, level + 1);
|
|
1286
|
+
}
|
|
1287
|
+
else {
|
|
1288
|
+
yield element;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
flattenByAsync$3.flattenByAsync = flattenByAsync$2;
|
|
1294
|
+
function isFiniteIterable$3(val) {
|
|
1295
|
+
return (0, types_1$y.isIterable)(val) && (0, types_1$y.isntChar)(val);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
flattenDeepAsync$3.flattenDeepAsync = void 0;
|
|
1299
|
+
const flatten_by_async_1$1 = flattenByAsync$3;
|
|
1300
|
+
const errors_1$p = es2018$8;
|
|
1301
|
+
function flattenDeepAsync$2(iterable, depth = Infinity) {
|
|
1302
|
+
(0, errors_1$p.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1303
|
+
(0, errors_1$p.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
1304
|
+
return (0, flatten_by_async_1$1.flattenByAsync)(iterable, (_, level) => level <= depth);
|
|
1305
|
+
}
|
|
1306
|
+
flattenDeepAsync$3.flattenDeepAsync = flattenDeepAsync$2;
|
|
1307
|
+
|
|
1308
|
+
flattenAsync$3.flattenAsync = void 0;
|
|
1309
|
+
const flatten_deep_async_1$1 = flattenDeepAsync$3;
|
|
1310
|
+
function flattenAsync$2(iterable) {
|
|
1311
|
+
return (0, flatten_deep_async_1$1.flattenDeepAsync)(iterable, 1);
|
|
1312
|
+
}
|
|
1313
|
+
flattenAsync$3.flattenAsync = flattenAsync$2;
|
|
1314
|
+
|
|
1315
|
+
var flattenBy$3 = {};
|
|
1316
|
+
|
|
1317
|
+
flattenBy$3.flattenBy = void 0;
|
|
1318
|
+
const types_1$x = es2018$7;
|
|
1319
|
+
function flattenBy$2(iterable, predicate) {
|
|
1320
|
+
return flatten(iterable, 1);
|
|
1321
|
+
function* flatten(iterable, level) {
|
|
1322
|
+
for (const element of iterable) {
|
|
1323
|
+
if (isFiniteIterable$2(element) && predicate(element, level)) {
|
|
1324
|
+
yield* flatten(element, level + 1);
|
|
1325
|
+
}
|
|
1326
|
+
else {
|
|
1327
|
+
yield element;
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
flattenBy$3.flattenBy = flattenBy$2;
|
|
1333
|
+
function isFiniteIterable$2(val) {
|
|
1334
|
+
return (0, types_1$x.isIterable)(val) && (0, types_1$x.isntChar)(val);
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
var flattenDeep$3 = {};
|
|
1338
|
+
|
|
1339
|
+
flattenDeep$3.flattenDeep = void 0;
|
|
1340
|
+
const flatten_by_1$1 = flattenBy$3;
|
|
1341
|
+
const errors_1$o = es2018$8;
|
|
1342
|
+
function flattenDeep$2(iterable, depth = Infinity) {
|
|
1343
|
+
(0, errors_1$o.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1344
|
+
(0, errors_1$o.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
1345
|
+
return (0, flatten_by_1$1.flattenBy)(iterable, (_, level) => level <= depth);
|
|
1346
|
+
}
|
|
1347
|
+
flattenDeep$3.flattenDeep = flattenDeep$2;
|
|
1348
|
+
|
|
1349
|
+
var flatten$3 = {};
|
|
1350
|
+
|
|
1351
|
+
flatten$3.flatten = void 0;
|
|
1352
|
+
const flatten_deep_1$1 = flattenDeep$3;
|
|
1353
|
+
function flatten$2(iterable) {
|
|
1354
|
+
return (0, flatten_deep_1$1.flattenDeep)(iterable, 1);
|
|
1355
|
+
}
|
|
1356
|
+
flatten$3.flatten = flatten$2;
|
|
1357
|
+
|
|
1358
|
+
var mapAsync$3 = {};
|
|
1359
|
+
|
|
1360
|
+
mapAsync$3.mapAsync = void 0;
|
|
1361
|
+
const types_1$w = es2018$7;
|
|
1362
|
+
function mapAsync$2(iterable, fn) {
|
|
1363
|
+
if ((0, types_1$w.isAsyncIterable)(iterable)) {
|
|
1364
|
+
return mapAsyncIterable(iterable);
|
|
1365
|
+
}
|
|
1366
|
+
else {
|
|
1367
|
+
return mapIterable(iterable);
|
|
1368
|
+
}
|
|
1369
|
+
async function* mapAsyncIterable(iterable) {
|
|
1370
|
+
let index = 0;
|
|
1371
|
+
for await (const element of iterable) {
|
|
1372
|
+
yield await fn(element, index);
|
|
1373
|
+
index++;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
async function* mapIterable(iterable) {
|
|
1377
|
+
let index = 0;
|
|
1378
|
+
for (const element of iterable) {
|
|
1379
|
+
yield await fn(element, index);
|
|
1380
|
+
index++;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
mapAsync$3.mapAsync = mapAsync$2;
|
|
1385
|
+
|
|
1386
|
+
var map$3 = {};
|
|
1387
|
+
|
|
1388
|
+
map$3.map = void 0;
|
|
1389
|
+
function* map$2(iterable, fn) {
|
|
1390
|
+
let index = 0;
|
|
1391
|
+
for (const element of iterable) {
|
|
1392
|
+
yield fn(element, index);
|
|
1393
|
+
index++;
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
map$3.map = map$2;
|
|
1397
|
+
|
|
1398
|
+
var repeatAsync$3 = {};
|
|
1399
|
+
|
|
1400
|
+
repeatAsync$3.repeatAsync = void 0;
|
|
1401
|
+
const go_1$n = es2018$9;
|
|
1402
|
+
const errors_1$n = es2018$8;
|
|
1403
|
+
function repeatAsync$2(iterable, times) {
|
|
1404
|
+
(0, errors_1$n.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1405
|
+
(0, errors_1$n.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
1406
|
+
if (times === Infinity)
|
|
1407
|
+
warnInfiniteLoop$3();
|
|
1408
|
+
return (0, go_1$n.go)(async function* () {
|
|
1409
|
+
const cache = [];
|
|
1410
|
+
if (times > 0) {
|
|
1411
|
+
for await (const element of iterable) {
|
|
1412
|
+
yield element;
|
|
1413
|
+
cache.push(element);
|
|
1414
|
+
}
|
|
1415
|
+
times--;
|
|
1416
|
+
}
|
|
1417
|
+
while (times > 0) {
|
|
1418
|
+
yield* cache;
|
|
1419
|
+
times--;
|
|
1420
|
+
}
|
|
1421
|
+
});
|
|
1422
|
+
}
|
|
1423
|
+
repeatAsync$3.repeatAsync = repeatAsync$2;
|
|
1424
|
+
function warnInfiniteLoop$3() {
|
|
1425
|
+
if (isProduction$3())
|
|
1426
|
+
return;
|
|
1427
|
+
console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');
|
|
1428
|
+
}
|
|
1429
|
+
function isProduction$3() {
|
|
1430
|
+
return process.env.NODE_ENV === 'production';
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
var repeat$3 = {};
|
|
1434
|
+
|
|
1435
|
+
repeat$3.repeat = void 0;
|
|
1436
|
+
const go_1$m = es2018$9;
|
|
1437
|
+
const errors_1$m = es2018$8;
|
|
1438
|
+
function repeat$2(iterable, times) {
|
|
1439
|
+
(0, errors_1$m.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1440
|
+
(0, errors_1$m.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
1441
|
+
if (times === Infinity)
|
|
1442
|
+
warnInfiniteLoop$2();
|
|
1443
|
+
return (0, go_1$m.go)(function* () {
|
|
1444
|
+
const cache = [];
|
|
1445
|
+
if (times > 0) {
|
|
1446
|
+
for (const element of iterable) {
|
|
1447
|
+
yield element;
|
|
1448
|
+
cache.push(element);
|
|
1449
|
+
}
|
|
1450
|
+
times--;
|
|
1451
|
+
}
|
|
1452
|
+
while (times > 0) {
|
|
1453
|
+
yield* cache;
|
|
1454
|
+
times--;
|
|
1455
|
+
}
|
|
1456
|
+
});
|
|
1457
|
+
}
|
|
1458
|
+
repeat$3.repeat = repeat$2;
|
|
1459
|
+
function warnInfiniteLoop$2() {
|
|
1460
|
+
if (isProduction$2())
|
|
1461
|
+
return;
|
|
1462
|
+
console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');
|
|
1463
|
+
}
|
|
1464
|
+
function isProduction$2() {
|
|
1465
|
+
return process.env.NODE_ENV === 'production';
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
var sliceAsync$3 = {};
|
|
1469
|
+
|
|
1470
|
+
sliceAsync$3.sliceAsync = void 0;
|
|
1471
|
+
const go_1$l = es2018$9;
|
|
1472
|
+
const errors_1$l = es2018$8;
|
|
1473
|
+
function sliceAsync$2(iterable, start, end = Infinity) {
|
|
1474
|
+
(0, errors_1$l.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1475
|
+
(0, errors_1$l.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
1476
|
+
(0, errors_1$l.assert)(Number.isInteger(end), 'The parameter end must be an integer');
|
|
1477
|
+
(0, errors_1$l.assert)(end >= start, 'The parameter end must be greater than or equal to start');
|
|
1478
|
+
return (0, go_1$l.go)(async function* () {
|
|
1479
|
+
let index = 0;
|
|
1480
|
+
for await (const element of iterable) {
|
|
1481
|
+
if (index >= end)
|
|
1482
|
+
break;
|
|
1483
|
+
if (index >= start)
|
|
1484
|
+
yield element;
|
|
1485
|
+
index++;
|
|
1486
|
+
}
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
sliceAsync$3.sliceAsync = sliceAsync$2;
|
|
1490
|
+
|
|
1491
|
+
var slice$3 = {};
|
|
1492
|
+
|
|
1493
|
+
slice$3.slice = void 0;
|
|
1494
|
+
const go_1$k = es2018$9;
|
|
1495
|
+
const errors_1$k = es2018$8;
|
|
1496
|
+
function slice$2(iterable, start, end = Infinity) {
|
|
1497
|
+
(0, errors_1$k.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1498
|
+
(0, errors_1$k.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
1499
|
+
(0, errors_1$k.assert)(Number.isInteger(end), 'The parameter end must be an integer');
|
|
1500
|
+
(0, errors_1$k.assert)(end >= start, 'The parameter end must be greater than or equal to start');
|
|
1501
|
+
return (0, go_1$k.go)(function* () {
|
|
1502
|
+
let index = 0;
|
|
1503
|
+
for (const element of iterable) {
|
|
1504
|
+
if (index >= end)
|
|
1505
|
+
break;
|
|
1506
|
+
if (index >= start)
|
|
1507
|
+
yield element;
|
|
1508
|
+
index++;
|
|
1509
|
+
}
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
slice$3.slice = slice$2;
|
|
1513
|
+
|
|
1514
|
+
var splitAsync$3 = {};
|
|
1515
|
+
|
|
1516
|
+
splitAsync$3.splitAsync = void 0;
|
|
1517
|
+
async function* splitAsync$2(iterable, separator) {
|
|
1518
|
+
let buffer = [];
|
|
1519
|
+
for await (const element of iterable) {
|
|
1520
|
+
if (element === separator) {
|
|
1521
|
+
yield buffer;
|
|
1522
|
+
buffer = [];
|
|
1523
|
+
}
|
|
1524
|
+
else {
|
|
1525
|
+
buffer.push(element);
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
yield buffer;
|
|
1529
|
+
}
|
|
1530
|
+
splitAsync$3.splitAsync = splitAsync$2;
|
|
1531
|
+
|
|
1532
|
+
var splitByAsync$3 = {};
|
|
1533
|
+
|
|
1534
|
+
splitByAsync$3.splitByAsync = void 0;
|
|
1535
|
+
const types_1$v = es2018$7;
|
|
1536
|
+
function splitByAsync$2(iterable, predicate) {
|
|
1537
|
+
if ((0, types_1$v.isAsyncIterable)(iterable)) {
|
|
1538
|
+
return splitByAsyncIterable(iterable);
|
|
1539
|
+
}
|
|
1540
|
+
else {
|
|
1541
|
+
return splitByIterable(iterable);
|
|
1542
|
+
}
|
|
1543
|
+
async function* splitByIterable(iterable) {
|
|
1544
|
+
let buffer = [];
|
|
1545
|
+
let index = 0;
|
|
1546
|
+
for (const element of iterable) {
|
|
1547
|
+
if (await predicate(element, index)) {
|
|
1548
|
+
yield buffer;
|
|
1549
|
+
buffer = [];
|
|
1550
|
+
}
|
|
1551
|
+
else {
|
|
1552
|
+
buffer.push(element);
|
|
1553
|
+
}
|
|
1554
|
+
index++;
|
|
1555
|
+
}
|
|
1556
|
+
yield buffer;
|
|
1557
|
+
}
|
|
1558
|
+
async function* splitByAsyncIterable(iterable) {
|
|
1559
|
+
let buffer = [];
|
|
1560
|
+
let index = 0;
|
|
1561
|
+
for await (const element of iterable) {
|
|
1562
|
+
if (await predicate(element, index)) {
|
|
1563
|
+
yield buffer;
|
|
1564
|
+
buffer = [];
|
|
1565
|
+
}
|
|
1566
|
+
else {
|
|
1567
|
+
buffer.push(element);
|
|
1568
|
+
}
|
|
1569
|
+
index++;
|
|
1570
|
+
}
|
|
1571
|
+
yield buffer;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
splitByAsync$3.splitByAsync = splitByAsync$2;
|
|
1575
|
+
|
|
1576
|
+
var splitBy$3 = {};
|
|
1577
|
+
|
|
1578
|
+
splitBy$3.splitBy = void 0;
|
|
1579
|
+
function* splitBy$2(iterable, predicate) {
|
|
1580
|
+
let buffer = [];
|
|
1581
|
+
let index = 0;
|
|
1582
|
+
for (const element of iterable) {
|
|
1583
|
+
if (predicate(element, index)) {
|
|
1584
|
+
yield buffer;
|
|
1585
|
+
buffer = [];
|
|
1586
|
+
}
|
|
1587
|
+
else {
|
|
1588
|
+
buffer.push(element);
|
|
1589
|
+
}
|
|
1590
|
+
index++;
|
|
1591
|
+
}
|
|
1592
|
+
yield buffer;
|
|
1593
|
+
}
|
|
1594
|
+
splitBy$3.splitBy = splitBy$2;
|
|
1595
|
+
|
|
1596
|
+
var split$3 = {};
|
|
1597
|
+
|
|
1598
|
+
split$3.split = void 0;
|
|
1599
|
+
function* split$2(iterable, separator) {
|
|
1600
|
+
let buffer = [];
|
|
1601
|
+
for (const element of iterable) {
|
|
1602
|
+
if (element === separator) {
|
|
1603
|
+
yield buffer;
|
|
1604
|
+
buffer = [];
|
|
1605
|
+
}
|
|
1606
|
+
else {
|
|
1607
|
+
buffer.push(element);
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
yield buffer;
|
|
1611
|
+
}
|
|
1612
|
+
split$3.split = split$2;
|
|
1613
|
+
|
|
1614
|
+
var takeAsync$3 = {};
|
|
1615
|
+
|
|
1616
|
+
takeAsync$3.takeAsync = void 0;
|
|
1617
|
+
const go_1$j = es2018$9;
|
|
1618
|
+
const errors_1$j = es2018$8;
|
|
1619
|
+
function takeAsync$2(iterable, count) {
|
|
1620
|
+
(0, errors_1$j.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1621
|
+
(0, errors_1$j.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1622
|
+
return (0, go_1$j.go)(async function* () {
|
|
1623
|
+
if (count === 0)
|
|
1624
|
+
return;
|
|
1625
|
+
for await (const element of iterable) {
|
|
1626
|
+
yield element;
|
|
1627
|
+
count--;
|
|
1628
|
+
if (count === 0)
|
|
1629
|
+
break;
|
|
1630
|
+
}
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
takeAsync$3.takeAsync = takeAsync$2;
|
|
1634
|
+
|
|
1635
|
+
var takeRightAsync$3 = {};
|
|
1636
|
+
|
|
1637
|
+
takeRightAsync$3.takeRightAsync = void 0;
|
|
1638
|
+
const go_1$i = es2018$9;
|
|
1639
|
+
const errors_1$i = es2018$8;
|
|
1640
|
+
function takeRightAsync$2(iterable, count) {
|
|
1641
|
+
(0, errors_1$i.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1642
|
+
(0, errors_1$i.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1643
|
+
return (0, go_1$i.go)(async function* () {
|
|
1644
|
+
var _a;
|
|
1645
|
+
const iterator = iterable[Symbol.asyncIterator]();
|
|
1646
|
+
let done;
|
|
1647
|
+
try {
|
|
1648
|
+
const buffer = [];
|
|
1649
|
+
let value;
|
|
1650
|
+
while ({ value, done } = await iterator.next(), !done) {
|
|
1651
|
+
buffer.push(value);
|
|
1652
|
+
if (buffer.length > count)
|
|
1653
|
+
buffer.shift();
|
|
1654
|
+
}
|
|
1655
|
+
yield* buffer;
|
|
1656
|
+
}
|
|
1657
|
+
finally {
|
|
1658
|
+
if (!done)
|
|
1659
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
1660
|
+
}
|
|
1661
|
+
});
|
|
1662
|
+
}
|
|
1663
|
+
takeRightAsync$3.takeRightAsync = takeRightAsync$2;
|
|
1664
|
+
|
|
1665
|
+
var takeRight$3 = {};
|
|
1666
|
+
|
|
1667
|
+
takeRight$3.takeRight = void 0;
|
|
1668
|
+
const go_1$h = es2018$9;
|
|
1669
|
+
const errors_1$h = es2018$8;
|
|
1670
|
+
function takeRight$2(iterable, count) {
|
|
1671
|
+
(0, errors_1$h.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1672
|
+
(0, errors_1$h.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1673
|
+
return (0, go_1$h.go)(function* () {
|
|
1674
|
+
var _a;
|
|
1675
|
+
const iterator = iterable[Symbol.iterator]();
|
|
1676
|
+
let done;
|
|
1677
|
+
try {
|
|
1678
|
+
const buffer = [];
|
|
1679
|
+
let value;
|
|
1680
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
1681
|
+
buffer.push(value);
|
|
1682
|
+
if (buffer.length > count)
|
|
1683
|
+
buffer.shift();
|
|
1684
|
+
}
|
|
1685
|
+
yield* buffer;
|
|
1686
|
+
}
|
|
1687
|
+
finally {
|
|
1688
|
+
if (!done)
|
|
1689
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
1690
|
+
}
|
|
1691
|
+
});
|
|
1692
|
+
}
|
|
1693
|
+
takeRight$3.takeRight = takeRight$2;
|
|
1694
|
+
|
|
1695
|
+
var takeUntilAsync$3 = {};
|
|
1696
|
+
|
|
1697
|
+
takeUntilAsync$3.takeUntilAsync = void 0;
|
|
1698
|
+
const types_1$u = es2018$7;
|
|
1699
|
+
function takeUntilAsync$2(iterable, predicate) {
|
|
1700
|
+
if ((0, types_1$u.isAsyncIterable)(iterable)) {
|
|
1701
|
+
return takeUntilAsyncIterable(iterable);
|
|
1702
|
+
}
|
|
1703
|
+
else {
|
|
1704
|
+
return takeUntilIterable(iterable);
|
|
1705
|
+
}
|
|
1706
|
+
async function* takeUntilAsyncIterable(iterable) {
|
|
1707
|
+
let index = 0;
|
|
1708
|
+
for await (const element of iterable) {
|
|
1709
|
+
if (await predicate(element, index))
|
|
1710
|
+
break;
|
|
1711
|
+
yield element;
|
|
1712
|
+
index++;
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
async function* takeUntilIterable(iterable) {
|
|
1716
|
+
let index = 0;
|
|
1717
|
+
for (const element of iterable) {
|
|
1718
|
+
if (await predicate(element, index))
|
|
1719
|
+
break;
|
|
1720
|
+
yield element;
|
|
1721
|
+
index++;
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
takeUntilAsync$3.takeUntilAsync = takeUntilAsync$2;
|
|
1726
|
+
|
|
1727
|
+
var takeUntil$3 = {};
|
|
1728
|
+
|
|
1729
|
+
takeUntil$3.takeUntil = void 0;
|
|
1730
|
+
function* takeUntil$2(iterable, predicate) {
|
|
1731
|
+
let index = 0;
|
|
1732
|
+
for (const element of iterable) {
|
|
1733
|
+
if (predicate(element, index))
|
|
1734
|
+
break;
|
|
1735
|
+
yield element;
|
|
1736
|
+
index++;
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
takeUntil$3.takeUntil = takeUntil$2;
|
|
1740
|
+
|
|
1741
|
+
var take$3 = {};
|
|
1742
|
+
|
|
1743
|
+
take$3.take = void 0;
|
|
1744
|
+
const go_1$g = es2018$9;
|
|
1745
|
+
const errors_1$g = es2018$8;
|
|
1746
|
+
function take$2(iterable, count) {
|
|
1747
|
+
(0, errors_1$g.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1748
|
+
(0, errors_1$g.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1749
|
+
return (0, go_1$g.go)(function* () {
|
|
1750
|
+
if (count === 0)
|
|
1751
|
+
return;
|
|
1752
|
+
for (const element of iterable) {
|
|
1753
|
+
yield element;
|
|
1754
|
+
count--;
|
|
1755
|
+
if (count === 0)
|
|
1756
|
+
break;
|
|
1757
|
+
}
|
|
1758
|
+
});
|
|
1759
|
+
}
|
|
1760
|
+
take$3.take = take$2;
|
|
1761
|
+
|
|
1762
|
+
var tapAsync$3 = {};
|
|
1763
|
+
|
|
1764
|
+
tapAsync$3.tapAsync = void 0;
|
|
1765
|
+
const types_1$t = es2018$7;
|
|
1766
|
+
function tapAsync$2(iterable, fn) {
|
|
1767
|
+
if ((0, types_1$t.isAsyncIterable)(iterable)) {
|
|
1768
|
+
return tapAsyncIterable(iterable);
|
|
1769
|
+
}
|
|
1770
|
+
else {
|
|
1771
|
+
return tapIterable(iterable);
|
|
1772
|
+
}
|
|
1773
|
+
async function* tapIterable(iterable) {
|
|
1774
|
+
let index = 0;
|
|
1775
|
+
for (const element of iterable) {
|
|
1776
|
+
await fn(element, index);
|
|
1777
|
+
yield element;
|
|
1778
|
+
index++;
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
async function* tapAsyncIterable(iterable) {
|
|
1782
|
+
let index = 0;
|
|
1783
|
+
for await (const element of iterable) {
|
|
1784
|
+
await fn(element, index);
|
|
1785
|
+
yield element;
|
|
1786
|
+
index++;
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
tapAsync$3.tapAsync = tapAsync$2;
|
|
1791
|
+
|
|
1792
|
+
var tap$3 = {};
|
|
1793
|
+
|
|
1794
|
+
tap$3.tap = void 0;
|
|
1795
|
+
function* tap$2(iterable, fn) {
|
|
1796
|
+
let index = 0;
|
|
1797
|
+
for (const element of iterable) {
|
|
1798
|
+
fn(element, index);
|
|
1799
|
+
yield element;
|
|
1800
|
+
index++;
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
tap$3.tap = tap$2;
|
|
1804
|
+
|
|
1805
|
+
var toAsyncIterable$3 = {};
|
|
1806
|
+
|
|
1807
|
+
toAsyncIterable$3.toAsyncIterable = void 0;
|
|
1808
|
+
async function* toAsyncIterable$2(iterable) {
|
|
1809
|
+
for (const value of iterable) {
|
|
1810
|
+
yield value;
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
toAsyncIterable$3.toAsyncIterable = toAsyncIterable$2;
|
|
1814
|
+
|
|
1815
|
+
var transformAsync$3 = {};
|
|
1816
|
+
|
|
1817
|
+
transformAsync$3.transformAsync = void 0;
|
|
1818
|
+
async function* transformAsync$2(iterable, transformer) {
|
|
1819
|
+
yield* transformer(iterable);
|
|
1820
|
+
}
|
|
1821
|
+
transformAsync$3.transformAsync = transformAsync$2;
|
|
1822
|
+
|
|
1823
|
+
var transform$3 = {};
|
|
1824
|
+
|
|
1825
|
+
transform$3.transform = void 0;
|
|
1826
|
+
function* transform$2(iterable, transformer) {
|
|
1827
|
+
yield* transformer(iterable);
|
|
1828
|
+
}
|
|
1829
|
+
transform$3.transform = transform$2;
|
|
1830
|
+
|
|
1831
|
+
var uniqAsync$3 = {};
|
|
1832
|
+
|
|
1833
|
+
uniqAsync$3.uniqAsync = void 0;
|
|
1834
|
+
async function* uniqAsync$2(iterable) {
|
|
1835
|
+
const bucket = new Set();
|
|
1836
|
+
for await (const element of iterable) {
|
|
1837
|
+
if (!bucket.has(element)) {
|
|
1838
|
+
yield element;
|
|
1839
|
+
bucket.add(element);
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
uniqAsync$3.uniqAsync = uniqAsync$2;
|
|
1844
|
+
|
|
1845
|
+
var uniqByAsync$3 = {};
|
|
1846
|
+
|
|
1847
|
+
uniqByAsync$3.uniqByAsync = void 0;
|
|
1848
|
+
const types_1$s = es2018$7;
|
|
1849
|
+
function uniqByAsync$2(iterable, fn) {
|
|
1850
|
+
if ((0, types_1$s.isAsyncIterable)(iterable)) {
|
|
1851
|
+
return uniqByAsyncIterable(iterable);
|
|
1852
|
+
}
|
|
1853
|
+
else {
|
|
1854
|
+
return uniqByIterable(iterable);
|
|
1855
|
+
}
|
|
1856
|
+
async function* uniqByAsyncIterable(iterable) {
|
|
1857
|
+
const bucket = new Set();
|
|
1858
|
+
let index = 0;
|
|
1859
|
+
for await (const element of iterable) {
|
|
1860
|
+
const result = await fn(element, index);
|
|
1861
|
+
if (!bucket.has(result)) {
|
|
1862
|
+
yield element;
|
|
1863
|
+
bucket.add(result);
|
|
1864
|
+
}
|
|
1865
|
+
index++;
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
async function* uniqByIterable(iterable) {
|
|
1869
|
+
const bucket = new Set();
|
|
1870
|
+
let index = 0;
|
|
1871
|
+
for (const element of iterable) {
|
|
1872
|
+
const result = await fn(element, index);
|
|
1873
|
+
if (!bucket.has(result)) {
|
|
1874
|
+
yield element;
|
|
1875
|
+
bucket.add(result);
|
|
1876
|
+
}
|
|
1877
|
+
index++;
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
uniqByAsync$3.uniqByAsync = uniqByAsync$2;
|
|
1882
|
+
|
|
1883
|
+
var uniqBy$3 = {};
|
|
1884
|
+
|
|
1885
|
+
uniqBy$3.uniqBy = void 0;
|
|
1886
|
+
function* uniqBy$2(iterable, fn) {
|
|
1887
|
+
const bucket = new Set();
|
|
1888
|
+
let index = 0;
|
|
1889
|
+
for (const element of iterable) {
|
|
1890
|
+
const result = fn(element, index);
|
|
1891
|
+
if (!bucket.has(result)) {
|
|
1892
|
+
yield element;
|
|
1893
|
+
bucket.add(result);
|
|
1894
|
+
}
|
|
1895
|
+
index++;
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
uniqBy$3.uniqBy = uniqBy$2;
|
|
1899
|
+
|
|
1900
|
+
var uniq$3 = {};
|
|
1901
|
+
|
|
1902
|
+
uniq$3.uniq = void 0;
|
|
1903
|
+
function* uniq$2(iterable) {
|
|
1904
|
+
const bucket = new Set();
|
|
1905
|
+
for (const element of iterable) {
|
|
1906
|
+
if (!bucket.has(element)) {
|
|
1907
|
+
yield element;
|
|
1908
|
+
bucket.add(element);
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
uniq$3.uniq = uniq$2;
|
|
1913
|
+
|
|
1914
|
+
var zipAsync$3 = {};
|
|
1915
|
+
|
|
1916
|
+
zipAsync$3.zipAsync = void 0;
|
|
1917
|
+
const types_1$r = es2018$7;
|
|
1918
|
+
var Kind$1;
|
|
1919
|
+
(function (Kind) {
|
|
1920
|
+
Kind[Kind["Sync"] = 0] = "Sync";
|
|
1921
|
+
Kind[Kind["Async"] = 1] = "Async";
|
|
1922
|
+
})(Kind$1 || (Kind$1 = {}));
|
|
1923
|
+
function zipAsync$2(iterable, ...otherIterables) {
|
|
1924
|
+
return zipWithSize$3(iterable, ...otherIterables);
|
|
1925
|
+
}
|
|
1926
|
+
zipAsync$3.zipAsync = zipAsync$2;
|
|
1927
|
+
async function* zipWithSize$3(...iterables) {
|
|
1928
|
+
var _a, _b, _c, _d;
|
|
1929
|
+
const length = iterables.length;
|
|
1930
|
+
const iterators = iterables.map(iterable => {
|
|
1931
|
+
if ((0, types_1$r.isAsyncIterable)(iterable)) {
|
|
1932
|
+
return [Kind$1.Async, iterable[Symbol.asyncIterator]()];
|
|
1933
|
+
}
|
|
1934
|
+
else {
|
|
1935
|
+
return [Kind$1.Sync, iterable[Symbol.iterator]()];
|
|
1936
|
+
}
|
|
1937
|
+
});
|
|
1938
|
+
const dones = iterators.map(() => false);
|
|
1939
|
+
try {
|
|
1940
|
+
while (true) {
|
|
1941
|
+
const result = new Array(length);
|
|
1942
|
+
for (let i = 0; i < length; i++) {
|
|
1943
|
+
const [kind, iterator] = iterators[i];
|
|
1944
|
+
let temp;
|
|
1945
|
+
if (kind === Kind$1.Async) {
|
|
1946
|
+
temp = await iterator.next();
|
|
1947
|
+
}
|
|
1948
|
+
else {
|
|
1949
|
+
temp = iterator.next();
|
|
1950
|
+
}
|
|
1951
|
+
if (temp.done) {
|
|
1952
|
+
dones[i] = true;
|
|
1953
|
+
return;
|
|
1954
|
+
}
|
|
1955
|
+
result[i] = temp.value;
|
|
1956
|
+
}
|
|
1957
|
+
yield result;
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
finally {
|
|
1961
|
+
const undoneIterators = iterators.filter((_, i) => !dones[i]);
|
|
1962
|
+
for (const [kind, iterator] of undoneIterators) {
|
|
1963
|
+
if (kind === Kind$1.Async) {
|
|
1964
|
+
await ((_b = (_a = iterator).return) === null || _b === void 0 ? void 0 : _b.call(_a));
|
|
1965
|
+
}
|
|
1966
|
+
else {
|
|
1967
|
+
(_d = (_c = iterator).return) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
var zip$3 = {};
|
|
1974
|
+
|
|
1975
|
+
zip$3.zip = void 0;
|
|
1976
|
+
function zip$2(iterable, ...otherIterables) {
|
|
1977
|
+
return zipWithSize$2(iterable, ...otherIterables);
|
|
1978
|
+
}
|
|
1979
|
+
zip$3.zip = zip$2;
|
|
1980
|
+
function* zipWithSize$2(...iterables) {
|
|
1981
|
+
const length = iterables.length;
|
|
1982
|
+
const iterators = iterables.map(iterable => iterable[Symbol.iterator]());
|
|
1983
|
+
const dones = iterators.map(() => false);
|
|
1984
|
+
try {
|
|
1985
|
+
while (true) {
|
|
1986
|
+
const result = new Array(length);
|
|
1987
|
+
for (let i = 0; i < length; i++) {
|
|
1988
|
+
const { value, done } = iterators[i].next();
|
|
1989
|
+
if (done) {
|
|
1990
|
+
dones[i] = true;
|
|
1991
|
+
return;
|
|
1992
|
+
}
|
|
1993
|
+
result[i] = value;
|
|
1994
|
+
}
|
|
1995
|
+
yield result;
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
finally {
|
|
1999
|
+
const undoneIterators = iterators.filter((_, i) => !dones[i]);
|
|
2000
|
+
undoneIterators.forEach(x => { var _a; return (_a = x.return) === null || _a === void 0 ? void 0 : _a.call(x); });
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
(function (exports) {
|
|
2005
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2006
|
+
if (k2 === undefined) k2 = k;
|
|
2007
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2008
|
+
}) : (function(o, m, k, k2) {
|
|
2009
|
+
if (k2 === undefined) k2 = k;
|
|
2010
|
+
o[k2] = m[k];
|
|
2011
|
+
}));
|
|
2012
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2013
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2014
|
+
};__exportStar(chunkAsync$3, exports);
|
|
2015
|
+
__exportStar(chunkByAsync$3, exports);
|
|
2016
|
+
__exportStar(chunkBy$3, exports);
|
|
2017
|
+
__exportStar(chunk$3, exports);
|
|
2018
|
+
__exportStar(concatAsync$3, exports);
|
|
2019
|
+
__exportStar(concat$3, exports);
|
|
2020
|
+
__exportStar(dropAsync$3, exports);
|
|
2021
|
+
__exportStar(dropRightAsync$3, exports);
|
|
2022
|
+
__exportStar(dropRight$3, exports);
|
|
2023
|
+
__exportStar(dropUntilAsync$3, exports);
|
|
2024
|
+
__exportStar(dropUntil$3, exports);
|
|
2025
|
+
__exportStar(drop$3, exports);
|
|
2026
|
+
__exportStar(filterAsync$3, exports);
|
|
2027
|
+
__exportStar(filter$3, exports);
|
|
2028
|
+
__exportStar(flattenAsync$3, exports);
|
|
2029
|
+
__exportStar(flattenByAsync$3, exports);
|
|
2030
|
+
__exportStar(flattenBy$3, exports);
|
|
2031
|
+
__exportStar(flattenDeepAsync$3, exports);
|
|
2032
|
+
__exportStar(flattenDeep$3, exports);
|
|
2033
|
+
__exportStar(flatten$3, exports);
|
|
2034
|
+
__exportStar(mapAsync$3, exports);
|
|
2035
|
+
__exportStar(map$3, exports);
|
|
2036
|
+
__exportStar(repeatAsync$3, exports);
|
|
2037
|
+
__exportStar(repeat$3, exports);
|
|
2038
|
+
__exportStar(sliceAsync$3, exports);
|
|
2039
|
+
__exportStar(slice$3, exports);
|
|
2040
|
+
__exportStar(splitAsync$3, exports);
|
|
2041
|
+
__exportStar(splitByAsync$3, exports);
|
|
2042
|
+
__exportStar(splitBy$3, exports);
|
|
2043
|
+
__exportStar(split$3, exports);
|
|
2044
|
+
__exportStar(takeAsync$3, exports);
|
|
2045
|
+
__exportStar(takeRightAsync$3, exports);
|
|
2046
|
+
__exportStar(takeRight$3, exports);
|
|
2047
|
+
__exportStar(takeUntilAsync$3, exports);
|
|
2048
|
+
__exportStar(takeUntil$3, exports);
|
|
2049
|
+
__exportStar(take$3, exports);
|
|
2050
|
+
__exportStar(tapAsync$3, exports);
|
|
2051
|
+
__exportStar(tap$3, exports);
|
|
2052
|
+
__exportStar(toAsyncIterable$3, exports);
|
|
2053
|
+
__exportStar(transformAsync$3, exports);
|
|
2054
|
+
__exportStar(transform$3, exports);
|
|
2055
|
+
__exportStar(uniqAsync$3, exports);
|
|
2056
|
+
__exportStar(uniqByAsync$3, exports);
|
|
2057
|
+
__exportStar(uniqBy$3, exports);
|
|
2058
|
+
__exportStar(uniq$3, exports);
|
|
2059
|
+
__exportStar(zipAsync$3, exports);
|
|
2060
|
+
__exportStar(zip$3, exports);
|
|
2061
|
+
|
|
2062
|
+
}(middleware$1));
|
|
2063
|
+
|
|
2064
|
+
var output$1 = {};
|
|
2065
|
+
|
|
2066
|
+
var consume$3 = {};
|
|
2067
|
+
|
|
2068
|
+
consume$3.consume = void 0;
|
|
2069
|
+
function consume$2(iterable, consumer) {
|
|
2070
|
+
return consumer(iterable);
|
|
2071
|
+
}
|
|
2072
|
+
consume$3.consume = consume$2;
|
|
2073
|
+
|
|
2074
|
+
var eachAsync$3 = {};
|
|
2075
|
+
|
|
2076
|
+
eachAsync$3.eachAsync = void 0;
|
|
2077
|
+
const types_1$q = es2018$7;
|
|
2078
|
+
function eachAsync$2(iterable, fn) {
|
|
2079
|
+
if ((0, types_1$q.isAsyncIterable)(iterable)) {
|
|
2080
|
+
return eachAsyncIterable(iterable);
|
|
2081
|
+
}
|
|
2082
|
+
else {
|
|
2083
|
+
return eachIterable(iterable);
|
|
2084
|
+
}
|
|
2085
|
+
async function eachAsyncIterable(iterable) {
|
|
2086
|
+
let index = 0;
|
|
2087
|
+
for await (const element of iterable) {
|
|
2088
|
+
await fn(element, index);
|
|
2089
|
+
index++;
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
async function eachIterable(iterable) {
|
|
2093
|
+
let index = 0;
|
|
2094
|
+
for (const element of iterable) {
|
|
2095
|
+
await fn(element, index);
|
|
2096
|
+
index++;
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
eachAsync$3.eachAsync = eachAsync$2;
|
|
2101
|
+
|
|
2102
|
+
var each$3 = {};
|
|
2103
|
+
|
|
2104
|
+
each$3.each = void 0;
|
|
2105
|
+
function each$2(iterable, fn) {
|
|
2106
|
+
let index = 0;
|
|
2107
|
+
for (const element of iterable) {
|
|
2108
|
+
fn(element, index);
|
|
2109
|
+
index++;
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
each$3.each = each$2;
|
|
2113
|
+
|
|
2114
|
+
var everyAsync$3 = {};
|
|
2115
|
+
|
|
2116
|
+
everyAsync$3.everyAsync = void 0;
|
|
2117
|
+
const types_1$p = es2018$7;
|
|
2118
|
+
function everyAsync$2(iterable, predicate) {
|
|
2119
|
+
if ((0, types_1$p.isAsyncIterable)(iterable)) {
|
|
2120
|
+
return everyAsyncIterable(iterable);
|
|
2121
|
+
}
|
|
2122
|
+
else {
|
|
2123
|
+
return everyIterable(iterable);
|
|
2124
|
+
}
|
|
2125
|
+
async function everyIterable(iterable) {
|
|
2126
|
+
let index = 0;
|
|
2127
|
+
for (const element of iterable) {
|
|
2128
|
+
if (!await predicate(element, index))
|
|
2129
|
+
return false;
|
|
2130
|
+
index++;
|
|
2131
|
+
}
|
|
2132
|
+
return true;
|
|
2133
|
+
}
|
|
2134
|
+
async function everyAsyncIterable(iterable) {
|
|
2135
|
+
let index = 0;
|
|
2136
|
+
for await (const element of iterable) {
|
|
2137
|
+
if (!await predicate(element, index))
|
|
2138
|
+
return false;
|
|
2139
|
+
index++;
|
|
2140
|
+
}
|
|
2141
|
+
return true;
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
everyAsync$3.everyAsync = everyAsync$2;
|
|
2145
|
+
|
|
2146
|
+
var every$3 = {};
|
|
2147
|
+
|
|
2148
|
+
every$3.every = void 0;
|
|
2149
|
+
function every$2(iterable, predicate) {
|
|
2150
|
+
let index = 0;
|
|
2151
|
+
for (const element of iterable) {
|
|
2152
|
+
if (!predicate(element, index))
|
|
2153
|
+
return false;
|
|
2154
|
+
index++;
|
|
2155
|
+
}
|
|
2156
|
+
return true;
|
|
2157
|
+
}
|
|
2158
|
+
every$3.every = every$2;
|
|
2159
|
+
|
|
2160
|
+
var findAsync$3 = {};
|
|
2161
|
+
|
|
2162
|
+
findAsync$3.findAsync = void 0;
|
|
2163
|
+
const types_1$o = es2018$7;
|
|
2164
|
+
function findAsync$2(iterable, predicate) {
|
|
2165
|
+
if ((0, types_1$o.isAsyncIterable)(iterable)) {
|
|
2166
|
+
return findAsyncIterable(iterable);
|
|
2167
|
+
}
|
|
2168
|
+
else {
|
|
2169
|
+
return findIterable(iterable);
|
|
2170
|
+
}
|
|
2171
|
+
async function findIterable(iterable) {
|
|
2172
|
+
let index = 0;
|
|
2173
|
+
for (const element of iterable) {
|
|
2174
|
+
if (await predicate(element, index))
|
|
2175
|
+
return element;
|
|
2176
|
+
index++;
|
|
2177
|
+
}
|
|
2178
|
+
return undefined;
|
|
2179
|
+
}
|
|
2180
|
+
async function findAsyncIterable(iterable) {
|
|
2181
|
+
let index = 0;
|
|
2182
|
+
for await (const element of iterable) {
|
|
2183
|
+
if (await predicate(element, index))
|
|
2184
|
+
return element;
|
|
2185
|
+
index++;
|
|
2186
|
+
}
|
|
2187
|
+
return undefined;
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
findAsync$3.findAsync = findAsync$2;
|
|
2191
|
+
|
|
2192
|
+
var find$3 = {};
|
|
2193
|
+
|
|
2194
|
+
find$3.find = void 0;
|
|
2195
|
+
function find$2(iterable, predicate) {
|
|
2196
|
+
let index = 0;
|
|
2197
|
+
for (const element of iterable) {
|
|
2198
|
+
if (predicate(element, index))
|
|
2199
|
+
return element;
|
|
2200
|
+
index++;
|
|
2201
|
+
}
|
|
2202
|
+
return undefined;
|
|
2203
|
+
}
|
|
2204
|
+
find$3.find = find$2;
|
|
2205
|
+
|
|
2206
|
+
var firstAsync$3 = {};
|
|
2207
|
+
|
|
2208
|
+
firstAsync$3.firstAsync = void 0;
|
|
2209
|
+
async function firstAsync$2(iterable) {
|
|
2210
|
+
for await (const element of iterable) {
|
|
2211
|
+
return element;
|
|
2212
|
+
}
|
|
2213
|
+
return undefined;
|
|
2214
|
+
}
|
|
2215
|
+
firstAsync$3.firstAsync = firstAsync$2;
|
|
2216
|
+
|
|
2217
|
+
var first$3 = {};
|
|
2218
|
+
|
|
2219
|
+
first$3.first = void 0;
|
|
2220
|
+
function first$2(iterable) {
|
|
2221
|
+
for (const element of iterable) {
|
|
2222
|
+
return element;
|
|
2223
|
+
}
|
|
2224
|
+
return undefined;
|
|
2225
|
+
}
|
|
2226
|
+
first$3.first = first$2;
|
|
2227
|
+
|
|
2228
|
+
var includesAsync$3 = {};
|
|
2229
|
+
|
|
2230
|
+
includesAsync$3.includesAsync = void 0;
|
|
2231
|
+
async function includesAsync$2(iterable, value) {
|
|
2232
|
+
for await (const element of iterable) {
|
|
2233
|
+
if (element === value)
|
|
2234
|
+
return true;
|
|
2235
|
+
}
|
|
2236
|
+
return false;
|
|
2237
|
+
}
|
|
2238
|
+
includesAsync$3.includesAsync = includesAsync$2;
|
|
2239
|
+
|
|
2240
|
+
var includes$3 = {};
|
|
2241
|
+
|
|
2242
|
+
includes$3.includes = void 0;
|
|
2243
|
+
function includes$2(iterable, value) {
|
|
2244
|
+
for (const element of iterable) {
|
|
2245
|
+
if (element === value)
|
|
2246
|
+
return true;
|
|
2247
|
+
}
|
|
2248
|
+
return false;
|
|
2249
|
+
}
|
|
2250
|
+
includes$3.includes = includes$2;
|
|
2251
|
+
|
|
2252
|
+
var matchAsync$3 = {};
|
|
2253
|
+
|
|
2254
|
+
matchAsync$3.matchAsync = void 0;
|
|
2255
|
+
async function matchAsync$2(iterable, sequence) {
|
|
2256
|
+
const sequenceLength = sequence.length;
|
|
2257
|
+
let matchCount = 0;
|
|
2258
|
+
for await (const element of iterable) {
|
|
2259
|
+
if (element === sequence[matchCount])
|
|
2260
|
+
matchCount++;
|
|
2261
|
+
if (matchCount === sequenceLength)
|
|
2262
|
+
return true;
|
|
2263
|
+
}
|
|
2264
|
+
return false;
|
|
2265
|
+
}
|
|
2266
|
+
matchAsync$3.matchAsync = matchAsync$2;
|
|
2267
|
+
|
|
2268
|
+
var match$3 = {};
|
|
2269
|
+
|
|
2270
|
+
match$3.match = void 0;
|
|
2271
|
+
function match$2(iterable, sequence) {
|
|
2272
|
+
const sequenceLength = sequence.length;
|
|
2273
|
+
let matchCount = 0;
|
|
2274
|
+
for (const element of iterable) {
|
|
2275
|
+
if (element === sequence[matchCount])
|
|
2276
|
+
matchCount++;
|
|
2277
|
+
if (matchCount === sequenceLength)
|
|
2278
|
+
return true;
|
|
2279
|
+
}
|
|
2280
|
+
return false;
|
|
2281
|
+
}
|
|
2282
|
+
match$3.match = match$2;
|
|
2283
|
+
|
|
2284
|
+
var reduceAsync$3 = {};
|
|
2285
|
+
|
|
2286
|
+
reduceAsync$3.reduceAsync = void 0;
|
|
2287
|
+
const types_1$n = es2018$7;
|
|
2288
|
+
function reduceAsync$2(iterable, fn, initialValue) {
|
|
2289
|
+
if ((0, types_1$n.isUndefined)(initialValue)) {
|
|
2290
|
+
return reduceAsyncWithoutInitialValue$1(iterable, fn);
|
|
2291
|
+
}
|
|
2292
|
+
else {
|
|
2293
|
+
return reduceAsyncWithInitialValue$1(iterable, fn, initialValue);
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
reduceAsync$3.reduceAsync = reduceAsync$2;
|
|
2297
|
+
function reduceAsyncWithInitialValue$1(iterable, fn, initialValue) {
|
|
2298
|
+
if ((0, types_1$n.isAsyncIterable)(iterable)) {
|
|
2299
|
+
return reduceAsyncIterable(iterable);
|
|
2300
|
+
}
|
|
2301
|
+
else {
|
|
2302
|
+
return reduceIterable(iterable);
|
|
2303
|
+
}
|
|
2304
|
+
async function reduceIterable(iterable) {
|
|
2305
|
+
let result = initialValue, index = 0;
|
|
2306
|
+
for (const currentValue of iterable) {
|
|
2307
|
+
result = await fn(result, currentValue, index++);
|
|
2308
|
+
}
|
|
2309
|
+
return result;
|
|
2310
|
+
}
|
|
2311
|
+
async function reduceAsyncIterable(iterable) {
|
|
2312
|
+
let result = initialValue, index = 0;
|
|
2313
|
+
for await (const currentValue of iterable) {
|
|
2314
|
+
result = await fn(result, currentValue, index++);
|
|
2315
|
+
}
|
|
2316
|
+
return result;
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
function reduceAsyncWithoutInitialValue$1(iterable, fn) {
|
|
2320
|
+
if ((0, types_1$n.isAsyncIterable)(iterable)) {
|
|
2321
|
+
return reduceAsyncIterable(iterable);
|
|
2322
|
+
}
|
|
2323
|
+
else {
|
|
2324
|
+
return reduceIterable(iterable);
|
|
2325
|
+
}
|
|
2326
|
+
async function reduceAsyncIterable(iterable) {
|
|
2327
|
+
var _a;
|
|
2328
|
+
const iterator = iterable[Symbol.asyncIterator]();
|
|
2329
|
+
let done;
|
|
2330
|
+
try {
|
|
2331
|
+
let result = await readInitialValue(iterator);
|
|
2332
|
+
let index = 1;
|
|
2333
|
+
let value;
|
|
2334
|
+
while ({ value, done } = await iterator.next(), !done) {
|
|
2335
|
+
result = await fn(result, value, index++);
|
|
2336
|
+
}
|
|
2337
|
+
return result;
|
|
2338
|
+
}
|
|
2339
|
+
finally {
|
|
2340
|
+
if (!done)
|
|
2341
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
2342
|
+
}
|
|
2343
|
+
async function readInitialValue(iterator) {
|
|
2344
|
+
const result = await iterator.next();
|
|
2345
|
+
if (result.done) {
|
|
2346
|
+
done = true;
|
|
2347
|
+
throw new Error('Reduce of empty iterable with no initial value');
|
|
2348
|
+
}
|
|
2349
|
+
return result.value;
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
async function reduceIterable(iterable) {
|
|
2353
|
+
var _a;
|
|
2354
|
+
const iterator = iterable[Symbol.iterator]();
|
|
2355
|
+
let done;
|
|
2356
|
+
try {
|
|
2357
|
+
let result = readInitialValue(iterator);
|
|
2358
|
+
let index = 1;
|
|
2359
|
+
let value;
|
|
2360
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
2361
|
+
result = await fn(result, value, index++);
|
|
2362
|
+
}
|
|
2363
|
+
return result;
|
|
2364
|
+
}
|
|
2365
|
+
finally {
|
|
2366
|
+
if (!done)
|
|
2367
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
2368
|
+
}
|
|
2369
|
+
function readInitialValue(iterator) {
|
|
2370
|
+
const result = iterator.next();
|
|
2371
|
+
if (result.done) {
|
|
2372
|
+
done = true;
|
|
2373
|
+
throw new Error('Reduce of empty iterable with no initial value');
|
|
2374
|
+
}
|
|
2375
|
+
return result.value;
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
var reduce$3 = {};
|
|
2381
|
+
|
|
2382
|
+
reduce$3.reduce = void 0;
|
|
2383
|
+
const types_1$m = es2018$7;
|
|
2384
|
+
function reduce$2(iterable, fn, initialValue) {
|
|
2385
|
+
if ((0, types_1$m.isUndefined)(initialValue)) {
|
|
2386
|
+
return reduceWithoutInitialValue$1(iterable, fn);
|
|
2387
|
+
}
|
|
2388
|
+
else {
|
|
2389
|
+
return reduceWithInitialValue$1(iterable, fn, initialValue);
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
reduce$3.reduce = reduce$2;
|
|
2393
|
+
function reduceWithInitialValue$1(iterable, fn, initialValue) {
|
|
2394
|
+
let result = initialValue, index = 0;
|
|
2395
|
+
for (const currentValue of iterable) {
|
|
2396
|
+
result = fn(result, currentValue, index++);
|
|
2397
|
+
}
|
|
2398
|
+
return result;
|
|
2399
|
+
}
|
|
2400
|
+
function reduceWithoutInitialValue$1(iterable, fn) {
|
|
2401
|
+
var _a;
|
|
2402
|
+
const iterator = iterable[Symbol.iterator]();
|
|
2403
|
+
let done;
|
|
2404
|
+
try {
|
|
2405
|
+
let result = readInitialValue(iterator);
|
|
2406
|
+
let index = 1;
|
|
2407
|
+
let value;
|
|
2408
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
2409
|
+
result = fn(result, value, index++);
|
|
2410
|
+
}
|
|
2411
|
+
return result;
|
|
2412
|
+
}
|
|
2413
|
+
finally {
|
|
2414
|
+
if (!done)
|
|
2415
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
2416
|
+
}
|
|
2417
|
+
function readInitialValue(iterator) {
|
|
2418
|
+
const result = iterator.next();
|
|
2419
|
+
if (result.done) {
|
|
2420
|
+
done = true;
|
|
2421
|
+
throw new Error('Reduce of empty iterable with no initial value');
|
|
2422
|
+
}
|
|
2423
|
+
return result.value;
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
var someAsync$3 = {};
|
|
2428
|
+
|
|
2429
|
+
someAsync$3.someAsync = void 0;
|
|
2430
|
+
const types_1$l = es2018$7;
|
|
2431
|
+
function someAsync$2(iterable, predicate) {
|
|
2432
|
+
if ((0, types_1$l.isAsyncIterable)(iterable)) {
|
|
2433
|
+
return someAsyncIterable(iterable);
|
|
2434
|
+
}
|
|
2435
|
+
else {
|
|
2436
|
+
return someIterable(iterable);
|
|
2437
|
+
}
|
|
2438
|
+
async function someIterable(iterable) {
|
|
2439
|
+
let index = 0;
|
|
2440
|
+
for (const element of iterable) {
|
|
2441
|
+
if (await predicate(element, index))
|
|
2442
|
+
return true;
|
|
2443
|
+
index++;
|
|
2444
|
+
}
|
|
2445
|
+
return false;
|
|
2446
|
+
}
|
|
2447
|
+
async function someAsyncIterable(iterable) {
|
|
2448
|
+
let index = 0;
|
|
2449
|
+
for await (const element of iterable) {
|
|
2450
|
+
if (await predicate(element, index))
|
|
2451
|
+
return true;
|
|
2452
|
+
index++;
|
|
2453
|
+
}
|
|
2454
|
+
return false;
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
someAsync$3.someAsync = someAsync$2;
|
|
2458
|
+
|
|
2459
|
+
var some$3 = {};
|
|
2460
|
+
|
|
2461
|
+
some$3.some = void 0;
|
|
2462
|
+
function some$2(iterable, predicate) {
|
|
2463
|
+
let index = 0;
|
|
2464
|
+
for (const element of iterable) {
|
|
2465
|
+
if (predicate(element, index))
|
|
2466
|
+
return true;
|
|
2467
|
+
index++;
|
|
2468
|
+
}
|
|
2469
|
+
return false;
|
|
2470
|
+
}
|
|
2471
|
+
some$3.some = some$2;
|
|
2472
|
+
|
|
2473
|
+
var lastAsync$3 = {};
|
|
2474
|
+
|
|
2475
|
+
lastAsync$3.lastAsync = void 0;
|
|
2476
|
+
async function lastAsync$2(iterable) {
|
|
2477
|
+
var _a;
|
|
2478
|
+
const iterator = iterable[Symbol.asyncIterator]();
|
|
2479
|
+
let done;
|
|
2480
|
+
try {
|
|
2481
|
+
let value;
|
|
2482
|
+
let result;
|
|
2483
|
+
while ({ value, done } = await iterator.next(), !done) {
|
|
2484
|
+
result = value;
|
|
2485
|
+
}
|
|
2486
|
+
return result;
|
|
2487
|
+
}
|
|
2488
|
+
finally {
|
|
2489
|
+
if (!done)
|
|
2490
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
lastAsync$3.lastAsync = lastAsync$2;
|
|
243
2494
|
|
|
244
|
-
var
|
|
2495
|
+
var last$3 = {};
|
|
245
2496
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
2497
|
+
last$3.last = void 0;
|
|
2498
|
+
function last$2(iterable) {
|
|
2499
|
+
var _a;
|
|
2500
|
+
const iterator = iterable[Symbol.iterator]();
|
|
2501
|
+
let done;
|
|
2502
|
+
try {
|
|
2503
|
+
let value;
|
|
2504
|
+
let result;
|
|
2505
|
+
while ({ value, done } = iterator.next(), !done) {
|
|
2506
|
+
result = value;
|
|
2507
|
+
}
|
|
2508
|
+
return result;
|
|
2509
|
+
}
|
|
2510
|
+
finally {
|
|
2511
|
+
if (!done)
|
|
2512
|
+
(_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
250
2513
|
}
|
|
251
2514
|
}
|
|
252
|
-
|
|
2515
|
+
last$3.last = last$2;
|
|
253
2516
|
|
|
254
|
-
var
|
|
2517
|
+
var toArrayAsync$4 = {};
|
|
255
2518
|
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
|
|
2519
|
+
toArrayAsync$4.toArrayAsync = void 0;
|
|
2520
|
+
const consume_1$7 = consume$3;
|
|
2521
|
+
function toArrayAsync$3(iterable) {
|
|
2522
|
+
return (0, consume_1$7.consume)(iterable, async (iterable) => {
|
|
2523
|
+
const result = [];
|
|
2524
|
+
for await (const element of iterable) {
|
|
2525
|
+
result.push(element);
|
|
2526
|
+
}
|
|
2527
|
+
return result;
|
|
2528
|
+
});
|
|
259
2529
|
}
|
|
260
|
-
|
|
2530
|
+
toArrayAsync$4.toArrayAsync = toArrayAsync$3;
|
|
2531
|
+
|
|
2532
|
+
var toArray$3 = {};
|
|
2533
|
+
|
|
2534
|
+
toArray$3.toArray = void 0;
|
|
2535
|
+
const consume_1$6 = consume$3;
|
|
2536
|
+
function toArray$2(iterable) {
|
|
2537
|
+
return (0, consume_1$6.consume)(iterable, iterable => Array.from(iterable));
|
|
2538
|
+
}
|
|
2539
|
+
toArray$3.toArray = toArray$2;
|
|
2540
|
+
|
|
2541
|
+
var toSetAsync$3 = {};
|
|
2542
|
+
|
|
2543
|
+
toSetAsync$3.toSetAsync = void 0;
|
|
2544
|
+
const consume_1$5 = consume$3;
|
|
2545
|
+
function toSetAsync$2(iterable) {
|
|
2546
|
+
return (0, consume_1$5.consume)(iterable, async (iterable) => {
|
|
2547
|
+
const result = new Set();
|
|
2548
|
+
for await (const element of iterable) {
|
|
2549
|
+
result.add(element);
|
|
2550
|
+
}
|
|
2551
|
+
return result;
|
|
2552
|
+
});
|
|
2553
|
+
}
|
|
2554
|
+
toSetAsync$3.toSetAsync = toSetAsync$2;
|
|
2555
|
+
|
|
2556
|
+
var toSet$3 = {};
|
|
2557
|
+
|
|
2558
|
+
toSet$3.toSet = void 0;
|
|
2559
|
+
const consume_1$4 = consume$3;
|
|
2560
|
+
function toSet$2(iterable) {
|
|
2561
|
+
return (0, consume_1$4.consume)(iterable, iterable => new Set(iterable));
|
|
2562
|
+
}
|
|
2563
|
+
toSet$3.toSet = toSet$2;
|
|
2564
|
+
|
|
2565
|
+
(function (exports) {
|
|
2566
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2567
|
+
if (k2 === undefined) k2 = k;
|
|
2568
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2569
|
+
}) : (function(o, m, k, k2) {
|
|
2570
|
+
if (k2 === undefined) k2 = k;
|
|
2571
|
+
o[k2] = m[k];
|
|
2572
|
+
}));
|
|
2573
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2574
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2575
|
+
};__exportStar(consume$3, exports);
|
|
2576
|
+
__exportStar(eachAsync$3, exports);
|
|
2577
|
+
__exportStar(each$3, exports);
|
|
2578
|
+
__exportStar(everyAsync$3, exports);
|
|
2579
|
+
__exportStar(every$3, exports);
|
|
2580
|
+
__exportStar(findAsync$3, exports);
|
|
2581
|
+
__exportStar(find$3, exports);
|
|
2582
|
+
__exportStar(firstAsync$3, exports);
|
|
2583
|
+
__exportStar(first$3, exports);
|
|
2584
|
+
__exportStar(includesAsync$3, exports);
|
|
2585
|
+
__exportStar(includes$3, exports);
|
|
2586
|
+
__exportStar(matchAsync$3, exports);
|
|
2587
|
+
__exportStar(match$3, exports);
|
|
2588
|
+
__exportStar(reduceAsync$3, exports);
|
|
2589
|
+
__exportStar(reduce$3, exports);
|
|
2590
|
+
__exportStar(someAsync$3, exports);
|
|
2591
|
+
__exportStar(some$3, exports);
|
|
2592
|
+
__exportStar(lastAsync$3, exports);
|
|
2593
|
+
__exportStar(last$3, exports);
|
|
2594
|
+
__exportStar(toArrayAsync$4, exports);
|
|
2595
|
+
__exportStar(toArray$3, exports);
|
|
2596
|
+
__exportStar(toSetAsync$3, exports);
|
|
2597
|
+
__exportStar(toSet$3, exports);
|
|
2598
|
+
|
|
2599
|
+
}(output$1));
|
|
2600
|
+
|
|
2601
|
+
(function (exports) {
|
|
2602
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2603
|
+
if (k2 === undefined) k2 = k;
|
|
2604
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2605
|
+
}) : (function(o, m, k, k2) {
|
|
2606
|
+
if (k2 === undefined) k2 = k;
|
|
2607
|
+
o[k2] = m[k];
|
|
2608
|
+
}));
|
|
2609
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2610
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2611
|
+
};__exportStar(middleware$1, exports);
|
|
2612
|
+
__exportStar(output$1, exports);
|
|
2613
|
+
|
|
2614
|
+
}(es2018$a));
|
|
2615
|
+
|
|
2616
|
+
var getErrorNames$1 = {};
|
|
2617
|
+
|
|
2618
|
+
var traverseErrorPrototypeChain$1 = {};
|
|
2619
|
+
|
|
2620
|
+
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = void 0;
|
|
2621
|
+
function* traverseErrorPrototypeChain(err) {
|
|
2622
|
+
let current = err;
|
|
2623
|
+
while ((current = Object.getPrototypeOf(current))) {
|
|
2624
|
+
yield current;
|
|
2625
|
+
if (current === Error.prototype)
|
|
2626
|
+
break;
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
|
2630
|
+
|
|
2631
|
+
getErrorNames$1.getErrorNames = void 0;
|
|
2632
|
+
const types_1$k = es2018$7;
|
|
2633
|
+
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
|
2634
|
+
function* getErrorNames(err) {
|
|
2635
|
+
var _a;
|
|
2636
|
+
if ((0, types_1$k.isError)(err)) {
|
|
2637
|
+
for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {
|
|
2638
|
+
if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
|
|
2639
|
+
yield prototype.constructor.name;
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
else {
|
|
2644
|
+
yield err.name;
|
|
2645
|
+
yield* err.ancestors;
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
getErrorNames$1.getErrorNames = getErrorNames;
|
|
2649
|
+
|
|
2650
|
+
var serializableError = {};
|
|
2651
|
+
|
|
2652
|
+
serializableError.isSerializableError = void 0;
|
|
2653
|
+
const types_1$j = es2018$7;
|
|
2654
|
+
function isSerializableError(val) {
|
|
2655
|
+
return (0, types_1$j.isObject)(val)
|
|
2656
|
+
&& (0, types_1$j.isString)(val.name)
|
|
2657
|
+
&& (0, types_1$j.isString)(val.message)
|
|
2658
|
+
&& ((0, types_1$j.isString)(val.stack) || (0, types_1$j.isNull)(val.stack))
|
|
2659
|
+
&& ((0, types_1$j.isArray)(val.ancestors) && val.ancestors.every(types_1$j.isString));
|
|
2660
|
+
}
|
|
2661
|
+
serializableError.isSerializableError = isSerializableError;
|
|
2662
|
+
|
|
2663
|
+
customError$1.CustomError = void 0;
|
|
2664
|
+
const iterable_operator_1$1 = es2018$a;
|
|
2665
|
+
const get_error_names_1$1 = getErrorNames$1;
|
|
2666
|
+
const types_1$i = es2018$7;
|
|
2667
|
+
const serializable_error_1 = serializableError;
|
|
2668
|
+
class CustomError extends Error {
|
|
2669
|
+
get name() {
|
|
2670
|
+
var _a, _b;
|
|
2671
|
+
return (_b = (_a = (0, iterable_operator_1$1.first)((0, get_error_names_1$1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';
|
|
2672
|
+
}
|
|
2673
|
+
static [Symbol.hasInstance](instance) {
|
|
2674
|
+
var _a;
|
|
2675
|
+
if ((0, types_1$i.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
|
|
2676
|
+
const reversedClassNames = [
|
|
2677
|
+
(_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
|
|
2678
|
+
...(0, get_error_names_1$1.getErrorNames)(this.prototype)
|
|
2679
|
+
].reverse();
|
|
2680
|
+
const reversedInstanceNames = (0, iterable_operator_1$1.toArray)((0, get_error_names_1$1.getErrorNames)(instance)).reverse();
|
|
2681
|
+
return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
|
|
2682
|
+
}
|
|
2683
|
+
else {
|
|
2684
|
+
return false;
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
customError$1.CustomError = CustomError;
|
|
261
2689
|
|
|
262
2690
|
var assertionError = {};
|
|
263
2691
|
|
|
264
2692
|
assertionError.AssertionError = void 0;
|
|
265
|
-
const custom_error_1 = customError;
|
|
2693
|
+
const custom_error_1 = customError$1;
|
|
266
2694
|
class AssertionError extends custom_error_1.CustomError {
|
|
267
2695
|
}
|
|
268
2696
|
assertionError.AssertionError = AssertionError;
|
|
@@ -270,25 +2698,69 @@
|
|
|
270
2698
|
var normalize$1 = {};
|
|
271
2699
|
|
|
272
2700
|
normalize$1.normalize = void 0;
|
|
2701
|
+
const get_error_names_1 = getErrorNames$1;
|
|
2702
|
+
const iterable_operator_1 = es2018$a;
|
|
273
2703
|
function normalize(err) {
|
|
274
2704
|
var _a;
|
|
2705
|
+
const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
|
|
275
2706
|
return {
|
|
276
|
-
name
|
|
2707
|
+
name,
|
|
2708
|
+
ancestors,
|
|
277
2709
|
message: err.message,
|
|
278
2710
|
stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
|
|
279
2711
|
};
|
|
280
2712
|
}
|
|
281
2713
|
normalize$1.normalize = normalize;
|
|
282
2714
|
|
|
283
|
-
var
|
|
2715
|
+
var hydrate$1 = {};
|
|
284
2716
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
2717
|
+
var es2018$6 = {};
|
|
2718
|
+
|
|
2719
|
+
var pass$1 = {};
|
|
2720
|
+
|
|
2721
|
+
pass$1.pass = void 0;
|
|
2722
|
+
function pass() { }
|
|
2723
|
+
pass$1.pass = pass;
|
|
2724
|
+
|
|
2725
|
+
(function (exports) {
|
|
2726
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2727
|
+
if (k2 === undefined) k2 = k;
|
|
2728
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2729
|
+
}) : (function(o, m, k, k2) {
|
|
2730
|
+
if (k2 === undefined) k2 = k;
|
|
2731
|
+
o[k2] = m[k];
|
|
2732
|
+
}));
|
|
2733
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2734
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2735
|
+
};__exportStar(pass$1, exports);
|
|
2736
|
+
|
|
2737
|
+
}(es2018$6));
|
|
2738
|
+
|
|
2739
|
+
hydrate$1.hydrate = void 0;
|
|
2740
|
+
const pass_1 = es2018$6;
|
|
2741
|
+
function hydrate(err) {
|
|
2742
|
+
var _a;
|
|
2743
|
+
const errorNames = [err.name, ...err.ancestors]
|
|
2744
|
+
.slice(0, -1)
|
|
2745
|
+
.reverse();
|
|
2746
|
+
let errorConstructor = Error;
|
|
2747
|
+
for (const name of errorNames) {
|
|
2748
|
+
errorConstructor = createChildErrorConstructor(errorConstructor, name);
|
|
2749
|
+
}
|
|
2750
|
+
const result = new errorConstructor();
|
|
2751
|
+
result.name = err.name;
|
|
2752
|
+
result.message = err.message;
|
|
2753
|
+
result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;
|
|
2754
|
+
return result;
|
|
2755
|
+
}
|
|
2756
|
+
hydrate$1.hydrate = hydrate;
|
|
2757
|
+
function createChildErrorConstructor(parentErrorConstructor, name) {
|
|
2758
|
+
const constructor = function () { (0, pass_1.pass)(); };
|
|
2759
|
+
constructor.prototype = Object.create(parentErrorConstructor.prototype);
|
|
2760
|
+
constructor.prototype.constructor = constructor;
|
|
2761
|
+
Object.defineProperty(constructor, 'name', { value: name });
|
|
2762
|
+
return constructor;
|
|
290
2763
|
}
|
|
291
|
-
refute$1.refute = refute;
|
|
292
2764
|
|
|
293
2765
|
var assert$1 = {};
|
|
294
2766
|
|
|
@@ -310,14 +2782,16 @@
|
|
|
310
2782
|
}));
|
|
311
2783
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
312
2784
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
313
|
-
};__exportStar(customError, exports);
|
|
314
|
-
__exportStar(expectedError, exports);
|
|
2785
|
+
};__exportStar(customError$1, exports);
|
|
315
2786
|
__exportStar(assertionError, exports);
|
|
2787
|
+
__exportStar(serializableError, exports);
|
|
316
2788
|
__exportStar(normalize$1, exports);
|
|
317
|
-
__exportStar(
|
|
2789
|
+
__exportStar(hydrate$1, exports);
|
|
318
2790
|
__exportStar(assert$1, exports);
|
|
2791
|
+
__exportStar(getErrorNames$1, exports);
|
|
2792
|
+
__exportStar(traverseErrorPrototypeChain$1, exports);
|
|
319
2793
|
|
|
320
|
-
}(es2018$
|
|
2794
|
+
}(es2018$b));
|
|
321
2795
|
|
|
322
2796
|
var es2018$5 = {};
|
|
323
2797
|
|
|
@@ -351,7 +2825,7 @@
|
|
|
351
2825
|
|
|
352
2826
|
chunkAsync$1.chunkAsync = void 0;
|
|
353
2827
|
const go_1$f = es2018$4;
|
|
354
|
-
const errors_1$f = es2018$
|
|
2828
|
+
const errors_1$f = es2018$b;
|
|
355
2829
|
function chunkAsync(iterable, size) {
|
|
356
2830
|
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
357
2831
|
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -421,11 +2895,11 @@
|
|
|
421
2895
|
_undefined$1.isntUndefined = isntUndefined$1;
|
|
422
2896
|
|
|
423
2897
|
asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
|
|
424
|
-
const null_1$
|
|
425
|
-
const undefined_1$
|
|
2898
|
+
const null_1$4 = _null$1;
|
|
2899
|
+
const undefined_1$4 = _undefined$1;
|
|
426
2900
|
function isAsyncIterable$1(val) {
|
|
427
|
-
return (0, null_1$
|
|
428
|
-
&& (0, undefined_1$
|
|
2901
|
+
return (0, null_1$4.isntNull)(val)
|
|
2902
|
+
&& (0, undefined_1$4.isntUndefined)(val)
|
|
429
2903
|
&& typeof val[Symbol.asyncIterator] === 'function';
|
|
430
2904
|
}
|
|
431
2905
|
asyncIterable$1.isAsyncIterable = isAsyncIterable$1;
|
|
@@ -543,11 +3017,11 @@
|
|
|
543
3017
|
var iterable$1 = {};
|
|
544
3018
|
|
|
545
3019
|
iterable$1.isntIterable = iterable$1.isIterable = void 0;
|
|
546
|
-
const null_1$
|
|
547
|
-
const undefined_1$
|
|
3020
|
+
const null_1$3 = _null$1;
|
|
3021
|
+
const undefined_1$3 = _undefined$1;
|
|
548
3022
|
function isIterable$1(val) {
|
|
549
|
-
return (0, null_1$
|
|
550
|
-
&& (0, undefined_1$
|
|
3023
|
+
return (0, null_1$3.isntNull)(val)
|
|
3024
|
+
&& (0, undefined_1$3.isntUndefined)(val)
|
|
551
3025
|
&& typeof val[Symbol.iterator] === 'function';
|
|
552
3026
|
}
|
|
553
3027
|
iterable$1.isIterable = isIterable$1;
|
|
@@ -556,23 +3030,31 @@
|
|
|
556
3030
|
}
|
|
557
3031
|
iterable$1.isntIterable = isntIterable$1;
|
|
558
3032
|
|
|
559
|
-
var jsonRpc
|
|
3033
|
+
var jsonRpc = {};
|
|
560
3034
|
|
|
561
3035
|
var object$1 = {};
|
|
562
3036
|
|
|
563
|
-
|
|
3037
|
+
var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
3038
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3039
|
+
};object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
|
|
3040
|
+
const lodash_isplainobject_1$1 = __importDefault$1(lodash_isplainobject);
|
|
564
3041
|
function isObject$1(val) {
|
|
565
|
-
return val !== null
|
|
3042
|
+
return val !== null
|
|
3043
|
+
&& typeof val === 'object';
|
|
566
3044
|
}
|
|
567
3045
|
object$1.isObject = isObject$1;
|
|
568
3046
|
function isntObject$1(val) {
|
|
569
3047
|
return !isObject$1(val);
|
|
570
3048
|
}
|
|
571
3049
|
object$1.isntObject = isntObject$1;
|
|
572
|
-
function
|
|
573
|
-
return
|
|
3050
|
+
function isPlainObject$1(val) {
|
|
3051
|
+
return (0, lodash_isplainobject_1$1.default)(val);
|
|
574
3052
|
}
|
|
575
|
-
object$1.
|
|
3053
|
+
object$1.isPlainObject = isPlainObject$1;
|
|
3054
|
+
function isntPlainObject$1(val) {
|
|
3055
|
+
return !isPlainObject$1(val);
|
|
3056
|
+
}
|
|
3057
|
+
object$1.isntPlainObject = isntPlainObject$1;
|
|
576
3058
|
function isEmptyObject$1(val) {
|
|
577
3059
|
return Object.keys(val).length === 0;
|
|
578
3060
|
}
|
|
@@ -594,69 +3076,69 @@
|
|
|
594
3076
|
}
|
|
595
3077
|
number$1.isntNumber = isntNumber$1;
|
|
596
3078
|
|
|
597
|
-
jsonRpc
|
|
3079
|
+
jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
|
|
598
3080
|
const array_1$1 = array$1;
|
|
599
|
-
const object_1$
|
|
3081
|
+
const object_1$2 = object$1;
|
|
600
3082
|
const string_1$2 = string$1;
|
|
601
3083
|
const number_1$1 = number$1;
|
|
602
|
-
const undefined_1$
|
|
603
|
-
function isJsonRpcId
|
|
3084
|
+
const undefined_1$2 = _undefined$1;
|
|
3085
|
+
function isJsonRpcId(val) {
|
|
604
3086
|
return (0, string_1$2.isString)(val) || (0, number_1$1.isNumber)(val);
|
|
605
3087
|
}
|
|
606
|
-
function isJsonRpcParams
|
|
607
|
-
return (0, array_1$1.isArray)(val) || (0, object_1$
|
|
3088
|
+
function isJsonRpcParams(val) {
|
|
3089
|
+
return (0, array_1$1.isArray)(val) || (0, object_1$2.isObject)(val);
|
|
608
3090
|
}
|
|
609
|
-
function isJsonRpcNotification
|
|
610
|
-
return (0, object_1$
|
|
3091
|
+
function isJsonRpcNotification(val) {
|
|
3092
|
+
return (0, object_1$2.isPlainObject)(val)
|
|
611
3093
|
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
612
3094
|
&& (0, string_1$2.isString)(val.method)
|
|
613
|
-
&& (0, undefined_1$
|
|
614
|
-
&& isJsonRpcParams
|
|
3095
|
+
&& (0, undefined_1$2.isUndefined)(val.id)
|
|
3096
|
+
&& isJsonRpcParams(val.params);
|
|
615
3097
|
}
|
|
616
|
-
jsonRpc
|
|
617
|
-
function isntJsonRpcNotification
|
|
618
|
-
return !isJsonRpcNotification
|
|
3098
|
+
jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
|
|
3099
|
+
function isntJsonRpcNotification(val) {
|
|
3100
|
+
return !isJsonRpcNotification(val);
|
|
619
3101
|
}
|
|
620
|
-
jsonRpc
|
|
621
|
-
function isJsonRpcRequest
|
|
622
|
-
return (0, object_1$
|
|
3102
|
+
jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
|
|
3103
|
+
function isJsonRpcRequest(val) {
|
|
3104
|
+
return (0, object_1$2.isPlainObject)(val)
|
|
623
3105
|
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
624
3106
|
&& (0, string_1$2.isString)(val.method)
|
|
625
|
-
&& isJsonRpcId
|
|
626
|
-
&& isJsonRpcParams
|
|
3107
|
+
&& isJsonRpcId(val.id)
|
|
3108
|
+
&& isJsonRpcParams(val.params);
|
|
627
3109
|
}
|
|
628
|
-
jsonRpc
|
|
629
|
-
function isntJsonRpcRequest
|
|
630
|
-
return !isJsonRpcRequest
|
|
3110
|
+
jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
|
|
3111
|
+
function isntJsonRpcRequest(val) {
|
|
3112
|
+
return !isJsonRpcRequest(val);
|
|
631
3113
|
}
|
|
632
|
-
jsonRpc
|
|
633
|
-
function isJsonRpcSuccess
|
|
634
|
-
return (0, object_1$
|
|
3114
|
+
jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
|
|
3115
|
+
function isJsonRpcSuccess(val) {
|
|
3116
|
+
return (0, object_1$2.isPlainObject)(val)
|
|
635
3117
|
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
636
3118
|
&& (0, string_1$2.isString)(val.id)
|
|
637
|
-
&&
|
|
3119
|
+
&& 'result' in val;
|
|
638
3120
|
}
|
|
639
|
-
jsonRpc
|
|
640
|
-
function isntJsonRpcSuccess
|
|
641
|
-
return !isJsonRpcSuccess
|
|
3121
|
+
jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
|
|
3122
|
+
function isntJsonRpcSuccess(val) {
|
|
3123
|
+
return !isJsonRpcSuccess(val);
|
|
642
3124
|
}
|
|
643
|
-
jsonRpc
|
|
644
|
-
function isJsonRpcError
|
|
645
|
-
return (0, object_1$
|
|
3125
|
+
jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
|
|
3126
|
+
function isJsonRpcError(val) {
|
|
3127
|
+
return (0, object_1$2.isPlainObject)(val)
|
|
646
3128
|
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
647
|
-
&& isJsonRpcId
|
|
648
|
-
&& isJsonRpcErrorObject
|
|
3129
|
+
&& isJsonRpcId(val.id)
|
|
3130
|
+
&& isJsonRpcErrorObject(val.error);
|
|
649
3131
|
}
|
|
650
|
-
jsonRpc
|
|
651
|
-
function isntJsonRpcError
|
|
652
|
-
return !isJsonRpcError
|
|
3132
|
+
jsonRpc.isJsonRpcError = isJsonRpcError;
|
|
3133
|
+
function isntJsonRpcError(val) {
|
|
3134
|
+
return !isJsonRpcError(val);
|
|
653
3135
|
}
|
|
654
|
-
jsonRpc
|
|
655
|
-
function isJsonRpcErrorObject
|
|
656
|
-
return (0, object_1$
|
|
3136
|
+
jsonRpc.isntJsonRpcError = isntJsonRpcError;
|
|
3137
|
+
function isJsonRpcErrorObject(val) {
|
|
3138
|
+
return (0, object_1$2.isPlainObject)(val)
|
|
657
3139
|
&& (0, number_1$1.isNumber)(val.code)
|
|
658
3140
|
&& (0, string_1$2.isString)(val.message)
|
|
659
|
-
&& ((0, undefined_1$
|
|
3141
|
+
&& ((0, undefined_1$2.isUndefined)(val.data) || (0, object_1$2.isObject)(val.data));
|
|
660
3142
|
}
|
|
661
3143
|
|
|
662
3144
|
var json$1 = {};
|
|
@@ -712,7 +3194,7 @@
|
|
|
712
3194
|
__exportStar(falsy$1, exports);
|
|
713
3195
|
__exportStar(_function$1, exports);
|
|
714
3196
|
__exportStar(iterable$1, exports);
|
|
715
|
-
__exportStar(jsonRpc
|
|
3197
|
+
__exportStar(jsonRpc, exports);
|
|
716
3198
|
__exportStar(json$1, exports);
|
|
717
3199
|
__exportStar(_null$1, exports);
|
|
718
3200
|
__exportStar(number$1, exports);
|
|
@@ -786,7 +3268,7 @@
|
|
|
786
3268
|
|
|
787
3269
|
chunk$1.chunk = void 0;
|
|
788
3270
|
const go_1$e = es2018$4;
|
|
789
|
-
const errors_1$e = es2018$
|
|
3271
|
+
const errors_1$e = es2018$b;
|
|
790
3272
|
function chunk(iterable, size) {
|
|
791
3273
|
(0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
792
3274
|
(0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -862,7 +3344,7 @@
|
|
|
862
3344
|
dropAsync$1.dropAsync = void 0;
|
|
863
3345
|
const go_1$b = es2018$4;
|
|
864
3346
|
const utils_1$3 = utils;
|
|
865
|
-
const errors_1$d = es2018$
|
|
3347
|
+
const errors_1$d = es2018$b;
|
|
866
3348
|
function dropAsync(iterable, count) {
|
|
867
3349
|
(0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
868
3350
|
(0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -897,7 +3379,7 @@
|
|
|
897
3379
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
898
3380
|
const go_1$a = es2018$4;
|
|
899
3381
|
const utils_1$2 = utils;
|
|
900
|
-
const errors_1$c = es2018$
|
|
3382
|
+
const errors_1$c = es2018$b;
|
|
901
3383
|
function dropRightAsync(iterable, count) {
|
|
902
3384
|
(0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
903
3385
|
(0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -925,7 +3407,7 @@
|
|
|
925
3407
|
dropRight$1.dropRight = void 0;
|
|
926
3408
|
const go_1$9 = es2018$4;
|
|
927
3409
|
const utils_1$1 = utils;
|
|
928
|
-
const errors_1$b = es2018$
|
|
3410
|
+
const errors_1$b = es2018$b;
|
|
929
3411
|
function dropRight(iterable, count) {
|
|
930
3412
|
(0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
931
3413
|
(0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1025,7 +3507,7 @@
|
|
|
1025
3507
|
drop$1.drop = void 0;
|
|
1026
3508
|
const go_1$8 = es2018$4;
|
|
1027
3509
|
const utils_1 = utils;
|
|
1028
|
-
const errors_1$a = es2018$
|
|
3510
|
+
const errors_1$a = es2018$b;
|
|
1029
3511
|
function drop(iterable, count) {
|
|
1030
3512
|
(0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1031
3513
|
(0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1145,7 +3627,7 @@
|
|
|
1145
3627
|
|
|
1146
3628
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
1147
3629
|
const flatten_by_async_1 = flattenByAsync$1;
|
|
1148
|
-
const errors_1$9 = es2018$
|
|
3630
|
+
const errors_1$9 = es2018$b;
|
|
1149
3631
|
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
1150
3632
|
(0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1151
3633
|
(0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1186,7 +3668,7 @@
|
|
|
1186
3668
|
|
|
1187
3669
|
flattenDeep$1.flattenDeep = void 0;
|
|
1188
3670
|
const flatten_by_1 = flattenBy$1;
|
|
1189
|
-
const errors_1$8 = es2018$
|
|
3671
|
+
const errors_1$8 = es2018$b;
|
|
1190
3672
|
function flattenDeep(iterable, depth = Infinity) {
|
|
1191
3673
|
(0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1192
3674
|
(0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1247,7 +3729,7 @@
|
|
|
1247
3729
|
|
|
1248
3730
|
repeatAsync$1.repeatAsync = void 0;
|
|
1249
3731
|
const go_1$7 = es2018$4;
|
|
1250
|
-
const errors_1$7 = es2018$
|
|
3732
|
+
const errors_1$7 = es2018$b;
|
|
1251
3733
|
function repeatAsync(iterable, times) {
|
|
1252
3734
|
(0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1253
3735
|
(0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1282,7 +3764,7 @@
|
|
|
1282
3764
|
|
|
1283
3765
|
repeat$1.repeat = void 0;
|
|
1284
3766
|
const go_1$6 = es2018$4;
|
|
1285
|
-
const errors_1$6 = es2018$
|
|
3767
|
+
const errors_1$6 = es2018$b;
|
|
1286
3768
|
function repeat(iterable, times) {
|
|
1287
3769
|
(0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1288
3770
|
(0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1317,7 +3799,7 @@
|
|
|
1317
3799
|
|
|
1318
3800
|
sliceAsync$1.sliceAsync = void 0;
|
|
1319
3801
|
const go_1$5 = es2018$4;
|
|
1320
|
-
const errors_1$5 = es2018$
|
|
3802
|
+
const errors_1$5 = es2018$b;
|
|
1321
3803
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
1322
3804
|
(0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1323
3805
|
(0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1340,7 +3822,7 @@
|
|
|
1340
3822
|
|
|
1341
3823
|
slice$1.slice = void 0;
|
|
1342
3824
|
const go_1$4 = es2018$4;
|
|
1343
|
-
const errors_1$4 = es2018$
|
|
3825
|
+
const errors_1$4 = es2018$b;
|
|
1344
3826
|
function slice(iterable, start, end = Infinity) {
|
|
1345
3827
|
(0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1346
3828
|
(0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1463,7 +3945,7 @@
|
|
|
1463
3945
|
|
|
1464
3946
|
takeAsync$1.takeAsync = void 0;
|
|
1465
3947
|
const go_1$3 = es2018$4;
|
|
1466
|
-
const errors_1$3 = es2018$
|
|
3948
|
+
const errors_1$3 = es2018$b;
|
|
1467
3949
|
function takeAsync(iterable, count) {
|
|
1468
3950
|
(0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1469
3951
|
(0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1484,7 +3966,7 @@
|
|
|
1484
3966
|
|
|
1485
3967
|
takeRightAsync$1.takeRightAsync = void 0;
|
|
1486
3968
|
const go_1$2 = es2018$4;
|
|
1487
|
-
const errors_1$2 = es2018$
|
|
3969
|
+
const errors_1$2 = es2018$b;
|
|
1488
3970
|
function takeRightAsync(iterable, count) {
|
|
1489
3971
|
(0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1490
3972
|
(0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1514,7 +3996,7 @@
|
|
|
1514
3996
|
|
|
1515
3997
|
takeRight$1.takeRight = void 0;
|
|
1516
3998
|
const go_1$1 = es2018$4;
|
|
1517
|
-
const errors_1$1 = es2018$
|
|
3999
|
+
const errors_1$1 = es2018$b;
|
|
1518
4000
|
function takeRight(iterable, count) {
|
|
1519
4001
|
(0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1520
4002
|
(0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1590,7 +4072,7 @@
|
|
|
1590
4072
|
|
|
1591
4073
|
take$1.take = void 0;
|
|
1592
4074
|
const go_1 = es2018$4;
|
|
1593
|
-
const errors_1 = es2018$
|
|
4075
|
+
const errors_1 = es2018$b;
|
|
1594
4076
|
function take(iterable, count) {
|
|
1595
4077
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1596
4078
|
(0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -2466,8 +4948,8 @@
|
|
|
2466
4948
|
constructor(limit) {
|
|
2467
4949
|
_LRUMap_limit.set(this, void 0);
|
|
2468
4950
|
_LRUMap_map.set(this, new Map());
|
|
2469
|
-
es2018$
|
|
2470
|
-
es2018$
|
|
4951
|
+
es2018$b.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
|
|
4952
|
+
es2018$b.assert(limit > 0, 'The parameter limit must be a positive value');
|
|
2471
4953
|
__classPrivateFieldSet(this, _LRUMap_limit, limit, "f");
|
|
2472
4954
|
}
|
|
2473
4955
|
get [(_LRUMap_limit = new WeakMap(), _LRUMap_map = new WeakMap(), Symbol.toStringTag)]() {
|
|
@@ -2801,8 +5283,8 @@
|
|
|
2801
5283
|
* 按过期时间升序排列所有项目的元数据
|
|
2802
5284
|
*/
|
|
2803
5285
|
this.itemMetadataSortedByExpirationTime = [];
|
|
2804
|
-
es2018$
|
|
2805
|
-
es2018$
|
|
5286
|
+
es2018$b.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
|
|
5287
|
+
es2018$b.assert(limit > 0, 'The parameter limit must be a positive value');
|
|
2806
5288
|
__classPrivateFieldSet(this, _TLRUMap_limit, limit, "f");
|
|
2807
5289
|
}
|
|
2808
5290
|
get [(_TLRUMap_limit = new WeakMap(), _TLRUMap_map = new WeakMap(), _TLRUMap_cancelClearTimeout = new WeakMap(), Symbol.toStringTag)]() {
|
|
@@ -3012,11 +5494,14 @@
|
|
|
3012
5494
|
matches(state) {
|
|
3013
5495
|
return __classPrivateFieldGet(this, _FiniteStateMachine_state, "f") === state;
|
|
3014
5496
|
}
|
|
5497
|
+
can(event) {
|
|
5498
|
+
return event in this.schema[this.state];
|
|
5499
|
+
}
|
|
3015
5500
|
/**
|
|
3016
5501
|
* @throws {BadEventError}
|
|
3017
5502
|
*/
|
|
3018
5503
|
send(event) {
|
|
3019
|
-
if (
|
|
5504
|
+
if (this.can(event)) {
|
|
3020
5505
|
__classPrivateFieldSet(this, _FiniteStateMachine_state, this.schema[this.state][event], "f");
|
|
3021
5506
|
}
|
|
3022
5507
|
else {
|
|
@@ -3025,7 +5510,7 @@
|
|
|
3025
5510
|
}
|
|
3026
5511
|
}
|
|
3027
5512
|
_FiniteStateMachine_state = new WeakMap();
|
|
3028
|
-
class BadEventError extends es2018$
|
|
5513
|
+
class BadEventError extends es2018$b.CustomError {
|
|
3029
5514
|
constructor(state, event) {
|
|
3030
5515
|
super(`State ${state} cannot react to event ${event}`);
|
|
3031
5516
|
}
|
|
@@ -3069,7 +5554,7 @@
|
|
|
3069
5554
|
this.initialTeardown = initialTeardown;
|
|
3070
5555
|
this.closed = false;
|
|
3071
5556
|
this._parentage = null;
|
|
3072
|
-
this.
|
|
5557
|
+
this._finalizers = null;
|
|
3073
5558
|
}
|
|
3074
5559
|
Subscription.prototype.unsubscribe = function () {
|
|
3075
5560
|
var e_1, _a, e_2, _b;
|
|
@@ -3098,23 +5583,23 @@
|
|
|
3098
5583
|
_parentage.remove(this);
|
|
3099
5584
|
}
|
|
3100
5585
|
}
|
|
3101
|
-
var
|
|
3102
|
-
if (isFunction$1(
|
|
5586
|
+
var initialFinalizer = this.initialTeardown;
|
|
5587
|
+
if (isFunction$1(initialFinalizer)) {
|
|
3103
5588
|
try {
|
|
3104
|
-
|
|
5589
|
+
initialFinalizer();
|
|
3105
5590
|
}
|
|
3106
5591
|
catch (e) {
|
|
3107
5592
|
errors = e instanceof UnsubscriptionError ? e.errors : [e];
|
|
3108
5593
|
}
|
|
3109
5594
|
}
|
|
3110
|
-
var
|
|
3111
|
-
if (
|
|
3112
|
-
this.
|
|
5595
|
+
var _finalizers = this._finalizers;
|
|
5596
|
+
if (_finalizers) {
|
|
5597
|
+
this._finalizers = null;
|
|
3113
5598
|
try {
|
|
3114
|
-
for (var
|
|
3115
|
-
var
|
|
5599
|
+
for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
|
|
5600
|
+
var finalizer = _finalizers_1_1.value;
|
|
3116
5601
|
try {
|
|
3117
|
-
|
|
5602
|
+
execFinalizer(finalizer);
|
|
3118
5603
|
}
|
|
3119
5604
|
catch (err) {
|
|
3120
5605
|
errors = errors !== null && errors !== void 0 ? errors : [];
|
|
@@ -3130,7 +5615,7 @@
|
|
|
3130
5615
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
3131
5616
|
finally {
|
|
3132
5617
|
try {
|
|
3133
|
-
if (
|
|
5618
|
+
if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1);
|
|
3134
5619
|
}
|
|
3135
5620
|
finally { if (e_2) throw e_2.error; }
|
|
3136
5621
|
}
|
|
@@ -3144,7 +5629,7 @@
|
|
|
3144
5629
|
var _a;
|
|
3145
5630
|
if (teardown && teardown !== this) {
|
|
3146
5631
|
if (this.closed) {
|
|
3147
|
-
|
|
5632
|
+
execFinalizer(teardown);
|
|
3148
5633
|
}
|
|
3149
5634
|
else {
|
|
3150
5635
|
if (teardown instanceof Subscription) {
|
|
@@ -3153,7 +5638,7 @@
|
|
|
3153
5638
|
}
|
|
3154
5639
|
teardown._addParent(this);
|
|
3155
5640
|
}
|
|
3156
|
-
(this.
|
|
5641
|
+
(this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
|
|
3157
5642
|
}
|
|
3158
5643
|
}
|
|
3159
5644
|
};
|
|
@@ -3175,8 +5660,8 @@
|
|
|
3175
5660
|
}
|
|
3176
5661
|
};
|
|
3177
5662
|
Subscription.prototype.remove = function (teardown) {
|
|
3178
|
-
var
|
|
3179
|
-
|
|
5663
|
+
var _finalizers = this._finalizers;
|
|
5664
|
+
_finalizers && arrRemove(_finalizers, teardown);
|
|
3180
5665
|
if (teardown instanceof Subscription) {
|
|
3181
5666
|
teardown._removeParent(this);
|
|
3182
5667
|
}
|
|
@@ -3193,12 +5678,12 @@
|
|
|
3193
5678
|
return (value instanceof Subscription ||
|
|
3194
5679
|
(value && 'closed' in value && isFunction$1(value.remove) && isFunction$1(value.add) && isFunction$1(value.unsubscribe)));
|
|
3195
5680
|
}
|
|
3196
|
-
function
|
|
3197
|
-
if (isFunction$1(
|
|
3198
|
-
|
|
5681
|
+
function execFinalizer(finalizer) {
|
|
5682
|
+
if (isFunction$1(finalizer)) {
|
|
5683
|
+
finalizer();
|
|
3199
5684
|
}
|
|
3200
5685
|
else {
|
|
3201
|
-
|
|
5686
|
+
finalizer.unsubscribe();
|
|
3202
5687
|
}
|
|
3203
5688
|
}
|
|
3204
5689
|
|
|
@@ -3211,13 +5696,16 @@
|
|
|
3211
5696
|
};
|
|
3212
5697
|
|
|
3213
5698
|
var timeoutProvider = {
|
|
3214
|
-
setTimeout: function () {
|
|
5699
|
+
setTimeout: function (handler, timeout) {
|
|
3215
5700
|
var args = [];
|
|
3216
|
-
for (var _i =
|
|
3217
|
-
args[_i] = arguments[_i];
|
|
5701
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
5702
|
+
args[_i - 2] = arguments[_i];
|
|
3218
5703
|
}
|
|
3219
5704
|
var delegate = timeoutProvider.delegate;
|
|
3220
|
-
|
|
5705
|
+
if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
|
|
5706
|
+
return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));
|
|
5707
|
+
}
|
|
5708
|
+
return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
|
3221
5709
|
},
|
|
3222
5710
|
clearTimeout: function (handle) {
|
|
3223
5711
|
var delegate = timeoutProvider.delegate;
|
|
@@ -3324,52 +5812,88 @@
|
|
|
3324
5812
|
};
|
|
3325
5813
|
return Subscriber;
|
|
3326
5814
|
}(Subscription));
|
|
5815
|
+
var _bind = Function.prototype.bind;
|
|
5816
|
+
function bind(fn, thisArg) {
|
|
5817
|
+
return _bind.call(fn, thisArg);
|
|
5818
|
+
}
|
|
5819
|
+
var ConsumerObserver = (function () {
|
|
5820
|
+
function ConsumerObserver(partialObserver) {
|
|
5821
|
+
this.partialObserver = partialObserver;
|
|
5822
|
+
}
|
|
5823
|
+
ConsumerObserver.prototype.next = function (value) {
|
|
5824
|
+
var partialObserver = this.partialObserver;
|
|
5825
|
+
if (partialObserver.next) {
|
|
5826
|
+
try {
|
|
5827
|
+
partialObserver.next(value);
|
|
5828
|
+
}
|
|
5829
|
+
catch (error) {
|
|
5830
|
+
handleUnhandledError(error);
|
|
5831
|
+
}
|
|
5832
|
+
}
|
|
5833
|
+
};
|
|
5834
|
+
ConsumerObserver.prototype.error = function (err) {
|
|
5835
|
+
var partialObserver = this.partialObserver;
|
|
5836
|
+
if (partialObserver.error) {
|
|
5837
|
+
try {
|
|
5838
|
+
partialObserver.error(err);
|
|
5839
|
+
}
|
|
5840
|
+
catch (error) {
|
|
5841
|
+
handleUnhandledError(error);
|
|
5842
|
+
}
|
|
5843
|
+
}
|
|
5844
|
+
else {
|
|
5845
|
+
handleUnhandledError(err);
|
|
5846
|
+
}
|
|
5847
|
+
};
|
|
5848
|
+
ConsumerObserver.prototype.complete = function () {
|
|
5849
|
+
var partialObserver = this.partialObserver;
|
|
5850
|
+
if (partialObserver.complete) {
|
|
5851
|
+
try {
|
|
5852
|
+
partialObserver.complete();
|
|
5853
|
+
}
|
|
5854
|
+
catch (error) {
|
|
5855
|
+
handleUnhandledError(error);
|
|
5856
|
+
}
|
|
5857
|
+
}
|
|
5858
|
+
};
|
|
5859
|
+
return ConsumerObserver;
|
|
5860
|
+
}());
|
|
3327
5861
|
var SafeSubscriber = (function (_super) {
|
|
3328
5862
|
__extends(SafeSubscriber, _super);
|
|
3329
5863
|
function SafeSubscriber(observerOrNext, error, complete) {
|
|
3330
5864
|
var _this = _super.call(this) || this;
|
|
3331
|
-
var
|
|
3332
|
-
if (isFunction$1(observerOrNext)) {
|
|
3333
|
-
|
|
5865
|
+
var partialObserver;
|
|
5866
|
+
if (isFunction$1(observerOrNext) || !observerOrNext) {
|
|
5867
|
+
partialObserver = {
|
|
5868
|
+
next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,
|
|
5869
|
+
error: error !== null && error !== void 0 ? error : undefined,
|
|
5870
|
+
complete: complete !== null && complete !== void 0 ? complete : undefined,
|
|
5871
|
+
};
|
|
3334
5872
|
}
|
|
3335
|
-
else
|
|
3336
|
-
(next = observerOrNext.next, error = observerOrNext.error, complete = observerOrNext.complete);
|
|
5873
|
+
else {
|
|
3337
5874
|
var context_1;
|
|
3338
5875
|
if (_this && config.useDeprecatedNextContext) {
|
|
3339
5876
|
context_1 = Object.create(observerOrNext);
|
|
3340
5877
|
context_1.unsubscribe = function () { return _this.unsubscribe(); };
|
|
5878
|
+
partialObserver = {
|
|
5879
|
+
next: observerOrNext.next && bind(observerOrNext.next, context_1),
|
|
5880
|
+
error: observerOrNext.error && bind(observerOrNext.error, context_1),
|
|
5881
|
+
complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),
|
|
5882
|
+
};
|
|
3341
5883
|
}
|
|
3342
5884
|
else {
|
|
3343
|
-
|
|
5885
|
+
partialObserver = observerOrNext;
|
|
3344
5886
|
}
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
complete = complete === null || complete === void 0 ? void 0 : complete.bind(context_1);
|
|
3348
|
-
}
|
|
3349
|
-
_this.destination = {
|
|
3350
|
-
next: next ? wrapForErrorHandling(next) : noop,
|
|
3351
|
-
error: wrapForErrorHandling(error !== null && error !== void 0 ? error : defaultErrorHandler),
|
|
3352
|
-
complete: complete ? wrapForErrorHandling(complete) : noop,
|
|
3353
|
-
};
|
|
5887
|
+
}
|
|
5888
|
+
_this.destination = new ConsumerObserver(partialObserver);
|
|
3354
5889
|
return _this;
|
|
3355
5890
|
}
|
|
3356
5891
|
return SafeSubscriber;
|
|
3357
5892
|
}(Subscriber));
|
|
3358
|
-
function
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
args[_i] = arguments[_i];
|
|
3363
|
-
}
|
|
3364
|
-
try {
|
|
3365
|
-
handler.apply(void 0, __spreadArray([], __read(args)));
|
|
3366
|
-
}
|
|
3367
|
-
catch (err) {
|
|
3368
|
-
{
|
|
3369
|
-
reportUnhandledError(err);
|
|
3370
|
-
}
|
|
3371
|
-
}
|
|
3372
|
-
};
|
|
5893
|
+
function handleUnhandledError(error) {
|
|
5894
|
+
{
|
|
5895
|
+
reportUnhandledError(error);
|
|
5896
|
+
}
|
|
3373
5897
|
}
|
|
3374
5898
|
function defaultErrorHandler(err) {
|
|
3375
5899
|
throw err;
|
|
@@ -3506,6 +6030,7 @@
|
|
|
3506
6030
|
function Subject() {
|
|
3507
6031
|
var _this = _super.call(this) || this;
|
|
3508
6032
|
_this.closed = false;
|
|
6033
|
+
_this.currentObservers = null;
|
|
3509
6034
|
_this.observers = [];
|
|
3510
6035
|
_this.isStopped = false;
|
|
3511
6036
|
_this.hasError = false;
|
|
@@ -3528,17 +6053,19 @@
|
|
|
3528
6053
|
var e_1, _a;
|
|
3529
6054
|
_this._throwIfClosed();
|
|
3530
6055
|
if (!_this.isStopped) {
|
|
3531
|
-
|
|
6056
|
+
if (!_this.currentObservers) {
|
|
6057
|
+
_this.currentObservers = Array.from(_this.observers);
|
|
6058
|
+
}
|
|
3532
6059
|
try {
|
|
3533
|
-
for (var
|
|
3534
|
-
var observer =
|
|
6060
|
+
for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
6061
|
+
var observer = _c.value;
|
|
3535
6062
|
observer.next(value);
|
|
3536
6063
|
}
|
|
3537
6064
|
}
|
|
3538
6065
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3539
6066
|
finally {
|
|
3540
6067
|
try {
|
|
3541
|
-
if (
|
|
6068
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3542
6069
|
}
|
|
3543
6070
|
finally { if (e_1) throw e_1.error; }
|
|
3544
6071
|
}
|
|
@@ -3574,7 +6101,7 @@
|
|
|
3574
6101
|
};
|
|
3575
6102
|
Subject.prototype.unsubscribe = function () {
|
|
3576
6103
|
this.isStopped = this.closed = true;
|
|
3577
|
-
this.observers = null;
|
|
6104
|
+
this.observers = this.currentObservers = null;
|
|
3578
6105
|
};
|
|
3579
6106
|
Object.defineProperty(Subject.prototype, "observed", {
|
|
3580
6107
|
get: function () {
|
|
@@ -3594,10 +6121,17 @@
|
|
|
3594
6121
|
return this._innerSubscribe(subscriber);
|
|
3595
6122
|
};
|
|
3596
6123
|
Subject.prototype._innerSubscribe = function (subscriber) {
|
|
6124
|
+
var _this = this;
|
|
3597
6125
|
var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
6126
|
+
if (hasError || isStopped) {
|
|
6127
|
+
return EMPTY_SUBSCRIPTION;
|
|
6128
|
+
}
|
|
6129
|
+
this.currentObservers = null;
|
|
6130
|
+
observers.push(subscriber);
|
|
6131
|
+
return new Subscription(function () {
|
|
6132
|
+
_this.currentObservers = null;
|
|
6133
|
+
arrRemove(observers, subscriber);
|
|
6134
|
+
});
|
|
3601
6135
|
};
|
|
3602
6136
|
Subject.prototype._checkFinalizedStatuses = function (subscriber) {
|
|
3603
6137
|
var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
|
|
@@ -3687,19 +6221,32 @@
|
|
|
3687
6221
|
function isUndefined(val) {
|
|
3688
6222
|
return val === undefined;
|
|
3689
6223
|
}
|
|
3690
|
-
_undefined.isUndefined = isUndefined;
|
|
3691
|
-
function isntUndefined(val) {
|
|
3692
|
-
return !isUndefined(val);
|
|
6224
|
+
_undefined.isUndefined = isUndefined;
|
|
6225
|
+
function isntUndefined(val) {
|
|
6226
|
+
return !isUndefined(val);
|
|
6227
|
+
}
|
|
6228
|
+
_undefined.isntUndefined = isntUndefined;
|
|
6229
|
+
|
|
6230
|
+
var _function = {};
|
|
6231
|
+
|
|
6232
|
+
_function.isntFunction = _function.isFunction = void 0;
|
|
6233
|
+
function isFunction(val) {
|
|
6234
|
+
return typeof val === 'function';
|
|
6235
|
+
}
|
|
6236
|
+
_function.isFunction = isFunction;
|
|
6237
|
+
function isntFunction(val) {
|
|
6238
|
+
return !isFunction(val);
|
|
3693
6239
|
}
|
|
3694
|
-
|
|
6240
|
+
_function.isntFunction = isntFunction;
|
|
3695
6241
|
|
|
3696
6242
|
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
3697
|
-
const null_1$
|
|
3698
|
-
const undefined_1$
|
|
6243
|
+
const null_1$2 = _null;
|
|
6244
|
+
const undefined_1$1 = _undefined;
|
|
6245
|
+
const function_1$2 = _function;
|
|
3699
6246
|
function isAsyncIterable(val) {
|
|
3700
|
-
return (0, null_1$
|
|
3701
|
-
&& (0, undefined_1$
|
|
3702
|
-
&&
|
|
6247
|
+
return (0, null_1$2.isntNull)(val)
|
|
6248
|
+
&& (0, undefined_1$1.isntUndefined)(val)
|
|
6249
|
+
&& (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
|
|
3703
6250
|
}
|
|
3704
6251
|
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
3705
6252
|
function isntAsyncIterable(val) {
|
|
@@ -3801,27 +6348,16 @@
|
|
|
3801
6348
|
}
|
|
3802
6349
|
falsy.isntFalsy = isntFalsy;
|
|
3803
6350
|
|
|
3804
|
-
var _function = {};
|
|
3805
|
-
|
|
3806
|
-
_function.isntFunction = _function.isFunction = void 0;
|
|
3807
|
-
function isFunction(val) {
|
|
3808
|
-
return typeof val === 'function';
|
|
3809
|
-
}
|
|
3810
|
-
_function.isFunction = isFunction;
|
|
3811
|
-
function isntFunction(val) {
|
|
3812
|
-
return !isFunction(val);
|
|
3813
|
-
}
|
|
3814
|
-
_function.isntFunction = isntFunction;
|
|
3815
|
-
|
|
3816
6351
|
var iterable = {};
|
|
3817
6352
|
|
|
3818
6353
|
iterable.isntIterable = iterable.isIterable = void 0;
|
|
3819
|
-
const null_1 = _null;
|
|
3820
|
-
const undefined_1
|
|
6354
|
+
const null_1$1 = _null;
|
|
6355
|
+
const undefined_1 = _undefined;
|
|
6356
|
+
const function_1$1 = _function;
|
|
3821
6357
|
function isIterable(val) {
|
|
3822
|
-
return (0, null_1.isntNull)(val)
|
|
3823
|
-
&& (0, undefined_1
|
|
3824
|
-
&&
|
|
6358
|
+
return (0, null_1$1.isntNull)(val)
|
|
6359
|
+
&& (0, undefined_1.isntUndefined)(val)
|
|
6360
|
+
&& (0, function_1$1.isFunction)(val[Symbol.iterator]);
|
|
3825
6361
|
}
|
|
3826
6362
|
iterable.isIterable = isIterable;
|
|
3827
6363
|
function isntIterable(val) {
|
|
@@ -3829,149 +6365,21 @@
|
|
|
3829
6365
|
}
|
|
3830
6366
|
iterable.isntIterable = isntIterable;
|
|
3831
6367
|
|
|
3832
|
-
var
|
|
3833
|
-
|
|
3834
|
-
var object = {};
|
|
3835
|
-
|
|
3836
|
-
/**
|
|
3837
|
-
* lodash (Custom Build) <https://lodash.com/>
|
|
3838
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
3839
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
3840
|
-
* Released under MIT license <https://lodash.com/license>
|
|
3841
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
3842
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
3843
|
-
*/
|
|
3844
|
-
|
|
3845
|
-
/** `Object#toString` result references. */
|
|
3846
|
-
var objectTag = '[object Object]';
|
|
3847
|
-
|
|
3848
|
-
/**
|
|
3849
|
-
* Checks if `value` is a host object in IE < 9.
|
|
3850
|
-
*
|
|
3851
|
-
* @private
|
|
3852
|
-
* @param {*} value The value to check.
|
|
3853
|
-
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
3854
|
-
*/
|
|
3855
|
-
function isHostObject(value) {
|
|
3856
|
-
// Many host objects are `Object` objects that can coerce to strings
|
|
3857
|
-
// despite having improperly defined `toString` methods.
|
|
3858
|
-
var result = false;
|
|
3859
|
-
if (value != null && typeof value.toString != 'function') {
|
|
3860
|
-
try {
|
|
3861
|
-
result = !!(value + '');
|
|
3862
|
-
} catch (e) {}
|
|
3863
|
-
}
|
|
3864
|
-
return result;
|
|
3865
|
-
}
|
|
3866
|
-
|
|
3867
|
-
/**
|
|
3868
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
3869
|
-
*
|
|
3870
|
-
* @private
|
|
3871
|
-
* @param {Function} func The function to wrap.
|
|
3872
|
-
* @param {Function} transform The argument transform.
|
|
3873
|
-
* @returns {Function} Returns the new function.
|
|
3874
|
-
*/
|
|
3875
|
-
function overArg(func, transform) {
|
|
3876
|
-
return function(arg) {
|
|
3877
|
-
return func(transform(arg));
|
|
3878
|
-
};
|
|
3879
|
-
}
|
|
3880
|
-
|
|
3881
|
-
/** Used for built-in method references. */
|
|
3882
|
-
var funcProto = Function.prototype,
|
|
3883
|
-
objectProto = Object.prototype;
|
|
3884
|
-
|
|
3885
|
-
/** Used to resolve the decompiled source of functions. */
|
|
3886
|
-
var funcToString = funcProto.toString;
|
|
3887
|
-
|
|
3888
|
-
/** Used to check objects for own properties. */
|
|
3889
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
3890
|
-
|
|
3891
|
-
/** Used to infer the `Object` constructor. */
|
|
3892
|
-
var objectCtorString = funcToString.call(Object);
|
|
3893
|
-
|
|
3894
|
-
/**
|
|
3895
|
-
* Used to resolve the
|
|
3896
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
3897
|
-
* of values.
|
|
3898
|
-
*/
|
|
3899
|
-
var objectToString = objectProto.toString;
|
|
6368
|
+
var json = {};
|
|
3900
6369
|
|
|
3901
|
-
|
|
3902
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
6370
|
+
var number = {};
|
|
3903
6371
|
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
*
|
|
3908
|
-
* @static
|
|
3909
|
-
* @memberOf _
|
|
3910
|
-
* @since 4.0.0
|
|
3911
|
-
* @category Lang
|
|
3912
|
-
* @param {*} value The value to check.
|
|
3913
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
3914
|
-
* @example
|
|
3915
|
-
*
|
|
3916
|
-
* _.isObjectLike({});
|
|
3917
|
-
* // => true
|
|
3918
|
-
*
|
|
3919
|
-
* _.isObjectLike([1, 2, 3]);
|
|
3920
|
-
* // => true
|
|
3921
|
-
*
|
|
3922
|
-
* _.isObjectLike(_.noop);
|
|
3923
|
-
* // => false
|
|
3924
|
-
*
|
|
3925
|
-
* _.isObjectLike(null);
|
|
3926
|
-
* // => false
|
|
3927
|
-
*/
|
|
3928
|
-
function isObjectLike(value) {
|
|
3929
|
-
return !!value && typeof value == 'object';
|
|
6372
|
+
number.isntNumber = number.isNumber = void 0;
|
|
6373
|
+
function isNumber(val) {
|
|
6374
|
+
return typeof val === 'number';
|
|
3930
6375
|
}
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
3935
|
-
*
|
|
3936
|
-
* @static
|
|
3937
|
-
* @memberOf _
|
|
3938
|
-
* @since 0.8.0
|
|
3939
|
-
* @category Lang
|
|
3940
|
-
* @param {*} value The value to check.
|
|
3941
|
-
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
3942
|
-
* @example
|
|
3943
|
-
*
|
|
3944
|
-
* function Foo() {
|
|
3945
|
-
* this.a = 1;
|
|
3946
|
-
* }
|
|
3947
|
-
*
|
|
3948
|
-
* _.isPlainObject(new Foo);
|
|
3949
|
-
* // => false
|
|
3950
|
-
*
|
|
3951
|
-
* _.isPlainObject([1, 2, 3]);
|
|
3952
|
-
* // => false
|
|
3953
|
-
*
|
|
3954
|
-
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
3955
|
-
* // => true
|
|
3956
|
-
*
|
|
3957
|
-
* _.isPlainObject(Object.create(null));
|
|
3958
|
-
* // => true
|
|
3959
|
-
*/
|
|
3960
|
-
function isPlainObject$1(value) {
|
|
3961
|
-
if (!isObjectLike(value) ||
|
|
3962
|
-
objectToString.call(value) != objectTag || isHostObject(value)) {
|
|
3963
|
-
return false;
|
|
3964
|
-
}
|
|
3965
|
-
var proto = getPrototype(value);
|
|
3966
|
-
if (proto === null) {
|
|
3967
|
-
return true;
|
|
3968
|
-
}
|
|
3969
|
-
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
3970
|
-
return (typeof Ctor == 'function' &&
|
|
3971
|
-
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
|
|
6376
|
+
number.isNumber = isNumber;
|
|
6377
|
+
function isntNumber(val) {
|
|
6378
|
+
return !isNumber(val);
|
|
3972
6379
|
}
|
|
6380
|
+
number.isntNumber = isntNumber;
|
|
3973
6381
|
|
|
3974
|
-
var
|
|
6382
|
+
var object = {};
|
|
3975
6383
|
|
|
3976
6384
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
3977
6385
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -4003,87 +6411,27 @@
|
|
|
4003
6411
|
}
|
|
4004
6412
|
object.isntEmptyObject = isntEmptyObject;
|
|
4005
6413
|
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
function isNumber(val) {
|
|
4010
|
-
return typeof val === 'number';
|
|
4011
|
-
}
|
|
4012
|
-
number.isNumber = isNumber;
|
|
4013
|
-
function isntNumber(val) {
|
|
4014
|
-
return !isNumber(val);
|
|
4015
|
-
}
|
|
4016
|
-
number.isntNumber = isntNumber;
|
|
4017
|
-
|
|
4018
|
-
jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
|
|
4019
|
-
const array_1 = array;
|
|
4020
|
-
const object_1 = object;
|
|
6414
|
+
json.isntJsonable = json.isJsonable = json.isntJson = json.isJson = void 0;
|
|
6415
|
+
const null_1 = _null;
|
|
6416
|
+
const boolean_1 = boolean;
|
|
4021
6417
|
const string_1 = string;
|
|
4022
6418
|
const number_1 = number;
|
|
4023
|
-
const
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4033
|
-
&& (0, string_1.isString)(val.method)
|
|
4034
|
-
&& (0, undefined_1.isUndefined)(val.id)
|
|
4035
|
-
&& isJsonRpcParams(val.params);
|
|
4036
|
-
}
|
|
4037
|
-
jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
|
|
4038
|
-
function isntJsonRpcNotification(val) {
|
|
4039
|
-
return !isJsonRpcNotification(val);
|
|
4040
|
-
}
|
|
4041
|
-
jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
|
|
4042
|
-
function isJsonRpcRequest(val) {
|
|
4043
|
-
return (0, object_1.isPlainObject)(val)
|
|
4044
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4045
|
-
&& (0, string_1.isString)(val.method)
|
|
4046
|
-
&& isJsonRpcId(val.id)
|
|
4047
|
-
&& isJsonRpcParams(val.params);
|
|
4048
|
-
}
|
|
4049
|
-
jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
|
|
4050
|
-
function isntJsonRpcRequest(val) {
|
|
4051
|
-
return !isJsonRpcRequest(val);
|
|
4052
|
-
}
|
|
4053
|
-
jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
|
|
4054
|
-
function isJsonRpcSuccess(val) {
|
|
4055
|
-
return (0, object_1.isPlainObject)(val)
|
|
4056
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4057
|
-
&& (0, string_1.isString)(val.id)
|
|
4058
|
-
&& 'result' in val;
|
|
4059
|
-
}
|
|
4060
|
-
jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
|
|
4061
|
-
function isntJsonRpcSuccess(val) {
|
|
4062
|
-
return !isJsonRpcSuccess(val);
|
|
4063
|
-
}
|
|
4064
|
-
jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
|
|
4065
|
-
function isJsonRpcError(val) {
|
|
4066
|
-
return (0, object_1.isPlainObject)(val)
|
|
4067
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4068
|
-
&& isJsonRpcId(val.id)
|
|
4069
|
-
&& isJsonRpcErrorObject(val.error);
|
|
4070
|
-
}
|
|
4071
|
-
jsonRpc.isJsonRpcError = isJsonRpcError;
|
|
4072
|
-
function isntJsonRpcError(val) {
|
|
4073
|
-
return !isJsonRpcError(val);
|
|
6419
|
+
const array_1 = array;
|
|
6420
|
+
const object_1$1 = object;
|
|
6421
|
+
function isJson(val) {
|
|
6422
|
+
return (0, null_1.isNull)(val)
|
|
6423
|
+
|| (0, boolean_1.isBoolean)(val)
|
|
6424
|
+
|| (0, string_1.isString)(val)
|
|
6425
|
+
|| (0, number_1.isNumber)(val)
|
|
6426
|
+
|| ((0, array_1.isArray)(val) && val.every(isJson))
|
|
6427
|
+
|| ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
|
|
4074
6428
|
}
|
|
4075
|
-
|
|
4076
|
-
function
|
|
4077
|
-
return (
|
|
4078
|
-
&& (0, number_1.isNumber)(val.code)
|
|
4079
|
-
&& (0, string_1.isString)(val.message)
|
|
4080
|
-
&& ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
|
|
6429
|
+
json.isJson = isJson;
|
|
6430
|
+
function isntJson(val) {
|
|
6431
|
+
return !isJson(val);
|
|
4081
6432
|
}
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
json.isntJson = json.isJson = void 0;
|
|
4086
|
-
function isJson(val) {
|
|
6433
|
+
json.isntJson = isntJson;
|
|
6434
|
+
function isJsonable(val) {
|
|
4087
6435
|
try {
|
|
4088
6436
|
JSON.stringify(val);
|
|
4089
6437
|
return true;
|
|
@@ -4092,11 +6440,34 @@
|
|
|
4092
6440
|
return false;
|
|
4093
6441
|
}
|
|
4094
6442
|
}
|
|
4095
|
-
json.
|
|
4096
|
-
function
|
|
4097
|
-
return !
|
|
6443
|
+
json.isJsonable = isJsonable;
|
|
6444
|
+
function isntJsonable(val) {
|
|
6445
|
+
return !isntJsonable();
|
|
4098
6446
|
}
|
|
4099
|
-
json.
|
|
6447
|
+
json.isntJsonable = isntJsonable;
|
|
6448
|
+
|
|
6449
|
+
var promise = {};
|
|
6450
|
+
|
|
6451
|
+
promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
|
|
6452
|
+
const object_1 = object;
|
|
6453
|
+
const function_1 = _function;
|
|
6454
|
+
function isPromise(val) {
|
|
6455
|
+
return val instanceof Promise;
|
|
6456
|
+
}
|
|
6457
|
+
promise.isPromise = isPromise;
|
|
6458
|
+
function isntPromise(val) {
|
|
6459
|
+
return !isPromise(val);
|
|
6460
|
+
}
|
|
6461
|
+
promise.isntPromise = isntPromise;
|
|
6462
|
+
function isntPromiseLike(val) {
|
|
6463
|
+
return !isPromiseLike(val);
|
|
6464
|
+
}
|
|
6465
|
+
promise.isntPromiseLike = isntPromiseLike;
|
|
6466
|
+
function isPromiseLike(val) {
|
|
6467
|
+
return (0, object_1.isObject)(val)
|
|
6468
|
+
&& (0, function_1.isFunction)(val.then);
|
|
6469
|
+
}
|
|
6470
|
+
promise.isPromiseLike = isPromiseLike;
|
|
4100
6471
|
|
|
4101
6472
|
var url = {};
|
|
4102
6473
|
|
|
@@ -4133,11 +6504,11 @@
|
|
|
4133
6504
|
__exportStar(falsy, exports);
|
|
4134
6505
|
__exportStar(_function, exports);
|
|
4135
6506
|
__exportStar(iterable, exports);
|
|
4136
|
-
__exportStar(jsonRpc, exports);
|
|
4137
6507
|
__exportStar(json, exports);
|
|
4138
6508
|
__exportStar(_null, exports);
|
|
4139
6509
|
__exportStar(number, exports);
|
|
4140
6510
|
__exportStar(object, exports);
|
|
6511
|
+
__exportStar(promise, exports);
|
|
4141
6512
|
__exportStar(string, exports);
|
|
4142
6513
|
__exportStar(_undefined, exports);
|
|
4143
6514
|
__exportStar(url, exports);
|