@dereekb/util 13.36.0 → 13.37.0
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/eslint/package.json +2 -2
- package/fetch/package.json +2 -2
- package/index.cjs.js +508 -277
- package/index.esm.js +504 -278
- package/oidc/package.json +2 -2
- package/package.json +1 -1
- package/src/lib/object/index.d.ts +1 -0
- package/src/lib/object/object.copy.d.ts +139 -0
- package/src/lib/object/object.d.ts +17 -0
- package/test/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
var extraSet = require('extra-set');
|
|
4
4
|
var makeError = require('make-error');
|
|
5
5
|
|
|
6
|
-
function _array_like_to_array$
|
|
6
|
+
function _array_like_to_array$D(arr, len) {
|
|
7
7
|
if (len == null || len > arr.length) len = arr.length;
|
|
8
8
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9
9
|
return arr2;
|
|
10
10
|
}
|
|
11
11
|
function _array_without_holes$n(arr) {
|
|
12
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
12
|
+
if (Array.isArray(arr)) return _array_like_to_array$D(arr);
|
|
13
13
|
}
|
|
14
14
|
function _iterable_to_array$n(iter) {
|
|
15
15
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -18,19 +18,19 @@ function _non_iterable_spread$n() {
|
|
|
18
18
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19
19
|
}
|
|
20
20
|
function _to_consumable_array$n(arr) {
|
|
21
|
-
return _array_without_holes$n(arr) || _iterable_to_array$n(arr) || _unsupported_iterable_to_array$
|
|
21
|
+
return _array_without_holes$n(arr) || _iterable_to_array$n(arr) || _unsupported_iterable_to_array$D(arr) || _non_iterable_spread$n();
|
|
22
22
|
}
|
|
23
|
-
function _type_of$
|
|
23
|
+
function _type_of$o(obj) {
|
|
24
24
|
"@swc/helpers - typeof";
|
|
25
25
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
26
26
|
}
|
|
27
|
-
function _unsupported_iterable_to_array$
|
|
27
|
+
function _unsupported_iterable_to_array$D(o, minLen) {
|
|
28
28
|
if (!o) return;
|
|
29
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
29
|
+
if (typeof o === "string") return _array_like_to_array$D(o, minLen);
|
|
30
30
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
31
31
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
32
32
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
33
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
33
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$D(o, minLen);
|
|
34
34
|
}
|
|
35
35
|
// MARK: Functions
|
|
36
36
|
/**
|
|
@@ -126,7 +126,7 @@ function _unsupported_iterable_to_array$C(o, minLen) {
|
|
|
126
126
|
var result;
|
|
127
127
|
if (typeof values === 'string') {
|
|
128
128
|
result = treatStringAsIterable;
|
|
129
|
-
} else if (values != null && (typeof values === "undefined" ? "undefined" : _type_of$
|
|
129
|
+
} else if (values != null && (typeof values === "undefined" ? "undefined" : _type_of$o(values)) === 'object' && Symbol.iterator in values) {
|
|
130
130
|
result = true;
|
|
131
131
|
} else {
|
|
132
132
|
result = false;
|
|
@@ -413,13 +413,13 @@ function _unsupported_iterable_to_array$C(o, minLen) {
|
|
|
413
413
|
return result;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
function _array_like_to_array$
|
|
416
|
+
function _array_like_to_array$C(arr, len) {
|
|
417
417
|
if (len == null || len > arr.length) len = arr.length;
|
|
418
418
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
419
419
|
return arr2;
|
|
420
420
|
}
|
|
421
421
|
function _array_without_holes$m(arr) {
|
|
422
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
422
|
+
if (Array.isArray(arr)) return _array_like_to_array$C(arr);
|
|
423
423
|
}
|
|
424
424
|
function _iterable_to_array$m(iter) {
|
|
425
425
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -428,15 +428,15 @@ function _non_iterable_spread$m() {
|
|
|
428
428
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
429
429
|
}
|
|
430
430
|
function _to_consumable_array$m(arr) {
|
|
431
|
-
return _array_without_holes$m(arr) || _iterable_to_array$m(arr) || _unsupported_iterable_to_array$
|
|
431
|
+
return _array_without_holes$m(arr) || _iterable_to_array$m(arr) || _unsupported_iterable_to_array$C(arr) || _non_iterable_spread$m();
|
|
432
432
|
}
|
|
433
|
-
function _unsupported_iterable_to_array$
|
|
433
|
+
function _unsupported_iterable_to_array$C(o, minLen) {
|
|
434
434
|
if (!o) return;
|
|
435
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
435
|
+
if (typeof o === "string") return _array_like_to_array$C(o, minLen);
|
|
436
436
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
437
437
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
438
438
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
439
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
439
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$C(o, minLen);
|
|
440
440
|
}
|
|
441
441
|
// MARK: Functions
|
|
442
442
|
/**
|
|
@@ -887,13 +887,13 @@ function _unsupported_iterable_to_array$B(o, minLen) {
|
|
|
887
887
|
return readKeysSetFunction(readKey)(values);
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
function _array_like_to_array$
|
|
890
|
+
function _array_like_to_array$B(arr, len) {
|
|
891
891
|
if (len == null || len > arr.length) len = arr.length;
|
|
892
892
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
893
893
|
return arr2;
|
|
894
894
|
}
|
|
895
895
|
function _array_without_holes$l(arr) {
|
|
896
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
896
|
+
if (Array.isArray(arr)) return _array_like_to_array$B(arr);
|
|
897
897
|
}
|
|
898
898
|
function _iterable_to_array$l(iter) {
|
|
899
899
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -902,15 +902,15 @@ function _non_iterable_spread$l() {
|
|
|
902
902
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
903
903
|
}
|
|
904
904
|
function _to_consumable_array$l(arr) {
|
|
905
|
-
return _array_without_holes$l(arr) || _iterable_to_array$l(arr) || _unsupported_iterable_to_array$
|
|
905
|
+
return _array_without_holes$l(arr) || _iterable_to_array$l(arr) || _unsupported_iterable_to_array$B(arr) || _non_iterable_spread$l();
|
|
906
906
|
}
|
|
907
|
-
function _unsupported_iterable_to_array$
|
|
907
|
+
function _unsupported_iterable_to_array$B(o, minLen) {
|
|
908
908
|
if (!o) return;
|
|
909
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
909
|
+
if (typeof o === "string") return _array_like_to_array$B(o, minLen);
|
|
910
910
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
911
911
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
912
912
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
913
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
913
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$B(o, minLen);
|
|
914
914
|
}
|
|
915
915
|
/**
|
|
916
916
|
* Converts an {@link IterableOrValue} into a Set. Strings are treated as single values rather than character iterables.
|
|
@@ -1444,13 +1444,13 @@ function _unsupported_iterable_to_array$A(o, minLen) {
|
|
|
1444
1444
|
return a && b ? a.size === b.size && setContainsAllValues(a, b, true) : a == b;
|
|
1445
1445
|
}
|
|
1446
1446
|
|
|
1447
|
-
function _array_like_to_array$
|
|
1447
|
+
function _array_like_to_array$A(arr, len) {
|
|
1448
1448
|
if (len == null || len > arr.length) len = arr.length;
|
|
1449
1449
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1450
1450
|
return arr2;
|
|
1451
1451
|
}
|
|
1452
1452
|
function _array_without_holes$k(arr) {
|
|
1453
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1453
|
+
if (Array.isArray(arr)) return _array_like_to_array$A(arr);
|
|
1454
1454
|
}
|
|
1455
1455
|
function _iterable_to_array$k(iter) {
|
|
1456
1456
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -1459,15 +1459,15 @@ function _non_iterable_spread$k() {
|
|
|
1459
1459
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1460
1460
|
}
|
|
1461
1461
|
function _to_consumable_array$k(arr) {
|
|
1462
|
-
return _array_without_holes$k(arr) || _iterable_to_array$k(arr) || _unsupported_iterable_to_array$
|
|
1462
|
+
return _array_without_holes$k(arr) || _iterable_to_array$k(arr) || _unsupported_iterable_to_array$A(arr) || _non_iterable_spread$k();
|
|
1463
1463
|
}
|
|
1464
|
-
function _unsupported_iterable_to_array$
|
|
1464
|
+
function _unsupported_iterable_to_array$A(o, minLen) {
|
|
1465
1465
|
if (!o) return;
|
|
1466
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1466
|
+
if (typeof o === "string") return _array_like_to_array$A(o, minLen);
|
|
1467
1467
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1468
1468
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1469
1469
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1470
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1470
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$A(o, minLen);
|
|
1471
1471
|
}
|
|
1472
1472
|
/**
|
|
1473
1473
|
* Inverts the output of an arbitrary boolean-returning function.
|
|
@@ -1566,6 +1566,10 @@ function _object_spread$g(target) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
return target;
|
|
1568
1568
|
}
|
|
1569
|
+
function _type_of$n(obj) {
|
|
1570
|
+
"@swc/helpers - typeof";
|
|
1571
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1572
|
+
}
|
|
1569
1573
|
/**
|
|
1570
1574
|
* Checks whether the object has no own enumerable keys.
|
|
1571
1575
|
*
|
|
@@ -1616,6 +1620,29 @@ function objectHasKeys(obj, keys, mode) {
|
|
|
1616
1620
|
});
|
|
1617
1621
|
return object;
|
|
1618
1622
|
}
|
|
1623
|
+
/**
|
|
1624
|
+
* Checks whether the value is a "plain" object, meaning an object literal or an object created with a
|
|
1625
|
+
* null prototype.
|
|
1626
|
+
*
|
|
1627
|
+
* Arrays, `Date`, `RegExp`, `Map`, `Set`, and class instances are NOT plain objects. This is the check
|
|
1628
|
+
* to use before recursing into a value's keys: a class instance's keys are an implementation detail and
|
|
1629
|
+
* copying them key-by-key produces a lifeless imitation of the original (a `Date` becomes `{}`).
|
|
1630
|
+
*
|
|
1631
|
+
* @param value - The value to check.
|
|
1632
|
+
* @returns `true` if the value is an object literal or has a null prototype.
|
|
1633
|
+
*
|
|
1634
|
+
* @dbxUtil
|
|
1635
|
+
* @dbxUtilCategory object
|
|
1636
|
+
* @dbxUtilTags object, pojo, plain, literal, type-guard, check
|
|
1637
|
+
* @dbxUtilRelated object-has-no-keys, copy-value-deep
|
|
1638
|
+
*/ function isPlainObject(value) {
|
|
1639
|
+
var result = false;
|
|
1640
|
+
if (value != null && (typeof value === "undefined" ? "undefined" : _type_of$n(value)) === 'object') {
|
|
1641
|
+
var proto = Object.getPrototypeOf(value);
|
|
1642
|
+
result = proto === Object.prototype || proto === null;
|
|
1643
|
+
}
|
|
1644
|
+
return result;
|
|
1645
|
+
}
|
|
1619
1646
|
/**
|
|
1620
1647
|
* Creates a shallow copy of an object using the spread operator.
|
|
1621
1648
|
*
|
|
@@ -2111,13 +2138,13 @@ function chainMapFunction(a, b) {
|
|
|
2111
2138
|
} : a;
|
|
2112
2139
|
}
|
|
2113
2140
|
|
|
2114
|
-
function _array_like_to_array$
|
|
2141
|
+
function _array_like_to_array$z(arr, len) {
|
|
2115
2142
|
if (len == null || len > arr.length) len = arr.length;
|
|
2116
2143
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2117
2144
|
return arr2;
|
|
2118
2145
|
}
|
|
2119
2146
|
function _array_without_holes$j(arr) {
|
|
2120
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2147
|
+
if (Array.isArray(arr)) return _array_like_to_array$z(arr);
|
|
2121
2148
|
}
|
|
2122
2149
|
function _iterable_to_array$j(iter) {
|
|
2123
2150
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -2126,15 +2153,15 @@ function _non_iterable_spread$j() {
|
|
|
2126
2153
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2127
2154
|
}
|
|
2128
2155
|
function _to_consumable_array$j(arr) {
|
|
2129
|
-
return _array_without_holes$j(arr) || _iterable_to_array$j(arr) || _unsupported_iterable_to_array$
|
|
2156
|
+
return _array_without_holes$j(arr) || _iterable_to_array$j(arr) || _unsupported_iterable_to_array$z(arr) || _non_iterable_spread$j();
|
|
2130
2157
|
}
|
|
2131
|
-
function _unsupported_iterable_to_array$
|
|
2158
|
+
function _unsupported_iterable_to_array$z(o, minLen) {
|
|
2132
2159
|
if (!o) return;
|
|
2133
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2160
|
+
if (typeof o === "string") return _array_like_to_array$z(o, minLen);
|
|
2134
2161
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2135
2162
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2136
2163
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2137
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2164
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$z(o, minLen);
|
|
2138
2165
|
}
|
|
2139
2166
|
/**
|
|
2140
2167
|
* Concatenates multiple arrays and returns only unique values.
|
|
@@ -2593,13 +2620,13 @@ function readModelKey(input) {
|
|
|
2593
2620
|
}
|
|
2594
2621
|
;
|
|
2595
2622
|
|
|
2596
|
-
function _array_like_to_array$
|
|
2623
|
+
function _array_like_to_array$y(arr, len) {
|
|
2597
2624
|
if (len == null || len > arr.length) len = arr.length;
|
|
2598
2625
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2599
2626
|
return arr2;
|
|
2600
2627
|
}
|
|
2601
2628
|
function _array_without_holes$i(arr) {
|
|
2602
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2629
|
+
if (Array.isArray(arr)) return _array_like_to_array$y(arr);
|
|
2603
2630
|
}
|
|
2604
2631
|
function _iterable_to_array$i(iter) {
|
|
2605
2632
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -2608,15 +2635,15 @@ function _non_iterable_spread$i() {
|
|
|
2608
2635
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2609
2636
|
}
|
|
2610
2637
|
function _to_consumable_array$i(arr) {
|
|
2611
|
-
return _array_without_holes$i(arr) || _iterable_to_array$i(arr) || _unsupported_iterable_to_array$
|
|
2638
|
+
return _array_without_holes$i(arr) || _iterable_to_array$i(arr) || _unsupported_iterable_to_array$y(arr) || _non_iterable_spread$i();
|
|
2612
2639
|
}
|
|
2613
|
-
function _unsupported_iterable_to_array$
|
|
2640
|
+
function _unsupported_iterable_to_array$y(o, minLen) {
|
|
2614
2641
|
if (!o) return;
|
|
2615
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2642
|
+
if (typeof o === "string") return _array_like_to_array$y(o, minLen);
|
|
2616
2643
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2617
2644
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2618
2645
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2619
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2646
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$y(o, minLen);
|
|
2620
2647
|
}
|
|
2621
2648
|
/**
|
|
2622
2649
|
* Wraps a key reading function to ensure that empty string keys are not used in boolean key arrays.
|
|
@@ -2723,13 +2750,13 @@ function _unsupported_iterable_to_array$x(o, minLen) {
|
|
|
2723
2750
|
return x || undefined;
|
|
2724
2751
|
});
|
|
2725
2752
|
|
|
2726
|
-
function _array_like_to_array$
|
|
2753
|
+
function _array_like_to_array$x(arr, len) {
|
|
2727
2754
|
if (len == null || len > arr.length) len = arr.length;
|
|
2728
2755
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2729
2756
|
return arr2;
|
|
2730
2757
|
}
|
|
2731
2758
|
function _array_without_holes$h(arr) {
|
|
2732
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2759
|
+
if (Array.isArray(arr)) return _array_like_to_array$x(arr);
|
|
2733
2760
|
}
|
|
2734
2761
|
function _class_call_check$b(instance, Constructor) {
|
|
2735
2762
|
if (!(instance instanceof Constructor)) {
|
|
@@ -2769,15 +2796,15 @@ function _non_iterable_spread$h() {
|
|
|
2769
2796
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2770
2797
|
}
|
|
2771
2798
|
function _to_consumable_array$h(arr) {
|
|
2772
|
-
return _array_without_holes$h(arr) || _iterable_to_array$h(arr) || _unsupported_iterable_to_array$
|
|
2799
|
+
return _array_without_holes$h(arr) || _iterable_to_array$h(arr) || _unsupported_iterable_to_array$x(arr) || _non_iterable_spread$h();
|
|
2773
2800
|
}
|
|
2774
|
-
function _unsupported_iterable_to_array$
|
|
2801
|
+
function _unsupported_iterable_to_array$x(o, minLen) {
|
|
2775
2802
|
if (!o) return;
|
|
2776
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2803
|
+
if (typeof o === "string") return _array_like_to_array$x(o, minLen);
|
|
2777
2804
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2778
2805
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2779
2806
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2780
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2807
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$x(o, minLen);
|
|
2781
2808
|
}
|
|
2782
2809
|
/**
|
|
2783
2810
|
* Set that is implemented internally using a Map, and input values have their keys read.
|
|
@@ -2973,13 +3000,13 @@ function _unsupported_iterable_to_array$w(o, minLen) {
|
|
|
2973
3000
|
}
|
|
2974
3001
|
();
|
|
2975
3002
|
|
|
2976
|
-
function _array_like_to_array$
|
|
3003
|
+
function _array_like_to_array$w(arr, len) {
|
|
2977
3004
|
if (len == null || len > arr.length) len = arr.length;
|
|
2978
3005
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2979
3006
|
return arr2;
|
|
2980
3007
|
}
|
|
2981
3008
|
function _array_without_holes$g(arr) {
|
|
2982
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3009
|
+
if (Array.isArray(arr)) return _array_like_to_array$w(arr);
|
|
2983
3010
|
}
|
|
2984
3011
|
function _iterable_to_array$g(iter) {
|
|
2985
3012
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -2988,15 +3015,15 @@ function _non_iterable_spread$g() {
|
|
|
2988
3015
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2989
3016
|
}
|
|
2990
3017
|
function _to_consumable_array$g(arr) {
|
|
2991
|
-
return _array_without_holes$g(arr) || _iterable_to_array$g(arr) || _unsupported_iterable_to_array$
|
|
3018
|
+
return _array_without_holes$g(arr) || _iterable_to_array$g(arr) || _unsupported_iterable_to_array$w(arr) || _non_iterable_spread$g();
|
|
2992
3019
|
}
|
|
2993
|
-
function _unsupported_iterable_to_array$
|
|
3020
|
+
function _unsupported_iterable_to_array$w(o, minLen) {
|
|
2994
3021
|
if (!o) return;
|
|
2995
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3022
|
+
if (typeof o === "string") return _array_like_to_array$w(o, minLen);
|
|
2996
3023
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2997
3024
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2998
3025
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2999
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3026
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$w(o, minLen);
|
|
3000
3027
|
}
|
|
3001
3028
|
var SORT_VALUE_LESS_THAN = -1;
|
|
3002
3029
|
var SORT_VALUE_GREATER_THAN = 1;
|
|
@@ -3150,21 +3177,21 @@ function reverseCompareFn(compareFn) {
|
|
|
3150
3177
|
};
|
|
3151
3178
|
}
|
|
3152
3179
|
|
|
3153
|
-
function _array_like_to_array$
|
|
3180
|
+
function _array_like_to_array$v(arr, len) {
|
|
3154
3181
|
if (len == null || len > arr.length) len = arr.length;
|
|
3155
3182
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3156
3183
|
return arr2;
|
|
3157
3184
|
}
|
|
3158
|
-
function _array_with_holes$
|
|
3185
|
+
function _array_with_holes$n(arr) {
|
|
3159
3186
|
if (Array.isArray(arr)) return arr;
|
|
3160
3187
|
}
|
|
3161
3188
|
function _array_without_holes$f(arr) {
|
|
3162
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3189
|
+
if (Array.isArray(arr)) return _array_like_to_array$v(arr);
|
|
3163
3190
|
}
|
|
3164
3191
|
function _iterable_to_array$f(iter) {
|
|
3165
3192
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3166
3193
|
}
|
|
3167
|
-
function _iterable_to_array_limit$
|
|
3194
|
+
function _iterable_to_array_limit$n(arr, i) {
|
|
3168
3195
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3169
3196
|
if (_i == null) return;
|
|
3170
3197
|
var _arr = [];
|
|
@@ -3188,25 +3215,25 @@ function _iterable_to_array_limit$m(arr, i) {
|
|
|
3188
3215
|
}
|
|
3189
3216
|
return _arr;
|
|
3190
3217
|
}
|
|
3191
|
-
function _non_iterable_rest$
|
|
3218
|
+
function _non_iterable_rest$n() {
|
|
3192
3219
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3193
3220
|
}
|
|
3194
3221
|
function _non_iterable_spread$f() {
|
|
3195
3222
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3196
3223
|
}
|
|
3197
|
-
function _sliced_to_array$
|
|
3198
|
-
return _array_with_holes$
|
|
3224
|
+
function _sliced_to_array$n(arr, i) {
|
|
3225
|
+
return _array_with_holes$n(arr) || _iterable_to_array_limit$n(arr, i) || _unsupported_iterable_to_array$v(arr, i) || _non_iterable_rest$n();
|
|
3199
3226
|
}
|
|
3200
3227
|
function _to_consumable_array$f(arr) {
|
|
3201
|
-
return _array_without_holes$f(arr) || _iterable_to_array$f(arr) || _unsupported_iterable_to_array$
|
|
3228
|
+
return _array_without_holes$f(arr) || _iterable_to_array$f(arr) || _unsupported_iterable_to_array$v(arr) || _non_iterable_spread$f();
|
|
3202
3229
|
}
|
|
3203
|
-
function _unsupported_iterable_to_array$
|
|
3230
|
+
function _unsupported_iterable_to_array$v(o, minLen) {
|
|
3204
3231
|
if (!o) return;
|
|
3205
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3232
|
+
if (typeof o === "string") return _array_like_to_array$v(o, minLen);
|
|
3206
3233
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3207
3234
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3208
3235
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3209
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3236
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$v(o, minLen);
|
|
3210
3237
|
}
|
|
3211
3238
|
/**
|
|
3212
3239
|
* Splits the input array into batches of a maximum size. Each batch carries its zero-based index as `.i`.
|
|
@@ -3366,7 +3393,7 @@ function _unsupported_iterable_to_array$u(o, minLen) {
|
|
|
3366
3393
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
3367
3394
|
try {
|
|
3368
3395
|
for(var _iterator = pairs.pairs[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3369
|
-
var _step_value = _sliced_to_array$
|
|
3396
|
+
var _step_value = _sliced_to_array$n(_step.value, 2), aa = _step_value[0], bb = _step_value[1];
|
|
3370
3397
|
// If any item is not the same, break.
|
|
3371
3398
|
if (!isEqual(aa, bb)) {
|
|
3372
3399
|
areDifferent = true;
|
|
@@ -3480,15 +3507,15 @@ function makeValuesGroupMap(values, groupKeyFn) {
|
|
|
3480
3507
|
return map;
|
|
3481
3508
|
}
|
|
3482
3509
|
|
|
3483
|
-
function _array_like_to_array$
|
|
3510
|
+
function _array_like_to_array$u(arr, len) {
|
|
3484
3511
|
if (len == null || len > arr.length) len = arr.length;
|
|
3485
3512
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3486
3513
|
return arr2;
|
|
3487
3514
|
}
|
|
3488
|
-
function _array_with_holes$
|
|
3515
|
+
function _array_with_holes$m(arr) {
|
|
3489
3516
|
if (Array.isArray(arr)) return arr;
|
|
3490
3517
|
}
|
|
3491
|
-
function _iterable_to_array_limit$
|
|
3518
|
+
function _iterable_to_array_limit$m(arr, i) {
|
|
3492
3519
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3493
3520
|
if (_i == null) return;
|
|
3494
3521
|
var _arr = [];
|
|
@@ -3512,19 +3539,19 @@ function _iterable_to_array_limit$l(arr, i) {
|
|
|
3512
3539
|
}
|
|
3513
3540
|
return _arr;
|
|
3514
3541
|
}
|
|
3515
|
-
function _non_iterable_rest$
|
|
3542
|
+
function _non_iterable_rest$m() {
|
|
3516
3543
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3517
3544
|
}
|
|
3518
|
-
function _sliced_to_array$
|
|
3519
|
-
return _array_with_holes$
|
|
3545
|
+
function _sliced_to_array$m(arr, i) {
|
|
3546
|
+
return _array_with_holes$m(arr) || _iterable_to_array_limit$m(arr, i) || _unsupported_iterable_to_array$u(arr, i) || _non_iterable_rest$m();
|
|
3520
3547
|
}
|
|
3521
|
-
function _unsupported_iterable_to_array$
|
|
3548
|
+
function _unsupported_iterable_to_array$u(o, minLen) {
|
|
3522
3549
|
if (!o) return;
|
|
3523
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3550
|
+
if (typeof o === "string") return _array_like_to_array$u(o, minLen);
|
|
3524
3551
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3525
3552
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3526
3553
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3527
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3554
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$u(o, minLen);
|
|
3528
3555
|
}
|
|
3529
3556
|
/**
|
|
3530
3557
|
* Combines multiple Maps into a single Map. Later maps override earlier values for the same key.
|
|
@@ -3580,7 +3607,7 @@ function _unsupported_iterable_to_array$t(o, minLen) {
|
|
|
3580
3607
|
*/ function expandArrayValueTuples(values) {
|
|
3581
3608
|
var tuples = [];
|
|
3582
3609
|
values.forEach(function(param) {
|
|
3583
|
-
var _param = _sliced_to_array$
|
|
3610
|
+
var _param = _sliced_to_array$m(param, 2), key = _param[0], _$values = _param[1];
|
|
3584
3611
|
useIterableOrValue(_$values, function(value) {
|
|
3585
3612
|
tuples.push([
|
|
3586
3613
|
key,
|
|
@@ -7556,15 +7583,15 @@ function _object_spread$f(target) {
|
|
|
7556
7583
|
* @returns The inverted filter function, or the original if invert is false
|
|
7557
7584
|
*/ var invertFilter = invertBooleanReturnFunction;
|
|
7558
7585
|
|
|
7559
|
-
function _array_like_to_array$
|
|
7586
|
+
function _array_like_to_array$t(arr, len) {
|
|
7560
7587
|
if (len == null || len > arr.length) len = arr.length;
|
|
7561
7588
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7562
7589
|
return arr2;
|
|
7563
7590
|
}
|
|
7564
|
-
function _array_with_holes$
|
|
7591
|
+
function _array_with_holes$l(arr) {
|
|
7565
7592
|
if (Array.isArray(arr)) return arr;
|
|
7566
7593
|
}
|
|
7567
|
-
function _iterable_to_array_limit$
|
|
7594
|
+
function _iterable_to_array_limit$l(arr, i) {
|
|
7568
7595
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7569
7596
|
if (_i == null) return;
|
|
7570
7597
|
var _arr = [];
|
|
@@ -7588,23 +7615,23 @@ function _iterable_to_array_limit$k(arr, i) {
|
|
|
7588
7615
|
}
|
|
7589
7616
|
return _arr;
|
|
7590
7617
|
}
|
|
7591
|
-
function _non_iterable_rest$
|
|
7618
|
+
function _non_iterable_rest$l() {
|
|
7592
7619
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7593
7620
|
}
|
|
7594
|
-
function _sliced_to_array$
|
|
7595
|
-
return _array_with_holes$
|
|
7621
|
+
function _sliced_to_array$l(arr, i) {
|
|
7622
|
+
return _array_with_holes$l(arr) || _iterable_to_array_limit$l(arr, i) || _unsupported_iterable_to_array$t(arr, i) || _non_iterable_rest$l();
|
|
7596
7623
|
}
|
|
7597
7624
|
function _type_of$g(obj) {
|
|
7598
7625
|
"@swc/helpers - typeof";
|
|
7599
7626
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7600
7627
|
}
|
|
7601
|
-
function _unsupported_iterable_to_array$
|
|
7628
|
+
function _unsupported_iterable_to_array$t(o, minLen) {
|
|
7602
7629
|
if (!o) return;
|
|
7603
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7630
|
+
if (typeof o === "string") return _array_like_to_array$t(o, minLen);
|
|
7604
7631
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7605
7632
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7606
7633
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7607
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7634
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$t(o, minLen);
|
|
7608
7635
|
}
|
|
7609
7636
|
/**
|
|
7610
7637
|
* Iterates over filtered key/value tuples of an object and invokes a callback for each.
|
|
@@ -7766,43 +7793,43 @@ function _unsupported_iterable_to_array$s(o, minLen) {
|
|
|
7766
7793
|
switch(type){
|
|
7767
7794
|
case exports.KeyValueTypleValueFilter.UNDEFINED:
|
|
7768
7795
|
filterFn = function filterFn(param) {
|
|
7769
|
-
var _param = _sliced_to_array$
|
|
7796
|
+
var _param = _sliced_to_array$l(param, 2), x = _param[1];
|
|
7770
7797
|
return x !== undefined;
|
|
7771
7798
|
};
|
|
7772
7799
|
break;
|
|
7773
7800
|
case exports.KeyValueTypleValueFilter.NULL:
|
|
7774
7801
|
filterFn = function filterFn(param) {
|
|
7775
|
-
var _param = _sliced_to_array$
|
|
7802
|
+
var _param = _sliced_to_array$l(param, 2), x = _param[1];
|
|
7776
7803
|
return x != null;
|
|
7777
7804
|
};
|
|
7778
7805
|
break;
|
|
7779
7806
|
case exports.KeyValueTypleValueFilter.FALSY:
|
|
7780
7807
|
filterFn = function filterFn(param) {
|
|
7781
|
-
var _param = _sliced_to_array$
|
|
7808
|
+
var _param = _sliced_to_array$l(param, 2), x = _param[1];
|
|
7782
7809
|
return Boolean(x);
|
|
7783
7810
|
};
|
|
7784
7811
|
break;
|
|
7785
7812
|
case exports.KeyValueTypleValueFilter.EMPTY:
|
|
7786
7813
|
filterFn = function filterFn(param) {
|
|
7787
|
-
var _param = _sliced_to_array$
|
|
7814
|
+
var _param = _sliced_to_array$l(param, 2), x = _param[1];
|
|
7788
7815
|
return hasValueOrNotEmpty(x);
|
|
7789
7816
|
};
|
|
7790
7817
|
break;
|
|
7791
7818
|
case exports.KeyValueTypleValueFilter.EMPTY_STRICT:
|
|
7792
7819
|
filterFn = function filterFn(param) {
|
|
7793
|
-
var _param = _sliced_to_array$
|
|
7820
|
+
var _param = _sliced_to_array$l(param, 2), x = _param[1];
|
|
7794
7821
|
return hasValueOrNotEmptyObject(x);
|
|
7795
7822
|
};
|
|
7796
7823
|
break;
|
|
7797
7824
|
case exports.KeyValueTypleValueFilter.FALSY_AND_EMPTY:
|
|
7798
7825
|
filterFn = function filterFn(param) {
|
|
7799
|
-
var _param = _sliced_to_array$
|
|
7826
|
+
var _param = _sliced_to_array$l(param, 2), x = _param[1];
|
|
7800
7827
|
return Boolean(x) && hasValueOrNotEmpty(x);
|
|
7801
7828
|
};
|
|
7802
7829
|
break;
|
|
7803
7830
|
case exports.KeyValueTypleValueFilter.FALSY_AND_EMPTY_STRICT:
|
|
7804
7831
|
filterFn = function filterFn(param) {
|
|
7805
|
-
var _param = _sliced_to_array$
|
|
7832
|
+
var _param = _sliced_to_array$l(param, 2), x = _param[1];
|
|
7806
7833
|
return Boolean(x) && hasValueOrNotEmptyObject(x);
|
|
7807
7834
|
};
|
|
7808
7835
|
break;
|
|
@@ -7879,12 +7906,12 @@ function cachedGetter(factory) {
|
|
|
7879
7906
|
return result;
|
|
7880
7907
|
}
|
|
7881
7908
|
|
|
7882
|
-
function _array_like_to_array$
|
|
7909
|
+
function _array_like_to_array$s(arr, len) {
|
|
7883
7910
|
if (len == null || len > arr.length) len = arr.length;
|
|
7884
7911
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7885
7912
|
return arr2;
|
|
7886
7913
|
}
|
|
7887
|
-
function _array_with_holes$
|
|
7914
|
+
function _array_with_holes$k(arr) {
|
|
7888
7915
|
if (Array.isArray(arr)) return arr;
|
|
7889
7916
|
}
|
|
7890
7917
|
function _instanceof$3(left, right) {
|
|
@@ -7895,7 +7922,7 @@ function _instanceof$3(left, right) {
|
|
|
7895
7922
|
return left instanceof right;
|
|
7896
7923
|
}
|
|
7897
7924
|
}
|
|
7898
|
-
function _iterable_to_array_limit$
|
|
7925
|
+
function _iterable_to_array_limit$k(arr, i) {
|
|
7899
7926
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7900
7927
|
if (_i == null) return;
|
|
7901
7928
|
var _arr = [];
|
|
@@ -7919,23 +7946,23 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
7919
7946
|
}
|
|
7920
7947
|
return _arr;
|
|
7921
7948
|
}
|
|
7922
|
-
function _non_iterable_rest$
|
|
7949
|
+
function _non_iterable_rest$k() {
|
|
7923
7950
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7924
7951
|
}
|
|
7925
|
-
function _sliced_to_array$
|
|
7926
|
-
return _array_with_holes$
|
|
7952
|
+
function _sliced_to_array$k(arr, i) {
|
|
7953
|
+
return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$s(arr, i) || _non_iterable_rest$k();
|
|
7927
7954
|
}
|
|
7928
7955
|
function _type_of$f(obj) {
|
|
7929
7956
|
"@swc/helpers - typeof";
|
|
7930
7957
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7931
7958
|
}
|
|
7932
|
-
function _unsupported_iterable_to_array$
|
|
7959
|
+
function _unsupported_iterable_to_array$s(o, minLen) {
|
|
7933
7960
|
if (!o) return;
|
|
7934
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7961
|
+
if (typeof o === "string") return _array_like_to_array$s(o, minLen);
|
|
7935
7962
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7936
7963
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7937
7964
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7938
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7965
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$s(o, minLen);
|
|
7939
7966
|
}
|
|
7940
7967
|
/**
|
|
7941
7968
|
* Regular expression for validating ISO8601 date strings.
|
|
@@ -8074,7 +8101,7 @@ function isConsideredUtcTimezoneString(timezone) {
|
|
|
8074
8101
|
* @dbxUtilTags date, iso8601, day, parse, utc, convert
|
|
8075
8102
|
* @dbxUtilRelated is-iso8601-day-string, start-of-day-for-utc-date-in-utc
|
|
8076
8103
|
*/ function parseISO8601DayStringToUTCDate(inputDateString) {
|
|
8077
|
-
var _inputDateString_split = _sliced_to_array$
|
|
8104
|
+
var _inputDateString_split = _sliced_to_array$k(inputDateString.split('-'), 3), yearString = _inputDateString_split[0], monthString = _inputDateString_split[1], dateString = _inputDateString_split[2];
|
|
8078
8105
|
return new Date(Date.UTC(Number(yearString), Number(monthString) - 1, Number(dateString)));
|
|
8079
8106
|
}
|
|
8080
8107
|
/**
|
|
@@ -8138,7 +8165,7 @@ function isConsideredUtcTimezoneString(timezone) {
|
|
|
8138
8165
|
* @dbxUtilTags date, slash, day, string, convert, parse
|
|
8139
8166
|
* @dbxUtilRelated is-month-day-slash-date
|
|
8140
8167
|
*/ function monthDaySlashDateToDateString(slashDate) {
|
|
8141
|
-
var _slashDate_split = _sliced_to_array$
|
|
8168
|
+
var _slashDate_split = _sliced_to_array$k(slashDate.split('/'), 3), month = _slashDate_split[0], day = _slashDate_split[1], year = _slashDate_split[2];
|
|
8142
8169
|
if (month.length === 1) {
|
|
8143
8170
|
month = "0".concat(month);
|
|
8144
8171
|
}
|
|
@@ -8735,12 +8762,12 @@ function addMilliseconds(input, ms) {
|
|
|
8735
8762
|
};
|
|
8736
8763
|
}
|
|
8737
8764
|
|
|
8738
|
-
function _array_like_to_array$
|
|
8765
|
+
function _array_like_to_array$r(arr, len) {
|
|
8739
8766
|
if (len == null || len > arr.length) len = arr.length;
|
|
8740
8767
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8741
8768
|
return arr2;
|
|
8742
8769
|
}
|
|
8743
|
-
function _array_with_holes$
|
|
8770
|
+
function _array_with_holes$j(arr) {
|
|
8744
8771
|
if (Array.isArray(arr)) return arr;
|
|
8745
8772
|
}
|
|
8746
8773
|
function _define_property$j(obj, key, value) {
|
|
@@ -8756,7 +8783,7 @@ function _define_property$j(obj, key, value) {
|
|
|
8756
8783
|
}
|
|
8757
8784
|
return obj;
|
|
8758
8785
|
}
|
|
8759
|
-
function _iterable_to_array_limit$
|
|
8786
|
+
function _iterable_to_array_limit$j(arr, i) {
|
|
8760
8787
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8761
8788
|
if (_i == null) return;
|
|
8762
8789
|
var _arr = [];
|
|
@@ -8780,7 +8807,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
8780
8807
|
}
|
|
8781
8808
|
return _arr;
|
|
8782
8809
|
}
|
|
8783
|
-
function _non_iterable_rest$
|
|
8810
|
+
function _non_iterable_rest$j() {
|
|
8784
8811
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8785
8812
|
}
|
|
8786
8813
|
function _object_spread$e(target) {
|
|
@@ -8798,20 +8825,20 @@ function _object_spread$e(target) {
|
|
|
8798
8825
|
}
|
|
8799
8826
|
return target;
|
|
8800
8827
|
}
|
|
8801
|
-
function _sliced_to_array$
|
|
8802
|
-
return _array_with_holes$
|
|
8828
|
+
function _sliced_to_array$j(arr, i) {
|
|
8829
|
+
return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$r(arr, i) || _non_iterable_rest$j();
|
|
8803
8830
|
}
|
|
8804
8831
|
function _type_of$e(obj) {
|
|
8805
8832
|
"@swc/helpers - typeof";
|
|
8806
8833
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
8807
8834
|
}
|
|
8808
|
-
function _unsupported_iterable_to_array$
|
|
8835
|
+
function _unsupported_iterable_to_array$r(o, minLen) {
|
|
8809
8836
|
if (!o) return;
|
|
8810
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8837
|
+
if (typeof o === "string") return _array_like_to_array$r(o, minLen);
|
|
8811
8838
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8812
8839
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8813
8840
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8814
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8841
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$r(o, minLen);
|
|
8815
8842
|
}
|
|
8816
8843
|
/**
|
|
8817
8844
|
* Creates a reusable {@link StripObjectFunction} that filters values from an object and returns
|
|
@@ -9187,7 +9214,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
9187
9214
|
filter: filter,
|
|
9188
9215
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
9189
9216
|
forEach: function forEach(param, i, obj, context) {
|
|
9190
|
-
var _param = _sliced_to_array$
|
|
9217
|
+
var _param = _sliced_to_array$j(param, 1), key = _param[0];
|
|
9191
9218
|
context.keys.push(key);
|
|
9192
9219
|
}
|
|
9193
9220
|
});
|
|
@@ -9326,7 +9353,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
9326
9353
|
var forEachFn = forEachKeyValueOnPOJOFunction({
|
|
9327
9354
|
filter: filter,
|
|
9328
9355
|
forEach: function forEach(param, i, object) {
|
|
9329
|
-
var _param = _sliced_to_array$
|
|
9356
|
+
var _param = _sliced_to_array$j(param, 1), key = _param[0];
|
|
9330
9357
|
delete object[key];
|
|
9331
9358
|
}
|
|
9332
9359
|
});
|
|
@@ -9411,7 +9438,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
9411
9438
|
filter: filter,
|
|
9412
9439
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
9413
9440
|
forEach: function forEach(param, i, object, target) {
|
|
9414
|
-
var _param = _sliced_to_array$
|
|
9441
|
+
var _param = _sliced_to_array$j(param, 2), key = _param[0], value = _param[1];
|
|
9415
9442
|
target[key] = value;
|
|
9416
9443
|
}
|
|
9417
9444
|
});
|
|
@@ -9481,7 +9508,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
9481
9508
|
filter: filter,
|
|
9482
9509
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
9483
9510
|
forEach: function forEach(param, i, obj, context) {
|
|
9484
|
-
var _param = _sliced_to_array$
|
|
9511
|
+
var _param = _sliced_to_array$j(param, 2), value = _param[1];
|
|
9485
9512
|
context.values.push(value);
|
|
9486
9513
|
}
|
|
9487
9514
|
});
|
|
@@ -9526,7 +9553,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
9526
9553
|
var invertFilter = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
9527
9554
|
var keysSet = new Set(keysToFilter);
|
|
9528
9555
|
var filterFn = invertBooleanReturnFunction(function(param) {
|
|
9529
|
-
var _param = _sliced_to_array$
|
|
9556
|
+
var _param = _sliced_to_array$j(param, 1), key = _param[0];
|
|
9530
9557
|
return keysSet.has(key);
|
|
9531
9558
|
}, invertFilter);
|
|
9532
9559
|
return filterTuplesOnPOJOFunction(filterFn);
|
|
@@ -9754,15 +9781,15 @@ function isInSetDecisionFunction(set, inputReadValue) {
|
|
|
9754
9781
|
return input == null ? input : new Set(asArray(input));
|
|
9755
9782
|
}
|
|
9756
9783
|
|
|
9757
|
-
function _array_like_to_array$
|
|
9784
|
+
function _array_like_to_array$q(arr, len) {
|
|
9758
9785
|
if (len == null || len > arr.length) len = arr.length;
|
|
9759
9786
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9760
9787
|
return arr2;
|
|
9761
9788
|
}
|
|
9762
|
-
function _array_with_holes$
|
|
9789
|
+
function _array_with_holes$i(arr) {
|
|
9763
9790
|
if (Array.isArray(arr)) return arr;
|
|
9764
9791
|
}
|
|
9765
|
-
function _iterable_to_array_limit$
|
|
9792
|
+
function _iterable_to_array_limit$i(arr, i) {
|
|
9766
9793
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9767
9794
|
if (_i == null) return;
|
|
9768
9795
|
var _arr = [];
|
|
@@ -9786,23 +9813,23 @@ function _iterable_to_array_limit$h(arr, i) {
|
|
|
9786
9813
|
}
|
|
9787
9814
|
return _arr;
|
|
9788
9815
|
}
|
|
9789
|
-
function _non_iterable_rest$
|
|
9816
|
+
function _non_iterable_rest$i() {
|
|
9790
9817
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9791
9818
|
}
|
|
9792
|
-
function _sliced_to_array$
|
|
9793
|
-
return _array_with_holes$
|
|
9819
|
+
function _sliced_to_array$i(arr, i) {
|
|
9820
|
+
return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$q(arr, i) || _non_iterable_rest$i();
|
|
9794
9821
|
}
|
|
9795
9822
|
function _type_of$d(obj) {
|
|
9796
9823
|
"@swc/helpers - typeof";
|
|
9797
9824
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9798
9825
|
}
|
|
9799
|
-
function _unsupported_iterable_to_array$
|
|
9826
|
+
function _unsupported_iterable_to_array$q(o, minLen) {
|
|
9800
9827
|
if (!o) return;
|
|
9801
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9828
|
+
if (typeof o === "string") return _array_like_to_array$q(o, minLen);
|
|
9802
9829
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9803
9830
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9804
9831
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9805
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
9832
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$q(o, minLen);
|
|
9806
9833
|
}
|
|
9807
9834
|
var DEFAULT_AUTH_ROLE_CLAIMS_CLAIM_VALUE = 1;
|
|
9808
9835
|
var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
|
|
@@ -9901,7 +9928,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
|
|
|
9901
9928
|
var claims = {};
|
|
9902
9929
|
// iterate by each claim value to build the claims.
|
|
9903
9930
|
tuples.forEach(function(param) {
|
|
9904
|
-
var _param = _sliced_to_array$
|
|
9931
|
+
var _param = _sliced_to_array$i(param, 2), claimsKey = _param[0], entry = _param[1];
|
|
9905
9932
|
var _entry_encodeValueFromRoles;
|
|
9906
9933
|
var claimsValue = (_entry_encodeValueFromRoles = entry.encodeValueFromRoles(roles)) !== null && _entry_encodeValueFromRoles !== void 0 ? _entry_encodeValueFromRoles : defaultEmptyValue;
|
|
9907
9934
|
claims[claimsKey] = claimsValue;
|
|
@@ -9911,7 +9938,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
|
|
|
9911
9938
|
var forEachKeyValueAddToSet = forEachKeyValueOnPOJOFunction({
|
|
9912
9939
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
9913
9940
|
forEach: function forEach(param, i, claims, roles) {
|
|
9914
|
-
var _param = _sliced_to_array$
|
|
9941
|
+
var _param = _sliced_to_array$i(param, 2), claimsKey = _param[0], value = _param[1];
|
|
9915
9942
|
var entry = authRoleMap.get(claimsKey);
|
|
9916
9943
|
if (entry != null) {
|
|
9917
9944
|
var decodedRoles = entry.decodeRolesFromValue(value);
|
|
@@ -9925,7 +9952,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
|
|
|
9925
9952
|
return roles;
|
|
9926
9953
|
};
|
|
9927
9954
|
var claimKeys = tuples.map(function(param) {
|
|
9928
|
-
var _param = _sliced_to_array$
|
|
9955
|
+
var _param = _sliced_to_array$i(param, 1), key = _param[0];
|
|
9929
9956
|
return key;
|
|
9930
9957
|
});
|
|
9931
9958
|
var copyClaims = function copyClaims(source) {
|
|
@@ -10134,12 +10161,12 @@ function base64UrlEncode(bytes) {
|
|
|
10134
10161
|
return btoa(binString).replaceAll('+', '-').replaceAll('/', '_').replace(/=+$/, '');
|
|
10135
10162
|
}
|
|
10136
10163
|
|
|
10137
|
-
function _array_like_to_array$
|
|
10164
|
+
function _array_like_to_array$p(arr, len) {
|
|
10138
10165
|
if (len == null || len > arr.length) len = arr.length;
|
|
10139
10166
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10140
10167
|
return arr2;
|
|
10141
10168
|
}
|
|
10142
|
-
function _array_with_holes$
|
|
10169
|
+
function _array_with_holes$h(arr) {
|
|
10143
10170
|
if (Array.isArray(arr)) return arr;
|
|
10144
10171
|
}
|
|
10145
10172
|
function _assert_this_initialized$4(self) {
|
|
@@ -10218,7 +10245,7 @@ function _inherits$5(subClass, superClass) {
|
|
|
10218
10245
|
});
|
|
10219
10246
|
if (superClass) _set_prototype_of$5(subClass, superClass);
|
|
10220
10247
|
}
|
|
10221
|
-
function _iterable_to_array_limit$
|
|
10248
|
+
function _iterable_to_array_limit$h(arr, i) {
|
|
10222
10249
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
10223
10250
|
if (_i == null) return;
|
|
10224
10251
|
var _arr = [];
|
|
@@ -10242,7 +10269,7 @@ function _iterable_to_array_limit$g(arr, i) {
|
|
|
10242
10269
|
}
|
|
10243
10270
|
return _arr;
|
|
10244
10271
|
}
|
|
10245
|
-
function _non_iterable_rest$
|
|
10272
|
+
function _non_iterable_rest$h() {
|
|
10246
10273
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10247
10274
|
}
|
|
10248
10275
|
function _possible_constructor_return$4(self, call) {
|
|
@@ -10258,20 +10285,20 @@ function _set_prototype_of$5(o, p) {
|
|
|
10258
10285
|
};
|
|
10259
10286
|
return _set_prototype_of$5(o, p);
|
|
10260
10287
|
}
|
|
10261
|
-
function _sliced_to_array$
|
|
10262
|
-
return _array_with_holes$
|
|
10288
|
+
function _sliced_to_array$h(arr, i) {
|
|
10289
|
+
return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$p(arr, i) || _non_iterable_rest$h();
|
|
10263
10290
|
}
|
|
10264
10291
|
function _type_of$c(obj) {
|
|
10265
10292
|
"@swc/helpers - typeof";
|
|
10266
10293
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
10267
10294
|
}
|
|
10268
|
-
function _unsupported_iterable_to_array$
|
|
10295
|
+
function _unsupported_iterable_to_array$p(o, minLen) {
|
|
10269
10296
|
if (!o) return;
|
|
10270
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
10297
|
+
if (typeof o === "string") return _array_like_to_array$p(o, minLen);
|
|
10271
10298
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10272
10299
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10273
10300
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10274
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
10301
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$p(o, minLen);
|
|
10275
10302
|
}
|
|
10276
10303
|
function _is_native_reflect_construct$4() {
|
|
10277
10304
|
try {
|
|
@@ -10534,7 +10561,7 @@ function _ts_generator$d(thisArg, body) {
|
|
|
10534
10561
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
10535
10562
|
try {
|
|
10536
10563
|
for(var _iterator = Object.entries(authParams)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
10537
|
-
var _step_value = _sliced_to_array$
|
|
10564
|
+
var _step_value = _sliced_to_array$h(_step.value, 2), key = _step_value[0], value = _step_value[1];
|
|
10538
10565
|
url.searchParams.set(key, value);
|
|
10539
10566
|
}
|
|
10540
10567
|
} catch (err) {
|
|
@@ -12000,21 +12027,21 @@ function _ts_generator$a(thisArg, body) {
|
|
|
12000
12027
|
};
|
|
12001
12028
|
}
|
|
12002
12029
|
|
|
12003
|
-
function _array_like_to_array$
|
|
12030
|
+
function _array_like_to_array$o(arr, len) {
|
|
12004
12031
|
if (len == null || len > arr.length) len = arr.length;
|
|
12005
12032
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
12006
12033
|
return arr2;
|
|
12007
12034
|
}
|
|
12008
|
-
function _array_with_holes$
|
|
12035
|
+
function _array_with_holes$g(arr) {
|
|
12009
12036
|
if (Array.isArray(arr)) return arr;
|
|
12010
12037
|
}
|
|
12011
12038
|
function _array_without_holes$e(arr) {
|
|
12012
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
12039
|
+
if (Array.isArray(arr)) return _array_like_to_array$o(arr);
|
|
12013
12040
|
}
|
|
12014
12041
|
function _iterable_to_array$e(iter) {
|
|
12015
12042
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
12016
12043
|
}
|
|
12017
|
-
function _iterable_to_array_limit$
|
|
12044
|
+
function _iterable_to_array_limit$g(arr, i) {
|
|
12018
12045
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12019
12046
|
if (_i == null) return;
|
|
12020
12047
|
var _arr = [];
|
|
@@ -12038,25 +12065,25 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
12038
12065
|
}
|
|
12039
12066
|
return _arr;
|
|
12040
12067
|
}
|
|
12041
|
-
function _non_iterable_rest$
|
|
12068
|
+
function _non_iterable_rest$g() {
|
|
12042
12069
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12043
12070
|
}
|
|
12044
12071
|
function _non_iterable_spread$e() {
|
|
12045
12072
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12046
12073
|
}
|
|
12047
|
-
function _sliced_to_array$
|
|
12048
|
-
return _array_with_holes$
|
|
12074
|
+
function _sliced_to_array$g(arr, i) {
|
|
12075
|
+
return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$o(arr, i) || _non_iterable_rest$g();
|
|
12049
12076
|
}
|
|
12050
12077
|
function _to_consumable_array$e(arr) {
|
|
12051
|
-
return _array_without_holes$e(arr) || _iterable_to_array$e(arr) || _unsupported_iterable_to_array$
|
|
12078
|
+
return _array_without_holes$e(arr) || _iterable_to_array$e(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_spread$e();
|
|
12052
12079
|
}
|
|
12053
|
-
function _unsupported_iterable_to_array$
|
|
12080
|
+
function _unsupported_iterable_to_array$o(o, minLen) {
|
|
12054
12081
|
if (!o) return;
|
|
12055
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12082
|
+
if (typeof o === "string") return _array_like_to_array$o(o, minLen);
|
|
12056
12083
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12057
12084
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12058
12085
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12059
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
12086
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$o(o, minLen);
|
|
12060
12087
|
}
|
|
12061
12088
|
/**
|
|
12062
12089
|
* Finds the first and last occurrence of a single character within the input string.
|
|
@@ -12075,7 +12102,7 @@ function _unsupported_iterable_to_array$n(o, minLen) {
|
|
|
12075
12102
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
12076
12103
|
try {
|
|
12077
12104
|
for(var _iterator = _to_consumable_array$e(input).entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
12078
|
-
var _step_value = _sliced_to_array$
|
|
12105
|
+
var _step_value = _sliced_to_array$g(_step.value, 2), i = _step_value[0], char = _step_value[1];
|
|
12079
12106
|
if (char === find) {
|
|
12080
12107
|
if (first === -1) {
|
|
12081
12108
|
first = i;
|
|
@@ -12170,7 +12197,7 @@ function replaceCharacterAtIndexIf(input, index, replacement, decision) {
|
|
|
12170
12197
|
* @param replacement - String to substitute at the index.
|
|
12171
12198
|
* @returns The string with the character at the index replaced.
|
|
12172
12199
|
*/ function replaceCharacterAtIndexWith(input, index, replacement) {
|
|
12173
|
-
var _splitStringAtIndex = _sliced_to_array$
|
|
12200
|
+
var _splitStringAtIndex = _sliced_to_array$g(splitStringAtIndex(input, index, false), 2), head = _splitStringAtIndex[0], tail = _splitStringAtIndex[1];
|
|
12174
12201
|
return head + replacement + tail;
|
|
12175
12202
|
}
|
|
12176
12203
|
/**
|
|
@@ -12212,7 +12239,7 @@ function replaceCharacterAtIndexIf(input, index, replacement, decision) {
|
|
|
12212
12239
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
12213
12240
|
try {
|
|
12214
12241
|
for(var _iterator = _to_consumable_array$e(chars).entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
12215
|
-
var _step_value = _sliced_to_array$
|
|
12242
|
+
var _step_value = _sliced_to_array$g(_step.value, 2), i = _step_value[0], char = _step_value[1];
|
|
12216
12243
|
record[char] = i;
|
|
12217
12244
|
}
|
|
12218
12245
|
} catch (err) {
|
|
@@ -12232,16 +12259,16 @@ function replaceCharacterAtIndexIf(input, index, replacement, decision) {
|
|
|
12232
12259
|
return record;
|
|
12233
12260
|
}
|
|
12234
12261
|
|
|
12235
|
-
function _array_like_to_array$
|
|
12262
|
+
function _array_like_to_array$n(arr, len) {
|
|
12236
12263
|
if (len == null || len > arr.length) len = arr.length;
|
|
12237
12264
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
12238
12265
|
return arr2;
|
|
12239
12266
|
}
|
|
12240
|
-
function _array_with_holes$
|
|
12267
|
+
function _array_with_holes$f(arr) {
|
|
12241
12268
|
if (Array.isArray(arr)) return arr;
|
|
12242
12269
|
}
|
|
12243
12270
|
function _array_without_holes$d(arr) {
|
|
12244
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
12271
|
+
if (Array.isArray(arr)) return _array_like_to_array$n(arr);
|
|
12245
12272
|
}
|
|
12246
12273
|
function _instanceof$2(left, right) {
|
|
12247
12274
|
"@swc/helpers - instanceof";
|
|
@@ -12254,7 +12281,7 @@ function _instanceof$2(left, right) {
|
|
|
12254
12281
|
function _iterable_to_array$d(iter) {
|
|
12255
12282
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
12256
12283
|
}
|
|
12257
|
-
function _iterable_to_array_limit$
|
|
12284
|
+
function _iterable_to_array_limit$f(arr, i) {
|
|
12258
12285
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12259
12286
|
if (_i == null) return;
|
|
12260
12287
|
var _arr = [];
|
|
@@ -12278,25 +12305,25 @@ function _iterable_to_array_limit$e(arr, i) {
|
|
|
12278
12305
|
}
|
|
12279
12306
|
return _arr;
|
|
12280
12307
|
}
|
|
12281
|
-
function _non_iterable_rest$
|
|
12308
|
+
function _non_iterable_rest$f() {
|
|
12282
12309
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12283
12310
|
}
|
|
12284
12311
|
function _non_iterable_spread$d() {
|
|
12285
12312
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12286
12313
|
}
|
|
12287
|
-
function _sliced_to_array$
|
|
12288
|
-
return _array_with_holes$
|
|
12314
|
+
function _sliced_to_array$f(arr, i) {
|
|
12315
|
+
return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$n(arr, i) || _non_iterable_rest$f();
|
|
12289
12316
|
}
|
|
12290
12317
|
function _to_consumable_array$d(arr) {
|
|
12291
|
-
return _array_without_holes$d(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$
|
|
12318
|
+
return _array_without_holes$d(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_spread$d();
|
|
12292
12319
|
}
|
|
12293
|
-
function _unsupported_iterable_to_array$
|
|
12320
|
+
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
12294
12321
|
if (!o) return;
|
|
12295
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12322
|
+
if (typeof o === "string") return _array_like_to_array$n(o, minLen);
|
|
12296
12323
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12297
12324
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12298
12325
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12299
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
12326
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$n(o, minLen);
|
|
12300
12327
|
}
|
|
12301
12328
|
/**
|
|
12302
12329
|
* Creates a function that replaces all occurrences of the configured target strings with a replacement value.
|
|
@@ -12449,7 +12476,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
12449
12476
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
12450
12477
|
try {
|
|
12451
12478
|
for(var _iterator = _to_consumable_array$d(input).entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
12452
|
-
var _step_value = _sliced_to_array$
|
|
12479
|
+
var _step_value = _sliced_to_array$f(_step.value, 2), i = _step_value[0], char = _step_value[1];
|
|
12453
12480
|
if (characterSet.has(char)) {
|
|
12454
12481
|
occurrences.push(i);
|
|
12455
12482
|
// return if at the max number of occurences
|
|
@@ -12823,12 +12850,12 @@ function isEqualToValueDecisionFunction(equalityValue) {
|
|
|
12823
12850
|
return equalityValueCheckFunction;
|
|
12824
12851
|
}
|
|
12825
12852
|
|
|
12826
|
-
function _array_like_to_array$
|
|
12853
|
+
function _array_like_to_array$m(arr, len) {
|
|
12827
12854
|
if (len == null || len > arr.length) len = arr.length;
|
|
12828
12855
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
12829
12856
|
return arr2;
|
|
12830
12857
|
}
|
|
12831
|
-
function _array_with_holes$
|
|
12858
|
+
function _array_with_holes$e(arr) {
|
|
12832
12859
|
if (Array.isArray(arr)) return arr;
|
|
12833
12860
|
}
|
|
12834
12861
|
function _define_property$g(obj, key, value) {
|
|
@@ -12844,7 +12871,7 @@ function _define_property$g(obj, key, value) {
|
|
|
12844
12871
|
}
|
|
12845
12872
|
return obj;
|
|
12846
12873
|
}
|
|
12847
|
-
function _iterable_to_array_limit$
|
|
12874
|
+
function _iterable_to_array_limit$e(arr, i) {
|
|
12848
12875
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12849
12876
|
if (_i == null) return;
|
|
12850
12877
|
var _arr = [];
|
|
@@ -12868,7 +12895,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
12868
12895
|
}
|
|
12869
12896
|
return _arr;
|
|
12870
12897
|
}
|
|
12871
|
-
function _non_iterable_rest$
|
|
12898
|
+
function _non_iterable_rest$e() {
|
|
12872
12899
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12873
12900
|
}
|
|
12874
12901
|
function _object_spread$c(target) {
|
|
@@ -12886,20 +12913,20 @@ function _object_spread$c(target) {
|
|
|
12886
12913
|
}
|
|
12887
12914
|
return target;
|
|
12888
12915
|
}
|
|
12889
|
-
function _sliced_to_array$
|
|
12890
|
-
return _array_with_holes$
|
|
12916
|
+
function _sliced_to_array$e(arr, i) {
|
|
12917
|
+
return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$e();
|
|
12891
12918
|
}
|
|
12892
12919
|
function _type_of$b(obj) {
|
|
12893
12920
|
"@swc/helpers - typeof";
|
|
12894
12921
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
12895
12922
|
}
|
|
12896
|
-
function _unsupported_iterable_to_array$
|
|
12923
|
+
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
12897
12924
|
if (!o) return;
|
|
12898
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12925
|
+
if (typeof o === "string") return _array_like_to_array$m(o, minLen);
|
|
12899
12926
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12900
12927
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12901
12928
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12902
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
12929
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$m(o, minLen);
|
|
12903
12930
|
}
|
|
12904
12931
|
/**
|
|
12905
12932
|
* The forward-slash character used to separate parts of a slash path.
|
|
@@ -13316,7 +13343,7 @@ var ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX = /\.+/g;
|
|
|
13316
13343
|
}
|
|
13317
13344
|
default:
|
|
13318
13345
|
{
|
|
13319
|
-
var _splitStringAtIndex = _sliced_to_array$
|
|
13346
|
+
var _splitStringAtIndex = _sliced_to_array$e(splitStringAtIndex(inputToEvaluate, last, true), 2), head = _splitStringAtIndex[0], tail = _splitStringAtIndex[1];
|
|
13320
13347
|
var headWithReplacedSeparators = head.replaceAll(ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX, replaceWith);
|
|
13321
13348
|
fixedPath = headWithReplacedSeparators + tail;
|
|
13322
13349
|
break;
|
|
@@ -13715,21 +13742,21 @@ var ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX = /\.+/g;
|
|
|
13715
13742
|
};
|
|
13716
13743
|
}
|
|
13717
13744
|
|
|
13718
|
-
function _array_like_to_array$
|
|
13745
|
+
function _array_like_to_array$l(arr, len) {
|
|
13719
13746
|
if (len == null || len > arr.length) len = arr.length;
|
|
13720
13747
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13721
13748
|
return arr2;
|
|
13722
13749
|
}
|
|
13723
|
-
function _array_with_holes$
|
|
13750
|
+
function _array_with_holes$d(arr) {
|
|
13724
13751
|
if (Array.isArray(arr)) return arr;
|
|
13725
13752
|
}
|
|
13726
13753
|
function _array_without_holes$c(arr) {
|
|
13727
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
13754
|
+
if (Array.isArray(arr)) return _array_like_to_array$l(arr);
|
|
13728
13755
|
}
|
|
13729
13756
|
function _iterable_to_array$c(iter) {
|
|
13730
13757
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
13731
13758
|
}
|
|
13732
|
-
function _iterable_to_array_limit$
|
|
13759
|
+
function _iterable_to_array_limit$d(arr, i) {
|
|
13733
13760
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13734
13761
|
if (_i == null) return;
|
|
13735
13762
|
var _arr = [];
|
|
@@ -13753,25 +13780,25 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
13753
13780
|
}
|
|
13754
13781
|
return _arr;
|
|
13755
13782
|
}
|
|
13756
|
-
function _non_iterable_rest$
|
|
13783
|
+
function _non_iterable_rest$d() {
|
|
13757
13784
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13758
13785
|
}
|
|
13759
13786
|
function _non_iterable_spread$c() {
|
|
13760
13787
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13761
13788
|
}
|
|
13762
|
-
function _sliced_to_array$
|
|
13763
|
-
return _array_with_holes$
|
|
13789
|
+
function _sliced_to_array$d(arr, i) {
|
|
13790
|
+
return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$l(arr, i) || _non_iterable_rest$d();
|
|
13764
13791
|
}
|
|
13765
13792
|
function _to_consumable_array$c(arr) {
|
|
13766
|
-
return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$
|
|
13793
|
+
return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$l(arr) || _non_iterable_spread$c();
|
|
13767
13794
|
}
|
|
13768
|
-
function _unsupported_iterable_to_array$
|
|
13795
|
+
function _unsupported_iterable_to_array$l(o, minLen) {
|
|
13769
13796
|
if (!o) return;
|
|
13770
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
13797
|
+
if (typeof o === "string") return _array_like_to_array$l(o, minLen);
|
|
13771
13798
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13772
13799
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
13773
13800
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
13774
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
13801
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$l(o, minLen);
|
|
13775
13802
|
}
|
|
13776
13803
|
/**
|
|
13777
13804
|
* Returns true if the input string is a known HTTP protocol (`"http"` or `"https"`).
|
|
@@ -13886,7 +13913,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
13886
13913
|
var pathHasWebsiteDomain = hasWebsiteDomain(domain);
|
|
13887
13914
|
var inputHasPortNumber = hasPortNumber(input);
|
|
13888
13915
|
var portNumber = inputHasPortNumber ? (_readPortNumber = readPortNumber(input)) !== null && _readPortNumber !== void 0 ? _readPortNumber : undefined : undefined;
|
|
13889
|
-
var _splitStringAtFirstCharacterOccurence = _sliced_to_array$
|
|
13916
|
+
var _splitStringAtFirstCharacterOccurence = _sliced_to_array$d(splitStringAtFirstCharacterOccurence(splitPair.path, '?'), 2), path = _splitStringAtFirstCharacterOccurence[0], query = _splitStringAtFirstCharacterOccurence[1]; // everything after the query is ignored
|
|
13890
13917
|
var isWebsiteUrl = pathHasWebsiteDomain && (path === '' || isValidSlashPath(path + '/'));
|
|
13891
13918
|
var inputHasHttpPrefix = hasHttpPrefix(input);
|
|
13892
13919
|
var result = {
|
|
@@ -14000,7 +14027,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
14000
14027
|
* @param inputPath - The path string to split.
|
|
14001
14028
|
* @returns A pair containing the path and optional query string.
|
|
14002
14029
|
*/ function websitePathAndQueryPair(inputPath) {
|
|
14003
|
-
var _inputPath_split = _sliced_to_array$
|
|
14030
|
+
var _inputPath_split = _sliced_to_array$d(inputPath.split('?', 2), 2), path = _inputPath_split[0], rawQuery = _inputPath_split[1];
|
|
14004
14031
|
var query = rawQuery ? fixExtraQueryParameters(rawQuery, true) : undefined;
|
|
14005
14032
|
return {
|
|
14006
14033
|
path: path,
|
|
@@ -14230,13 +14257,13 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
14230
14257
|
return domain;
|
|
14231
14258
|
}
|
|
14232
14259
|
|
|
14233
|
-
function _array_like_to_array$
|
|
14260
|
+
function _array_like_to_array$k(arr, len) {
|
|
14234
14261
|
if (len == null || len > arr.length) len = arr.length;
|
|
14235
14262
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14236
14263
|
return arr2;
|
|
14237
14264
|
}
|
|
14238
14265
|
function _array_without_holes$b(arr) {
|
|
14239
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
14266
|
+
if (Array.isArray(arr)) return _array_like_to_array$k(arr);
|
|
14240
14267
|
}
|
|
14241
14268
|
function _iterable_to_array$b(iter) {
|
|
14242
14269
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -14245,15 +14272,15 @@ function _non_iterable_spread$b() {
|
|
|
14245
14272
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14246
14273
|
}
|
|
14247
14274
|
function _to_consumable_array$b(arr) {
|
|
14248
|
-
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$
|
|
14275
|
+
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$k(arr) || _non_iterable_spread$b();
|
|
14249
14276
|
}
|
|
14250
|
-
function _unsupported_iterable_to_array$
|
|
14277
|
+
function _unsupported_iterable_to_array$k(o, minLen) {
|
|
14251
14278
|
if (!o) return;
|
|
14252
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
14279
|
+
if (typeof o === "string") return _array_like_to_array$k(o, minLen);
|
|
14253
14280
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14254
14281
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14255
14282
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14256
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
14283
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$k(o, minLen);
|
|
14257
14284
|
}
|
|
14258
14285
|
/**
|
|
14259
14286
|
* Converts an EmailParticipant object to a formatted string representation.
|
|
@@ -14765,13 +14792,13 @@ function toReadableError(inputError) {
|
|
|
14765
14792
|
return buffer.includes(PDF_ENCRYPT_MARKER);
|
|
14766
14793
|
}
|
|
14767
14794
|
|
|
14768
|
-
function _array_like_to_array$
|
|
14795
|
+
function _array_like_to_array$j(arr, len) {
|
|
14769
14796
|
if (len == null || len > arr.length) len = arr.length;
|
|
14770
14797
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14771
14798
|
return arr2;
|
|
14772
14799
|
}
|
|
14773
14800
|
function _array_without_holes$a(arr) {
|
|
14774
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
14801
|
+
if (Array.isArray(arr)) return _array_like_to_array$j(arr);
|
|
14775
14802
|
}
|
|
14776
14803
|
function _iterable_to_array$a(iter) {
|
|
14777
14804
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -14780,15 +14807,15 @@ function _non_iterable_spread$a() {
|
|
|
14780
14807
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14781
14808
|
}
|
|
14782
14809
|
function _to_consumable_array$a(arr) {
|
|
14783
|
-
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$
|
|
14810
|
+
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$j(arr) || _non_iterable_spread$a();
|
|
14784
14811
|
}
|
|
14785
|
-
function _unsupported_iterable_to_array$
|
|
14812
|
+
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
14786
14813
|
if (!o) return;
|
|
14787
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
14814
|
+
if (typeof o === "string") return _array_like_to_array$j(o, minLen);
|
|
14788
14815
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14789
14816
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14790
14817
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14791
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
14818
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$j(o, minLen);
|
|
14792
14819
|
}
|
|
14793
14820
|
/*eslint @typescript-eslint/no-explicit-any:"off"*/ // any is used with intent here. using unknown can have strange effects in usage of forwardFunction and type capture.
|
|
14794
14821
|
/**
|
|
@@ -14844,13 +14871,13 @@ function _unsupported_iterable_to_array$i(o, minLen) {
|
|
|
14844
14871
|
*/ // eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
14845
14872
|
function noop() {}
|
|
14846
14873
|
|
|
14847
|
-
function _array_like_to_array$
|
|
14874
|
+
function _array_like_to_array$i(arr, len) {
|
|
14848
14875
|
if (len == null || len > arr.length) len = arr.length;
|
|
14849
14876
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14850
14877
|
return arr2;
|
|
14851
14878
|
}
|
|
14852
14879
|
function _array_without_holes$9(arr) {
|
|
14853
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
14880
|
+
if (Array.isArray(arr)) return _array_like_to_array$i(arr);
|
|
14854
14881
|
}
|
|
14855
14882
|
function _iterable_to_array$9(iter) {
|
|
14856
14883
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -14859,15 +14886,15 @@ function _non_iterable_spread$9() {
|
|
|
14859
14886
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14860
14887
|
}
|
|
14861
14888
|
function _to_consumable_array$9(arr) {
|
|
14862
|
-
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$
|
|
14889
|
+
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$i(arr) || _non_iterable_spread$9();
|
|
14863
14890
|
}
|
|
14864
|
-
function _unsupported_iterable_to_array$
|
|
14891
|
+
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
14865
14892
|
if (!o) return;
|
|
14866
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
14893
|
+
if (typeof o === "string") return _array_like_to_array$i(o, minLen);
|
|
14867
14894
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14868
14895
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14869
14896
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14870
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
14897
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen);
|
|
14871
14898
|
}
|
|
14872
14899
|
/**
|
|
14873
14900
|
* Builds an array from the intersection of an object's keys with the provided keys.
|
|
@@ -15206,13 +15233,13 @@ function performTaskCountLoop(config) {
|
|
|
15206
15233
|
});
|
|
15207
15234
|
}
|
|
15208
15235
|
|
|
15209
|
-
function _array_like_to_array$
|
|
15236
|
+
function _array_like_to_array$h(arr, len) {
|
|
15210
15237
|
if (len == null || len > arr.length) len = arr.length;
|
|
15211
15238
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15212
15239
|
return arr2;
|
|
15213
15240
|
}
|
|
15214
15241
|
function _array_without_holes$8(arr) {
|
|
15215
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
15242
|
+
if (Array.isArray(arr)) return _array_like_to_array$h(arr);
|
|
15216
15243
|
}
|
|
15217
15244
|
function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
15218
15245
|
try {
|
|
@@ -15250,15 +15277,15 @@ function _non_iterable_spread$8() {
|
|
|
15250
15277
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15251
15278
|
}
|
|
15252
15279
|
function _to_consumable_array$8(arr) {
|
|
15253
|
-
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$
|
|
15280
|
+
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$h(arr) || _non_iterable_spread$8();
|
|
15254
15281
|
}
|
|
15255
|
-
function _unsupported_iterable_to_array$
|
|
15282
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
15256
15283
|
if (!o) return;
|
|
15257
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
15284
|
+
if (typeof o === "string") return _array_like_to_array$h(o, minLen);
|
|
15258
15285
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15259
15286
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15260
15287
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15261
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
15288
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
|
|
15262
15289
|
}
|
|
15263
15290
|
function _ts_generator$8(thisArg, body) {
|
|
15264
15291
|
var f, y, t, _ = {
|
|
@@ -15479,21 +15506,21 @@ function _ts_generator$8(thisArg, body) {
|
|
|
15479
15506
|
};
|
|
15480
15507
|
}
|
|
15481
15508
|
|
|
15482
|
-
function _array_like_to_array$
|
|
15509
|
+
function _array_like_to_array$g(arr, len) {
|
|
15483
15510
|
if (len == null || len > arr.length) len = arr.length;
|
|
15484
15511
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15485
15512
|
return arr2;
|
|
15486
15513
|
}
|
|
15487
|
-
function _array_with_holes$
|
|
15514
|
+
function _array_with_holes$c(arr) {
|
|
15488
15515
|
if (Array.isArray(arr)) return arr;
|
|
15489
15516
|
}
|
|
15490
15517
|
function _array_without_holes$7(arr) {
|
|
15491
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
15518
|
+
if (Array.isArray(arr)) return _array_like_to_array$g(arr);
|
|
15492
15519
|
}
|
|
15493
15520
|
function _iterable_to_array$7(iter) {
|
|
15494
15521
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
15495
15522
|
}
|
|
15496
|
-
function _iterable_to_array_limit$
|
|
15523
|
+
function _iterable_to_array_limit$c(arr, i) {
|
|
15497
15524
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15498
15525
|
if (_i == null) return;
|
|
15499
15526
|
var _arr = [];
|
|
@@ -15517,25 +15544,25 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
15517
15544
|
}
|
|
15518
15545
|
return _arr;
|
|
15519
15546
|
}
|
|
15520
|
-
function _non_iterable_rest$
|
|
15547
|
+
function _non_iterable_rest$c() {
|
|
15521
15548
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15522
15549
|
}
|
|
15523
15550
|
function _non_iterable_spread$7() {
|
|
15524
15551
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15525
15552
|
}
|
|
15526
|
-
function _sliced_to_array$
|
|
15527
|
-
return _array_with_holes$
|
|
15553
|
+
function _sliced_to_array$c(arr, i) {
|
|
15554
|
+
return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$c();
|
|
15528
15555
|
}
|
|
15529
15556
|
function _to_consumable_array$7(arr) {
|
|
15530
|
-
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$
|
|
15557
|
+
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$g(arr) || _non_iterable_spread$7();
|
|
15531
15558
|
}
|
|
15532
|
-
function _unsupported_iterable_to_array$
|
|
15559
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
15533
15560
|
if (!o) return;
|
|
15534
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
15561
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
15535
15562
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15536
15563
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15537
15564
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15538
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
15565
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
|
|
15539
15566
|
}
|
|
15540
15567
|
/**
|
|
15541
15568
|
* Creates a bidirectional {@link PrimativeKeyDencoderMap} from the given values,
|
|
@@ -15559,7 +15586,7 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
15559
15586
|
});
|
|
15560
15587
|
}
|
|
15561
15588
|
valuesArray.forEach(function(value) {
|
|
15562
|
-
var _value = _sliced_to_array$
|
|
15589
|
+
var _value = _sliced_to_array$c(value, 2), d = _value[0], e = _value[1];
|
|
15563
15590
|
if (map.has(d) || map.has(e)) {
|
|
15564
15591
|
throw new Error("primativeKeyDencoderMap() encountered a repeat key/value: ".concat(d, "/").concat(e, ". Keys and values must be unique."));
|
|
15565
15592
|
}
|
|
@@ -15995,12 +16022,12 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
15995
16022
|
};
|
|
15996
16023
|
}
|
|
15997
16024
|
|
|
15998
|
-
function _array_like_to_array$
|
|
16025
|
+
function _array_like_to_array$f(arr, len) {
|
|
15999
16026
|
if (len == null || len > arr.length) len = arr.length;
|
|
16000
16027
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
16001
16028
|
return arr2;
|
|
16002
16029
|
}
|
|
16003
|
-
function _array_with_holes$
|
|
16030
|
+
function _array_with_holes$b(arr) {
|
|
16004
16031
|
if (Array.isArray(arr)) return arr;
|
|
16005
16032
|
}
|
|
16006
16033
|
function _define_property$c(obj, key, value) {
|
|
@@ -16029,7 +16056,7 @@ function _inherits$3(subClass, superClass) {
|
|
|
16029
16056
|
});
|
|
16030
16057
|
if (superClass) _set_prototype_of$3(subClass, superClass);
|
|
16031
16058
|
}
|
|
16032
|
-
function _iterable_to_array_limit$
|
|
16059
|
+
function _iterable_to_array_limit$b(arr, i) {
|
|
16033
16060
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
16034
16061
|
if (_i == null) return;
|
|
16035
16062
|
var _arr = [];
|
|
@@ -16053,7 +16080,7 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
16053
16080
|
}
|
|
16054
16081
|
return _arr;
|
|
16055
16082
|
}
|
|
16056
|
-
function _non_iterable_rest$
|
|
16083
|
+
function _non_iterable_rest$b() {
|
|
16057
16084
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16058
16085
|
}
|
|
16059
16086
|
function _object_spread$8(target) {
|
|
@@ -16097,20 +16124,20 @@ function _set_prototype_of$3(o, p) {
|
|
|
16097
16124
|
};
|
|
16098
16125
|
return _set_prototype_of$3(o, p);
|
|
16099
16126
|
}
|
|
16100
|
-
function _sliced_to_array$
|
|
16101
|
-
return _array_with_holes$
|
|
16127
|
+
function _sliced_to_array$b(arr, i) {
|
|
16128
|
+
return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$b();
|
|
16102
16129
|
}
|
|
16103
16130
|
function _type_of$8(obj) {
|
|
16104
16131
|
"@swc/helpers - typeof";
|
|
16105
16132
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
16106
16133
|
}
|
|
16107
|
-
function _unsupported_iterable_to_array$
|
|
16134
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
16108
16135
|
if (!o) return;
|
|
16109
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
16136
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
16110
16137
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
16111
16138
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
16112
16139
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
16113
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
16140
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
16114
16141
|
}
|
|
16115
16142
|
function _wrap_reg_exp(re, groups, source) {
|
|
16116
16143
|
_wrap_reg_exp = function(re, groups, source) {
|
|
@@ -16618,7 +16645,7 @@ function latLngString(lat, lng) {
|
|
|
16618
16645
|
* @param latLngString - String in the format `"lat,lng"`
|
|
16619
16646
|
* @returns The parsed point.
|
|
16620
16647
|
*/ function latLngPointFromString(latLngString) {
|
|
16621
|
-
var _latLngString_split = _sliced_to_array$
|
|
16648
|
+
var _latLngString_split = _sliced_to_array$b(latLngString.split(','), 2), latString = _latLngString_split[0], lngString = _latLngString_split[1];
|
|
16622
16649
|
var lat = Number(latString) || 0; // default lat and lng to 0 if not valid.
|
|
16623
16650
|
var lng = Number(lngString) || 0;
|
|
16624
16651
|
return {
|
|
@@ -16749,21 +16776,21 @@ function latLngString(lat, lng) {
|
|
|
16749
16776
|
});
|
|
16750
16777
|
}
|
|
16751
16778
|
|
|
16752
|
-
function _array_like_to_array$
|
|
16779
|
+
function _array_like_to_array$e(arr, len) {
|
|
16753
16780
|
if (len == null || len > arr.length) len = arr.length;
|
|
16754
16781
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
16755
16782
|
return arr2;
|
|
16756
16783
|
}
|
|
16757
|
-
function _array_with_holes$
|
|
16784
|
+
function _array_with_holes$a(arr) {
|
|
16758
16785
|
if (Array.isArray(arr)) return arr;
|
|
16759
16786
|
}
|
|
16760
16787
|
function _array_without_holes$6(arr) {
|
|
16761
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
16788
|
+
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
16762
16789
|
}
|
|
16763
16790
|
function _iterable_to_array$6(iter) {
|
|
16764
16791
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
16765
16792
|
}
|
|
16766
|
-
function _iterable_to_array_limit$
|
|
16793
|
+
function _iterable_to_array_limit$a(arr, i) {
|
|
16767
16794
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
16768
16795
|
if (_i == null) return;
|
|
16769
16796
|
var _arr = [];
|
|
@@ -16787,29 +16814,29 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
16787
16814
|
}
|
|
16788
16815
|
return _arr;
|
|
16789
16816
|
}
|
|
16790
|
-
function _non_iterable_rest$
|
|
16817
|
+
function _non_iterable_rest$a() {
|
|
16791
16818
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16792
16819
|
}
|
|
16793
16820
|
function _non_iterable_spread$6() {
|
|
16794
16821
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16795
16822
|
}
|
|
16796
|
-
function _sliced_to_array$
|
|
16797
|
-
return _array_with_holes$
|
|
16823
|
+
function _sliced_to_array$a(arr, i) {
|
|
16824
|
+
return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$a();
|
|
16798
16825
|
}
|
|
16799
16826
|
function _to_consumable_array$6(arr) {
|
|
16800
|
-
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$
|
|
16827
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$6();
|
|
16801
16828
|
}
|
|
16802
16829
|
function _type_of$7(obj) {
|
|
16803
16830
|
"@swc/helpers - typeof";
|
|
16804
16831
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
16805
16832
|
}
|
|
16806
|
-
function _unsupported_iterable_to_array$
|
|
16833
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
16807
16834
|
if (!o) return;
|
|
16808
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
16835
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
16809
16836
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
16810
16837
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
16811
16838
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
16812
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
16839
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
16813
16840
|
}
|
|
16814
16841
|
/**
|
|
16815
16842
|
* Type guard that checks whether the input is a {@link LatLngBound} by testing for the presence of `sw` and `ne` properties.
|
|
@@ -17052,7 +17079,7 @@ function _unsupported_iterable_to_array$d(o, minLen) {
|
|
|
17052
17079
|
var bound;
|
|
17053
17080
|
if (Array.isArray(input)) {
|
|
17054
17081
|
if (input.length === 2) {
|
|
17055
|
-
var _input = _sliced_to_array$
|
|
17082
|
+
var _input = _sliced_to_array$a(input, 2), sw = _input[0], ne = _input[1];
|
|
17056
17083
|
bound = {
|
|
17057
17084
|
sw: latLngPoint(sw),
|
|
17058
17085
|
ne: latLngPoint(ne)
|
|
@@ -18331,13 +18358,13 @@ function _ts_generator$7(thisArg, body) {
|
|
|
18331
18358
|
};
|
|
18332
18359
|
}
|
|
18333
18360
|
|
|
18334
|
-
function _array_like_to_array$
|
|
18361
|
+
function _array_like_to_array$d(arr, len) {
|
|
18335
18362
|
if (len == null || len > arr.length) len = arr.length;
|
|
18336
18363
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
18337
18364
|
return arr2;
|
|
18338
18365
|
}
|
|
18339
18366
|
function _array_without_holes$5(arr) {
|
|
18340
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
18367
|
+
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
18341
18368
|
}
|
|
18342
18369
|
function _iterable_to_array$5(iter) {
|
|
18343
18370
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -18346,15 +18373,15 @@ function _non_iterable_spread$5() {
|
|
|
18346
18373
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18347
18374
|
}
|
|
18348
18375
|
function _to_consumable_array$5(arr) {
|
|
18349
|
-
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$
|
|
18376
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$5();
|
|
18350
18377
|
}
|
|
18351
|
-
function _unsupported_iterable_to_array$
|
|
18378
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
18352
18379
|
if (!o) return;
|
|
18353
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
18380
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
18354
18381
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
18355
18382
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
18356
18383
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
18357
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
18384
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
18358
18385
|
}
|
|
18359
18386
|
/**
|
|
18360
18387
|
* Creates an {@link ObjectDeltaArrayCompressor} that can compress and expand arrays of objects using delta encoding.
|
|
@@ -18528,10 +18555,226 @@ function _object_spread$7(target) {
|
|
|
18528
18555
|
return result;
|
|
18529
18556
|
}
|
|
18530
18557
|
|
|
18558
|
+
function _array_like_to_array$c(arr, len) {
|
|
18559
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
18560
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
18561
|
+
return arr2;
|
|
18562
|
+
}
|
|
18563
|
+
function _array_with_holes$9(arr) {
|
|
18564
|
+
if (Array.isArray(arr)) return arr;
|
|
18565
|
+
}
|
|
18566
|
+
function _iterable_to_array_limit$9(arr, i) {
|
|
18567
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
18568
|
+
if (_i == null) return;
|
|
18569
|
+
var _arr = [];
|
|
18570
|
+
var _n = true;
|
|
18571
|
+
var _d = false;
|
|
18572
|
+
var _s, _e;
|
|
18573
|
+
try {
|
|
18574
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
18575
|
+
_arr.push(_s.value);
|
|
18576
|
+
if (i && _arr.length === i) break;
|
|
18577
|
+
}
|
|
18578
|
+
} catch (err) {
|
|
18579
|
+
_d = true;
|
|
18580
|
+
_e = err;
|
|
18581
|
+
} finally{
|
|
18582
|
+
try {
|
|
18583
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
18584
|
+
} finally{
|
|
18585
|
+
if (_d) throw _e;
|
|
18586
|
+
}
|
|
18587
|
+
}
|
|
18588
|
+
return _arr;
|
|
18589
|
+
}
|
|
18590
|
+
function _non_iterable_rest$9() {
|
|
18591
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18592
|
+
}
|
|
18593
|
+
function _sliced_to_array$9(arr, i) {
|
|
18594
|
+
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$9();
|
|
18595
|
+
}
|
|
18531
18596
|
function _type_of$6(obj) {
|
|
18532
18597
|
"@swc/helpers - typeof";
|
|
18533
18598
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
18534
18599
|
}
|
|
18600
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
18601
|
+
if (!o) return;
|
|
18602
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
18603
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
18604
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
18605
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
18606
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
18607
|
+
}
|
|
18608
|
+
/**
|
|
18609
|
+
* Creates a reusable {@link CopyValueDeepFunction}.
|
|
18610
|
+
*
|
|
18611
|
+
* Plain objects and arrays are copied recursively. Every other value is retained by reference:
|
|
18612
|
+
* primitives have nothing to copy, and a `Date`/`Map`/`Set`/class instance is a value in its own right,
|
|
18613
|
+
* not a bag of keys to rebuild — copying one key-by-key would replace a `Date` with `{}`. This is what
|
|
18614
|
+
* makes the function safe to use on data that carries such instances (a Firestore `Timestamp`, a
|
|
18615
|
+
* `DocumentReference`) alongside plain json.
|
|
18616
|
+
*
|
|
18617
|
+
* The root value itself is never filtered — only the values found within an object or array are, since
|
|
18618
|
+
* the filter is a decision about a key/value pair. A root `undefined` therefore copies to `undefined`.
|
|
18619
|
+
*
|
|
18620
|
+
* Repeated and cyclical references are tracked, so a value referenced twice is copied once and a cycle
|
|
18621
|
+
* terminates rather than overflowing the stack.
|
|
18622
|
+
*
|
|
18623
|
+
* @param config - Filter, array handling, and transform configuration. Defaults to removing `undefined` values.
|
|
18624
|
+
* @returns Recursively copies any input value.
|
|
18625
|
+
*
|
|
18626
|
+
* @dbxUtil
|
|
18627
|
+
* @dbxUtilCategory object
|
|
18628
|
+
* @dbxUtilKind factory
|
|
18629
|
+
* @dbxUtilTags object, copy, clone, deep, recursive, filter, transform, undefined, factory
|
|
18630
|
+
* @dbxUtilRelated copy-value-deep, filter-from-pojo-function, copy-object
|
|
18631
|
+
*
|
|
18632
|
+
* @example
|
|
18633
|
+
* ```ts
|
|
18634
|
+
* // remove undefined values at any depth
|
|
18635
|
+
* const copyFn = copyValueDeepFunction();
|
|
18636
|
+
* copyFn({ a: 1, b: undefined, c: { d: undefined, e: [1, undefined] } });
|
|
18637
|
+
* // { a: 1, c: { e: [1] } }
|
|
18638
|
+
*
|
|
18639
|
+
* // remove null and undefined values, and prune anything left empty
|
|
18640
|
+
* const copyCleanFn = copyValueDeepFunction({ filter: KeyValueTypleValueFilter.NULL, filterEmptyValues: true });
|
|
18641
|
+
* copyCleanFn({ a: 1, b: { c: null } });
|
|
18642
|
+
* // { a: 1 }
|
|
18643
|
+
* ```
|
|
18644
|
+
*
|
|
18645
|
+
* @__NO_SIDE_EFFECTS__
|
|
18646
|
+
*/ function copyValueDeepFunction(config) {
|
|
18647
|
+
var _ref = config !== null && config !== void 0 ? config : {}, _ref_filter = _ref.filter, filter = _ref_filter === void 0 ? exports.KeyValueTypleValueFilter.UNDEFINED : _ref_filter, _ref_arrayValues = _ref.arrayValues, arrayValues = _ref_arrayValues === void 0 ? 'remove' : _ref_arrayValues, _ref_filterEmptyValues = _ref.filterEmptyValues, filterEmptyValues = _ref_filterEmptyValues === void 0 ? false : _ref_filterEmptyValues, transform = _ref.transform;
|
|
18648
|
+
var retainKeyValue = filterKeyValueTupleFunction(filter);
|
|
18649
|
+
/**
|
|
18650
|
+
* Returns true if the copied value is retained by the filter.
|
|
18651
|
+
*
|
|
18652
|
+
* @param key - The key/index the value was read from.
|
|
18653
|
+
* @param value - The already-copied value.
|
|
18654
|
+
* @param index - The index of the key/value pair within its parent.
|
|
18655
|
+
* @returns `true` if the value is kept.
|
|
18656
|
+
*/ function retainValue(key, value, index) {
|
|
18657
|
+
var result = retainKeyValue([
|
|
18658
|
+
key,
|
|
18659
|
+
value
|
|
18660
|
+
], index);
|
|
18661
|
+
if (result && filterEmptyValues) {
|
|
18662
|
+
result = !isEmptyCopiedValue(value);
|
|
18663
|
+
}
|
|
18664
|
+
return result;
|
|
18665
|
+
}
|
|
18666
|
+
function copyValue(input, key, copied) {
|
|
18667
|
+
var value = transform ? transform(input, key) : input;
|
|
18668
|
+
var result;
|
|
18669
|
+
if (value == null || (typeof value === "undefined" ? "undefined" : _type_of$6(value)) !== 'object') {
|
|
18670
|
+
result = value; // nothing to copy
|
|
18671
|
+
} else if (copied.has(value)) {
|
|
18672
|
+
result = copied.get(value); // repeated or cyclical reference
|
|
18673
|
+
} else if (Array.isArray(value)) {
|
|
18674
|
+
var array = [];
|
|
18675
|
+
copied.set(value, array);
|
|
18676
|
+
value.forEach(function(inputValue, i) {
|
|
18677
|
+
var copiedValue = copyValue(inputValue, i, copied);
|
|
18678
|
+
if (arrayValues === 'retain' || retainValue(i, copiedValue, i)) {
|
|
18679
|
+
array.push(copiedValue);
|
|
18680
|
+
} else if (arrayValues === 'nullify') {
|
|
18681
|
+
array.push(null);
|
|
18682
|
+
}
|
|
18683
|
+
});
|
|
18684
|
+
result = array;
|
|
18685
|
+
} else if (isPlainObject(value)) {
|
|
18686
|
+
var object = {};
|
|
18687
|
+
copied.set(value, object);
|
|
18688
|
+
Object.entries(value).forEach(function(param, i) {
|
|
18689
|
+
var _param = _sliced_to_array$9(param, 2), valueKey = _param[0], inputValue = _param[1];
|
|
18690
|
+
var copiedValue = copyValue(inputValue, valueKey, copied);
|
|
18691
|
+
if (retainValue(valueKey, copiedValue, i)) {
|
|
18692
|
+
object[valueKey] = copiedValue;
|
|
18693
|
+
}
|
|
18694
|
+
});
|
|
18695
|
+
result = object;
|
|
18696
|
+
} else {
|
|
18697
|
+
result = value; // Date/Map/Set/class instances are retained by reference
|
|
18698
|
+
}
|
|
18699
|
+
return result;
|
|
18700
|
+
}
|
|
18701
|
+
return function(value) {
|
|
18702
|
+
return copyValue(value, undefined, new Map());
|
|
18703
|
+
};
|
|
18704
|
+
}
|
|
18705
|
+
/**
|
|
18706
|
+
* Recursively copies a value, filtering values as it goes.
|
|
18707
|
+
*
|
|
18708
|
+
* See {@link copyValueDeepFunction} for the copy/filter semantics. Prefer the factory when copying more
|
|
18709
|
+
* than one value with the same configuration.
|
|
18710
|
+
*
|
|
18711
|
+
* @param value - The value to copy.
|
|
18712
|
+
* @param config - Filter, array handling, and transform configuration. Defaults to removing `undefined` values.
|
|
18713
|
+
* @returns A recursive copy of the value.
|
|
18714
|
+
*
|
|
18715
|
+
* @dbxUtil
|
|
18716
|
+
* @dbxUtilCategory object
|
|
18717
|
+
* @dbxUtilTags object, copy, clone, deep, recursive, filter, transform, undefined
|
|
18718
|
+
* @dbxUtilRelated copy-value-deep-function, filter-from-pojo, copy-object
|
|
18719
|
+
*
|
|
18720
|
+
* @example
|
|
18721
|
+
* ```ts
|
|
18722
|
+
* copyValueDeep({ a: 1, b: { c: undefined } });
|
|
18723
|
+
* // { a: 1, b: {} }
|
|
18724
|
+
* ```
|
|
18725
|
+
*/ function copyValueDeep(value, config) {
|
|
18726
|
+
return copyValueDeepFunction(config)(value);
|
|
18727
|
+
}
|
|
18728
|
+
/**
|
|
18729
|
+
* Pre-built {@link CopyValueDeepFunction} that recursively copies a value, removing every `undefined`
|
|
18730
|
+
* value at every depth.
|
|
18731
|
+
*
|
|
18732
|
+
* This is the deep counterpart to {@link filterOnlyUndefinedValues}, and is what a consumer that rejects
|
|
18733
|
+
* `undefined` outright (Firestore, `JSON.stringify` in a strict schema) needs before a write.
|
|
18734
|
+
*
|
|
18735
|
+
* @example
|
|
18736
|
+
* ```ts
|
|
18737
|
+
* copyValueWithoutUndefinedValues({ a: 1, b: undefined, c: [{ d: undefined }] });
|
|
18738
|
+
* // { a: 1, c: [{}] }
|
|
18739
|
+
* ```
|
|
18740
|
+
*/ var copyValueWithoutUndefinedValues = copyValueDeepFunction({
|
|
18741
|
+
filter: exports.KeyValueTypleValueFilter.UNDEFINED
|
|
18742
|
+
});
|
|
18743
|
+
/**
|
|
18744
|
+
* Pre-built {@link CopyValueDeepFunction} that recursively copies a value, removing every `null` and
|
|
18745
|
+
* `undefined` value at every depth.
|
|
18746
|
+
*
|
|
18747
|
+
* This is the deep counterpart to {@link filterNullAndUndefinedValues}.
|
|
18748
|
+
*
|
|
18749
|
+
* @example
|
|
18750
|
+
* ```ts
|
|
18751
|
+
* copyValueWithoutNullAndUndefinedValues({ a: 1, b: null, c: [{ d: undefined }] });
|
|
18752
|
+
* // { a: 1, c: [{}] }
|
|
18753
|
+
* ```
|
|
18754
|
+
*/ var copyValueWithoutNullAndUndefinedValues = copyValueDeepFunction({
|
|
18755
|
+
filter: exports.KeyValueTypleValueFilter.NULL
|
|
18756
|
+
});
|
|
18757
|
+
/**
|
|
18758
|
+
* Returns true if the value is a copied object/array that the copy left with no values.
|
|
18759
|
+
*
|
|
18760
|
+
* Only plain objects and arrays qualify — a `Date` has no keys either, and is not empty.
|
|
18761
|
+
*
|
|
18762
|
+
* @param value - The copied value to check.
|
|
18763
|
+
* @returns `true` if the value is an empty plain object or array.
|
|
18764
|
+
*/ function isEmptyCopiedValue(value) {
|
|
18765
|
+
var result = false;
|
|
18766
|
+
if (Array.isArray(value)) {
|
|
18767
|
+
result = value.length === 0;
|
|
18768
|
+
} else if (isPlainObject(value)) {
|
|
18769
|
+
result = objectHasNoKeys(value);
|
|
18770
|
+
}
|
|
18771
|
+
return result;
|
|
18772
|
+
}
|
|
18773
|
+
|
|
18774
|
+
function _type_of$5(obj) {
|
|
18775
|
+
"@swc/helpers - typeof";
|
|
18776
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
18777
|
+
}
|
|
18535
18778
|
/**
|
|
18536
18779
|
* Recursively checks whether an object is "empty" — meaning it is null/undefined, has no keys,
|
|
18537
18780
|
* or all of its values are themselves empty (recursively for nested objects, or falsy for primitives).
|
|
@@ -18545,7 +18788,7 @@ function _type_of$6(obj) {
|
|
|
18545
18788
|
* @dbxUtilRelated object-has-no-keys, has-value-or-not-empty-object
|
|
18546
18789
|
*/ function objectIsEmpty(obj) {
|
|
18547
18790
|
var empty = true;
|
|
18548
|
-
if (obj != null && (typeof obj === "undefined" ? "undefined" : _type_of$
|
|
18791
|
+
if (obj != null && (typeof obj === "undefined" ? "undefined" : _type_of$5(obj)) === 'object') {
|
|
18549
18792
|
var keys = Object.keys(obj);
|
|
18550
18793
|
if (keys.length > 0) {
|
|
18551
18794
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
@@ -18553,7 +18796,7 @@ function _type_of$6(obj) {
|
|
|
18553
18796
|
for(var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
18554
18797
|
var key = _step.value;
|
|
18555
18798
|
var value = obj[key];
|
|
18556
|
-
var isEmpty = (typeof value === "undefined" ? "undefined" : _type_of$
|
|
18799
|
+
var isEmpty = (typeof value === "undefined" ? "undefined" : _type_of$5(value)) === 'object' ? objectIsEmpty(value) : !hasValueOrNotEmpty(value);
|
|
18557
18800
|
if (!isEmpty) {
|
|
18558
18801
|
empty = false;
|
|
18559
18802
|
break;
|
|
@@ -19096,7 +19339,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
19096
19339
|
})();
|
|
19097
19340
|
}
|
|
19098
19341
|
|
|
19099
|
-
function _type_of$
|
|
19342
|
+
function _type_of$4(obj) {
|
|
19100
19343
|
"@swc/helpers - typeof";
|
|
19101
19344
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
19102
19345
|
}
|
|
@@ -19112,7 +19355,7 @@ function _type_of$5(obj) {
|
|
|
19112
19355
|
* @dbxUtilRelated is-promise-like, as-promise
|
|
19113
19356
|
*/ function isPromise(obj) {
|
|
19114
19357
|
// https://github.com/then/is-promise
|
|
19115
|
-
return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$
|
|
19358
|
+
return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$4(obj)) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
|
|
19116
19359
|
}
|
|
19117
19360
|
/**
|
|
19118
19361
|
* Checks whether the input value is PromiseLike (i.e., has a `.then` method), which
|
|
@@ -19127,7 +19370,7 @@ function _type_of$5(obj) {
|
|
|
19127
19370
|
* @dbxUtilRelated is-promise, as-promise
|
|
19128
19371
|
*/ function isPromiseLike(obj) {
|
|
19129
19372
|
// https://github.com/then/is-promise
|
|
19130
|
-
return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$
|
|
19373
|
+
return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$4(obj)) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
|
|
19131
19374
|
}
|
|
19132
19375
|
|
|
19133
19376
|
function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -21254,7 +21497,7 @@ function _inherits$2(subClass, superClass) {
|
|
|
21254
21497
|
if (superClass) _set_prototype_of$2(subClass, superClass);
|
|
21255
21498
|
}
|
|
21256
21499
|
function _possible_constructor_return$2(self, call) {
|
|
21257
|
-
if (call && (_type_of$
|
|
21500
|
+
if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
|
|
21258
21501
|
return call;
|
|
21259
21502
|
}
|
|
21260
21503
|
return _assert_this_initialized$2(self);
|
|
@@ -21266,7 +21509,7 @@ function _set_prototype_of$2(o, p) {
|
|
|
21266
21509
|
};
|
|
21267
21510
|
return _set_prototype_of$2(o, p);
|
|
21268
21511
|
}
|
|
21269
|
-
function _type_of$
|
|
21512
|
+
function _type_of$3(obj) {
|
|
21270
21513
|
"@swc/helpers - typeof";
|
|
21271
21514
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
21272
21515
|
}
|
|
@@ -21692,7 +21935,7 @@ function _non_iterable_rest$6() {
|
|
|
21692
21935
|
function _sliced_to_array$6(arr, i) {
|
|
21693
21936
|
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$6();
|
|
21694
21937
|
}
|
|
21695
|
-
function _type_of$
|
|
21938
|
+
function _type_of$2(obj) {
|
|
21696
21939
|
"@swc/helpers - typeof";
|
|
21697
21940
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
21698
21941
|
}
|
|
@@ -21745,12 +21988,12 @@ function _unsupported_iterable_to_array$8(o, minLen) {
|
|
|
21745
21988
|
// check one value is nullish and other is not
|
|
21746
21989
|
if ((a == null || b == null) && (a || b)) {
|
|
21747
21990
|
result = false;
|
|
21748
|
-
} else if ((typeof a === "undefined" ? "undefined" : _type_of$
|
|
21991
|
+
} else if ((typeof a === "undefined" ? "undefined" : _type_of$2(a)) !== 'object') {
|
|
21749
21992
|
result = false;
|
|
21750
21993
|
} else if (isIterable(a, false)) {
|
|
21751
21994
|
// check if they are iterables (arrays, Sets, Maps)
|
|
21752
21995
|
result = _compareIterables(a, b, pojoFilter);
|
|
21753
|
-
} else if ((typeof b === "undefined" ? "undefined" : _type_of$
|
|
21996
|
+
} else if ((typeof b === "undefined" ? "undefined" : _type_of$2(b)) === 'object') {
|
|
21754
21997
|
// check plain object comparison
|
|
21755
21998
|
result = _compareObjects(a, b, pojoFilter);
|
|
21756
21999
|
} else {
|
|
@@ -21847,7 +22090,7 @@ function _compareObjects(a, b, pojoFilter) {
|
|
|
21847
22090
|
var _fields = new Map();
|
|
21848
22091
|
fields.forEach(function(input) {
|
|
21849
22092
|
var field;
|
|
21850
|
-
if ((typeof input === "undefined" ? "undefined" : _type_of$
|
|
22093
|
+
if ((typeof input === "undefined" ? "undefined" : _type_of$2(input)) === 'object') {
|
|
21851
22094
|
field = input;
|
|
21852
22095
|
} else {
|
|
21853
22096
|
field = {
|
|
@@ -22072,10 +22315,6 @@ function _unsupported_iterable_to_array$7(o, minLen) {
|
|
|
22072
22315
|
return nextKey;
|
|
22073
22316
|
});
|
|
22074
22317
|
|
|
22075
|
-
function _type_of$2(obj) {
|
|
22076
|
-
"@swc/helpers - typeof";
|
|
22077
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
22078
|
-
}
|
|
22079
22318
|
/**
|
|
22080
22319
|
* Flattens a nested object into a single-level object with concatenated keys.
|
|
22081
22320
|
*
|
|
@@ -22119,7 +22358,7 @@ function _type_of$2(obj) {
|
|
|
22119
22358
|
var key = _step.value;
|
|
22120
22359
|
var value = obj[key];
|
|
22121
22360
|
var fullKey = prefix ? "".concat(prefix).concat(separator).concat(key) : key;
|
|
22122
|
-
if (
|
|
22361
|
+
if (isPlainObject(value) && currentDepth < maxDepth && !seen.has(value)) {
|
|
22123
22362
|
recurse(value, fullKey, currentDepth + 1);
|
|
22124
22363
|
} else {
|
|
22125
22364
|
result[fullKey] = value;
|
|
@@ -22144,19 +22383,6 @@ function _type_of$2(obj) {
|
|
|
22144
22383
|
}
|
|
22145
22384
|
return result;
|
|
22146
22385
|
}
|
|
22147
|
-
/**
|
|
22148
|
-
* Returns true if the value is a plain object (not an array, Date, RegExp, null, etc.).
|
|
22149
|
-
*
|
|
22150
|
-
* @param value - The value to check.
|
|
22151
|
-
* @returns True if the value is a plain object with an Object or null prototype.
|
|
22152
|
-
*/ function _isPlainObject(value) {
|
|
22153
|
-
var result = false;
|
|
22154
|
-
if (value != null && (typeof value === "undefined" ? "undefined" : _type_of$2(value)) === 'object') {
|
|
22155
|
-
var proto = Object.getPrototypeOf(value);
|
|
22156
|
-
result = proto === Object.prototype || proto === null;
|
|
22157
|
-
}
|
|
22158
|
-
return result;
|
|
22159
|
-
}
|
|
22160
22386
|
|
|
22161
22387
|
/**
|
|
22162
22388
|
* Creates a function that copies a single field from a partial source object to a partial target object.
|
|
@@ -26576,6 +26802,10 @@ exports.copyLatLngBound = copyLatLngBound;
|
|
|
26576
26802
|
exports.copyLatLngPoint = copyLatLngPoint;
|
|
26577
26803
|
exports.copyObject = copyObject;
|
|
26578
26804
|
exports.copySetAndDo = copySetAndDo;
|
|
26805
|
+
exports.copyValueDeep = copyValueDeep;
|
|
26806
|
+
exports.copyValueDeepFunction = copyValueDeepFunction;
|
|
26807
|
+
exports.copyValueWithoutNullAndUndefinedValues = copyValueWithoutNullAndUndefinedValues;
|
|
26808
|
+
exports.copyValueWithoutUndefinedValues = copyValueWithoutUndefinedValues;
|
|
26579
26809
|
exports.countAllInNestedArray = countAllInNestedArray;
|
|
26580
26810
|
exports.countPOJOKeys = countPOJOKeys;
|
|
26581
26811
|
exports.countPOJOKeysFunction = countPOJOKeysFunction;
|
|
@@ -26836,6 +27066,7 @@ exports.isObjectWithConstructor = isObjectWithConstructor;
|
|
|
26836
27066
|
exports.isOddNumber = isOddNumber;
|
|
26837
27067
|
exports.isPast = isPast;
|
|
26838
27068
|
exports.isPdfPasswordProtected = isPdfPasswordProtected;
|
|
27069
|
+
exports.isPlainObject = isPlainObject;
|
|
26839
27070
|
exports.isPromise = isPromise;
|
|
26840
27071
|
exports.isPromiseLike = isPromiseLike;
|
|
26841
27072
|
exports.isSameLatLngBound = isSameLatLngBound;
|