@tryghost/helpers 1.1.49 → 1.1.53
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/cjs/helpers.js +123 -71
- package/es/helpers.js +123 -71
- package/es/helpers.js.map +1 -1
- package/package.json +6 -5
- package/umd/helpers.min.js.map +1 -1
package/es/helpers.js
CHANGED
|
@@ -78,14 +78,20 @@ function baseIndexOf(array, value, fromIndex) {
|
|
|
78
78
|
/** Detect free variable `global` from Node.js. */
|
|
79
79
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
80
80
|
|
|
81
|
+
var freeGlobal$1 = freeGlobal;
|
|
82
|
+
|
|
81
83
|
/** Detect free variable `self`. */
|
|
82
84
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
83
85
|
|
|
84
86
|
/** Used as a reference to the global object. */
|
|
85
|
-
var root = freeGlobal || freeSelf || Function('return this')();
|
|
87
|
+
var root = freeGlobal$1 || freeSelf || Function('return this')();
|
|
88
|
+
|
|
89
|
+
var root$1 = root;
|
|
86
90
|
|
|
87
91
|
/** Built-in value references. */
|
|
88
|
-
var Symbol = root.Symbol;
|
|
92
|
+
var Symbol = root$1.Symbol;
|
|
93
|
+
|
|
94
|
+
var Symbol$1 = Symbol;
|
|
89
95
|
|
|
90
96
|
/** Used for built-in method references. */
|
|
91
97
|
var objectProto$b = Object.prototype;
|
|
@@ -101,7 +107,7 @@ var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
|
|
|
101
107
|
var nativeObjectToString$1 = objectProto$b.toString;
|
|
102
108
|
|
|
103
109
|
/** Built-in value references. */
|
|
104
|
-
var symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;
|
|
110
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
105
111
|
|
|
106
112
|
/**
|
|
107
113
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
@@ -156,7 +162,7 @@ var nullTag = '[object Null]',
|
|
|
156
162
|
undefinedTag = '[object Undefined]';
|
|
157
163
|
|
|
158
164
|
/** Built-in value references. */
|
|
159
|
-
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
165
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
160
166
|
|
|
161
167
|
/**
|
|
162
168
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -325,6 +331,8 @@ function isArrayLike(value) {
|
|
|
325
331
|
*/
|
|
326
332
|
var isArray = Array.isArray;
|
|
327
333
|
|
|
334
|
+
var isArray$1 = isArray;
|
|
335
|
+
|
|
328
336
|
/**
|
|
329
337
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
330
338
|
* and has a `typeof` result of "object".
|
|
@@ -375,7 +383,7 @@ var stringTag$2 = '[object String]';
|
|
|
375
383
|
*/
|
|
376
384
|
function isString(value) {
|
|
377
385
|
return typeof value == 'string' ||
|
|
378
|
-
(!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag$2);
|
|
386
|
+
(!isArray$1(value) && isObjectLike(value) && baseGetTag(value) == stringTag$2);
|
|
379
387
|
}
|
|
380
388
|
|
|
381
389
|
/** Used to match a single whitespace character. */
|
|
@@ -669,6 +677,8 @@ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsAr
|
|
|
669
677
|
!propertyIsEnumerable$1.call(value, 'callee');
|
|
670
678
|
};
|
|
671
679
|
|
|
680
|
+
var isArguments$1 = isArguments;
|
|
681
|
+
|
|
672
682
|
/**
|
|
673
683
|
* This method returns `false`.
|
|
674
684
|
*
|
|
@@ -696,7 +706,7 @@ var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !modu
|
|
|
696
706
|
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
697
707
|
|
|
698
708
|
/** Built-in value references. */
|
|
699
|
-
var Buffer = moduleExports$1 ? root.Buffer : undefined;
|
|
709
|
+
var Buffer = moduleExports$1 ? root$1.Buffer : undefined;
|
|
700
710
|
|
|
701
711
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
702
712
|
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
@@ -720,6 +730,8 @@ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
|
720
730
|
*/
|
|
721
731
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
722
732
|
|
|
733
|
+
var isBuffer$1 = isBuffer;
|
|
734
|
+
|
|
723
735
|
/** Used as references for various `Number` constants. */
|
|
724
736
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
725
737
|
|
|
@@ -822,7 +834,7 @@ var freeModule = freeExports && typeof module == 'object' && module && !module.n
|
|
|
822
834
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
823
835
|
|
|
824
836
|
/** Detect free variable `process` from Node.js. */
|
|
825
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
837
|
+
var freeProcess = moduleExports && freeGlobal$1.process;
|
|
826
838
|
|
|
827
839
|
/** Used to access faster Node.js helpers. */
|
|
828
840
|
var nodeUtil = (function() {
|
|
@@ -839,8 +851,10 @@ var nodeUtil = (function() {
|
|
|
839
851
|
} catch (e) {}
|
|
840
852
|
}());
|
|
841
853
|
|
|
854
|
+
var nodeUtil$1 = nodeUtil;
|
|
855
|
+
|
|
842
856
|
/* Node.js helper references. */
|
|
843
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
857
|
+
var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
|
|
844
858
|
|
|
845
859
|
/**
|
|
846
860
|
* Checks if `value` is classified as a typed array.
|
|
@@ -861,6 +875,8 @@ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
|
861
875
|
*/
|
|
862
876
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
863
877
|
|
|
878
|
+
var isTypedArray$1 = isTypedArray;
|
|
879
|
+
|
|
864
880
|
/** Used for built-in method references. */
|
|
865
881
|
var objectProto$8 = Object.prototype;
|
|
866
882
|
|
|
@@ -876,10 +892,10 @@ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
|
876
892
|
* @returns {Array} Returns the array of property names.
|
|
877
893
|
*/
|
|
878
894
|
function arrayLikeKeys(value, inherited) {
|
|
879
|
-
var isArr = isArray(value),
|
|
880
|
-
isArg = !isArr && isArguments(value),
|
|
881
|
-
isBuff = !isArr && !isArg && isBuffer(value),
|
|
882
|
-
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
|
|
895
|
+
var isArr = isArray$1(value),
|
|
896
|
+
isArg = !isArr && isArguments$1(value),
|
|
897
|
+
isBuff = !isArr && !isArg && isBuffer$1(value),
|
|
898
|
+
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
883
899
|
skipIndexes = isArr || isArg || isBuff || isType,
|
|
884
900
|
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
885
901
|
length = result.length;
|
|
@@ -936,6 +952,8 @@ function overArg(func, transform) {
|
|
|
936
952
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
937
953
|
var nativeKeys = overArg(Object.keys, Object);
|
|
938
954
|
|
|
955
|
+
var nativeKeys$1 = nativeKeys;
|
|
956
|
+
|
|
939
957
|
/** Used for built-in method references. */
|
|
940
958
|
var objectProto$6 = Object.prototype;
|
|
941
959
|
|
|
@@ -951,7 +969,7 @@ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
|
951
969
|
*/
|
|
952
970
|
function baseKeys(object) {
|
|
953
971
|
if (!isPrototype(object)) {
|
|
954
|
-
return nativeKeys(object);
|
|
972
|
+
return nativeKeys$1(object);
|
|
955
973
|
}
|
|
956
974
|
var result = [];
|
|
957
975
|
for (var key in Object(object)) {
|
|
@@ -1301,11 +1319,13 @@ function stackHas(key) {
|
|
|
1301
1319
|
}
|
|
1302
1320
|
|
|
1303
1321
|
/** Used to detect overreaching core-js shims. */
|
|
1304
|
-
var coreJsData = root['__core-js_shared__'];
|
|
1322
|
+
var coreJsData = root$1['__core-js_shared__'];
|
|
1323
|
+
|
|
1324
|
+
var coreJsData$1 = coreJsData;
|
|
1305
1325
|
|
|
1306
1326
|
/** Used to detect methods masquerading as native. */
|
|
1307
1327
|
var maskSrcKey = (function() {
|
|
1308
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
1328
|
+
var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || '');
|
|
1309
1329
|
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
1310
1330
|
}());
|
|
1311
1331
|
|
|
@@ -1412,11 +1432,15 @@ function getNative(object, key) {
|
|
|
1412
1432
|
}
|
|
1413
1433
|
|
|
1414
1434
|
/* Built-in method references that are verified to be native. */
|
|
1415
|
-
var Map = getNative(root, 'Map');
|
|
1435
|
+
var Map = getNative(root$1, 'Map');
|
|
1436
|
+
|
|
1437
|
+
var Map$1 = Map;
|
|
1416
1438
|
|
|
1417
1439
|
/* Built-in method references that are verified to be native. */
|
|
1418
1440
|
var nativeCreate = getNative(Object, 'create');
|
|
1419
1441
|
|
|
1442
|
+
var nativeCreate$1 = nativeCreate;
|
|
1443
|
+
|
|
1420
1444
|
/**
|
|
1421
1445
|
* Removes all key-value entries from the hash.
|
|
1422
1446
|
*
|
|
@@ -1425,7 +1449,7 @@ var nativeCreate = getNative(Object, 'create');
|
|
|
1425
1449
|
* @memberOf Hash
|
|
1426
1450
|
*/
|
|
1427
1451
|
function hashClear() {
|
|
1428
|
-
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
1452
|
+
this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
|
|
1429
1453
|
this.size = 0;
|
|
1430
1454
|
}
|
|
1431
1455
|
|
|
@@ -1465,7 +1489,7 @@ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
|
1465
1489
|
*/
|
|
1466
1490
|
function hashGet(key) {
|
|
1467
1491
|
var data = this.__data__;
|
|
1468
|
-
if (nativeCreate) {
|
|
1492
|
+
if (nativeCreate$1) {
|
|
1469
1493
|
var result = data[key];
|
|
1470
1494
|
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
1471
1495
|
}
|
|
@@ -1489,7 +1513,7 @@ var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
|
1489
1513
|
*/
|
|
1490
1514
|
function hashHas(key) {
|
|
1491
1515
|
var data = this.__data__;
|
|
1492
|
-
return nativeCreate ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
|
|
1516
|
+
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
|
|
1493
1517
|
}
|
|
1494
1518
|
|
|
1495
1519
|
/** Used to stand-in for `undefined` hash values. */
|
|
@@ -1508,7 +1532,7 @@ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
|
1508
1532
|
function hashSet(key, value) {
|
|
1509
1533
|
var data = this.__data__;
|
|
1510
1534
|
this.size += this.has(key) ? 0 : 1;
|
|
1511
|
-
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
1535
|
+
data[key] = (nativeCreate$1 && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
1512
1536
|
return this;
|
|
1513
1537
|
}
|
|
1514
1538
|
|
|
@@ -1548,7 +1572,7 @@ function mapCacheClear() {
|
|
|
1548
1572
|
this.size = 0;
|
|
1549
1573
|
this.__data__ = {
|
|
1550
1574
|
'hash': new Hash,
|
|
1551
|
-
'map': new (Map || ListCache),
|
|
1575
|
+
'map': new (Map$1 || ListCache),
|
|
1552
1576
|
'string': new Hash
|
|
1553
1577
|
};
|
|
1554
1578
|
}
|
|
@@ -1684,7 +1708,7 @@ function stackSet(key, value) {
|
|
|
1684
1708
|
var data = this.__data__;
|
|
1685
1709
|
if (data instanceof ListCache) {
|
|
1686
1710
|
var pairs = data.__data__;
|
|
1687
|
-
if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
1711
|
+
if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
1688
1712
|
pairs.push([key, value]);
|
|
1689
1713
|
this.size = ++data.size;
|
|
1690
1714
|
return this;
|
|
@@ -1882,7 +1906,9 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
1882
1906
|
}
|
|
1883
1907
|
|
|
1884
1908
|
/** Built-in value references. */
|
|
1885
|
-
var Uint8Array = root.Uint8Array;
|
|
1909
|
+
var Uint8Array = root$1.Uint8Array;
|
|
1910
|
+
|
|
1911
|
+
var Uint8Array$1 = Uint8Array;
|
|
1886
1912
|
|
|
1887
1913
|
/**
|
|
1888
1914
|
* Converts `map` to its key-value pairs.
|
|
@@ -1937,7 +1963,7 @@ var arrayBufferTag = '[object ArrayBuffer]',
|
|
|
1937
1963
|
dataViewTag$1 = '[object DataView]';
|
|
1938
1964
|
|
|
1939
1965
|
/** Used to convert symbols to primitives and strings. */
|
|
1940
|
-
var symbolProto$1 = Symbol ? Symbol.prototype : undefined,
|
|
1966
|
+
var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
1941
1967
|
symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : undefined;
|
|
1942
1968
|
|
|
1943
1969
|
/**
|
|
@@ -1969,7 +1995,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
|
1969
1995
|
|
|
1970
1996
|
case arrayBufferTag:
|
|
1971
1997
|
if ((object.byteLength != other.byteLength) ||
|
|
1972
|
-
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
|
1998
|
+
!equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) {
|
|
1973
1999
|
return false;
|
|
1974
2000
|
}
|
|
1975
2001
|
return true;
|
|
@@ -2054,7 +2080,7 @@ function arrayPush(array, values) {
|
|
|
2054
2080
|
*/
|
|
2055
2081
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
2056
2082
|
var result = keysFunc(object);
|
|
2057
|
-
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
2083
|
+
return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
2058
2084
|
}
|
|
2059
2085
|
|
|
2060
2086
|
/**
|
|
@@ -2129,6 +2155,8 @@ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
2129
2155
|
});
|
|
2130
2156
|
};
|
|
2131
2157
|
|
|
2158
|
+
var getSymbols$1 = getSymbols;
|
|
2159
|
+
|
|
2132
2160
|
/**
|
|
2133
2161
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
2134
2162
|
*
|
|
@@ -2137,7 +2165,7 @@ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
2137
2165
|
* @returns {Array} Returns the array of property names and symbols.
|
|
2138
2166
|
*/
|
|
2139
2167
|
function getAllKeys(object) {
|
|
2140
|
-
return baseGetAllKeys(object, keys, getSymbols);
|
|
2168
|
+
return baseGetAllKeys(object, keys, getSymbols$1);
|
|
2141
2169
|
}
|
|
2142
2170
|
|
|
2143
2171
|
/** Used to compose bitmasks for value comparisons. */
|
|
@@ -2228,16 +2256,24 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2228
2256
|
}
|
|
2229
2257
|
|
|
2230
2258
|
/* Built-in method references that are verified to be native. */
|
|
2231
|
-
var DataView = getNative(root, 'DataView');
|
|
2259
|
+
var DataView = getNative(root$1, 'DataView');
|
|
2260
|
+
|
|
2261
|
+
var DataView$1 = DataView;
|
|
2232
2262
|
|
|
2233
2263
|
/* Built-in method references that are verified to be native. */
|
|
2234
|
-
var Promise$1 = getNative(root, 'Promise');
|
|
2264
|
+
var Promise$1 = getNative(root$1, 'Promise');
|
|
2265
|
+
|
|
2266
|
+
var Promise$2 = Promise$1;
|
|
2235
2267
|
|
|
2236
2268
|
/* Built-in method references that are verified to be native. */
|
|
2237
|
-
var Set = getNative(root, 'Set');
|
|
2269
|
+
var Set = getNative(root$1, 'Set');
|
|
2270
|
+
|
|
2271
|
+
var Set$1 = Set;
|
|
2238
2272
|
|
|
2239
2273
|
/* Built-in method references that are verified to be native. */
|
|
2240
|
-
var WeakMap = getNative(root, 'WeakMap');
|
|
2274
|
+
var WeakMap = getNative(root$1, 'WeakMap');
|
|
2275
|
+
|
|
2276
|
+
var WeakMap$1 = WeakMap;
|
|
2241
2277
|
|
|
2242
2278
|
/** `Object#toString` result references. */
|
|
2243
2279
|
var mapTag$1 = '[object Map]',
|
|
@@ -2249,11 +2285,11 @@ var mapTag$1 = '[object Map]',
|
|
|
2249
2285
|
var dataViewTag = '[object DataView]';
|
|
2250
2286
|
|
|
2251
2287
|
/** Used to detect maps, sets, and weakmaps. */
|
|
2252
|
-
var dataViewCtorString = toSource(DataView),
|
|
2253
|
-
mapCtorString = toSource(Map),
|
|
2254
|
-
promiseCtorString = toSource(Promise$
|
|
2255
|
-
setCtorString = toSource(Set),
|
|
2256
|
-
weakMapCtorString = toSource(WeakMap);
|
|
2288
|
+
var dataViewCtorString = toSource(DataView$1),
|
|
2289
|
+
mapCtorString = toSource(Map$1),
|
|
2290
|
+
promiseCtorString = toSource(Promise$2),
|
|
2291
|
+
setCtorString = toSource(Set$1),
|
|
2292
|
+
weakMapCtorString = toSource(WeakMap$1);
|
|
2257
2293
|
|
|
2258
2294
|
/**
|
|
2259
2295
|
* Gets the `toStringTag` of `value`.
|
|
@@ -2265,11 +2301,11 @@ var dataViewCtorString = toSource(DataView),
|
|
|
2265
2301
|
var getTag = baseGetTag;
|
|
2266
2302
|
|
|
2267
2303
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
2268
|
-
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
2269
|
-
(Map && getTag(new Map) != mapTag$1) ||
|
|
2270
|
-
(Promise$
|
|
2271
|
-
(Set && getTag(new Set) != setTag$1) ||
|
|
2272
|
-
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
|
2304
|
+
if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag) ||
|
|
2305
|
+
(Map$1 && getTag(new Map$1) != mapTag$1) ||
|
|
2306
|
+
(Promise$2 && getTag(Promise$2.resolve()) != promiseTag) ||
|
|
2307
|
+
(Set$1 && getTag(new Set$1) != setTag$1) ||
|
|
2308
|
+
(WeakMap$1 && getTag(new WeakMap$1) != weakMapTag)) {
|
|
2273
2309
|
getTag = function(value) {
|
|
2274
2310
|
var result = baseGetTag(value),
|
|
2275
2311
|
Ctor = result == objectTag$1 ? value.constructor : undefined,
|
|
@@ -2319,8 +2355,8 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
2319
2355
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
2320
2356
|
*/
|
|
2321
2357
|
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
2322
|
-
var objIsArr = isArray(object),
|
|
2323
|
-
othIsArr = isArray(other),
|
|
2358
|
+
var objIsArr = isArray$1(object),
|
|
2359
|
+
othIsArr = isArray$1(other),
|
|
2324
2360
|
objTag = objIsArr ? arrayTag : getTag$1(object),
|
|
2325
2361
|
othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
2326
2362
|
|
|
@@ -2331,8 +2367,8 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2331
2367
|
othIsObj = othTag == objectTag,
|
|
2332
2368
|
isSameTag = objTag == othTag;
|
|
2333
2369
|
|
|
2334
|
-
if (isSameTag && isBuffer(object)) {
|
|
2335
|
-
if (!isBuffer(other)) {
|
|
2370
|
+
if (isSameTag && isBuffer$1(object)) {
|
|
2371
|
+
if (!isBuffer$1(other)) {
|
|
2336
2372
|
return false;
|
|
2337
2373
|
}
|
|
2338
2374
|
objIsArr = true;
|
|
@@ -2340,7 +2376,7 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2340
2376
|
}
|
|
2341
2377
|
if (isSameTag && !objIsObj) {
|
|
2342
2378
|
stack || (stack = new Stack);
|
|
2343
|
-
return (objIsArr || isTypedArray(object))
|
|
2379
|
+
return (objIsArr || isTypedArray$1(object))
|
|
2344
2380
|
? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
|
|
2345
2381
|
: equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
2346
2382
|
}
|
|
@@ -2526,7 +2562,7 @@ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
|
2526
2562
|
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
2527
2563
|
*/
|
|
2528
2564
|
function isKey(value, object) {
|
|
2529
|
-
if (isArray(value)) {
|
|
2565
|
+
if (isArray$1(value)) {
|
|
2530
2566
|
return false;
|
|
2531
2567
|
}
|
|
2532
2568
|
var type = typeof value;
|
|
@@ -2655,11 +2691,13 @@ var stringToPath = memoizeCapped(function(string) {
|
|
|
2655
2691
|
return result;
|
|
2656
2692
|
});
|
|
2657
2693
|
|
|
2694
|
+
var stringToPath$1 = stringToPath;
|
|
2695
|
+
|
|
2658
2696
|
/** Used as references for various `Number` constants. */
|
|
2659
2697
|
var INFINITY$1 = 1 / 0;
|
|
2660
2698
|
|
|
2661
2699
|
/** Used to convert symbols to primitives and strings. */
|
|
2662
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
2700
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
2663
2701
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
2664
2702
|
|
|
2665
2703
|
/**
|
|
@@ -2675,7 +2713,7 @@ function baseToString(value) {
|
|
|
2675
2713
|
if (typeof value == 'string') {
|
|
2676
2714
|
return value;
|
|
2677
2715
|
}
|
|
2678
|
-
if (isArray(value)) {
|
|
2716
|
+
if (isArray$1(value)) {
|
|
2679
2717
|
// Recursively convert values (susceptible to call stack limits).
|
|
2680
2718
|
return arrayMap(value, baseToString) + '';
|
|
2681
2719
|
}
|
|
@@ -2720,10 +2758,10 @@ function toString(value) {
|
|
|
2720
2758
|
* @returns {Array} Returns the cast property path array.
|
|
2721
2759
|
*/
|
|
2722
2760
|
function castPath(value, object) {
|
|
2723
|
-
if (isArray(value)) {
|
|
2761
|
+
if (isArray$1(value)) {
|
|
2724
2762
|
return value;
|
|
2725
2763
|
}
|
|
2726
|
-
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
2764
|
+
return isKey(value, object) ? [value] : stringToPath$1(toString(value));
|
|
2727
2765
|
}
|
|
2728
2766
|
|
|
2729
2767
|
/** Used as references for various `Number` constants. */
|
|
@@ -2834,7 +2872,7 @@ function hasPath(object, path, hasFunc) {
|
|
|
2834
2872
|
}
|
|
2835
2873
|
length = object == null ? 0 : object.length;
|
|
2836
2874
|
return !!length && isLength(length) && isIndex(key, length) &&
|
|
2837
|
-
(isArray(object) || isArguments(object));
|
|
2875
|
+
(isArray$1(object) || isArguments$1(object));
|
|
2838
2876
|
}
|
|
2839
2877
|
|
|
2840
2878
|
/**
|
|
@@ -2980,7 +3018,7 @@ function baseIteratee(value) {
|
|
|
2980
3018
|
return identity;
|
|
2981
3019
|
}
|
|
2982
3020
|
if (typeof value == 'object') {
|
|
2983
|
-
return isArray(value)
|
|
3021
|
+
return isArray$1(value)
|
|
2984
3022
|
? baseMatchesProperty(value[0], value[1])
|
|
2985
3023
|
: baseMatches(value);
|
|
2986
3024
|
}
|
|
@@ -3024,6 +3062,8 @@ function createBaseFor(fromRight) {
|
|
|
3024
3062
|
*/
|
|
3025
3063
|
var baseFor = createBaseFor();
|
|
3026
3064
|
|
|
3065
|
+
var baseFor$1 = baseFor;
|
|
3066
|
+
|
|
3027
3067
|
/**
|
|
3028
3068
|
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
3029
3069
|
*
|
|
@@ -3033,7 +3073,7 @@ var baseFor = createBaseFor();
|
|
|
3033
3073
|
* @returns {Object} Returns `object`.
|
|
3034
3074
|
*/
|
|
3035
3075
|
function baseForOwn(object, iteratee) {
|
|
3036
|
-
return object && baseFor(object, iteratee, keys);
|
|
3076
|
+
return object && baseFor$1(object, iteratee, keys);
|
|
3037
3077
|
}
|
|
3038
3078
|
|
|
3039
3079
|
/**
|
|
@@ -3075,6 +3115,8 @@ function createBaseEach(eachFunc, fromRight) {
|
|
|
3075
3115
|
*/
|
|
3076
3116
|
var baseEach = createBaseEach(baseForOwn);
|
|
3077
3117
|
|
|
3118
|
+
var baseEach$1 = baseEach;
|
|
3119
|
+
|
|
3078
3120
|
/**
|
|
3079
3121
|
* The base implementation of `_.map` without support for iteratee shorthands.
|
|
3080
3122
|
*
|
|
@@ -3087,7 +3129,7 @@ function baseMap(collection, iteratee) {
|
|
|
3087
3129
|
var index = -1,
|
|
3088
3130
|
result = isArrayLike(collection) ? Array(collection.length) : [];
|
|
3089
3131
|
|
|
3090
|
-
baseEach(collection, function(value, key, collection) {
|
|
3132
|
+
baseEach$1(collection, function(value, key, collection) {
|
|
3091
3133
|
result[++index] = iteratee(value, key, collection);
|
|
3092
3134
|
});
|
|
3093
3135
|
return result;
|
|
@@ -3136,7 +3178,7 @@ function baseMap(collection, iteratee) {
|
|
|
3136
3178
|
* // => ['barney', 'fred']
|
|
3137
3179
|
*/
|
|
3138
3180
|
function map(collection, iteratee) {
|
|
3139
|
-
var func = isArray(collection) ? arrayMap : baseMap;
|
|
3181
|
+
var func = isArray$1(collection) ? arrayMap : baseMap;
|
|
3140
3182
|
return func(collection, baseIteratee(iteratee));
|
|
3141
3183
|
}
|
|
3142
3184
|
|
|
@@ -3225,10 +3267,10 @@ function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
|
3225
3267
|
* // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
|
|
3226
3268
|
*/
|
|
3227
3269
|
function reduce(collection, iteratee, accumulator) {
|
|
3228
|
-
var func = isArray(collection) ? arrayReduce : baseReduce,
|
|
3270
|
+
var func = isArray$1(collection) ? arrayReduce : baseReduce,
|
|
3229
3271
|
initAccum = arguments.length < 3;
|
|
3230
3272
|
|
|
3231
|
-
return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach);
|
|
3273
|
+
return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach$1);
|
|
3232
3274
|
}
|
|
3233
3275
|
|
|
3234
3276
|
/**
|
|
@@ -3467,8 +3509,8 @@ var filter = function filter(items, visibility, fn) {
|
|
|
3467
3509
|
visibility = null;
|
|
3468
3510
|
}
|
|
3469
3511
|
|
|
3470
|
-
var memo = isArray(items) ? [] : {};
|
|
3471
|
-
var visArray = isArray(visibility) ? visibility : parse(visibility); // Fallback behaviour for items that don't have visibility set on them
|
|
3512
|
+
var memo = isArray$1(items) ? [] : {};
|
|
3513
|
+
var visArray = isArray$1(visibility) ? visibility : parse(visibility); // Fallback behaviour for items that don't have visibility set on them
|
|
3472
3514
|
|
|
3473
3515
|
var defaultVisibility = 'public';
|
|
3474
3516
|
var returnByDefault = includes(visArray, defaultVisibility); // We don't want to change the structure of what is returned
|
|
@@ -3478,7 +3520,7 @@ var filter = function filter(items, visibility, fn) {
|
|
|
3478
3520
|
if (includes(visArray, 'all') || item.visibility && includes(visArray, item.visibility) || !item.visibility && returnByDefault) {
|
|
3479
3521
|
var newItem = fn ? fn(item) : item;
|
|
3480
3522
|
|
|
3481
|
-
if (isArray(items)) {
|
|
3523
|
+
if (isArray$1(items)) {
|
|
3482
3524
|
memo.push(newItem);
|
|
3483
3525
|
} else {
|
|
3484
3526
|
memo[key] = newItem;
|
|
@@ -3661,7 +3703,7 @@ function compact(array) {
|
|
|
3661
3703
|
}
|
|
3662
3704
|
|
|
3663
3705
|
/** Built-in value references. */
|
|
3664
|
-
var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
|
|
3706
|
+
var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : undefined;
|
|
3665
3707
|
|
|
3666
3708
|
/**
|
|
3667
3709
|
* Checks if `value` is a flattenable `arguments` object or array.
|
|
@@ -3671,7 +3713,7 @@ var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
|
|
|
3671
3713
|
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
|
|
3672
3714
|
*/
|
|
3673
3715
|
function isFlattenable(value) {
|
|
3674
|
-
return isArray(value) || isArguments(value) ||
|
|
3716
|
+
return isArray$1(value) || isArguments$1(value) ||
|
|
3675
3717
|
!!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
3676
3718
|
}
|
|
3677
3719
|
|
|
@@ -3762,7 +3804,7 @@ function concat() {
|
|
|
3762
3804
|
while (index--) {
|
|
3763
3805
|
args[index - 1] = arguments[index];
|
|
3764
3806
|
}
|
|
3765
|
-
return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
|
|
3807
|
+
return arrayPush(isArray$1(array) ? copyArray(array) : [array], baseFlatten(args, 1));
|
|
3766
3808
|
}
|
|
3767
3809
|
|
|
3768
3810
|
/**
|
|
@@ -3941,6 +3983,8 @@ function flatten(array) {
|
|
|
3941
3983
|
*/
|
|
3942
3984
|
var asciiSize = baseProperty('length');
|
|
3943
3985
|
|
|
3986
|
+
var asciiSize$1 = asciiSize;
|
|
3987
|
+
|
|
3944
3988
|
/** Used to compose unicode character classes. */
|
|
3945
3989
|
var rsAstralRange = '\\ud800-\\udfff',
|
|
3946
3990
|
rsComboMarksRange = '\\u0300-\\u036f',
|
|
@@ -3994,7 +4038,7 @@ function unicodeSize(string) {
|
|
|
3994
4038
|
function stringSize(string) {
|
|
3995
4039
|
return hasUnicode(string)
|
|
3996
4040
|
? unicodeSize(string)
|
|
3997
|
-
: asciiSize(string);
|
|
4041
|
+
: asciiSize$1(string);
|
|
3998
4042
|
}
|
|
3999
4043
|
|
|
4000
4044
|
/** `Object#toString` result references. */
|
|
@@ -4122,6 +4166,8 @@ var defineProperty = (function() {
|
|
|
4122
4166
|
} catch (e) {}
|
|
4123
4167
|
}());
|
|
4124
4168
|
|
|
4169
|
+
var defineProperty$1 = defineProperty;
|
|
4170
|
+
|
|
4125
4171
|
/**
|
|
4126
4172
|
* The base implementation of `setToString` without support for hot loop shorting.
|
|
4127
4173
|
*
|
|
@@ -4130,8 +4176,8 @@ var defineProperty = (function() {
|
|
|
4130
4176
|
* @param {Function} string The `toString` result.
|
|
4131
4177
|
* @returns {Function} Returns `func`.
|
|
4132
4178
|
*/
|
|
4133
|
-
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
4134
|
-
return defineProperty(func, 'toString', {
|
|
4179
|
+
var baseSetToString = !defineProperty$1 ? identity : function(func, string) {
|
|
4180
|
+
return defineProperty$1(func, 'toString', {
|
|
4135
4181
|
'configurable': true,
|
|
4136
4182
|
'enumerable': false,
|
|
4137
4183
|
'value': constant(string),
|
|
@@ -4139,6 +4185,8 @@ var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
|
4139
4185
|
});
|
|
4140
4186
|
};
|
|
4141
4187
|
|
|
4188
|
+
var baseSetToString$1 = baseSetToString;
|
|
4189
|
+
|
|
4142
4190
|
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
4143
4191
|
var HOT_COUNT = 800,
|
|
4144
4192
|
HOT_SPAN = 16;
|
|
@@ -4183,7 +4231,9 @@ function shortOut(func) {
|
|
|
4183
4231
|
* @param {Function} string The `toString` result.
|
|
4184
4232
|
* @returns {Function} Returns `func`.
|
|
4185
4233
|
*/
|
|
4186
|
-
var setToString = shortOut(baseSetToString);
|
|
4234
|
+
var setToString = shortOut(baseSetToString$1);
|
|
4235
|
+
|
|
4236
|
+
var setToString$1 = setToString;
|
|
4187
4237
|
|
|
4188
4238
|
/**
|
|
4189
4239
|
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
@@ -4194,7 +4244,7 @@ var setToString = shortOut(baseSetToString);
|
|
|
4194
4244
|
* @returns {Function} Returns the new function.
|
|
4195
4245
|
*/
|
|
4196
4246
|
function baseRest(func, start) {
|
|
4197
|
-
return setToString(overRest(func, start, identity), func + '');
|
|
4247
|
+
return setToString$1(overRest(func, start, identity), func + '');
|
|
4198
4248
|
}
|
|
4199
4249
|
|
|
4200
4250
|
/**
|
|
@@ -4282,6 +4332,8 @@ function unzip(array) {
|
|
|
4282
4332
|
*/
|
|
4283
4333
|
var zip = baseRest(unzip);
|
|
4284
4334
|
|
|
4335
|
+
var zip$1 = zip;
|
|
4336
|
+
|
|
4285
4337
|
/**
|
|
4286
4338
|
* Tags Helper
|
|
4287
4339
|
*
|
|
@@ -4309,7 +4361,7 @@ function tags (data) {
|
|
|
4309
4361
|
var from = options.from ? parseInt(options.from, 10) : 1;
|
|
4310
4362
|
var to = options.to ? parseInt(options.to, 10) : undefined;
|
|
4311
4363
|
var visibilityArr = parse(options.visibility);
|
|
4312
|
-
var fallback = options.fallback ? isArray(options.fallback) ? options.fallback : [options.fallback] : undefined;
|
|
4364
|
+
var fallback = options.fallback ? isArray$1(options.fallback) ? options.fallback : [options.fallback] : undefined;
|
|
4313
4365
|
var displayFn = options.fn ? options.fn : function (tag) {
|
|
4314
4366
|
return tag.name;
|
|
4315
4367
|
};
|
|
@@ -4338,7 +4390,7 @@ function tags (data) {
|
|
|
4338
4390
|
// Else, operate on the array, and return an array
|
|
4339
4391
|
if (separator) {
|
|
4340
4392
|
// If we have a separator, use lodash to make pairs of items & separators
|
|
4341
|
-
output = zip(output, fill(Array(output.length), separator)); // Flatten our pairs, and remove the final separator
|
|
4393
|
+
output = zip$1(output, fill(Array(output.length), separator)); // Flatten our pairs, and remove the final separator
|
|
4342
4394
|
|
|
4343
4395
|
output = flatten(output).slice(0, -1);
|
|
4344
4396
|
} // Add our prefix and suffix
|