@qodalis/cli-string 2.0.0-beta.9 → 2.0.0-rc.2
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/package.json +2 -2
- package/public-api.d.mts +1 -2
- package/public-api.d.ts +1 -2
- package/public-api.js +34 -13
- package/public-api.js.map +1 -1
- package/public-api.mjs +35 -14
- package/public-api.mjs.map +1 -1
- package/umd/index.global.js +473 -303
package/umd/index.global.js
CHANGED
|
@@ -7,7 +7,11 @@ var string = (() => {
|
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __commonJS = (cb, mod) => function __require() {
|
|
10
|
-
|
|
10
|
+
try {
|
|
11
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
throw mod = 0, e;
|
|
14
|
+
}
|
|
11
15
|
};
|
|
12
16
|
var __copyProps = (to, from, except, desc) => {
|
|
13
17
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -26,15 +30,15 @@ var string = (() => {
|
|
|
26
30
|
mod
|
|
27
31
|
));
|
|
28
32
|
|
|
29
|
-
// ../../../node_modules/.pnpm/lodash@4.
|
|
33
|
+
// ../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.js
|
|
30
34
|
var require_lodash = __commonJS({
|
|
31
|
-
"../../../node_modules/.pnpm/lodash@4.
|
|
35
|
+
"../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.js"(exports, module2) {
|
|
32
36
|
"use strict";
|
|
33
37
|
(function() {
|
|
34
|
-
var
|
|
35
|
-
var VERSION = "4.
|
|
38
|
+
var undefined2;
|
|
39
|
+
var VERSION = "4.18.1";
|
|
36
40
|
var LARGE_ARRAY_SIZE = 200;
|
|
37
|
-
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
|
|
41
|
+
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`", INVALID_TEMPL_IMPORTS_ERROR_TEXT = "Invalid `imports` option passed into `_.template`";
|
|
38
42
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
39
43
|
var MAX_MEMOIZE_SIZE = 500;
|
|
40
44
|
var PLACEHOLDER = "__lodash_placeholder__";
|
|
@@ -533,12 +537,12 @@ var string = (() => {
|
|
|
533
537
|
}
|
|
534
538
|
function baseProperty(key) {
|
|
535
539
|
return function(object) {
|
|
536
|
-
return object == null ?
|
|
540
|
+
return object == null ? undefined2 : object[key];
|
|
537
541
|
};
|
|
538
542
|
}
|
|
539
543
|
function basePropertyOf(object) {
|
|
540
544
|
return function(key) {
|
|
541
|
-
return object == null ?
|
|
545
|
+
return object == null ? undefined2 : object[key];
|
|
542
546
|
};
|
|
543
547
|
}
|
|
544
548
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
@@ -559,8 +563,8 @@ var string = (() => {
|
|
|
559
563
|
var result, index = -1, length = array.length;
|
|
560
564
|
while (++index < length) {
|
|
561
565
|
var current = iteratee(array[index]);
|
|
562
|
-
if (current !==
|
|
563
|
-
result = result ===
|
|
566
|
+
if (current !== undefined2) {
|
|
567
|
+
result = result === undefined2 ? current : result + current;
|
|
564
568
|
}
|
|
565
569
|
}
|
|
566
570
|
return result;
|
|
@@ -620,7 +624,7 @@ var string = (() => {
|
|
|
620
624
|
return "\\" + stringEscapes[chr];
|
|
621
625
|
}
|
|
622
626
|
function getValue(object, key) {
|
|
623
|
-
return object == null ?
|
|
627
|
+
return object == null ? undefined2 : object[key];
|
|
624
628
|
}
|
|
625
629
|
function hasUnicode(string) {
|
|
626
630
|
return reHasUnicode.test(string);
|
|
@@ -734,7 +738,7 @@ var string = (() => {
|
|
|
734
738
|
var reIsNative = RegExp2(
|
|
735
739
|
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
736
740
|
);
|
|
737
|
-
var Buffer2 = moduleExports ? context.Buffer :
|
|
741
|
+
var Buffer2 = moduleExports ? context.Buffer : undefined2, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined2, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined2, symIterator = Symbol2 ? Symbol2.iterator : undefined2, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined2;
|
|
738
742
|
var defineProperty = (function() {
|
|
739
743
|
try {
|
|
740
744
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -744,12 +748,12 @@ var string = (() => {
|
|
|
744
748
|
}
|
|
745
749
|
})();
|
|
746
750
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
747
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer :
|
|
751
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
748
752
|
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
749
753
|
var metaMap = WeakMap && new WeakMap();
|
|
750
754
|
var realNames = {};
|
|
751
755
|
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
|
|
752
|
-
var symbolProto = Symbol2 ? Symbol2.prototype :
|
|
756
|
+
var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2;
|
|
753
757
|
function lodash2(value) {
|
|
754
758
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
755
759
|
if (value instanceof LodashWrapper) {
|
|
@@ -773,7 +777,7 @@ var string = (() => {
|
|
|
773
777
|
}
|
|
774
778
|
object.prototype = proto;
|
|
775
779
|
var result2 = new object();
|
|
776
|
-
object.prototype =
|
|
780
|
+
object.prototype = undefined2;
|
|
777
781
|
return result2;
|
|
778
782
|
};
|
|
779
783
|
})();
|
|
@@ -784,7 +788,7 @@ var string = (() => {
|
|
|
784
788
|
this.__actions__ = [];
|
|
785
789
|
this.__chain__ = !!chainAll;
|
|
786
790
|
this.__index__ = 0;
|
|
787
|
-
this.__values__ =
|
|
791
|
+
this.__values__ = undefined2;
|
|
788
792
|
}
|
|
789
793
|
lodash2.templateSettings = {
|
|
790
794
|
/**
|
|
@@ -914,18 +918,18 @@ var string = (() => {
|
|
|
914
918
|
var data = this.__data__;
|
|
915
919
|
if (nativeCreate) {
|
|
916
920
|
var result2 = data[key];
|
|
917
|
-
return result2 === HASH_UNDEFINED ?
|
|
921
|
+
return result2 === HASH_UNDEFINED ? undefined2 : result2;
|
|
918
922
|
}
|
|
919
|
-
return hasOwnProperty.call(data, key) ? data[key] :
|
|
923
|
+
return hasOwnProperty.call(data, key) ? data[key] : undefined2;
|
|
920
924
|
}
|
|
921
925
|
function hashHas(key) {
|
|
922
926
|
var data = this.__data__;
|
|
923
|
-
return nativeCreate ? data[key] !==
|
|
927
|
+
return nativeCreate ? data[key] !== undefined2 : hasOwnProperty.call(data, key);
|
|
924
928
|
}
|
|
925
929
|
function hashSet(key, value) {
|
|
926
930
|
var data = this.__data__;
|
|
927
931
|
this.size += this.has(key) ? 0 : 1;
|
|
928
|
-
data[key] = nativeCreate && value ===
|
|
932
|
+
data[key] = nativeCreate && value === undefined2 ? HASH_UNDEFINED : value;
|
|
929
933
|
return this;
|
|
930
934
|
}
|
|
931
935
|
Hash.prototype.clear = hashClear;
|
|
@@ -961,7 +965,7 @@ var string = (() => {
|
|
|
961
965
|
}
|
|
962
966
|
function listCacheGet(key) {
|
|
963
967
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
964
|
-
return index < 0 ?
|
|
968
|
+
return index < 0 ? undefined2 : data[index][1];
|
|
965
969
|
}
|
|
966
970
|
function listCacheHas(key) {
|
|
967
971
|
return assocIndexOf(this.__data__, key) > -1;
|
|
@@ -1089,7 +1093,7 @@ var string = (() => {
|
|
|
1089
1093
|
}
|
|
1090
1094
|
function arraySample(array) {
|
|
1091
1095
|
var length = array.length;
|
|
1092
|
-
return length ? array[baseRandom(0, length - 1)] :
|
|
1096
|
+
return length ? array[baseRandom(0, length - 1)] : undefined2;
|
|
1093
1097
|
}
|
|
1094
1098
|
function arraySampleSize(array, n) {
|
|
1095
1099
|
return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
|
|
@@ -1098,13 +1102,13 @@ var string = (() => {
|
|
|
1098
1102
|
return shuffleSelf(copyArray(array));
|
|
1099
1103
|
}
|
|
1100
1104
|
function assignMergeValue(object, key, value) {
|
|
1101
|
-
if (value !==
|
|
1105
|
+
if (value !== undefined2 && !eq(object[key], value) || value === undefined2 && !(key in object)) {
|
|
1102
1106
|
baseAssignValue(object, key, value);
|
|
1103
1107
|
}
|
|
1104
1108
|
}
|
|
1105
1109
|
function assignValue(object, key, value) {
|
|
1106
1110
|
var objValue = object[key];
|
|
1107
|
-
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value ===
|
|
1111
|
+
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined2 && !(key in object)) {
|
|
1108
1112
|
baseAssignValue(object, key, value);
|
|
1109
1113
|
}
|
|
1110
1114
|
}
|
|
@@ -1144,16 +1148,16 @@ var string = (() => {
|
|
|
1144
1148
|
function baseAt(object, paths) {
|
|
1145
1149
|
var index = -1, length = paths.length, result2 = Array2(length), skip = object == null;
|
|
1146
1150
|
while (++index < length) {
|
|
1147
|
-
result2[index] = skip ?
|
|
1151
|
+
result2[index] = skip ? undefined2 : get(object, paths[index]);
|
|
1148
1152
|
}
|
|
1149
1153
|
return result2;
|
|
1150
1154
|
}
|
|
1151
1155
|
function baseClamp(number, lower, upper) {
|
|
1152
1156
|
if (number === number) {
|
|
1153
|
-
if (upper !==
|
|
1157
|
+
if (upper !== undefined2) {
|
|
1154
1158
|
number = number <= upper ? number : upper;
|
|
1155
1159
|
}
|
|
1156
|
-
if (lower !==
|
|
1160
|
+
if (lower !== undefined2) {
|
|
1157
1161
|
number = number >= lower ? number : lower;
|
|
1158
1162
|
}
|
|
1159
1163
|
}
|
|
@@ -1164,7 +1168,7 @@ var string = (() => {
|
|
|
1164
1168
|
if (customizer) {
|
|
1165
1169
|
result2 = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1166
1170
|
}
|
|
1167
|
-
if (result2 !==
|
|
1171
|
+
if (result2 !== undefined2) {
|
|
1168
1172
|
return result2;
|
|
1169
1173
|
}
|
|
1170
1174
|
if (!isObject(value)) {
|
|
@@ -1209,7 +1213,7 @@ var string = (() => {
|
|
|
1209
1213
|
});
|
|
1210
1214
|
}
|
|
1211
1215
|
var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
|
|
1212
|
-
var props = isArr ?
|
|
1216
|
+
var props = isArr ? undefined2 : keysFunc(value);
|
|
1213
1217
|
arrayEach(props || value, function(subValue, key2) {
|
|
1214
1218
|
if (props) {
|
|
1215
1219
|
key2 = subValue;
|
|
@@ -1233,7 +1237,7 @@ var string = (() => {
|
|
|
1233
1237
|
object = Object2(object);
|
|
1234
1238
|
while (length--) {
|
|
1235
1239
|
var key = props[length], predicate = source[key], value = object[key];
|
|
1236
|
-
if (value ===
|
|
1240
|
+
if (value === undefined2 && !(key in object) || !predicate(value)) {
|
|
1237
1241
|
return false;
|
|
1238
1242
|
}
|
|
1239
1243
|
}
|
|
@@ -1244,7 +1248,7 @@ var string = (() => {
|
|
|
1244
1248
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1245
1249
|
}
|
|
1246
1250
|
return setTimeout2(function() {
|
|
1247
|
-
func.apply(
|
|
1251
|
+
func.apply(undefined2, args);
|
|
1248
1252
|
}, wait);
|
|
1249
1253
|
}
|
|
1250
1254
|
function baseDifference(array, values2, iteratee2, comparator) {
|
|
@@ -1295,7 +1299,7 @@ var string = (() => {
|
|
|
1295
1299
|
var index = -1, length = array.length;
|
|
1296
1300
|
while (++index < length) {
|
|
1297
1301
|
var value = array[index], current = iteratee2(value);
|
|
1298
|
-
if (current != null && (computed ===
|
|
1302
|
+
if (current != null && (computed === undefined2 ? current === current && !isSymbol(current) : comparator(current, computed))) {
|
|
1299
1303
|
var computed = current, result2 = value;
|
|
1300
1304
|
}
|
|
1301
1305
|
}
|
|
@@ -1307,7 +1311,7 @@ var string = (() => {
|
|
|
1307
1311
|
if (start < 0) {
|
|
1308
1312
|
start = -start > length ? 0 : length + start;
|
|
1309
1313
|
}
|
|
1310
|
-
end = end ===
|
|
1314
|
+
end = end === undefined2 || end > length ? length : toInteger(end);
|
|
1311
1315
|
if (end < 0) {
|
|
1312
1316
|
end += length;
|
|
1313
1317
|
}
|
|
@@ -1363,7 +1367,7 @@ var string = (() => {
|
|
|
1363
1367
|
while (object != null && index < length) {
|
|
1364
1368
|
object = object[toKey(path[index++])];
|
|
1365
1369
|
}
|
|
1366
|
-
return index && index == length ? object :
|
|
1370
|
+
return index && index == length ? object : undefined2;
|
|
1367
1371
|
}
|
|
1368
1372
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1369
1373
|
var result2 = keysFunc(object);
|
|
@@ -1371,7 +1375,7 @@ var string = (() => {
|
|
|
1371
1375
|
}
|
|
1372
1376
|
function baseGetTag(value) {
|
|
1373
1377
|
if (value == null) {
|
|
1374
|
-
return value ===
|
|
1378
|
+
return value === undefined2 ? undefinedTag : nullTag;
|
|
1375
1379
|
}
|
|
1376
1380
|
return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value);
|
|
1377
1381
|
}
|
|
@@ -1395,7 +1399,7 @@ var string = (() => {
|
|
|
1395
1399
|
array = arrayMap(array, baseUnary(iteratee2));
|
|
1396
1400
|
}
|
|
1397
1401
|
maxLength = nativeMin(array.length, maxLength);
|
|
1398
|
-
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) :
|
|
1402
|
+
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined2;
|
|
1399
1403
|
}
|
|
1400
1404
|
array = arrays[0];
|
|
1401
1405
|
var index = -1, seen = caches[0];
|
|
@@ -1429,7 +1433,7 @@ var string = (() => {
|
|
|
1429
1433
|
path = castPath(path, object);
|
|
1430
1434
|
object = parent(object, path);
|
|
1431
1435
|
var func = object == null ? object : object[toKey(last(path))];
|
|
1432
|
-
return func == null ?
|
|
1436
|
+
return func == null ? undefined2 : apply(func, object, args);
|
|
1433
1437
|
}
|
|
1434
1438
|
function baseIsArguments(value) {
|
|
1435
1439
|
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
@@ -1498,7 +1502,7 @@ var string = (() => {
|
|
|
1498
1502
|
data = matchData[index];
|
|
1499
1503
|
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
1500
1504
|
if (noCustomizer && data[2]) {
|
|
1501
|
-
if (objValue ===
|
|
1505
|
+
if (objValue === undefined2 && !(key in object)) {
|
|
1502
1506
|
return false;
|
|
1503
1507
|
}
|
|
1504
1508
|
} else {
|
|
@@ -1506,7 +1510,7 @@ var string = (() => {
|
|
|
1506
1510
|
if (customizer) {
|
|
1507
1511
|
var result2 = customizer(objValue, srcValue, key, object, source, stack);
|
|
1508
1512
|
}
|
|
1509
|
-
if (!(result2 ===
|
|
1513
|
+
if (!(result2 === undefined2 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) {
|
|
1510
1514
|
return false;
|
|
1511
1515
|
}
|
|
1512
1516
|
}
|
|
@@ -1590,7 +1594,7 @@ var string = (() => {
|
|
|
1590
1594
|
}
|
|
1591
1595
|
return function(object) {
|
|
1592
1596
|
var objValue = get(object, path);
|
|
1593
|
-
return objValue ===
|
|
1597
|
+
return objValue === undefined2 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1594
1598
|
};
|
|
1595
1599
|
}
|
|
1596
1600
|
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
@@ -1602,8 +1606,8 @@ var string = (() => {
|
|
|
1602
1606
|
if (isObject(srcValue)) {
|
|
1603
1607
|
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
1604
1608
|
} else {
|
|
1605
|
-
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) :
|
|
1606
|
-
if (newValue ===
|
|
1609
|
+
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined2;
|
|
1610
|
+
if (newValue === undefined2) {
|
|
1607
1611
|
newValue = srcValue;
|
|
1608
1612
|
}
|
|
1609
1613
|
assignMergeValue(object, key, newValue);
|
|
@@ -1616,8 +1620,8 @@ var string = (() => {
|
|
|
1616
1620
|
assignMergeValue(object, key, stacked);
|
|
1617
1621
|
return;
|
|
1618
1622
|
}
|
|
1619
|
-
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) :
|
|
1620
|
-
var isCommon = newValue ===
|
|
1623
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined2;
|
|
1624
|
+
var isCommon = newValue === undefined2;
|
|
1621
1625
|
if (isCommon) {
|
|
1622
1626
|
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
1623
1627
|
newValue = srcValue;
|
|
@@ -1659,7 +1663,7 @@ var string = (() => {
|
|
|
1659
1663
|
return;
|
|
1660
1664
|
}
|
|
1661
1665
|
n += n < 0 ? length : 0;
|
|
1662
|
-
return isIndex(n, length) ? array[n] :
|
|
1666
|
+
return isIndex(n, length) ? array[n] : undefined2;
|
|
1663
1667
|
}
|
|
1664
1668
|
function baseOrderBy(collection, iteratees, orders) {
|
|
1665
1669
|
if (iteratees.length) {
|
|
@@ -1790,8 +1794,8 @@ var string = (() => {
|
|
|
1790
1794
|
}
|
|
1791
1795
|
if (index != lastIndex) {
|
|
1792
1796
|
var objValue = nested[key];
|
|
1793
|
-
newValue = customizer ? customizer(objValue, key, nested) :
|
|
1794
|
-
if (newValue ===
|
|
1797
|
+
newValue = customizer ? customizer(objValue, key, nested) : undefined2;
|
|
1798
|
+
if (newValue === undefined2) {
|
|
1795
1799
|
newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
|
|
1796
1800
|
}
|
|
1797
1801
|
}
|
|
@@ -1861,9 +1865,9 @@ var string = (() => {
|
|
|
1861
1865
|
return 0;
|
|
1862
1866
|
}
|
|
1863
1867
|
value = iteratee2(value);
|
|
1864
|
-
var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value ===
|
|
1868
|
+
var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined2;
|
|
1865
1869
|
while (low < high) {
|
|
1866
|
-
var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !==
|
|
1870
|
+
var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined2, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed);
|
|
1867
1871
|
if (valIsNaN) {
|
|
1868
1872
|
var setLow = retHighest || othIsReflexive;
|
|
1869
1873
|
} else if (valIsUndefined) {
|
|
@@ -1964,19 +1968,12 @@ var string = (() => {
|
|
|
1964
1968
|
if (!length) {
|
|
1965
1969
|
return true;
|
|
1966
1970
|
}
|
|
1967
|
-
var isRootPrimitive = object == null || typeof object !== "object" && typeof object !== "function";
|
|
1968
1971
|
while (++index < length) {
|
|
1969
|
-
var key = path[index];
|
|
1970
|
-
if (typeof key !== "string") {
|
|
1971
|
-
continue;
|
|
1972
|
-
}
|
|
1972
|
+
var key = toKey(path[index]);
|
|
1973
1973
|
if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
|
|
1974
1974
|
return false;
|
|
1975
1975
|
}
|
|
1976
|
-
if (key === "constructor"
|
|
1977
|
-
if (isRootPrimitive && index === 0) {
|
|
1978
|
-
continue;
|
|
1979
|
-
}
|
|
1976
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) {
|
|
1980
1977
|
return false;
|
|
1981
1978
|
}
|
|
1982
1979
|
}
|
|
@@ -2020,7 +2017,7 @@ var string = (() => {
|
|
|
2020
2017
|
function baseZipObject(props, values2, assignFunc) {
|
|
2021
2018
|
var index = -1, length = props.length, valsLength = values2.length, result2 = {};
|
|
2022
2019
|
while (++index < length) {
|
|
2023
|
-
var value = index < valsLength ? values2[index] :
|
|
2020
|
+
var value = index < valsLength ? values2[index] : undefined2;
|
|
2024
2021
|
assignFunc(result2, props[index], value);
|
|
2025
2022
|
}
|
|
2026
2023
|
return result2;
|
|
@@ -2040,7 +2037,7 @@ var string = (() => {
|
|
|
2040
2037
|
var castRest = baseRest;
|
|
2041
2038
|
function castSlice(array, start, end) {
|
|
2042
2039
|
var length = array.length;
|
|
2043
|
-
end = end ===
|
|
2040
|
+
end = end === undefined2 ? length : end;
|
|
2044
2041
|
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
2045
2042
|
}
|
|
2046
2043
|
var clearTimeout2 = ctxClearTimeout || function(id) {
|
|
@@ -2077,8 +2074,8 @@ var string = (() => {
|
|
|
2077
2074
|
}
|
|
2078
2075
|
function compareAscending(value, other) {
|
|
2079
2076
|
if (value !== other) {
|
|
2080
|
-
var valIsDefined = value !==
|
|
2081
|
-
var othIsDefined = other !==
|
|
2077
|
+
var valIsDefined = value !== undefined2, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value);
|
|
2078
|
+
var othIsDefined = other !== undefined2, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other);
|
|
2082
2079
|
if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {
|
|
2083
2080
|
return 1;
|
|
2084
2081
|
}
|
|
@@ -2147,8 +2144,8 @@ var string = (() => {
|
|
|
2147
2144
|
var index = -1, length = props.length;
|
|
2148
2145
|
while (++index < length) {
|
|
2149
2146
|
var key = props[index];
|
|
2150
|
-
var newValue = customizer ? customizer(object[key], source[key], key, object, source) :
|
|
2151
|
-
if (newValue ===
|
|
2147
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined2;
|
|
2148
|
+
if (newValue === undefined2) {
|
|
2152
2149
|
newValue = source[key];
|
|
2153
2150
|
}
|
|
2154
2151
|
if (isNew) {
|
|
@@ -2173,10 +2170,10 @@ var string = (() => {
|
|
|
2173
2170
|
}
|
|
2174
2171
|
function createAssigner(assigner) {
|
|
2175
2172
|
return baseRest(function(object, sources) {
|
|
2176
|
-
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] :
|
|
2177
|
-
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) :
|
|
2173
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined2, guard = length > 2 ? sources[2] : undefined2;
|
|
2174
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined2;
|
|
2178
2175
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2179
|
-
customizer = length < 3 ?
|
|
2176
|
+
customizer = length < 3 ? undefined2 : customizer;
|
|
2180
2177
|
length = 1;
|
|
2181
2178
|
}
|
|
2182
2179
|
object = Object2(object);
|
|
@@ -2229,7 +2226,7 @@ var string = (() => {
|
|
|
2229
2226
|
function createCaseFirst(methodName) {
|
|
2230
2227
|
return function(string) {
|
|
2231
2228
|
string = toString(string);
|
|
2232
|
-
var strSymbols = hasUnicode(string) ? stringToArray(string) :
|
|
2229
|
+
var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined2;
|
|
2233
2230
|
var chr = strSymbols ? strSymbols[0] : string.charAt(0);
|
|
2234
2231
|
var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1);
|
|
2235
2232
|
return chr[methodName]() + trailing;
|
|
@@ -2280,11 +2277,11 @@ var string = (() => {
|
|
|
2280
2277
|
bitmask,
|
|
2281
2278
|
createHybrid,
|
|
2282
2279
|
wrapper.placeholder,
|
|
2283
|
-
|
|
2280
|
+
undefined2,
|
|
2284
2281
|
args,
|
|
2285
2282
|
holders,
|
|
2286
|
-
|
|
2287
|
-
|
|
2283
|
+
undefined2,
|
|
2284
|
+
undefined2,
|
|
2288
2285
|
arity - length
|
|
2289
2286
|
);
|
|
2290
2287
|
}
|
|
@@ -2304,7 +2301,7 @@ var string = (() => {
|
|
|
2304
2301
|
};
|
|
2305
2302
|
}
|
|
2306
2303
|
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
2307
|
-
return index > -1 ? iterable[iteratee2 ? collection[index] : index] :
|
|
2304
|
+
return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined2;
|
|
2308
2305
|
};
|
|
2309
2306
|
}
|
|
2310
2307
|
function createFlow(fromRight) {
|
|
@@ -2325,7 +2322,7 @@ var string = (() => {
|
|
|
2325
2322
|
index = wrapper ? index : length;
|
|
2326
2323
|
while (++index < length) {
|
|
2327
2324
|
func = funcs[index];
|
|
2328
|
-
var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) :
|
|
2325
|
+
var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined2;
|
|
2329
2326
|
if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
|
|
2330
2327
|
wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
|
|
2331
2328
|
} else {
|
|
@@ -2346,7 +2343,7 @@ var string = (() => {
|
|
|
2346
2343
|
});
|
|
2347
2344
|
}
|
|
2348
2345
|
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
|
|
2349
|
-
var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ?
|
|
2346
|
+
var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined2 : createCtor(func);
|
|
2350
2347
|
function wrapper() {
|
|
2351
2348
|
var length = arguments.length, args = Array2(length), index = length;
|
|
2352
2349
|
while (index--) {
|
|
@@ -2402,14 +2399,14 @@ var string = (() => {
|
|
|
2402
2399
|
function createMathOperation(operator, defaultValue) {
|
|
2403
2400
|
return function(value, other) {
|
|
2404
2401
|
var result2;
|
|
2405
|
-
if (value ===
|
|
2402
|
+
if (value === undefined2 && other === undefined2) {
|
|
2406
2403
|
return defaultValue;
|
|
2407
2404
|
}
|
|
2408
|
-
if (value !==
|
|
2405
|
+
if (value !== undefined2) {
|
|
2409
2406
|
result2 = value;
|
|
2410
2407
|
}
|
|
2411
|
-
if (other !==
|
|
2412
|
-
if (result2 ===
|
|
2408
|
+
if (other !== undefined2) {
|
|
2409
|
+
if (result2 === undefined2) {
|
|
2413
2410
|
return other;
|
|
2414
2411
|
}
|
|
2415
2412
|
if (typeof value == "string" || typeof other == "string") {
|
|
@@ -2436,7 +2433,7 @@ var string = (() => {
|
|
|
2436
2433
|
});
|
|
2437
2434
|
}
|
|
2438
2435
|
function createPadding(length, chars) {
|
|
2439
|
-
chars = chars ===
|
|
2436
|
+
chars = chars === undefined2 ? " " : baseToString(chars);
|
|
2440
2437
|
var charsLength = chars.length;
|
|
2441
2438
|
if (charsLength < 2) {
|
|
2442
2439
|
return charsLength ? baseRepeat(chars, length) : chars;
|
|
@@ -2461,16 +2458,16 @@ var string = (() => {
|
|
|
2461
2458
|
function createRange(fromRight) {
|
|
2462
2459
|
return function(start, end, step) {
|
|
2463
2460
|
if (step && typeof step != "number" && isIterateeCall(start, end, step)) {
|
|
2464
|
-
end = step =
|
|
2461
|
+
end = step = undefined2;
|
|
2465
2462
|
}
|
|
2466
2463
|
start = toFinite(start);
|
|
2467
|
-
if (end ===
|
|
2464
|
+
if (end === undefined2) {
|
|
2468
2465
|
end = start;
|
|
2469
2466
|
start = 0;
|
|
2470
2467
|
} else {
|
|
2471
2468
|
end = toFinite(end);
|
|
2472
2469
|
}
|
|
2473
|
-
step = step ===
|
|
2470
|
+
step = step === undefined2 ? start < end ? 1 : -1 : toFinite(step);
|
|
2474
2471
|
return baseRange(start, end, step, fromRight);
|
|
2475
2472
|
};
|
|
2476
2473
|
}
|
|
@@ -2484,7 +2481,7 @@ var string = (() => {
|
|
|
2484
2481
|
};
|
|
2485
2482
|
}
|
|
2486
2483
|
function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) {
|
|
2487
|
-
var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders :
|
|
2484
|
+
var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined2, newHoldersRight = isCurry ? undefined2 : holders, newPartials = isCurry ? partials : undefined2, newPartialsRight = isCurry ? undefined2 : partials;
|
|
2488
2485
|
bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG;
|
|
2489
2486
|
bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
|
|
2490
2487
|
if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
|
|
@@ -2502,7 +2499,7 @@ var string = (() => {
|
|
|
2502
2499
|
ary2,
|
|
2503
2500
|
arity
|
|
2504
2501
|
];
|
|
2505
|
-
var result2 = wrapFunc.apply(
|
|
2502
|
+
var result2 = wrapFunc.apply(undefined2, newData);
|
|
2506
2503
|
if (isLaziable(func)) {
|
|
2507
2504
|
setData(result2, newData);
|
|
2508
2505
|
}
|
|
@@ -2545,16 +2542,16 @@ var string = (() => {
|
|
|
2545
2542
|
var length = partials ? partials.length : 0;
|
|
2546
2543
|
if (!length) {
|
|
2547
2544
|
bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
|
|
2548
|
-
partials = holders =
|
|
2545
|
+
partials = holders = undefined2;
|
|
2549
2546
|
}
|
|
2550
|
-
ary2 = ary2 ===
|
|
2551
|
-
arity = arity ===
|
|
2547
|
+
ary2 = ary2 === undefined2 ? ary2 : nativeMax(toInteger(ary2), 0);
|
|
2548
|
+
arity = arity === undefined2 ? arity : toInteger(arity);
|
|
2552
2549
|
length -= holders ? holders.length : 0;
|
|
2553
2550
|
if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
|
|
2554
2551
|
var partialsRight = partials, holdersRight = holders;
|
|
2555
|
-
partials = holders =
|
|
2552
|
+
partials = holders = undefined2;
|
|
2556
2553
|
}
|
|
2557
|
-
var data = isBindKey ?
|
|
2554
|
+
var data = isBindKey ? undefined2 : getData(func);
|
|
2558
2555
|
var newData = [
|
|
2559
2556
|
func,
|
|
2560
2557
|
bitmask,
|
|
@@ -2575,7 +2572,7 @@ var string = (() => {
|
|
|
2575
2572
|
thisArg = newData[2];
|
|
2576
2573
|
partials = newData[3];
|
|
2577
2574
|
holders = newData[4];
|
|
2578
|
-
arity = newData[9] = newData[9] ===
|
|
2575
|
+
arity = newData[9] = newData[9] === undefined2 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
|
|
2579
2576
|
if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
|
|
2580
2577
|
bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
|
|
2581
2578
|
}
|
|
@@ -2586,13 +2583,13 @@ var string = (() => {
|
|
|
2586
2583
|
} else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
|
|
2587
2584
|
result2 = createPartial(func, bitmask, thisArg, partials);
|
|
2588
2585
|
} else {
|
|
2589
|
-
result2 = createHybrid.apply(
|
|
2586
|
+
result2 = createHybrid.apply(undefined2, newData);
|
|
2590
2587
|
}
|
|
2591
2588
|
var setter = data ? baseSetData : setData;
|
|
2592
2589
|
return setWrapToString(setter(result2, newData), func, bitmask);
|
|
2593
2590
|
}
|
|
2594
2591
|
function customDefaultsAssignIn(objValue, srcValue, key, object) {
|
|
2595
|
-
if (objValue ===
|
|
2592
|
+
if (objValue === undefined2 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) {
|
|
2596
2593
|
return srcValue;
|
|
2597
2594
|
}
|
|
2598
2595
|
return objValue;
|
|
@@ -2600,13 +2597,13 @@ var string = (() => {
|
|
|
2600
2597
|
function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
|
|
2601
2598
|
if (isObject(objValue) && isObject(srcValue)) {
|
|
2602
2599
|
stack.set(srcValue, objValue);
|
|
2603
|
-
baseMerge(objValue, srcValue,
|
|
2600
|
+
baseMerge(objValue, srcValue, undefined2, customDefaultsMerge, stack);
|
|
2604
2601
|
stack["delete"](srcValue);
|
|
2605
2602
|
}
|
|
2606
2603
|
return objValue;
|
|
2607
2604
|
}
|
|
2608
2605
|
function customOmitClone(value) {
|
|
2609
|
-
return isPlainObject(value) ?
|
|
2606
|
+
return isPlainObject(value) ? undefined2 : value;
|
|
2610
2607
|
}
|
|
2611
2608
|
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
2612
2609
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
|
@@ -2618,7 +2615,7 @@ var string = (() => {
|
|
|
2618
2615
|
if (arrStacked && othStacked) {
|
|
2619
2616
|
return arrStacked == other && othStacked == array;
|
|
2620
2617
|
}
|
|
2621
|
-
var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() :
|
|
2618
|
+
var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined2;
|
|
2622
2619
|
stack.set(array, other);
|
|
2623
2620
|
stack.set(other, array);
|
|
2624
2621
|
while (++index < arrLength) {
|
|
@@ -2626,7 +2623,7 @@ var string = (() => {
|
|
|
2626
2623
|
if (customizer) {
|
|
2627
2624
|
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
2628
2625
|
}
|
|
2629
|
-
if (compared !==
|
|
2626
|
+
if (compared !== undefined2) {
|
|
2630
2627
|
if (compared) {
|
|
2631
2628
|
continue;
|
|
2632
2629
|
}
|
|
@@ -2724,7 +2721,7 @@ var string = (() => {
|
|
|
2724
2721
|
if (customizer) {
|
|
2725
2722
|
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
2726
2723
|
}
|
|
2727
|
-
if (!(compared ===
|
|
2724
|
+
if (!(compared === undefined2 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
2728
2725
|
result2 = false;
|
|
2729
2726
|
break;
|
|
2730
2727
|
}
|
|
@@ -2741,7 +2738,7 @@ var string = (() => {
|
|
|
2741
2738
|
return result2;
|
|
2742
2739
|
}
|
|
2743
2740
|
function flatRest(func) {
|
|
2744
|
-
return setToString(overRest(func,
|
|
2741
|
+
return setToString(overRest(func, undefined2, flatten), func + "");
|
|
2745
2742
|
}
|
|
2746
2743
|
function getAllKeys(object) {
|
|
2747
2744
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
@@ -2785,12 +2782,12 @@ var string = (() => {
|
|
|
2785
2782
|
}
|
|
2786
2783
|
function getNative(object, key) {
|
|
2787
2784
|
var value = getValue(object, key);
|
|
2788
|
-
return baseIsNative(value) ? value :
|
|
2785
|
+
return baseIsNative(value) ? value : undefined2;
|
|
2789
2786
|
}
|
|
2790
2787
|
function getRawTag(value) {
|
|
2791
2788
|
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
2792
2789
|
try {
|
|
2793
|
-
value[symToStringTag] =
|
|
2790
|
+
value[symToStringTag] = undefined2;
|
|
2794
2791
|
var unmasked = true;
|
|
2795
2792
|
} catch (e) {
|
|
2796
2793
|
}
|
|
@@ -2824,7 +2821,7 @@ var string = (() => {
|
|
|
2824
2821
|
var getTag = baseGetTag;
|
|
2825
2822
|
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
2826
2823
|
getTag = function(value) {
|
|
2827
|
-
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor :
|
|
2824
|
+
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined2, ctorString = Ctor ? toSource(Ctor) : "";
|
|
2828
2825
|
if (ctorString) {
|
|
2829
2826
|
switch (ctorString) {
|
|
2830
2827
|
case dataViewCtorString:
|
|
@@ -2996,7 +2993,7 @@ var string = (() => {
|
|
|
2996
2993
|
if (object == null) {
|
|
2997
2994
|
return false;
|
|
2998
2995
|
}
|
|
2999
|
-
return object[key] === srcValue && (srcValue !==
|
|
2996
|
+
return object[key] === srcValue && (srcValue !== undefined2 || key in Object2(object));
|
|
3000
2997
|
};
|
|
3001
2998
|
}
|
|
3002
2999
|
function memoizeCapped(func) {
|
|
@@ -3058,7 +3055,7 @@ var string = (() => {
|
|
|
3058
3055
|
return nativeObjectToString.call(value);
|
|
3059
3056
|
}
|
|
3060
3057
|
function overRest(func, start, transform2) {
|
|
3061
|
-
start = nativeMax(start ===
|
|
3058
|
+
start = nativeMax(start === undefined2 ? func.length - 1 : start, 0);
|
|
3062
3059
|
return function() {
|
|
3063
3060
|
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
|
|
3064
3061
|
while (++index < length) {
|
|
@@ -3080,7 +3077,7 @@ var string = (() => {
|
|
|
3080
3077
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
3081
3078
|
while (length--) {
|
|
3082
3079
|
var index = indexes[length];
|
|
3083
|
-
array[length] = isIndex(index, arrLength) ? oldArray[index] :
|
|
3080
|
+
array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined2;
|
|
3084
3081
|
}
|
|
3085
3082
|
return array;
|
|
3086
3083
|
}
|
|
@@ -3114,12 +3111,12 @@ var string = (() => {
|
|
|
3114
3111
|
} else {
|
|
3115
3112
|
count = 0;
|
|
3116
3113
|
}
|
|
3117
|
-
return func.apply(
|
|
3114
|
+
return func.apply(undefined2, arguments);
|
|
3118
3115
|
};
|
|
3119
3116
|
}
|
|
3120
3117
|
function shuffleSelf(array, size2) {
|
|
3121
3118
|
var index = -1, length = array.length, lastIndex = length - 1;
|
|
3122
|
-
size2 = size2 ===
|
|
3119
|
+
size2 = size2 === undefined2 ? length : size2;
|
|
3123
3120
|
while (++index < size2) {
|
|
3124
3121
|
var rand = baseRandom(index, lastIndex), value = array[rand];
|
|
3125
3122
|
array[rand] = array[index];
|
|
@@ -3178,7 +3175,7 @@ var string = (() => {
|
|
|
3178
3175
|
return result2;
|
|
3179
3176
|
}
|
|
3180
3177
|
function chunk(array, size2, guard) {
|
|
3181
|
-
if (guard ? isIterateeCall(array, size2, guard) : size2 ===
|
|
3178
|
+
if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined2) {
|
|
3182
3179
|
size2 = 1;
|
|
3183
3180
|
} else {
|
|
3184
3181
|
size2 = nativeMax(toInteger(size2), 0);
|
|
@@ -3220,23 +3217,23 @@ var string = (() => {
|
|
|
3220
3217
|
var differenceBy = baseRest(function(array, values2) {
|
|
3221
3218
|
var iteratee2 = last(values2);
|
|
3222
3219
|
if (isArrayLikeObject(iteratee2)) {
|
|
3223
|
-
iteratee2 =
|
|
3220
|
+
iteratee2 = undefined2;
|
|
3224
3221
|
}
|
|
3225
3222
|
return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)) : [];
|
|
3226
3223
|
});
|
|
3227
3224
|
var differenceWith = baseRest(function(array, values2) {
|
|
3228
3225
|
var comparator = last(values2);
|
|
3229
3226
|
if (isArrayLikeObject(comparator)) {
|
|
3230
|
-
comparator =
|
|
3227
|
+
comparator = undefined2;
|
|
3231
3228
|
}
|
|
3232
|
-
return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true),
|
|
3229
|
+
return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined2, comparator) : [];
|
|
3233
3230
|
});
|
|
3234
3231
|
function drop(array, n, guard) {
|
|
3235
3232
|
var length = array == null ? 0 : array.length;
|
|
3236
3233
|
if (!length) {
|
|
3237
3234
|
return [];
|
|
3238
3235
|
}
|
|
3239
|
-
n = guard || n ===
|
|
3236
|
+
n = guard || n === undefined2 ? 1 : toInteger(n);
|
|
3240
3237
|
return baseSlice(array, n < 0 ? 0 : n, length);
|
|
3241
3238
|
}
|
|
3242
3239
|
function dropRight(array, n, guard) {
|
|
@@ -3244,7 +3241,7 @@ var string = (() => {
|
|
|
3244
3241
|
if (!length) {
|
|
3245
3242
|
return [];
|
|
3246
3243
|
}
|
|
3247
|
-
n = guard || n ===
|
|
3244
|
+
n = guard || n === undefined2 ? 1 : toInteger(n);
|
|
3248
3245
|
n = length - n;
|
|
3249
3246
|
return baseSlice(array, 0, n < 0 ? 0 : n);
|
|
3250
3247
|
}
|
|
@@ -3282,7 +3279,7 @@ var string = (() => {
|
|
|
3282
3279
|
return -1;
|
|
3283
3280
|
}
|
|
3284
3281
|
var index = length - 1;
|
|
3285
|
-
if (fromIndex !==
|
|
3282
|
+
if (fromIndex !== undefined2) {
|
|
3286
3283
|
index = toInteger(fromIndex);
|
|
3287
3284
|
index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
|
|
3288
3285
|
}
|
|
@@ -3301,19 +3298,19 @@ var string = (() => {
|
|
|
3301
3298
|
if (!length) {
|
|
3302
3299
|
return [];
|
|
3303
3300
|
}
|
|
3304
|
-
depth = depth ===
|
|
3301
|
+
depth = depth === undefined2 ? 1 : toInteger(depth);
|
|
3305
3302
|
return baseFlatten(array, depth);
|
|
3306
3303
|
}
|
|
3307
3304
|
function fromPairs(pairs) {
|
|
3308
3305
|
var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
3309
3306
|
while (++index < length) {
|
|
3310
3307
|
var pair = pairs[index];
|
|
3311
|
-
result2
|
|
3308
|
+
baseAssignValue(result2, pair[0], pair[1]);
|
|
3312
3309
|
}
|
|
3313
3310
|
return result2;
|
|
3314
3311
|
}
|
|
3315
3312
|
function head(array) {
|
|
3316
|
-
return array && array.length ? array[0] :
|
|
3313
|
+
return array && array.length ? array[0] : undefined2;
|
|
3317
3314
|
}
|
|
3318
3315
|
function indexOf(array, value, fromIndex) {
|
|
3319
3316
|
var length = array == null ? 0 : array.length;
|
|
@@ -3337,7 +3334,7 @@ var string = (() => {
|
|
|
3337
3334
|
var intersectionBy = baseRest(function(arrays) {
|
|
3338
3335
|
var iteratee2 = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject);
|
|
3339
3336
|
if (iteratee2 === last(mapped)) {
|
|
3340
|
-
iteratee2 =
|
|
3337
|
+
iteratee2 = undefined2;
|
|
3341
3338
|
} else {
|
|
3342
3339
|
mapped.pop();
|
|
3343
3340
|
}
|
|
@@ -3345,18 +3342,18 @@ var string = (() => {
|
|
|
3345
3342
|
});
|
|
3346
3343
|
var intersectionWith = baseRest(function(arrays) {
|
|
3347
3344
|
var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject);
|
|
3348
|
-
comparator = typeof comparator == "function" ? comparator :
|
|
3345
|
+
comparator = typeof comparator == "function" ? comparator : undefined2;
|
|
3349
3346
|
if (comparator) {
|
|
3350
3347
|
mapped.pop();
|
|
3351
3348
|
}
|
|
3352
|
-
return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped,
|
|
3349
|
+
return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : [];
|
|
3353
3350
|
});
|
|
3354
3351
|
function join(array, separator) {
|
|
3355
3352
|
return array == null ? "" : nativeJoin.call(array, separator);
|
|
3356
3353
|
}
|
|
3357
3354
|
function last(array) {
|
|
3358
3355
|
var length = array == null ? 0 : array.length;
|
|
3359
|
-
return length ? array[length - 1] :
|
|
3356
|
+
return length ? array[length - 1] : undefined2;
|
|
3360
3357
|
}
|
|
3361
3358
|
function lastIndexOf(array, value, fromIndex) {
|
|
3362
3359
|
var length = array == null ? 0 : array.length;
|
|
@@ -3364,14 +3361,14 @@ var string = (() => {
|
|
|
3364
3361
|
return -1;
|
|
3365
3362
|
}
|
|
3366
3363
|
var index = length;
|
|
3367
|
-
if (fromIndex !==
|
|
3364
|
+
if (fromIndex !== undefined2) {
|
|
3368
3365
|
index = toInteger(fromIndex);
|
|
3369
3366
|
index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
|
|
3370
3367
|
}
|
|
3371
3368
|
return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true);
|
|
3372
3369
|
}
|
|
3373
3370
|
function nth(array, n) {
|
|
3374
|
-
return array && array.length ? baseNth(array, toInteger(n)) :
|
|
3371
|
+
return array && array.length ? baseNth(array, toInteger(n)) : undefined2;
|
|
3375
3372
|
}
|
|
3376
3373
|
var pull = baseRest(pullAll);
|
|
3377
3374
|
function pullAll(array, values2) {
|
|
@@ -3381,7 +3378,7 @@ var string = (() => {
|
|
|
3381
3378
|
return array && array.length && values2 && values2.length ? basePullAll(array, values2, getIteratee(iteratee2, 2)) : array;
|
|
3382
3379
|
}
|
|
3383
3380
|
function pullAllWith(array, values2, comparator) {
|
|
3384
|
-
return array && array.length && values2 && values2.length ? basePullAll(array, values2,
|
|
3381
|
+
return array && array.length && values2 && values2.length ? basePullAll(array, values2, undefined2, comparator) : array;
|
|
3385
3382
|
}
|
|
3386
3383
|
var pullAt = flatRest(function(array, indexes) {
|
|
3387
3384
|
var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
|
|
@@ -3420,7 +3417,7 @@ var string = (() => {
|
|
|
3420
3417
|
end = length;
|
|
3421
3418
|
} else {
|
|
3422
3419
|
start = start == null ? 0 : toInteger(start);
|
|
3423
|
-
end = end ===
|
|
3420
|
+
end = end === undefined2 ? length : toInteger(end);
|
|
3424
3421
|
}
|
|
3425
3422
|
return baseSlice(array, start, end);
|
|
3426
3423
|
}
|
|
@@ -3470,7 +3467,7 @@ var string = (() => {
|
|
|
3470
3467
|
if (!(array && array.length)) {
|
|
3471
3468
|
return [];
|
|
3472
3469
|
}
|
|
3473
|
-
n = guard || n ===
|
|
3470
|
+
n = guard || n === undefined2 ? 1 : toInteger(n);
|
|
3474
3471
|
return baseSlice(array, 0, n < 0 ? 0 : n);
|
|
3475
3472
|
}
|
|
3476
3473
|
function takeRight(array, n, guard) {
|
|
@@ -3478,7 +3475,7 @@ var string = (() => {
|
|
|
3478
3475
|
if (!length) {
|
|
3479
3476
|
return [];
|
|
3480
3477
|
}
|
|
3481
|
-
n = guard || n ===
|
|
3478
|
+
n = guard || n === undefined2 ? 1 : toInteger(n);
|
|
3482
3479
|
n = length - n;
|
|
3483
3480
|
return baseSlice(array, n < 0 ? 0 : n, length);
|
|
3484
3481
|
}
|
|
@@ -3494,14 +3491,14 @@ var string = (() => {
|
|
|
3494
3491
|
var unionBy = baseRest(function(arrays) {
|
|
3495
3492
|
var iteratee2 = last(arrays);
|
|
3496
3493
|
if (isArrayLikeObject(iteratee2)) {
|
|
3497
|
-
iteratee2 =
|
|
3494
|
+
iteratee2 = undefined2;
|
|
3498
3495
|
}
|
|
3499
3496
|
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2));
|
|
3500
3497
|
});
|
|
3501
3498
|
var unionWith = baseRest(function(arrays) {
|
|
3502
3499
|
var comparator = last(arrays);
|
|
3503
|
-
comparator = typeof comparator == "function" ? comparator :
|
|
3504
|
-
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true),
|
|
3500
|
+
comparator = typeof comparator == "function" ? comparator : undefined2;
|
|
3501
|
+
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined2, comparator);
|
|
3505
3502
|
});
|
|
3506
3503
|
function uniq(array) {
|
|
3507
3504
|
return array && array.length ? baseUniq(array) : [];
|
|
@@ -3510,8 +3507,8 @@ var string = (() => {
|
|
|
3510
3507
|
return array && array.length ? baseUniq(array, getIteratee(iteratee2, 2)) : [];
|
|
3511
3508
|
}
|
|
3512
3509
|
function uniqWith(array, comparator) {
|
|
3513
|
-
comparator = typeof comparator == "function" ? comparator :
|
|
3514
|
-
return array && array.length ? baseUniq(array,
|
|
3510
|
+
comparator = typeof comparator == "function" ? comparator : undefined2;
|
|
3511
|
+
return array && array.length ? baseUniq(array, undefined2, comparator) : [];
|
|
3515
3512
|
}
|
|
3516
3513
|
function unzip(array) {
|
|
3517
3514
|
if (!(array && array.length)) {
|
|
@@ -3537,7 +3534,7 @@ var string = (() => {
|
|
|
3537
3534
|
return result2;
|
|
3538
3535
|
}
|
|
3539
3536
|
return arrayMap(result2, function(group) {
|
|
3540
|
-
return apply(iteratee2,
|
|
3537
|
+
return apply(iteratee2, undefined2, group);
|
|
3541
3538
|
});
|
|
3542
3539
|
}
|
|
3543
3540
|
var without = baseRest(function(array, values2) {
|
|
@@ -3549,14 +3546,14 @@ var string = (() => {
|
|
|
3549
3546
|
var xorBy = baseRest(function(arrays) {
|
|
3550
3547
|
var iteratee2 = last(arrays);
|
|
3551
3548
|
if (isArrayLikeObject(iteratee2)) {
|
|
3552
|
-
iteratee2 =
|
|
3549
|
+
iteratee2 = undefined2;
|
|
3553
3550
|
}
|
|
3554
3551
|
return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2));
|
|
3555
3552
|
});
|
|
3556
3553
|
var xorWith = baseRest(function(arrays) {
|
|
3557
3554
|
var comparator = last(arrays);
|
|
3558
|
-
comparator = typeof comparator == "function" ? comparator :
|
|
3559
|
-
return baseXor(arrayFilter(arrays, isArrayLikeObject),
|
|
3555
|
+
comparator = typeof comparator == "function" ? comparator : undefined2;
|
|
3556
|
+
return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined2, comparator);
|
|
3560
3557
|
});
|
|
3561
3558
|
var zip = baseRest(unzip);
|
|
3562
3559
|
function zipObject(props, values2) {
|
|
@@ -3566,8 +3563,8 @@ var string = (() => {
|
|
|
3566
3563
|
return baseZipObject(props || [], values2 || [], baseSet);
|
|
3567
3564
|
}
|
|
3568
3565
|
var zipWith = baseRest(function(arrays) {
|
|
3569
|
-
var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] :
|
|
3570
|
-
iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) :
|
|
3566
|
+
var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined2;
|
|
3567
|
+
iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined2;
|
|
3571
3568
|
return unzipWith(arrays, iteratee2);
|
|
3572
3569
|
});
|
|
3573
3570
|
function chain(value) {
|
|
@@ -3593,11 +3590,11 @@ var string = (() => {
|
|
|
3593
3590
|
value.__actions__.push({
|
|
3594
3591
|
"func": thru,
|
|
3595
3592
|
"args": [interceptor],
|
|
3596
|
-
"thisArg":
|
|
3593
|
+
"thisArg": undefined2
|
|
3597
3594
|
});
|
|
3598
3595
|
return new LodashWrapper(value, this.__chain__).thru(function(array) {
|
|
3599
3596
|
if (length && !array.length) {
|
|
3600
|
-
array.push(
|
|
3597
|
+
array.push(undefined2);
|
|
3601
3598
|
}
|
|
3602
3599
|
return array;
|
|
3603
3600
|
});
|
|
@@ -3609,10 +3606,10 @@ var string = (() => {
|
|
|
3609
3606
|
return new LodashWrapper(this.value(), this.__chain__);
|
|
3610
3607
|
}
|
|
3611
3608
|
function wrapperNext() {
|
|
3612
|
-
if (this.__values__ ===
|
|
3609
|
+
if (this.__values__ === undefined2) {
|
|
3613
3610
|
this.__values__ = toArray(this.value());
|
|
3614
3611
|
}
|
|
3615
|
-
var done = this.__index__ >= this.__values__.length, value = done ?
|
|
3612
|
+
var done = this.__index__ >= this.__values__.length, value = done ? undefined2 : this.__values__[this.__index__++];
|
|
3616
3613
|
return { "done": done, "value": value };
|
|
3617
3614
|
}
|
|
3618
3615
|
function wrapperToIterator() {
|
|
@@ -3623,7 +3620,7 @@ var string = (() => {
|
|
|
3623
3620
|
while (parent2 instanceof baseLodash) {
|
|
3624
3621
|
var clone2 = wrapperClone(parent2);
|
|
3625
3622
|
clone2.__index__ = 0;
|
|
3626
|
-
clone2.__values__ =
|
|
3623
|
+
clone2.__values__ = undefined2;
|
|
3627
3624
|
if (result2) {
|
|
3628
3625
|
previous.__wrapped__ = clone2;
|
|
3629
3626
|
} else {
|
|
@@ -3646,7 +3643,7 @@ var string = (() => {
|
|
|
3646
3643
|
wrapped.__actions__.push({
|
|
3647
3644
|
"func": thru,
|
|
3648
3645
|
"args": [reverse],
|
|
3649
|
-
"thisArg":
|
|
3646
|
+
"thisArg": undefined2
|
|
3650
3647
|
});
|
|
3651
3648
|
return new LodashWrapper(wrapped, this.__chain__);
|
|
3652
3649
|
}
|
|
@@ -3665,7 +3662,7 @@ var string = (() => {
|
|
|
3665
3662
|
function every(collection, predicate, guard) {
|
|
3666
3663
|
var func = isArray(collection) ? arrayEvery : baseEvery;
|
|
3667
3664
|
if (guard && isIterateeCall(collection, predicate, guard)) {
|
|
3668
|
-
predicate =
|
|
3665
|
+
predicate = undefined2;
|
|
3669
3666
|
}
|
|
3670
3667
|
return func(collection, getIteratee(predicate, 3));
|
|
3671
3668
|
}
|
|
@@ -3682,7 +3679,7 @@ var string = (() => {
|
|
|
3682
3679
|
return baseFlatten(map(collection, iteratee2), INFINITY);
|
|
3683
3680
|
}
|
|
3684
3681
|
function flatMapDepth(collection, iteratee2, depth) {
|
|
3685
|
-
depth = depth ===
|
|
3682
|
+
depth = depth === undefined2 ? 1 : toInteger(depth);
|
|
3686
3683
|
return baseFlatten(map(collection, iteratee2), depth);
|
|
3687
3684
|
}
|
|
3688
3685
|
function forEach(collection, iteratee2) {
|
|
@@ -3730,7 +3727,7 @@ var string = (() => {
|
|
|
3730
3727
|
if (!isArray(iteratees)) {
|
|
3731
3728
|
iteratees = iteratees == null ? [] : [iteratees];
|
|
3732
3729
|
}
|
|
3733
|
-
orders = guard ?
|
|
3730
|
+
orders = guard ? undefined2 : orders;
|
|
3734
3731
|
if (!isArray(orders)) {
|
|
3735
3732
|
orders = orders == null ? [] : [orders];
|
|
3736
3733
|
}
|
|
@@ -3758,7 +3755,7 @@ var string = (() => {
|
|
|
3758
3755
|
return func(collection);
|
|
3759
3756
|
}
|
|
3760
3757
|
function sampleSize(collection, n, guard) {
|
|
3761
|
-
if (guard ? isIterateeCall(collection, n, guard) : n ===
|
|
3758
|
+
if (guard ? isIterateeCall(collection, n, guard) : n === undefined2) {
|
|
3762
3759
|
n = 1;
|
|
3763
3760
|
} else {
|
|
3764
3761
|
n = toInteger(n);
|
|
@@ -3786,7 +3783,7 @@ var string = (() => {
|
|
|
3786
3783
|
function some(collection, predicate, guard) {
|
|
3787
3784
|
var func = isArray(collection) ? arraySome : baseSome;
|
|
3788
3785
|
if (guard && isIterateeCall(collection, predicate, guard)) {
|
|
3789
|
-
predicate =
|
|
3786
|
+
predicate = undefined2;
|
|
3790
3787
|
}
|
|
3791
3788
|
return func(collection, getIteratee(predicate, 3));
|
|
3792
3789
|
}
|
|
@@ -3817,9 +3814,9 @@ var string = (() => {
|
|
|
3817
3814
|
};
|
|
3818
3815
|
}
|
|
3819
3816
|
function ary(func, n, guard) {
|
|
3820
|
-
n = guard ?
|
|
3817
|
+
n = guard ? undefined2 : n;
|
|
3821
3818
|
n = func && n == null ? func.length : n;
|
|
3822
|
-
return createWrap(func, WRAP_ARY_FLAG,
|
|
3819
|
+
return createWrap(func, WRAP_ARY_FLAG, undefined2, undefined2, undefined2, undefined2, n);
|
|
3823
3820
|
}
|
|
3824
3821
|
function before(n, func) {
|
|
3825
3822
|
var result2;
|
|
@@ -3832,7 +3829,7 @@ var string = (() => {
|
|
|
3832
3829
|
result2 = func.apply(this, arguments);
|
|
3833
3830
|
}
|
|
3834
3831
|
if (n <= 1) {
|
|
3835
|
-
func =
|
|
3832
|
+
func = undefined2;
|
|
3836
3833
|
}
|
|
3837
3834
|
return result2;
|
|
3838
3835
|
};
|
|
@@ -3854,14 +3851,14 @@ var string = (() => {
|
|
|
3854
3851
|
return createWrap(key, bitmask, object, partials, holders);
|
|
3855
3852
|
});
|
|
3856
3853
|
function curry(func, arity, guard) {
|
|
3857
|
-
arity = guard ?
|
|
3858
|
-
var result2 = createWrap(func, WRAP_CURRY_FLAG,
|
|
3854
|
+
arity = guard ? undefined2 : arity;
|
|
3855
|
+
var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity);
|
|
3859
3856
|
result2.placeholder = curry.placeholder;
|
|
3860
3857
|
return result2;
|
|
3861
3858
|
}
|
|
3862
3859
|
function curryRight(func, arity, guard) {
|
|
3863
|
-
arity = guard ?
|
|
3864
|
-
var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG,
|
|
3860
|
+
arity = guard ? undefined2 : arity;
|
|
3861
|
+
var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity);
|
|
3865
3862
|
result2.placeholder = curryRight.placeholder;
|
|
3866
3863
|
return result2;
|
|
3867
3864
|
}
|
|
@@ -3879,7 +3876,7 @@ var string = (() => {
|
|
|
3879
3876
|
}
|
|
3880
3877
|
function invokeFunc(time) {
|
|
3881
3878
|
var args = lastArgs, thisArg = lastThis;
|
|
3882
|
-
lastArgs = lastThis =
|
|
3879
|
+
lastArgs = lastThis = undefined2;
|
|
3883
3880
|
lastInvokeTime = time;
|
|
3884
3881
|
result2 = func.apply(thisArg, args);
|
|
3885
3882
|
return result2;
|
|
@@ -3895,7 +3892,7 @@ var string = (() => {
|
|
|
3895
3892
|
}
|
|
3896
3893
|
function shouldInvoke(time) {
|
|
3897
3894
|
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
3898
|
-
return lastCallTime ===
|
|
3895
|
+
return lastCallTime === undefined2 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
3899
3896
|
}
|
|
3900
3897
|
function timerExpired() {
|
|
3901
3898
|
var time = now();
|
|
@@ -3905,22 +3902,22 @@ var string = (() => {
|
|
|
3905
3902
|
timerId = setTimeout2(timerExpired, remainingWait(time));
|
|
3906
3903
|
}
|
|
3907
3904
|
function trailingEdge(time) {
|
|
3908
|
-
timerId =
|
|
3905
|
+
timerId = undefined2;
|
|
3909
3906
|
if (trailing && lastArgs) {
|
|
3910
3907
|
return invokeFunc(time);
|
|
3911
3908
|
}
|
|
3912
|
-
lastArgs = lastThis =
|
|
3909
|
+
lastArgs = lastThis = undefined2;
|
|
3913
3910
|
return result2;
|
|
3914
3911
|
}
|
|
3915
3912
|
function cancel() {
|
|
3916
|
-
if (timerId !==
|
|
3913
|
+
if (timerId !== undefined2) {
|
|
3917
3914
|
clearTimeout2(timerId);
|
|
3918
3915
|
}
|
|
3919
3916
|
lastInvokeTime = 0;
|
|
3920
|
-
lastArgs = lastCallTime = lastThis = timerId =
|
|
3917
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined2;
|
|
3921
3918
|
}
|
|
3922
3919
|
function flush() {
|
|
3923
|
-
return timerId ===
|
|
3920
|
+
return timerId === undefined2 ? result2 : trailingEdge(now());
|
|
3924
3921
|
}
|
|
3925
3922
|
function debounced() {
|
|
3926
3923
|
var time = now(), isInvoking = shouldInvoke(time);
|
|
@@ -3928,7 +3925,7 @@ var string = (() => {
|
|
|
3928
3925
|
lastThis = this;
|
|
3929
3926
|
lastCallTime = time;
|
|
3930
3927
|
if (isInvoking) {
|
|
3931
|
-
if (timerId ===
|
|
3928
|
+
if (timerId === undefined2) {
|
|
3932
3929
|
return leadingEdge(lastCallTime);
|
|
3933
3930
|
}
|
|
3934
3931
|
if (maxing) {
|
|
@@ -3937,7 +3934,7 @@ var string = (() => {
|
|
|
3937
3934
|
return invokeFunc(lastCallTime);
|
|
3938
3935
|
}
|
|
3939
3936
|
}
|
|
3940
|
-
if (timerId ===
|
|
3937
|
+
if (timerId === undefined2) {
|
|
3941
3938
|
timerId = setTimeout2(timerExpired, wait);
|
|
3942
3939
|
}
|
|
3943
3940
|
return result2;
|
|
@@ -4007,20 +4004,20 @@ var string = (() => {
|
|
|
4007
4004
|
});
|
|
4008
4005
|
var partial = baseRest(function(func, partials) {
|
|
4009
4006
|
var holders = replaceHolders(partials, getHolder(partial));
|
|
4010
|
-
return createWrap(func, WRAP_PARTIAL_FLAG,
|
|
4007
|
+
return createWrap(func, WRAP_PARTIAL_FLAG, undefined2, partials, holders);
|
|
4011
4008
|
});
|
|
4012
4009
|
var partialRight = baseRest(function(func, partials) {
|
|
4013
4010
|
var holders = replaceHolders(partials, getHolder(partialRight));
|
|
4014
|
-
return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG,
|
|
4011
|
+
return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined2, partials, holders);
|
|
4015
4012
|
});
|
|
4016
4013
|
var rearg = flatRest(function(func, indexes) {
|
|
4017
|
-
return createWrap(func, WRAP_REARG_FLAG,
|
|
4014
|
+
return createWrap(func, WRAP_REARG_FLAG, undefined2, undefined2, undefined2, indexes);
|
|
4018
4015
|
});
|
|
4019
4016
|
function rest(func, start) {
|
|
4020
4017
|
if (typeof func != "function") {
|
|
4021
4018
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4022
4019
|
}
|
|
4023
|
-
start = start ===
|
|
4020
|
+
start = start === undefined2 ? start : toInteger(start);
|
|
4024
4021
|
return baseRest(func, start);
|
|
4025
4022
|
}
|
|
4026
4023
|
function spread(func, start) {
|
|
@@ -4068,14 +4065,14 @@ var string = (() => {
|
|
|
4068
4065
|
return baseClone(value, CLONE_SYMBOLS_FLAG);
|
|
4069
4066
|
}
|
|
4070
4067
|
function cloneWith(value, customizer) {
|
|
4071
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4068
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4072
4069
|
return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
|
|
4073
4070
|
}
|
|
4074
4071
|
function cloneDeep(value) {
|
|
4075
4072
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
4076
4073
|
}
|
|
4077
4074
|
function cloneDeepWith(value, customizer) {
|
|
4078
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4075
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4079
4076
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
|
|
4080
4077
|
}
|
|
4081
4078
|
function conformsTo(object, source) {
|
|
@@ -4134,9 +4131,9 @@ var string = (() => {
|
|
|
4134
4131
|
return baseIsEqual(value, other);
|
|
4135
4132
|
}
|
|
4136
4133
|
function isEqualWith(value, other, customizer) {
|
|
4137
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4138
|
-
var result2 = customizer ? customizer(value, other) :
|
|
4139
|
-
return result2 ===
|
|
4134
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4135
|
+
var result2 = customizer ? customizer(value, other) : undefined2;
|
|
4136
|
+
return result2 === undefined2 ? baseIsEqual(value, other, undefined2, customizer) : !!result2;
|
|
4140
4137
|
}
|
|
4141
4138
|
function isError(value) {
|
|
4142
4139
|
if (!isObjectLike(value)) {
|
|
@@ -4173,7 +4170,7 @@ var string = (() => {
|
|
|
4173
4170
|
return object === source || baseIsMatch(object, source, getMatchData(source));
|
|
4174
4171
|
}
|
|
4175
4172
|
function isMatchWith(object, source, customizer) {
|
|
4176
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4173
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4177
4174
|
return baseIsMatch(object, source, getMatchData(source), customizer);
|
|
4178
4175
|
}
|
|
4179
4176
|
function isNaN2(value) {
|
|
@@ -4218,7 +4215,7 @@ var string = (() => {
|
|
|
4218
4215
|
}
|
|
4219
4216
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
4220
4217
|
function isUndefined(value) {
|
|
4221
|
-
return value ===
|
|
4218
|
+
return value === undefined2;
|
|
4222
4219
|
}
|
|
4223
4220
|
function isWeakMap(value) {
|
|
4224
4221
|
return isObjectLike(value) && getTag(value) == weakMapTag;
|
|
@@ -4317,7 +4314,7 @@ var string = (() => {
|
|
|
4317
4314
|
object = Object2(object);
|
|
4318
4315
|
var index = -1;
|
|
4319
4316
|
var length = sources.length;
|
|
4320
|
-
var guard = length > 2 ? sources[2] :
|
|
4317
|
+
var guard = length > 2 ? sources[2] : undefined2;
|
|
4321
4318
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
4322
4319
|
length = 1;
|
|
4323
4320
|
}
|
|
@@ -4329,7 +4326,7 @@ var string = (() => {
|
|
|
4329
4326
|
while (++propsIndex < propsLength) {
|
|
4330
4327
|
var key = props[propsIndex];
|
|
4331
4328
|
var value = object[key];
|
|
4332
|
-
if (value ===
|
|
4329
|
+
if (value === undefined2 || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) {
|
|
4333
4330
|
object[key] = source[key];
|
|
4334
4331
|
}
|
|
4335
4332
|
}
|
|
@@ -4337,8 +4334,8 @@ var string = (() => {
|
|
|
4337
4334
|
return object;
|
|
4338
4335
|
});
|
|
4339
4336
|
var defaultsDeep = baseRest(function(args) {
|
|
4340
|
-
args.push(
|
|
4341
|
-
return apply(mergeWith,
|
|
4337
|
+
args.push(undefined2, customDefaultsMerge);
|
|
4338
|
+
return apply(mergeWith, undefined2, args);
|
|
4342
4339
|
});
|
|
4343
4340
|
function findKey(object, predicate) {
|
|
4344
4341
|
return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
|
|
@@ -4365,8 +4362,8 @@ var string = (() => {
|
|
|
4365
4362
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
4366
4363
|
}
|
|
4367
4364
|
function get(object, path, defaultValue) {
|
|
4368
|
-
var result2 = object == null ?
|
|
4369
|
-
return result2 ===
|
|
4365
|
+
var result2 = object == null ? undefined2 : baseGet(object, path);
|
|
4366
|
+
return result2 === undefined2 ? defaultValue : result2;
|
|
4370
4367
|
}
|
|
4371
4368
|
function has(object, path) {
|
|
4372
4369
|
return object != null && hasPath(object, path, baseHas);
|
|
@@ -4463,11 +4460,11 @@ var string = (() => {
|
|
|
4463
4460
|
var index = -1, length = path.length;
|
|
4464
4461
|
if (!length) {
|
|
4465
4462
|
length = 1;
|
|
4466
|
-
object =
|
|
4463
|
+
object = undefined2;
|
|
4467
4464
|
}
|
|
4468
4465
|
while (++index < length) {
|
|
4469
|
-
var value = object == null ?
|
|
4470
|
-
if (value ===
|
|
4466
|
+
var value = object == null ? undefined2 : object[toKey(path[index])];
|
|
4467
|
+
if (value === undefined2) {
|
|
4471
4468
|
index = length;
|
|
4472
4469
|
value = defaultValue;
|
|
4473
4470
|
}
|
|
@@ -4479,7 +4476,7 @@ var string = (() => {
|
|
|
4479
4476
|
return object == null ? object : baseSet(object, path, value);
|
|
4480
4477
|
}
|
|
4481
4478
|
function setWith(object, path, value, customizer) {
|
|
4482
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4479
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4483
4480
|
return object == null ? object : baseSet(object, path, value, customizer);
|
|
4484
4481
|
}
|
|
4485
4482
|
var toPairs = createToPairs(keys);
|
|
@@ -4509,7 +4506,7 @@ var string = (() => {
|
|
|
4509
4506
|
return object == null ? object : baseUpdate(object, path, castFunction(updater));
|
|
4510
4507
|
}
|
|
4511
4508
|
function updateWith(object, path, updater, customizer) {
|
|
4512
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4509
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4513
4510
|
return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
|
|
4514
4511
|
}
|
|
4515
4512
|
function values(object) {
|
|
@@ -4519,15 +4516,15 @@ var string = (() => {
|
|
|
4519
4516
|
return object == null ? [] : baseValues(object, keysIn(object));
|
|
4520
4517
|
}
|
|
4521
4518
|
function clamp(number, lower, upper) {
|
|
4522
|
-
if (upper ===
|
|
4519
|
+
if (upper === undefined2) {
|
|
4523
4520
|
upper = lower;
|
|
4524
|
-
lower =
|
|
4521
|
+
lower = undefined2;
|
|
4525
4522
|
}
|
|
4526
|
-
if (upper !==
|
|
4523
|
+
if (upper !== undefined2) {
|
|
4527
4524
|
upper = toNumber(upper);
|
|
4528
4525
|
upper = upper === upper ? upper : 0;
|
|
4529
4526
|
}
|
|
4530
|
-
if (lower !==
|
|
4527
|
+
if (lower !== undefined2) {
|
|
4531
4528
|
lower = toNumber(lower);
|
|
4532
4529
|
lower = lower === lower ? lower : 0;
|
|
4533
4530
|
}
|
|
@@ -4535,7 +4532,7 @@ var string = (() => {
|
|
|
4535
4532
|
}
|
|
4536
4533
|
function inRange(number, start, end) {
|
|
4537
4534
|
start = toFinite(start);
|
|
4538
|
-
if (end ===
|
|
4535
|
+
if (end === undefined2) {
|
|
4539
4536
|
end = start;
|
|
4540
4537
|
start = 0;
|
|
4541
4538
|
} else {
|
|
@@ -4546,23 +4543,23 @@ var string = (() => {
|
|
|
4546
4543
|
}
|
|
4547
4544
|
function random(lower, upper, floating) {
|
|
4548
4545
|
if (floating && typeof floating != "boolean" && isIterateeCall(lower, upper, floating)) {
|
|
4549
|
-
upper = floating =
|
|
4546
|
+
upper = floating = undefined2;
|
|
4550
4547
|
}
|
|
4551
|
-
if (floating ===
|
|
4548
|
+
if (floating === undefined2) {
|
|
4552
4549
|
if (typeof upper == "boolean") {
|
|
4553
4550
|
floating = upper;
|
|
4554
|
-
upper =
|
|
4551
|
+
upper = undefined2;
|
|
4555
4552
|
} else if (typeof lower == "boolean") {
|
|
4556
4553
|
floating = lower;
|
|
4557
|
-
lower =
|
|
4554
|
+
lower = undefined2;
|
|
4558
4555
|
}
|
|
4559
4556
|
}
|
|
4560
|
-
if (lower ===
|
|
4557
|
+
if (lower === undefined2 && upper === undefined2) {
|
|
4561
4558
|
lower = 0;
|
|
4562
4559
|
upper = 1;
|
|
4563
4560
|
} else {
|
|
4564
4561
|
lower = toFinite(lower);
|
|
4565
|
-
if (upper ===
|
|
4562
|
+
if (upper === undefined2) {
|
|
4566
4563
|
upper = lower;
|
|
4567
4564
|
lower = 0;
|
|
4568
4565
|
} else {
|
|
@@ -4595,7 +4592,7 @@ var string = (() => {
|
|
|
4595
4592
|
string = toString(string);
|
|
4596
4593
|
target = baseToString(target);
|
|
4597
4594
|
var length = string.length;
|
|
4598
|
-
position = position ===
|
|
4595
|
+
position = position === undefined2 ? length : baseClamp(toInteger(position), 0, length);
|
|
4599
4596
|
var end = position;
|
|
4600
4597
|
position -= target.length;
|
|
4601
4598
|
return position >= 0 && string.slice(position, end) == target;
|
|
@@ -4646,7 +4643,7 @@ var string = (() => {
|
|
|
4646
4643
|
return nativeParseInt(toString(string).replace(reTrimStart, ""), radix || 0);
|
|
4647
4644
|
}
|
|
4648
4645
|
function repeat(string, n, guard) {
|
|
4649
|
-
if (guard ? isIterateeCall(string, n, guard) : n ===
|
|
4646
|
+
if (guard ? isIterateeCall(string, n, guard) : n === undefined2) {
|
|
4650
4647
|
n = 1;
|
|
4651
4648
|
} else {
|
|
4652
4649
|
n = toInteger(n);
|
|
@@ -4662,9 +4659,9 @@ var string = (() => {
|
|
|
4662
4659
|
});
|
|
4663
4660
|
function split(string, separator, limit) {
|
|
4664
4661
|
if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
|
|
4665
|
-
separator = limit =
|
|
4662
|
+
separator = limit = undefined2;
|
|
4666
4663
|
}
|
|
4667
|
-
limit = limit ===
|
|
4664
|
+
limit = limit === undefined2 ? MAX_ARRAY_LENGTH : limit >>> 0;
|
|
4668
4665
|
if (!limit) {
|
|
4669
4666
|
return [];
|
|
4670
4667
|
}
|
|
@@ -4689,11 +4686,16 @@ var string = (() => {
|
|
|
4689
4686
|
function template(string, options, guard) {
|
|
4690
4687
|
var settings = lodash2.templateSettings;
|
|
4691
4688
|
if (guard && isIterateeCall(string, options, guard)) {
|
|
4692
|
-
options =
|
|
4689
|
+
options = undefined2;
|
|
4693
4690
|
}
|
|
4694
4691
|
string = toString(string);
|
|
4695
|
-
options =
|
|
4696
|
-
var imports =
|
|
4692
|
+
options = assignWith({}, options, settings, customDefaultsAssignIn);
|
|
4693
|
+
var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
4694
|
+
arrayEach(importsKeys, function(key) {
|
|
4695
|
+
if (reForbiddenIdentifierChars.test(key)) {
|
|
4696
|
+
throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
|
|
4697
|
+
}
|
|
4698
|
+
});
|
|
4697
4699
|
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
4698
4700
|
var reDelimiters = RegExp2(
|
|
4699
4701
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
@@ -4727,7 +4729,7 @@ var string = (() => {
|
|
|
4727
4729
|
source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
|
|
4728
4730
|
source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}";
|
|
4729
4731
|
var result2 = attempt(function() {
|
|
4730
|
-
return Function2(importsKeys, sourceURL + "return " + source).apply(
|
|
4732
|
+
return Function2(importsKeys, sourceURL + "return " + source).apply(undefined2, importsValues);
|
|
4731
4733
|
});
|
|
4732
4734
|
result2.source = source;
|
|
4733
4735
|
if (isError(result2)) {
|
|
@@ -4743,7 +4745,7 @@ var string = (() => {
|
|
|
4743
4745
|
}
|
|
4744
4746
|
function trim(string, chars, guard) {
|
|
4745
4747
|
string = toString(string);
|
|
4746
|
-
if (string && (guard || chars ===
|
|
4748
|
+
if (string && (guard || chars === undefined2)) {
|
|
4747
4749
|
return baseTrim(string);
|
|
4748
4750
|
}
|
|
4749
4751
|
if (!string || !(chars = baseToString(chars))) {
|
|
@@ -4754,7 +4756,7 @@ var string = (() => {
|
|
|
4754
4756
|
}
|
|
4755
4757
|
function trimEnd(string, chars, guard) {
|
|
4756
4758
|
string = toString(string);
|
|
4757
|
-
if (string && (guard || chars ===
|
|
4759
|
+
if (string && (guard || chars === undefined2)) {
|
|
4758
4760
|
return string.slice(0, trimmedEndIndex(string) + 1);
|
|
4759
4761
|
}
|
|
4760
4762
|
if (!string || !(chars = baseToString(chars))) {
|
|
@@ -4765,7 +4767,7 @@ var string = (() => {
|
|
|
4765
4767
|
}
|
|
4766
4768
|
function trimStart(string, chars, guard) {
|
|
4767
4769
|
string = toString(string);
|
|
4768
|
-
if (string && (guard || chars ===
|
|
4770
|
+
if (string && (guard || chars === undefined2)) {
|
|
4769
4771
|
return string.replace(reTrimStart, "");
|
|
4770
4772
|
}
|
|
4771
4773
|
if (!string || !(chars = baseToString(chars))) {
|
|
@@ -4795,7 +4797,7 @@ var string = (() => {
|
|
|
4795
4797
|
return omission;
|
|
4796
4798
|
}
|
|
4797
4799
|
var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string.slice(0, end);
|
|
4798
|
-
if (separator ===
|
|
4800
|
+
if (separator === undefined2) {
|
|
4799
4801
|
return result2 + omission;
|
|
4800
4802
|
}
|
|
4801
4803
|
if (strSymbols) {
|
|
@@ -4811,7 +4813,7 @@ var string = (() => {
|
|
|
4811
4813
|
while (match = separator.exec(substring)) {
|
|
4812
4814
|
var newEnd = match.index;
|
|
4813
4815
|
}
|
|
4814
|
-
result2 = result2.slice(0, newEnd ===
|
|
4816
|
+
result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
|
|
4815
4817
|
}
|
|
4816
4818
|
} else if (string.indexOf(baseToString(separator), end) != end) {
|
|
4817
4819
|
var index = result2.lastIndexOf(separator);
|
|
@@ -4831,15 +4833,15 @@ var string = (() => {
|
|
|
4831
4833
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
4832
4834
|
function words(string, pattern, guard) {
|
|
4833
4835
|
string = toString(string);
|
|
4834
|
-
pattern = guard ?
|
|
4835
|
-
if (pattern ===
|
|
4836
|
+
pattern = guard ? undefined2 : pattern;
|
|
4837
|
+
if (pattern === undefined2) {
|
|
4836
4838
|
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
4837
4839
|
}
|
|
4838
4840
|
return string.match(pattern) || [];
|
|
4839
4841
|
}
|
|
4840
4842
|
var attempt = baseRest(function(func, args) {
|
|
4841
4843
|
try {
|
|
4842
|
-
return apply(func,
|
|
4844
|
+
return apply(func, undefined2, args);
|
|
4843
4845
|
} catch (e) {
|
|
4844
4846
|
return isError(e) ? e : new Error2(e);
|
|
4845
4847
|
}
|
|
@@ -4953,7 +4955,7 @@ var string = (() => {
|
|
|
4953
4955
|
}
|
|
4954
4956
|
function propertyOf(object) {
|
|
4955
4957
|
return function(path) {
|
|
4956
|
-
return object == null ?
|
|
4958
|
+
return object == null ? undefined2 : baseGet(object, path);
|
|
4957
4959
|
};
|
|
4958
4960
|
}
|
|
4959
4961
|
var range = createRange();
|
|
@@ -5006,10 +5008,10 @@ var string = (() => {
|
|
|
5006
5008
|
}, 1);
|
|
5007
5009
|
var floor = createRound("floor");
|
|
5008
5010
|
function max(array) {
|
|
5009
|
-
return array && array.length ? baseExtremum(array, identity, baseGt) :
|
|
5011
|
+
return array && array.length ? baseExtremum(array, identity, baseGt) : undefined2;
|
|
5010
5012
|
}
|
|
5011
5013
|
function maxBy(array, iteratee2) {
|
|
5012
|
-
return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) :
|
|
5014
|
+
return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined2;
|
|
5013
5015
|
}
|
|
5014
5016
|
function mean(array) {
|
|
5015
5017
|
return baseMean(array, identity);
|
|
@@ -5018,10 +5020,10 @@ var string = (() => {
|
|
|
5018
5020
|
return baseMean(array, getIteratee(iteratee2, 2));
|
|
5019
5021
|
}
|
|
5020
5022
|
function min(array) {
|
|
5021
|
-
return array && array.length ? baseExtremum(array, identity, baseLt) :
|
|
5023
|
+
return array && array.length ? baseExtremum(array, identity, baseLt) : undefined2;
|
|
5022
5024
|
}
|
|
5023
5025
|
function minBy(array, iteratee2) {
|
|
5024
|
-
return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) :
|
|
5026
|
+
return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined2;
|
|
5025
5027
|
}
|
|
5026
5028
|
var multiply = createMathOperation(function(multiplier, multiplicand) {
|
|
5027
5029
|
return multiplier * multiplicand;
|
|
@@ -5357,7 +5359,7 @@ var string = (() => {
|
|
|
5357
5359
|
});
|
|
5358
5360
|
arrayEach(["drop", "take"], function(methodName, index) {
|
|
5359
5361
|
LazyWrapper.prototype[methodName] = function(n) {
|
|
5360
|
-
n = n ===
|
|
5362
|
+
n = n === undefined2 ? 1 : nativeMax(toInteger(n), 0);
|
|
5361
5363
|
var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone();
|
|
5362
5364
|
if (result2.__filtered__) {
|
|
5363
5365
|
result2.__takeCount__ = nativeMin(n, result2.__takeCount__);
|
|
@@ -5428,7 +5430,7 @@ var string = (() => {
|
|
|
5428
5430
|
} else if (start) {
|
|
5429
5431
|
result2 = result2.drop(start);
|
|
5430
5432
|
}
|
|
5431
|
-
if (end !==
|
|
5433
|
+
if (end !== undefined2) {
|
|
5432
5434
|
end = toInteger(end);
|
|
5433
5435
|
result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start);
|
|
5434
5436
|
}
|
|
@@ -5458,7 +5460,7 @@ var string = (() => {
|
|
|
5458
5460
|
if (!retUnwrapped && useLazy) {
|
|
5459
5461
|
value = onlyLazy ? value : new LazyWrapper(this);
|
|
5460
5462
|
var result2 = func.apply(value, args);
|
|
5461
|
-
result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg":
|
|
5463
|
+
result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg": undefined2 });
|
|
5462
5464
|
return new LodashWrapper(result2, chainAll);
|
|
5463
5465
|
}
|
|
5464
5466
|
if (isUnwrapped && onlyLazy) {
|
|
@@ -5491,9 +5493,9 @@ var string = (() => {
|
|
|
5491
5493
|
realNames[key].push({ "name": methodName, "func": lodashFunc });
|
|
5492
5494
|
}
|
|
5493
5495
|
});
|
|
5494
|
-
realNames[createHybrid(
|
|
5496
|
+
realNames[createHybrid(undefined2, WRAP_BIND_KEY_FLAG).name] = [{
|
|
5495
5497
|
"name": "wrapper",
|
|
5496
|
-
"func":
|
|
5498
|
+
"func": undefined2
|
|
5497
5499
|
}];
|
|
5498
5500
|
LazyWrapper.prototype.clone = lazyClone;
|
|
5499
5501
|
LazyWrapper.prototype.reverse = lazyReverse;
|
|
@@ -5535,7 +5537,11 @@ var string = (() => {
|
|
|
5535
5537
|
var __getProtoOf2 = Object.getPrototypeOf;
|
|
5536
5538
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
5537
5539
|
var __commonJS2 = (cb, mod) => function __require() {
|
|
5538
|
-
|
|
5540
|
+
try {
|
|
5541
|
+
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
5542
|
+
} catch (e) {
|
|
5543
|
+
throw mod = 0, e;
|
|
5544
|
+
}
|
|
5539
5545
|
};
|
|
5540
5546
|
var __copyProps2 = (to, from, except, desc) => {
|
|
5541
5547
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -5554,7 +5560,7 @@ var string = (() => {
|
|
|
5554
5560
|
mod
|
|
5555
5561
|
));
|
|
5556
5562
|
var require_constants = __commonJS2({
|
|
5557
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5563
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js"(exports, module2) {
|
|
5558
5564
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
5559
5565
|
var MAX_LENGTH = 256;
|
|
5560
5566
|
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
@@ -5583,26 +5589,26 @@ var string = (() => {
|
|
|
5583
5589
|
}
|
|
5584
5590
|
});
|
|
5585
5591
|
var require_debug = __commonJS2({
|
|
5586
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5592
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js"(exports, module2) {
|
|
5587
5593
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
5588
5594
|
};
|
|
5589
5595
|
module2.exports = debug;
|
|
5590
5596
|
}
|
|
5591
5597
|
});
|
|
5592
5598
|
var require_re = __commonJS2({
|
|
5593
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5599
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js"(exports, module2) {
|
|
5594
5600
|
var {
|
|
5595
5601
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
5596
5602
|
MAX_SAFE_BUILD_LENGTH,
|
|
5597
5603
|
MAX_LENGTH
|
|
5598
5604
|
} = require_constants();
|
|
5599
5605
|
var debug = require_debug();
|
|
5600
|
-
exports
|
|
5601
|
-
var re = exports
|
|
5602
|
-
var safeRe = exports
|
|
5603
|
-
var src = exports
|
|
5604
|
-
var safeSrc = exports
|
|
5605
|
-
var t = exports
|
|
5606
|
+
exports = module2.exports = {};
|
|
5607
|
+
var re = exports.re = [];
|
|
5608
|
+
var safeRe = exports.safeRe = [];
|
|
5609
|
+
var src = exports.src = [];
|
|
5610
|
+
var safeSrc = exports.safeSrc = [];
|
|
5611
|
+
var t = exports.t = {};
|
|
5606
5612
|
var R = 0;
|
|
5607
5613
|
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
5608
5614
|
var safeRegexReplacements = [
|
|
@@ -5655,18 +5661,18 @@ var string = (() => {
|
|
|
5655
5661
|
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
5656
5662
|
createToken("LONETILDE", "(?:~>?)");
|
|
5657
5663
|
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
5658
|
-
exports
|
|
5664
|
+
exports.tildeTrimReplace = "$1~";
|
|
5659
5665
|
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
5660
5666
|
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5661
5667
|
createToken("LONECARET", "(?:\\^)");
|
|
5662
5668
|
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
5663
|
-
exports
|
|
5669
|
+
exports.caretTrimReplace = "$1^";
|
|
5664
5670
|
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
5665
5671
|
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5666
5672
|
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
5667
5673
|
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
5668
5674
|
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
5669
|
-
exports
|
|
5675
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
5670
5676
|
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
5671
5677
|
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
5672
5678
|
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
@@ -5675,7 +5681,7 @@ var string = (() => {
|
|
|
5675
5681
|
}
|
|
5676
5682
|
});
|
|
5677
5683
|
var require_parse_options = __commonJS2({
|
|
5678
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5684
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js"(exports, module2) {
|
|
5679
5685
|
var looseOption = Object.freeze({ loose: true });
|
|
5680
5686
|
var emptyOpts = Object.freeze({});
|
|
5681
5687
|
var parseOptions = (options) => {
|
|
@@ -5691,7 +5697,7 @@ var string = (() => {
|
|
|
5691
5697
|
}
|
|
5692
5698
|
});
|
|
5693
5699
|
var require_identifiers = __commonJS2({
|
|
5694
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5700
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js"(exports, module2) {
|
|
5695
5701
|
var numeric = /^[0-9]+$/;
|
|
5696
5702
|
var compareIdentifiers = (a, b) => {
|
|
5697
5703
|
if (typeof a === "number" && typeof b === "number") {
|
|
@@ -5713,12 +5719,24 @@ var string = (() => {
|
|
|
5713
5719
|
}
|
|
5714
5720
|
});
|
|
5715
5721
|
var require_semver = __commonJS2({
|
|
5716
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5722
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js"(exports, module2) {
|
|
5717
5723
|
var debug = require_debug();
|
|
5718
5724
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
5719
5725
|
var { safeRe: re, t } = require_re();
|
|
5720
5726
|
var parseOptions = require_parse_options();
|
|
5721
5727
|
var { compareIdentifiers } = require_identifiers();
|
|
5728
|
+
var isPrereleaseIdentifier = (prerelease, identifier) => {
|
|
5729
|
+
const identifiers = identifier.split(".");
|
|
5730
|
+
if (identifiers.length > prerelease.length) {
|
|
5731
|
+
return false;
|
|
5732
|
+
}
|
|
5733
|
+
for (let i = 0; i < identifiers.length; i++) {
|
|
5734
|
+
if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) {
|
|
5735
|
+
return false;
|
|
5736
|
+
}
|
|
5737
|
+
}
|
|
5738
|
+
return true;
|
|
5739
|
+
};
|
|
5722
5740
|
var SemVer = class _SemVer {
|
|
5723
5741
|
constructor(version, options) {
|
|
5724
5742
|
options = parseOptions(options);
|
|
@@ -5965,8 +5983,9 @@ var string = (() => {
|
|
|
5965
5983
|
if (identifierBase === false) {
|
|
5966
5984
|
prerelease = [identifier];
|
|
5967
5985
|
}
|
|
5968
|
-
if (
|
|
5969
|
-
|
|
5986
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
5987
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
5988
|
+
if (isNaN(prereleaseBase)) {
|
|
5970
5989
|
this.prerelease = prerelease;
|
|
5971
5990
|
}
|
|
5972
5991
|
} else {
|
|
@@ -5989,7 +6008,7 @@ var string = (() => {
|
|
|
5989
6008
|
}
|
|
5990
6009
|
});
|
|
5991
6010
|
var require_parse = __commonJS2({
|
|
5992
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6011
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js"(exports, module2) {
|
|
5993
6012
|
var SemVer = require_semver();
|
|
5994
6013
|
var parse = (version, options, throwErrors = false) => {
|
|
5995
6014
|
if (version instanceof SemVer) {
|
|
@@ -6008,7 +6027,7 @@ var string = (() => {
|
|
|
6008
6027
|
}
|
|
6009
6028
|
});
|
|
6010
6029
|
var require_valid = __commonJS2({
|
|
6011
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6030
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js"(exports, module2) {
|
|
6012
6031
|
var parse = require_parse();
|
|
6013
6032
|
var valid2 = (version, options) => {
|
|
6014
6033
|
const v = parse(version, options);
|
|
@@ -6018,7 +6037,7 @@ var string = (() => {
|
|
|
6018
6037
|
}
|
|
6019
6038
|
});
|
|
6020
6039
|
var require_clean = __commonJS2({
|
|
6021
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6040
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js"(exports, module2) {
|
|
6022
6041
|
var parse = require_parse();
|
|
6023
6042
|
var clean = (version, options) => {
|
|
6024
6043
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -6028,7 +6047,7 @@ var string = (() => {
|
|
|
6028
6047
|
}
|
|
6029
6048
|
});
|
|
6030
6049
|
var require_inc = __commonJS2({
|
|
6031
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6050
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js"(exports, module2) {
|
|
6032
6051
|
var SemVer = require_semver();
|
|
6033
6052
|
var inc = (version, release, options, identifier, identifierBase) => {
|
|
6034
6053
|
if (typeof options === "string") {
|
|
@@ -6049,7 +6068,7 @@ var string = (() => {
|
|
|
6049
6068
|
}
|
|
6050
6069
|
});
|
|
6051
6070
|
var require_diff = __commonJS2({
|
|
6052
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6071
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js"(exports, module2) {
|
|
6053
6072
|
var parse = require_parse();
|
|
6054
6073
|
var diff = (version1, version2) => {
|
|
6055
6074
|
const v1 = parse(version1, null, true);
|
|
@@ -6090,28 +6109,28 @@ var string = (() => {
|
|
|
6090
6109
|
}
|
|
6091
6110
|
});
|
|
6092
6111
|
var require_major = __commonJS2({
|
|
6093
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6112
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js"(exports, module2) {
|
|
6094
6113
|
var SemVer = require_semver();
|
|
6095
6114
|
var major = (a, loose) => new SemVer(a, loose).major;
|
|
6096
6115
|
module2.exports = major;
|
|
6097
6116
|
}
|
|
6098
6117
|
});
|
|
6099
6118
|
var require_minor = __commonJS2({
|
|
6100
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6119
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js"(exports, module2) {
|
|
6101
6120
|
var SemVer = require_semver();
|
|
6102
6121
|
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
6103
6122
|
module2.exports = minor;
|
|
6104
6123
|
}
|
|
6105
6124
|
});
|
|
6106
6125
|
var require_patch = __commonJS2({
|
|
6107
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6126
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js"(exports, module2) {
|
|
6108
6127
|
var SemVer = require_semver();
|
|
6109
6128
|
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
6110
6129
|
module2.exports = patch;
|
|
6111
6130
|
}
|
|
6112
6131
|
});
|
|
6113
6132
|
var require_prerelease = __commonJS2({
|
|
6114
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6133
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js"(exports, module2) {
|
|
6115
6134
|
var parse = require_parse();
|
|
6116
6135
|
var prerelease = (version, options) => {
|
|
6117
6136
|
const parsed = parse(version, options);
|
|
@@ -6121,28 +6140,28 @@ var string = (() => {
|
|
|
6121
6140
|
}
|
|
6122
6141
|
});
|
|
6123
6142
|
var require_compare = __commonJS2({
|
|
6124
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6143
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js"(exports, module2) {
|
|
6125
6144
|
var SemVer = require_semver();
|
|
6126
6145
|
var compare2 = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
6127
6146
|
module2.exports = compare2;
|
|
6128
6147
|
}
|
|
6129
6148
|
});
|
|
6130
6149
|
var require_rcompare = __commonJS2({
|
|
6131
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6150
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js"(exports, module2) {
|
|
6132
6151
|
var compare2 = require_compare();
|
|
6133
6152
|
var rcompare = (a, b, loose) => compare2(b, a, loose);
|
|
6134
6153
|
module2.exports = rcompare;
|
|
6135
6154
|
}
|
|
6136
6155
|
});
|
|
6137
6156
|
var require_compare_loose = __commonJS2({
|
|
6138
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6157
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js"(exports, module2) {
|
|
6139
6158
|
var compare2 = require_compare();
|
|
6140
6159
|
var compareLoose = (a, b) => compare2(a, b, true);
|
|
6141
6160
|
module2.exports = compareLoose;
|
|
6142
6161
|
}
|
|
6143
6162
|
});
|
|
6144
6163
|
var require_compare_build = __commonJS2({
|
|
6145
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6164
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js"(exports, module2) {
|
|
6146
6165
|
var SemVer = require_semver();
|
|
6147
6166
|
var compareBuild = (a, b, loose) => {
|
|
6148
6167
|
const versionA = new SemVer(a, loose);
|
|
@@ -6153,63 +6172,63 @@ var string = (() => {
|
|
|
6153
6172
|
}
|
|
6154
6173
|
});
|
|
6155
6174
|
var require_sort = __commonJS2({
|
|
6156
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6175
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js"(exports, module2) {
|
|
6157
6176
|
var compareBuild = require_compare_build();
|
|
6158
|
-
var sort = (
|
|
6177
|
+
var sort = (list2, loose) => list2.sort((a, b) => compareBuild(a, b, loose));
|
|
6159
6178
|
module2.exports = sort;
|
|
6160
6179
|
}
|
|
6161
6180
|
});
|
|
6162
6181
|
var require_rsort = __commonJS2({
|
|
6163
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6182
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js"(exports, module2) {
|
|
6164
6183
|
var compareBuild = require_compare_build();
|
|
6165
|
-
var rsort = (
|
|
6184
|
+
var rsort = (list2, loose) => list2.sort((a, b) => compareBuild(b, a, loose));
|
|
6166
6185
|
module2.exports = rsort;
|
|
6167
6186
|
}
|
|
6168
6187
|
});
|
|
6169
6188
|
var require_gt = __commonJS2({
|
|
6170
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6189
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js"(exports, module2) {
|
|
6171
6190
|
var compare2 = require_compare();
|
|
6172
6191
|
var gt = (a, b, loose) => compare2(a, b, loose) > 0;
|
|
6173
6192
|
module2.exports = gt;
|
|
6174
6193
|
}
|
|
6175
6194
|
});
|
|
6176
6195
|
var require_lt = __commonJS2({
|
|
6177
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6196
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js"(exports, module2) {
|
|
6178
6197
|
var compare2 = require_compare();
|
|
6179
6198
|
var lt = (a, b, loose) => compare2(a, b, loose) < 0;
|
|
6180
6199
|
module2.exports = lt;
|
|
6181
6200
|
}
|
|
6182
6201
|
});
|
|
6183
6202
|
var require_eq = __commonJS2({
|
|
6184
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6203
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js"(exports, module2) {
|
|
6185
6204
|
var compare2 = require_compare();
|
|
6186
6205
|
var eq = (a, b, loose) => compare2(a, b, loose) === 0;
|
|
6187
6206
|
module2.exports = eq;
|
|
6188
6207
|
}
|
|
6189
6208
|
});
|
|
6190
6209
|
var require_neq = __commonJS2({
|
|
6191
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6210
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js"(exports, module2) {
|
|
6192
6211
|
var compare2 = require_compare();
|
|
6193
6212
|
var neq = (a, b, loose) => compare2(a, b, loose) !== 0;
|
|
6194
6213
|
module2.exports = neq;
|
|
6195
6214
|
}
|
|
6196
6215
|
});
|
|
6197
6216
|
var require_gte = __commonJS2({
|
|
6198
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6217
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js"(exports, module2) {
|
|
6199
6218
|
var compare2 = require_compare();
|
|
6200
6219
|
var gte2 = (a, b, loose) => compare2(a, b, loose) >= 0;
|
|
6201
6220
|
module2.exports = gte2;
|
|
6202
6221
|
}
|
|
6203
6222
|
});
|
|
6204
6223
|
var require_lte = __commonJS2({
|
|
6205
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6224
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js"(exports, module2) {
|
|
6206
6225
|
var compare2 = require_compare();
|
|
6207
6226
|
var lte = (a, b, loose) => compare2(a, b, loose) <= 0;
|
|
6208
6227
|
module2.exports = lte;
|
|
6209
6228
|
}
|
|
6210
6229
|
});
|
|
6211
6230
|
var require_cmp = __commonJS2({
|
|
6212
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6231
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js"(exports, module2) {
|
|
6213
6232
|
var eq = require_eq();
|
|
6214
6233
|
var neq = require_neq();
|
|
6215
6234
|
var gt = require_gt();
|
|
@@ -6256,7 +6275,7 @@ var string = (() => {
|
|
|
6256
6275
|
}
|
|
6257
6276
|
});
|
|
6258
6277
|
var require_coerce = __commonJS2({
|
|
6259
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6278
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js"(exports, module2) {
|
|
6260
6279
|
var SemVer = require_semver();
|
|
6261
6280
|
var parse = require_parse();
|
|
6262
6281
|
var { safeRe: re, t } = require_re();
|
|
@@ -6298,8 +6317,46 @@ var string = (() => {
|
|
|
6298
6317
|
module2.exports = coerce2;
|
|
6299
6318
|
}
|
|
6300
6319
|
});
|
|
6320
|
+
var require_truncate = __commonJS2({
|
|
6321
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js"(exports, module2) {
|
|
6322
|
+
var parse = require_parse();
|
|
6323
|
+
var constants2 = require_constants();
|
|
6324
|
+
var SemVer = require_semver();
|
|
6325
|
+
var truncate = (version, truncation, options) => {
|
|
6326
|
+
if (!constants2.RELEASE_TYPES.includes(truncation)) {
|
|
6327
|
+
return null;
|
|
6328
|
+
}
|
|
6329
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
6330
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
6331
|
+
};
|
|
6332
|
+
var cloneInputVersion = (version, options) => {
|
|
6333
|
+
const versionStringToParse = version instanceof SemVer ? version.version : version;
|
|
6334
|
+
return parse(versionStringToParse, options);
|
|
6335
|
+
};
|
|
6336
|
+
var doTruncation = (version, truncation) => {
|
|
6337
|
+
if (isPrerelease(truncation)) {
|
|
6338
|
+
return version.version;
|
|
6339
|
+
}
|
|
6340
|
+
version.prerelease = [];
|
|
6341
|
+
switch (truncation) {
|
|
6342
|
+
case "major":
|
|
6343
|
+
version.minor = 0;
|
|
6344
|
+
version.patch = 0;
|
|
6345
|
+
break;
|
|
6346
|
+
case "minor":
|
|
6347
|
+
version.patch = 0;
|
|
6348
|
+
break;
|
|
6349
|
+
}
|
|
6350
|
+
return version.format();
|
|
6351
|
+
};
|
|
6352
|
+
var isPrerelease = (type) => {
|
|
6353
|
+
return type.startsWith("pre");
|
|
6354
|
+
};
|
|
6355
|
+
module2.exports = truncate;
|
|
6356
|
+
}
|
|
6357
|
+
});
|
|
6301
6358
|
var require_lrucache = __commonJS2({
|
|
6302
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6359
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js"(exports, module2) {
|
|
6303
6360
|
var LRUCache = class {
|
|
6304
6361
|
constructor() {
|
|
6305
6362
|
this.max = 1e3;
|
|
@@ -6334,7 +6391,7 @@ var string = (() => {
|
|
|
6334
6391
|
}
|
|
6335
6392
|
});
|
|
6336
6393
|
var require_range = __commonJS2({
|
|
6337
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6394
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js"(exports, module2) {
|
|
6338
6395
|
var SPACE_CHARACTERS = /\s+/g;
|
|
6339
6396
|
var Range = class _Range {
|
|
6340
6397
|
constructor(range, options) {
|
|
@@ -6401,6 +6458,7 @@ var string = (() => {
|
|
|
6401
6458
|
return this.range;
|
|
6402
6459
|
}
|
|
6403
6460
|
parseRange(range) {
|
|
6461
|
+
range = range.replace(BUILDSTRIPRE, "");
|
|
6404
6462
|
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
6405
6463
|
const memoKey = memoOpts + ":" + range;
|
|
6406
6464
|
const cached = cache.get(memoKey);
|
|
@@ -6483,12 +6541,14 @@ var string = (() => {
|
|
|
6483
6541
|
var SemVer = require_semver();
|
|
6484
6542
|
var {
|
|
6485
6543
|
safeRe: re,
|
|
6544
|
+
src,
|
|
6486
6545
|
t,
|
|
6487
6546
|
comparatorTrimReplace,
|
|
6488
6547
|
tildeTrimReplace,
|
|
6489
6548
|
caretTrimReplace
|
|
6490
6549
|
} = require_re();
|
|
6491
6550
|
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
6551
|
+
var BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
|
|
6492
6552
|
var isNullSet = (c) => c.value === "<0.0.0-0";
|
|
6493
6553
|
var isAny = (c) => c.value === "";
|
|
6494
6554
|
var isSatisfiable = (comparators, options) => {
|
|
@@ -6517,20 +6577,22 @@ var string = (() => {
|
|
|
6517
6577
|
return comp;
|
|
6518
6578
|
};
|
|
6519
6579
|
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
6580
|
+
var invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
6520
6581
|
var replaceTildes = (comp, options) => {
|
|
6521
6582
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
6522
6583
|
};
|
|
6523
6584
|
var replaceTilde = (comp, options) => {
|
|
6524
6585
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
6586
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
6525
6587
|
return comp.replace(r, (_2, M, m, p, pr) => {
|
|
6526
6588
|
debug("tilde", comp, _2, M, m, p, pr);
|
|
6527
6589
|
let ret;
|
|
6528
6590
|
if (isX(M)) {
|
|
6529
6591
|
ret = "";
|
|
6530
6592
|
} else if (isX(m)) {
|
|
6531
|
-
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
6593
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
6532
6594
|
} else if (isX(p)) {
|
|
6533
|
-
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
6595
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
6534
6596
|
} else if (pr) {
|
|
6535
6597
|
debug("replaceTilde pr", pr);
|
|
6536
6598
|
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
@@ -6576,9 +6638,9 @@ var string = (() => {
|
|
|
6576
6638
|
debug("no pr");
|
|
6577
6639
|
if (M === "0") {
|
|
6578
6640
|
if (m === "0") {
|
|
6579
|
-
ret = `>=${M}.${m}.${p}
|
|
6641
|
+
ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
6580
6642
|
} else {
|
|
6581
|
-
ret = `>=${M}.${m}.${p}
|
|
6643
|
+
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
6582
6644
|
}
|
|
6583
6645
|
} else {
|
|
6584
6646
|
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
@@ -6597,6 +6659,9 @@ var string = (() => {
|
|
|
6597
6659
|
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
6598
6660
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
6599
6661
|
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
6662
|
+
if (invalidXRangeOrder(M, m, p)) {
|
|
6663
|
+
return comp;
|
|
6664
|
+
}
|
|
6600
6665
|
const xM = isX(M);
|
|
6601
6666
|
const xm = xM || isX(m);
|
|
6602
6667
|
const xp = xm || isX(p);
|
|
@@ -6708,7 +6773,7 @@ var string = (() => {
|
|
|
6708
6773
|
}
|
|
6709
6774
|
});
|
|
6710
6775
|
var require_comparator = __commonJS2({
|
|
6711
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6776
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js"(exports, module2) {
|
|
6712
6777
|
var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
|
|
6713
6778
|
var Comparator = class _Comparator {
|
|
6714
6779
|
static get ANY() {
|
|
@@ -6818,7 +6883,7 @@ var string = (() => {
|
|
|
6818
6883
|
}
|
|
6819
6884
|
});
|
|
6820
6885
|
var require_satisfies = __commonJS2({
|
|
6821
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6886
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js"(exports, module2) {
|
|
6822
6887
|
var Range = require_range();
|
|
6823
6888
|
var satisfies2 = (version, range, options) => {
|
|
6824
6889
|
try {
|
|
@@ -6832,14 +6897,14 @@ var string = (() => {
|
|
|
6832
6897
|
}
|
|
6833
6898
|
});
|
|
6834
6899
|
var require_to_comparators = __commonJS2({
|
|
6835
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6900
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js"(exports, module2) {
|
|
6836
6901
|
var Range = require_range();
|
|
6837
6902
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
6838
6903
|
module2.exports = toComparators;
|
|
6839
6904
|
}
|
|
6840
6905
|
});
|
|
6841
6906
|
var require_max_satisfying = __commonJS2({
|
|
6842
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6907
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js"(exports, module2) {
|
|
6843
6908
|
var SemVer = require_semver();
|
|
6844
6909
|
var Range = require_range();
|
|
6845
6910
|
var maxSatisfying = (versions, range, options) => {
|
|
@@ -6865,7 +6930,7 @@ var string = (() => {
|
|
|
6865
6930
|
}
|
|
6866
6931
|
});
|
|
6867
6932
|
var require_min_satisfying = __commonJS2({
|
|
6868
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6933
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js"(exports, module2) {
|
|
6869
6934
|
var SemVer = require_semver();
|
|
6870
6935
|
var Range = require_range();
|
|
6871
6936
|
var minSatisfying = (versions, range, options) => {
|
|
@@ -6891,7 +6956,7 @@ var string = (() => {
|
|
|
6891
6956
|
}
|
|
6892
6957
|
});
|
|
6893
6958
|
var require_min_version = __commonJS2({
|
|
6894
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6959
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js"(exports, module2) {
|
|
6895
6960
|
var SemVer = require_semver();
|
|
6896
6961
|
var Range = require_range();
|
|
6897
6962
|
var gt = require_gt();
|
|
@@ -6947,7 +7012,7 @@ var string = (() => {
|
|
|
6947
7012
|
}
|
|
6948
7013
|
});
|
|
6949
7014
|
var require_valid2 = __commonJS2({
|
|
6950
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7015
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js"(exports, module2) {
|
|
6951
7016
|
var Range = require_range();
|
|
6952
7017
|
var validRange = (range, options) => {
|
|
6953
7018
|
try {
|
|
@@ -6960,7 +7025,7 @@ var string = (() => {
|
|
|
6960
7025
|
}
|
|
6961
7026
|
});
|
|
6962
7027
|
var require_outside = __commonJS2({
|
|
6963
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7028
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js"(exports, module2) {
|
|
6964
7029
|
var SemVer = require_semver();
|
|
6965
7030
|
var Comparator = require_comparator();
|
|
6966
7031
|
var { ANY } = Comparator;
|
|
@@ -7026,21 +7091,21 @@ var string = (() => {
|
|
|
7026
7091
|
}
|
|
7027
7092
|
});
|
|
7028
7093
|
var require_gtr = __commonJS2({
|
|
7029
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7094
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js"(exports, module2) {
|
|
7030
7095
|
var outside = require_outside();
|
|
7031
7096
|
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
7032
7097
|
module2.exports = gtr;
|
|
7033
7098
|
}
|
|
7034
7099
|
});
|
|
7035
7100
|
var require_ltr = __commonJS2({
|
|
7036
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7101
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js"(exports, module2) {
|
|
7037
7102
|
var outside = require_outside();
|
|
7038
7103
|
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
7039
7104
|
module2.exports = ltr;
|
|
7040
7105
|
}
|
|
7041
7106
|
});
|
|
7042
7107
|
var require_intersects = __commonJS2({
|
|
7043
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7108
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js"(exports, module2) {
|
|
7044
7109
|
var Range = require_range();
|
|
7045
7110
|
var intersects = (r1, r2, options) => {
|
|
7046
7111
|
r1 = new Range(r1, options);
|
|
@@ -7051,7 +7116,7 @@ var string = (() => {
|
|
|
7051
7116
|
}
|
|
7052
7117
|
});
|
|
7053
7118
|
var require_simplify = __commonJS2({
|
|
7054
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7119
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js"(exports, module2) {
|
|
7055
7120
|
var satisfies2 = require_satisfies();
|
|
7056
7121
|
var compare2 = require_compare();
|
|
7057
7122
|
module2.exports = (versions, range, options) => {
|
|
@@ -7098,7 +7163,7 @@ var string = (() => {
|
|
|
7098
7163
|
}
|
|
7099
7164
|
});
|
|
7100
7165
|
var require_subset = __commonJS2({
|
|
7101
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7166
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js"(exports, module2) {
|
|
7102
7167
|
var Range = require_range();
|
|
7103
7168
|
var Comparator = require_comparator();
|
|
7104
7169
|
var { ANY } = Comparator;
|
|
@@ -7205,7 +7270,7 @@ var string = (() => {
|
|
|
7205
7270
|
if (higher === c && higher !== gt) {
|
|
7206
7271
|
return false;
|
|
7207
7272
|
}
|
|
7208
|
-
} else if (gt.operator === ">=" && !
|
|
7273
|
+
} else if (gt.operator === ">=" && !c.test(gt.semver)) {
|
|
7209
7274
|
return false;
|
|
7210
7275
|
}
|
|
7211
7276
|
}
|
|
@@ -7220,7 +7285,7 @@ var string = (() => {
|
|
|
7220
7285
|
if (lower === c && lower !== lt) {
|
|
7221
7286
|
return false;
|
|
7222
7287
|
}
|
|
7223
|
-
} else if (lt.operator === "<=" && !
|
|
7288
|
+
} else if (lt.operator === "<=" && !c.test(lt.semver)) {
|
|
7224
7289
|
return false;
|
|
7225
7290
|
}
|
|
7226
7291
|
}
|
|
@@ -7257,7 +7322,7 @@ var string = (() => {
|
|
|
7257
7322
|
}
|
|
7258
7323
|
});
|
|
7259
7324
|
var require_semver2 = __commonJS2({
|
|
7260
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7325
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js"(exports, module2) {
|
|
7261
7326
|
var internalRe = require_re();
|
|
7262
7327
|
var constants2 = require_constants();
|
|
7263
7328
|
var SemVer = require_semver();
|
|
@@ -7285,6 +7350,7 @@ var string = (() => {
|
|
|
7285
7350
|
var lte = require_lte();
|
|
7286
7351
|
var cmp = require_cmp();
|
|
7287
7352
|
var coerce2 = require_coerce();
|
|
7353
|
+
var truncate = require_truncate();
|
|
7288
7354
|
var Comparator = require_comparator();
|
|
7289
7355
|
var Range = require_range();
|
|
7290
7356
|
var satisfies2 = require_satisfies();
|
|
@@ -7323,6 +7389,7 @@ var string = (() => {
|
|
|
7323
7389
|
lte,
|
|
7324
7390
|
cmp,
|
|
7325
7391
|
coerce: coerce2,
|
|
7392
|
+
truncate,
|
|
7326
7393
|
Comparator,
|
|
7327
7394
|
Range,
|
|
7328
7395
|
satisfies: satisfies2,
|
|
@@ -7360,10 +7427,83 @@ var string = (() => {
|
|
|
7360
7427
|
CliForegroundColor2["Reset"] = "\x1B[0m";
|
|
7361
7428
|
return CliForegroundColor2;
|
|
7362
7429
|
})(CliForegroundColor || {});
|
|
7430
|
+
function createCliToken(name) {
|
|
7431
|
+
return name;
|
|
7432
|
+
}
|
|
7433
|
+
var ICliUserSessionService_TOKEN = createCliToken("cli-user-session-service");
|
|
7434
|
+
var ICliUsersStoreService_TOKEN = createCliToken("cli-users-store-service");
|
|
7435
|
+
var ICliGroupsStoreService_TOKEN = createCliToken("cli-groups-store-service");
|
|
7436
|
+
var ICliAuthService_TOKEN = createCliToken("cli-auth-service");
|
|
7437
|
+
var ICliCompletionProvider_TOKEN = createCliToken("cli-completion-provider");
|
|
7438
|
+
var ICliDragDropService_TOKEN = createCliToken("cli-drag-drop-service");
|
|
7439
|
+
var ICliFileTransferService_TOKEN = createCliToken("cli-file-transfer-service");
|
|
7440
|
+
var ICliTranslationService_TOKEN = createCliToken("cli-translation-service");
|
|
7441
|
+
var ICliPermissionService_TOKEN = createCliToken("cli-permission-service");
|
|
7442
|
+
var ICliFilePickerProvider_TOKEN = createCliToken("cli-file-picker-provider");
|
|
7443
|
+
var ICliHttpClient_TOKEN = createCliToken("cli-http-client");
|
|
7444
|
+
var ICliUserEventService_TOKEN = createCliToken("cli-user-event-service");
|
|
7445
|
+
var ICliAuditService_TOKEN = createCliToken("cli-audit-service");
|
|
7446
|
+
var ICliAuthorizationService_TOKEN = createCliToken("cli-authorization-service");
|
|
7447
|
+
var ICliPermissionRegistry_TOKEN = createCliToken("cli-permission-registry");
|
|
7448
|
+
var ICliSessionsService_TOKEN = createCliToken("cli-sessions-service");
|
|
7449
|
+
var ICliKeyValueStore_TOKEN = createCliToken("cli-key-value-store");
|
|
7450
|
+
var ICliServerAuthTokenProvider_TOKEN = createCliToken("cli-server-auth-token-provider");
|
|
7451
|
+
var ICliServerAuthService_TOKEN = createCliToken("cli-server-auth-service");
|
|
7452
|
+
var ICliServerManager_TOKEN = createCliToken("cli-server-manager");
|
|
7453
|
+
function resolveHeaders(provider) {
|
|
7454
|
+
if (!provider) return {};
|
|
7455
|
+
return typeof provider === "function" ? provider() : provider;
|
|
7456
|
+
}
|
|
7457
|
+
var ICliCommandGuard_TOKEN = createCliToken("cli-command-guard");
|
|
7458
|
+
var ICliEventBus_TOKEN = createCliToken("cli-event-bus");
|
|
7363
7459
|
var DefaultLibraryAuthor = {
|
|
7364
7460
|
name: "Nicolae Lupei",
|
|
7365
7461
|
email: "nicolae.lupei@qodalis.com"
|
|
7366
7462
|
};
|
|
7463
|
+
function splitShellWords(text) {
|
|
7464
|
+
const words = [];
|
|
7465
|
+
let current = "";
|
|
7466
|
+
let inWord = false;
|
|
7467
|
+
for (let i = 0; i < text.length; i++) {
|
|
7468
|
+
const ch = text[i];
|
|
7469
|
+
if (ch === "\\" && i + 1 < text.length) {
|
|
7470
|
+
current += text[++i];
|
|
7471
|
+
inWord = true;
|
|
7472
|
+
} else if (ch === "'" && text.indexOf("'", i + 1) !== -1) {
|
|
7473
|
+
const end = text.indexOf("'", i + 1);
|
|
7474
|
+
current += text.slice(i + 1, end);
|
|
7475
|
+
inWord = true;
|
|
7476
|
+
i = end;
|
|
7477
|
+
} else if (ch === '"' && closingDoubleQuote(text, i) !== -1) {
|
|
7478
|
+
const end = closingDoubleQuote(text, i);
|
|
7479
|
+
current += unescapeDoubleQuoted(text.slice(i + 1, end));
|
|
7480
|
+
inWord = true;
|
|
7481
|
+
i = end;
|
|
7482
|
+
} else if (/\s/.test(ch)) {
|
|
7483
|
+
if (inWord) words.push(current);
|
|
7484
|
+
current = "";
|
|
7485
|
+
inWord = false;
|
|
7486
|
+
} else {
|
|
7487
|
+
current += ch;
|
|
7488
|
+
inWord = true;
|
|
7489
|
+
}
|
|
7490
|
+
}
|
|
7491
|
+
if (inWord) words.push(current);
|
|
7492
|
+
return words;
|
|
7493
|
+
}
|
|
7494
|
+
function joinShellWords(text) {
|
|
7495
|
+
return splitShellWords(text).join(" ");
|
|
7496
|
+
}
|
|
7497
|
+
function closingDoubleQuote(text, start) {
|
|
7498
|
+
for (let i = start + 1; i < text.length; i++) {
|
|
7499
|
+
if (text[i] === "\\") i++;
|
|
7500
|
+
else if (text[i] === '"') return i;
|
|
7501
|
+
}
|
|
7502
|
+
return -1;
|
|
7503
|
+
}
|
|
7504
|
+
function unescapeDoubleQuoted(text) {
|
|
7505
|
+
return text.replace(/\\(["\\$`])/g, "$1");
|
|
7506
|
+
}
|
|
7367
7507
|
var semver = __toESM2(require_semver2());
|
|
7368
7508
|
var API_VERSION = 2;
|
|
7369
7509
|
var VERSIONS_ENDPOINT = "/api/qcli/versions";
|
|
@@ -7386,9 +7526,18 @@ var string = (() => {
|
|
|
7386
7526
|
* Returns the negotiated API version and the base path for all subsequent calls,
|
|
7387
7527
|
* or null if the server is unreachable or incompatible.
|
|
7388
7528
|
*/
|
|
7389
|
-
static async discover(baseUrl) {
|
|
7529
|
+
static async discover(baseUrl, headers, options) {
|
|
7530
|
+
let response;
|
|
7531
|
+
try {
|
|
7532
|
+
const resolved = resolveHeaders(headers);
|
|
7533
|
+
response = await fetch(`${baseUrl}${VERSIONS_ENDPOINT}`, {
|
|
7534
|
+
headers: Object.keys(resolved).length > 0 ? resolved : void 0
|
|
7535
|
+
});
|
|
7536
|
+
} catch (e) {
|
|
7537
|
+
if (options?.rethrowNetworkErrors) throw e;
|
|
7538
|
+
return null;
|
|
7539
|
+
}
|
|
7390
7540
|
try {
|
|
7391
|
-
const response = await fetch(`${baseUrl}${VERSIONS_ENDPOINT}`);
|
|
7392
7541
|
if (!response.ok) return null;
|
|
7393
7542
|
const info = await response.json();
|
|
7394
7543
|
const version = this.negotiate(info);
|
|
@@ -8223,10 +8372,16 @@ var string = (() => {
|
|
|
8223
8372
|
var _ = __toESM(require_lodash());
|
|
8224
8373
|
|
|
8225
8374
|
// src/lib/version.ts
|
|
8226
|
-
var LIBRARY_VERSION = "2.0.0-
|
|
8375
|
+
var LIBRARY_VERSION = "2.0.0-rc.2";
|
|
8227
8376
|
var API_VERSION2 = 2;
|
|
8228
8377
|
|
|
8229
8378
|
// src/lib/processors/cli-string-command-processor.ts
|
|
8379
|
+
var inputText = (value, data) => {
|
|
8380
|
+
const fromValue = joinShellWords(value ?? "");
|
|
8381
|
+
if (fromValue) return fromValue;
|
|
8382
|
+
if (data === void 0 || data === null) return "";
|
|
8383
|
+
return typeof data === "string" ? data : JSON.stringify(data);
|
|
8384
|
+
};
|
|
8230
8385
|
var lodash = _.default || _;
|
|
8231
8386
|
function stringTransform(command, description, transform, options) {
|
|
8232
8387
|
return {
|
|
@@ -8236,7 +8391,7 @@ var string = (() => {
|
|
|
8236
8391
|
acceptsRawInput: true,
|
|
8237
8392
|
valueRequired: true,
|
|
8238
8393
|
processCommand: async (cmd, context) => {
|
|
8239
|
-
const text = cmd.value
|
|
8394
|
+
const text = inputText(cmd.value, cmd.data);
|
|
8240
8395
|
const result = transform(text);
|
|
8241
8396
|
context.writer.writeln(
|
|
8242
8397
|
`${context.writer.wrapInColor("Result: ", CliForegroundColor.Yellow)}${result}`
|
|
@@ -8429,7 +8584,7 @@ var string = (() => {
|
|
|
8429
8584
|
}
|
|
8430
8585
|
],
|
|
8431
8586
|
processCommand: async (command, context) => {
|
|
8432
|
-
const text = command.value
|
|
8587
|
+
const text = inputText(command.value, command.data);
|
|
8433
8588
|
const count = Math.min(
|
|
8434
8589
|
parseInt(command.args["count"] || command.args["n"]) || 2,
|
|
8435
8590
|
1e3
|
|
@@ -8482,7 +8637,7 @@ var string = (() => {
|
|
|
8482
8637
|
}
|
|
8483
8638
|
],
|
|
8484
8639
|
processCommand: async (command, context) => {
|
|
8485
|
-
const text = command.value
|
|
8640
|
+
const text = inputText(command.value, command.data);
|
|
8486
8641
|
const find = command.args["find"] || command.args["f"] || "";
|
|
8487
8642
|
const replacement = command.args["with"] || command.args["w"] || "";
|
|
8488
8643
|
if (!find) {
|
|
@@ -8537,7 +8692,7 @@ var string = (() => {
|
|
|
8537
8692
|
}
|
|
8538
8693
|
],
|
|
8539
8694
|
processCommand: async (command, context) => {
|
|
8540
|
-
const text = command.value
|
|
8695
|
+
const text = inputText(command.value, command.data);
|
|
8541
8696
|
const length = parseInt(command.args["length"] || command.args["l"]) || 30;
|
|
8542
8697
|
const suffix = command.args["suffix"] ?? "...";
|
|
8543
8698
|
const result = text.length > length ? text.substring(0, length - suffix.length) + suffix : text;
|
|
@@ -8587,7 +8742,7 @@ var string = (() => {
|
|
|
8587
8742
|
}
|
|
8588
8743
|
],
|
|
8589
8744
|
processCommand: async (command, context) => {
|
|
8590
|
-
const text = command.value
|
|
8745
|
+
const text = inputText(command.value, command.data);
|
|
8591
8746
|
const length = parseInt(
|
|
8592
8747
|
command.args["length"] || command.args["l"]
|
|
8593
8748
|
);
|
|
@@ -8651,7 +8806,7 @@ var string = (() => {
|
|
|
8651
8806
|
}
|
|
8652
8807
|
],
|
|
8653
8808
|
processCommand: async (command, context) => {
|
|
8654
|
-
const text = command.value
|
|
8809
|
+
const text = inputText(command.value, command.data);
|
|
8655
8810
|
const delimiter = command.args["by"] || command.args["d"] || command.args["delimiter"] || " ";
|
|
8656
8811
|
const parts = text.split(delimiter);
|
|
8657
8812
|
const { writer } = context;
|
|
@@ -8684,7 +8839,7 @@ var string = (() => {
|
|
|
8684
8839
|
acceptsRawInput: true,
|
|
8685
8840
|
valueRequired: true,
|
|
8686
8841
|
processCommand: async (command, context) => {
|
|
8687
|
-
const text = command.value
|
|
8842
|
+
const text = inputText(command.value, command.data);
|
|
8688
8843
|
const words = lodash.words(text);
|
|
8689
8844
|
const { writer } = context;
|
|
8690
8845
|
writer.writeln(
|
|
@@ -8718,7 +8873,7 @@ var string = (() => {
|
|
|
8718
8873
|
acceptsRawInput: true,
|
|
8719
8874
|
valueRequired: true,
|
|
8720
8875
|
processCommand: async (command, context) => {
|
|
8721
|
-
const text = command.value
|
|
8876
|
+
const text = inputText(command.value, command.data);
|
|
8722
8877
|
context.writer.writeln(
|
|
8723
8878
|
`${context.writer.wrapInColor("Result: ", CliForegroundColor.Yellow)}${text.length}`
|
|
8724
8879
|
);
|
|
@@ -8741,7 +8896,7 @@ var string = (() => {
|
|
|
8741
8896
|
acceptsRawInput: true,
|
|
8742
8897
|
valueRequired: true,
|
|
8743
8898
|
processCommand: async (command, context) => {
|
|
8744
|
-
const text = command.value
|
|
8899
|
+
const text = inputText(command.value, command.data);
|
|
8745
8900
|
const { writer } = context;
|
|
8746
8901
|
const lines = text.split(/\r?\n/).length;
|
|
8747
8902
|
const wordCount = text.trim() ? text.trim().split(/\s+/).length : 0;
|
|
@@ -8794,8 +8949,13 @@ var string = (() => {
|
|
|
8794
8949
|
}
|
|
8795
8950
|
],
|
|
8796
8951
|
processCommand: async (command, context) => {
|
|
8797
|
-
const text = command.value
|
|
8952
|
+
const text = inputText(command.value, command.data);
|
|
8798
8953
|
const find = command.args["find"] || command.args["f"] || "";
|
|
8954
|
+
if (!find) {
|
|
8955
|
+
context.writer.writeError("--find is required");
|
|
8956
|
+
context.process.exit(-1);
|
|
8957
|
+
return;
|
|
8958
|
+
}
|
|
8799
8959
|
const result = text.includes(find);
|
|
8800
8960
|
const { writer } = context;
|
|
8801
8961
|
if (result) {
|
|
@@ -8832,8 +8992,13 @@ var string = (() => {
|
|
|
8832
8992
|
}
|
|
8833
8993
|
],
|
|
8834
8994
|
processCommand: async (command, context) => {
|
|
8835
|
-
const text = command.value
|
|
8995
|
+
const text = inputText(command.value, command.data);
|
|
8836
8996
|
const find = command.args["find"] || command.args["f"] || "";
|
|
8997
|
+
if (!find) {
|
|
8998
|
+
context.writer.writeError("--find is required");
|
|
8999
|
+
context.process.exit(-1);
|
|
9000
|
+
return;
|
|
9001
|
+
}
|
|
8837
9002
|
const result = text.startsWith(find);
|
|
8838
9003
|
const { writer } = context;
|
|
8839
9004
|
writer.writeln(
|
|
@@ -8868,8 +9033,13 @@ var string = (() => {
|
|
|
8868
9033
|
}
|
|
8869
9034
|
],
|
|
8870
9035
|
processCommand: async (command, context) => {
|
|
8871
|
-
const text = command.value
|
|
9036
|
+
const text = inputText(command.value, command.data);
|
|
8872
9037
|
const find = command.args["find"] || command.args["f"] || "";
|
|
9038
|
+
if (!find) {
|
|
9039
|
+
context.writer.writeError("--find is required");
|
|
9040
|
+
context.process.exit(-1);
|
|
9041
|
+
return;
|
|
9042
|
+
}
|
|
8873
9043
|
const result = text.endsWith(find);
|
|
8874
9044
|
const { writer } = context;
|
|
8875
9045
|
writer.writeln(
|