opengate-js 16.1.1 → 16.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{opengate-api-bower-16.1.1.js → opengate-api-bower-16.2.0.js} +493 -490
- package/dist/opengate-api-bower-16.2.0.js.map +6 -0
- package/dist/{opengate-api-bower-16.1.1.min.js → opengate-api-bower-16.2.0.min.js} +11 -8
- package/dist/opengate-api-bower-16.2.0.min.js.map +6 -0
- package/dist/opengate-api-npm.mjs +34 -35
- package/dist/opengate-api-npm.mjs.map +2 -2
- package/dist/src/iot/catalog/Datastream.js.map +1 -1
- package/dist/src/notebookScheduler/NotebookScheduler.js +13 -0
- package/dist/src/notebookScheduler/NotebookScheduler.js.map +1 -1
- package/dist/src/security/Certificates.js +0 -14
- package/dist/src/security/Certificates.js.map +1 -1
- package/package.json +3 -4
- package/src/iot/catalog/Datastream.js +0 -1
- package/src/notebookScheduler/NotebookScheduler.js +14 -0
- package/src/security/Certificates.js +0 -32
- package/types/src/notebookScheduler/NotebookScheduler.d.ts +7 -0
- package/types/src/security/Certificates.d.ts +0 -1
- package/dist/opengate-api-bower-16.1.1.js.map +0 -6
- package/dist/opengate-api-bower-16.1.1.min.js.map +0 -6
|
@@ -615,16 +615,16 @@
|
|
|
615
615
|
return func.apply(thisArg, args);
|
|
616
616
|
}
|
|
617
617
|
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
618
|
-
var index2 = -1,
|
|
619
|
-
while (++index2 <
|
|
618
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
619
|
+
while (++index2 < length) {
|
|
620
620
|
var value = array[index2];
|
|
621
621
|
setter(accumulator, value, iteratee(value), array);
|
|
622
622
|
}
|
|
623
623
|
return accumulator;
|
|
624
624
|
}
|
|
625
625
|
function arrayEach(array, iteratee) {
|
|
626
|
-
var index2 = -1,
|
|
627
|
-
while (++index2 <
|
|
626
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
627
|
+
while (++index2 < length) {
|
|
628
628
|
if (iteratee(array[index2], index2, array) === false) {
|
|
629
629
|
break;
|
|
630
630
|
}
|
|
@@ -632,17 +632,17 @@
|
|
|
632
632
|
return array;
|
|
633
633
|
}
|
|
634
634
|
function arrayEachRight(array, iteratee) {
|
|
635
|
-
var
|
|
636
|
-
while (
|
|
637
|
-
if (iteratee(array[
|
|
635
|
+
var length = array == null ? 0 : array.length;
|
|
636
|
+
while (length--) {
|
|
637
|
+
if (iteratee(array[length], length, array) === false) {
|
|
638
638
|
break;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
return array;
|
|
642
642
|
}
|
|
643
643
|
function arrayEvery(array, predicate) {
|
|
644
|
-
var index2 = -1,
|
|
645
|
-
while (++index2 <
|
|
644
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
645
|
+
while (++index2 < length) {
|
|
646
646
|
if (!predicate(array[index2], index2, array)) {
|
|
647
647
|
return false;
|
|
648
648
|
}
|
|
@@ -650,8 +650,8 @@
|
|
|
650
650
|
return true;
|
|
651
651
|
}
|
|
652
652
|
function arrayFilter(array, predicate) {
|
|
653
|
-
var index2 = -1,
|
|
654
|
-
while (++index2 <
|
|
653
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
654
|
+
while (++index2 < length) {
|
|
655
655
|
var value = array[index2];
|
|
656
656
|
if (predicate(value, index2, array)) {
|
|
657
657
|
result[resIndex++] = value;
|
|
@@ -660,12 +660,12 @@
|
|
|
660
660
|
return result;
|
|
661
661
|
}
|
|
662
662
|
function arrayIncludes(array, value) {
|
|
663
|
-
var
|
|
664
|
-
return !!
|
|
663
|
+
var length = array == null ? 0 : array.length;
|
|
664
|
+
return !!length && baseIndexOf(array, value, 0) > -1;
|
|
665
665
|
}
|
|
666
666
|
function arrayIncludesWith(array, value, comparator) {
|
|
667
|
-
var index2 = -1,
|
|
668
|
-
while (++index2 <
|
|
667
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
668
|
+
while (++index2 < length) {
|
|
669
669
|
if (comparator(value, array[index2])) {
|
|
670
670
|
return true;
|
|
671
671
|
}
|
|
@@ -673,42 +673,42 @@
|
|
|
673
673
|
return false;
|
|
674
674
|
}
|
|
675
675
|
function arrayMap(array, iteratee) {
|
|
676
|
-
var index2 = -1,
|
|
677
|
-
while (++index2 <
|
|
676
|
+
var index2 = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
677
|
+
while (++index2 < length) {
|
|
678
678
|
result[index2] = iteratee(array[index2], index2, array);
|
|
679
679
|
}
|
|
680
680
|
return result;
|
|
681
681
|
}
|
|
682
682
|
function arrayPush(array, values) {
|
|
683
|
-
var index2 = -1,
|
|
684
|
-
while (++index2 <
|
|
683
|
+
var index2 = -1, length = values.length, offset = array.length;
|
|
684
|
+
while (++index2 < length) {
|
|
685
685
|
array[offset + index2] = values[index2];
|
|
686
686
|
}
|
|
687
687
|
return array;
|
|
688
688
|
}
|
|
689
689
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
690
|
-
var index2 = -1,
|
|
691
|
-
if (initAccum &&
|
|
690
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
691
|
+
if (initAccum && length) {
|
|
692
692
|
accumulator = array[++index2];
|
|
693
693
|
}
|
|
694
|
-
while (++index2 <
|
|
694
|
+
while (++index2 < length) {
|
|
695
695
|
accumulator = iteratee(accumulator, array[index2], index2, array);
|
|
696
696
|
}
|
|
697
697
|
return accumulator;
|
|
698
698
|
}
|
|
699
699
|
function arrayReduceRight(array, iteratee, accumulator, initAccum) {
|
|
700
|
-
var
|
|
701
|
-
if (initAccum &&
|
|
702
|
-
accumulator = array[--
|
|
700
|
+
var length = array == null ? 0 : array.length;
|
|
701
|
+
if (initAccum && length) {
|
|
702
|
+
accumulator = array[--length];
|
|
703
703
|
}
|
|
704
|
-
while (
|
|
705
|
-
accumulator = iteratee(accumulator, array[
|
|
704
|
+
while (length--) {
|
|
705
|
+
accumulator = iteratee(accumulator, array[length], length, array);
|
|
706
706
|
}
|
|
707
707
|
return accumulator;
|
|
708
708
|
}
|
|
709
709
|
function arraySome(array, predicate) {
|
|
710
|
-
var index2 = -1,
|
|
711
|
-
while (++index2 <
|
|
710
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
711
|
+
while (++index2 < length) {
|
|
712
712
|
if (predicate(array[index2], index2, array)) {
|
|
713
713
|
return true;
|
|
714
714
|
}
|
|
@@ -733,8 +733,8 @@
|
|
|
733
733
|
return result;
|
|
734
734
|
}
|
|
735
735
|
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
736
|
-
var
|
|
737
|
-
while (fromRight ? index2-- : ++index2 <
|
|
736
|
+
var length = array.length, index2 = fromIndex + (fromRight ? 1 : -1);
|
|
737
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
|
738
738
|
if (predicate(array[index2], index2, array)) {
|
|
739
739
|
return index2;
|
|
740
740
|
}
|
|
@@ -745,8 +745,8 @@
|
|
|
745
745
|
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
746
746
|
}
|
|
747
747
|
function baseIndexOfWith(array, value, fromIndex, comparator) {
|
|
748
|
-
var index2 = fromIndex - 1,
|
|
749
|
-
while (++index2 <
|
|
748
|
+
var index2 = fromIndex - 1, length = array.length;
|
|
749
|
+
while (++index2 < length) {
|
|
750
750
|
if (comparator(array[index2], value)) {
|
|
751
751
|
return index2;
|
|
752
752
|
}
|
|
@@ -757,8 +757,8 @@
|
|
|
757
757
|
return value !== value;
|
|
758
758
|
}
|
|
759
759
|
function baseMean(array, iteratee) {
|
|
760
|
-
var
|
|
761
|
-
return
|
|
760
|
+
var length = array == null ? 0 : array.length;
|
|
761
|
+
return length ? baseSum(array, iteratee) / length : NAN;
|
|
762
762
|
}
|
|
763
763
|
function baseProperty(key2) {
|
|
764
764
|
return function(object) {
|
|
@@ -777,16 +777,16 @@
|
|
|
777
777
|
return accumulator;
|
|
778
778
|
}
|
|
779
779
|
function baseSortBy(array, comparer) {
|
|
780
|
-
var
|
|
780
|
+
var length = array.length;
|
|
781
781
|
array.sort(comparer);
|
|
782
|
-
while (
|
|
783
|
-
array[
|
|
782
|
+
while (length--) {
|
|
783
|
+
array[length] = array[length].value;
|
|
784
784
|
}
|
|
785
785
|
return array;
|
|
786
786
|
}
|
|
787
787
|
function baseSum(array, iteratee) {
|
|
788
|
-
var result, index2 = -1,
|
|
789
|
-
while (++index2 <
|
|
788
|
+
var result, index2 = -1, length = array.length;
|
|
789
|
+
while (++index2 < length) {
|
|
790
790
|
var current = iteratee(array[index2]);
|
|
791
791
|
if (current !== undefined2) {
|
|
792
792
|
result = result === undefined2 ? current : result + current;
|
|
@@ -823,8 +823,8 @@
|
|
|
823
823
|
return cache.has(key2);
|
|
824
824
|
}
|
|
825
825
|
function charsStartIndex(strSymbols, chrSymbols) {
|
|
826
|
-
var index2 = -1,
|
|
827
|
-
while (++index2 <
|
|
826
|
+
var index2 = -1, length = strSymbols.length;
|
|
827
|
+
while (++index2 < length && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) {
|
|
828
828
|
}
|
|
829
829
|
return index2;
|
|
830
830
|
}
|
|
@@ -835,9 +835,9 @@
|
|
|
835
835
|
return index2;
|
|
836
836
|
}
|
|
837
837
|
function countHolders(array, placeholder) {
|
|
838
|
-
var
|
|
839
|
-
while (
|
|
840
|
-
if (array[
|
|
838
|
+
var length = array.length, result = 0;
|
|
839
|
+
while (length--) {
|
|
840
|
+
if (array[length] === placeholder) {
|
|
841
841
|
++result;
|
|
842
842
|
}
|
|
843
843
|
}
|
|
@@ -877,8 +877,8 @@
|
|
|
877
877
|
};
|
|
878
878
|
}
|
|
879
879
|
function replaceHolders(array, placeholder) {
|
|
880
|
-
var index2 = -1,
|
|
881
|
-
while (++index2 <
|
|
880
|
+
var index2 = -1, length = array.length, resIndex = 0, result = [];
|
|
881
|
+
while (++index2 < length) {
|
|
882
882
|
var value = array[index2];
|
|
883
883
|
if (value === placeholder || value === PLACEHOLDER) {
|
|
884
884
|
array[index2] = PLACEHOLDER;
|
|
@@ -902,8 +902,8 @@
|
|
|
902
902
|
return result;
|
|
903
903
|
}
|
|
904
904
|
function strictIndexOf(array, value, fromIndex) {
|
|
905
|
-
var index2 = fromIndex - 1,
|
|
906
|
-
while (++index2 <
|
|
905
|
+
var index2 = fromIndex - 1, length = array.length;
|
|
906
|
+
while (++index2 < length) {
|
|
907
907
|
if (array[index2] === value) {
|
|
908
908
|
return index2;
|
|
909
909
|
}
|
|
@@ -1095,13 +1095,13 @@
|
|
|
1095
1095
|
return result2;
|
|
1096
1096
|
}
|
|
1097
1097
|
function lazyValue() {
|
|
1098
|
-
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end,
|
|
1099
|
-
if (!isArr || !isRight && arrLength ==
|
|
1098
|
+
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index2 = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__);
|
|
1099
|
+
if (!isArr || !isRight && arrLength == length && takeCount == length) {
|
|
1100
1100
|
return baseWrapperValue(array, this.__actions__);
|
|
1101
1101
|
}
|
|
1102
1102
|
var result2 = [];
|
|
1103
1103
|
outer:
|
|
1104
|
-
while (
|
|
1104
|
+
while (length-- && resIndex < takeCount) {
|
|
1105
1105
|
index2 += dir;
|
|
1106
1106
|
var iterIndex = -1, value = array[index2];
|
|
1107
1107
|
while (++iterIndex < iterLength) {
|
|
@@ -1123,9 +1123,9 @@
|
|
|
1123
1123
|
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
|
|
1124
1124
|
LazyWrapper.prototype.constructor = LazyWrapper;
|
|
1125
1125
|
function Hash(entries) {
|
|
1126
|
-
var index2 = -1,
|
|
1126
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1127
1127
|
this.clear();
|
|
1128
|
-
while (++index2 <
|
|
1128
|
+
while (++index2 < length) {
|
|
1129
1129
|
var entry = entries[index2];
|
|
1130
1130
|
this.set(entry[0], entry[1]);
|
|
1131
1131
|
}
|
|
@@ -1163,9 +1163,9 @@
|
|
|
1163
1163
|
Hash.prototype.has = hashHas;
|
|
1164
1164
|
Hash.prototype.set = hashSet;
|
|
1165
1165
|
function ListCache(entries) {
|
|
1166
|
-
var index2 = -1,
|
|
1166
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1167
1167
|
this.clear();
|
|
1168
|
-
while (++index2 <
|
|
1168
|
+
while (++index2 < length) {
|
|
1169
1169
|
var entry = entries[index2];
|
|
1170
1170
|
this.set(entry[0], entry[1]);
|
|
1171
1171
|
}
|
|
@@ -1211,9 +1211,9 @@
|
|
|
1211
1211
|
ListCache.prototype.has = listCacheHas;
|
|
1212
1212
|
ListCache.prototype.set = listCacheSet;
|
|
1213
1213
|
function MapCache(entries) {
|
|
1214
|
-
var index2 = -1,
|
|
1214
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1215
1215
|
this.clear();
|
|
1216
|
-
while (++index2 <
|
|
1216
|
+
while (++index2 < length) {
|
|
1217
1217
|
var entry = entries[index2];
|
|
1218
1218
|
this.set(entry[0], entry[1]);
|
|
1219
1219
|
}
|
|
@@ -1249,9 +1249,9 @@
|
|
|
1249
1249
|
MapCache.prototype.has = mapCacheHas;
|
|
1250
1250
|
MapCache.prototype.set = mapCacheSet;
|
|
1251
1251
|
function SetCache(values2) {
|
|
1252
|
-
var index2 = -1,
|
|
1252
|
+
var index2 = -1, length = values2 == null ? 0 : values2.length;
|
|
1253
1253
|
this.__data__ = new MapCache();
|
|
1254
|
-
while (++index2 <
|
|
1254
|
+
while (++index2 < length) {
|
|
1255
1255
|
this.add(values2[index2]);
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
@@ -1304,21 +1304,21 @@
|
|
|
1304
1304
|
Stack.prototype.has = stackHas;
|
|
1305
1305
|
Stack.prototype.set = stackSet;
|
|
1306
1306
|
function arrayLikeKeys(value, inherited) {
|
|
1307
|
-
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [],
|
|
1307
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length;
|
|
1308
1308
|
for (var key2 in value) {
|
|
1309
1309
|
if ((inherited || hasOwnProperty.call(value, key2)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1310
1310
|
(key2 == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1311
1311
|
isBuff && (key2 == "offset" || key2 == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1312
1312
|
isType && (key2 == "buffer" || key2 == "byteLength" || key2 == "byteOffset") || // Skip index properties.
|
|
1313
|
-
isIndex(key2,
|
|
1313
|
+
isIndex(key2, length)))) {
|
|
1314
1314
|
result2.push(key2);
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
return result2;
|
|
1318
1318
|
}
|
|
1319
1319
|
function arraySample(array) {
|
|
1320
|
-
var
|
|
1321
|
-
return
|
|
1320
|
+
var length = array.length;
|
|
1321
|
+
return length ? array[baseRandom(0, length - 1)] : undefined2;
|
|
1322
1322
|
}
|
|
1323
1323
|
function arraySampleSize(array, n) {
|
|
1324
1324
|
return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
|
|
@@ -1338,10 +1338,10 @@
|
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
1340
|
function assocIndexOf(array, key2) {
|
|
1341
|
-
var
|
|
1342
|
-
while (
|
|
1343
|
-
if (eq(array[
|
|
1344
|
-
return
|
|
1341
|
+
var length = array.length;
|
|
1342
|
+
while (length--) {
|
|
1343
|
+
if (eq(array[length][0], key2)) {
|
|
1344
|
+
return length;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
return -1;
|
|
@@ -1371,8 +1371,8 @@
|
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
1373
|
function baseAt(object, paths) {
|
|
1374
|
-
var index2 = -1,
|
|
1375
|
-
while (++index2 <
|
|
1374
|
+
var index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null;
|
|
1375
|
+
while (++index2 < length) {
|
|
1376
1376
|
result2[index2] = skip ? undefined2 : get(object, paths[index2]);
|
|
1377
1377
|
}
|
|
1378
1378
|
return result2;
|
|
@@ -1455,13 +1455,13 @@
|
|
|
1455
1455
|
};
|
|
1456
1456
|
}
|
|
1457
1457
|
function baseConformsTo(object, source, props) {
|
|
1458
|
-
var
|
|
1458
|
+
var length = props.length;
|
|
1459
1459
|
if (object == null) {
|
|
1460
|
-
return !
|
|
1460
|
+
return !length;
|
|
1461
1461
|
}
|
|
1462
1462
|
object = Object2(object);
|
|
1463
|
-
while (
|
|
1464
|
-
var key2 = props[
|
|
1463
|
+
while (length--) {
|
|
1464
|
+
var key2 = props[length], predicate = source[key2], value = object[key2];
|
|
1465
1465
|
if (value === undefined2 && !(key2 in object) || !predicate(value)) {
|
|
1466
1466
|
return false;
|
|
1467
1467
|
}
|
|
@@ -1477,8 +1477,8 @@
|
|
|
1477
1477
|
}, wait);
|
|
1478
1478
|
}
|
|
1479
1479
|
function baseDifference(array, values2, iteratee2, comparator) {
|
|
1480
|
-
var index2 = -1, includes2 = arrayIncludes, isCommon = true,
|
|
1481
|
-
if (!
|
|
1480
|
+
var index2 = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length;
|
|
1481
|
+
if (!length) {
|
|
1482
1482
|
return result2;
|
|
1483
1483
|
}
|
|
1484
1484
|
if (iteratee2) {
|
|
@@ -1493,7 +1493,7 @@
|
|
|
1493
1493
|
values2 = new SetCache(values2);
|
|
1494
1494
|
}
|
|
1495
1495
|
outer:
|
|
1496
|
-
while (++index2 <
|
|
1496
|
+
while (++index2 < length) {
|
|
1497
1497
|
var value = array[index2], computed = iteratee2 == null ? value : iteratee2(value);
|
|
1498
1498
|
value = comparator || value !== 0 ? value : 0;
|
|
1499
1499
|
if (isCommon && computed === computed) {
|
|
@@ -1521,8 +1521,8 @@
|
|
|
1521
1521
|
return result2;
|
|
1522
1522
|
}
|
|
1523
1523
|
function baseExtremum(array, iteratee2, comparator) {
|
|
1524
|
-
var index2 = -1,
|
|
1525
|
-
while (++index2 <
|
|
1524
|
+
var index2 = -1, length = array.length;
|
|
1525
|
+
while (++index2 < length) {
|
|
1526
1526
|
var value = array[index2], current = iteratee2(value);
|
|
1527
1527
|
if (current != null && (computed === undefined2 ? current === current && !isSymbol(current) : comparator(current, computed))) {
|
|
1528
1528
|
var computed = current, result2 = value;
|
|
@@ -1531,14 +1531,14 @@
|
|
|
1531
1531
|
return result2;
|
|
1532
1532
|
}
|
|
1533
1533
|
function baseFill(array, value, start, end) {
|
|
1534
|
-
var
|
|
1534
|
+
var length = array.length;
|
|
1535
1535
|
start = toInteger(start);
|
|
1536
1536
|
if (start < 0) {
|
|
1537
|
-
start = -start >
|
|
1537
|
+
start = -start > length ? 0 : length + start;
|
|
1538
1538
|
}
|
|
1539
|
-
end = end === undefined2 || end >
|
|
1539
|
+
end = end === undefined2 || end > length ? length : toInteger(end);
|
|
1540
1540
|
if (end < 0) {
|
|
1541
|
-
end +=
|
|
1541
|
+
end += length;
|
|
1542
1542
|
}
|
|
1543
1543
|
end = start > end ? 0 : toLength(end);
|
|
1544
1544
|
while (start < end) {
|
|
@@ -1556,10 +1556,10 @@
|
|
|
1556
1556
|
return result2;
|
|
1557
1557
|
}
|
|
1558
1558
|
function baseFlatten(array, depth, predicate, isStrict, result2) {
|
|
1559
|
-
var index2 = -1,
|
|
1559
|
+
var index2 = -1, length = array.length;
|
|
1560
1560
|
predicate || (predicate = isFlattenable);
|
|
1561
1561
|
result2 || (result2 = []);
|
|
1562
|
-
while (++index2 <
|
|
1562
|
+
while (++index2 < length) {
|
|
1563
1563
|
var value = array[index2];
|
|
1564
1564
|
if (depth > 0 && predicate(value)) {
|
|
1565
1565
|
if (depth > 1) {
|
|
@@ -1588,11 +1588,11 @@
|
|
|
1588
1588
|
}
|
|
1589
1589
|
function baseGet(object, path) {
|
|
1590
1590
|
path = castPath(path, object);
|
|
1591
|
-
var index2 = 0,
|
|
1592
|
-
while (object != null && index2 <
|
|
1591
|
+
var index2 = 0, length = path.length;
|
|
1592
|
+
while (object != null && index2 < length) {
|
|
1593
1593
|
object = object[toKey(path[index2++])];
|
|
1594
1594
|
}
|
|
1595
|
-
return index2 && index2 ==
|
|
1595
|
+
return index2 && index2 == length ? object : undefined2;
|
|
1596
1596
|
}
|
|
1597
1597
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1598
1598
|
var result2 = keysFunc(object);
|
|
@@ -1617,19 +1617,19 @@
|
|
|
1617
1617
|
return number >= nativeMin(start, end) && number < nativeMax(start, end);
|
|
1618
1618
|
}
|
|
1619
1619
|
function baseIntersection(arrays, iteratee2, comparator) {
|
|
1620
|
-
var includes2 = comparator ? arrayIncludesWith : arrayIncludes,
|
|
1620
|
+
var includes2 = comparator ? arrayIncludesWith : arrayIncludes, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array2(othLength), maxLength = Infinity, result2 = [];
|
|
1621
1621
|
while (othIndex--) {
|
|
1622
1622
|
var array = arrays[othIndex];
|
|
1623
1623
|
if (othIndex && iteratee2) {
|
|
1624
1624
|
array = arrayMap(array, baseUnary(iteratee2));
|
|
1625
1625
|
}
|
|
1626
1626
|
maxLength = nativeMin(array.length, maxLength);
|
|
1627
|
-
caches[othIndex] = !comparator && (iteratee2 ||
|
|
1627
|
+
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined2;
|
|
1628
1628
|
}
|
|
1629
1629
|
array = arrays[0];
|
|
1630
1630
|
var index2 = -1, seen = caches[0];
|
|
1631
1631
|
outer:
|
|
1632
|
-
while (++index2 <
|
|
1632
|
+
while (++index2 < length && result2.length < maxLength) {
|
|
1633
1633
|
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
1634
1634
|
value = comparator || value !== 0 ? value : 0;
|
|
1635
1635
|
if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) {
|
|
@@ -1712,9 +1712,9 @@
|
|
|
1712
1712
|
return isObjectLike(value) && getTag(value) == mapTag;
|
|
1713
1713
|
}
|
|
1714
1714
|
function baseIsMatch(object, source, matchData, customizer) {
|
|
1715
|
-
var index2 = matchData.length,
|
|
1715
|
+
var index2 = matchData.length, length = index2, noCustomizer = !customizer;
|
|
1716
1716
|
if (object == null) {
|
|
1717
|
-
return !
|
|
1717
|
+
return !length;
|
|
1718
1718
|
}
|
|
1719
1719
|
object = Object2(object);
|
|
1720
1720
|
while (index2--) {
|
|
@@ -1723,7 +1723,7 @@
|
|
|
1723
1723
|
return false;
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
|
-
while (++index2 <
|
|
1726
|
+
while (++index2 < length) {
|
|
1727
1727
|
data = matchData[index2];
|
|
1728
1728
|
var key2 = data[0], objValue = object[key2], srcValue = data[1];
|
|
1729
1729
|
if (noCustomizer && data[2]) {
|
|
@@ -1883,12 +1883,12 @@
|
|
|
1883
1883
|
assignMergeValue(object, key2, newValue);
|
|
1884
1884
|
}
|
|
1885
1885
|
function baseNth(array, n) {
|
|
1886
|
-
var
|
|
1887
|
-
if (!
|
|
1886
|
+
var length = array.length;
|
|
1887
|
+
if (!length) {
|
|
1888
1888
|
return;
|
|
1889
1889
|
}
|
|
1890
|
-
n += n < 0 ?
|
|
1891
|
-
return isIndex(n,
|
|
1890
|
+
n += n < 0 ? length : 0;
|
|
1891
|
+
return isIndex(n, length) ? array[n] : undefined2;
|
|
1892
1892
|
}
|
|
1893
1893
|
function baseOrderBy(collection, iteratees, orders) {
|
|
1894
1894
|
if (iteratees.length) {
|
|
@@ -1921,8 +1921,8 @@
|
|
|
1921
1921
|
});
|
|
1922
1922
|
}
|
|
1923
1923
|
function basePickBy(object, paths, predicate) {
|
|
1924
|
-
var index2 = -1,
|
|
1925
|
-
while (++index2 <
|
|
1924
|
+
var index2 = -1, length = paths.length, result2 = {};
|
|
1925
|
+
while (++index2 < length) {
|
|
1926
1926
|
var path = paths[index2], value = baseGet(object, path);
|
|
1927
1927
|
if (predicate(value, path)) {
|
|
1928
1928
|
baseSet(result2, castPath(path, object), value);
|
|
@@ -1936,14 +1936,14 @@
|
|
|
1936
1936
|
};
|
|
1937
1937
|
}
|
|
1938
1938
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
1939
|
-
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index2 = -1,
|
|
1939
|
+
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index2 = -1, length = values2.length, seen = array;
|
|
1940
1940
|
if (array === values2) {
|
|
1941
1941
|
values2 = copyArray(values2);
|
|
1942
1942
|
}
|
|
1943
1943
|
if (iteratee2) {
|
|
1944
1944
|
seen = arrayMap(array, baseUnary(iteratee2));
|
|
1945
1945
|
}
|
|
1946
|
-
while (++index2 <
|
|
1946
|
+
while (++index2 < length) {
|
|
1947
1947
|
var fromIndex = 0, value = values2[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
1948
1948
|
while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) {
|
|
1949
1949
|
if (seen !== array) {
|
|
@@ -1955,10 +1955,10 @@
|
|
|
1955
1955
|
return array;
|
|
1956
1956
|
}
|
|
1957
1957
|
function basePullAt(array, indexes) {
|
|
1958
|
-
var
|
|
1959
|
-
while (
|
|
1960
|
-
var index2 = indexes[
|
|
1961
|
-
if (
|
|
1958
|
+
var length = array ? indexes.length : 0, lastIndex = length - 1;
|
|
1959
|
+
while (length--) {
|
|
1960
|
+
var index2 = indexes[length];
|
|
1961
|
+
if (length == lastIndex || index2 !== previous) {
|
|
1962
1962
|
var previous = index2;
|
|
1963
1963
|
if (isIndex(index2)) {
|
|
1964
1964
|
splice.call(array, index2, 1);
|
|
@@ -1973,9 +1973,9 @@
|
|
|
1973
1973
|
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
1974
1974
|
}
|
|
1975
1975
|
function baseRange(start, end, step, fromRight) {
|
|
1976
|
-
var index2 = -1,
|
|
1977
|
-
while (
|
|
1978
|
-
result2[fromRight ?
|
|
1976
|
+
var index2 = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length);
|
|
1977
|
+
while (length--) {
|
|
1978
|
+
result2[fromRight ? length : ++index2] = start;
|
|
1979
1979
|
start += step;
|
|
1980
1980
|
}
|
|
1981
1981
|
return result2;
|
|
@@ -2011,8 +2011,8 @@
|
|
|
2011
2011
|
return object;
|
|
2012
2012
|
}
|
|
2013
2013
|
path = castPath(path, object);
|
|
2014
|
-
var index2 = -1,
|
|
2015
|
-
while (nested != null && ++index2 <
|
|
2014
|
+
var index2 = -1, length = path.length, lastIndex = length - 1, nested = object;
|
|
2015
|
+
while (nested != null && ++index2 < length) {
|
|
2016
2016
|
var key2 = toKey(path[index2]), newValue = value;
|
|
2017
2017
|
if (key2 === "__proto__" || key2 === "constructor" || key2 === "prototype") {
|
|
2018
2018
|
return object;
|
|
@@ -2045,18 +2045,18 @@
|
|
|
2045
2045
|
return shuffleSelf(values(collection));
|
|
2046
2046
|
}
|
|
2047
2047
|
function baseSlice(array, start, end) {
|
|
2048
|
-
var index2 = -1,
|
|
2048
|
+
var index2 = -1, length = array.length;
|
|
2049
2049
|
if (start < 0) {
|
|
2050
|
-
start = -start >
|
|
2050
|
+
start = -start > length ? 0 : length + start;
|
|
2051
2051
|
}
|
|
2052
|
-
end = end >
|
|
2052
|
+
end = end > length ? length : end;
|
|
2053
2053
|
if (end < 0) {
|
|
2054
|
-
end +=
|
|
2054
|
+
end += length;
|
|
2055
2055
|
}
|
|
2056
|
-
|
|
2056
|
+
length = start > end ? 0 : end - start >>> 0;
|
|
2057
2057
|
start >>>= 0;
|
|
2058
|
-
var result2 = Array2(
|
|
2059
|
-
while (++index2 <
|
|
2058
|
+
var result2 = Array2(length);
|
|
2059
|
+
while (++index2 < length) {
|
|
2060
2060
|
result2[index2] = array[index2 + start];
|
|
2061
2061
|
}
|
|
2062
2062
|
return result2;
|
|
@@ -2115,8 +2115,8 @@
|
|
|
2115
2115
|
return nativeMin(high, MAX_ARRAY_INDEX);
|
|
2116
2116
|
}
|
|
2117
2117
|
function baseSortedUniq(array, iteratee2) {
|
|
2118
|
-
var index2 = -1,
|
|
2119
|
-
while (++index2 <
|
|
2118
|
+
var index2 = -1, length = array.length, resIndex = 0, result2 = [];
|
|
2119
|
+
while (++index2 < length) {
|
|
2120
2120
|
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
2121
2121
|
if (!index2 || !eq(computed, seen)) {
|
|
2122
2122
|
var seen = computed;
|
|
@@ -2148,11 +2148,11 @@
|
|
|
2148
2148
|
return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
|
|
2149
2149
|
}
|
|
2150
2150
|
function baseUniq(array, iteratee2, comparator) {
|
|
2151
|
-
var index2 = -1, includes2 = arrayIncludes,
|
|
2151
|
+
var index2 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
|
|
2152
2152
|
if (comparator) {
|
|
2153
2153
|
isCommon = false;
|
|
2154
2154
|
includes2 = arrayIncludesWith;
|
|
2155
|
-
} else if (
|
|
2155
|
+
} else if (length >= LARGE_ARRAY_SIZE) {
|
|
2156
2156
|
var set2 = iteratee2 ? null : createSet(array);
|
|
2157
2157
|
if (set2) {
|
|
2158
2158
|
return setToArray(set2);
|
|
@@ -2164,7 +2164,7 @@
|
|
|
2164
2164
|
seen = iteratee2 ? [] : result2;
|
|
2165
2165
|
}
|
|
2166
2166
|
outer:
|
|
2167
|
-
while (++index2 <
|
|
2167
|
+
while (++index2 < length) {
|
|
2168
2168
|
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
2169
2169
|
value = comparator || value !== 0 ? value : 0;
|
|
2170
2170
|
if (isCommon && computed === computed) {
|
|
@@ -2189,16 +2189,16 @@
|
|
|
2189
2189
|
}
|
|
2190
2190
|
function baseUnset(object, path) {
|
|
2191
2191
|
path = castPath(path, object);
|
|
2192
|
-
var index2 = -1,
|
|
2193
|
-
if (!
|
|
2192
|
+
var index2 = -1, length = path.length;
|
|
2193
|
+
if (!length) {
|
|
2194
2194
|
return true;
|
|
2195
2195
|
}
|
|
2196
|
-
while (++index2 <
|
|
2196
|
+
while (++index2 < length) {
|
|
2197
2197
|
var key2 = toKey(path[index2]);
|
|
2198
2198
|
if (key2 === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
|
|
2199
2199
|
return false;
|
|
2200
2200
|
}
|
|
2201
|
-
if ((key2 === "constructor" || key2 === "prototype") && index2 <
|
|
2201
|
+
if ((key2 === "constructor" || key2 === "prototype") && index2 < length - 1) {
|
|
2202
2202
|
return false;
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
@@ -2209,10 +2209,10 @@
|
|
|
2209
2209
|
return baseSet(object, path, updater(baseGet(object, path)), customizer);
|
|
2210
2210
|
}
|
|
2211
2211
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
2212
|
-
var
|
|
2213
|
-
while ((fromRight ? index2-- : ++index2 <
|
|
2212
|
+
var length = array.length, index2 = fromRight ? length : -1;
|
|
2213
|
+
while ((fromRight ? index2-- : ++index2 < length) && predicate(array[index2], index2, array)) {
|
|
2214
2214
|
}
|
|
2215
|
-
return isDrop ? baseSlice(array, fromRight ? 0 : index2, fromRight ? index2 + 1 :
|
|
2215
|
+
return isDrop ? baseSlice(array, fromRight ? 0 : index2, fromRight ? index2 + 1 : length) : baseSlice(array, fromRight ? index2 + 1 : 0, fromRight ? length : index2);
|
|
2216
2216
|
}
|
|
2217
2217
|
function baseWrapperValue(value, actions) {
|
|
2218
2218
|
var result2 = value;
|
|
@@ -2224,14 +2224,14 @@
|
|
|
2224
2224
|
}, result2);
|
|
2225
2225
|
}
|
|
2226
2226
|
function baseXor(arrays, iteratee2, comparator) {
|
|
2227
|
-
var
|
|
2228
|
-
if (
|
|
2229
|
-
return
|
|
2227
|
+
var length = arrays.length;
|
|
2228
|
+
if (length < 2) {
|
|
2229
|
+
return length ? baseUniq(arrays[0]) : [];
|
|
2230
2230
|
}
|
|
2231
|
-
var index2 = -1, result2 = Array2(
|
|
2232
|
-
while (++index2 <
|
|
2231
|
+
var index2 = -1, result2 = Array2(length);
|
|
2232
|
+
while (++index2 < length) {
|
|
2233
2233
|
var array = arrays[index2], othIndex = -1;
|
|
2234
|
-
while (++othIndex <
|
|
2234
|
+
while (++othIndex < length) {
|
|
2235
2235
|
if (othIndex != index2) {
|
|
2236
2236
|
result2[index2] = baseDifference(result2[index2] || array, arrays[othIndex], iteratee2, comparator);
|
|
2237
2237
|
}
|
|
@@ -2240,8 +2240,8 @@
|
|
|
2240
2240
|
return baseUniq(baseFlatten(result2, 1), iteratee2, comparator);
|
|
2241
2241
|
}
|
|
2242
2242
|
function baseZipObject(props, values2, assignFunc) {
|
|
2243
|
-
var index2 = -1,
|
|
2244
|
-
while (++index2 <
|
|
2243
|
+
var index2 = -1, length = props.length, valsLength = values2.length, result2 = {};
|
|
2244
|
+
while (++index2 < length) {
|
|
2245
2245
|
var value = index2 < valsLength ? values2[index2] : undefined2;
|
|
2246
2246
|
assignFunc(result2, props[index2], value);
|
|
2247
2247
|
}
|
|
@@ -2261,9 +2261,9 @@
|
|
|
2261
2261
|
}
|
|
2262
2262
|
var castRest = baseRest;
|
|
2263
2263
|
function castSlice(array, start, end) {
|
|
2264
|
-
var
|
|
2265
|
-
end = end === undefined2 ?
|
|
2266
|
-
return !start && end >=
|
|
2264
|
+
var length = array.length;
|
|
2265
|
+
end = end === undefined2 ? length : end;
|
|
2266
|
+
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
2267
2267
|
}
|
|
2268
2268
|
var clearTimeout2 = ctxClearTimeout || function(id) {
|
|
2269
2269
|
return root.clearTimeout(id);
|
|
@@ -2272,7 +2272,7 @@
|
|
|
2272
2272
|
if (isDeep) {
|
|
2273
2273
|
return buffer.slice();
|
|
2274
2274
|
}
|
|
2275
|
-
var
|
|
2275
|
+
var length = buffer.length, result2 = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
2276
2276
|
buffer.copy(result2);
|
|
2277
2277
|
return result2;
|
|
2278
2278
|
}
|
|
@@ -2311,8 +2311,8 @@
|
|
|
2311
2311
|
return 0;
|
|
2312
2312
|
}
|
|
2313
2313
|
function compareMultiple(object, other, orders) {
|
|
2314
|
-
var index2 = -1, objCriteria = object.criteria, othCriteria = other.criteria,
|
|
2315
|
-
while (++index2 <
|
|
2314
|
+
var index2 = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
|
2315
|
+
while (++index2 < length) {
|
|
2316
2316
|
var result2 = compareAscending(objCriteria[index2], othCriteria[index2]);
|
|
2317
2317
|
if (result2) {
|
|
2318
2318
|
if (index2 >= ordersLength) {
|
|
@@ -2356,9 +2356,9 @@
|
|
|
2356
2356
|
return result2;
|
|
2357
2357
|
}
|
|
2358
2358
|
function copyArray(source, array) {
|
|
2359
|
-
var index2 = -1,
|
|
2360
|
-
array || (array = Array2(
|
|
2361
|
-
while (++index2 <
|
|
2359
|
+
var index2 = -1, length = source.length;
|
|
2360
|
+
array || (array = Array2(length));
|
|
2361
|
+
while (++index2 < length) {
|
|
2362
2362
|
array[index2] = source[index2];
|
|
2363
2363
|
}
|
|
2364
2364
|
return array;
|
|
@@ -2366,8 +2366,8 @@
|
|
|
2366
2366
|
function copyObject(source, props, object, customizer) {
|
|
2367
2367
|
var isNew = !object;
|
|
2368
2368
|
object || (object = {});
|
|
2369
|
-
var index2 = -1,
|
|
2370
|
-
while (++index2 <
|
|
2369
|
+
var index2 = -1, length = props.length;
|
|
2370
|
+
while (++index2 < length) {
|
|
2371
2371
|
var key2 = props[index2];
|
|
2372
2372
|
var newValue = customizer ? customizer(object[key2], source[key2], key2, object, source) : undefined2;
|
|
2373
2373
|
if (newValue === undefined2) {
|
|
@@ -2395,14 +2395,14 @@
|
|
|
2395
2395
|
}
|
|
2396
2396
|
function createAssigner(assigner) {
|
|
2397
2397
|
return baseRest(function(object, sources) {
|
|
2398
|
-
var index2 = -1,
|
|
2399
|
-
customizer = assigner.length > 3 && typeof customizer == "function" ? (
|
|
2398
|
+
var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined2, guard = length > 2 ? sources[2] : undefined2;
|
|
2399
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined2;
|
|
2400
2400
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2401
|
-
customizer =
|
|
2402
|
-
|
|
2401
|
+
customizer = length < 3 ? undefined2 : customizer;
|
|
2402
|
+
length = 1;
|
|
2403
2403
|
}
|
|
2404
2404
|
object = Object2(object);
|
|
2405
|
-
while (++index2 <
|
|
2405
|
+
while (++index2 < length) {
|
|
2406
2406
|
var source = sources[index2];
|
|
2407
2407
|
if (source) {
|
|
2408
2408
|
assigner(object, source, index2, customizer);
|
|
@@ -2419,8 +2419,8 @@
|
|
|
2419
2419
|
if (!isArrayLike(collection)) {
|
|
2420
2420
|
return eachFunc(collection, iteratee2);
|
|
2421
2421
|
}
|
|
2422
|
-
var
|
|
2423
|
-
while (fromRight ? index2-- : ++index2 <
|
|
2422
|
+
var length = collection.length, index2 = fromRight ? length : -1, iterable = Object2(collection);
|
|
2423
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
|
2424
2424
|
if (iteratee2(iterable[index2], index2, iterable) === false) {
|
|
2425
2425
|
break;
|
|
2426
2426
|
}
|
|
@@ -2430,9 +2430,9 @@
|
|
|
2430
2430
|
}
|
|
2431
2431
|
function createBaseFor(fromRight) {
|
|
2432
2432
|
return function(object, iteratee2, keysFunc) {
|
|
2433
|
-
var index2 = -1, iterable = Object2(object), props = keysFunc(object),
|
|
2434
|
-
while (
|
|
2435
|
-
var key2 = props[fromRight ?
|
|
2433
|
+
var index2 = -1, iterable = Object2(object), props = keysFunc(object), length = props.length;
|
|
2434
|
+
while (length--) {
|
|
2435
|
+
var key2 = props[fromRight ? length : ++index2];
|
|
2436
2436
|
if (iteratee2(iterable[key2], key2, iterable) === false) {
|
|
2437
2437
|
break;
|
|
2438
2438
|
}
|
|
@@ -2490,13 +2490,13 @@
|
|
|
2490
2490
|
function createCurry(func, bitmask, arity) {
|
|
2491
2491
|
var Ctor = createCtor(func);
|
|
2492
2492
|
function wrapper() {
|
|
2493
|
-
var
|
|
2493
|
+
var length = arguments.length, args = Array2(length), index2 = length, placeholder = getHolder(wrapper);
|
|
2494
2494
|
while (index2--) {
|
|
2495
2495
|
args[index2] = arguments[index2];
|
|
2496
2496
|
}
|
|
2497
|
-
var holders =
|
|
2498
|
-
|
|
2499
|
-
if (
|
|
2497
|
+
var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
|
|
2498
|
+
length -= holders.length;
|
|
2499
|
+
if (length < arity) {
|
|
2500
2500
|
return createRecurry(
|
|
2501
2501
|
func,
|
|
2502
2502
|
bitmask,
|
|
@@ -2507,7 +2507,7 @@
|
|
|
2507
2507
|
holders,
|
|
2508
2508
|
undefined2,
|
|
2509
2509
|
undefined2,
|
|
2510
|
-
arity -
|
|
2510
|
+
arity - length
|
|
2511
2511
|
);
|
|
2512
2512
|
}
|
|
2513
2513
|
var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
|
|
@@ -2531,7 +2531,7 @@
|
|
|
2531
2531
|
}
|
|
2532
2532
|
function createFlow(fromRight) {
|
|
2533
2533
|
return flatRest(function(funcs) {
|
|
2534
|
-
var
|
|
2534
|
+
var length = funcs.length, index2 = length, prereq = LodashWrapper.prototype.thru;
|
|
2535
2535
|
if (fromRight) {
|
|
2536
2536
|
funcs.reverse();
|
|
2537
2537
|
}
|
|
@@ -2544,8 +2544,8 @@
|
|
|
2544
2544
|
var wrapper = new LodashWrapper([], true);
|
|
2545
2545
|
}
|
|
2546
2546
|
}
|
|
2547
|
-
index2 = wrapper ? index2 :
|
|
2548
|
-
while (++index2 <
|
|
2547
|
+
index2 = wrapper ? index2 : length;
|
|
2548
|
+
while (++index2 < length) {
|
|
2549
2549
|
func = funcs[index2];
|
|
2550
2550
|
var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined2;
|
|
2551
2551
|
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) {
|
|
@@ -2559,8 +2559,8 @@
|
|
|
2559
2559
|
if (wrapper && args.length == 1 && isArray(value)) {
|
|
2560
2560
|
return wrapper.plant(value).value();
|
|
2561
2561
|
}
|
|
2562
|
-
var index3 = 0, result2 =
|
|
2563
|
-
while (++index3 <
|
|
2562
|
+
var index3 = 0, result2 = length ? funcs[index3].apply(this, args) : value;
|
|
2563
|
+
while (++index3 < length) {
|
|
2564
2564
|
result2 = funcs[index3].call(this, result2);
|
|
2565
2565
|
}
|
|
2566
2566
|
return result2;
|
|
@@ -2570,7 +2570,7 @@
|
|
|
2570
2570
|
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
|
|
2571
2571
|
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);
|
|
2572
2572
|
function wrapper() {
|
|
2573
|
-
var
|
|
2573
|
+
var length = arguments.length, args = Array2(length), index2 = length;
|
|
2574
2574
|
while (index2--) {
|
|
2575
2575
|
args[index2] = arguments[index2];
|
|
2576
2576
|
}
|
|
@@ -2583,8 +2583,8 @@
|
|
|
2583
2583
|
if (partialsRight) {
|
|
2584
2584
|
args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
|
|
2585
2585
|
}
|
|
2586
|
-
|
|
2587
|
-
if (isCurried &&
|
|
2586
|
+
length -= holdersCount;
|
|
2587
|
+
if (isCurried && length < arity) {
|
|
2588
2588
|
var newHolders = replaceHolders(args, placeholder);
|
|
2589
2589
|
return createRecurry(
|
|
2590
2590
|
func,
|
|
@@ -2596,17 +2596,17 @@
|
|
|
2596
2596
|
newHolders,
|
|
2597
2597
|
argPos,
|
|
2598
2598
|
ary2,
|
|
2599
|
-
arity -
|
|
2599
|
+
arity - length
|
|
2600
2600
|
);
|
|
2601
2601
|
}
|
|
2602
2602
|
var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func;
|
|
2603
|
-
|
|
2603
|
+
length = args.length;
|
|
2604
2604
|
if (argPos) {
|
|
2605
2605
|
args = reorder(args, argPos);
|
|
2606
|
-
} else if (isFlip &&
|
|
2606
|
+
} else if (isFlip && length > 1) {
|
|
2607
2607
|
args.reverse();
|
|
2608
2608
|
}
|
|
2609
|
-
if (isAry && ary2 <
|
|
2609
|
+
if (isAry && ary2 < length) {
|
|
2610
2610
|
args.length = ary2;
|
|
2611
2611
|
}
|
|
2612
2612
|
if (this && this !== root && this instanceof wrapper) {
|
|
@@ -2657,14 +2657,14 @@
|
|
|
2657
2657
|
});
|
|
2658
2658
|
});
|
|
2659
2659
|
}
|
|
2660
|
-
function createPadding(
|
|
2660
|
+
function createPadding(length, chars) {
|
|
2661
2661
|
chars = chars === undefined2 ? " " : baseToString(chars);
|
|
2662
2662
|
var charsLength = chars.length;
|
|
2663
2663
|
if (charsLength < 2) {
|
|
2664
|
-
return charsLength ? baseRepeat(chars,
|
|
2664
|
+
return charsLength ? baseRepeat(chars, length) : chars;
|
|
2665
2665
|
}
|
|
2666
|
-
var result2 = baseRepeat(chars, nativeCeil(
|
|
2667
|
-
return hasUnicode(chars) ? castSlice(stringToArray(result2), 0,
|
|
2666
|
+
var result2 = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
|
|
2667
|
+
return hasUnicode(chars) ? castSlice(stringToArray(result2), 0, length).join("") : result2.slice(0, length);
|
|
2668
2668
|
}
|
|
2669
2669
|
function createPartial(func, bitmask, thisArg, partials) {
|
|
2670
2670
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
|
@@ -2764,14 +2764,14 @@
|
|
|
2764
2764
|
if (!isBindKey && typeof func != "function") {
|
|
2765
2765
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
2766
2766
|
}
|
|
2767
|
-
var
|
|
2768
|
-
if (!
|
|
2767
|
+
var length = partials ? partials.length : 0;
|
|
2768
|
+
if (!length) {
|
|
2769
2769
|
bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
|
|
2770
2770
|
partials = holders = undefined2;
|
|
2771
2771
|
}
|
|
2772
2772
|
ary2 = ary2 === undefined2 ? ary2 : nativeMax(toInteger(ary2), 0);
|
|
2773
2773
|
arity = arity === undefined2 ? arity : toInteger(arity);
|
|
2774
|
-
|
|
2774
|
+
length -= holders ? holders.length : 0;
|
|
2775
2775
|
if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
|
|
2776
2776
|
var partialsRight = partials, holdersRight = holders;
|
|
2777
2777
|
partials = holders = undefined2;
|
|
@@ -2797,7 +2797,7 @@
|
|
|
2797
2797
|
thisArg = newData[2];
|
|
2798
2798
|
partials = newData[3];
|
|
2799
2799
|
holders = newData[4];
|
|
2800
|
-
arity = newData[9] = newData[9] === undefined2 ? isBindKey ? 0 : func.length : nativeMax(newData[9] -
|
|
2800
|
+
arity = newData[9] = newData[9] === undefined2 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
|
|
2801
2801
|
if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
|
|
2802
2802
|
bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
|
|
2803
2803
|
}
|
|
@@ -2975,9 +2975,9 @@
|
|
|
2975
2975
|
return metaMap.get(func);
|
|
2976
2976
|
};
|
|
2977
2977
|
function getFuncName(func) {
|
|
2978
|
-
var result2 = func.name + "", array = realNames[result2],
|
|
2979
|
-
while (
|
|
2980
|
-
var data = array[
|
|
2978
|
+
var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty.call(realNames, result2) ? array.length : 0;
|
|
2979
|
+
while (length--) {
|
|
2980
|
+
var data = array[length], otherFunc = data.func;
|
|
2981
2981
|
if (otherFunc == null || otherFunc == func) {
|
|
2982
2982
|
return data.name;
|
|
2983
2983
|
}
|
|
@@ -2998,10 +2998,10 @@
|
|
|
2998
2998
|
return isKeyable(key2) ? data[typeof key2 == "string" ? "string" : "hash"] : data.map;
|
|
2999
2999
|
}
|
|
3000
3000
|
function getMatchData(object) {
|
|
3001
|
-
var result2 = keys(object),
|
|
3002
|
-
while (
|
|
3003
|
-
var key2 = result2[
|
|
3004
|
-
result2[
|
|
3001
|
+
var result2 = keys(object), length = result2.length;
|
|
3002
|
+
while (length--) {
|
|
3003
|
+
var key2 = result2[length], value = object[key2];
|
|
3004
|
+
result2[length] = [key2, value, isStrictComparable(value)];
|
|
3005
3005
|
}
|
|
3006
3006
|
return result2;
|
|
3007
3007
|
}
|
|
@@ -3065,8 +3065,8 @@
|
|
|
3065
3065
|
};
|
|
3066
3066
|
}
|
|
3067
3067
|
function getView(start, end, transforms) {
|
|
3068
|
-
var index2 = -1,
|
|
3069
|
-
while (++index2 <
|
|
3068
|
+
var index2 = -1, length = transforms.length;
|
|
3069
|
+
while (++index2 < length) {
|
|
3070
3070
|
var data = transforms[index2], size2 = data.size;
|
|
3071
3071
|
switch (data.type) {
|
|
3072
3072
|
case "drop":
|
|
@@ -3091,23 +3091,23 @@
|
|
|
3091
3091
|
}
|
|
3092
3092
|
function hasPath(object, path, hasFunc) {
|
|
3093
3093
|
path = castPath(path, object);
|
|
3094
|
-
var index2 = -1,
|
|
3095
|
-
while (++index2 <
|
|
3094
|
+
var index2 = -1, length = path.length, result2 = false;
|
|
3095
|
+
while (++index2 < length) {
|
|
3096
3096
|
var key2 = toKey(path[index2]);
|
|
3097
3097
|
if (!(result2 = object != null && hasFunc(object, key2))) {
|
|
3098
3098
|
break;
|
|
3099
3099
|
}
|
|
3100
3100
|
object = object[key2];
|
|
3101
3101
|
}
|
|
3102
|
-
if (result2 || ++index2 !=
|
|
3102
|
+
if (result2 || ++index2 != length) {
|
|
3103
3103
|
return result2;
|
|
3104
3104
|
}
|
|
3105
|
-
|
|
3106
|
-
return !!
|
|
3105
|
+
length = object == null ? 0 : object.length;
|
|
3106
|
+
return !!length && isLength(length) && isIndex(key2, length) && (isArray(object) || isArguments(object));
|
|
3107
3107
|
}
|
|
3108
3108
|
function initCloneArray(array) {
|
|
3109
|
-
var
|
|
3110
|
-
if (
|
|
3109
|
+
var length = array.length, result2 = new array.constructor(length);
|
|
3110
|
+
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
3111
3111
|
result2.index = array.index;
|
|
3112
3112
|
result2.input = array.input;
|
|
3113
3113
|
}
|
|
@@ -3150,22 +3150,22 @@
|
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
3152
|
function insertWrapDetails(source, details) {
|
|
3153
|
-
var
|
|
3154
|
-
if (!
|
|
3153
|
+
var length = details.length;
|
|
3154
|
+
if (!length) {
|
|
3155
3155
|
return source;
|
|
3156
3156
|
}
|
|
3157
|
-
var lastIndex =
|
|
3158
|
-
details[lastIndex] = (
|
|
3159
|
-
details = details.join(
|
|
3157
|
+
var lastIndex = length - 1;
|
|
3158
|
+
details[lastIndex] = (length > 1 ? "& " : "") + details[lastIndex];
|
|
3159
|
+
details = details.join(length > 2 ? ", " : " ");
|
|
3160
3160
|
return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n");
|
|
3161
3161
|
}
|
|
3162
3162
|
function isFlattenable(value) {
|
|
3163
3163
|
return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
3164
3164
|
}
|
|
3165
|
-
function isIndex(value,
|
|
3165
|
+
function isIndex(value, length) {
|
|
3166
3166
|
var type = typeof value;
|
|
3167
|
-
|
|
3168
|
-
return !!
|
|
3167
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
3168
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
3169
3169
|
}
|
|
3170
3170
|
function isIterateeCall(value, index2, object) {
|
|
3171
3171
|
if (!isObject(object)) {
|
|
@@ -3282,8 +3282,8 @@
|
|
|
3282
3282
|
function overRest(func, start, transform2) {
|
|
3283
3283
|
start = nativeMax(start === undefined2 ? func.length - 1 : start, 0);
|
|
3284
3284
|
return function() {
|
|
3285
|
-
var args = arguments, index2 = -1,
|
|
3286
|
-
while (++index2 <
|
|
3285
|
+
var args = arguments, index2 = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
|
|
3286
|
+
while (++index2 < length) {
|
|
3287
3287
|
array[index2] = args[start + index2];
|
|
3288
3288
|
}
|
|
3289
3289
|
index2 = -1;
|
|
@@ -3299,10 +3299,10 @@
|
|
|
3299
3299
|
return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
|
|
3300
3300
|
}
|
|
3301
3301
|
function reorder(array, indexes) {
|
|
3302
|
-
var arrLength = array.length,
|
|
3303
|
-
while (
|
|
3304
|
-
var index2 = indexes[
|
|
3305
|
-
array[
|
|
3302
|
+
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
3303
|
+
while (length--) {
|
|
3304
|
+
var index2 = indexes[length];
|
|
3305
|
+
array[length] = isIndex(index2, arrLength) ? oldArray[index2] : undefined2;
|
|
3306
3306
|
}
|
|
3307
3307
|
return array;
|
|
3308
3308
|
}
|
|
@@ -3340,8 +3340,8 @@
|
|
|
3340
3340
|
};
|
|
3341
3341
|
}
|
|
3342
3342
|
function shuffleSelf(array, size2) {
|
|
3343
|
-
var index2 = -1,
|
|
3344
|
-
size2 = size2 === undefined2 ?
|
|
3343
|
+
var index2 = -1, length = array.length, lastIndex = length - 1;
|
|
3344
|
+
size2 = size2 === undefined2 ? length : size2;
|
|
3345
3345
|
while (++index2 < size2) {
|
|
3346
3346
|
var rand = baseRandom(index2, lastIndex), value = array[rand];
|
|
3347
3347
|
array[rand] = array[index2];
|
|
@@ -3405,19 +3405,19 @@
|
|
|
3405
3405
|
} else {
|
|
3406
3406
|
size2 = nativeMax(toInteger(size2), 0);
|
|
3407
3407
|
}
|
|
3408
|
-
var
|
|
3409
|
-
if (!
|
|
3408
|
+
var length = array == null ? 0 : array.length;
|
|
3409
|
+
if (!length || size2 < 1) {
|
|
3410
3410
|
return [];
|
|
3411
3411
|
}
|
|
3412
|
-
var index2 = 0, resIndex = 0, result2 = Array2(nativeCeil(
|
|
3413
|
-
while (index2 <
|
|
3412
|
+
var index2 = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2));
|
|
3413
|
+
while (index2 < length) {
|
|
3414
3414
|
result2[resIndex++] = baseSlice(array, index2, index2 += size2);
|
|
3415
3415
|
}
|
|
3416
3416
|
return result2;
|
|
3417
3417
|
}
|
|
3418
3418
|
function compact(array) {
|
|
3419
|
-
var index2 = -1,
|
|
3420
|
-
while (++index2 <
|
|
3419
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
|
|
3420
|
+
while (++index2 < length) {
|
|
3421
3421
|
var value = array[index2];
|
|
3422
3422
|
if (value) {
|
|
3423
3423
|
result2[resIndex++] = value;
|
|
@@ -3426,11 +3426,11 @@
|
|
|
3426
3426
|
return result2;
|
|
3427
3427
|
}
|
|
3428
3428
|
function concat() {
|
|
3429
|
-
var
|
|
3430
|
-
if (!
|
|
3429
|
+
var length = arguments.length;
|
|
3430
|
+
if (!length) {
|
|
3431
3431
|
return [];
|
|
3432
3432
|
}
|
|
3433
|
-
var args = Array2(
|
|
3433
|
+
var args = Array2(length - 1), array = arguments[0], index2 = length;
|
|
3434
3434
|
while (index2--) {
|
|
3435
3435
|
args[index2 - 1] = arguments[index2];
|
|
3436
3436
|
}
|
|
@@ -3454,20 +3454,20 @@
|
|
|
3454
3454
|
return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined2, comparator) : [];
|
|
3455
3455
|
});
|
|
3456
3456
|
function drop(array, n, guard) {
|
|
3457
|
-
var
|
|
3458
|
-
if (!
|
|
3457
|
+
var length = array == null ? 0 : array.length;
|
|
3458
|
+
if (!length) {
|
|
3459
3459
|
return [];
|
|
3460
3460
|
}
|
|
3461
3461
|
n = guard || n === undefined2 ? 1 : toInteger(n);
|
|
3462
|
-
return baseSlice(array, n < 0 ? 0 : n,
|
|
3462
|
+
return baseSlice(array, n < 0 ? 0 : n, length);
|
|
3463
3463
|
}
|
|
3464
3464
|
function dropRight(array, n, guard) {
|
|
3465
|
-
var
|
|
3466
|
-
if (!
|
|
3465
|
+
var length = array == null ? 0 : array.length;
|
|
3466
|
+
if (!length) {
|
|
3467
3467
|
return [];
|
|
3468
3468
|
}
|
|
3469
3469
|
n = guard || n === undefined2 ? 1 : toInteger(n);
|
|
3470
|
-
n =
|
|
3470
|
+
n = length - n;
|
|
3471
3471
|
return baseSlice(array, 0, n < 0 ? 0 : n);
|
|
3472
3472
|
}
|
|
3473
3473
|
function dropRightWhile(array, predicate) {
|
|
@@ -3477,58 +3477,58 @@
|
|
|
3477
3477
|
return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true) : [];
|
|
3478
3478
|
}
|
|
3479
3479
|
function fill(array, value, start, end) {
|
|
3480
|
-
var
|
|
3481
|
-
if (!
|
|
3480
|
+
var length = array == null ? 0 : array.length;
|
|
3481
|
+
if (!length) {
|
|
3482
3482
|
return [];
|
|
3483
3483
|
}
|
|
3484
3484
|
if (start && typeof start != "number" && isIterateeCall(array, value, start)) {
|
|
3485
3485
|
start = 0;
|
|
3486
|
-
end =
|
|
3486
|
+
end = length;
|
|
3487
3487
|
}
|
|
3488
3488
|
return baseFill(array, value, start, end);
|
|
3489
3489
|
}
|
|
3490
3490
|
function findIndex(array, predicate, fromIndex) {
|
|
3491
|
-
var
|
|
3492
|
-
if (!
|
|
3491
|
+
var length = array == null ? 0 : array.length;
|
|
3492
|
+
if (!length) {
|
|
3493
3493
|
return -1;
|
|
3494
3494
|
}
|
|
3495
3495
|
var index2 = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
3496
3496
|
if (index2 < 0) {
|
|
3497
|
-
index2 = nativeMax(
|
|
3497
|
+
index2 = nativeMax(length + index2, 0);
|
|
3498
3498
|
}
|
|
3499
3499
|
return baseFindIndex(array, getIteratee(predicate, 3), index2);
|
|
3500
3500
|
}
|
|
3501
3501
|
function findLastIndex(array, predicate, fromIndex) {
|
|
3502
|
-
var
|
|
3503
|
-
if (!
|
|
3502
|
+
var length = array == null ? 0 : array.length;
|
|
3503
|
+
if (!length) {
|
|
3504
3504
|
return -1;
|
|
3505
3505
|
}
|
|
3506
|
-
var index2 =
|
|
3506
|
+
var index2 = length - 1;
|
|
3507
3507
|
if (fromIndex !== undefined2) {
|
|
3508
3508
|
index2 = toInteger(fromIndex);
|
|
3509
|
-
index2 = fromIndex < 0 ? nativeMax(
|
|
3509
|
+
index2 = fromIndex < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
|
|
3510
3510
|
}
|
|
3511
3511
|
return baseFindIndex(array, getIteratee(predicate, 3), index2, true);
|
|
3512
3512
|
}
|
|
3513
3513
|
function flatten(array) {
|
|
3514
|
-
var
|
|
3515
|
-
return
|
|
3514
|
+
var length = array == null ? 0 : array.length;
|
|
3515
|
+
return length ? baseFlatten(array, 1) : [];
|
|
3516
3516
|
}
|
|
3517
3517
|
function flattenDeep(array) {
|
|
3518
|
-
var
|
|
3519
|
-
return
|
|
3518
|
+
var length = array == null ? 0 : array.length;
|
|
3519
|
+
return length ? baseFlatten(array, INFINITY) : [];
|
|
3520
3520
|
}
|
|
3521
3521
|
function flattenDepth(array, depth) {
|
|
3522
|
-
var
|
|
3523
|
-
if (!
|
|
3522
|
+
var length = array == null ? 0 : array.length;
|
|
3523
|
+
if (!length) {
|
|
3524
3524
|
return [];
|
|
3525
3525
|
}
|
|
3526
3526
|
depth = depth === undefined2 ? 1 : toInteger(depth);
|
|
3527
3527
|
return baseFlatten(array, depth);
|
|
3528
3528
|
}
|
|
3529
3529
|
function fromPairs(pairs) {
|
|
3530
|
-
var index2 = -1,
|
|
3531
|
-
while (++index2 <
|
|
3530
|
+
var index2 = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
3531
|
+
while (++index2 < length) {
|
|
3532
3532
|
var pair = pairs[index2];
|
|
3533
3533
|
baseAssignValue(result2, pair[0], pair[1]);
|
|
3534
3534
|
}
|
|
@@ -3538,19 +3538,19 @@
|
|
|
3538
3538
|
return array && array.length ? array[0] : undefined2;
|
|
3539
3539
|
}
|
|
3540
3540
|
function indexOf(array, value, fromIndex) {
|
|
3541
|
-
var
|
|
3542
|
-
if (!
|
|
3541
|
+
var length = array == null ? 0 : array.length;
|
|
3542
|
+
if (!length) {
|
|
3543
3543
|
return -1;
|
|
3544
3544
|
}
|
|
3545
3545
|
var index2 = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
3546
3546
|
if (index2 < 0) {
|
|
3547
|
-
index2 = nativeMax(
|
|
3547
|
+
index2 = nativeMax(length + index2, 0);
|
|
3548
3548
|
}
|
|
3549
3549
|
return baseIndexOf(array, value, index2);
|
|
3550
3550
|
}
|
|
3551
3551
|
function initial(array) {
|
|
3552
|
-
var
|
|
3553
|
-
return
|
|
3552
|
+
var length = array == null ? 0 : array.length;
|
|
3553
|
+
return length ? baseSlice(array, 0, -1) : [];
|
|
3554
3554
|
}
|
|
3555
3555
|
var intersection = baseRest(function(arrays) {
|
|
3556
3556
|
var mapped = arrayMap(arrays, castArrayLikeObject);
|
|
@@ -3577,18 +3577,18 @@
|
|
|
3577
3577
|
return array == null ? "" : nativeJoin.call(array, separator);
|
|
3578
3578
|
}
|
|
3579
3579
|
function last(array) {
|
|
3580
|
-
var
|
|
3581
|
-
return
|
|
3580
|
+
var length = array == null ? 0 : array.length;
|
|
3581
|
+
return length ? array[length - 1] : undefined2;
|
|
3582
3582
|
}
|
|
3583
3583
|
function lastIndexOf(array, value, fromIndex) {
|
|
3584
|
-
var
|
|
3585
|
-
if (!
|
|
3584
|
+
var length = array == null ? 0 : array.length;
|
|
3585
|
+
if (!length) {
|
|
3586
3586
|
return -1;
|
|
3587
3587
|
}
|
|
3588
|
-
var index2 =
|
|
3588
|
+
var index2 = length;
|
|
3589
3589
|
if (fromIndex !== undefined2) {
|
|
3590
3590
|
index2 = toInteger(fromIndex);
|
|
3591
|
-
index2 = index2 < 0 ? nativeMax(
|
|
3591
|
+
index2 = index2 < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
|
|
3592
3592
|
}
|
|
3593
3593
|
return value === value ? strictLastIndexOf(array, value, index2) : baseFindIndex(array, baseIsNaN, index2, true);
|
|
3594
3594
|
}
|
|
@@ -3606,9 +3606,9 @@
|
|
|
3606
3606
|
return array && array.length && values2 && values2.length ? basePullAll(array, values2, undefined2, comparator) : array;
|
|
3607
3607
|
}
|
|
3608
3608
|
var pullAt = flatRest(function(array, indexes) {
|
|
3609
|
-
var
|
|
3609
|
+
var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
|
|
3610
3610
|
basePullAt(array, arrayMap(indexes, function(index2) {
|
|
3611
|
-
return isIndex(index2,
|
|
3611
|
+
return isIndex(index2, length) ? +index2 : index2;
|
|
3612
3612
|
}).sort(compareAscending));
|
|
3613
3613
|
return result2;
|
|
3614
3614
|
});
|
|
@@ -3617,9 +3617,9 @@
|
|
|
3617
3617
|
if (!(array && array.length)) {
|
|
3618
3618
|
return result2;
|
|
3619
3619
|
}
|
|
3620
|
-
var index2 = -1, indexes = [],
|
|
3620
|
+
var index2 = -1, indexes = [], length = array.length;
|
|
3621
3621
|
predicate = getIteratee(predicate, 3);
|
|
3622
|
-
while (++index2 <
|
|
3622
|
+
while (++index2 < length) {
|
|
3623
3623
|
var value = array[index2];
|
|
3624
3624
|
if (predicate(value, index2, array)) {
|
|
3625
3625
|
result2.push(value);
|
|
@@ -3633,16 +3633,16 @@
|
|
|
3633
3633
|
return array == null ? array : nativeReverse.call(array);
|
|
3634
3634
|
}
|
|
3635
3635
|
function slice(array, start, end) {
|
|
3636
|
-
var
|
|
3637
|
-
if (!
|
|
3636
|
+
var length = array == null ? 0 : array.length;
|
|
3637
|
+
if (!length) {
|
|
3638
3638
|
return [];
|
|
3639
3639
|
}
|
|
3640
3640
|
if (end && typeof end != "number" && isIterateeCall(array, start, end)) {
|
|
3641
3641
|
start = 0;
|
|
3642
|
-
end =
|
|
3642
|
+
end = length;
|
|
3643
3643
|
} else {
|
|
3644
3644
|
start = start == null ? 0 : toInteger(start);
|
|
3645
|
-
end = end === undefined2 ?
|
|
3645
|
+
end = end === undefined2 ? length : toInteger(end);
|
|
3646
3646
|
}
|
|
3647
3647
|
return baseSlice(array, start, end);
|
|
3648
3648
|
}
|
|
@@ -3653,10 +3653,10 @@
|
|
|
3653
3653
|
return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2));
|
|
3654
3654
|
}
|
|
3655
3655
|
function sortedIndexOf(array, value) {
|
|
3656
|
-
var
|
|
3657
|
-
if (
|
|
3656
|
+
var length = array == null ? 0 : array.length;
|
|
3657
|
+
if (length) {
|
|
3658
3658
|
var index2 = baseSortedIndex(array, value);
|
|
3659
|
-
if (index2 <
|
|
3659
|
+
if (index2 < length && eq(array[index2], value)) {
|
|
3660
3660
|
return index2;
|
|
3661
3661
|
}
|
|
3662
3662
|
}
|
|
@@ -3669,8 +3669,8 @@
|
|
|
3669
3669
|
return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2), true);
|
|
3670
3670
|
}
|
|
3671
3671
|
function sortedLastIndexOf(array, value) {
|
|
3672
|
-
var
|
|
3673
|
-
if (
|
|
3672
|
+
var length = array == null ? 0 : array.length;
|
|
3673
|
+
if (length) {
|
|
3674
3674
|
var index2 = baseSortedIndex(array, value, true) - 1;
|
|
3675
3675
|
if (eq(array[index2], value)) {
|
|
3676
3676
|
return index2;
|
|
@@ -3685,8 +3685,8 @@
|
|
|
3685
3685
|
return array && array.length ? baseSortedUniq(array, getIteratee(iteratee2, 2)) : [];
|
|
3686
3686
|
}
|
|
3687
3687
|
function tail(array) {
|
|
3688
|
-
var
|
|
3689
|
-
return
|
|
3688
|
+
var length = array == null ? 0 : array.length;
|
|
3689
|
+
return length ? baseSlice(array, 1, length) : [];
|
|
3690
3690
|
}
|
|
3691
3691
|
function take(array, n, guard) {
|
|
3692
3692
|
if (!(array && array.length)) {
|
|
@@ -3696,13 +3696,13 @@
|
|
|
3696
3696
|
return baseSlice(array, 0, n < 0 ? 0 : n);
|
|
3697
3697
|
}
|
|
3698
3698
|
function takeRight(array, n, guard) {
|
|
3699
|
-
var
|
|
3700
|
-
if (!
|
|
3699
|
+
var length = array == null ? 0 : array.length;
|
|
3700
|
+
if (!length) {
|
|
3701
3701
|
return [];
|
|
3702
3702
|
}
|
|
3703
3703
|
n = guard || n === undefined2 ? 1 : toInteger(n);
|
|
3704
|
-
n =
|
|
3705
|
-
return baseSlice(array, n < 0 ? 0 : n,
|
|
3704
|
+
n = length - n;
|
|
3705
|
+
return baseSlice(array, n < 0 ? 0 : n, length);
|
|
3706
3706
|
}
|
|
3707
3707
|
function takeRightWhile(array, predicate) {
|
|
3708
3708
|
return array && array.length ? baseWhile(array, getIteratee(predicate, 3), false, true) : [];
|
|
@@ -3739,14 +3739,14 @@
|
|
|
3739
3739
|
if (!(array && array.length)) {
|
|
3740
3740
|
return [];
|
|
3741
3741
|
}
|
|
3742
|
-
var
|
|
3742
|
+
var length = 0;
|
|
3743
3743
|
array = arrayFilter(array, function(group) {
|
|
3744
3744
|
if (isArrayLikeObject(group)) {
|
|
3745
|
-
|
|
3745
|
+
length = nativeMax(group.length, length);
|
|
3746
3746
|
return true;
|
|
3747
3747
|
}
|
|
3748
3748
|
});
|
|
3749
|
-
return baseTimes(
|
|
3749
|
+
return baseTimes(length, function(index2) {
|
|
3750
3750
|
return arrayMap(array, baseProperty(index2));
|
|
3751
3751
|
});
|
|
3752
3752
|
}
|
|
@@ -3788,7 +3788,7 @@
|
|
|
3788
3788
|
return baseZipObject(props || [], values2 || [], baseSet);
|
|
3789
3789
|
}
|
|
3790
3790
|
var zipWith = baseRest(function(arrays) {
|
|
3791
|
-
var
|
|
3791
|
+
var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined2;
|
|
3792
3792
|
iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined2;
|
|
3793
3793
|
return unzipWith(arrays, iteratee2);
|
|
3794
3794
|
});
|
|
@@ -3805,20 +3805,20 @@
|
|
|
3805
3805
|
return interceptor(value);
|
|
3806
3806
|
}
|
|
3807
3807
|
var wrapperAt = flatRest(function(paths) {
|
|
3808
|
-
var
|
|
3808
|
+
var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object) {
|
|
3809
3809
|
return baseAt(object, paths);
|
|
3810
3810
|
};
|
|
3811
|
-
if (
|
|
3811
|
+
if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex(start)) {
|
|
3812
3812
|
return this.thru(interceptor);
|
|
3813
3813
|
}
|
|
3814
|
-
value = value.slice(start, +start + (
|
|
3814
|
+
value = value.slice(start, +start + (length ? 1 : 0));
|
|
3815
3815
|
value.__actions__.push({
|
|
3816
3816
|
"func": thru,
|
|
3817
3817
|
"args": [interceptor],
|
|
3818
3818
|
"thisArg": undefined2
|
|
3819
3819
|
});
|
|
3820
3820
|
return new LodashWrapper(value, this.__chain__).thru(function(array) {
|
|
3821
|
-
if (
|
|
3821
|
+
if (length && !array.length) {
|
|
3822
3822
|
array.push(undefined2);
|
|
3823
3823
|
}
|
|
3824
3824
|
return array;
|
|
@@ -3925,11 +3925,11 @@
|
|
|
3925
3925
|
function includes(collection, value, fromIndex, guard) {
|
|
3926
3926
|
collection = isArrayLike(collection) ? collection : values(collection);
|
|
3927
3927
|
fromIndex = fromIndex && !guard ? toInteger(fromIndex) : 0;
|
|
3928
|
-
var
|
|
3928
|
+
var length = collection.length;
|
|
3929
3929
|
if (fromIndex < 0) {
|
|
3930
|
-
fromIndex = nativeMax(
|
|
3930
|
+
fromIndex = nativeMax(length + fromIndex, 0);
|
|
3931
3931
|
}
|
|
3932
|
-
return isString(collection) ? fromIndex <=
|
|
3932
|
+
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
3933
3933
|
}
|
|
3934
3934
|
var invokeMap = baseRest(function(collection, path, args) {
|
|
3935
3935
|
var index2 = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
@@ -4016,10 +4016,10 @@
|
|
|
4016
4016
|
if (collection == null) {
|
|
4017
4017
|
return [];
|
|
4018
4018
|
}
|
|
4019
|
-
var
|
|
4020
|
-
if (
|
|
4019
|
+
var length = iteratees.length;
|
|
4020
|
+
if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
|
|
4021
4021
|
iteratees = [];
|
|
4022
|
-
} else if (
|
|
4022
|
+
} else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
|
|
4023
4023
|
iteratees = [iteratees[0]];
|
|
4024
4024
|
}
|
|
4025
4025
|
return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
|
|
@@ -4220,8 +4220,8 @@
|
|
|
4220
4220
|
transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
|
|
4221
4221
|
var funcsLength = transforms.length;
|
|
4222
4222
|
return baseRest(function(args) {
|
|
4223
|
-
var index2 = -1,
|
|
4224
|
-
while (++index2 <
|
|
4223
|
+
var index2 = -1, length = nativeMin(args.length, funcsLength);
|
|
4224
|
+
while (++index2 < length) {
|
|
4225
4225
|
args[index2] = transforms[index2].call(this, args[index2]);
|
|
4226
4226
|
}
|
|
4227
4227
|
return apply(func, this, args);
|
|
@@ -4538,12 +4538,12 @@
|
|
|
4538
4538
|
var defaults = baseRest(function(object, sources) {
|
|
4539
4539
|
object = Object2(object);
|
|
4540
4540
|
var index2 = -1;
|
|
4541
|
-
var
|
|
4542
|
-
var guard =
|
|
4541
|
+
var length = sources.length;
|
|
4542
|
+
var guard = length > 2 ? sources[2] : undefined2;
|
|
4543
4543
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
4544
|
-
|
|
4544
|
+
length = 1;
|
|
4545
4545
|
}
|
|
4546
|
-
while (++index2 <
|
|
4546
|
+
while (++index2 < length) {
|
|
4547
4547
|
var source = sources[index2];
|
|
4548
4548
|
var props = keysIn(source);
|
|
4549
4549
|
var propsIndex = -1;
|
|
@@ -4656,9 +4656,9 @@
|
|
|
4656
4656
|
if (isDeep) {
|
|
4657
4657
|
result2 = baseClone(result2, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
|
|
4658
4658
|
}
|
|
4659
|
-
var
|
|
4660
|
-
while (
|
|
4661
|
-
baseUnset(result2, paths[
|
|
4659
|
+
var length = paths.length;
|
|
4660
|
+
while (length--) {
|
|
4661
|
+
baseUnset(result2, paths[length]);
|
|
4662
4662
|
}
|
|
4663
4663
|
return result2;
|
|
4664
4664
|
});
|
|
@@ -4682,15 +4682,15 @@
|
|
|
4682
4682
|
}
|
|
4683
4683
|
function result(object, path, defaultValue) {
|
|
4684
4684
|
path = castPath(path, object);
|
|
4685
|
-
var index2 = -1,
|
|
4686
|
-
if (!
|
|
4687
|
-
|
|
4685
|
+
var index2 = -1, length = path.length;
|
|
4686
|
+
if (!length) {
|
|
4687
|
+
length = 1;
|
|
4688
4688
|
object = undefined2;
|
|
4689
4689
|
}
|
|
4690
|
-
while (++index2 <
|
|
4690
|
+
while (++index2 < length) {
|
|
4691
4691
|
var value = object == null ? undefined2 : object[toKey(path[index2])];
|
|
4692
4692
|
if (value === undefined2) {
|
|
4693
|
-
index2 =
|
|
4693
|
+
index2 = length;
|
|
4694
4694
|
value = defaultValue;
|
|
4695
4695
|
}
|
|
4696
4696
|
object = isFunction(value) ? value.call(object) : value;
|
|
@@ -4816,8 +4816,8 @@
|
|
|
4816
4816
|
function endsWith(string, target, position) {
|
|
4817
4817
|
string = toString(string);
|
|
4818
4818
|
target = baseToString(target);
|
|
4819
|
-
var
|
|
4820
|
-
position = position === undefined2 ?
|
|
4819
|
+
var length = string.length;
|
|
4820
|
+
position = position === undefined2 ? length : baseClamp(toInteger(position), 0, length);
|
|
4821
4821
|
var end = position;
|
|
4822
4822
|
position -= target.length;
|
|
4823
4823
|
return position >= 0 && string.slice(position, end) == target;
|
|
@@ -4837,27 +4837,27 @@
|
|
|
4837
4837
|
return result2 + (index2 ? " " : "") + word.toLowerCase();
|
|
4838
4838
|
});
|
|
4839
4839
|
var lowerFirst = createCaseFirst("toLowerCase");
|
|
4840
|
-
function pad(string,
|
|
4840
|
+
function pad(string, length, chars) {
|
|
4841
4841
|
string = toString(string);
|
|
4842
|
-
|
|
4843
|
-
var strLength =
|
|
4844
|
-
if (!
|
|
4842
|
+
length = toInteger(length);
|
|
4843
|
+
var strLength = length ? stringSize(string) : 0;
|
|
4844
|
+
if (!length || strLength >= length) {
|
|
4845
4845
|
return string;
|
|
4846
4846
|
}
|
|
4847
|
-
var mid = (
|
|
4847
|
+
var mid = (length - strLength) / 2;
|
|
4848
4848
|
return createPadding(nativeFloor(mid), chars) + string + createPadding(nativeCeil(mid), chars);
|
|
4849
4849
|
}
|
|
4850
|
-
function padEnd(string,
|
|
4850
|
+
function padEnd(string, length, chars) {
|
|
4851
4851
|
string = toString(string);
|
|
4852
|
-
|
|
4853
|
-
var strLength =
|
|
4854
|
-
return
|
|
4852
|
+
length = toInteger(length);
|
|
4853
|
+
var strLength = length ? stringSize(string) : 0;
|
|
4854
|
+
return length && strLength < length ? string + createPadding(length - strLength, chars) : string;
|
|
4855
4855
|
}
|
|
4856
|
-
function padStart(string,
|
|
4856
|
+
function padStart(string, length, chars) {
|
|
4857
4857
|
string = toString(string);
|
|
4858
|
-
|
|
4859
|
-
var strLength =
|
|
4860
|
-
return
|
|
4858
|
+
length = toInteger(length);
|
|
4859
|
+
var strLength = length ? stringSize(string) : 0;
|
|
4860
|
+
return length && strLength < length ? createPadding(length - strLength, chars) + string : string;
|
|
4861
4861
|
}
|
|
4862
4862
|
function parseInt2(string, radix, guard) {
|
|
4863
4863
|
if (guard || radix == null) {
|
|
@@ -5002,10 +5002,10 @@
|
|
|
5002
5002
|
return castSlice(strSymbols, start).join("");
|
|
5003
5003
|
}
|
|
5004
5004
|
function truncate(string, options) {
|
|
5005
|
-
var
|
|
5005
|
+
var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
|
|
5006
5006
|
if (isObject(options)) {
|
|
5007
5007
|
var separator = "separator" in options ? options.separator : separator;
|
|
5008
|
-
|
|
5008
|
+
length = "length" in options ? toInteger(options.length) : length;
|
|
5009
5009
|
omission = "omission" in options ? baseToString(options.omission) : omission;
|
|
5010
5010
|
}
|
|
5011
5011
|
string = toString(string);
|
|
@@ -5014,10 +5014,10 @@
|
|
|
5014
5014
|
var strSymbols = stringToArray(string);
|
|
5015
5015
|
strLength = strSymbols.length;
|
|
5016
5016
|
}
|
|
5017
|
-
if (
|
|
5017
|
+
if (length >= strLength) {
|
|
5018
5018
|
return string;
|
|
5019
5019
|
}
|
|
5020
|
-
var end =
|
|
5020
|
+
var end = length - stringSize(omission);
|
|
5021
5021
|
if (end < 1) {
|
|
5022
5022
|
return omission;
|
|
5023
5023
|
}
|
|
@@ -5079,8 +5079,8 @@
|
|
|
5079
5079
|
return object;
|
|
5080
5080
|
});
|
|
5081
5081
|
function cond(pairs) {
|
|
5082
|
-
var
|
|
5083
|
-
pairs = !
|
|
5082
|
+
var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee();
|
|
5083
|
+
pairs = !length ? [] : arrayMap(pairs, function(pair) {
|
|
5084
5084
|
if (typeof pair[1] != "function") {
|
|
5085
5085
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
5086
5086
|
}
|
|
@@ -5088,7 +5088,7 @@
|
|
|
5088
5088
|
});
|
|
5089
5089
|
return baseRest(function(args) {
|
|
5090
5090
|
var index2 = -1;
|
|
5091
|
-
while (++index2 <
|
|
5091
|
+
while (++index2 < length) {
|
|
5092
5092
|
var pair = pairs[index2];
|
|
5093
5093
|
if (apply(pair[0], this, args)) {
|
|
5094
5094
|
return apply(pair[1], this, args);
|
|
@@ -5205,10 +5205,10 @@
|
|
|
5205
5205
|
if (n < 1 || n > MAX_SAFE_INTEGER) {
|
|
5206
5206
|
return [];
|
|
5207
5207
|
}
|
|
5208
|
-
var index2 = MAX_ARRAY_LENGTH,
|
|
5208
|
+
var index2 = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
|
|
5209
5209
|
iteratee2 = getIteratee(iteratee2);
|
|
5210
5210
|
n -= MAX_ARRAY_LENGTH;
|
|
5211
|
-
var result2 = baseTimes(
|
|
5211
|
+
var result2 = baseTimes(length, iteratee2);
|
|
5212
5212
|
while (++index2 < n) {
|
|
5213
5213
|
iteratee2(index2);
|
|
5214
5214
|
}
|
|
@@ -5905,19 +5905,19 @@
|
|
|
5905
5905
|
var array_slice = uncurryThis(Array.prototype.slice);
|
|
5906
5906
|
var array_reduce = uncurryThis(
|
|
5907
5907
|
Array.prototype.reduce || function(callback, basis) {
|
|
5908
|
-
var index2 = 0,
|
|
5908
|
+
var index2 = 0, length = this.length;
|
|
5909
5909
|
if (arguments.length === 1) {
|
|
5910
5910
|
do {
|
|
5911
5911
|
if (index2 in this) {
|
|
5912
5912
|
basis = this[index2++];
|
|
5913
5913
|
break;
|
|
5914
5914
|
}
|
|
5915
|
-
if (++index2 >=
|
|
5915
|
+
if (++index2 >= length) {
|
|
5916
5916
|
throw new TypeError();
|
|
5917
5917
|
}
|
|
5918
5918
|
} while (1);
|
|
5919
5919
|
}
|
|
5920
|
-
for (; index2 <
|
|
5920
|
+
for (; index2 < length; index2++) {
|
|
5921
5921
|
if (index2 in this) {
|
|
5922
5922
|
basis = callback(basis, this[index2], index2);
|
|
5923
5923
|
}
|
|
@@ -7329,8 +7329,8 @@
|
|
|
7329
7329
|
return input.replace(/\\/g, "");
|
|
7330
7330
|
}
|
|
7331
7331
|
function makeFormatFunction(format2) {
|
|
7332
|
-
var array = format2.match(formattingTokens), i,
|
|
7333
|
-
for (i = 0,
|
|
7332
|
+
var array = format2.match(formattingTokens), i, length;
|
|
7333
|
+
for (i = 0, length = array.length; i < length; i++) {
|
|
7334
7334
|
if (formatTokenFunctions[array[i]]) {
|
|
7335
7335
|
array[i] = formatTokenFunctions[array[i]];
|
|
7336
7336
|
} else {
|
|
@@ -7339,7 +7339,7 @@
|
|
|
7339
7339
|
}
|
|
7340
7340
|
return function(mom) {
|
|
7341
7341
|
var output = "", i2;
|
|
7342
|
-
for (i2 = 0; i2 <
|
|
7342
|
+
for (i2 = 0; i2 < length; i2++) {
|
|
7343
7343
|
output += isFunction(array[i2]) ? array[i2].call(mom, format2) : array[i2];
|
|
7344
7344
|
}
|
|
7345
7345
|
return output;
|
|
@@ -11046,9 +11046,9 @@
|
|
|
11046
11046
|
}
|
|
11047
11047
|
function map(array, fn) {
|
|
11048
11048
|
var result = [];
|
|
11049
|
-
var
|
|
11050
|
-
while (
|
|
11051
|
-
result[
|
|
11049
|
+
var length = array.length;
|
|
11050
|
+
while (length--) {
|
|
11051
|
+
result[length] = fn(array[length]);
|
|
11052
11052
|
}
|
|
11053
11053
|
return result;
|
|
11054
11054
|
}
|
|
@@ -11067,10 +11067,10 @@
|
|
|
11067
11067
|
function ucs2decode(string) {
|
|
11068
11068
|
var output = [];
|
|
11069
11069
|
var counter = 0;
|
|
11070
|
-
var
|
|
11071
|
-
while (counter <
|
|
11070
|
+
var length = string.length;
|
|
11071
|
+
while (counter < length) {
|
|
11072
11072
|
var value = string.charCodeAt(counter++);
|
|
11073
|
-
if (value >= 55296 && value <= 56319 && counter <
|
|
11073
|
+
if (value >= 55296 && value <= 56319 && counter < length) {
|
|
11074
11074
|
var extra = string.charCodeAt(counter++);
|
|
11075
11075
|
if ((extra & 64512) == 56320) {
|
|
11076
11076
|
output.push(((value & 1023) << 10) + (extra & 1023) + 65536);
|
|
@@ -11941,11 +11941,11 @@
|
|
|
11941
11941
|
if (a === b) return true;
|
|
11942
11942
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
11943
11943
|
if (a.constructor !== b.constructor) return false;
|
|
11944
|
-
var
|
|
11944
|
+
var length, i, keys;
|
|
11945
11945
|
if (Array.isArray(a)) {
|
|
11946
|
-
|
|
11947
|
-
if (
|
|
11948
|
-
for (i =
|
|
11946
|
+
length = a.length;
|
|
11947
|
+
if (length != b.length) return false;
|
|
11948
|
+
for (i = length; i-- !== 0; )
|
|
11949
11949
|
if (!equal(a[i], b[i])) return false;
|
|
11950
11950
|
return true;
|
|
11951
11951
|
}
|
|
@@ -11953,11 +11953,11 @@
|
|
|
11953
11953
|
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
11954
11954
|
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
11955
11955
|
keys = Object.keys(a);
|
|
11956
|
-
|
|
11957
|
-
if (
|
|
11958
|
-
for (i =
|
|
11956
|
+
length = keys.length;
|
|
11957
|
+
if (length !== Object.keys(b).length) return false;
|
|
11958
|
+
for (i = length; i-- !== 0; )
|
|
11959
11959
|
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
11960
|
-
for (i =
|
|
11960
|
+
for (i = length; i-- !== 0; ) {
|
|
11961
11961
|
var key2 = keys[i];
|
|
11962
11962
|
if (!equal(a[key2], b[key2])) return false;
|
|
11963
11963
|
}
|
|
@@ -11974,16 +11974,16 @@
|
|
|
11974
11974
|
"use strict";
|
|
11975
11975
|
init_process_global();
|
|
11976
11976
|
module.exports = function ucs2length(str) {
|
|
11977
|
-
var
|
|
11977
|
+
var length = 0, len = str.length, pos = 0, value;
|
|
11978
11978
|
while (pos < len) {
|
|
11979
|
-
|
|
11979
|
+
length++;
|
|
11980
11980
|
value = str.charCodeAt(pos++);
|
|
11981
11981
|
if (value >= 55296 && value <= 56319 && pos < len) {
|
|
11982
11982
|
value = str.charCodeAt(pos);
|
|
11983
11983
|
if ((value & 64512) == 56320) pos++;
|
|
11984
11984
|
}
|
|
11985
11985
|
}
|
|
11986
|
-
return
|
|
11986
|
+
return length;
|
|
11987
11987
|
};
|
|
11988
11988
|
}
|
|
11989
11989
|
});
|
|
@@ -13251,8 +13251,8 @@
|
|
|
13251
13251
|
throw new Error("parent schema must have all required keywords: " + deps.join(","));
|
|
13252
13252
|
var validateSchema = rule.definition.validateSchema;
|
|
13253
13253
|
if (validateSchema) {
|
|
13254
|
-
var
|
|
13255
|
-
if (!
|
|
13254
|
+
var valid = validateSchema(schema2);
|
|
13255
|
+
if (!valid) {
|
|
13256
13256
|
var message = "keyword schema is invalid: " + self2.errorsText(validateSchema.errors);
|
|
13257
13257
|
if (self2._opts.validateSchema == "log") self2.logger.error(message);
|
|
13258
13258
|
else throw new Error(message);
|
|
@@ -13367,7 +13367,7 @@
|
|
|
13367
13367
|
module.exports = formats;
|
|
13368
13368
|
function formats(mode) {
|
|
13369
13369
|
mode = mode == "full" ? "full" : "fast";
|
|
13370
|
-
return util.copy(formats[mode]);
|
|
13370
|
+
return util.copy(formats[mode], /* @__PURE__ */ Object.create(null));
|
|
13371
13371
|
}
|
|
13372
13372
|
formats.fast = {
|
|
13373
13373
|
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
@@ -16906,9 +16906,9 @@
|
|
|
16906
16906
|
var schemaObj = this._addSchema(schemaKeyRef);
|
|
16907
16907
|
v = schemaObj.validate || this._compile(schemaObj);
|
|
16908
16908
|
}
|
|
16909
|
-
var
|
|
16909
|
+
var valid = v(data);
|
|
16910
16910
|
if (v.$async !== true) this.errors = v.errors;
|
|
16911
|
-
return
|
|
16911
|
+
return valid;
|
|
16912
16912
|
}
|
|
16913
16913
|
function compile(schema, _meta) {
|
|
16914
16914
|
var schemaObj = this._addSchema(schema, void 0, _meta);
|
|
@@ -16941,13 +16941,13 @@
|
|
|
16941
16941
|
this.errors = null;
|
|
16942
16942
|
return true;
|
|
16943
16943
|
}
|
|
16944
|
-
var
|
|
16945
|
-
if (!
|
|
16944
|
+
var valid = this.validate($schema, schema);
|
|
16945
|
+
if (!valid && throwOrLogError) {
|
|
16946
16946
|
var message = "schema is invalid: " + this.errorsText();
|
|
16947
16947
|
if (this._opts.validateSchema == "log") this.logger.error(message);
|
|
16948
16948
|
else throw new Error(message);
|
|
16949
16949
|
}
|
|
16950
|
-
return
|
|
16950
|
+
return valid;
|
|
16951
16951
|
}
|
|
16952
16952
|
function defaultMeta(self2) {
|
|
16953
16953
|
var meta = self2._opts.meta;
|
|
@@ -17321,11 +17321,11 @@
|
|
|
17321
17321
|
]);
|
|
17322
17322
|
}
|
|
17323
17323
|
},
|
|
17324
|
-
_checkStringAndLength: function(parameter,
|
|
17325
|
-
if (typeof parameter !== "string" || parameter.length >
|
|
17324
|
+
_checkStringAndLength: function(parameter, length, name) {
|
|
17325
|
+
if (typeof parameter !== "string" || parameter.length > length) {
|
|
17326
17326
|
throw checkError([
|
|
17327
17327
|
{ message: "OGAPI_STRING_PARAMETER", parameter: name },
|
|
17328
|
-
{ message: "OGAPI_MAX_LENGTH", parameter:
|
|
17328
|
+
{ message: "OGAPI_MAX_LENGTH", parameter: length }
|
|
17329
17329
|
]);
|
|
17330
17330
|
}
|
|
17331
17331
|
},
|
|
@@ -26076,18 +26076,18 @@
|
|
|
26076
26076
|
}
|
|
26077
26077
|
var toEnd = to.length;
|
|
26078
26078
|
var toLen = toEnd - toStart;
|
|
26079
|
-
var
|
|
26079
|
+
var length = fromLen < toLen ? fromLen : toLen;
|
|
26080
26080
|
var lastCommonSep = -1;
|
|
26081
26081
|
var i = 0;
|
|
26082
|
-
for (; i <=
|
|
26083
|
-
if (i ===
|
|
26084
|
-
if (toLen >
|
|
26082
|
+
for (; i <= length; ++i) {
|
|
26083
|
+
if (i === length) {
|
|
26084
|
+
if (toLen > length) {
|
|
26085
26085
|
if (to.charCodeAt(toStart + i) === 47) {
|
|
26086
26086
|
return to.slice(toStart + i + 1);
|
|
26087
26087
|
} else if (i === 0) {
|
|
26088
26088
|
return to.slice(toStart + i);
|
|
26089
26089
|
}
|
|
26090
|
-
} else if (fromLen >
|
|
26090
|
+
} else if (fromLen > length) {
|
|
26091
26091
|
if (from.charCodeAt(fromStart + i) === 47) {
|
|
26092
26092
|
lastCommonSep = i;
|
|
26093
26093
|
} else if (i === 0) {
|
|
@@ -26643,15 +26643,15 @@
|
|
|
26643
26643
|
return this.byteOffset;
|
|
26644
26644
|
}
|
|
26645
26645
|
});
|
|
26646
|
-
function createBuffer(
|
|
26647
|
-
if (
|
|
26648
|
-
throw new RangeError('The value "' +
|
|
26646
|
+
function createBuffer(length) {
|
|
26647
|
+
if (length > K_MAX_LENGTH) {
|
|
26648
|
+
throw new RangeError('The value "' + length + '" is invalid for option "size"');
|
|
26649
26649
|
}
|
|
26650
|
-
const buf = new Uint8Array(
|
|
26650
|
+
const buf = new Uint8Array(length);
|
|
26651
26651
|
Object.setPrototypeOf(buf, Buffer2.prototype);
|
|
26652
26652
|
return buf;
|
|
26653
26653
|
}
|
|
26654
|
-
function Buffer2(arg, encodingOrOffset,
|
|
26654
|
+
function Buffer2(arg, encodingOrOffset, length) {
|
|
26655
26655
|
if (typeof arg === "number") {
|
|
26656
26656
|
if (typeof encodingOrOffset === "string") {
|
|
26657
26657
|
throw new TypeError(
|
|
@@ -26660,10 +26660,10 @@
|
|
|
26660
26660
|
}
|
|
26661
26661
|
return allocUnsafe(arg);
|
|
26662
26662
|
}
|
|
26663
|
-
return from(arg, encodingOrOffset,
|
|
26663
|
+
return from(arg, encodingOrOffset, length);
|
|
26664
26664
|
}
|
|
26665
26665
|
Buffer2.poolSize = 8192;
|
|
26666
|
-
function from(value, encodingOrOffset,
|
|
26666
|
+
function from(value, encodingOrOffset, length) {
|
|
26667
26667
|
if (typeof value === "string") {
|
|
26668
26668
|
return fromString(value, encodingOrOffset);
|
|
26669
26669
|
}
|
|
@@ -26676,10 +26676,10 @@
|
|
|
26676
26676
|
);
|
|
26677
26677
|
}
|
|
26678
26678
|
if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
|
|
26679
|
-
return fromArrayBuffer(value, encodingOrOffset,
|
|
26679
|
+
return fromArrayBuffer(value, encodingOrOffset, length);
|
|
26680
26680
|
}
|
|
26681
26681
|
if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {
|
|
26682
|
-
return fromArrayBuffer(value, encodingOrOffset,
|
|
26682
|
+
return fromArrayBuffer(value, encodingOrOffset, length);
|
|
26683
26683
|
}
|
|
26684
26684
|
if (typeof value === "number") {
|
|
26685
26685
|
throw new TypeError(
|
|
@@ -26688,19 +26688,19 @@
|
|
|
26688
26688
|
}
|
|
26689
26689
|
const valueOf = value.valueOf && value.valueOf();
|
|
26690
26690
|
if (valueOf != null && valueOf !== value) {
|
|
26691
|
-
return Buffer2.from(valueOf, encodingOrOffset,
|
|
26691
|
+
return Buffer2.from(valueOf, encodingOrOffset, length);
|
|
26692
26692
|
}
|
|
26693
26693
|
const b = fromObject(value);
|
|
26694
26694
|
if (b) return b;
|
|
26695
26695
|
if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
|
|
26696
|
-
return Buffer2.from(value[Symbol.toPrimitive]("string"), encodingOrOffset,
|
|
26696
|
+
return Buffer2.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
|
|
26697
26697
|
}
|
|
26698
26698
|
throw new TypeError(
|
|
26699
26699
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
|
|
26700
26700
|
);
|
|
26701
26701
|
}
|
|
26702
|
-
Buffer2.from = function(value, encodingOrOffset,
|
|
26703
|
-
return from(value, encodingOrOffset,
|
|
26702
|
+
Buffer2.from = function(value, encodingOrOffset, length) {
|
|
26703
|
+
return from(value, encodingOrOffset, length);
|
|
26704
26704
|
};
|
|
26705
26705
|
Object.setPrototypeOf(Buffer2.prototype, Uint8Array.prototype);
|
|
26706
26706
|
Object.setPrototypeOf(Buffer2, Uint8Array);
|
|
@@ -26741,18 +26741,18 @@
|
|
|
26741
26741
|
if (!Buffer2.isEncoding(encoding)) {
|
|
26742
26742
|
throw new TypeError("Unknown encoding: " + encoding);
|
|
26743
26743
|
}
|
|
26744
|
-
const
|
|
26745
|
-
let buf = createBuffer(
|
|
26744
|
+
const length = byteLength(string, encoding) | 0;
|
|
26745
|
+
let buf = createBuffer(length);
|
|
26746
26746
|
const actual = buf.write(string, encoding);
|
|
26747
|
-
if (actual !==
|
|
26747
|
+
if (actual !== length) {
|
|
26748
26748
|
buf = buf.slice(0, actual);
|
|
26749
26749
|
}
|
|
26750
26750
|
return buf;
|
|
26751
26751
|
}
|
|
26752
26752
|
function fromArrayLike(array) {
|
|
26753
|
-
const
|
|
26754
|
-
const buf = createBuffer(
|
|
26755
|
-
for (let i = 0; i <
|
|
26753
|
+
const length = array.length < 0 ? 0 : checked(array.length) | 0;
|
|
26754
|
+
const buf = createBuffer(length);
|
|
26755
|
+
for (let i = 0; i < length; i += 1) {
|
|
26756
26756
|
buf[i] = array[i] & 255;
|
|
26757
26757
|
}
|
|
26758
26758
|
return buf;
|
|
@@ -26764,20 +26764,20 @@
|
|
|
26764
26764
|
}
|
|
26765
26765
|
return fromArrayLike(arrayView);
|
|
26766
26766
|
}
|
|
26767
|
-
function fromArrayBuffer(array, byteOffset,
|
|
26767
|
+
function fromArrayBuffer(array, byteOffset, length) {
|
|
26768
26768
|
if (byteOffset < 0 || array.byteLength < byteOffset) {
|
|
26769
26769
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
26770
26770
|
}
|
|
26771
|
-
if (array.byteLength < byteOffset + (
|
|
26771
|
+
if (array.byteLength < byteOffset + (length || 0)) {
|
|
26772
26772
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
26773
26773
|
}
|
|
26774
26774
|
let buf;
|
|
26775
|
-
if (byteOffset === void 0 &&
|
|
26775
|
+
if (byteOffset === void 0 && length === void 0) {
|
|
26776
26776
|
buf = new Uint8Array(array);
|
|
26777
|
-
} else if (
|
|
26777
|
+
} else if (length === void 0) {
|
|
26778
26778
|
buf = new Uint8Array(array, byteOffset);
|
|
26779
26779
|
} else {
|
|
26780
|
-
buf = new Uint8Array(array, byteOffset,
|
|
26780
|
+
buf = new Uint8Array(array, byteOffset, length);
|
|
26781
26781
|
}
|
|
26782
26782
|
Object.setPrototypeOf(buf, Buffer2.prototype);
|
|
26783
26783
|
return buf;
|
|
@@ -26802,17 +26802,17 @@
|
|
|
26802
26802
|
return fromArrayLike(obj.data);
|
|
26803
26803
|
}
|
|
26804
26804
|
}
|
|
26805
|
-
function checked(
|
|
26806
|
-
if (
|
|
26805
|
+
function checked(length) {
|
|
26806
|
+
if (length >= K_MAX_LENGTH) {
|
|
26807
26807
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + " bytes");
|
|
26808
26808
|
}
|
|
26809
|
-
return
|
|
26809
|
+
return length | 0;
|
|
26810
26810
|
}
|
|
26811
|
-
function SlowBuffer(
|
|
26812
|
-
if (+
|
|
26813
|
-
|
|
26811
|
+
function SlowBuffer(length) {
|
|
26812
|
+
if (+length != length) {
|
|
26813
|
+
length = 0;
|
|
26814
26814
|
}
|
|
26815
|
-
return Buffer2.alloc(+
|
|
26815
|
+
return Buffer2.alloc(+length);
|
|
26816
26816
|
}
|
|
26817
26817
|
Buffer2.isBuffer = function isBuffer(b) {
|
|
26818
26818
|
return b != null && b._isBuffer === true && b !== Buffer2.prototype;
|
|
@@ -26857,7 +26857,7 @@
|
|
|
26857
26857
|
return false;
|
|
26858
26858
|
}
|
|
26859
26859
|
};
|
|
26860
|
-
Buffer2.concat = function concat(list,
|
|
26860
|
+
Buffer2.concat = function concat(list, length) {
|
|
26861
26861
|
if (!Array.isArray(list)) {
|
|
26862
26862
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
26863
26863
|
}
|
|
@@ -26865,13 +26865,13 @@
|
|
|
26865
26865
|
return Buffer2.alloc(0);
|
|
26866
26866
|
}
|
|
26867
26867
|
let i;
|
|
26868
|
-
if (
|
|
26869
|
-
|
|
26868
|
+
if (length === void 0) {
|
|
26869
|
+
length = 0;
|
|
26870
26870
|
for (i = 0; i < list.length; ++i) {
|
|
26871
|
-
|
|
26871
|
+
length += list[i].length;
|
|
26872
26872
|
}
|
|
26873
26873
|
}
|
|
26874
|
-
const buffer = Buffer2.allocUnsafe(
|
|
26874
|
+
const buffer = Buffer2.allocUnsafe(length);
|
|
26875
26875
|
let pos = 0;
|
|
26876
26876
|
for (i = 0; i < list.length; ++i) {
|
|
26877
26877
|
let buf = list[i];
|
|
@@ -27026,9 +27026,9 @@
|
|
|
27026
27026
|
return this;
|
|
27027
27027
|
};
|
|
27028
27028
|
Buffer2.prototype.toString = function toString() {
|
|
27029
|
-
const
|
|
27030
|
-
if (
|
|
27031
|
-
if (arguments.length === 0) return utf8Slice(this, 0,
|
|
27029
|
+
const length = this.length;
|
|
27030
|
+
if (length === 0) return "";
|
|
27031
|
+
if (arguments.length === 0) return utf8Slice(this, 0, length);
|
|
27032
27032
|
return slowToString.apply(this, arguments);
|
|
27033
27033
|
};
|
|
27034
27034
|
Buffer2.prototype.toLocaleString = Buffer2.prototype.toString;
|
|
@@ -27203,58 +27203,58 @@
|
|
|
27203
27203
|
Buffer2.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
|
|
27204
27204
|
return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
|
|
27205
27205
|
};
|
|
27206
|
-
function hexWrite(buf, string, offset,
|
|
27206
|
+
function hexWrite(buf, string, offset, length) {
|
|
27207
27207
|
offset = Number(offset) || 0;
|
|
27208
27208
|
const remaining = buf.length - offset;
|
|
27209
|
-
if (!
|
|
27210
|
-
|
|
27209
|
+
if (!length) {
|
|
27210
|
+
length = remaining;
|
|
27211
27211
|
} else {
|
|
27212
|
-
|
|
27213
|
-
if (
|
|
27214
|
-
|
|
27212
|
+
length = Number(length);
|
|
27213
|
+
if (length > remaining) {
|
|
27214
|
+
length = remaining;
|
|
27215
27215
|
}
|
|
27216
27216
|
}
|
|
27217
27217
|
const strLen = string.length;
|
|
27218
|
-
if (
|
|
27219
|
-
|
|
27218
|
+
if (length > strLen / 2) {
|
|
27219
|
+
length = strLen / 2;
|
|
27220
27220
|
}
|
|
27221
27221
|
let i;
|
|
27222
|
-
for (i = 0; i <
|
|
27222
|
+
for (i = 0; i < length; ++i) {
|
|
27223
27223
|
const parsed = parseInt(string.substr(i * 2, 2), 16);
|
|
27224
27224
|
if (numberIsNaN(parsed)) return i;
|
|
27225
27225
|
buf[offset + i] = parsed;
|
|
27226
27226
|
}
|
|
27227
27227
|
return i;
|
|
27228
27228
|
}
|
|
27229
|
-
function utf8Write(buf, string, offset,
|
|
27230
|
-
return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset,
|
|
27229
|
+
function utf8Write(buf, string, offset, length) {
|
|
27230
|
+
return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
|
|
27231
27231
|
}
|
|
27232
|
-
function asciiWrite(buf, string, offset,
|
|
27233
|
-
return blitBuffer(asciiToBytes(string), buf, offset,
|
|
27232
|
+
function asciiWrite(buf, string, offset, length) {
|
|
27233
|
+
return blitBuffer(asciiToBytes(string), buf, offset, length);
|
|
27234
27234
|
}
|
|
27235
|
-
function base64Write(buf, string, offset,
|
|
27236
|
-
return blitBuffer(base64ToBytes(string), buf, offset,
|
|
27235
|
+
function base64Write(buf, string, offset, length) {
|
|
27236
|
+
return blitBuffer(base64ToBytes(string), buf, offset, length);
|
|
27237
27237
|
}
|
|
27238
|
-
function ucs2Write(buf, string, offset,
|
|
27239
|
-
return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset,
|
|
27238
|
+
function ucs2Write(buf, string, offset, length) {
|
|
27239
|
+
return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
|
|
27240
27240
|
}
|
|
27241
|
-
Buffer2.prototype.write = function write(string, offset,
|
|
27241
|
+
Buffer2.prototype.write = function write(string, offset, length, encoding) {
|
|
27242
27242
|
if (offset === void 0) {
|
|
27243
27243
|
encoding = "utf8";
|
|
27244
|
-
|
|
27244
|
+
length = this.length;
|
|
27245
27245
|
offset = 0;
|
|
27246
|
-
} else if (
|
|
27246
|
+
} else if (length === void 0 && typeof offset === "string") {
|
|
27247
27247
|
encoding = offset;
|
|
27248
|
-
|
|
27248
|
+
length = this.length;
|
|
27249
27249
|
offset = 0;
|
|
27250
27250
|
} else if (isFinite(offset)) {
|
|
27251
27251
|
offset = offset >>> 0;
|
|
27252
|
-
if (isFinite(
|
|
27253
|
-
|
|
27252
|
+
if (isFinite(length)) {
|
|
27253
|
+
length = length >>> 0;
|
|
27254
27254
|
if (encoding === void 0) encoding = "utf8";
|
|
27255
27255
|
} else {
|
|
27256
|
-
encoding =
|
|
27257
|
-
|
|
27256
|
+
encoding = length;
|
|
27257
|
+
length = void 0;
|
|
27258
27258
|
}
|
|
27259
27259
|
} else {
|
|
27260
27260
|
throw new Error(
|
|
@@ -27262,8 +27262,8 @@
|
|
|
27262
27262
|
);
|
|
27263
27263
|
}
|
|
27264
27264
|
const remaining = this.length - offset;
|
|
27265
|
-
if (
|
|
27266
|
-
if (string.length > 0 && (
|
|
27265
|
+
if (length === void 0 || length > remaining) length = remaining;
|
|
27266
|
+
if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
|
|
27267
27267
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
27268
27268
|
}
|
|
27269
27269
|
if (!encoding) encoding = "utf8";
|
|
@@ -27271,21 +27271,21 @@
|
|
|
27271
27271
|
for (; ; ) {
|
|
27272
27272
|
switch (encoding) {
|
|
27273
27273
|
case "hex":
|
|
27274
|
-
return hexWrite(this, string, offset,
|
|
27274
|
+
return hexWrite(this, string, offset, length);
|
|
27275
27275
|
case "utf8":
|
|
27276
27276
|
case "utf-8":
|
|
27277
|
-
return utf8Write(this, string, offset,
|
|
27277
|
+
return utf8Write(this, string, offset, length);
|
|
27278
27278
|
case "ascii":
|
|
27279
27279
|
case "latin1":
|
|
27280
27280
|
case "binary":
|
|
27281
|
-
return asciiWrite(this, string, offset,
|
|
27281
|
+
return asciiWrite(this, string, offset, length);
|
|
27282
27282
|
case "base64":
|
|
27283
|
-
return base64Write(this, string, offset,
|
|
27283
|
+
return base64Write(this, string, offset, length);
|
|
27284
27284
|
case "ucs2":
|
|
27285
27285
|
case "ucs-2":
|
|
27286
27286
|
case "utf16le":
|
|
27287
27287
|
case "utf-16le":
|
|
27288
|
-
return ucs2Write(this, string, offset,
|
|
27288
|
+
return ucs2Write(this, string, offset, length);
|
|
27289
27289
|
default:
|
|
27290
27290
|
if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
|
|
27291
27291
|
encoding = ("" + encoding).toLowerCase();
|
|
@@ -27437,9 +27437,9 @@
|
|
|
27437
27437
|
Object.setPrototypeOf(newBuf, Buffer2.prototype);
|
|
27438
27438
|
return newBuf;
|
|
27439
27439
|
};
|
|
27440
|
-
function checkOffset(offset, ext,
|
|
27440
|
+
function checkOffset(offset, ext, length) {
|
|
27441
27441
|
if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint");
|
|
27442
|
-
if (offset + ext >
|
|
27442
|
+
if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length");
|
|
27443
27443
|
}
|
|
27444
27444
|
Buffer2.prototype.readUintLE = Buffer2.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
|
|
27445
27445
|
offset = offset >>> 0;
|
|
@@ -28049,17 +28049,17 @@
|
|
|
28049
28049
|
throw new errors.ERR_INVALID_ARG_TYPE(name, "number", value);
|
|
28050
28050
|
}
|
|
28051
28051
|
}
|
|
28052
|
-
function boundsError(value,
|
|
28052
|
+
function boundsError(value, length, type) {
|
|
28053
28053
|
if (Math.floor(value) !== value) {
|
|
28054
28054
|
validateNumber(value, type);
|
|
28055
28055
|
throw new errors.ERR_OUT_OF_RANGE(type || "offset", "an integer", value);
|
|
28056
28056
|
}
|
|
28057
|
-
if (
|
|
28057
|
+
if (length < 0) {
|
|
28058
28058
|
throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();
|
|
28059
28059
|
}
|
|
28060
28060
|
throw new errors.ERR_OUT_OF_RANGE(
|
|
28061
28061
|
type || "offset",
|
|
28062
|
-
`>= ${type ? 1 : 0} and <= ${
|
|
28062
|
+
`>= ${type ? 1 : 0} and <= ${length}`,
|
|
28063
28063
|
value
|
|
28064
28064
|
);
|
|
28065
28065
|
}
|
|
@@ -28076,17 +28076,17 @@
|
|
|
28076
28076
|
function utf8ToBytes(string, units) {
|
|
28077
28077
|
units = units || Infinity;
|
|
28078
28078
|
let codePoint;
|
|
28079
|
-
const
|
|
28079
|
+
const length = string.length;
|
|
28080
28080
|
let leadSurrogate = null;
|
|
28081
28081
|
const bytes = [];
|
|
28082
|
-
for (let i = 0; i <
|
|
28082
|
+
for (let i = 0; i < length; ++i) {
|
|
28083
28083
|
codePoint = string.charCodeAt(i);
|
|
28084
28084
|
if (codePoint > 55295 && codePoint < 57344) {
|
|
28085
28085
|
if (!leadSurrogate) {
|
|
28086
28086
|
if (codePoint > 56319) {
|
|
28087
28087
|
if ((units -= 3) > -1) bytes.push(239, 191, 189);
|
|
28088
28088
|
continue;
|
|
28089
|
-
} else if (i + 1 ===
|
|
28089
|
+
} else if (i + 1 === length) {
|
|
28090
28090
|
if ((units -= 3) > -1) bytes.push(239, 191, 189);
|
|
28091
28091
|
continue;
|
|
28092
28092
|
}
|
|
@@ -28156,9 +28156,9 @@
|
|
|
28156
28156
|
function base64ToBytes(str) {
|
|
28157
28157
|
return base64.toByteArray(base64clean(str));
|
|
28158
28158
|
}
|
|
28159
|
-
function blitBuffer(src, dst, offset,
|
|
28159
|
+
function blitBuffer(src, dst, offset, length) {
|
|
28160
28160
|
let i;
|
|
28161
|
-
for (i = 0; i <
|
|
28161
|
+
for (i = 0; i < length; ++i) {
|
|
28162
28162
|
if (i + offset >= dst.length || i >= src.length) break;
|
|
28163
28163
|
dst[i + offset] = src[i];
|
|
28164
28164
|
}
|
|
@@ -28212,14 +28212,14 @@
|
|
|
28212
28212
|
}
|
|
28213
28213
|
safer.Buffer.prototype = Buffer2.prototype;
|
|
28214
28214
|
if (!Safer.from || Safer.from === Uint8Array.from) {
|
|
28215
|
-
Safer.from = function(value, encodingOrOffset,
|
|
28215
|
+
Safer.from = function(value, encodingOrOffset, length) {
|
|
28216
28216
|
if (typeof value === "number") {
|
|
28217
28217
|
throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof value);
|
|
28218
28218
|
}
|
|
28219
28219
|
if (value && typeof value.length === "undefined") {
|
|
28220
28220
|
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
|
|
28221
28221
|
}
|
|
28222
|
-
return Buffer2(value, encodingOrOffset,
|
|
28222
|
+
return Buffer2(value, encodingOrOffset, length);
|
|
28223
28223
|
};
|
|
28224
28224
|
}
|
|
28225
28225
|
if (!Safer.alloc) {
|
|
@@ -28321,15 +28321,16 @@
|
|
|
28321
28321
|
copyProps(buffer, exports);
|
|
28322
28322
|
exports.Buffer = SafeBuffer;
|
|
28323
28323
|
}
|
|
28324
|
-
function SafeBuffer(arg, encodingOrOffset,
|
|
28325
|
-
return Buffer2(arg, encodingOrOffset,
|
|
28324
|
+
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
28325
|
+
return Buffer2(arg, encodingOrOffset, length);
|
|
28326
28326
|
}
|
|
28327
|
+
SafeBuffer.prototype = Object.create(Buffer2.prototype);
|
|
28327
28328
|
copyProps(Buffer2, SafeBuffer);
|
|
28328
|
-
SafeBuffer.from = function(arg, encodingOrOffset,
|
|
28329
|
+
SafeBuffer.from = function(arg, encodingOrOffset, length) {
|
|
28329
28330
|
if (typeof arg === "number") {
|
|
28330
28331
|
throw new TypeError("Argument must not be a number");
|
|
28331
28332
|
}
|
|
28332
|
-
return Buffer2(arg, encodingOrOffset,
|
|
28333
|
+
return Buffer2(arg, encodingOrOffset, length);
|
|
28333
28334
|
};
|
|
28334
28335
|
SafeBuffer.alloc = function(size, fill, encoding) {
|
|
28335
28336
|
if (typeof size !== "number") {
|
|
@@ -33090,8 +33091,8 @@
|
|
|
33090
33091
|
_checkMandatoryParameters() {
|
|
33091
33092
|
if (this._config.parameters && this._config.parameters.schema) {
|
|
33092
33093
|
const validate2 = this._ajv.compile(this._config.parameters.schema);
|
|
33093
|
-
const
|
|
33094
|
-
if (!
|
|
33094
|
+
const valid = validate2(this._build.parameters);
|
|
33095
|
+
if (!valid) {
|
|
33095
33096
|
throw new Error(validate2.errors);
|
|
33096
33097
|
}
|
|
33097
33098
|
}
|
|
@@ -34153,19 +34154,6 @@
|
|
|
34153
34154
|
this._usages = usages;
|
|
34154
34155
|
return this;
|
|
34155
34156
|
}
|
|
34156
|
-
_checkHardware(hardware) {
|
|
34157
|
-
if (typeof hardware === "string") {
|
|
34158
|
-
hardware = eval("(" + hardware + ")");
|
|
34159
|
-
}
|
|
34160
|
-
let length = Object.keys(hardware).length;
|
|
34161
|
-
let valid = false;
|
|
34162
|
-
if (length === 1 && hardware.hardwareId && typeof hardware.hardwareId === "string" && hardware.hardwareId.length > 0) {
|
|
34163
|
-
valid = true;
|
|
34164
|
-
} else if (length === 3 && hardware.manufacturer && hardware.model && hardware.modelVersion && typeof hardware.manufacturer === "string" && typeof hardware.model === "string" && typeof hardware.modelVersion === "string" && hardware.manufacturer.length > 0 && hardware.model.length > 0 && hardware.modelVersion.length > 0) {
|
|
34165
|
-
valid = true;
|
|
34166
|
-
}
|
|
34167
|
-
return valid;
|
|
34168
|
-
}
|
|
34169
34157
|
/**
|
|
34170
34158
|
* Set the tags attribute
|
|
34171
34159
|
* @param {Array} tags
|
|
@@ -34234,7 +34222,6 @@
|
|
|
34234
34222
|
description: this._description || void 0,
|
|
34235
34223
|
administrativeState: this._administrativeState || void 0,
|
|
34236
34224
|
usages: this._usages || void 0,
|
|
34237
|
-
hardware: this._hardware || void 0,
|
|
34238
34225
|
tags: this._tags || void 0,
|
|
34239
34226
|
parameters: this._parameters || void 0,
|
|
34240
34227
|
domains: this._domains || void 0
|
|
@@ -46885,9 +46872,9 @@
|
|
|
46885
46872
|
* @param {string} hardware
|
|
46886
46873
|
* @return {Bundles}
|
|
46887
46874
|
*/
|
|
46888
|
-
withHardware(
|
|
46889
|
-
if (typeof
|
|
46890
|
-
this._hardware =
|
|
46875
|
+
withHardware(hardware) {
|
|
46876
|
+
if (typeof hardware !== "string") throw new Error("Parameter hardware must be a string");
|
|
46877
|
+
this._hardware = hardware;
|
|
46891
46878
|
return this;
|
|
46892
46879
|
}
|
|
46893
46880
|
/**
|
|
@@ -47713,7 +47700,7 @@
|
|
|
47713
47700
|
return ret;
|
|
47714
47701
|
}
|
|
47715
47702
|
composeElement() {
|
|
47716
|
-
var
|
|
47703
|
+
var hardware = {
|
|
47717
47704
|
serialnumber: this._serialnumber,
|
|
47718
47705
|
manufacturer: {
|
|
47719
47706
|
name: this._manufacturerName,
|
|
@@ -47725,7 +47712,7 @@
|
|
|
47725
47712
|
},
|
|
47726
47713
|
clockDate: this._clockDate
|
|
47727
47714
|
};
|
|
47728
|
-
return
|
|
47715
|
+
return hardware;
|
|
47729
47716
|
}
|
|
47730
47717
|
};
|
|
47731
47718
|
|
|
@@ -48329,11 +48316,11 @@
|
|
|
48329
48316
|
* @param {Hardware} hardware - optionals field
|
|
48330
48317
|
* @return {Subscriber}
|
|
48331
48318
|
*/
|
|
48332
|
-
withHardware(
|
|
48333
|
-
if (!(
|
|
48319
|
+
withHardware(hardware) {
|
|
48320
|
+
if (!(hardware instanceof Hardware)) {
|
|
48334
48321
|
throw new Error("Parameter hardware must be hardware type");
|
|
48335
48322
|
}
|
|
48336
|
-
this._hardware =
|
|
48323
|
+
this._hardware = hardware;
|
|
48337
48324
|
return this;
|
|
48338
48325
|
}
|
|
48339
48326
|
composeElement() {
|
|
@@ -48557,11 +48544,11 @@
|
|
|
48557
48544
|
* @param {Hardware} hardware - optionals field
|
|
48558
48545
|
* @return {CommsModule}
|
|
48559
48546
|
*/
|
|
48560
|
-
withHardware(
|
|
48561
|
-
if (!(
|
|
48547
|
+
withHardware(hardware) {
|
|
48548
|
+
if (!(hardware instanceof Hardware)) {
|
|
48562
48549
|
throw new Error("Parameter hardware must be hardware type");
|
|
48563
48550
|
}
|
|
48564
|
-
this._hardware =
|
|
48551
|
+
this._hardware = hardware;
|
|
48565
48552
|
return this;
|
|
48566
48553
|
}
|
|
48567
48554
|
/**
|
|
@@ -48753,11 +48740,11 @@
|
|
|
48753
48740
|
* @param {Hardware} hardware - optionals field
|
|
48754
48741
|
* @return {Event}
|
|
48755
48742
|
*/
|
|
48756
|
-
withHardware(
|
|
48757
|
-
if (!(
|
|
48743
|
+
withHardware(hardware) {
|
|
48744
|
+
if (!(hardware instanceof Hardware)) {
|
|
48758
48745
|
throw new Error("Parameter hardware must be Hardware type");
|
|
48759
48746
|
}
|
|
48760
|
-
this._hardware =
|
|
48747
|
+
this._hardware = hardware;
|
|
48761
48748
|
return this;
|
|
48762
48749
|
}
|
|
48763
48750
|
/**
|
|
@@ -56502,6 +56489,16 @@
|
|
|
56502
56489
|
this._reportRetentionDays = reportRetentionDays;
|
|
56503
56490
|
return this;
|
|
56504
56491
|
}
|
|
56492
|
+
/**
|
|
56493
|
+
* Sets the timezone attribute
|
|
56494
|
+
* @param {string} timezone
|
|
56495
|
+
* @return {NotebookScheduler}
|
|
56496
|
+
*/
|
|
56497
|
+
withTimezone(timezone) {
|
|
56498
|
+
import_check_types11.default._checkString(timezone, "timezone");
|
|
56499
|
+
this._timezone = timezone;
|
|
56500
|
+
return this;
|
|
56501
|
+
}
|
|
56505
56502
|
withParams(params) {
|
|
56506
56503
|
import_check_types11.default._checkArray(params, "params");
|
|
56507
56504
|
this._params = params;
|
|
@@ -56516,6 +56513,9 @@
|
|
|
56516
56513
|
generateReport: this._generateReport || false,
|
|
56517
56514
|
params: this._params || []
|
|
56518
56515
|
};
|
|
56516
|
+
if (this._timezone) {
|
|
56517
|
+
notebookData.timeZone = this._timezone;
|
|
56518
|
+
}
|
|
56519
56519
|
return notebookData;
|
|
56520
56520
|
}
|
|
56521
56521
|
create() {
|
|
@@ -59070,9 +59070,9 @@
|
|
|
59070
59070
|
}
|
|
59071
59071
|
}
|
|
59072
59072
|
var relativeUrlSplit = relativeUrl.split("/");
|
|
59073
|
-
var
|
|
59073
|
+
var length = relativeUrlSplit.length;
|
|
59074
59074
|
relativeUrlSplit.forEach(function(item, index2) {
|
|
59075
|
-
if (index2 ===
|
|
59075
|
+
if (index2 === length - 1 && item.indexOf("?") > 0) {
|
|
59076
59076
|
var parameters2 = item.substring(item.indexOf("?"), item.length);
|
|
59077
59077
|
var _item = item.substring(0, item.indexOf("?"));
|
|
59078
59078
|
encode.push((0, import_urlencode.default)(_item) + parameters2);
|
|
@@ -59263,5 +59263,8 @@ buffer/index.js:
|
|
|
59263
59263
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
59264
59264
|
* @license MIT
|
|
59265
59265
|
*)
|
|
59266
|
+
|
|
59267
|
+
safe-buffer/index.js:
|
|
59268
|
+
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
59266
59269
|
*/
|
|
59267
|
-
//# sourceMappingURL=opengate-api-bower-16.
|
|
59270
|
+
//# sourceMappingURL=opengate-api-bower-16.2.0.js.map
|