@cadenza.io/core 3.18.2 → 3.19.1
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/dist/index.d.mts +58 -52
- package/dist/index.d.ts +58 -52
- package/dist/index.js +1029 -891
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1029 -891
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -293,15 +293,123 @@ function debounce(func, wait, options) {
|
|
|
293
293
|
}
|
|
294
294
|
var debounce_default = debounce;
|
|
295
295
|
|
|
296
|
-
//
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
// src/utils/promise.ts
|
|
297
|
+
function sleep(ms) {
|
|
298
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
299
|
+
}
|
|
299
300
|
|
|
300
|
-
// node_modules/lodash-es/
|
|
301
|
-
function
|
|
302
|
-
|
|
301
|
+
// node_modules/lodash-es/_listCacheClear.js
|
|
302
|
+
function listCacheClear() {
|
|
303
|
+
this.__data__ = [];
|
|
304
|
+
this.size = 0;
|
|
303
305
|
}
|
|
304
|
-
var
|
|
306
|
+
var listCacheClear_default = listCacheClear;
|
|
307
|
+
|
|
308
|
+
// node_modules/lodash-es/eq.js
|
|
309
|
+
function eq(value, other) {
|
|
310
|
+
return value === other || value !== value && other !== other;
|
|
311
|
+
}
|
|
312
|
+
var eq_default = eq;
|
|
313
|
+
|
|
314
|
+
// node_modules/lodash-es/_assocIndexOf.js
|
|
315
|
+
function assocIndexOf(array, key) {
|
|
316
|
+
var length = array.length;
|
|
317
|
+
while (length--) {
|
|
318
|
+
if (eq_default(array[length][0], key)) {
|
|
319
|
+
return length;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return -1;
|
|
323
|
+
}
|
|
324
|
+
var assocIndexOf_default = assocIndexOf;
|
|
325
|
+
|
|
326
|
+
// node_modules/lodash-es/_listCacheDelete.js
|
|
327
|
+
var arrayProto = Array.prototype;
|
|
328
|
+
var splice = arrayProto.splice;
|
|
329
|
+
function listCacheDelete(key) {
|
|
330
|
+
var data = this.__data__, index = assocIndexOf_default(data, key);
|
|
331
|
+
if (index < 0) {
|
|
332
|
+
return false;
|
|
333
|
+
}
|
|
334
|
+
var lastIndex = data.length - 1;
|
|
335
|
+
if (index == lastIndex) {
|
|
336
|
+
data.pop();
|
|
337
|
+
} else {
|
|
338
|
+
splice.call(data, index, 1);
|
|
339
|
+
}
|
|
340
|
+
--this.size;
|
|
341
|
+
return true;
|
|
342
|
+
}
|
|
343
|
+
var listCacheDelete_default = listCacheDelete;
|
|
344
|
+
|
|
345
|
+
// node_modules/lodash-es/_listCacheGet.js
|
|
346
|
+
function listCacheGet(key) {
|
|
347
|
+
var data = this.__data__, index = assocIndexOf_default(data, key);
|
|
348
|
+
return index < 0 ? void 0 : data[index][1];
|
|
349
|
+
}
|
|
350
|
+
var listCacheGet_default = listCacheGet;
|
|
351
|
+
|
|
352
|
+
// node_modules/lodash-es/_listCacheHas.js
|
|
353
|
+
function listCacheHas(key) {
|
|
354
|
+
return assocIndexOf_default(this.__data__, key) > -1;
|
|
355
|
+
}
|
|
356
|
+
var listCacheHas_default = listCacheHas;
|
|
357
|
+
|
|
358
|
+
// node_modules/lodash-es/_listCacheSet.js
|
|
359
|
+
function listCacheSet(key, value) {
|
|
360
|
+
var data = this.__data__, index = assocIndexOf_default(data, key);
|
|
361
|
+
if (index < 0) {
|
|
362
|
+
++this.size;
|
|
363
|
+
data.push([key, value]);
|
|
364
|
+
} else {
|
|
365
|
+
data[index][1] = value;
|
|
366
|
+
}
|
|
367
|
+
return this;
|
|
368
|
+
}
|
|
369
|
+
var listCacheSet_default = listCacheSet;
|
|
370
|
+
|
|
371
|
+
// node_modules/lodash-es/_ListCache.js
|
|
372
|
+
function ListCache(entries) {
|
|
373
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
374
|
+
this.clear();
|
|
375
|
+
while (++index < length) {
|
|
376
|
+
var entry = entries[index];
|
|
377
|
+
this.set(entry[0], entry[1]);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
ListCache.prototype.clear = listCacheClear_default;
|
|
381
|
+
ListCache.prototype["delete"] = listCacheDelete_default;
|
|
382
|
+
ListCache.prototype.get = listCacheGet_default;
|
|
383
|
+
ListCache.prototype.has = listCacheHas_default;
|
|
384
|
+
ListCache.prototype.set = listCacheSet_default;
|
|
385
|
+
var ListCache_default = ListCache;
|
|
386
|
+
|
|
387
|
+
// node_modules/lodash-es/_stackClear.js
|
|
388
|
+
function stackClear() {
|
|
389
|
+
this.__data__ = new ListCache_default();
|
|
390
|
+
this.size = 0;
|
|
391
|
+
}
|
|
392
|
+
var stackClear_default = stackClear;
|
|
393
|
+
|
|
394
|
+
// node_modules/lodash-es/_stackDelete.js
|
|
395
|
+
function stackDelete(key) {
|
|
396
|
+
var data = this.__data__, result = data["delete"](key);
|
|
397
|
+
this.size = data.size;
|
|
398
|
+
return result;
|
|
399
|
+
}
|
|
400
|
+
var stackDelete_default = stackDelete;
|
|
401
|
+
|
|
402
|
+
// node_modules/lodash-es/_stackGet.js
|
|
403
|
+
function stackGet(key) {
|
|
404
|
+
return this.__data__.get(key);
|
|
405
|
+
}
|
|
406
|
+
var stackGet_default = stackGet;
|
|
407
|
+
|
|
408
|
+
// node_modules/lodash-es/_stackHas.js
|
|
409
|
+
function stackHas(key) {
|
|
410
|
+
return this.__data__.has(key);
|
|
411
|
+
}
|
|
412
|
+
var stackHas_default = stackHas;
|
|
305
413
|
|
|
306
414
|
// node_modules/lodash-es/isFunction.js
|
|
307
415
|
var asyncTag = "[object AsyncFunction]";
|
|
@@ -381,473 +489,134 @@ function getNative(object, key) {
|
|
|
381
489
|
}
|
|
382
490
|
var getNative_default = getNative;
|
|
383
491
|
|
|
384
|
-
// node_modules/lodash-es/
|
|
385
|
-
var
|
|
386
|
-
var
|
|
387
|
-
function object() {
|
|
388
|
-
}
|
|
389
|
-
return function(proto) {
|
|
390
|
-
if (!isObject_default(proto)) {
|
|
391
|
-
return {};
|
|
392
|
-
}
|
|
393
|
-
if (objectCreate) {
|
|
394
|
-
return objectCreate(proto);
|
|
395
|
-
}
|
|
396
|
-
object.prototype = proto;
|
|
397
|
-
var result = new object();
|
|
398
|
-
object.prototype = void 0;
|
|
399
|
-
return result;
|
|
400
|
-
};
|
|
401
|
-
})();
|
|
402
|
-
var baseCreate_default = baseCreate;
|
|
492
|
+
// node_modules/lodash-es/_Map.js
|
|
493
|
+
var Map2 = getNative_default(root_default, "Map");
|
|
494
|
+
var Map_default = Map2;
|
|
403
495
|
|
|
404
|
-
// node_modules/lodash-es/
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
return func.call(thisArg, args[0], args[1]);
|
|
413
|
-
case 3:
|
|
414
|
-
return func.call(thisArg, args[0], args[1], args[2]);
|
|
415
|
-
}
|
|
416
|
-
return func.apply(thisArg, args);
|
|
496
|
+
// node_modules/lodash-es/_nativeCreate.js
|
|
497
|
+
var nativeCreate = getNative_default(Object, "create");
|
|
498
|
+
var nativeCreate_default = nativeCreate;
|
|
499
|
+
|
|
500
|
+
// node_modules/lodash-es/_hashClear.js
|
|
501
|
+
function hashClear() {
|
|
502
|
+
this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
|
|
503
|
+
this.size = 0;
|
|
417
504
|
}
|
|
418
|
-
var
|
|
505
|
+
var hashClear_default = hashClear;
|
|
419
506
|
|
|
420
|
-
// node_modules/lodash-es/
|
|
421
|
-
function
|
|
422
|
-
var
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
507
|
+
// node_modules/lodash-es/_hashDelete.js
|
|
508
|
+
function hashDelete(key) {
|
|
509
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
510
|
+
this.size -= result ? 1 : 0;
|
|
511
|
+
return result;
|
|
512
|
+
}
|
|
513
|
+
var hashDelete_default = hashDelete;
|
|
514
|
+
|
|
515
|
+
// node_modules/lodash-es/_hashGet.js
|
|
516
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
517
|
+
var objectProto4 = Object.prototype;
|
|
518
|
+
var hasOwnProperty3 = objectProto4.hasOwnProperty;
|
|
519
|
+
function hashGet(key) {
|
|
520
|
+
var data = this.__data__;
|
|
521
|
+
if (nativeCreate_default) {
|
|
522
|
+
var result = data[key];
|
|
523
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
426
524
|
}
|
|
427
|
-
return
|
|
525
|
+
return hasOwnProperty3.call(data, key) ? data[key] : void 0;
|
|
428
526
|
}
|
|
429
|
-
var
|
|
527
|
+
var hashGet_default = hashGet;
|
|
430
528
|
|
|
431
|
-
// node_modules/lodash-es/
|
|
432
|
-
var
|
|
433
|
-
var
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
return function() {
|
|
438
|
-
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
439
|
-
lastCalled = stamp;
|
|
440
|
-
if (remaining > 0) {
|
|
441
|
-
if (++count >= HOT_COUNT) {
|
|
442
|
-
return arguments[0];
|
|
443
|
-
}
|
|
444
|
-
} else {
|
|
445
|
-
count = 0;
|
|
446
|
-
}
|
|
447
|
-
return func.apply(void 0, arguments);
|
|
448
|
-
};
|
|
529
|
+
// node_modules/lodash-es/_hashHas.js
|
|
530
|
+
var objectProto5 = Object.prototype;
|
|
531
|
+
var hasOwnProperty4 = objectProto5.hasOwnProperty;
|
|
532
|
+
function hashHas(key) {
|
|
533
|
+
var data = this.__data__;
|
|
534
|
+
return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty4.call(data, key);
|
|
449
535
|
}
|
|
450
|
-
var
|
|
536
|
+
var hashHas_default = hashHas;
|
|
451
537
|
|
|
452
|
-
// node_modules/lodash-es/
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
538
|
+
// node_modules/lodash-es/_hashSet.js
|
|
539
|
+
var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
|
|
540
|
+
function hashSet(key, value) {
|
|
541
|
+
var data = this.__data__;
|
|
542
|
+
this.size += this.has(key) ? 0 : 1;
|
|
543
|
+
data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
|
|
544
|
+
return this;
|
|
457
545
|
}
|
|
458
|
-
var
|
|
546
|
+
var hashSet_default = hashSet;
|
|
459
547
|
|
|
460
|
-
// node_modules/lodash-es/
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
548
|
+
// node_modules/lodash-es/_Hash.js
|
|
549
|
+
function Hash(entries) {
|
|
550
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
551
|
+
this.clear();
|
|
552
|
+
while (++index < length) {
|
|
553
|
+
var entry = entries[index];
|
|
554
|
+
this.set(entry[0], entry[1]);
|
|
467
555
|
}
|
|
468
|
-
}
|
|
469
|
-
|
|
556
|
+
}
|
|
557
|
+
Hash.prototype.clear = hashClear_default;
|
|
558
|
+
Hash.prototype["delete"] = hashDelete_default;
|
|
559
|
+
Hash.prototype.get = hashGet_default;
|
|
560
|
+
Hash.prototype.has = hashHas_default;
|
|
561
|
+
Hash.prototype.set = hashSet_default;
|
|
562
|
+
var Hash_default = Hash;
|
|
470
563
|
|
|
471
|
-
// node_modules/lodash-es/
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
"
|
|
476
|
-
"
|
|
477
|
-
"
|
|
478
|
-
});
|
|
479
|
-
};
|
|
480
|
-
var baseSetToString_default = baseSetToString;
|
|
481
|
-
|
|
482
|
-
// node_modules/lodash-es/_setToString.js
|
|
483
|
-
var setToString = shortOut_default(baseSetToString_default);
|
|
484
|
-
var setToString_default = setToString;
|
|
485
|
-
|
|
486
|
-
// node_modules/lodash-es/_isIndex.js
|
|
487
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
488
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
489
|
-
function isIndex(value, length) {
|
|
490
|
-
var type = typeof value;
|
|
491
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
492
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
493
|
-
}
|
|
494
|
-
var isIndex_default = isIndex;
|
|
495
|
-
|
|
496
|
-
// node_modules/lodash-es/_baseAssignValue.js
|
|
497
|
-
function baseAssignValue(object, key, value) {
|
|
498
|
-
if (key == "__proto__" && defineProperty_default) {
|
|
499
|
-
defineProperty_default(object, key, {
|
|
500
|
-
"configurable": true,
|
|
501
|
-
"enumerable": true,
|
|
502
|
-
"value": value,
|
|
503
|
-
"writable": true
|
|
504
|
-
});
|
|
505
|
-
} else {
|
|
506
|
-
object[key] = value;
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
var baseAssignValue_default = baseAssignValue;
|
|
510
|
-
|
|
511
|
-
// node_modules/lodash-es/eq.js
|
|
512
|
-
function eq(value, other) {
|
|
513
|
-
return value === other || value !== value && other !== other;
|
|
514
|
-
}
|
|
515
|
-
var eq_default = eq;
|
|
516
|
-
|
|
517
|
-
// node_modules/lodash-es/_assignValue.js
|
|
518
|
-
var objectProto4 = Object.prototype;
|
|
519
|
-
var hasOwnProperty3 = objectProto4.hasOwnProperty;
|
|
520
|
-
function assignValue(object, key, value) {
|
|
521
|
-
var objValue = object[key];
|
|
522
|
-
if (!(hasOwnProperty3.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) {
|
|
523
|
-
baseAssignValue_default(object, key, value);
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
var assignValue_default = assignValue;
|
|
527
|
-
|
|
528
|
-
// node_modules/lodash-es/_copyObject.js
|
|
529
|
-
function copyObject(source, props, object, customizer) {
|
|
530
|
-
var isNew = !object;
|
|
531
|
-
object || (object = {});
|
|
532
|
-
var index = -1, length = props.length;
|
|
533
|
-
while (++index < length) {
|
|
534
|
-
var key = props[index];
|
|
535
|
-
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
536
|
-
if (newValue === void 0) {
|
|
537
|
-
newValue = source[key];
|
|
538
|
-
}
|
|
539
|
-
if (isNew) {
|
|
540
|
-
baseAssignValue_default(object, key, newValue);
|
|
541
|
-
} else {
|
|
542
|
-
assignValue_default(object, key, newValue);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
return object;
|
|
546
|
-
}
|
|
547
|
-
var copyObject_default = copyObject;
|
|
548
|
-
|
|
549
|
-
// node_modules/lodash-es/_overRest.js
|
|
550
|
-
var nativeMax2 = Math.max;
|
|
551
|
-
function overRest(func, start, transform) {
|
|
552
|
-
start = nativeMax2(start === void 0 ? func.length - 1 : start, 0);
|
|
553
|
-
return function() {
|
|
554
|
-
var args = arguments, index = -1, length = nativeMax2(args.length - start, 0), array = Array(length);
|
|
555
|
-
while (++index < length) {
|
|
556
|
-
array[index] = args[start + index];
|
|
557
|
-
}
|
|
558
|
-
index = -1;
|
|
559
|
-
var otherArgs = Array(start + 1);
|
|
560
|
-
while (++index < start) {
|
|
561
|
-
otherArgs[index] = args[index];
|
|
562
|
-
}
|
|
563
|
-
otherArgs[start] = transform(array);
|
|
564
|
-
return apply_default(func, this, otherArgs);
|
|
565
|
-
};
|
|
566
|
-
}
|
|
567
|
-
var overRest_default = overRest;
|
|
568
|
-
|
|
569
|
-
// node_modules/lodash-es/_baseRest.js
|
|
570
|
-
function baseRest(func, start) {
|
|
571
|
-
return setToString_default(overRest_default(func, start, identity_default), func + "");
|
|
572
|
-
}
|
|
573
|
-
var baseRest_default = baseRest;
|
|
574
|
-
|
|
575
|
-
// node_modules/lodash-es/isLength.js
|
|
576
|
-
var MAX_SAFE_INTEGER2 = 9007199254740991;
|
|
577
|
-
function isLength(value) {
|
|
578
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
|
|
579
|
-
}
|
|
580
|
-
var isLength_default = isLength;
|
|
581
|
-
|
|
582
|
-
// node_modules/lodash-es/isArrayLike.js
|
|
583
|
-
function isArrayLike(value) {
|
|
584
|
-
return value != null && isLength_default(value.length) && !isFunction_default(value);
|
|
585
|
-
}
|
|
586
|
-
var isArrayLike_default = isArrayLike;
|
|
587
|
-
|
|
588
|
-
// node_modules/lodash-es/_isIterateeCall.js
|
|
589
|
-
function isIterateeCall(value, index, object) {
|
|
590
|
-
if (!isObject_default(object)) {
|
|
591
|
-
return false;
|
|
592
|
-
}
|
|
593
|
-
var type = typeof index;
|
|
594
|
-
if (type == "number" ? isArrayLike_default(object) && isIndex_default(index, object.length) : type == "string" && index in object) {
|
|
595
|
-
return eq_default(object[index], value);
|
|
596
|
-
}
|
|
597
|
-
return false;
|
|
598
|
-
}
|
|
599
|
-
var isIterateeCall_default = isIterateeCall;
|
|
600
|
-
|
|
601
|
-
// node_modules/lodash-es/_createAssigner.js
|
|
602
|
-
function createAssigner(assigner) {
|
|
603
|
-
return baseRest_default(function(object, sources) {
|
|
604
|
-
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
605
|
-
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
606
|
-
if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
|
|
607
|
-
customizer = length < 3 ? void 0 : customizer;
|
|
608
|
-
length = 1;
|
|
609
|
-
}
|
|
610
|
-
object = Object(object);
|
|
611
|
-
while (++index < length) {
|
|
612
|
-
var source = sources[index];
|
|
613
|
-
if (source) {
|
|
614
|
-
assigner(object, source, index, customizer);
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
return object;
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
var createAssigner_default = createAssigner;
|
|
621
|
-
|
|
622
|
-
// node_modules/lodash-es/_isPrototype.js
|
|
623
|
-
var objectProto5 = Object.prototype;
|
|
624
|
-
function isPrototype(value) {
|
|
625
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto5;
|
|
626
|
-
return value === proto;
|
|
627
|
-
}
|
|
628
|
-
var isPrototype_default = isPrototype;
|
|
629
|
-
|
|
630
|
-
// node_modules/lodash-es/_baseTimes.js
|
|
631
|
-
function baseTimes(n, iteratee) {
|
|
632
|
-
var index = -1, result = Array(n);
|
|
633
|
-
while (++index < n) {
|
|
634
|
-
result[index] = iteratee(index);
|
|
635
|
-
}
|
|
636
|
-
return result;
|
|
637
|
-
}
|
|
638
|
-
var baseTimes_default = baseTimes;
|
|
639
|
-
|
|
640
|
-
// node_modules/lodash-es/_baseIsArguments.js
|
|
641
|
-
var argsTag = "[object Arguments]";
|
|
642
|
-
function baseIsArguments(value) {
|
|
643
|
-
return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
|
|
644
|
-
}
|
|
645
|
-
var baseIsArguments_default = baseIsArguments;
|
|
646
|
-
|
|
647
|
-
// node_modules/lodash-es/isArguments.js
|
|
648
|
-
var objectProto6 = Object.prototype;
|
|
649
|
-
var hasOwnProperty4 = objectProto6.hasOwnProperty;
|
|
650
|
-
var propertyIsEnumerable = objectProto6.propertyIsEnumerable;
|
|
651
|
-
var isArguments = baseIsArguments_default(/* @__PURE__ */ (function() {
|
|
652
|
-
return arguments;
|
|
653
|
-
})()) ? baseIsArguments_default : function(value) {
|
|
654
|
-
return isObjectLike_default(value) && hasOwnProperty4.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
655
|
-
};
|
|
656
|
-
var isArguments_default = isArguments;
|
|
657
|
-
|
|
658
|
-
// node_modules/lodash-es/stubFalse.js
|
|
659
|
-
function stubFalse() {
|
|
660
|
-
return false;
|
|
661
|
-
}
|
|
662
|
-
var stubFalse_default = stubFalse;
|
|
663
|
-
|
|
664
|
-
// node_modules/lodash-es/isBuffer.js
|
|
665
|
-
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
666
|
-
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
667
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
668
|
-
var Buffer2 = moduleExports ? root_default.Buffer : void 0;
|
|
669
|
-
var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
|
|
670
|
-
var isBuffer = nativeIsBuffer || stubFalse_default;
|
|
671
|
-
var isBuffer_default = isBuffer;
|
|
672
|
-
|
|
673
|
-
// node_modules/lodash-es/_baseIsTypedArray.js
|
|
674
|
-
var argsTag2 = "[object Arguments]";
|
|
675
|
-
var arrayTag = "[object Array]";
|
|
676
|
-
var boolTag = "[object Boolean]";
|
|
677
|
-
var dateTag = "[object Date]";
|
|
678
|
-
var errorTag = "[object Error]";
|
|
679
|
-
var funcTag2 = "[object Function]";
|
|
680
|
-
var mapTag = "[object Map]";
|
|
681
|
-
var numberTag = "[object Number]";
|
|
682
|
-
var objectTag = "[object Object]";
|
|
683
|
-
var regexpTag = "[object RegExp]";
|
|
684
|
-
var setTag = "[object Set]";
|
|
685
|
-
var stringTag = "[object String]";
|
|
686
|
-
var weakMapTag = "[object WeakMap]";
|
|
687
|
-
var arrayBufferTag = "[object ArrayBuffer]";
|
|
688
|
-
var dataViewTag = "[object DataView]";
|
|
689
|
-
var float32Tag = "[object Float32Array]";
|
|
690
|
-
var float64Tag = "[object Float64Array]";
|
|
691
|
-
var int8Tag = "[object Int8Array]";
|
|
692
|
-
var int16Tag = "[object Int16Array]";
|
|
693
|
-
var int32Tag = "[object Int32Array]";
|
|
694
|
-
var uint8Tag = "[object Uint8Array]";
|
|
695
|
-
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
696
|
-
var uint16Tag = "[object Uint16Array]";
|
|
697
|
-
var uint32Tag = "[object Uint32Array]";
|
|
698
|
-
var typedArrayTags = {};
|
|
699
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
700
|
-
typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
701
|
-
function baseIsTypedArray(value) {
|
|
702
|
-
return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
|
|
703
|
-
}
|
|
704
|
-
var baseIsTypedArray_default = baseIsTypedArray;
|
|
705
|
-
|
|
706
|
-
// node_modules/lodash-es/_baseUnary.js
|
|
707
|
-
function baseUnary(func) {
|
|
708
|
-
return function(value) {
|
|
709
|
-
return func(value);
|
|
710
|
-
};
|
|
711
|
-
}
|
|
712
|
-
var baseUnary_default = baseUnary;
|
|
713
|
-
|
|
714
|
-
// node_modules/lodash-es/_nodeUtil.js
|
|
715
|
-
var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
716
|
-
var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
|
|
717
|
-
var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
|
718
|
-
var freeProcess = moduleExports2 && freeGlobal_default.process;
|
|
719
|
-
var nodeUtil = (function() {
|
|
720
|
-
try {
|
|
721
|
-
var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
|
|
722
|
-
if (types) {
|
|
723
|
-
return types;
|
|
724
|
-
}
|
|
725
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
726
|
-
} catch (e) {
|
|
727
|
-
}
|
|
728
|
-
})();
|
|
729
|
-
var nodeUtil_default = nodeUtil;
|
|
730
|
-
|
|
731
|
-
// node_modules/lodash-es/isTypedArray.js
|
|
732
|
-
var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
|
|
733
|
-
var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
|
|
734
|
-
var isTypedArray_default = isTypedArray;
|
|
735
|
-
|
|
736
|
-
// node_modules/lodash-es/_arrayLikeKeys.js
|
|
737
|
-
var objectProto7 = Object.prototype;
|
|
738
|
-
var hasOwnProperty5 = objectProto7.hasOwnProperty;
|
|
739
|
-
function arrayLikeKeys(value, inherited) {
|
|
740
|
-
var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length;
|
|
741
|
-
for (var key in value) {
|
|
742
|
-
if ((inherited || hasOwnProperty5.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
743
|
-
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
744
|
-
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
745
|
-
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
746
|
-
isIndex_default(key, length)))) {
|
|
747
|
-
result.push(key);
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
return result;
|
|
751
|
-
}
|
|
752
|
-
var arrayLikeKeys_default = arrayLikeKeys;
|
|
753
|
-
|
|
754
|
-
// node_modules/lodash-es/_overArg.js
|
|
755
|
-
function overArg(func, transform) {
|
|
756
|
-
return function(arg) {
|
|
757
|
-
return func(transform(arg));
|
|
564
|
+
// node_modules/lodash-es/_mapCacheClear.js
|
|
565
|
+
function mapCacheClear() {
|
|
566
|
+
this.size = 0;
|
|
567
|
+
this.__data__ = {
|
|
568
|
+
"hash": new Hash_default(),
|
|
569
|
+
"map": new (Map_default || ListCache_default)(),
|
|
570
|
+
"string": new Hash_default()
|
|
758
571
|
};
|
|
759
572
|
}
|
|
760
|
-
var
|
|
761
|
-
|
|
762
|
-
// node_modules/lodash-es/_nativeKeysIn.js
|
|
763
|
-
function nativeKeysIn(object) {
|
|
764
|
-
var result = [];
|
|
765
|
-
if (object != null) {
|
|
766
|
-
for (var key in Object(object)) {
|
|
767
|
-
result.push(key);
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
return result;
|
|
771
|
-
}
|
|
772
|
-
var nativeKeysIn_default = nativeKeysIn;
|
|
773
|
-
|
|
774
|
-
// node_modules/lodash-es/_baseKeysIn.js
|
|
775
|
-
var objectProto8 = Object.prototype;
|
|
776
|
-
var hasOwnProperty6 = objectProto8.hasOwnProperty;
|
|
777
|
-
function baseKeysIn(object) {
|
|
778
|
-
if (!isObject_default(object)) {
|
|
779
|
-
return nativeKeysIn_default(object);
|
|
780
|
-
}
|
|
781
|
-
var isProto = isPrototype_default(object), result = [];
|
|
782
|
-
for (var key in object) {
|
|
783
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty6.call(object, key)))) {
|
|
784
|
-
result.push(key);
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
return result;
|
|
788
|
-
}
|
|
789
|
-
var baseKeysIn_default = baseKeysIn;
|
|
790
|
-
|
|
791
|
-
// node_modules/lodash-es/keysIn.js
|
|
792
|
-
function keysIn(object) {
|
|
793
|
-
return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object);
|
|
794
|
-
}
|
|
795
|
-
var keysIn_default = keysIn;
|
|
573
|
+
var mapCacheClear_default = mapCacheClear;
|
|
796
574
|
|
|
797
|
-
// node_modules/lodash-es/
|
|
798
|
-
|
|
799
|
-
var
|
|
575
|
+
// node_modules/lodash-es/_isKeyable.js
|
|
576
|
+
function isKeyable(value) {
|
|
577
|
+
var type = typeof value;
|
|
578
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
579
|
+
}
|
|
580
|
+
var isKeyable_default = isKeyable;
|
|
800
581
|
|
|
801
|
-
// node_modules/lodash-es/
|
|
802
|
-
function
|
|
803
|
-
|
|
804
|
-
|
|
582
|
+
// node_modules/lodash-es/_getMapData.js
|
|
583
|
+
function getMapData(map, key) {
|
|
584
|
+
var data = map.__data__;
|
|
585
|
+
return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
805
586
|
}
|
|
806
|
-
var
|
|
587
|
+
var getMapData_default = getMapData;
|
|
807
588
|
|
|
808
|
-
// node_modules/lodash-es/
|
|
809
|
-
function
|
|
810
|
-
var result = this
|
|
589
|
+
// node_modules/lodash-es/_mapCacheDelete.js
|
|
590
|
+
function mapCacheDelete(key) {
|
|
591
|
+
var result = getMapData_default(this, key)["delete"](key);
|
|
811
592
|
this.size -= result ? 1 : 0;
|
|
812
593
|
return result;
|
|
813
594
|
}
|
|
814
|
-
var
|
|
595
|
+
var mapCacheDelete_default = mapCacheDelete;
|
|
815
596
|
|
|
816
|
-
// node_modules/lodash-es/
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
var hasOwnProperty7 = objectProto9.hasOwnProperty;
|
|
820
|
-
function hashGet(key) {
|
|
821
|
-
var data = this.__data__;
|
|
822
|
-
if (nativeCreate_default) {
|
|
823
|
-
var result = data[key];
|
|
824
|
-
return result === HASH_UNDEFINED ? void 0 : result;
|
|
825
|
-
}
|
|
826
|
-
return hasOwnProperty7.call(data, key) ? data[key] : void 0;
|
|
597
|
+
// node_modules/lodash-es/_mapCacheGet.js
|
|
598
|
+
function mapCacheGet(key) {
|
|
599
|
+
return getMapData_default(this, key).get(key);
|
|
827
600
|
}
|
|
828
|
-
var
|
|
601
|
+
var mapCacheGet_default = mapCacheGet;
|
|
829
602
|
|
|
830
|
-
// node_modules/lodash-es/
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
function hashHas(key) {
|
|
834
|
-
var data = this.__data__;
|
|
835
|
-
return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty8.call(data, key);
|
|
603
|
+
// node_modules/lodash-es/_mapCacheHas.js
|
|
604
|
+
function mapCacheHas(key) {
|
|
605
|
+
return getMapData_default(this, key).has(key);
|
|
836
606
|
}
|
|
837
|
-
var
|
|
607
|
+
var mapCacheHas_default = mapCacheHas;
|
|
838
608
|
|
|
839
|
-
// node_modules/lodash-es/
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
this.size +=
|
|
844
|
-
data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
|
|
609
|
+
// node_modules/lodash-es/_mapCacheSet.js
|
|
610
|
+
function mapCacheSet(key, value) {
|
|
611
|
+
var data = getMapData_default(this, key), size = data.size;
|
|
612
|
+
data.set(key, value);
|
|
613
|
+
this.size += data.size == size ? 0 : 1;
|
|
845
614
|
return this;
|
|
846
615
|
}
|
|
847
|
-
var
|
|
616
|
+
var mapCacheSet_default = mapCacheSet;
|
|
848
617
|
|
|
849
|
-
// node_modules/lodash-es/
|
|
850
|
-
function
|
|
618
|
+
// node_modules/lodash-es/_MapCache.js
|
|
619
|
+
function MapCache(entries) {
|
|
851
620
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
852
621
|
this.clear();
|
|
853
622
|
while (++index < length) {
|
|
@@ -855,334 +624,444 @@ function Hash(entries) {
|
|
|
855
624
|
this.set(entry[0], entry[1]);
|
|
856
625
|
}
|
|
857
626
|
}
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
var
|
|
864
|
-
|
|
865
|
-
// node_modules/lodash-es/_listCacheClear.js
|
|
866
|
-
function listCacheClear() {
|
|
867
|
-
this.__data__ = [];
|
|
868
|
-
this.size = 0;
|
|
869
|
-
}
|
|
870
|
-
var listCacheClear_default = listCacheClear;
|
|
627
|
+
MapCache.prototype.clear = mapCacheClear_default;
|
|
628
|
+
MapCache.prototype["delete"] = mapCacheDelete_default;
|
|
629
|
+
MapCache.prototype.get = mapCacheGet_default;
|
|
630
|
+
MapCache.prototype.has = mapCacheHas_default;
|
|
631
|
+
MapCache.prototype.set = mapCacheSet_default;
|
|
632
|
+
var MapCache_default = MapCache;
|
|
871
633
|
|
|
872
|
-
// node_modules/lodash-es/
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
634
|
+
// node_modules/lodash-es/_stackSet.js
|
|
635
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
636
|
+
function stackSet(key, value) {
|
|
637
|
+
var data = this.__data__;
|
|
638
|
+
if (data instanceof ListCache_default) {
|
|
639
|
+
var pairs = data.__data__;
|
|
640
|
+
if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
641
|
+
pairs.push([key, value]);
|
|
642
|
+
this.size = ++data.size;
|
|
643
|
+
return this;
|
|
878
644
|
}
|
|
645
|
+
data = this.__data__ = new MapCache_default(pairs);
|
|
879
646
|
}
|
|
880
|
-
|
|
647
|
+
data.set(key, value);
|
|
648
|
+
this.size = data.size;
|
|
649
|
+
return this;
|
|
881
650
|
}
|
|
882
|
-
var
|
|
651
|
+
var stackSet_default = stackSet;
|
|
883
652
|
|
|
884
|
-
// node_modules/lodash-es/
|
|
885
|
-
|
|
886
|
-
var
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
653
|
+
// node_modules/lodash-es/_Stack.js
|
|
654
|
+
function Stack(entries) {
|
|
655
|
+
var data = this.__data__ = new ListCache_default(entries);
|
|
656
|
+
this.size = data.size;
|
|
657
|
+
}
|
|
658
|
+
Stack.prototype.clear = stackClear_default;
|
|
659
|
+
Stack.prototype["delete"] = stackDelete_default;
|
|
660
|
+
Stack.prototype.get = stackGet_default;
|
|
661
|
+
Stack.prototype.has = stackHas_default;
|
|
662
|
+
Stack.prototype.set = stackSet_default;
|
|
663
|
+
var Stack_default = Stack;
|
|
664
|
+
|
|
665
|
+
// node_modules/lodash-es/_defineProperty.js
|
|
666
|
+
var defineProperty = (function() {
|
|
667
|
+
try {
|
|
668
|
+
var func = getNative_default(Object, "defineProperty");
|
|
669
|
+
func({}, "", {});
|
|
670
|
+
return func;
|
|
671
|
+
} catch (e) {
|
|
891
672
|
}
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
673
|
+
})();
|
|
674
|
+
var defineProperty_default = defineProperty;
|
|
675
|
+
|
|
676
|
+
// node_modules/lodash-es/_baseAssignValue.js
|
|
677
|
+
function baseAssignValue(object, key, value) {
|
|
678
|
+
if (key == "__proto__" && defineProperty_default) {
|
|
679
|
+
defineProperty_default(object, key, {
|
|
680
|
+
"configurable": true,
|
|
681
|
+
"enumerable": true,
|
|
682
|
+
"value": value,
|
|
683
|
+
"writable": true
|
|
684
|
+
});
|
|
895
685
|
} else {
|
|
896
|
-
|
|
686
|
+
object[key] = value;
|
|
897
687
|
}
|
|
898
|
-
--this.size;
|
|
899
|
-
return true;
|
|
900
688
|
}
|
|
901
|
-
var
|
|
689
|
+
var baseAssignValue_default = baseAssignValue;
|
|
902
690
|
|
|
903
|
-
// node_modules/lodash-es/
|
|
904
|
-
function
|
|
905
|
-
|
|
906
|
-
|
|
691
|
+
// node_modules/lodash-es/_assignMergeValue.js
|
|
692
|
+
function assignMergeValue(object, key, value) {
|
|
693
|
+
if (value !== void 0 && !eq_default(object[key], value) || value === void 0 && !(key in object)) {
|
|
694
|
+
baseAssignValue_default(object, key, value);
|
|
695
|
+
}
|
|
907
696
|
}
|
|
908
|
-
var
|
|
697
|
+
var assignMergeValue_default = assignMergeValue;
|
|
909
698
|
|
|
910
|
-
// node_modules/lodash-es/
|
|
911
|
-
function
|
|
912
|
-
return
|
|
699
|
+
// node_modules/lodash-es/_createBaseFor.js
|
|
700
|
+
function createBaseFor(fromRight) {
|
|
701
|
+
return function(object, iteratee, keysFunc) {
|
|
702
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
703
|
+
while (length--) {
|
|
704
|
+
var key = props[fromRight ? length : ++index];
|
|
705
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
706
|
+
break;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
return object;
|
|
710
|
+
};
|
|
913
711
|
}
|
|
914
|
-
var
|
|
712
|
+
var createBaseFor_default = createBaseFor;
|
|
915
713
|
|
|
916
|
-
// node_modules/lodash-es/
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
714
|
+
// node_modules/lodash-es/_baseFor.js
|
|
715
|
+
var baseFor = createBaseFor_default();
|
|
716
|
+
var baseFor_default = baseFor;
|
|
717
|
+
|
|
718
|
+
// node_modules/lodash-es/_cloneBuffer.js
|
|
719
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
720
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
721
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
722
|
+
var Buffer2 = moduleExports ? root_default.Buffer : void 0;
|
|
723
|
+
var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
724
|
+
function cloneBuffer(buffer, isDeep) {
|
|
725
|
+
if (isDeep) {
|
|
726
|
+
return buffer.slice();
|
|
924
727
|
}
|
|
925
|
-
|
|
728
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
729
|
+
buffer.copy(result);
|
|
730
|
+
return result;
|
|
926
731
|
}
|
|
927
|
-
var
|
|
732
|
+
var cloneBuffer_default = cloneBuffer;
|
|
733
|
+
|
|
734
|
+
// node_modules/lodash-es/_Uint8Array.js
|
|
735
|
+
var Uint8Array2 = root_default.Uint8Array;
|
|
736
|
+
var Uint8Array_default = Uint8Array2;
|
|
737
|
+
|
|
738
|
+
// node_modules/lodash-es/_cloneArrayBuffer.js
|
|
739
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
740
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
741
|
+
new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer));
|
|
742
|
+
return result;
|
|
743
|
+
}
|
|
744
|
+
var cloneArrayBuffer_default = cloneArrayBuffer;
|
|
745
|
+
|
|
746
|
+
// node_modules/lodash-es/_cloneTypedArray.js
|
|
747
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
748
|
+
var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
|
|
749
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
750
|
+
}
|
|
751
|
+
var cloneTypedArray_default = cloneTypedArray;
|
|
752
|
+
|
|
753
|
+
// node_modules/lodash-es/_copyArray.js
|
|
754
|
+
function copyArray(source, array) {
|
|
755
|
+
var index = -1, length = source.length;
|
|
756
|
+
array || (array = Array(length));
|
|
757
|
+
while (++index < length) {
|
|
758
|
+
array[index] = source[index];
|
|
759
|
+
}
|
|
760
|
+
return array;
|
|
761
|
+
}
|
|
762
|
+
var copyArray_default = copyArray;
|
|
763
|
+
|
|
764
|
+
// node_modules/lodash-es/_baseCreate.js
|
|
765
|
+
var objectCreate = Object.create;
|
|
766
|
+
var baseCreate = /* @__PURE__ */ (function() {
|
|
767
|
+
function object() {
|
|
768
|
+
}
|
|
769
|
+
return function(proto) {
|
|
770
|
+
if (!isObject_default(proto)) {
|
|
771
|
+
return {};
|
|
772
|
+
}
|
|
773
|
+
if (objectCreate) {
|
|
774
|
+
return objectCreate(proto);
|
|
775
|
+
}
|
|
776
|
+
object.prototype = proto;
|
|
777
|
+
var result = new object();
|
|
778
|
+
object.prototype = void 0;
|
|
779
|
+
return result;
|
|
780
|
+
};
|
|
781
|
+
})();
|
|
782
|
+
var baseCreate_default = baseCreate;
|
|
928
783
|
|
|
929
|
-
// node_modules/lodash-es/
|
|
930
|
-
function
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
var entry = entries[index];
|
|
935
|
-
this.set(entry[0], entry[1]);
|
|
936
|
-
}
|
|
784
|
+
// node_modules/lodash-es/_overArg.js
|
|
785
|
+
function overArg(func, transform) {
|
|
786
|
+
return function(arg) {
|
|
787
|
+
return func(transform(arg));
|
|
788
|
+
};
|
|
937
789
|
}
|
|
938
|
-
|
|
939
|
-
ListCache.prototype["delete"] = listCacheDelete_default;
|
|
940
|
-
ListCache.prototype.get = listCacheGet_default;
|
|
941
|
-
ListCache.prototype.has = listCacheHas_default;
|
|
942
|
-
ListCache.prototype.set = listCacheSet_default;
|
|
943
|
-
var ListCache_default = ListCache;
|
|
790
|
+
var overArg_default = overArg;
|
|
944
791
|
|
|
945
|
-
// node_modules/lodash-es/
|
|
946
|
-
var
|
|
947
|
-
var
|
|
792
|
+
// node_modules/lodash-es/_getPrototype.js
|
|
793
|
+
var getPrototype = overArg_default(Object.getPrototypeOf, Object);
|
|
794
|
+
var getPrototype_default = getPrototype;
|
|
948
795
|
|
|
949
|
-
// node_modules/lodash-es/
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
"map": new (Map_default || ListCache_default)(),
|
|
955
|
-
"string": new Hash_default()
|
|
956
|
-
};
|
|
796
|
+
// node_modules/lodash-es/_isPrototype.js
|
|
797
|
+
var objectProto6 = Object.prototype;
|
|
798
|
+
function isPrototype(value) {
|
|
799
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto6;
|
|
800
|
+
return value === proto;
|
|
957
801
|
}
|
|
958
|
-
var
|
|
802
|
+
var isPrototype_default = isPrototype;
|
|
959
803
|
|
|
960
|
-
// node_modules/lodash-es/
|
|
961
|
-
function
|
|
962
|
-
|
|
963
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
804
|
+
// node_modules/lodash-es/_initCloneObject.js
|
|
805
|
+
function initCloneObject(object) {
|
|
806
|
+
return typeof object.constructor == "function" && !isPrototype_default(object) ? baseCreate_default(getPrototype_default(object)) : {};
|
|
964
807
|
}
|
|
965
|
-
var
|
|
808
|
+
var initCloneObject_default = initCloneObject;
|
|
966
809
|
|
|
967
|
-
// node_modules/lodash-es/
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
return
|
|
810
|
+
// node_modules/lodash-es/_baseIsArguments.js
|
|
811
|
+
var argsTag = "[object Arguments]";
|
|
812
|
+
function baseIsArguments(value) {
|
|
813
|
+
return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
|
|
971
814
|
}
|
|
972
|
-
var
|
|
815
|
+
var baseIsArguments_default = baseIsArguments;
|
|
973
816
|
|
|
974
|
-
// node_modules/lodash-es/
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
817
|
+
// node_modules/lodash-es/isArguments.js
|
|
818
|
+
var objectProto7 = Object.prototype;
|
|
819
|
+
var hasOwnProperty5 = objectProto7.hasOwnProperty;
|
|
820
|
+
var propertyIsEnumerable = objectProto7.propertyIsEnumerable;
|
|
821
|
+
var isArguments = baseIsArguments_default(/* @__PURE__ */ (function() {
|
|
822
|
+
return arguments;
|
|
823
|
+
})()) ? baseIsArguments_default : function(value) {
|
|
824
|
+
return isObjectLike_default(value) && hasOwnProperty5.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
825
|
+
};
|
|
826
|
+
var isArguments_default = isArguments;
|
|
981
827
|
|
|
982
|
-
// node_modules/lodash-es/
|
|
983
|
-
|
|
984
|
-
|
|
828
|
+
// node_modules/lodash-es/isArray.js
|
|
829
|
+
var isArray = Array.isArray;
|
|
830
|
+
var isArray_default = isArray;
|
|
831
|
+
|
|
832
|
+
// node_modules/lodash-es/isLength.js
|
|
833
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
834
|
+
function isLength(value) {
|
|
835
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
985
836
|
}
|
|
986
|
-
var
|
|
837
|
+
var isLength_default = isLength;
|
|
987
838
|
|
|
988
|
-
// node_modules/lodash-es/
|
|
989
|
-
function
|
|
990
|
-
return
|
|
839
|
+
// node_modules/lodash-es/isArrayLike.js
|
|
840
|
+
function isArrayLike(value) {
|
|
841
|
+
return value != null && isLength_default(value.length) && !isFunction_default(value);
|
|
991
842
|
}
|
|
992
|
-
var
|
|
843
|
+
var isArrayLike_default = isArrayLike;
|
|
993
844
|
|
|
994
|
-
// node_modules/lodash-es/
|
|
995
|
-
function
|
|
996
|
-
|
|
997
|
-
data.set(key, value);
|
|
998
|
-
this.size += data.size == size ? 0 : 1;
|
|
999
|
-
return this;
|
|
845
|
+
// node_modules/lodash-es/isArrayLikeObject.js
|
|
846
|
+
function isArrayLikeObject(value) {
|
|
847
|
+
return isObjectLike_default(value) && isArrayLike_default(value);
|
|
1000
848
|
}
|
|
1001
|
-
var
|
|
849
|
+
var isArrayLikeObject_default = isArrayLikeObject;
|
|
1002
850
|
|
|
1003
|
-
// node_modules/lodash-es/
|
|
1004
|
-
function
|
|
1005
|
-
|
|
1006
|
-
this.clear();
|
|
1007
|
-
while (++index < length) {
|
|
1008
|
-
var entry = entries[index];
|
|
1009
|
-
this.set(entry[0], entry[1]);
|
|
1010
|
-
}
|
|
851
|
+
// node_modules/lodash-es/stubFalse.js
|
|
852
|
+
function stubFalse() {
|
|
853
|
+
return false;
|
|
1011
854
|
}
|
|
1012
|
-
|
|
1013
|
-
MapCache.prototype["delete"] = mapCacheDelete_default;
|
|
1014
|
-
MapCache.prototype.get = mapCacheGet_default;
|
|
1015
|
-
MapCache.prototype.has = mapCacheHas_default;
|
|
1016
|
-
MapCache.prototype.set = mapCacheSet_default;
|
|
1017
|
-
var MapCache_default = MapCache;
|
|
855
|
+
var stubFalse_default = stubFalse;
|
|
1018
856
|
|
|
1019
|
-
// node_modules/lodash-es/
|
|
1020
|
-
var
|
|
1021
|
-
var
|
|
857
|
+
// node_modules/lodash-es/isBuffer.js
|
|
858
|
+
var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
859
|
+
var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
|
|
860
|
+
var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
|
861
|
+
var Buffer3 = moduleExports2 ? root_default.Buffer : void 0;
|
|
862
|
+
var nativeIsBuffer = Buffer3 ? Buffer3.isBuffer : void 0;
|
|
863
|
+
var isBuffer = nativeIsBuffer || stubFalse_default;
|
|
864
|
+
var isBuffer_default = isBuffer;
|
|
1022
865
|
|
|
1023
866
|
// node_modules/lodash-es/isPlainObject.js
|
|
1024
|
-
var
|
|
867
|
+
var objectTag = "[object Object]";
|
|
1025
868
|
var funcProto3 = Function.prototype;
|
|
1026
|
-
var
|
|
869
|
+
var objectProto8 = Object.prototype;
|
|
1027
870
|
var funcToString3 = funcProto3.toString;
|
|
1028
|
-
var
|
|
871
|
+
var hasOwnProperty6 = objectProto8.hasOwnProperty;
|
|
1029
872
|
var objectCtorString = funcToString3.call(Object);
|
|
1030
873
|
function isPlainObject(value) {
|
|
1031
|
-
if (!isObjectLike_default(value) || baseGetTag_default(value) !=
|
|
874
|
+
if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag) {
|
|
1032
875
|
return false;
|
|
1033
876
|
}
|
|
1034
877
|
var proto = getPrototype_default(value);
|
|
1035
878
|
if (proto === null) {
|
|
1036
879
|
return true;
|
|
1037
880
|
}
|
|
1038
|
-
var Ctor =
|
|
881
|
+
var Ctor = hasOwnProperty6.call(proto, "constructor") && proto.constructor;
|
|
1039
882
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString;
|
|
1040
883
|
}
|
|
1041
884
|
var isPlainObject_default = isPlainObject;
|
|
1042
885
|
|
|
1043
|
-
// node_modules/lodash-es/
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
886
|
+
// node_modules/lodash-es/_baseIsTypedArray.js
|
|
887
|
+
var argsTag2 = "[object Arguments]";
|
|
888
|
+
var arrayTag = "[object Array]";
|
|
889
|
+
var boolTag = "[object Boolean]";
|
|
890
|
+
var dateTag = "[object Date]";
|
|
891
|
+
var errorTag = "[object Error]";
|
|
892
|
+
var funcTag2 = "[object Function]";
|
|
893
|
+
var mapTag = "[object Map]";
|
|
894
|
+
var numberTag = "[object Number]";
|
|
895
|
+
var objectTag2 = "[object Object]";
|
|
896
|
+
var regexpTag = "[object RegExp]";
|
|
897
|
+
var setTag = "[object Set]";
|
|
898
|
+
var stringTag = "[object String]";
|
|
899
|
+
var weakMapTag = "[object WeakMap]";
|
|
900
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
901
|
+
var dataViewTag = "[object DataView]";
|
|
902
|
+
var float32Tag = "[object Float32Array]";
|
|
903
|
+
var float64Tag = "[object Float64Array]";
|
|
904
|
+
var int8Tag = "[object Int8Array]";
|
|
905
|
+
var int16Tag = "[object Int16Array]";
|
|
906
|
+
var int32Tag = "[object Int32Array]";
|
|
907
|
+
var uint8Tag = "[object Uint8Array]";
|
|
908
|
+
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
909
|
+
var uint16Tag = "[object Uint16Array]";
|
|
910
|
+
var uint32Tag = "[object Uint32Array]";
|
|
911
|
+
var typedArrayTags = {};
|
|
912
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
913
|
+
typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag2] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
914
|
+
function baseIsTypedArray(value) {
|
|
915
|
+
return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
|
|
1047
916
|
}
|
|
1048
|
-
var
|
|
917
|
+
var baseIsTypedArray_default = baseIsTypedArray;
|
|
1049
918
|
|
|
1050
|
-
// node_modules/lodash-es/
|
|
1051
|
-
function
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
919
|
+
// node_modules/lodash-es/_baseUnary.js
|
|
920
|
+
function baseUnary(func) {
|
|
921
|
+
return function(value) {
|
|
922
|
+
return func(value);
|
|
923
|
+
};
|
|
1055
924
|
}
|
|
1056
|
-
var
|
|
925
|
+
var baseUnary_default = baseUnary;
|
|
1057
926
|
|
|
1058
|
-
// node_modules/lodash-es/
|
|
1059
|
-
|
|
1060
|
-
|
|
927
|
+
// node_modules/lodash-es/_nodeUtil.js
|
|
928
|
+
var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
929
|
+
var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module;
|
|
930
|
+
var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
|
|
931
|
+
var freeProcess = moduleExports3 && freeGlobal_default.process;
|
|
932
|
+
var nodeUtil = (function() {
|
|
933
|
+
try {
|
|
934
|
+
var types = freeModule3 && freeModule3.require && freeModule3.require("util").types;
|
|
935
|
+
if (types) {
|
|
936
|
+
return types;
|
|
937
|
+
}
|
|
938
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
939
|
+
} catch (e) {
|
|
940
|
+
}
|
|
941
|
+
})();
|
|
942
|
+
var nodeUtil_default = nodeUtil;
|
|
943
|
+
|
|
944
|
+
// node_modules/lodash-es/isTypedArray.js
|
|
945
|
+
var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
|
|
946
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
|
|
947
|
+
var isTypedArray_default = isTypedArray;
|
|
948
|
+
|
|
949
|
+
// node_modules/lodash-es/_safeGet.js
|
|
950
|
+
function safeGet(object, key) {
|
|
951
|
+
if (key === "constructor" && typeof object[key] === "function") {
|
|
952
|
+
return;
|
|
953
|
+
}
|
|
954
|
+
if (key == "__proto__") {
|
|
955
|
+
return;
|
|
956
|
+
}
|
|
957
|
+
return object[key];
|
|
1061
958
|
}
|
|
1062
|
-
var
|
|
959
|
+
var safeGet_default = safeGet;
|
|
1063
960
|
|
|
1064
|
-
// node_modules/lodash-es/
|
|
1065
|
-
|
|
1066
|
-
|
|
961
|
+
// node_modules/lodash-es/_assignValue.js
|
|
962
|
+
var objectProto9 = Object.prototype;
|
|
963
|
+
var hasOwnProperty7 = objectProto9.hasOwnProperty;
|
|
964
|
+
function assignValue(object, key, value) {
|
|
965
|
+
var objValue = object[key];
|
|
966
|
+
if (!(hasOwnProperty7.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) {
|
|
967
|
+
baseAssignValue_default(object, key, value);
|
|
968
|
+
}
|
|
1067
969
|
}
|
|
1068
|
-
var
|
|
970
|
+
var assignValue_default = assignValue;
|
|
1069
971
|
|
|
1070
|
-
// node_modules/lodash-es/
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
972
|
+
// node_modules/lodash-es/_copyObject.js
|
|
973
|
+
function copyObject(source, props, object, customizer) {
|
|
974
|
+
var isNew = !object;
|
|
975
|
+
object || (object = {});
|
|
976
|
+
var index = -1, length = props.length;
|
|
977
|
+
while (++index < length) {
|
|
978
|
+
var key = props[index];
|
|
979
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
980
|
+
if (newValue === void 0) {
|
|
981
|
+
newValue = source[key];
|
|
982
|
+
}
|
|
983
|
+
if (isNew) {
|
|
984
|
+
baseAssignValue_default(object, key, newValue);
|
|
985
|
+
} else {
|
|
986
|
+
assignValue_default(object, key, newValue);
|
|
1080
987
|
}
|
|
1081
|
-
data = this.__data__ = new MapCache_default(pairs);
|
|
1082
988
|
}
|
|
1083
|
-
|
|
1084
|
-
this.size = data.size;
|
|
1085
|
-
return this;
|
|
1086
|
-
}
|
|
1087
|
-
var stackSet_default = stackSet;
|
|
1088
|
-
|
|
1089
|
-
// node_modules/lodash-es/_Stack.js
|
|
1090
|
-
function Stack(entries) {
|
|
1091
|
-
var data = this.__data__ = new ListCache_default(entries);
|
|
1092
|
-
this.size = data.size;
|
|
989
|
+
return object;
|
|
1093
990
|
}
|
|
1094
|
-
|
|
1095
|
-
Stack.prototype["delete"] = stackDelete_default;
|
|
1096
|
-
Stack.prototype.get = stackGet_default;
|
|
1097
|
-
Stack.prototype.has = stackHas_default;
|
|
1098
|
-
Stack.prototype.set = stackSet_default;
|
|
1099
|
-
var Stack_default = Stack;
|
|
991
|
+
var copyObject_default = copyObject;
|
|
1100
992
|
|
|
1101
|
-
// node_modules/lodash-es/
|
|
1102
|
-
|
|
1103
|
-
var
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
var allocUnsafe = Buffer3 ? Buffer3.allocUnsafe : void 0;
|
|
1107
|
-
function cloneBuffer(buffer, isDeep) {
|
|
1108
|
-
if (isDeep) {
|
|
1109
|
-
return buffer.slice();
|
|
993
|
+
// node_modules/lodash-es/_baseTimes.js
|
|
994
|
+
function baseTimes(n, iteratee) {
|
|
995
|
+
var index = -1, result = Array(n);
|
|
996
|
+
while (++index < n) {
|
|
997
|
+
result[index] = iteratee(index);
|
|
1110
998
|
}
|
|
1111
|
-
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1112
|
-
buffer.copy(result);
|
|
1113
|
-
return result;
|
|
1114
|
-
}
|
|
1115
|
-
var cloneBuffer_default = cloneBuffer;
|
|
1116
|
-
|
|
1117
|
-
// node_modules/lodash-es/_Uint8Array.js
|
|
1118
|
-
var Uint8Array2 = root_default.Uint8Array;
|
|
1119
|
-
var Uint8Array_default = Uint8Array2;
|
|
1120
|
-
|
|
1121
|
-
// node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1122
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
1123
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1124
|
-
new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer));
|
|
1125
999
|
return result;
|
|
1126
1000
|
}
|
|
1127
|
-
var
|
|
1128
|
-
|
|
1129
|
-
// node_modules/lodash-es/_cloneTypedArray.js
|
|
1130
|
-
function cloneTypedArray(typedArray, isDeep) {
|
|
1131
|
-
var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
|
|
1132
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1133
|
-
}
|
|
1134
|
-
var cloneTypedArray_default = cloneTypedArray;
|
|
1001
|
+
var baseTimes_default = baseTimes;
|
|
1135
1002
|
|
|
1136
|
-
// node_modules/lodash-es/
|
|
1137
|
-
|
|
1138
|
-
|
|
1003
|
+
// node_modules/lodash-es/_isIndex.js
|
|
1004
|
+
var MAX_SAFE_INTEGER2 = 9007199254740991;
|
|
1005
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
1006
|
+
function isIndex(value, length) {
|
|
1007
|
+
var type = typeof value;
|
|
1008
|
+
length = length == null ? MAX_SAFE_INTEGER2 : length;
|
|
1009
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
1139
1010
|
}
|
|
1140
|
-
var
|
|
1011
|
+
var isIndex_default = isIndex;
|
|
1141
1012
|
|
|
1142
|
-
// node_modules/lodash-es/
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1013
|
+
// node_modules/lodash-es/_arrayLikeKeys.js
|
|
1014
|
+
var objectProto10 = Object.prototype;
|
|
1015
|
+
var hasOwnProperty8 = objectProto10.hasOwnProperty;
|
|
1016
|
+
function arrayLikeKeys(value, inherited) {
|
|
1017
|
+
var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length;
|
|
1018
|
+
for (var key in value) {
|
|
1019
|
+
if ((inherited || hasOwnProperty8.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1020
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1021
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1022
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
1023
|
+
isIndex_default(key, length)))) {
|
|
1024
|
+
result.push(key);
|
|
1151
1025
|
}
|
|
1152
|
-
return object;
|
|
1153
|
-
};
|
|
1154
|
-
}
|
|
1155
|
-
var createBaseFor_default = createBaseFor;
|
|
1156
|
-
|
|
1157
|
-
// node_modules/lodash-es/_baseFor.js
|
|
1158
|
-
var baseFor = createBaseFor_default();
|
|
1159
|
-
var baseFor_default = baseFor;
|
|
1160
|
-
|
|
1161
|
-
// node_modules/lodash-es/_assignMergeValue.js
|
|
1162
|
-
function assignMergeValue(object, key, value) {
|
|
1163
|
-
if (value !== void 0 && !eq_default(object[key], value) || value === void 0 && !(key in object)) {
|
|
1164
|
-
baseAssignValue_default(object, key, value);
|
|
1165
1026
|
}
|
|
1027
|
+
return result;
|
|
1166
1028
|
}
|
|
1167
|
-
var
|
|
1029
|
+
var arrayLikeKeys_default = arrayLikeKeys;
|
|
1168
1030
|
|
|
1169
|
-
// node_modules/lodash-es/
|
|
1170
|
-
function
|
|
1171
|
-
|
|
1031
|
+
// node_modules/lodash-es/_nativeKeysIn.js
|
|
1032
|
+
function nativeKeysIn(object) {
|
|
1033
|
+
var result = [];
|
|
1034
|
+
if (object != null) {
|
|
1035
|
+
for (var key in Object(object)) {
|
|
1036
|
+
result.push(key);
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
return result;
|
|
1172
1040
|
}
|
|
1173
|
-
var
|
|
1041
|
+
var nativeKeysIn_default = nativeKeysIn;
|
|
1174
1042
|
|
|
1175
|
-
// node_modules/lodash-es/
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1043
|
+
// node_modules/lodash-es/_baseKeysIn.js
|
|
1044
|
+
var objectProto11 = Object.prototype;
|
|
1045
|
+
var hasOwnProperty9 = objectProto11.hasOwnProperty;
|
|
1046
|
+
function baseKeysIn(object) {
|
|
1047
|
+
if (!isObject_default(object)) {
|
|
1048
|
+
return nativeKeysIn_default(object);
|
|
1179
1049
|
}
|
|
1180
|
-
|
|
1181
|
-
|
|
1050
|
+
var isProto = isPrototype_default(object), result = [];
|
|
1051
|
+
for (var key in object) {
|
|
1052
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty9.call(object, key)))) {
|
|
1053
|
+
result.push(key);
|
|
1054
|
+
}
|
|
1182
1055
|
}
|
|
1183
|
-
return
|
|
1056
|
+
return result;
|
|
1184
1057
|
}
|
|
1185
|
-
var
|
|
1058
|
+
var baseKeysIn_default = baseKeysIn;
|
|
1059
|
+
|
|
1060
|
+
// node_modules/lodash-es/keysIn.js
|
|
1061
|
+
function keysIn(object) {
|
|
1062
|
+
return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object);
|
|
1063
|
+
}
|
|
1064
|
+
var keysIn_default = keysIn;
|
|
1186
1065
|
|
|
1187
1066
|
// node_modules/lodash-es/toPlainObject.js
|
|
1188
1067
|
function toPlainObject(value) {
|
|
@@ -1227,34 +1106,160 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
|
|
|
1227
1106
|
isCommon = false;
|
|
1228
1107
|
}
|
|
1229
1108
|
}
|
|
1230
|
-
if (isCommon) {
|
|
1231
|
-
stack.set(srcValue, newValue);
|
|
1232
|
-
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
1233
|
-
stack["delete"](srcValue);
|
|
1109
|
+
if (isCommon) {
|
|
1110
|
+
stack.set(srcValue, newValue);
|
|
1111
|
+
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
1112
|
+
stack["delete"](srcValue);
|
|
1113
|
+
}
|
|
1114
|
+
assignMergeValue_default(object, key, newValue);
|
|
1115
|
+
}
|
|
1116
|
+
var baseMergeDeep_default = baseMergeDeep;
|
|
1117
|
+
|
|
1118
|
+
// node_modules/lodash-es/_baseMerge.js
|
|
1119
|
+
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
1120
|
+
if (object === source) {
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1123
|
+
baseFor_default(source, function(srcValue, key) {
|
|
1124
|
+
stack || (stack = new Stack_default());
|
|
1125
|
+
if (isObject_default(srcValue)) {
|
|
1126
|
+
baseMergeDeep_default(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
1127
|
+
} else {
|
|
1128
|
+
var newValue = customizer ? customizer(safeGet_default(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
1129
|
+
if (newValue === void 0) {
|
|
1130
|
+
newValue = srcValue;
|
|
1131
|
+
}
|
|
1132
|
+
assignMergeValue_default(object, key, newValue);
|
|
1133
|
+
}
|
|
1134
|
+
}, keysIn_default);
|
|
1135
|
+
}
|
|
1136
|
+
var baseMerge_default = baseMerge;
|
|
1137
|
+
|
|
1138
|
+
// node_modules/lodash-es/identity.js
|
|
1139
|
+
function identity(value) {
|
|
1140
|
+
return value;
|
|
1141
|
+
}
|
|
1142
|
+
var identity_default = identity;
|
|
1143
|
+
|
|
1144
|
+
// node_modules/lodash-es/_apply.js
|
|
1145
|
+
function apply(func, thisArg, args) {
|
|
1146
|
+
switch (args.length) {
|
|
1147
|
+
case 0:
|
|
1148
|
+
return func.call(thisArg);
|
|
1149
|
+
case 1:
|
|
1150
|
+
return func.call(thisArg, args[0]);
|
|
1151
|
+
case 2:
|
|
1152
|
+
return func.call(thisArg, args[0], args[1]);
|
|
1153
|
+
case 3:
|
|
1154
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
1155
|
+
}
|
|
1156
|
+
return func.apply(thisArg, args);
|
|
1157
|
+
}
|
|
1158
|
+
var apply_default = apply;
|
|
1159
|
+
|
|
1160
|
+
// node_modules/lodash-es/_overRest.js
|
|
1161
|
+
var nativeMax2 = Math.max;
|
|
1162
|
+
function overRest(func, start, transform) {
|
|
1163
|
+
start = nativeMax2(start === void 0 ? func.length - 1 : start, 0);
|
|
1164
|
+
return function() {
|
|
1165
|
+
var args = arguments, index = -1, length = nativeMax2(args.length - start, 0), array = Array(length);
|
|
1166
|
+
while (++index < length) {
|
|
1167
|
+
array[index] = args[start + index];
|
|
1168
|
+
}
|
|
1169
|
+
index = -1;
|
|
1170
|
+
var otherArgs = Array(start + 1);
|
|
1171
|
+
while (++index < start) {
|
|
1172
|
+
otherArgs[index] = args[index];
|
|
1173
|
+
}
|
|
1174
|
+
otherArgs[start] = transform(array);
|
|
1175
|
+
return apply_default(func, this, otherArgs);
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
var overRest_default = overRest;
|
|
1179
|
+
|
|
1180
|
+
// node_modules/lodash-es/constant.js
|
|
1181
|
+
function constant(value) {
|
|
1182
|
+
return function() {
|
|
1183
|
+
return value;
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
var constant_default = constant;
|
|
1187
|
+
|
|
1188
|
+
// node_modules/lodash-es/_baseSetToString.js
|
|
1189
|
+
var baseSetToString = !defineProperty_default ? identity_default : function(func, string) {
|
|
1190
|
+
return defineProperty_default(func, "toString", {
|
|
1191
|
+
"configurable": true,
|
|
1192
|
+
"enumerable": false,
|
|
1193
|
+
"value": constant_default(string),
|
|
1194
|
+
"writable": true
|
|
1195
|
+
});
|
|
1196
|
+
};
|
|
1197
|
+
var baseSetToString_default = baseSetToString;
|
|
1198
|
+
|
|
1199
|
+
// node_modules/lodash-es/_shortOut.js
|
|
1200
|
+
var HOT_COUNT = 800;
|
|
1201
|
+
var HOT_SPAN = 16;
|
|
1202
|
+
var nativeNow = Date.now;
|
|
1203
|
+
function shortOut(func) {
|
|
1204
|
+
var count = 0, lastCalled = 0;
|
|
1205
|
+
return function() {
|
|
1206
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
1207
|
+
lastCalled = stamp;
|
|
1208
|
+
if (remaining > 0) {
|
|
1209
|
+
if (++count >= HOT_COUNT) {
|
|
1210
|
+
return arguments[0];
|
|
1211
|
+
}
|
|
1212
|
+
} else {
|
|
1213
|
+
count = 0;
|
|
1214
|
+
}
|
|
1215
|
+
return func.apply(void 0, arguments);
|
|
1216
|
+
};
|
|
1217
|
+
}
|
|
1218
|
+
var shortOut_default = shortOut;
|
|
1219
|
+
|
|
1220
|
+
// node_modules/lodash-es/_setToString.js
|
|
1221
|
+
var setToString = shortOut_default(baseSetToString_default);
|
|
1222
|
+
var setToString_default = setToString;
|
|
1223
|
+
|
|
1224
|
+
// node_modules/lodash-es/_baseRest.js
|
|
1225
|
+
function baseRest(func, start) {
|
|
1226
|
+
return setToString_default(overRest_default(func, start, identity_default), func + "");
|
|
1227
|
+
}
|
|
1228
|
+
var baseRest_default = baseRest;
|
|
1229
|
+
|
|
1230
|
+
// node_modules/lodash-es/_isIterateeCall.js
|
|
1231
|
+
function isIterateeCall(value, index, object) {
|
|
1232
|
+
if (!isObject_default(object)) {
|
|
1233
|
+
return false;
|
|
1234
|
+
}
|
|
1235
|
+
var type = typeof index;
|
|
1236
|
+
if (type == "number" ? isArrayLike_default(object) && isIndex_default(index, object.length) : type == "string" && index in object) {
|
|
1237
|
+
return eq_default(object[index], value);
|
|
1234
1238
|
}
|
|
1235
|
-
|
|
1239
|
+
return false;
|
|
1236
1240
|
}
|
|
1237
|
-
var
|
|
1241
|
+
var isIterateeCall_default = isIterateeCall;
|
|
1238
1242
|
|
|
1239
|
-
// node_modules/lodash-es/
|
|
1240
|
-
function
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1243
|
+
// node_modules/lodash-es/_createAssigner.js
|
|
1244
|
+
function createAssigner(assigner) {
|
|
1245
|
+
return baseRest_default(function(object, sources) {
|
|
1246
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
1247
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
1248
|
+
if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
|
|
1249
|
+
customizer = length < 3 ? void 0 : customizer;
|
|
1250
|
+
length = 1;
|
|
1251
|
+
}
|
|
1252
|
+
object = Object(object);
|
|
1253
|
+
while (++index < length) {
|
|
1254
|
+
var source = sources[index];
|
|
1255
|
+
if (source) {
|
|
1256
|
+
assigner(object, source, index, customizer);
|
|
1252
1257
|
}
|
|
1253
|
-
assignMergeValue_default(object, key, newValue);
|
|
1254
1258
|
}
|
|
1255
|
-
|
|
1259
|
+
return object;
|
|
1260
|
+
});
|
|
1256
1261
|
}
|
|
1257
|
-
var
|
|
1262
|
+
var createAssigner_default = createAssigner;
|
|
1258
1263
|
|
|
1259
1264
|
// node_modules/lodash-es/merge.js
|
|
1260
1265
|
var merge = createAssigner_default(function(object, source, srcIndex) {
|
|
@@ -1262,25 +1267,35 @@ var merge = createAssigner_default(function(object, source, srcIndex) {
|
|
|
1262
1267
|
});
|
|
1263
1268
|
var merge_default = merge;
|
|
1264
1269
|
|
|
1265
|
-
// src/utils/promise.ts
|
|
1266
|
-
function sleep(ms) {
|
|
1267
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
1270
|
// src/engine/SignalBroker.ts
|
|
1271
1271
|
var SignalBroker = class _SignalBroker {
|
|
1272
1272
|
constructor() {
|
|
1273
1273
|
this.debug = false;
|
|
1274
1274
|
this.verbose = false;
|
|
1275
|
-
this.debouncedEmitters = /* @__PURE__ */ new Map();
|
|
1276
|
-
this.squashedEmitters = /* @__PURE__ */ new Map();
|
|
1277
|
-
this.squashedContexts = /* @__PURE__ */ new Map();
|
|
1278
1275
|
this.throttleEmitters = /* @__PURE__ */ new Map();
|
|
1279
1276
|
this.throttleQueues = /* @__PURE__ */ new Map();
|
|
1280
1277
|
// TODO: Signals should be a class with a the observers, registered flag and other data.
|
|
1281
1278
|
this.signalObservers = /* @__PURE__ */ new Map();
|
|
1282
1279
|
this.emittedSignalsRegistry = /* @__PURE__ */ new Set();
|
|
1280
|
+
// ── Flush Strategy Management ───────────────────────────────────────
|
|
1281
|
+
this.flushStrategies = /* @__PURE__ */ new Map();
|
|
1282
|
+
this.strategyData = /* @__PURE__ */ new Map();
|
|
1283
|
+
this.strategyTimers = /* @__PURE__ */ new Map();
|
|
1284
|
+
this.isStrategyFlushing = /* @__PURE__ */ new Map();
|
|
1285
|
+
this.defaultStrategyName = "default";
|
|
1286
|
+
// ── Squash (Multi-strategy) ─────────────────────────────────────────
|
|
1287
|
+
this.MAX_FLUSH_DURATION_MS = 120;
|
|
1288
|
+
// ── Schedule (Bucketed) ─────────────────────────────────────────────
|
|
1289
|
+
this.scheduledBuckets = /* @__PURE__ */ new Map();
|
|
1290
|
+
this.scheduleTimer = null;
|
|
1291
|
+
// ── Debounce (with cap) ─────────────────────────────────────────────
|
|
1292
|
+
this.debouncedEmitters = /* @__PURE__ */ new Map();
|
|
1293
|
+
this.MAX_DEBOUNCERS = 5e3;
|
|
1283
1294
|
this.addSignal("meta.signal_broker.added");
|
|
1295
|
+
this.setFlushStrategy(this.defaultStrategyName, {
|
|
1296
|
+
intervalMs: 350,
|
|
1297
|
+
maxBatchSize: 80
|
|
1298
|
+
});
|
|
1284
1299
|
}
|
|
1285
1300
|
static get instance() {
|
|
1286
1301
|
if (!this.instance_) {
|
|
@@ -1367,57 +1382,224 @@ var SignalBroker = class _SignalBroker {
|
|
|
1367
1382
|
}
|
|
1368
1383
|
).doOn("meta.signal.registered");
|
|
1369
1384
|
}
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
this.
|
|
1385
|
+
setFlushStrategy(name, config) {
|
|
1386
|
+
if (config.intervalMs < 50) {
|
|
1387
|
+
throw new Error("intervalMs must be >= 50ms for performance reasons");
|
|
1388
|
+
}
|
|
1389
|
+
this.flushStrategies.set(name, {
|
|
1390
|
+
intervalMs: config.intervalMs,
|
|
1391
|
+
maxBatchSize: config.maxBatchSize ?? 80
|
|
1392
|
+
});
|
|
1393
|
+
if (!this.strategyData.has(name)) {
|
|
1394
|
+
this.strategyData.set(name, /* @__PURE__ */ new Map());
|
|
1395
|
+
this.strategyTimers.set(name, null);
|
|
1396
|
+
this.isStrategyFlushing.set(name, false);
|
|
1397
|
+
}
|
|
1379
1398
|
}
|
|
1380
|
-
|
|
1381
|
-
this.
|
|
1399
|
+
updateFlushStrategy(name, config) {
|
|
1400
|
+
if (!this.flushStrategies.get(name)) {
|
|
1401
|
+
return this.setFlushStrategy(name, config);
|
|
1402
|
+
}
|
|
1403
|
+
this.flushStrategies.set(name, config);
|
|
1382
1404
|
}
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1405
|
+
removeFlushStrategy(name) {
|
|
1406
|
+
if (name === this.defaultStrategyName) {
|
|
1407
|
+
throw new Error("Cannot remove default strategy");
|
|
1408
|
+
}
|
|
1409
|
+
const timer = this.strategyTimers.get(name);
|
|
1410
|
+
if (timer) clearTimeout(timer);
|
|
1411
|
+
this.strategyTimers.delete(name);
|
|
1412
|
+
this.strategyData.delete(name);
|
|
1413
|
+
this.isStrategyFlushing.delete(name);
|
|
1414
|
+
this.flushStrategies.delete(name);
|
|
1415
|
+
}
|
|
1416
|
+
getFlushStrategies() {
|
|
1417
|
+
return Object.fromEntries(this.flushStrategies);
|
|
1418
|
+
}
|
|
1419
|
+
squash(signal, context, options = { squash: true }) {
|
|
1420
|
+
if (!options.squash) {
|
|
1421
|
+
this.emit(signal, context, options);
|
|
1422
|
+
return;
|
|
1423
|
+
}
|
|
1424
|
+
const strategyName = options.flushStrategy ?? this.defaultStrategyName;
|
|
1425
|
+
const strategy = this.flushStrategies.get(strategyName);
|
|
1426
|
+
if (!strategy) {
|
|
1427
|
+
console.warn(
|
|
1428
|
+
`Unknown flush strategy '${strategyName}', falling back to default`
|
|
1429
|
+
);
|
|
1430
|
+
return this.squash(signal, context, {
|
|
1431
|
+
...options,
|
|
1432
|
+
flushStrategy: this.defaultStrategyName
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
const squashId = options.squashId ?? signal;
|
|
1436
|
+
let groups = this.strategyData.get(strategyName);
|
|
1437
|
+
let data = groups.get(squashId);
|
|
1438
|
+
if (!data) {
|
|
1439
|
+
data = { signal, contexts: [] };
|
|
1440
|
+
groups.set(squashId, data);
|
|
1441
|
+
}
|
|
1442
|
+
data.contexts.push(context);
|
|
1443
|
+
if (data.contexts.length >= strategy.maxBatchSize) {
|
|
1444
|
+
this.flushGroup(strategyName, squashId, options);
|
|
1445
|
+
return;
|
|
1446
|
+
}
|
|
1447
|
+
if (!this.strategyTimers.get(strategyName) && !this.isStrategyFlushing.get(strategyName)) {
|
|
1448
|
+
this.strategyTimers.set(
|
|
1449
|
+
strategyName,
|
|
1450
|
+
setTimeout(() => this.flushStrategy(strategyName), strategy.intervalMs)
|
|
1451
|
+
);
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
flushGroup(strategyName, squashId, options) {
|
|
1455
|
+
const groups = this.strategyData.get(strategyName);
|
|
1456
|
+
if (!groups) return;
|
|
1457
|
+
const data = groups.get(squashId);
|
|
1458
|
+
if (!data || data.contexts.length === 0) return;
|
|
1459
|
+
const start = performance.now();
|
|
1460
|
+
const merged = options.mergeFunction ? options.mergeFunction(data.contexts[0], ...data.contexts.slice(1)) : merge_default({}, ...data.contexts);
|
|
1461
|
+
groups.delete(squashId);
|
|
1462
|
+
this.emit(data.signal, merged, { ...options, squash: false });
|
|
1463
|
+
const duration = performance.now() - start;
|
|
1464
|
+
if (duration > this.MAX_FLUSH_DURATION_MS) {
|
|
1465
|
+
console.warn(
|
|
1466
|
+
`Squash flush for ${data.signal} in group ${squashId} took ${duration.toFixed(1)}ms`
|
|
1467
|
+
);
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
flushStrategy(strategyName) {
|
|
1471
|
+
this.strategyTimers.set(strategyName, null);
|
|
1472
|
+
this.isStrategyFlushing.set(strategyName, true);
|
|
1473
|
+
const groups = this.strategyData.get(strategyName);
|
|
1474
|
+
if (!groups || groups.size === 0) {
|
|
1475
|
+
this.isStrategyFlushing.set(strategyName, false);
|
|
1476
|
+
return;
|
|
1477
|
+
}
|
|
1478
|
+
const keys = Array.from(groups.keys());
|
|
1479
|
+
for (const squashId of keys) {
|
|
1480
|
+
if (groups.has(squashId)) {
|
|
1481
|
+
this.flushGroup(strategyName, squashId, {});
|
|
1395
1482
|
}
|
|
1396
1483
|
}
|
|
1484
|
+
this.isStrategyFlushing.set(strategyName, false);
|
|
1485
|
+
if (groups.size > 0) {
|
|
1486
|
+
const strategy = this.flushStrategies.get(strategyName);
|
|
1487
|
+
this.strategyTimers.set(
|
|
1488
|
+
strategyName,
|
|
1489
|
+
setTimeout(() => this.flushStrategy(strategyName), strategy.intervalMs)
|
|
1490
|
+
);
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
clearSquashState() {
|
|
1494
|
+
for (const [name, timer] of this.strategyTimers.entries()) {
|
|
1495
|
+
if (timer) clearTimeout(timer);
|
|
1496
|
+
}
|
|
1497
|
+
this.strategyTimers.clear();
|
|
1498
|
+
this.strategyData.clear();
|
|
1499
|
+
this.isStrategyFlushing.clear();
|
|
1397
1500
|
}
|
|
1398
|
-
/**
|
|
1399
|
-
* Schedules a signal to be emitted after a specified delay or at an exact date and time.
|
|
1400
|
-
*
|
|
1401
|
-
* @param {string} signal - The name of the signal to be emitted.
|
|
1402
|
-
* @param {AnyObject} context - The context to be passed along with the signal.
|
|
1403
|
-
* @param options
|
|
1404
|
-
* @return {AbortController} An AbortController instance that can be used to cancel the scheduled signal emission.
|
|
1405
|
-
*/
|
|
1406
1501
|
schedule(signal, context, options = { delayMs: 6e4 }) {
|
|
1407
|
-
let delay = options.delayMs;
|
|
1408
|
-
if (options.exactDateTime
|
|
1502
|
+
let delay = options.delayMs ?? 0;
|
|
1503
|
+
if (options.exactDateTime) {
|
|
1409
1504
|
delay = options.exactDateTime.getTime() - Date.now();
|
|
1410
1505
|
}
|
|
1411
|
-
delay = Math.max(0, delay
|
|
1506
|
+
delay = Math.max(0, delay);
|
|
1507
|
+
const bucketKey = Math.ceil(delay / 100) * 100;
|
|
1508
|
+
let bucket = this.scheduledBuckets.get(bucketKey);
|
|
1509
|
+
if (!bucket) {
|
|
1510
|
+
bucket = [];
|
|
1511
|
+
this.scheduledBuckets.set(bucketKey, bucket);
|
|
1512
|
+
}
|
|
1513
|
+
bucket.push({ signal, context });
|
|
1412
1514
|
const controller = new AbortController();
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
if (!signalController.aborted) tick();
|
|
1417
|
-
}, delay);
|
|
1418
|
-
signalController.addEventListener("abort", () => clearTimeout(timerId));
|
|
1515
|
+
if (!this.scheduleTimer) {
|
|
1516
|
+
this.scheduleTimer = setTimeout(() => this.flushScheduled(), 50);
|
|
1517
|
+
}
|
|
1419
1518
|
return controller;
|
|
1420
1519
|
}
|
|
1520
|
+
flushScheduled() {
|
|
1521
|
+
this.scheduleTimer = null;
|
|
1522
|
+
const now2 = Date.now();
|
|
1523
|
+
const toProcess = [];
|
|
1524
|
+
for (const [bucketKey, items] of this.scheduledBuckets.entries()) {
|
|
1525
|
+
const bucketTime = bucketKey;
|
|
1526
|
+
if (now2 >= bucketTime - 150) {
|
|
1527
|
+
toProcess.push([bucketKey, items]);
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
for (const [key, items] of toProcess) {
|
|
1531
|
+
this.scheduledBuckets.delete(key);
|
|
1532
|
+
for (const item of items) {
|
|
1533
|
+
this.emit(item.signal, item.context);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
if (this.scheduledBuckets.size > 0) {
|
|
1537
|
+
this.scheduleTimer = setTimeout(() => this.flushScheduled(), 50);
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
debounce(signal, context, options = { delayMs: 500 }) {
|
|
1541
|
+
if (this.debouncedEmitters.size > this.MAX_DEBOUNCERS) {
|
|
1542
|
+
console.warn("Max debouncers reached - evicting oldest");
|
|
1543
|
+
const oldestKey = this.debouncedEmitters.keys().next().value;
|
|
1544
|
+
if (oldestKey) {
|
|
1545
|
+
const entry2 = this.debouncedEmitters.get(oldestKey);
|
|
1546
|
+
entry2.debouncedFn.flush();
|
|
1547
|
+
this.debouncedEmitters.delete(oldestKey);
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
const delay = options.delayMs ?? 300;
|
|
1551
|
+
const key = signal;
|
|
1552
|
+
let entry = this.debouncedEmitters.get(key);
|
|
1553
|
+
if (!entry) {
|
|
1554
|
+
const debouncedFn = debounce_default(
|
|
1555
|
+
(ctx) => {
|
|
1556
|
+
this.emit(signal, ctx);
|
|
1557
|
+
entry.idleTimeout = setTimeout(() => {
|
|
1558
|
+
this.debouncedEmitters.delete(key);
|
|
1559
|
+
}, delay * 4);
|
|
1560
|
+
},
|
|
1561
|
+
delay,
|
|
1562
|
+
{ leading: false, trailing: true }
|
|
1563
|
+
);
|
|
1564
|
+
entry = { debouncedFn, idleTimeout: null };
|
|
1565
|
+
this.debouncedEmitters.set(key, entry);
|
|
1566
|
+
}
|
|
1567
|
+
if (entry.idleTimeout) {
|
|
1568
|
+
clearTimeout(entry.idleTimeout);
|
|
1569
|
+
entry.idleTimeout = null;
|
|
1570
|
+
}
|
|
1571
|
+
entry.debouncedFn(context);
|
|
1572
|
+
}
|
|
1573
|
+
// ── Existing throttle, interval, etc. remain unchanged ──────────────
|
|
1574
|
+
throttle(signal, context, options = { delayMs: 1e3 }) {
|
|
1575
|
+
let { groupId, delayMs = 300 } = options;
|
|
1576
|
+
if (!groupId) {
|
|
1577
|
+
groupId = signal;
|
|
1578
|
+
}
|
|
1579
|
+
if (!this.throttleQueues.has(groupId)) {
|
|
1580
|
+
this.throttleQueues.set(groupId, []);
|
|
1581
|
+
}
|
|
1582
|
+
const queue = this.throttleQueues.get(groupId);
|
|
1583
|
+
queue.push([signal, context]);
|
|
1584
|
+
if (!this.throttleEmitters.has(groupId)) {
|
|
1585
|
+
this.throttleEmitters.set(groupId, async () => {
|
|
1586
|
+
while (queue.length > 0) {
|
|
1587
|
+
let batchSize = options.throttleBatch ?? 1;
|
|
1588
|
+
if (batchSize > queue.length) {
|
|
1589
|
+
batchSize = queue.length;
|
|
1590
|
+
}
|
|
1591
|
+
for (let i = 0; i < batchSize; i++) {
|
|
1592
|
+
const [nextSignal, nextContext] = queue.shift();
|
|
1593
|
+
this.emit(nextSignal, nextContext);
|
|
1594
|
+
}
|
|
1595
|
+
await sleep(delayMs);
|
|
1596
|
+
}
|
|
1597
|
+
this.throttleEmitters.delete(groupId);
|
|
1598
|
+
this.throttleQueues.delete(groupId);
|
|
1599
|
+
});
|
|
1600
|
+
this.throttleEmitters.get(groupId)();
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1421
1603
|
/**
|
|
1422
1604
|
* Emits `signal` repeatedly with a fixed interval.
|
|
1423
1605
|
*
|
|
@@ -1464,90 +1646,6 @@ var SignalBroker = class _SignalBroker {
|
|
|
1464
1646
|
}
|
|
1465
1647
|
};
|
|
1466
1648
|
}
|
|
1467
|
-
debounce(signal, context, options = { delayMs: 500 }) {
|
|
1468
|
-
let debouncedEmitter = this.debouncedEmitters.get(signal);
|
|
1469
|
-
if (!debouncedEmitter) {
|
|
1470
|
-
this.debouncedEmitters.set(
|
|
1471
|
-
signal,
|
|
1472
|
-
debounce_default((ctx) => {
|
|
1473
|
-
this.emit(signal, ctx);
|
|
1474
|
-
}, options.delayMs ?? 300)
|
|
1475
|
-
);
|
|
1476
|
-
debouncedEmitter = this.debouncedEmitters.get(signal);
|
|
1477
|
-
}
|
|
1478
|
-
debouncedEmitter(context);
|
|
1479
|
-
}
|
|
1480
|
-
throttle(signal, context, options = { delayMs: 1e3 }) {
|
|
1481
|
-
let { groupId, delayMs = 300 } = options;
|
|
1482
|
-
if (!groupId) {
|
|
1483
|
-
groupId = signal;
|
|
1484
|
-
}
|
|
1485
|
-
if (!this.throttleQueues.has(groupId)) {
|
|
1486
|
-
this.throttleQueues.set(groupId, []);
|
|
1487
|
-
}
|
|
1488
|
-
const queue = this.throttleQueues.get(groupId);
|
|
1489
|
-
queue.push([signal, context]);
|
|
1490
|
-
if (!this.throttleEmitters.has(groupId)) {
|
|
1491
|
-
this.throttleEmitters.set(groupId, async () => {
|
|
1492
|
-
while (queue.length > 0) {
|
|
1493
|
-
let batchSize = options.throttleBatch ?? 1;
|
|
1494
|
-
if (batchSize > queue.length) {
|
|
1495
|
-
batchSize = queue.length;
|
|
1496
|
-
}
|
|
1497
|
-
for (let i = 0; i < batchSize; i++) {
|
|
1498
|
-
const [nextSignal, nextContext] = queue.shift();
|
|
1499
|
-
this.emit(nextSignal, nextContext);
|
|
1500
|
-
}
|
|
1501
|
-
await sleep(delayMs);
|
|
1502
|
-
}
|
|
1503
|
-
this.throttleEmitters.delete(groupId);
|
|
1504
|
-
this.throttleQueues.delete(groupId);
|
|
1505
|
-
});
|
|
1506
|
-
this.throttleEmitters.get(groupId)();
|
|
1507
|
-
}
|
|
1508
|
-
}
|
|
1509
|
-
/**
|
|
1510
|
-
* Aggregates and debounces multiple events with the same identifier to minimize redundant operations.
|
|
1511
|
-
*
|
|
1512
|
-
* @param {string} signal - The identifier for the event being emitted.
|
|
1513
|
-
* @param {AnyObject} context - The context data associated with the event.
|
|
1514
|
-
* @param {Object} [options] - Configuration options for handling the squashed event.
|
|
1515
|
-
* @param {boolean} [options.squash=true] - Whether the event should be squashed.
|
|
1516
|
-
* @param {string|null} [options.squashId=null] - A unique identifier for the squashed group of events. Defaults to the signal if null.
|
|
1517
|
-
* @param {function|null} [options.mergeFunction=null] - A custom merge function that combines old and new contexts. If null, a default merge is used.
|
|
1518
|
-
* @return {void} Does not return a value.
|
|
1519
|
-
*/
|
|
1520
|
-
squash(signal, context, options = { squash: true }) {
|
|
1521
|
-
let { squashId, delayMs = 300 } = options;
|
|
1522
|
-
if (!squashId) {
|
|
1523
|
-
squashId = signal;
|
|
1524
|
-
}
|
|
1525
|
-
if (!this.squashedEmitters.has(squashId)) {
|
|
1526
|
-
this.squashedEmitters.set(
|
|
1527
|
-
squashId,
|
|
1528
|
-
debounce_default(() => {
|
|
1529
|
-
options.squash = false;
|
|
1530
|
-
this.emit(
|
|
1531
|
-
signal,
|
|
1532
|
-
options.mergeFunction ? options.mergeFunction(
|
|
1533
|
-
this.squashedContexts.get(squashId)[0],
|
|
1534
|
-
...this.squashedContexts.get(squashId).slice(1)
|
|
1535
|
-
) : merge_default(
|
|
1536
|
-
this.squashedContexts.get(squashId)[0],
|
|
1537
|
-
...this.squashedContexts.get(squashId).slice(1)
|
|
1538
|
-
),
|
|
1539
|
-
options
|
|
1540
|
-
);
|
|
1541
|
-
this.squashedEmitters.delete(squashId);
|
|
1542
|
-
this.squashedContexts.delete(squashId);
|
|
1543
|
-
}, delayMs ?? 300)
|
|
1544
|
-
);
|
|
1545
|
-
this.squashedContexts.set(squashId, [context]);
|
|
1546
|
-
} else {
|
|
1547
|
-
this.squashedContexts.get(squashId)?.push(context);
|
|
1548
|
-
}
|
|
1549
|
-
this.squashedEmitters.get(squashId)();
|
|
1550
|
-
}
|
|
1551
1649
|
/**
|
|
1552
1650
|
* Emits a signal with the specified context, triggering any associated handlers for that signal.
|
|
1553
1651
|
*
|
|
@@ -1721,6 +1819,34 @@ var SignalBroker = class _SignalBroker {
|
|
|
1721
1819
|
this.emit("meta.signal_broker.added", { signalName: _signal });
|
|
1722
1820
|
}
|
|
1723
1821
|
}
|
|
1822
|
+
/**
|
|
1823
|
+
* Observes a signal with a routine/task.
|
|
1824
|
+
* @param signal The signal (e.g., 'domain.action', 'domain.*' for wildcards).
|
|
1825
|
+
* @param routineOrTask The observer.
|
|
1826
|
+
* @edge Duplicates ignored; supports wildcards for broad listening.
|
|
1827
|
+
*/
|
|
1828
|
+
observe(signal, routineOrTask) {
|
|
1829
|
+
this.addSignal(signal);
|
|
1830
|
+
this.signalObservers.get(signal).tasks.add(routineOrTask);
|
|
1831
|
+
}
|
|
1832
|
+
registerEmittedSignal(signal) {
|
|
1833
|
+
this.emittedSignalsRegistry.add(signal);
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
* Unsubscribes a routine/task from a signal.
|
|
1837
|
+
* @param signal The signal.
|
|
1838
|
+
* @param routineOrTask The observer.
|
|
1839
|
+
* @edge Removes all instances if duplicate; deletes if empty.
|
|
1840
|
+
*/
|
|
1841
|
+
unsubscribe(signal, routineOrTask) {
|
|
1842
|
+
const obs = this.signalObservers.get(signal);
|
|
1843
|
+
if (obs) {
|
|
1844
|
+
obs.tasks.delete(routineOrTask);
|
|
1845
|
+
if (obs.tasks.size === 0) {
|
|
1846
|
+
this.signalObservers.delete(signal);
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1724
1850
|
/**
|
|
1725
1851
|
* Lists all observed signals.
|
|
1726
1852
|
* @returns Array of signals.
|
|
@@ -1735,6 +1861,10 @@ var SignalBroker = class _SignalBroker {
|
|
|
1735
1861
|
this.signalObservers.clear();
|
|
1736
1862
|
this.emittedSignalsRegistry.clear();
|
|
1737
1863
|
}
|
|
1864
|
+
shutdown() {
|
|
1865
|
+
this.clearSquashState();
|
|
1866
|
+
this.reset();
|
|
1867
|
+
}
|
|
1738
1868
|
};
|
|
1739
1869
|
|
|
1740
1870
|
// src/engine/GraphRunner.ts
|
|
@@ -2442,7 +2572,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
|
|
|
2442
2572
|
},
|
|
2443
2573
|
filter: { uuid: this.id }
|
|
2444
2574
|
},
|
|
2445
|
-
{ squash: true, squashId: this.id
|
|
2575
|
+
{ squash: true, squashId: this.id }
|
|
2446
2576
|
);
|
|
2447
2577
|
if (this.graphDone()) {
|
|
2448
2578
|
const context2 = this.context.getFullContext();
|
|
@@ -2464,7 +2594,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
|
|
|
2464
2594
|
},
|
|
2465
2595
|
filter: { uuid: this.routineExecId }
|
|
2466
2596
|
},
|
|
2467
|
-
{ squash: true, squashId: this.routineExecId
|
|
2597
|
+
{ squash: true, squashId: this.routineExecId }
|
|
2468
2598
|
);
|
|
2469
2599
|
}
|
|
2470
2600
|
return end;
|
|
@@ -5268,10 +5398,9 @@ var GraphRunStrategy = class {
|
|
|
5268
5398
|
// src/engine/ThrottleEngine.ts
|
|
5269
5399
|
var ThrottleEngine = class _ThrottleEngine {
|
|
5270
5400
|
constructor() {
|
|
5271
|
-
this.
|
|
5272
|
-
this.
|
|
5273
|
-
this.
|
|
5274
|
-
this.functionIdToPromiseResolve = {};
|
|
5401
|
+
this.tagState = /* @__PURE__ */ new Map();
|
|
5402
|
+
this.nextId = 0;
|
|
5403
|
+
this.pendingResolves = /* @__PURE__ */ new Map();
|
|
5275
5404
|
}
|
|
5276
5405
|
static get instance() {
|
|
5277
5406
|
if (!this.instance_) {
|
|
@@ -5279,11 +5408,24 @@ var ThrottleEngine = class _ThrottleEngine {
|
|
|
5279
5408
|
}
|
|
5280
5409
|
return this.instance_;
|
|
5281
5410
|
}
|
|
5411
|
+
getTagState(tag) {
|
|
5412
|
+
let state = this.tagState.get(tag);
|
|
5413
|
+
if (!state) {
|
|
5414
|
+
state = {
|
|
5415
|
+
queue: [],
|
|
5416
|
+
runningCount: 0,
|
|
5417
|
+
maxConcurrency: 1
|
|
5418
|
+
};
|
|
5419
|
+
this.tagState.set(tag, state);
|
|
5420
|
+
}
|
|
5421
|
+
return state;
|
|
5422
|
+
}
|
|
5282
5423
|
/**
|
|
5283
5424
|
* Set a custom concurrency limit for a specific tag
|
|
5284
5425
|
*/
|
|
5285
5426
|
setConcurrencyLimit(tag, limit) {
|
|
5286
|
-
this.
|
|
5427
|
+
const state = this.getTagState(tag);
|
|
5428
|
+
state.maxConcurrency = limit;
|
|
5287
5429
|
}
|
|
5288
5430
|
/**
|
|
5289
5431
|
* Manages the execution of a function `fn` applied on a specified node `node` with controlled concurrency for a given tag.
|
|
@@ -5295,13 +5437,12 @@ var ThrottleEngine = class _ThrottleEngine {
|
|
|
5295
5437
|
* @return {Promise<GraphNode[]>} A promise resolving to an array of GraphNode objects once the throttled function execution completes.
|
|
5296
5438
|
*/
|
|
5297
5439
|
throttle(fn, node, tag = "default") {
|
|
5298
|
-
|
|
5440
|
+
const state = this.getTagState(tag);
|
|
5441
|
+
const id = this.nextId++;
|
|
5299
5442
|
const functionPromise = new Promise((resolve) => {
|
|
5300
|
-
this.
|
|
5443
|
+
this.pendingResolves.set(id, resolve);
|
|
5301
5444
|
});
|
|
5302
|
-
|
|
5303
|
-
this.queues[tag].push([fn, node]);
|
|
5304
|
-
(_b = this.maxConcurrencyPerTag)[tag] ?? (_b[tag] = 1);
|
|
5445
|
+
state.queue.push([fn, node, id]);
|
|
5305
5446
|
this.processQueue(tag);
|
|
5306
5447
|
return functionPromise;
|
|
5307
5448
|
}
|
|
@@ -5312,34 +5453,44 @@ var ThrottleEngine = class _ThrottleEngine {
|
|
|
5312
5453
|
* @return {void} Does not return a value; it processes tasks asynchronously and manages state internally.
|
|
5313
5454
|
*/
|
|
5314
5455
|
processQueue(tag) {
|
|
5315
|
-
const
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5456
|
+
const tagData = this.tagState.get(tag);
|
|
5457
|
+
if (!tagData) return;
|
|
5458
|
+
const maxAllowed = tagData.maxConcurrency;
|
|
5459
|
+
const processNext = () => {
|
|
5460
|
+
while (tagData.queue.length > 0 && tagData.runningCount < maxAllowed) {
|
|
5461
|
+
tagData.runningCount++;
|
|
5462
|
+
const item = tagData.queue.shift();
|
|
5463
|
+
this.process(item).catch(() => []).finally(() => {
|
|
5464
|
+
tagData.runningCount--;
|
|
5465
|
+
processNext();
|
|
5466
|
+
});
|
|
5467
|
+
}
|
|
5468
|
+
if (tagData.queue.length === 0 && tagData.runningCount === 0) {
|
|
5469
|
+
}
|
|
5470
|
+
};
|
|
5471
|
+
processNext();
|
|
5328
5472
|
}
|
|
5329
5473
|
/**
|
|
5330
5474
|
* Processes a given item consisting of a function and a graph node.
|
|
5331
5475
|
*
|
|
5332
|
-
* @param {Array} item - An array where the first element is a processing function
|
|
5476
|
+
* @param {Array} item - An array where the first element is a processing function, the second element is a graph node, and the third is the unique ID.
|
|
5333
5477
|
* @param {Function} item[0] - The function to process the graph node.
|
|
5334
5478
|
* @param {GraphNode} item[1] - The graph node to be processed.
|
|
5479
|
+
* @param {number} item[2] - The unique ID for promise resolution.
|
|
5335
5480
|
* @return {Promise<void>} A promise that resolves when the processing and cleanup are complete.
|
|
5336
5481
|
*/
|
|
5337
5482
|
async process(item) {
|
|
5338
5483
|
const fn = item[0];
|
|
5339
5484
|
const node = item[1];
|
|
5340
|
-
const
|
|
5341
|
-
|
|
5342
|
-
|
|
5485
|
+
const id = item[2];
|
|
5486
|
+
try {
|
|
5487
|
+
const context = await fn(node);
|
|
5488
|
+
this.pendingResolves.get(id)?.(context);
|
|
5489
|
+
} catch (e) {
|
|
5490
|
+
this.pendingResolves.get(id)?.([]);
|
|
5491
|
+
} finally {
|
|
5492
|
+
this.pendingResolves.delete(id);
|
|
5493
|
+
}
|
|
5343
5494
|
}
|
|
5344
5495
|
};
|
|
5345
5496
|
|
|
@@ -6432,17 +6583,4 @@ var index_default = Cadenza;
|
|
|
6432
6583
|
SignalEmitter,
|
|
6433
6584
|
Task
|
|
6434
6585
|
});
|
|
6435
|
-
/*! Bundled license information:
|
|
6436
|
-
|
|
6437
|
-
lodash-es/lodash.js:
|
|
6438
|
-
(**
|
|
6439
|
-
* @license
|
|
6440
|
-
* Lodash (Custom Build) <https://lodash.com/>
|
|
6441
|
-
* Build: `lodash modularize exports="es" -o ./`
|
|
6442
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
6443
|
-
* Released under MIT license <https://lodash.com/license>
|
|
6444
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
6445
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
6446
|
-
*)
|
|
6447
|
-
*/
|
|
6448
6586
|
//# sourceMappingURL=index.js.map
|