@orderingstack/front-hooks 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +19 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1371 -245
- package/dist/index.es.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/useCms.d.ts +13 -0
- package/dist/src/useCms.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -95,21 +95,21 @@ function baseGetTag$4(value) {
|
|
|
95
95
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
96
96
|
}
|
|
97
97
|
var _baseGetTag = baseGetTag$4;
|
|
98
|
-
function isObject$
|
|
98
|
+
function isObject$6(value) {
|
|
99
99
|
var type = typeof value;
|
|
100
100
|
return value != null && (type == "object" || type == "function");
|
|
101
101
|
}
|
|
102
|
-
var isObject_1 = isObject$
|
|
103
|
-
var baseGetTag$3 = _baseGetTag, isObject$
|
|
102
|
+
var isObject_1 = isObject$6;
|
|
103
|
+
var baseGetTag$3 = _baseGetTag, isObject$5 = isObject_1;
|
|
104
104
|
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
105
|
-
function isFunction$
|
|
106
|
-
if (!isObject$
|
|
105
|
+
function isFunction$3(value) {
|
|
106
|
+
if (!isObject$5(value)) {
|
|
107
107
|
return false;
|
|
108
108
|
}
|
|
109
109
|
var tag = baseGetTag$3(value);
|
|
110
110
|
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
111
111
|
}
|
|
112
|
-
var isFunction_1 = isFunction$
|
|
112
|
+
var isFunction_1 = isFunction$3;
|
|
113
113
|
var root$6 = _root;
|
|
114
114
|
var coreJsData$1 = root$6["__core-js_shared__"];
|
|
115
115
|
var _coreJsData = coreJsData$1;
|
|
@@ -138,7 +138,7 @@ function toSource$2(func) {
|
|
|
138
138
|
return "";
|
|
139
139
|
}
|
|
140
140
|
var _toSource = toSource$2;
|
|
141
|
-
var isFunction$
|
|
141
|
+
var isFunction$2 = isFunction_1, isMasked = _isMasked, isObject$4 = isObject_1, toSource$1 = _toSource;
|
|
142
142
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
143
143
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
144
144
|
var funcProto = Function.prototype, objectProto$9 = Object.prototype;
|
|
@@ -146,10 +146,10 @@ var funcToString = funcProto.toString;
|
|
|
146
146
|
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
147
147
|
var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$8).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
148
148
|
function baseIsNative$1(value) {
|
|
149
|
-
if (!isObject$
|
|
149
|
+
if (!isObject$4(value) || isMasked(value)) {
|
|
150
150
|
return false;
|
|
151
151
|
}
|
|
152
|
-
var pattern = isFunction$
|
|
152
|
+
var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
|
|
153
153
|
return pattern.test(toSource$1(value));
|
|
154
154
|
}
|
|
155
155
|
var _baseIsNative = baseIsNative$1;
|
|
@@ -224,19 +224,19 @@ var isArguments$2 = baseIsArguments(function() {
|
|
|
224
224
|
return isObjectLike$3(value) && hasOwnProperty$7.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
225
225
|
};
|
|
226
226
|
var isArguments_1 = isArguments$2;
|
|
227
|
-
var isArray$
|
|
228
|
-
var isArray_1 = isArray$
|
|
227
|
+
var isArray$5 = Array.isArray;
|
|
228
|
+
var isArray_1 = isArray$5;
|
|
229
229
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
230
230
|
function isLength$2(value) {
|
|
231
231
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
232
232
|
}
|
|
233
233
|
var isLength_1 = isLength$2;
|
|
234
|
-
var isFunction = isFunction_1, isLength$1 = isLength_1;
|
|
234
|
+
var isFunction$1 = isFunction_1, isLength$1 = isLength_1;
|
|
235
235
|
function isArrayLike$3(value) {
|
|
236
|
-
return value != null && isLength$1(value.length) && !isFunction(value);
|
|
236
|
+
return value != null && isLength$1(value.length) && !isFunction$1(value);
|
|
237
237
|
}
|
|
238
238
|
var isArrayLike_1 = isArrayLike$3;
|
|
239
|
-
var isBuffer$
|
|
239
|
+
var isBuffer$4 = { exports: {} };
|
|
240
240
|
function stubFalse() {
|
|
241
241
|
return false;
|
|
242
242
|
}
|
|
@@ -250,7 +250,7 @@ var stubFalse_1 = stubFalse;
|
|
|
250
250
|
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
251
251
|
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
252
252
|
module.exports = isBuffer2;
|
|
253
|
-
})(isBuffer$
|
|
253
|
+
})(isBuffer$4, isBuffer$4.exports);
|
|
254
254
|
var baseGetTag = _baseGetTag, isLength = isLength_1, isObjectLike$2 = isObjectLike_1;
|
|
255
255
|
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$1 = "[object WeakMap]";
|
|
256
256
|
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
@@ -290,7 +290,7 @@ var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 =
|
|
|
290
290
|
var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
|
|
291
291
|
var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
|
|
292
292
|
var isTypedArray_1 = isTypedArray$2;
|
|
293
|
-
var baseKeys$1 = _baseKeys, getTag$3 = _getTag, isArguments$1 = isArguments_1, isArray$
|
|
293
|
+
var baseKeys$1 = _baseKeys, getTag$3 = _getTag, isArguments$1 = isArguments_1, isArray$4 = isArray_1, isArrayLike$2 = isArrayLike_1, isBuffer$3 = isBuffer$4.exports, isPrototype$2 = _isPrototype, isTypedArray$1 = isTypedArray_1;
|
|
294
294
|
var mapTag$3 = "[object Map]", setTag$3 = "[object Set]";
|
|
295
295
|
var objectProto$7 = Object.prototype;
|
|
296
296
|
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
@@ -298,7 +298,7 @@ function isEmpty(value) {
|
|
|
298
298
|
if (value == null) {
|
|
299
299
|
return true;
|
|
300
300
|
}
|
|
301
|
-
if (isArrayLike$2(value) && (isArray$
|
|
301
|
+
if (isArrayLike$2(value) && (isArray$4(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer$3(value) || isTypedArray$1(value) || isArguments$1(value))) {
|
|
302
302
|
return !value.length;
|
|
303
303
|
}
|
|
304
304
|
var tag = getTag$3(value);
|
|
@@ -1452,7 +1452,7 @@ var lodash = { exports: {} };
|
|
|
1452
1452
|
}
|
|
1453
1453
|
var runInContext = function runInContext2(context) {
|
|
1454
1454
|
context = context == null ? root2 : _.defaults(root2.Object(), context, _.pick(root2, contextProps));
|
|
1455
|
-
var Array2 = context.Array, Date2 = context.Date,
|
|
1455
|
+
var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
|
|
1456
1456
|
var arrayProto2 = Array2.prototype, funcProto2 = Function2.prototype, objectProto2 = Object2.prototype;
|
|
1457
1457
|
var coreJsData2 = context["__core-js_shared__"];
|
|
1458
1458
|
var funcToString2 = funcProto2.toString;
|
|
@@ -1477,10 +1477,10 @@ var lodash = { exports: {} };
|
|
|
1477
1477
|
}();
|
|
1478
1478
|
var ctxClearTimeout = context.clearTimeout !== root2.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root2.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root2.setTimeout && context.setTimeout;
|
|
1479
1479
|
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols2 = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto2.join, nativeKeys2 = overArg2(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto2.reverse;
|
|
1480
|
-
var DataView2 = getNative2(context, "DataView"), Map2 = getNative2(context, "Map"),
|
|
1480
|
+
var DataView2 = getNative2(context, "DataView"), Map2 = getNative2(context, "Map"), Promise2 = getNative2(context, "Promise"), Set2 = getNative2(context, "Set"), WeakMap2 = getNative2(context, "WeakMap"), nativeCreate2 = getNative2(Object2, "create");
|
|
1481
1481
|
var metaMap = WeakMap2 && new WeakMap2();
|
|
1482
1482
|
var realNames = {};
|
|
1483
|
-
var dataViewCtorString2 = toSource2(DataView2), mapCtorString2 = toSource2(Map2), promiseCtorString2 = toSource2(
|
|
1483
|
+
var dataViewCtorString2 = toSource2(DataView2), mapCtorString2 = toSource2(Map2), promiseCtorString2 = toSource2(Promise2), setCtorString2 = toSource2(Set2), weakMapCtorString2 = toSource2(WeakMap2);
|
|
1484
1484
|
var symbolProto2 = Symbol ? Symbol.prototype : undefined$1, symbolValueOf2 = symbolProto2 ? symbolProto2.valueOf : undefined$1, symbolToString = symbolProto2 ? symbolProto2.toString : undefined$1;
|
|
1485
1485
|
function lodash2(value) {
|
|
1486
1486
|
if (isObjectLike2(value) && !isArray2(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -1815,11 +1815,11 @@ var lodash = { exports: {} };
|
|
|
1815
1815
|
});
|
|
1816
1816
|
return accumulator;
|
|
1817
1817
|
}
|
|
1818
|
-
function baseAssign2(object,
|
|
1819
|
-
return object && copyObject2(
|
|
1818
|
+
function baseAssign2(object, source2) {
|
|
1819
|
+
return object && copyObject2(source2, keys2(source2), object);
|
|
1820
1820
|
}
|
|
1821
|
-
function baseAssignIn2(object,
|
|
1822
|
-
return object && copyObject2(
|
|
1821
|
+
function baseAssignIn2(object, source2) {
|
|
1822
|
+
return object && copyObject2(source2, keysIn2(source2), object);
|
|
1823
1823
|
}
|
|
1824
1824
|
function baseAssignValue2(object, key, value) {
|
|
1825
1825
|
if (key == "__proto__" && defineProperty2) {
|
|
@@ -1911,20 +1911,20 @@ var lodash = { exports: {} };
|
|
|
1911
1911
|
});
|
|
1912
1912
|
return result2;
|
|
1913
1913
|
}
|
|
1914
|
-
function baseConforms(
|
|
1915
|
-
var props = keys2(
|
|
1914
|
+
function baseConforms(source2) {
|
|
1915
|
+
var props = keys2(source2);
|
|
1916
1916
|
return function(object) {
|
|
1917
|
-
return baseConformsTo(object,
|
|
1917
|
+
return baseConformsTo(object, source2, props);
|
|
1918
1918
|
};
|
|
1919
1919
|
}
|
|
1920
|
-
function baseConformsTo(object,
|
|
1920
|
+
function baseConformsTo(object, source2, props) {
|
|
1921
1921
|
var length = props.length;
|
|
1922
1922
|
if (object == null) {
|
|
1923
1923
|
return !length;
|
|
1924
1924
|
}
|
|
1925
1925
|
object = Object2(object);
|
|
1926
1926
|
while (length--) {
|
|
1927
|
-
var key = props[length], predicate =
|
|
1927
|
+
var key = props[length], predicate = source2[key], value = object[key];
|
|
1928
1928
|
if (value === undefined$1 && !(key in object) || !predicate(value)) {
|
|
1929
1929
|
return false;
|
|
1930
1930
|
}
|
|
@@ -1933,9 +1933,9 @@ var lodash = { exports: {} };
|
|
|
1933
1933
|
}
|
|
1934
1934
|
function baseDelay(func, wait, args) {
|
|
1935
1935
|
if (typeof func != "function") {
|
|
1936
|
-
throw new
|
|
1936
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1937
1937
|
}
|
|
1938
|
-
return
|
|
1938
|
+
return setTimeout2(function() {
|
|
1939
1939
|
func.apply(undefined$1, args);
|
|
1940
1940
|
}, wait);
|
|
1941
1941
|
}
|
|
@@ -2174,7 +2174,7 @@ var lodash = { exports: {} };
|
|
|
2174
2174
|
function baseIsMap2(value) {
|
|
2175
2175
|
return isObjectLike2(value) && getTag2(value) == mapTag2;
|
|
2176
2176
|
}
|
|
2177
|
-
function baseIsMatch(object,
|
|
2177
|
+
function baseIsMatch(object, source2, matchData, customizer) {
|
|
2178
2178
|
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
2179
2179
|
if (object == null) {
|
|
2180
2180
|
return !length;
|
|
@@ -2196,7 +2196,7 @@ var lodash = { exports: {} };
|
|
|
2196
2196
|
} else {
|
|
2197
2197
|
var stack = new Stack2();
|
|
2198
2198
|
if (customizer) {
|
|
2199
|
-
var result2 = customizer(objValue, srcValue, key, object,
|
|
2199
|
+
var result2 = customizer(objValue, srcValue, key, object, source2, stack);
|
|
2200
2200
|
}
|
|
2201
2201
|
if (!(result2 === undefined$1 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) {
|
|
2202
2202
|
return false;
|
|
@@ -2267,13 +2267,13 @@ var lodash = { exports: {} };
|
|
|
2267
2267
|
});
|
|
2268
2268
|
return result2;
|
|
2269
2269
|
}
|
|
2270
|
-
function baseMatches(
|
|
2271
|
-
var matchData = getMatchData(
|
|
2270
|
+
function baseMatches(source2) {
|
|
2271
|
+
var matchData = getMatchData(source2);
|
|
2272
2272
|
if (matchData.length == 1 && matchData[0][2]) {
|
|
2273
2273
|
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
2274
2274
|
}
|
|
2275
2275
|
return function(object) {
|
|
2276
|
-
return object ===
|
|
2276
|
+
return object === source2 || baseIsMatch(object, source2, matchData);
|
|
2277
2277
|
};
|
|
2278
2278
|
}
|
|
2279
2279
|
function baseMatchesProperty(path, srcValue) {
|
|
@@ -2285,16 +2285,16 @@ var lodash = { exports: {} };
|
|
|
2285
2285
|
return objValue === undefined$1 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
2286
2286
|
};
|
|
2287
2287
|
}
|
|
2288
|
-
function baseMerge(object,
|
|
2289
|
-
if (object ===
|
|
2288
|
+
function baseMerge(object, source2, srcIndex, customizer, stack) {
|
|
2289
|
+
if (object === source2) {
|
|
2290
2290
|
return;
|
|
2291
2291
|
}
|
|
2292
|
-
baseFor(
|
|
2292
|
+
baseFor(source2, function(srcValue, key) {
|
|
2293
2293
|
stack || (stack = new Stack2());
|
|
2294
2294
|
if (isObject2(srcValue)) {
|
|
2295
|
-
baseMergeDeep(object,
|
|
2295
|
+
baseMergeDeep(object, source2, key, srcIndex, baseMerge, customizer, stack);
|
|
2296
2296
|
} else {
|
|
2297
|
-
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object,
|
|
2297
|
+
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source2, stack) : undefined$1;
|
|
2298
2298
|
if (newValue === undefined$1) {
|
|
2299
2299
|
newValue = srcValue;
|
|
2300
2300
|
}
|
|
@@ -2302,13 +2302,13 @@ var lodash = { exports: {} };
|
|
|
2302
2302
|
}
|
|
2303
2303
|
}, keysIn2);
|
|
2304
2304
|
}
|
|
2305
|
-
function baseMergeDeep(object,
|
|
2306
|
-
var objValue = safeGet(object, key), srcValue = safeGet(
|
|
2305
|
+
function baseMergeDeep(object, source2, key, srcIndex, mergeFunc, customizer, stack) {
|
|
2306
|
+
var objValue = safeGet(object, key), srcValue = safeGet(source2, key), stacked = stack.get(srcValue);
|
|
2307
2307
|
if (stacked) {
|
|
2308
2308
|
assignMergeValue(object, key, stacked);
|
|
2309
2309
|
return;
|
|
2310
2310
|
}
|
|
2311
|
-
var newValue = customizer ? customizer(objValue, srcValue, key + "", object,
|
|
2311
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source2, stack) : undefined$1;
|
|
2312
2312
|
var isCommon = newValue === undefined$1;
|
|
2313
2313
|
if (isCommon) {
|
|
2314
2314
|
var isArr = isArray2(srcValue), isBuff = !isArr && isBuffer2(srcValue), isTyped = !isArr && !isBuff && isTypedArray2(srcValue);
|
|
@@ -2327,7 +2327,7 @@ var lodash = { exports: {} };
|
|
|
2327
2327
|
} else {
|
|
2328
2328
|
newValue = [];
|
|
2329
2329
|
}
|
|
2330
|
-
} else if (
|
|
2330
|
+
} else if (isPlainObject2(srcValue) || isArguments2(srcValue)) {
|
|
2331
2331
|
newValue = objValue;
|
|
2332
2332
|
if (isArguments2(objValue)) {
|
|
2333
2333
|
newValue = toPlainObject(objValue);
|
|
@@ -2707,7 +2707,7 @@ var lodash = { exports: {} };
|
|
|
2707
2707
|
if (isArray2(value)) {
|
|
2708
2708
|
return value;
|
|
2709
2709
|
}
|
|
2710
|
-
return isKey(value, object) ? [value] : stringToPath(
|
|
2710
|
+
return isKey(value, object) ? [value] : stringToPath(toString3(value));
|
|
2711
2711
|
}
|
|
2712
2712
|
var castRest = baseRest;
|
|
2713
2713
|
function castSlice(array, start, end) {
|
|
@@ -2805,23 +2805,23 @@ var lodash = { exports: {} };
|
|
|
2805
2805
|
}
|
|
2806
2806
|
return result2;
|
|
2807
2807
|
}
|
|
2808
|
-
function copyArray2(
|
|
2809
|
-
var index = -1, length =
|
|
2808
|
+
function copyArray2(source2, array) {
|
|
2809
|
+
var index = -1, length = source2.length;
|
|
2810
2810
|
array || (array = Array2(length));
|
|
2811
2811
|
while (++index < length) {
|
|
2812
|
-
array[index] =
|
|
2812
|
+
array[index] = source2[index];
|
|
2813
2813
|
}
|
|
2814
2814
|
return array;
|
|
2815
2815
|
}
|
|
2816
|
-
function copyObject2(
|
|
2816
|
+
function copyObject2(source2, props, object, customizer) {
|
|
2817
2817
|
var isNew = !object;
|
|
2818
2818
|
object || (object = {});
|
|
2819
2819
|
var index = -1, length = props.length;
|
|
2820
2820
|
while (++index < length) {
|
|
2821
2821
|
var key = props[index];
|
|
2822
|
-
var newValue = customizer ? customizer(object[key],
|
|
2822
|
+
var newValue = customizer ? customizer(object[key], source2[key], key, object, source2) : undefined$1;
|
|
2823
2823
|
if (newValue === undefined$1) {
|
|
2824
|
-
newValue =
|
|
2824
|
+
newValue = source2[key];
|
|
2825
2825
|
}
|
|
2826
2826
|
if (isNew) {
|
|
2827
2827
|
baseAssignValue2(object, key, newValue);
|
|
@@ -2831,11 +2831,11 @@ var lodash = { exports: {} };
|
|
|
2831
2831
|
}
|
|
2832
2832
|
return object;
|
|
2833
2833
|
}
|
|
2834
|
-
function copySymbols2(
|
|
2835
|
-
return copyObject2(
|
|
2834
|
+
function copySymbols2(source2, object) {
|
|
2835
|
+
return copyObject2(source2, getSymbols2(source2), object);
|
|
2836
2836
|
}
|
|
2837
|
-
function copySymbolsIn2(
|
|
2838
|
-
return copyObject2(
|
|
2837
|
+
function copySymbolsIn2(source2, object) {
|
|
2838
|
+
return copyObject2(source2, getSymbolsIn2(source2), object);
|
|
2839
2839
|
}
|
|
2840
2840
|
function createAggregator(setter, initializer) {
|
|
2841
2841
|
return function(collection, iteratee2) {
|
|
@@ -2853,9 +2853,9 @@ var lodash = { exports: {} };
|
|
|
2853
2853
|
}
|
|
2854
2854
|
object = Object2(object);
|
|
2855
2855
|
while (++index < length) {
|
|
2856
|
-
var
|
|
2857
|
-
if (
|
|
2858
|
-
assigner(object,
|
|
2856
|
+
var source2 = sources[index];
|
|
2857
|
+
if (source2) {
|
|
2858
|
+
assigner(object, source2, index, customizer);
|
|
2859
2859
|
}
|
|
2860
2860
|
}
|
|
2861
2861
|
return object;
|
|
@@ -2900,7 +2900,7 @@ var lodash = { exports: {} };
|
|
|
2900
2900
|
}
|
|
2901
2901
|
function createCaseFirst(methodName) {
|
|
2902
2902
|
return function(string) {
|
|
2903
|
-
string =
|
|
2903
|
+
string = toString3(string);
|
|
2904
2904
|
var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined$1;
|
|
2905
2905
|
var chr = strSymbols ? strSymbols[0] : string.charAt(0);
|
|
2906
2906
|
var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1);
|
|
@@ -2977,7 +2977,7 @@ var lodash = { exports: {} };
|
|
|
2977
2977
|
while (index--) {
|
|
2978
2978
|
var func = funcs[index];
|
|
2979
2979
|
if (typeof func != "function") {
|
|
2980
|
-
throw new
|
|
2980
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
2981
2981
|
}
|
|
2982
2982
|
if (prereq && !wrapper && getFuncName(func) == "wrapper") {
|
|
2983
2983
|
var wrapper = new LodashWrapper([], true);
|
|
@@ -3165,8 +3165,8 @@ var lodash = { exports: {} };
|
|
|
3165
3165
|
number = toNumber(number);
|
|
3166
3166
|
precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
|
|
3167
3167
|
if (precision && nativeIsFinite(number)) {
|
|
3168
|
-
var pair = (
|
|
3169
|
-
pair = (
|
|
3168
|
+
var pair = (toString3(number) + "e").split("e"), value = func(pair[0] + "e" + (+pair[1] + precision));
|
|
3169
|
+
pair = (toString3(value) + "e").split("e");
|
|
3170
3170
|
return +(pair[0] + "e" + (+pair[1] - precision));
|
|
3171
3171
|
}
|
|
3172
3172
|
return func(number);
|
|
@@ -3190,7 +3190,7 @@ var lodash = { exports: {} };
|
|
|
3190
3190
|
function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary2, arity) {
|
|
3191
3191
|
var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
|
|
3192
3192
|
if (!isBindKey && typeof func != "function") {
|
|
3193
|
-
throw new
|
|
3193
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
3194
3194
|
}
|
|
3195
3195
|
var length = partials ? partials.length : 0;
|
|
3196
3196
|
if (!length) {
|
|
@@ -3247,7 +3247,7 @@ var lodash = { exports: {} };
|
|
|
3247
3247
|
}
|
|
3248
3248
|
return objValue;
|
|
3249
3249
|
}
|
|
3250
|
-
function customDefaultsMerge(objValue, srcValue, key, object,
|
|
3250
|
+
function customDefaultsMerge(objValue, srcValue, key, object, source2, stack) {
|
|
3251
3251
|
if (isObject2(objValue) && isObject2(srcValue)) {
|
|
3252
3252
|
stack.set(srcValue, objValue);
|
|
3253
3253
|
baseMerge(objValue, srcValue, undefined$1, customDefaultsMerge, stack);
|
|
@@ -3256,7 +3256,7 @@ var lodash = { exports: {} };
|
|
|
3256
3256
|
return objValue;
|
|
3257
3257
|
}
|
|
3258
3258
|
function customOmitClone(value) {
|
|
3259
|
-
return
|
|
3259
|
+
return isPlainObject2(value) ? undefined$1 : value;
|
|
3260
3260
|
}
|
|
3261
3261
|
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
3262
3262
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
|
@@ -3472,7 +3472,7 @@ var lodash = { exports: {} };
|
|
|
3472
3472
|
return result2;
|
|
3473
3473
|
};
|
|
3474
3474
|
var getTag2 = baseGetTag2;
|
|
3475
|
-
if (DataView2 && getTag2(new DataView2(new ArrayBuffer(1))) != dataViewTag2 || Map2 && getTag2(new Map2()) != mapTag2 ||
|
|
3475
|
+
if (DataView2 && getTag2(new DataView2(new ArrayBuffer(1))) != dataViewTag2 || Map2 && getTag2(new Map2()) != mapTag2 || Promise2 && getTag2(Promise2.resolve()) != promiseTag2 || Set2 && getTag2(new Set2()) != setTag2 || WeakMap2 && getTag2(new WeakMap2()) != weakMapTag2) {
|
|
3476
3476
|
getTag2 = function(value) {
|
|
3477
3477
|
var result2 = baseGetTag2(value), Ctor = result2 == objectTag2 ? value.constructor : undefined$1, ctorString = Ctor ? toSource2(Ctor) : "";
|
|
3478
3478
|
if (ctorString) {
|
|
@@ -3513,8 +3513,8 @@ var lodash = { exports: {} };
|
|
|
3513
3513
|
}
|
|
3514
3514
|
return { "start": start, "end": end };
|
|
3515
3515
|
}
|
|
3516
|
-
function getWrapDetails(
|
|
3517
|
-
var match =
|
|
3516
|
+
function getWrapDetails(source2) {
|
|
3517
|
+
var match = source2.match(reWrapDetails);
|
|
3518
3518
|
return match ? match[1].split(reSplitDetails) : [];
|
|
3519
3519
|
}
|
|
3520
3520
|
function hasPath(object, path, hasFunc) {
|
|
@@ -3577,15 +3577,15 @@ var lodash = { exports: {} };
|
|
|
3577
3577
|
return cloneSymbol2(object);
|
|
3578
3578
|
}
|
|
3579
3579
|
}
|
|
3580
|
-
function insertWrapDetails(
|
|
3580
|
+
function insertWrapDetails(source2, details) {
|
|
3581
3581
|
var length = details.length;
|
|
3582
3582
|
if (!length) {
|
|
3583
|
-
return
|
|
3583
|
+
return source2;
|
|
3584
3584
|
}
|
|
3585
3585
|
var lastIndex = length - 1;
|
|
3586
3586
|
details[lastIndex] = (length > 1 ? "& " : "") + details[lastIndex];
|
|
3587
3587
|
details = details.join(length > 2 ? ", " : " ");
|
|
3588
|
-
return
|
|
3588
|
+
return source2.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n");
|
|
3589
3589
|
}
|
|
3590
3590
|
function isFlattenable(value) {
|
|
3591
3591
|
return isArray2(value) || isArguments2(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
@@ -3659,39 +3659,39 @@ var lodash = { exports: {} };
|
|
|
3659
3659
|
var cache = result2.cache;
|
|
3660
3660
|
return result2;
|
|
3661
3661
|
}
|
|
3662
|
-
function mergeData(data,
|
|
3663
|
-
var bitmask = data[1], srcBitmask =
|
|
3664
|
-
var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <=
|
|
3662
|
+
function mergeData(data, source2) {
|
|
3663
|
+
var bitmask = data[1], srcBitmask = source2[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
|
|
3664
|
+
var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source2[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source2[7].length <= source2[8] && bitmask == WRAP_CURRY_FLAG;
|
|
3665
3665
|
if (!(isCommon || isCombo)) {
|
|
3666
3666
|
return data;
|
|
3667
3667
|
}
|
|
3668
3668
|
if (srcBitmask & WRAP_BIND_FLAG) {
|
|
3669
|
-
data[2] =
|
|
3669
|
+
data[2] = source2[2];
|
|
3670
3670
|
newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
|
|
3671
3671
|
}
|
|
3672
|
-
var value =
|
|
3672
|
+
var value = source2[3];
|
|
3673
3673
|
if (value) {
|
|
3674
3674
|
var partials = data[3];
|
|
3675
|
-
data[3] = partials ? composeArgs(partials, value,
|
|
3676
|
-
data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) :
|
|
3675
|
+
data[3] = partials ? composeArgs(partials, value, source2[4]) : value;
|
|
3676
|
+
data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source2[4];
|
|
3677
3677
|
}
|
|
3678
|
-
value =
|
|
3678
|
+
value = source2[5];
|
|
3679
3679
|
if (value) {
|
|
3680
3680
|
partials = data[5];
|
|
3681
|
-
data[5] = partials ? composeArgsRight(partials, value,
|
|
3682
|
-
data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) :
|
|
3681
|
+
data[5] = partials ? composeArgsRight(partials, value, source2[6]) : value;
|
|
3682
|
+
data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source2[6];
|
|
3683
3683
|
}
|
|
3684
|
-
value =
|
|
3684
|
+
value = source2[7];
|
|
3685
3685
|
if (value) {
|
|
3686
3686
|
data[7] = value;
|
|
3687
3687
|
}
|
|
3688
3688
|
if (srcBitmask & WRAP_ARY_FLAG) {
|
|
3689
|
-
data[8] = data[8] == null ?
|
|
3689
|
+
data[8] = data[8] == null ? source2[8] : nativeMin(data[8], source2[8]);
|
|
3690
3690
|
}
|
|
3691
3691
|
if (data[9] == null) {
|
|
3692
|
-
data[9] =
|
|
3692
|
+
data[9] = source2[9];
|
|
3693
3693
|
}
|
|
3694
|
-
data[0] =
|
|
3694
|
+
data[0] = source2[0];
|
|
3695
3695
|
data[1] = newBitmask;
|
|
3696
3696
|
return data;
|
|
3697
3697
|
}
|
|
@@ -3744,13 +3744,13 @@ var lodash = { exports: {} };
|
|
|
3744
3744
|
return object[key];
|
|
3745
3745
|
}
|
|
3746
3746
|
var setData = shortOut(baseSetData);
|
|
3747
|
-
var
|
|
3747
|
+
var setTimeout2 = ctxSetTimeout || function(func, wait) {
|
|
3748
3748
|
return root2.setTimeout(func, wait);
|
|
3749
3749
|
};
|
|
3750
3750
|
var setToString = shortOut(baseSetToString);
|
|
3751
3751
|
function setWrapToString(wrapper, reference, bitmask) {
|
|
3752
|
-
var
|
|
3753
|
-
return setToString(wrapper, insertWrapDetails(
|
|
3752
|
+
var source2 = reference + "";
|
|
3753
|
+
return setToString(wrapper, insertWrapDetails(source2, updateWrapDetails(getWrapDetails(source2), bitmask)));
|
|
3754
3754
|
}
|
|
3755
3755
|
function shortOut(func) {
|
|
3756
3756
|
var count = 0, lastCalled = 0;
|
|
@@ -4335,7 +4335,7 @@ var lodash = { exports: {} };
|
|
|
4335
4335
|
depth = depth === undefined$1 ? 1 : toInteger(depth);
|
|
4336
4336
|
return baseFlatten(map(collection, iteratee2), depth);
|
|
4337
4337
|
}
|
|
4338
|
-
function
|
|
4338
|
+
function forEach3(collection, iteratee2) {
|
|
4339
4339
|
var func = isArray2(collection) ? arrayEach2 : baseEach;
|
|
4340
4340
|
return func(collection, getIteratee(iteratee2, 3));
|
|
4341
4341
|
}
|
|
@@ -4357,7 +4357,7 @@ var lodash = { exports: {} };
|
|
|
4357
4357
|
if (fromIndex < 0) {
|
|
4358
4358
|
fromIndex = nativeMax(length + fromIndex, 0);
|
|
4359
4359
|
}
|
|
4360
|
-
return
|
|
4360
|
+
return isString2(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
4361
4361
|
}
|
|
4362
4362
|
var invokeMap = baseRest(function(collection, path, args) {
|
|
4363
4363
|
var index = -1, isFunc = typeof path == "function", result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
|
|
@@ -4425,7 +4425,7 @@ var lodash = { exports: {} };
|
|
|
4425
4425
|
return 0;
|
|
4426
4426
|
}
|
|
4427
4427
|
if (isArrayLike2(collection)) {
|
|
4428
|
-
return
|
|
4428
|
+
return isString2(collection) ? stringSize(collection) : collection.length;
|
|
4429
4429
|
}
|
|
4430
4430
|
var tag = getTag2(collection);
|
|
4431
4431
|
if (tag == mapTag2 || tag == setTag2) {
|
|
@@ -4457,7 +4457,7 @@ var lodash = { exports: {} };
|
|
|
4457
4457
|
};
|
|
4458
4458
|
function after(n, func) {
|
|
4459
4459
|
if (typeof func != "function") {
|
|
4460
|
-
throw new
|
|
4460
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4461
4461
|
}
|
|
4462
4462
|
n = toInteger(n);
|
|
4463
4463
|
return function() {
|
|
@@ -4474,7 +4474,7 @@ var lodash = { exports: {} };
|
|
|
4474
4474
|
function before(n, func) {
|
|
4475
4475
|
var result2;
|
|
4476
4476
|
if (typeof func != "function") {
|
|
4477
|
-
throw new
|
|
4477
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4478
4478
|
}
|
|
4479
4479
|
n = toInteger(n);
|
|
4480
4480
|
return function() {
|
|
@@ -4487,10 +4487,10 @@ var lodash = { exports: {} };
|
|
|
4487
4487
|
return result2;
|
|
4488
4488
|
};
|
|
4489
4489
|
}
|
|
4490
|
-
var
|
|
4490
|
+
var bind3 = baseRest(function(func, thisArg, partials) {
|
|
4491
4491
|
var bitmask = WRAP_BIND_FLAG;
|
|
4492
4492
|
if (partials.length) {
|
|
4493
|
-
var holders = replaceHolders(partials, getHolder(
|
|
4493
|
+
var holders = replaceHolders(partials, getHolder(bind3));
|
|
4494
4494
|
bitmask |= WRAP_PARTIAL_FLAG;
|
|
4495
4495
|
}
|
|
4496
4496
|
return createWrap(func, bitmask, thisArg, partials, holders);
|
|
@@ -4518,7 +4518,7 @@ var lodash = { exports: {} };
|
|
|
4518
4518
|
function debounce(func, wait, options) {
|
|
4519
4519
|
var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
4520
4520
|
if (typeof func != "function") {
|
|
4521
|
-
throw new
|
|
4521
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4522
4522
|
}
|
|
4523
4523
|
wait = toNumber(wait) || 0;
|
|
4524
4524
|
if (isObject2(options)) {
|
|
@@ -4536,7 +4536,7 @@ var lodash = { exports: {} };
|
|
|
4536
4536
|
}
|
|
4537
4537
|
function leadingEdge(time) {
|
|
4538
4538
|
lastInvokeTime = time;
|
|
4539
|
-
timerId =
|
|
4539
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4540
4540
|
return leading ? invokeFunc(time) : result2;
|
|
4541
4541
|
}
|
|
4542
4542
|
function remainingWait(time) {
|
|
@@ -4552,7 +4552,7 @@ var lodash = { exports: {} };
|
|
|
4552
4552
|
if (shouldInvoke(time)) {
|
|
4553
4553
|
return trailingEdge(time);
|
|
4554
4554
|
}
|
|
4555
|
-
timerId =
|
|
4555
|
+
timerId = setTimeout2(timerExpired, remainingWait(time));
|
|
4556
4556
|
}
|
|
4557
4557
|
function trailingEdge(time) {
|
|
4558
4558
|
timerId = undefined$1;
|
|
@@ -4583,12 +4583,12 @@ var lodash = { exports: {} };
|
|
|
4583
4583
|
}
|
|
4584
4584
|
if (maxing) {
|
|
4585
4585
|
clearTimeout(timerId);
|
|
4586
|
-
timerId =
|
|
4586
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4587
4587
|
return invokeFunc(lastCallTime);
|
|
4588
4588
|
}
|
|
4589
4589
|
}
|
|
4590
4590
|
if (timerId === undefined$1) {
|
|
4591
|
-
timerId =
|
|
4591
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4592
4592
|
}
|
|
4593
4593
|
return result2;
|
|
4594
4594
|
}
|
|
@@ -4607,7 +4607,7 @@ var lodash = { exports: {} };
|
|
|
4607
4607
|
}
|
|
4608
4608
|
function memoize(func, resolver) {
|
|
4609
4609
|
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
4610
|
-
throw new
|
|
4610
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4611
4611
|
}
|
|
4612
4612
|
var memoized = function() {
|
|
4613
4613
|
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
@@ -4624,7 +4624,7 @@ var lodash = { exports: {} };
|
|
|
4624
4624
|
memoize.Cache = MapCache2;
|
|
4625
4625
|
function negate(predicate) {
|
|
4626
4626
|
if (typeof predicate != "function") {
|
|
4627
|
-
throw new
|
|
4627
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4628
4628
|
}
|
|
4629
4629
|
return function() {
|
|
4630
4630
|
var args = arguments;
|
|
@@ -4668,14 +4668,14 @@ var lodash = { exports: {} };
|
|
|
4668
4668
|
});
|
|
4669
4669
|
function rest(func, start) {
|
|
4670
4670
|
if (typeof func != "function") {
|
|
4671
|
-
throw new
|
|
4671
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4672
4672
|
}
|
|
4673
4673
|
start = start === undefined$1 ? start : toInteger(start);
|
|
4674
4674
|
return baseRest(func, start);
|
|
4675
4675
|
}
|
|
4676
|
-
function
|
|
4676
|
+
function spread3(func, start) {
|
|
4677
4677
|
if (typeof func != "function") {
|
|
4678
|
-
throw new
|
|
4678
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4679
4679
|
}
|
|
4680
4680
|
start = start == null ? 0 : nativeMax(toInteger(start), 0);
|
|
4681
4681
|
return baseRest(function(args) {
|
|
@@ -4689,7 +4689,7 @@ var lodash = { exports: {} };
|
|
|
4689
4689
|
function throttle(func, wait, options) {
|
|
4690
4690
|
var leading = true, trailing = true;
|
|
4691
4691
|
if (typeof func != "function") {
|
|
4692
|
-
throw new
|
|
4692
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4693
4693
|
}
|
|
4694
4694
|
if (isObject2(options)) {
|
|
4695
4695
|
leading = "leading" in options ? !!options.leading : leading;
|
|
@@ -4728,8 +4728,8 @@ var lodash = { exports: {} };
|
|
|
4728
4728
|
customizer = typeof customizer == "function" ? customizer : undefined$1;
|
|
4729
4729
|
return baseClone2(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG2, customizer);
|
|
4730
4730
|
}
|
|
4731
|
-
function conformsTo(object,
|
|
4732
|
-
return
|
|
4731
|
+
function conformsTo(object, source2) {
|
|
4732
|
+
return source2 == null || baseConformsTo(object, source2, keys2(source2));
|
|
4733
4733
|
}
|
|
4734
4734
|
function eq2(value, other) {
|
|
4735
4735
|
return value === other || value !== value && other !== other;
|
|
@@ -4744,7 +4744,7 @@ var lodash = { exports: {} };
|
|
|
4744
4744
|
return isObjectLike2(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable2.call(value, "callee");
|
|
4745
4745
|
};
|
|
4746
4746
|
var isArray2 = Array2.isArray;
|
|
4747
|
-
var
|
|
4747
|
+
var isArrayBuffer2 = nodeIsArrayBuffer ? baseUnary2(nodeIsArrayBuffer) : baseIsArrayBuffer;
|
|
4748
4748
|
function isArrayLike2(value) {
|
|
4749
4749
|
return value != null && isLength2(value.length) && !isFunction2(value);
|
|
4750
4750
|
}
|
|
@@ -4755,9 +4755,9 @@ var lodash = { exports: {} };
|
|
|
4755
4755
|
return value === true || value === false || isObjectLike2(value) && baseGetTag2(value) == boolTag2;
|
|
4756
4756
|
}
|
|
4757
4757
|
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
4758
|
-
var
|
|
4758
|
+
var isDate2 = nodeIsDate ? baseUnary2(nodeIsDate) : baseIsDate;
|
|
4759
4759
|
function isElement(value) {
|
|
4760
|
-
return isObjectLike2(value) && value.nodeType === 1 && !
|
|
4760
|
+
return isObjectLike2(value) && value.nodeType === 1 && !isPlainObject2(value);
|
|
4761
4761
|
}
|
|
4762
4762
|
function isEmpty2(value) {
|
|
4763
4763
|
if (value == null) {
|
|
@@ -4793,7 +4793,7 @@ var lodash = { exports: {} };
|
|
|
4793
4793
|
return false;
|
|
4794
4794
|
}
|
|
4795
4795
|
var tag = baseGetTag2(value);
|
|
4796
|
-
return tag == errorTag2 || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !
|
|
4796
|
+
return tag == errorTag2 || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject2(value);
|
|
4797
4797
|
}
|
|
4798
4798
|
function isFinite(value) {
|
|
4799
4799
|
return typeof value == "number" && nativeIsFinite(value);
|
|
@@ -4819,19 +4819,19 @@ var lodash = { exports: {} };
|
|
|
4819
4819
|
return value != null && typeof value == "object";
|
|
4820
4820
|
}
|
|
4821
4821
|
var isMap2 = nodeIsMap2 ? baseUnary2(nodeIsMap2) : baseIsMap2;
|
|
4822
|
-
function isMatch(object,
|
|
4823
|
-
return object ===
|
|
4822
|
+
function isMatch(object, source2) {
|
|
4823
|
+
return object === source2 || baseIsMatch(object, source2, getMatchData(source2));
|
|
4824
4824
|
}
|
|
4825
|
-
function isMatchWith(object,
|
|
4825
|
+
function isMatchWith(object, source2, customizer) {
|
|
4826
4826
|
customizer = typeof customizer == "function" ? customizer : undefined$1;
|
|
4827
|
-
return baseIsMatch(object,
|
|
4827
|
+
return baseIsMatch(object, source2, getMatchData(source2), customizer);
|
|
4828
4828
|
}
|
|
4829
4829
|
function isNaN(value) {
|
|
4830
|
-
return
|
|
4830
|
+
return isNumber2(value) && value != +value;
|
|
4831
4831
|
}
|
|
4832
4832
|
function isNative(value) {
|
|
4833
4833
|
if (isMaskable(value)) {
|
|
4834
|
-
throw new
|
|
4834
|
+
throw new Error2(CORE_ERROR_TEXT);
|
|
4835
4835
|
}
|
|
4836
4836
|
return baseIsNative2(value);
|
|
4837
4837
|
}
|
|
@@ -4841,10 +4841,10 @@ var lodash = { exports: {} };
|
|
|
4841
4841
|
function isNil(value) {
|
|
4842
4842
|
return value == null;
|
|
4843
4843
|
}
|
|
4844
|
-
function
|
|
4844
|
+
function isNumber2(value) {
|
|
4845
4845
|
return typeof value == "number" || isObjectLike2(value) && baseGetTag2(value) == numberTag2;
|
|
4846
4846
|
}
|
|
4847
|
-
function
|
|
4847
|
+
function isPlainObject2(value) {
|
|
4848
4848
|
if (!isObjectLike2(value) || baseGetTag2(value) != objectTag2) {
|
|
4849
4849
|
return false;
|
|
4850
4850
|
}
|
|
@@ -4860,14 +4860,14 @@ var lodash = { exports: {} };
|
|
|
4860
4860
|
return isInteger(value) && value >= -MAX_SAFE_INTEGER2 && value <= MAX_SAFE_INTEGER2;
|
|
4861
4861
|
}
|
|
4862
4862
|
var isSet2 = nodeIsSet2 ? baseUnary2(nodeIsSet2) : baseIsSet2;
|
|
4863
|
-
function
|
|
4863
|
+
function isString2(value) {
|
|
4864
4864
|
return typeof value == "string" || !isArray2(value) && isObjectLike2(value) && baseGetTag2(value) == stringTag2;
|
|
4865
4865
|
}
|
|
4866
4866
|
function isSymbol(value) {
|
|
4867
4867
|
return typeof value == "symbol" || isObjectLike2(value) && baseGetTag2(value) == symbolTag2;
|
|
4868
4868
|
}
|
|
4869
4869
|
var isTypedArray2 = nodeIsTypedArray2 ? baseUnary2(nodeIsTypedArray2) : baseIsTypedArray2;
|
|
4870
|
-
function
|
|
4870
|
+
function isUndefined2(value) {
|
|
4871
4871
|
return value === undefined$1;
|
|
4872
4872
|
}
|
|
4873
4873
|
function isWeakMap(value) {
|
|
@@ -4885,7 +4885,7 @@ var lodash = { exports: {} };
|
|
|
4885
4885
|
return [];
|
|
4886
4886
|
}
|
|
4887
4887
|
if (isArrayLike2(value)) {
|
|
4888
|
-
return
|
|
4888
|
+
return isString2(value) ? stringToArray(value) : copyArray2(value);
|
|
4889
4889
|
}
|
|
4890
4890
|
if (symIterator && value[symIterator]) {
|
|
4891
4891
|
return iteratorToArray(value[symIterator]());
|
|
@@ -4935,35 +4935,35 @@ var lodash = { exports: {} };
|
|
|
4935
4935
|
function toSafeInteger(value) {
|
|
4936
4936
|
return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER2, MAX_SAFE_INTEGER2) : value === 0 ? value : 0;
|
|
4937
4937
|
}
|
|
4938
|
-
function
|
|
4938
|
+
function toString3(value) {
|
|
4939
4939
|
return value == null ? "" : baseToString(value);
|
|
4940
4940
|
}
|
|
4941
|
-
var assign = createAssigner(function(object,
|
|
4942
|
-
if (isPrototype2(
|
|
4943
|
-
copyObject2(
|
|
4941
|
+
var assign = createAssigner(function(object, source2) {
|
|
4942
|
+
if (isPrototype2(source2) || isArrayLike2(source2)) {
|
|
4943
|
+
copyObject2(source2, keys2(source2), object);
|
|
4944
4944
|
return;
|
|
4945
4945
|
}
|
|
4946
|
-
for (var key in
|
|
4947
|
-
if (hasOwnProperty2.call(
|
|
4948
|
-
assignValue2(object, key,
|
|
4946
|
+
for (var key in source2) {
|
|
4947
|
+
if (hasOwnProperty2.call(source2, key)) {
|
|
4948
|
+
assignValue2(object, key, source2[key]);
|
|
4949
4949
|
}
|
|
4950
4950
|
}
|
|
4951
4951
|
});
|
|
4952
|
-
var assignIn = createAssigner(function(object,
|
|
4953
|
-
copyObject2(
|
|
4952
|
+
var assignIn = createAssigner(function(object, source2) {
|
|
4953
|
+
copyObject2(source2, keysIn2(source2), object);
|
|
4954
4954
|
});
|
|
4955
|
-
var assignInWith = createAssigner(function(object,
|
|
4956
|
-
copyObject2(
|
|
4955
|
+
var assignInWith = createAssigner(function(object, source2, srcIndex, customizer) {
|
|
4956
|
+
copyObject2(source2, keysIn2(source2), object, customizer);
|
|
4957
4957
|
});
|
|
4958
|
-
var assignWith = createAssigner(function(object,
|
|
4959
|
-
copyObject2(
|
|
4958
|
+
var assignWith = createAssigner(function(object, source2, srcIndex, customizer) {
|
|
4959
|
+
copyObject2(source2, keys2(source2), object, customizer);
|
|
4960
4960
|
});
|
|
4961
4961
|
var at = flatRest(baseAt);
|
|
4962
|
-
function
|
|
4962
|
+
function create2(prototype, properties) {
|
|
4963
4963
|
var result2 = baseCreate2(prototype);
|
|
4964
4964
|
return properties == null ? result2 : baseAssign2(result2, properties);
|
|
4965
4965
|
}
|
|
4966
|
-
var
|
|
4966
|
+
var defaults2 = baseRest(function(object, sources) {
|
|
4967
4967
|
object = Object2(object);
|
|
4968
4968
|
var index = -1;
|
|
4969
4969
|
var length = sources.length;
|
|
@@ -4972,15 +4972,15 @@ var lodash = { exports: {} };
|
|
|
4972
4972
|
length = 1;
|
|
4973
4973
|
}
|
|
4974
4974
|
while (++index < length) {
|
|
4975
|
-
var
|
|
4976
|
-
var props = keysIn2(
|
|
4975
|
+
var source2 = sources[index];
|
|
4976
|
+
var props = keysIn2(source2);
|
|
4977
4977
|
var propsIndex = -1;
|
|
4978
4978
|
var propsLength = props.length;
|
|
4979
4979
|
while (++propsIndex < propsLength) {
|
|
4980
4980
|
var key = props[propsIndex];
|
|
4981
4981
|
var value = object[key];
|
|
4982
4982
|
if (value === undefined$1 || eq2(value, objectProto2[key]) && !hasOwnProperty2.call(object, key)) {
|
|
4983
|
-
object[key] =
|
|
4983
|
+
object[key] = source2[key];
|
|
4984
4984
|
}
|
|
4985
4985
|
}
|
|
4986
4986
|
}
|
|
@@ -5063,11 +5063,11 @@ var lodash = { exports: {} };
|
|
|
5063
5063
|
});
|
|
5064
5064
|
return result2;
|
|
5065
5065
|
}
|
|
5066
|
-
var
|
|
5067
|
-
baseMerge(object,
|
|
5066
|
+
var merge2 = createAssigner(function(object, source2, srcIndex) {
|
|
5067
|
+
baseMerge(object, source2, srcIndex);
|
|
5068
5068
|
});
|
|
5069
|
-
var mergeWith = createAssigner(function(object,
|
|
5070
|
-
baseMerge(object,
|
|
5069
|
+
var mergeWith = createAssigner(function(object, source2, srcIndex, customizer) {
|
|
5070
|
+
baseMerge(object, source2, srcIndex, customizer);
|
|
5071
5071
|
});
|
|
5072
5072
|
var omit = flatRest(function(object, paths) {
|
|
5073
5073
|
var result2 = {};
|
|
@@ -5235,14 +5235,14 @@ var lodash = { exports: {} };
|
|
|
5235
5235
|
return result2 + (index ? capitalize(word) : word);
|
|
5236
5236
|
});
|
|
5237
5237
|
function capitalize(string) {
|
|
5238
|
-
return upperFirst(
|
|
5238
|
+
return upperFirst(toString3(string).toLowerCase());
|
|
5239
5239
|
}
|
|
5240
5240
|
function deburr(string) {
|
|
5241
|
-
string =
|
|
5241
|
+
string = toString3(string);
|
|
5242
5242
|
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, "");
|
|
5243
5243
|
}
|
|
5244
5244
|
function endsWith(string, target, position) {
|
|
5245
|
-
string =
|
|
5245
|
+
string = toString3(string);
|
|
5246
5246
|
target = baseToString(target);
|
|
5247
5247
|
var length = string.length;
|
|
5248
5248
|
position = position === undefined$1 ? length : baseClamp(toInteger(position), 0, length);
|
|
@@ -5251,11 +5251,11 @@ var lodash = { exports: {} };
|
|
|
5251
5251
|
return position >= 0 && string.slice(position, end) == target;
|
|
5252
5252
|
}
|
|
5253
5253
|
function escape(string) {
|
|
5254
|
-
string =
|
|
5254
|
+
string = toString3(string);
|
|
5255
5255
|
return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string;
|
|
5256
5256
|
}
|
|
5257
5257
|
function escapeRegExp(string) {
|
|
5258
|
-
string =
|
|
5258
|
+
string = toString3(string);
|
|
5259
5259
|
return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar2, "\\$&") : string;
|
|
5260
5260
|
}
|
|
5261
5261
|
var kebabCase = createCompounder(function(result2, word, index) {
|
|
@@ -5266,7 +5266,7 @@ var lodash = { exports: {} };
|
|
|
5266
5266
|
});
|
|
5267
5267
|
var lowerFirst = createCaseFirst("toLowerCase");
|
|
5268
5268
|
function pad(string, length, chars) {
|
|
5269
|
-
string =
|
|
5269
|
+
string = toString3(string);
|
|
5270
5270
|
length = toInteger(length);
|
|
5271
5271
|
var strLength = length ? stringSize(string) : 0;
|
|
5272
5272
|
if (!length || strLength >= length) {
|
|
@@ -5276,13 +5276,13 @@ var lodash = { exports: {} };
|
|
|
5276
5276
|
return createPadding(nativeFloor(mid), chars) + string + createPadding(nativeCeil(mid), chars);
|
|
5277
5277
|
}
|
|
5278
5278
|
function padEnd(string, length, chars) {
|
|
5279
|
-
string =
|
|
5279
|
+
string = toString3(string);
|
|
5280
5280
|
length = toInteger(length);
|
|
5281
5281
|
var strLength = length ? stringSize(string) : 0;
|
|
5282
5282
|
return length && strLength < length ? string + createPadding(length - strLength, chars) : string;
|
|
5283
5283
|
}
|
|
5284
5284
|
function padStart(string, length, chars) {
|
|
5285
|
-
string =
|
|
5285
|
+
string = toString3(string);
|
|
5286
5286
|
length = toInteger(length);
|
|
5287
5287
|
var strLength = length ? stringSize(string) : 0;
|
|
5288
5288
|
return length && strLength < length ? createPadding(length - strLength, chars) + string : string;
|
|
@@ -5293,7 +5293,7 @@ var lodash = { exports: {} };
|
|
|
5293
5293
|
} else if (radix) {
|
|
5294
5294
|
radix = +radix;
|
|
5295
5295
|
}
|
|
5296
|
-
return nativeParseInt(
|
|
5296
|
+
return nativeParseInt(toString3(string).replace(reTrimStart, ""), radix || 0);
|
|
5297
5297
|
}
|
|
5298
5298
|
function repeat(string, n, guard) {
|
|
5299
5299
|
if (guard ? isIterateeCall(string, n, guard) : n === undefined$1) {
|
|
@@ -5301,10 +5301,10 @@ var lodash = { exports: {} };
|
|
|
5301
5301
|
} else {
|
|
5302
5302
|
n = toInteger(n);
|
|
5303
5303
|
}
|
|
5304
|
-
return baseRepeat(
|
|
5304
|
+
return baseRepeat(toString3(string), n);
|
|
5305
5305
|
}
|
|
5306
5306
|
function replace() {
|
|
5307
|
-
var args = arguments, string =
|
|
5307
|
+
var args = arguments, string = toString3(args[0]);
|
|
5308
5308
|
return args.length < 3 ? string : string.replace(args[1], args[2]);
|
|
5309
5309
|
}
|
|
5310
5310
|
var snakeCase = createCompounder(function(result2, word, index) {
|
|
@@ -5318,7 +5318,7 @@ var lodash = { exports: {} };
|
|
|
5318
5318
|
if (!limit) {
|
|
5319
5319
|
return [];
|
|
5320
5320
|
}
|
|
5321
|
-
string =
|
|
5321
|
+
string = toString3(string);
|
|
5322
5322
|
if (string && (typeof separator == "string" || separator != null && !isRegExp(separator))) {
|
|
5323
5323
|
separator = baseToString(separator);
|
|
5324
5324
|
if (!separator && hasUnicode(string)) {
|
|
@@ -5331,7 +5331,7 @@ var lodash = { exports: {} };
|
|
|
5331
5331
|
return result2 + (index ? " " : "") + upperFirst(word);
|
|
5332
5332
|
});
|
|
5333
5333
|
function startsWith(string, target, position) {
|
|
5334
|
-
string =
|
|
5334
|
+
string = toString3(string);
|
|
5335
5335
|
position = position == null ? 0 : baseClamp(toInteger(position), 0, string.length);
|
|
5336
5336
|
target = baseToString(target);
|
|
5337
5337
|
return string.slice(position, position + target.length) == target;
|
|
@@ -5341,55 +5341,55 @@ var lodash = { exports: {} };
|
|
|
5341
5341
|
if (guard && isIterateeCall(string, options, guard)) {
|
|
5342
5342
|
options = undefined$1;
|
|
5343
5343
|
}
|
|
5344
|
-
string =
|
|
5344
|
+
string = toString3(string);
|
|
5345
5345
|
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
|
5346
5346
|
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys2(imports), importsValues = baseValues(imports, importsKeys);
|
|
5347
|
-
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch,
|
|
5347
|
+
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source2 = "__p += '";
|
|
5348
5348
|
var reDelimiters = RegExp2((options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", "g");
|
|
5349
5349
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty2.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
|
5350
5350
|
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
|
5351
5351
|
interpolateValue || (interpolateValue = esTemplateValue);
|
|
5352
|
-
|
|
5352
|
+
source2 += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
|
5353
5353
|
if (escapeValue) {
|
|
5354
5354
|
isEscaping = true;
|
|
5355
|
-
|
|
5355
|
+
source2 += "' +\n__e(" + escapeValue + ") +\n'";
|
|
5356
5356
|
}
|
|
5357
5357
|
if (evaluateValue) {
|
|
5358
5358
|
isEvaluating = true;
|
|
5359
|
-
|
|
5359
|
+
source2 += "';\n" + evaluateValue + ";\n__p += '";
|
|
5360
5360
|
}
|
|
5361
5361
|
if (interpolateValue) {
|
|
5362
|
-
|
|
5362
|
+
source2 += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
|
5363
5363
|
}
|
|
5364
5364
|
index = offset + match.length;
|
|
5365
5365
|
return match;
|
|
5366
5366
|
});
|
|
5367
|
-
|
|
5367
|
+
source2 += "';\n";
|
|
5368
5368
|
var variable = hasOwnProperty2.call(options, "variable") && options.variable;
|
|
5369
5369
|
if (!variable) {
|
|
5370
|
-
|
|
5370
|
+
source2 = "with (obj) {\n" + source2 + "\n}\n";
|
|
5371
5371
|
} else if (reForbiddenIdentifierChars.test(variable)) {
|
|
5372
|
-
throw new
|
|
5372
|
+
throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);
|
|
5373
5373
|
}
|
|
5374
|
-
|
|
5375
|
-
|
|
5374
|
+
source2 = (isEvaluating ? source2.replace(reEmptyStringLeading, "") : source2).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
|
|
5375
|
+
source2 = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source2 + "return __p\n}";
|
|
5376
5376
|
var result2 = attempt(function() {
|
|
5377
|
-
return Function2(importsKeys, sourceURL + "return " +
|
|
5377
|
+
return Function2(importsKeys, sourceURL + "return " + source2).apply(undefined$1, importsValues);
|
|
5378
5378
|
});
|
|
5379
|
-
result2.source =
|
|
5379
|
+
result2.source = source2;
|
|
5380
5380
|
if (isError(result2)) {
|
|
5381
5381
|
throw result2;
|
|
5382
5382
|
}
|
|
5383
5383
|
return result2;
|
|
5384
5384
|
}
|
|
5385
5385
|
function toLower(value) {
|
|
5386
|
-
return
|
|
5386
|
+
return toString3(value).toLowerCase();
|
|
5387
5387
|
}
|
|
5388
5388
|
function toUpper(value) {
|
|
5389
|
-
return
|
|
5389
|
+
return toString3(value).toUpperCase();
|
|
5390
5390
|
}
|
|
5391
|
-
function
|
|
5392
|
-
string =
|
|
5391
|
+
function trim2(string, chars, guard) {
|
|
5392
|
+
string = toString3(string);
|
|
5393
5393
|
if (string && (guard || chars === undefined$1)) {
|
|
5394
5394
|
return baseTrim(string);
|
|
5395
5395
|
}
|
|
@@ -5400,7 +5400,7 @@ var lodash = { exports: {} };
|
|
|
5400
5400
|
return castSlice(strSymbols, start, end).join("");
|
|
5401
5401
|
}
|
|
5402
5402
|
function trimEnd(string, chars, guard) {
|
|
5403
|
-
string =
|
|
5403
|
+
string = toString3(string);
|
|
5404
5404
|
if (string && (guard || chars === undefined$1)) {
|
|
5405
5405
|
return string.slice(0, trimmedEndIndex(string) + 1);
|
|
5406
5406
|
}
|
|
@@ -5411,7 +5411,7 @@ var lodash = { exports: {} };
|
|
|
5411
5411
|
return castSlice(strSymbols, 0, end).join("");
|
|
5412
5412
|
}
|
|
5413
5413
|
function trimStart(string, chars, guard) {
|
|
5414
|
-
string =
|
|
5414
|
+
string = toString3(string);
|
|
5415
5415
|
if (string && (guard || chars === undefined$1)) {
|
|
5416
5416
|
return string.replace(reTrimStart, "");
|
|
5417
5417
|
}
|
|
@@ -5428,7 +5428,7 @@ var lodash = { exports: {} };
|
|
|
5428
5428
|
length = "length" in options ? toInteger(options.length) : length;
|
|
5429
5429
|
omission = "omission" in options ? baseToString(options.omission) : omission;
|
|
5430
5430
|
}
|
|
5431
|
-
string =
|
|
5431
|
+
string = toString3(string);
|
|
5432
5432
|
var strLength = string.length;
|
|
5433
5433
|
if (hasUnicode(string)) {
|
|
5434
5434
|
var strSymbols = stringToArray(string);
|
|
@@ -5452,7 +5452,7 @@ var lodash = { exports: {} };
|
|
|
5452
5452
|
if (string.slice(end).search(separator)) {
|
|
5453
5453
|
var match, substring = result2;
|
|
5454
5454
|
if (!separator.global) {
|
|
5455
|
-
separator = RegExp2(separator.source,
|
|
5455
|
+
separator = RegExp2(separator.source, toString3(reFlags2.exec(separator)) + "g");
|
|
5456
5456
|
}
|
|
5457
5457
|
separator.lastIndex = 0;
|
|
5458
5458
|
while (match = separator.exec(substring)) {
|
|
@@ -5468,8 +5468,8 @@ var lodash = { exports: {} };
|
|
|
5468
5468
|
}
|
|
5469
5469
|
return result2 + omission;
|
|
5470
5470
|
}
|
|
5471
|
-
function
|
|
5472
|
-
string =
|
|
5471
|
+
function unescape2(string) {
|
|
5472
|
+
string = toString3(string);
|
|
5473
5473
|
return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
|
|
5474
5474
|
}
|
|
5475
5475
|
var upperCase = createCompounder(function(result2, word, index) {
|
|
@@ -5477,7 +5477,7 @@ var lodash = { exports: {} };
|
|
|
5477
5477
|
});
|
|
5478
5478
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
5479
5479
|
function words(string, pattern, guard) {
|
|
5480
|
-
string =
|
|
5480
|
+
string = toString3(string);
|
|
5481
5481
|
pattern = guard ? undefined$1 : pattern;
|
|
5482
5482
|
if (pattern === undefined$1) {
|
|
5483
5483
|
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
@@ -5488,13 +5488,13 @@ var lodash = { exports: {} };
|
|
|
5488
5488
|
try {
|
|
5489
5489
|
return apply(func, undefined$1, args);
|
|
5490
5490
|
} catch (e) {
|
|
5491
|
-
return isError(e) ? e : new
|
|
5491
|
+
return isError(e) ? e : new Error2(e);
|
|
5492
5492
|
}
|
|
5493
5493
|
});
|
|
5494
5494
|
var bindAll = flatRest(function(object, methodNames) {
|
|
5495
5495
|
arrayEach2(methodNames, function(key) {
|
|
5496
5496
|
key = toKey(key);
|
|
5497
|
-
baseAssignValue2(object, key,
|
|
5497
|
+
baseAssignValue2(object, key, bind3(object[key], object));
|
|
5498
5498
|
});
|
|
5499
5499
|
return object;
|
|
5500
5500
|
});
|
|
@@ -5502,7 +5502,7 @@ var lodash = { exports: {} };
|
|
|
5502
5502
|
var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee();
|
|
5503
5503
|
pairs = !length ? [] : arrayMap(pairs, function(pair) {
|
|
5504
5504
|
if (typeof pair[1] != "function") {
|
|
5505
|
-
throw new
|
|
5505
|
+
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
5506
5506
|
}
|
|
5507
5507
|
return [toIteratee(pair[0]), pair[1]];
|
|
5508
5508
|
});
|
|
@@ -5516,8 +5516,8 @@ var lodash = { exports: {} };
|
|
|
5516
5516
|
}
|
|
5517
5517
|
});
|
|
5518
5518
|
}
|
|
5519
|
-
function conforms(
|
|
5520
|
-
return baseConforms(baseClone2(
|
|
5519
|
+
function conforms(source2) {
|
|
5520
|
+
return baseConforms(baseClone2(source2, CLONE_DEEP_FLAG2));
|
|
5521
5521
|
}
|
|
5522
5522
|
function constant(value) {
|
|
5523
5523
|
return function() {
|
|
@@ -5535,8 +5535,8 @@ var lodash = { exports: {} };
|
|
|
5535
5535
|
function iteratee(func) {
|
|
5536
5536
|
return baseIteratee(typeof func == "function" ? func : baseClone2(func, CLONE_DEEP_FLAG2));
|
|
5537
5537
|
}
|
|
5538
|
-
function matches(
|
|
5539
|
-
return baseMatches(baseClone2(
|
|
5538
|
+
function matches(source2) {
|
|
5539
|
+
return baseMatches(baseClone2(source2, CLONE_DEEP_FLAG2));
|
|
5540
5540
|
}
|
|
5541
5541
|
function matchesProperty(path, srcValue) {
|
|
5542
5542
|
return baseMatchesProperty(path, baseClone2(srcValue, CLONE_DEEP_FLAG2));
|
|
@@ -5551,17 +5551,17 @@ var lodash = { exports: {} };
|
|
|
5551
5551
|
return baseInvoke(object, path, args);
|
|
5552
5552
|
};
|
|
5553
5553
|
});
|
|
5554
|
-
function mixin(object,
|
|
5555
|
-
var props = keys2(
|
|
5556
|
-
if (options == null && !(isObject2(
|
|
5557
|
-
options =
|
|
5558
|
-
|
|
5554
|
+
function mixin(object, source2, options) {
|
|
5555
|
+
var props = keys2(source2), methodNames = baseFunctions(source2, props);
|
|
5556
|
+
if (options == null && !(isObject2(source2) && (methodNames.length || !props.length))) {
|
|
5557
|
+
options = source2;
|
|
5558
|
+
source2 = object;
|
|
5559
5559
|
object = this;
|
|
5560
|
-
methodNames = baseFunctions(
|
|
5560
|
+
methodNames = baseFunctions(source2, keys2(source2));
|
|
5561
5561
|
}
|
|
5562
5562
|
var chain2 = !(isObject2(options) && "chain" in options) || !!options.chain, isFunc = isFunction2(object);
|
|
5563
5563
|
arrayEach2(methodNames, function(methodName) {
|
|
5564
|
-
var func =
|
|
5564
|
+
var func = source2[methodName];
|
|
5565
5565
|
object[methodName] = func;
|
|
5566
5566
|
if (isFunc) {
|
|
5567
5567
|
object.prototype[methodName] = function() {
|
|
@@ -5638,11 +5638,11 @@ var lodash = { exports: {} };
|
|
|
5638
5638
|
if (isArray2(value)) {
|
|
5639
5639
|
return arrayMap(value, toKey);
|
|
5640
5640
|
}
|
|
5641
|
-
return isSymbol(value) ? [value] : copyArray2(stringToPath(
|
|
5641
|
+
return isSymbol(value) ? [value] : copyArray2(stringToPath(toString3(value)));
|
|
5642
5642
|
}
|
|
5643
5643
|
function uniqueId(prefix) {
|
|
5644
5644
|
var id = ++idCounter;
|
|
5645
|
-
return
|
|
5645
|
+
return toString3(prefix) + id;
|
|
5646
5646
|
}
|
|
5647
5647
|
var add = createMathOperation(function(augend, addend) {
|
|
5648
5648
|
return augend + addend;
|
|
@@ -5691,7 +5691,7 @@ var lodash = { exports: {} };
|
|
|
5691
5691
|
lodash2.assignWith = assignWith;
|
|
5692
5692
|
lodash2.at = at;
|
|
5693
5693
|
lodash2.before = before;
|
|
5694
|
-
lodash2.bind =
|
|
5694
|
+
lodash2.bind = bind3;
|
|
5695
5695
|
lodash2.bindAll = bindAll;
|
|
5696
5696
|
lodash2.bindKey = bindKey;
|
|
5697
5697
|
lodash2.castArray = castArray;
|
|
@@ -5703,11 +5703,11 @@ var lodash = { exports: {} };
|
|
|
5703
5703
|
lodash2.conforms = conforms;
|
|
5704
5704
|
lodash2.constant = constant;
|
|
5705
5705
|
lodash2.countBy = countBy;
|
|
5706
|
-
lodash2.create =
|
|
5706
|
+
lodash2.create = create2;
|
|
5707
5707
|
lodash2.curry = curry;
|
|
5708
5708
|
lodash2.curryRight = curryRight;
|
|
5709
5709
|
lodash2.debounce = debounce;
|
|
5710
|
-
lodash2.defaults =
|
|
5710
|
+
lodash2.defaults = defaults2;
|
|
5711
5711
|
lodash2.defaultsDeep = defaultsDeep;
|
|
5712
5712
|
lodash2.defer = defer;
|
|
5713
5713
|
lodash2.delay = delay;
|
|
@@ -5750,7 +5750,7 @@ var lodash = { exports: {} };
|
|
|
5750
5750
|
lodash2.matches = matches;
|
|
5751
5751
|
lodash2.matchesProperty = matchesProperty;
|
|
5752
5752
|
lodash2.memoize = memoize;
|
|
5753
|
-
lodash2.merge =
|
|
5753
|
+
lodash2.merge = merge2;
|
|
5754
5754
|
lodash2.mergeWith = mergeWith;
|
|
5755
5755
|
lodash2.method = method;
|
|
5756
5756
|
lodash2.methodOf = methodOf;
|
|
@@ -5793,7 +5793,7 @@ var lodash = { exports: {} };
|
|
|
5793
5793
|
lodash2.sortedUniq = sortedUniq;
|
|
5794
5794
|
lodash2.sortedUniqBy = sortedUniqBy;
|
|
5795
5795
|
lodash2.split = split;
|
|
5796
|
-
lodash2.spread =
|
|
5796
|
+
lodash2.spread = spread3;
|
|
5797
5797
|
lodash2.tail = tail;
|
|
5798
5798
|
lodash2.take = take;
|
|
5799
5799
|
lodash2.takeRight = takeRight;
|
|
@@ -5863,7 +5863,7 @@ var lodash = { exports: {} };
|
|
|
5863
5863
|
lodash2.findLastIndex = findLastIndex;
|
|
5864
5864
|
lodash2.findLastKey = findLastKey;
|
|
5865
5865
|
lodash2.floor = floor;
|
|
5866
|
-
lodash2.forEach =
|
|
5866
|
+
lodash2.forEach = forEach3;
|
|
5867
5867
|
lodash2.forEachRight = forEachRight;
|
|
5868
5868
|
lodash2.forIn = forIn;
|
|
5869
5869
|
lodash2.forInRight = forInRight;
|
|
@@ -5882,12 +5882,12 @@ var lodash = { exports: {} };
|
|
|
5882
5882
|
lodash2.invoke = invoke;
|
|
5883
5883
|
lodash2.isArguments = isArguments2;
|
|
5884
5884
|
lodash2.isArray = isArray2;
|
|
5885
|
-
lodash2.isArrayBuffer =
|
|
5885
|
+
lodash2.isArrayBuffer = isArrayBuffer2;
|
|
5886
5886
|
lodash2.isArrayLike = isArrayLike2;
|
|
5887
5887
|
lodash2.isArrayLikeObject = isArrayLikeObject;
|
|
5888
5888
|
lodash2.isBoolean = isBoolean;
|
|
5889
5889
|
lodash2.isBuffer = isBuffer2;
|
|
5890
|
-
lodash2.isDate =
|
|
5890
|
+
lodash2.isDate = isDate2;
|
|
5891
5891
|
lodash2.isElement = isElement;
|
|
5892
5892
|
lodash2.isEmpty = isEmpty2;
|
|
5893
5893
|
lodash2.isEqual = isEqual;
|
|
@@ -5904,17 +5904,17 @@ var lodash = { exports: {} };
|
|
|
5904
5904
|
lodash2.isNative = isNative;
|
|
5905
5905
|
lodash2.isNil = isNil;
|
|
5906
5906
|
lodash2.isNull = isNull;
|
|
5907
|
-
lodash2.isNumber =
|
|
5907
|
+
lodash2.isNumber = isNumber2;
|
|
5908
5908
|
lodash2.isObject = isObject2;
|
|
5909
5909
|
lodash2.isObjectLike = isObjectLike2;
|
|
5910
|
-
lodash2.isPlainObject =
|
|
5910
|
+
lodash2.isPlainObject = isPlainObject2;
|
|
5911
5911
|
lodash2.isRegExp = isRegExp;
|
|
5912
5912
|
lodash2.isSafeInteger = isSafeInteger;
|
|
5913
5913
|
lodash2.isSet = isSet2;
|
|
5914
|
-
lodash2.isString =
|
|
5914
|
+
lodash2.isString = isString2;
|
|
5915
5915
|
lodash2.isSymbol = isSymbol;
|
|
5916
5916
|
lodash2.isTypedArray = isTypedArray2;
|
|
5917
|
-
lodash2.isUndefined =
|
|
5917
|
+
lodash2.isUndefined = isUndefined2;
|
|
5918
5918
|
lodash2.isWeakMap = isWeakMap;
|
|
5919
5919
|
lodash2.isWeakSet = isWeakSet;
|
|
5920
5920
|
lodash2.join = join;
|
|
@@ -5976,27 +5976,27 @@ var lodash = { exports: {} };
|
|
|
5976
5976
|
lodash2.toLower = toLower;
|
|
5977
5977
|
lodash2.toNumber = toNumber;
|
|
5978
5978
|
lodash2.toSafeInteger = toSafeInteger;
|
|
5979
|
-
lodash2.toString =
|
|
5979
|
+
lodash2.toString = toString3;
|
|
5980
5980
|
lodash2.toUpper = toUpper;
|
|
5981
|
-
lodash2.trim =
|
|
5981
|
+
lodash2.trim = trim2;
|
|
5982
5982
|
lodash2.trimEnd = trimEnd;
|
|
5983
5983
|
lodash2.trimStart = trimStart;
|
|
5984
5984
|
lodash2.truncate = truncate;
|
|
5985
|
-
lodash2.unescape =
|
|
5985
|
+
lodash2.unescape = unescape2;
|
|
5986
5986
|
lodash2.uniqueId = uniqueId;
|
|
5987
5987
|
lodash2.upperCase = upperCase;
|
|
5988
5988
|
lodash2.upperFirst = upperFirst;
|
|
5989
|
-
lodash2.each =
|
|
5989
|
+
lodash2.each = forEach3;
|
|
5990
5990
|
lodash2.eachRight = forEachRight;
|
|
5991
5991
|
lodash2.first = head;
|
|
5992
5992
|
mixin(lodash2, function() {
|
|
5993
|
-
var
|
|
5993
|
+
var source2 = {};
|
|
5994
5994
|
baseForOwn(lodash2, function(func, methodName) {
|
|
5995
5995
|
if (!hasOwnProperty2.call(lodash2.prototype, methodName)) {
|
|
5996
|
-
|
|
5996
|
+
source2[methodName] = func;
|
|
5997
5997
|
}
|
|
5998
5998
|
});
|
|
5999
|
-
return
|
|
5999
|
+
return source2;
|
|
6000
6000
|
}(), { "chain": false });
|
|
6001
6001
|
lodash2.VERSION = VERSION;
|
|
6002
6002
|
arrayEach2(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
|
@@ -6496,15 +6496,15 @@ function assignValue$2(object, key, value) {
|
|
|
6496
6496
|
}
|
|
6497
6497
|
var _assignValue = assignValue$2;
|
|
6498
6498
|
var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
|
|
6499
|
-
function copyObject$4(
|
|
6499
|
+
function copyObject$4(source2, props, object, customizer) {
|
|
6500
6500
|
var isNew = !object;
|
|
6501
6501
|
object || (object = {});
|
|
6502
6502
|
var index = -1, length = props.length;
|
|
6503
6503
|
while (++index < length) {
|
|
6504
6504
|
var key = props[index];
|
|
6505
|
-
var newValue = customizer ? customizer(object[key],
|
|
6505
|
+
var newValue = customizer ? customizer(object[key], source2[key], key, object, source2) : void 0;
|
|
6506
6506
|
if (newValue === void 0) {
|
|
6507
|
-
newValue =
|
|
6507
|
+
newValue = source2[key];
|
|
6508
6508
|
}
|
|
6509
6509
|
if (isNew) {
|
|
6510
6510
|
baseAssignValue(object, key, newValue);
|
|
@@ -6531,11 +6531,11 @@ function isIndex$1(value, length) {
|
|
|
6531
6531
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
6532
6532
|
}
|
|
6533
6533
|
var _isIndex = isIndex$1;
|
|
6534
|
-
var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$
|
|
6534
|
+
var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$3 = isArray_1, isBuffer$2 = isBuffer$4.exports, isIndex = _isIndex, isTypedArray = isTypedArray_1;
|
|
6535
6535
|
var objectProto$3 = Object.prototype;
|
|
6536
6536
|
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
6537
6537
|
function arrayLikeKeys$2(value, inherited) {
|
|
6538
|
-
var isArr = isArray$
|
|
6538
|
+
var isArr = isArray$3(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
6539
6539
|
for (var key in value) {
|
|
6540
6540
|
if ((inherited || hasOwnProperty$2.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
|
|
6541
6541
|
result.push(key);
|
|
@@ -6550,8 +6550,8 @@ function keys$3(object) {
|
|
|
6550
6550
|
}
|
|
6551
6551
|
var keys_1 = keys$3;
|
|
6552
6552
|
var copyObject$3 = _copyObject, keys$2 = keys_1;
|
|
6553
|
-
function baseAssign$1(object,
|
|
6554
|
-
return object && copyObject$3(
|
|
6553
|
+
function baseAssign$1(object, source2) {
|
|
6554
|
+
return object && copyObject$3(source2, keys$2(source2), object);
|
|
6555
6555
|
}
|
|
6556
6556
|
var _baseAssign = baseAssign$1;
|
|
6557
6557
|
function nativeKeysIn$1(object) {
|
|
@@ -6564,11 +6564,11 @@ function nativeKeysIn$1(object) {
|
|
|
6564
6564
|
return result;
|
|
6565
6565
|
}
|
|
6566
6566
|
var _nativeKeysIn = nativeKeysIn$1;
|
|
6567
|
-
var isObject$
|
|
6567
|
+
var isObject$3 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
6568
6568
|
var objectProto$2 = Object.prototype;
|
|
6569
6569
|
var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
|
|
6570
6570
|
function baseKeysIn$1(object) {
|
|
6571
|
-
if (!isObject$
|
|
6571
|
+
if (!isObject$3(object)) {
|
|
6572
6572
|
return nativeKeysIn(object);
|
|
6573
6573
|
}
|
|
6574
6574
|
var isProto = isPrototype$1(object), result = [];
|
|
@@ -6586,8 +6586,8 @@ function keysIn$3(object) {
|
|
|
6586
6586
|
}
|
|
6587
6587
|
var keysIn_1 = keysIn$3;
|
|
6588
6588
|
var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
|
|
6589
|
-
function baseAssignIn$1(object,
|
|
6590
|
-
return object && copyObject$2(
|
|
6589
|
+
function baseAssignIn$1(object, source2) {
|
|
6590
|
+
return object && copyObject$2(source2, keysIn$2(source2), object);
|
|
6591
6591
|
}
|
|
6592
6592
|
var _baseAssignIn = baseAssignIn$1;
|
|
6593
6593
|
var _cloneBuffer = { exports: {} };
|
|
@@ -6607,11 +6607,11 @@ var _cloneBuffer = { exports: {} };
|
|
|
6607
6607
|
}
|
|
6608
6608
|
module.exports = cloneBuffer2;
|
|
6609
6609
|
})(_cloneBuffer, _cloneBuffer.exports);
|
|
6610
|
-
function copyArray$1(
|
|
6611
|
-
var index = -1, length =
|
|
6610
|
+
function copyArray$1(source2, array) {
|
|
6611
|
+
var index = -1, length = source2.length;
|
|
6612
6612
|
array || (array = Array(length));
|
|
6613
6613
|
while (++index < length) {
|
|
6614
|
-
array[index] =
|
|
6614
|
+
array[index] = source2[index];
|
|
6615
6615
|
}
|
|
6616
6616
|
return array;
|
|
6617
6617
|
}
|
|
@@ -6646,8 +6646,8 @@ var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
|
|
|
6646
6646
|
};
|
|
6647
6647
|
var _getSymbols = getSymbols$3;
|
|
6648
6648
|
var copyObject$1 = _copyObject, getSymbols$2 = _getSymbols;
|
|
6649
|
-
function copySymbols$1(
|
|
6650
|
-
return copyObject$1(
|
|
6649
|
+
function copySymbols$1(source2, object) {
|
|
6650
|
+
return copyObject$1(source2, getSymbols$2(source2), object);
|
|
6651
6651
|
}
|
|
6652
6652
|
var _copySymbols = copySymbols$1;
|
|
6653
6653
|
function arrayPush$2(array, values) {
|
|
@@ -6673,14 +6673,14 @@ var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
6673
6673
|
};
|
|
6674
6674
|
var _getSymbolsIn = getSymbolsIn$2;
|
|
6675
6675
|
var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
|
|
6676
|
-
function copySymbolsIn$1(
|
|
6677
|
-
return copyObject(
|
|
6676
|
+
function copySymbolsIn$1(source2, object) {
|
|
6677
|
+
return copyObject(source2, getSymbolsIn$1(source2), object);
|
|
6678
6678
|
}
|
|
6679
6679
|
var _copySymbolsIn = copySymbolsIn$1;
|
|
6680
|
-
var arrayPush = _arrayPush, isArray$
|
|
6680
|
+
var arrayPush = _arrayPush, isArray$2 = isArray_1;
|
|
6681
6681
|
function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
|
|
6682
6682
|
var result = keysFunc(object);
|
|
6683
|
-
return isArray$
|
|
6683
|
+
return isArray$2(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
6684
6684
|
}
|
|
6685
6685
|
var _baseGetAllKeys = baseGetAllKeys$2;
|
|
6686
6686
|
var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols = _getSymbols, keys$1 = keys_1;
|
|
@@ -6776,13 +6776,13 @@ function initCloneByTag$1(object, tag, isDeep) {
|
|
|
6776
6776
|
}
|
|
6777
6777
|
}
|
|
6778
6778
|
var _initCloneByTag = initCloneByTag$1;
|
|
6779
|
-
var isObject$
|
|
6779
|
+
var isObject$2 = isObject_1;
|
|
6780
6780
|
var objectCreate = Object.create;
|
|
6781
6781
|
var baseCreate$1 = function() {
|
|
6782
6782
|
function object() {
|
|
6783
6783
|
}
|
|
6784
6784
|
return function(proto) {
|
|
6785
|
-
if (!isObject$
|
|
6785
|
+
if (!isObject$2(proto)) {
|
|
6786
6786
|
return {};
|
|
6787
6787
|
}
|
|
6788
6788
|
if (objectCreate) {
|
|
@@ -6820,7 +6820,7 @@ var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtil.exports
|
|
|
6820
6820
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
6821
6821
|
var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
6822
6822
|
var isSet_1 = isSet$1;
|
|
6823
|
-
var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBuffer.exports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray = isArray_1, isBuffer = isBuffer$
|
|
6823
|
+
var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBuffer.exports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray$1 = isArray_1, isBuffer$1 = isBuffer$4.exports, isMap = isMap_1, isObject$1 = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
|
|
6824
6824
|
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
6825
6825
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
6826
6826
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
@@ -6835,10 +6835,10 @@ function baseClone$1(value, bitmask, customizer, key, object, stack) {
|
|
|
6835
6835
|
if (result !== void 0) {
|
|
6836
6836
|
return result;
|
|
6837
6837
|
}
|
|
6838
|
-
if (!isObject(value)) {
|
|
6838
|
+
if (!isObject$1(value)) {
|
|
6839
6839
|
return value;
|
|
6840
6840
|
}
|
|
6841
|
-
var isArr = isArray(value);
|
|
6841
|
+
var isArr = isArray$1(value);
|
|
6842
6842
|
if (isArr) {
|
|
6843
6843
|
result = initCloneArray(value);
|
|
6844
6844
|
if (!isDeep) {
|
|
@@ -6846,7 +6846,7 @@ function baseClone$1(value, bitmask, customizer, key, object, stack) {
|
|
|
6846
6846
|
}
|
|
6847
6847
|
} else {
|
|
6848
6848
|
var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
|
|
6849
|
-
if (isBuffer(value)) {
|
|
6849
|
+
if (isBuffer$1(value)) {
|
|
6850
6850
|
return cloneBuffer(value, isDeep);
|
|
6851
6851
|
}
|
|
6852
6852
|
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
@@ -6984,5 +6984,1131 @@ function useGroupOrderLines(array) {
|
|
|
6984
6984
|
}, {});
|
|
6985
6985
|
return result;
|
|
6986
6986
|
}
|
|
6987
|
-
|
|
6987
|
+
var axios$2 = { exports: {} };
|
|
6988
|
+
var bind$2 = function bind(fn, thisArg) {
|
|
6989
|
+
return function wrap() {
|
|
6990
|
+
var args = new Array(arguments.length);
|
|
6991
|
+
for (var i = 0; i < args.length; i++) {
|
|
6992
|
+
args[i] = arguments[i];
|
|
6993
|
+
}
|
|
6994
|
+
return fn.apply(thisArg, args);
|
|
6995
|
+
};
|
|
6996
|
+
};
|
|
6997
|
+
var bind$1 = bind$2;
|
|
6998
|
+
var toString = Object.prototype.toString;
|
|
6999
|
+
function isArray(val) {
|
|
7000
|
+
return toString.call(val) === "[object Array]";
|
|
7001
|
+
}
|
|
7002
|
+
function isUndefined(val) {
|
|
7003
|
+
return typeof val === "undefined";
|
|
7004
|
+
}
|
|
7005
|
+
function isBuffer(val) {
|
|
7006
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === "function" && val.constructor.isBuffer(val);
|
|
7007
|
+
}
|
|
7008
|
+
function isArrayBuffer(val) {
|
|
7009
|
+
return toString.call(val) === "[object ArrayBuffer]";
|
|
7010
|
+
}
|
|
7011
|
+
function isFormData(val) {
|
|
7012
|
+
return typeof FormData !== "undefined" && val instanceof FormData;
|
|
7013
|
+
}
|
|
7014
|
+
function isArrayBufferView(val) {
|
|
7015
|
+
var result;
|
|
7016
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
7017
|
+
result = ArrayBuffer.isView(val);
|
|
7018
|
+
} else {
|
|
7019
|
+
result = val && val.buffer && val.buffer instanceof ArrayBuffer;
|
|
7020
|
+
}
|
|
7021
|
+
return result;
|
|
7022
|
+
}
|
|
7023
|
+
function isString(val) {
|
|
7024
|
+
return typeof val === "string";
|
|
7025
|
+
}
|
|
7026
|
+
function isNumber(val) {
|
|
7027
|
+
return typeof val === "number";
|
|
7028
|
+
}
|
|
7029
|
+
function isObject(val) {
|
|
7030
|
+
return val !== null && typeof val === "object";
|
|
7031
|
+
}
|
|
7032
|
+
function isPlainObject(val) {
|
|
7033
|
+
if (toString.call(val) !== "[object Object]") {
|
|
7034
|
+
return false;
|
|
7035
|
+
}
|
|
7036
|
+
var prototype = Object.getPrototypeOf(val);
|
|
7037
|
+
return prototype === null || prototype === Object.prototype;
|
|
7038
|
+
}
|
|
7039
|
+
function isDate(val) {
|
|
7040
|
+
return toString.call(val) === "[object Date]";
|
|
7041
|
+
}
|
|
7042
|
+
function isFile(val) {
|
|
7043
|
+
return toString.call(val) === "[object File]";
|
|
7044
|
+
}
|
|
7045
|
+
function isBlob(val) {
|
|
7046
|
+
return toString.call(val) === "[object Blob]";
|
|
7047
|
+
}
|
|
7048
|
+
function isFunction(val) {
|
|
7049
|
+
return toString.call(val) === "[object Function]";
|
|
7050
|
+
}
|
|
7051
|
+
function isStream(val) {
|
|
7052
|
+
return isObject(val) && isFunction(val.pipe);
|
|
7053
|
+
}
|
|
7054
|
+
function isURLSearchParams(val) {
|
|
7055
|
+
return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
|
|
7056
|
+
}
|
|
7057
|
+
function trim(str) {
|
|
7058
|
+
return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, "");
|
|
7059
|
+
}
|
|
7060
|
+
function isStandardBrowserEnv() {
|
|
7061
|
+
if (typeof navigator !== "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS")) {
|
|
7062
|
+
return false;
|
|
7063
|
+
}
|
|
7064
|
+
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
7065
|
+
}
|
|
7066
|
+
function forEach(obj, fn) {
|
|
7067
|
+
if (obj === null || typeof obj === "undefined") {
|
|
7068
|
+
return;
|
|
7069
|
+
}
|
|
7070
|
+
if (typeof obj !== "object") {
|
|
7071
|
+
obj = [obj];
|
|
7072
|
+
}
|
|
7073
|
+
if (isArray(obj)) {
|
|
7074
|
+
for (var i = 0, l = obj.length; i < l; i++) {
|
|
7075
|
+
fn.call(null, obj[i], i, obj);
|
|
7076
|
+
}
|
|
7077
|
+
} else {
|
|
7078
|
+
for (var key in obj) {
|
|
7079
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
7080
|
+
fn.call(null, obj[key], key, obj);
|
|
7081
|
+
}
|
|
7082
|
+
}
|
|
7083
|
+
}
|
|
7084
|
+
}
|
|
7085
|
+
function merge() {
|
|
7086
|
+
var result = {};
|
|
7087
|
+
function assignValue2(val, key) {
|
|
7088
|
+
if (isPlainObject(result[key]) && isPlainObject(val)) {
|
|
7089
|
+
result[key] = merge(result[key], val);
|
|
7090
|
+
} else if (isPlainObject(val)) {
|
|
7091
|
+
result[key] = merge({}, val);
|
|
7092
|
+
} else if (isArray(val)) {
|
|
7093
|
+
result[key] = val.slice();
|
|
7094
|
+
} else {
|
|
7095
|
+
result[key] = val;
|
|
7096
|
+
}
|
|
7097
|
+
}
|
|
7098
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
7099
|
+
forEach(arguments[i], assignValue2);
|
|
7100
|
+
}
|
|
7101
|
+
return result;
|
|
7102
|
+
}
|
|
7103
|
+
function extend(a, b, thisArg) {
|
|
7104
|
+
forEach(b, function assignValue2(val, key) {
|
|
7105
|
+
if (thisArg && typeof val === "function") {
|
|
7106
|
+
a[key] = bind$1(val, thisArg);
|
|
7107
|
+
} else {
|
|
7108
|
+
a[key] = val;
|
|
7109
|
+
}
|
|
7110
|
+
});
|
|
7111
|
+
return a;
|
|
7112
|
+
}
|
|
7113
|
+
function stripBOM(content) {
|
|
7114
|
+
if (content.charCodeAt(0) === 65279) {
|
|
7115
|
+
content = content.slice(1);
|
|
7116
|
+
}
|
|
7117
|
+
return content;
|
|
7118
|
+
}
|
|
7119
|
+
var utils$d = {
|
|
7120
|
+
isArray,
|
|
7121
|
+
isArrayBuffer,
|
|
7122
|
+
isBuffer,
|
|
7123
|
+
isFormData,
|
|
7124
|
+
isArrayBufferView,
|
|
7125
|
+
isString,
|
|
7126
|
+
isNumber,
|
|
7127
|
+
isObject,
|
|
7128
|
+
isPlainObject,
|
|
7129
|
+
isUndefined,
|
|
7130
|
+
isDate,
|
|
7131
|
+
isFile,
|
|
7132
|
+
isBlob,
|
|
7133
|
+
isFunction,
|
|
7134
|
+
isStream,
|
|
7135
|
+
isURLSearchParams,
|
|
7136
|
+
isStandardBrowserEnv,
|
|
7137
|
+
forEach,
|
|
7138
|
+
merge,
|
|
7139
|
+
extend,
|
|
7140
|
+
trim,
|
|
7141
|
+
stripBOM
|
|
7142
|
+
};
|
|
7143
|
+
var utils$c = utils$d;
|
|
7144
|
+
function encode(val) {
|
|
7145
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
7146
|
+
}
|
|
7147
|
+
var buildURL$2 = function buildURL(url, params, paramsSerializer) {
|
|
7148
|
+
if (!params) {
|
|
7149
|
+
return url;
|
|
7150
|
+
}
|
|
7151
|
+
var serializedParams;
|
|
7152
|
+
if (paramsSerializer) {
|
|
7153
|
+
serializedParams = paramsSerializer(params);
|
|
7154
|
+
} else if (utils$c.isURLSearchParams(params)) {
|
|
7155
|
+
serializedParams = params.toString();
|
|
7156
|
+
} else {
|
|
7157
|
+
var parts = [];
|
|
7158
|
+
utils$c.forEach(params, function serialize(val, key) {
|
|
7159
|
+
if (val === null || typeof val === "undefined") {
|
|
7160
|
+
return;
|
|
7161
|
+
}
|
|
7162
|
+
if (utils$c.isArray(val)) {
|
|
7163
|
+
key = key + "[]";
|
|
7164
|
+
} else {
|
|
7165
|
+
val = [val];
|
|
7166
|
+
}
|
|
7167
|
+
utils$c.forEach(val, function parseValue(v) {
|
|
7168
|
+
if (utils$c.isDate(v)) {
|
|
7169
|
+
v = v.toISOString();
|
|
7170
|
+
} else if (utils$c.isObject(v)) {
|
|
7171
|
+
v = JSON.stringify(v);
|
|
7172
|
+
}
|
|
7173
|
+
parts.push(encode(key) + "=" + encode(v));
|
|
7174
|
+
});
|
|
7175
|
+
});
|
|
7176
|
+
serializedParams = parts.join("&");
|
|
7177
|
+
}
|
|
7178
|
+
if (serializedParams) {
|
|
7179
|
+
var hashmarkIndex = url.indexOf("#");
|
|
7180
|
+
if (hashmarkIndex !== -1) {
|
|
7181
|
+
url = url.slice(0, hashmarkIndex);
|
|
7182
|
+
}
|
|
7183
|
+
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
7184
|
+
}
|
|
7185
|
+
return url;
|
|
7186
|
+
};
|
|
7187
|
+
var utils$b = utils$d;
|
|
7188
|
+
function InterceptorManager$1() {
|
|
7189
|
+
this.handlers = [];
|
|
7190
|
+
}
|
|
7191
|
+
InterceptorManager$1.prototype.use = function use(fulfilled, rejected, options) {
|
|
7192
|
+
this.handlers.push({
|
|
7193
|
+
fulfilled,
|
|
7194
|
+
rejected,
|
|
7195
|
+
synchronous: options ? options.synchronous : false,
|
|
7196
|
+
runWhen: options ? options.runWhen : null
|
|
7197
|
+
});
|
|
7198
|
+
return this.handlers.length - 1;
|
|
7199
|
+
};
|
|
7200
|
+
InterceptorManager$1.prototype.eject = function eject(id) {
|
|
7201
|
+
if (this.handlers[id]) {
|
|
7202
|
+
this.handlers[id] = null;
|
|
7203
|
+
}
|
|
7204
|
+
};
|
|
7205
|
+
InterceptorManager$1.prototype.forEach = function forEach2(fn) {
|
|
7206
|
+
utils$b.forEach(this.handlers, function forEachHandler(h) {
|
|
7207
|
+
if (h !== null) {
|
|
7208
|
+
fn(h);
|
|
7209
|
+
}
|
|
7210
|
+
});
|
|
7211
|
+
};
|
|
7212
|
+
var InterceptorManager_1 = InterceptorManager$1;
|
|
7213
|
+
var utils$a = utils$d;
|
|
7214
|
+
var normalizeHeaderName$1 = function normalizeHeaderName(headers, normalizedName) {
|
|
7215
|
+
utils$a.forEach(headers, function processHeader(value, name2) {
|
|
7216
|
+
if (name2 !== normalizedName && name2.toUpperCase() === normalizedName.toUpperCase()) {
|
|
7217
|
+
headers[normalizedName] = value;
|
|
7218
|
+
delete headers[name2];
|
|
7219
|
+
}
|
|
7220
|
+
});
|
|
7221
|
+
};
|
|
7222
|
+
var enhanceError$2 = function enhanceError(error, config, code, request2, response) {
|
|
7223
|
+
error.config = config;
|
|
7224
|
+
if (code) {
|
|
7225
|
+
error.code = code;
|
|
7226
|
+
}
|
|
7227
|
+
error.request = request2;
|
|
7228
|
+
error.response = response;
|
|
7229
|
+
error.isAxiosError = true;
|
|
7230
|
+
error.toJSON = function toJSON() {
|
|
7231
|
+
return {
|
|
7232
|
+
message: this.message,
|
|
7233
|
+
name: this.name,
|
|
7234
|
+
description: this.description,
|
|
7235
|
+
number: this.number,
|
|
7236
|
+
fileName: this.fileName,
|
|
7237
|
+
lineNumber: this.lineNumber,
|
|
7238
|
+
columnNumber: this.columnNumber,
|
|
7239
|
+
stack: this.stack,
|
|
7240
|
+
config: this.config,
|
|
7241
|
+
code: this.code
|
|
7242
|
+
};
|
|
7243
|
+
};
|
|
7244
|
+
return error;
|
|
7245
|
+
};
|
|
7246
|
+
var enhanceError$1 = enhanceError$2;
|
|
7247
|
+
var createError$2 = function createError(message, config, code, request2, response) {
|
|
7248
|
+
var error = new Error(message);
|
|
7249
|
+
return enhanceError$1(error, config, code, request2, response);
|
|
7250
|
+
};
|
|
7251
|
+
var createError$1 = createError$2;
|
|
7252
|
+
var settle$1 = function settle(resolve, reject, response) {
|
|
7253
|
+
var validateStatus2 = response.config.validateStatus;
|
|
7254
|
+
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
7255
|
+
resolve(response);
|
|
7256
|
+
} else {
|
|
7257
|
+
reject(createError$1("Request failed with status code " + response.status, response.config, null, response.request, response));
|
|
7258
|
+
}
|
|
7259
|
+
};
|
|
7260
|
+
var utils$9 = utils$d;
|
|
7261
|
+
var cookies$1 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
|
|
7262
|
+
return {
|
|
7263
|
+
write: function write(name2, value, expires, path, domain, secure) {
|
|
7264
|
+
var cookie = [];
|
|
7265
|
+
cookie.push(name2 + "=" + encodeURIComponent(value));
|
|
7266
|
+
if (utils$9.isNumber(expires)) {
|
|
7267
|
+
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
7268
|
+
}
|
|
7269
|
+
if (utils$9.isString(path)) {
|
|
7270
|
+
cookie.push("path=" + path);
|
|
7271
|
+
}
|
|
7272
|
+
if (utils$9.isString(domain)) {
|
|
7273
|
+
cookie.push("domain=" + domain);
|
|
7274
|
+
}
|
|
7275
|
+
if (secure === true) {
|
|
7276
|
+
cookie.push("secure");
|
|
7277
|
+
}
|
|
7278
|
+
document.cookie = cookie.join("; ");
|
|
7279
|
+
},
|
|
7280
|
+
read: function read(name2) {
|
|
7281
|
+
var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name2 + ")=([^;]*)"));
|
|
7282
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
7283
|
+
},
|
|
7284
|
+
remove: function remove(name2) {
|
|
7285
|
+
this.write(name2, "", Date.now() - 864e5);
|
|
7286
|
+
}
|
|
7287
|
+
};
|
|
7288
|
+
}() : function nonStandardBrowserEnv() {
|
|
7289
|
+
return {
|
|
7290
|
+
write: function write() {
|
|
7291
|
+
},
|
|
7292
|
+
read: function read() {
|
|
7293
|
+
return null;
|
|
7294
|
+
},
|
|
7295
|
+
remove: function remove() {
|
|
7296
|
+
}
|
|
7297
|
+
};
|
|
7298
|
+
}();
|
|
7299
|
+
var isAbsoluteURL$1 = function isAbsoluteURL(url) {
|
|
7300
|
+
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
7301
|
+
};
|
|
7302
|
+
var combineURLs$1 = function combineURLs(baseURL, relativeURL) {
|
|
7303
|
+
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
7304
|
+
};
|
|
7305
|
+
var isAbsoluteURL2 = isAbsoluteURL$1;
|
|
7306
|
+
var combineURLs2 = combineURLs$1;
|
|
7307
|
+
var buildFullPath$1 = function buildFullPath(baseURL, requestedURL) {
|
|
7308
|
+
if (baseURL && !isAbsoluteURL2(requestedURL)) {
|
|
7309
|
+
return combineURLs2(baseURL, requestedURL);
|
|
7310
|
+
}
|
|
7311
|
+
return requestedURL;
|
|
7312
|
+
};
|
|
7313
|
+
var utils$8 = utils$d;
|
|
7314
|
+
var ignoreDuplicateOf = [
|
|
7315
|
+
"age",
|
|
7316
|
+
"authorization",
|
|
7317
|
+
"content-length",
|
|
7318
|
+
"content-type",
|
|
7319
|
+
"etag",
|
|
7320
|
+
"expires",
|
|
7321
|
+
"from",
|
|
7322
|
+
"host",
|
|
7323
|
+
"if-modified-since",
|
|
7324
|
+
"if-unmodified-since",
|
|
7325
|
+
"last-modified",
|
|
7326
|
+
"location",
|
|
7327
|
+
"max-forwards",
|
|
7328
|
+
"proxy-authorization",
|
|
7329
|
+
"referer",
|
|
7330
|
+
"retry-after",
|
|
7331
|
+
"user-agent"
|
|
7332
|
+
];
|
|
7333
|
+
var parseHeaders$1 = function parseHeaders(headers) {
|
|
7334
|
+
var parsed = {};
|
|
7335
|
+
var key;
|
|
7336
|
+
var val;
|
|
7337
|
+
var i;
|
|
7338
|
+
if (!headers) {
|
|
7339
|
+
return parsed;
|
|
7340
|
+
}
|
|
7341
|
+
utils$8.forEach(headers.split("\n"), function parser(line) {
|
|
7342
|
+
i = line.indexOf(":");
|
|
7343
|
+
key = utils$8.trim(line.substr(0, i)).toLowerCase();
|
|
7344
|
+
val = utils$8.trim(line.substr(i + 1));
|
|
7345
|
+
if (key) {
|
|
7346
|
+
if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
|
|
7347
|
+
return;
|
|
7348
|
+
}
|
|
7349
|
+
if (key === "set-cookie") {
|
|
7350
|
+
parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
|
|
7351
|
+
} else {
|
|
7352
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
7353
|
+
}
|
|
7354
|
+
}
|
|
7355
|
+
});
|
|
7356
|
+
return parsed;
|
|
7357
|
+
};
|
|
7358
|
+
var utils$7 = utils$d;
|
|
7359
|
+
var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowserEnv2() {
|
|
7360
|
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
7361
|
+
var urlParsingNode = document.createElement("a");
|
|
7362
|
+
var originURL;
|
|
7363
|
+
function resolveURL(url) {
|
|
7364
|
+
var href = url;
|
|
7365
|
+
if (msie) {
|
|
7366
|
+
urlParsingNode.setAttribute("href", href);
|
|
7367
|
+
href = urlParsingNode.href;
|
|
7368
|
+
}
|
|
7369
|
+
urlParsingNode.setAttribute("href", href);
|
|
7370
|
+
return {
|
|
7371
|
+
href: urlParsingNode.href,
|
|
7372
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
7373
|
+
host: urlParsingNode.host,
|
|
7374
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
7375
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
7376
|
+
hostname: urlParsingNode.hostname,
|
|
7377
|
+
port: urlParsingNode.port,
|
|
7378
|
+
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
7379
|
+
};
|
|
7380
|
+
}
|
|
7381
|
+
originURL = resolveURL(window.location.href);
|
|
7382
|
+
return function isURLSameOrigin2(requestURL) {
|
|
7383
|
+
var parsed = utils$7.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
7384
|
+
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
7385
|
+
};
|
|
7386
|
+
}() : function nonStandardBrowserEnv2() {
|
|
7387
|
+
return function isURLSameOrigin2() {
|
|
7388
|
+
return true;
|
|
7389
|
+
};
|
|
7390
|
+
}();
|
|
7391
|
+
var utils$6 = utils$d;
|
|
7392
|
+
var settle2 = settle$1;
|
|
7393
|
+
var cookies = cookies$1;
|
|
7394
|
+
var buildURL$1 = buildURL$2;
|
|
7395
|
+
var buildFullPath2 = buildFullPath$1;
|
|
7396
|
+
var parseHeaders2 = parseHeaders$1;
|
|
7397
|
+
var isURLSameOrigin = isURLSameOrigin$1;
|
|
7398
|
+
var createError2 = createError$2;
|
|
7399
|
+
var xhr = function xhrAdapter(config) {
|
|
7400
|
+
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
7401
|
+
var requestData = config.data;
|
|
7402
|
+
var requestHeaders = config.headers;
|
|
7403
|
+
var responseType = config.responseType;
|
|
7404
|
+
if (utils$6.isFormData(requestData)) {
|
|
7405
|
+
delete requestHeaders["Content-Type"];
|
|
7406
|
+
}
|
|
7407
|
+
var request2 = new XMLHttpRequest();
|
|
7408
|
+
if (config.auth) {
|
|
7409
|
+
var username = config.auth.username || "";
|
|
7410
|
+
var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
|
|
7411
|
+
requestHeaders.Authorization = "Basic " + btoa(username + ":" + password);
|
|
7412
|
+
}
|
|
7413
|
+
var fullPath = buildFullPath2(config.baseURL, config.url);
|
|
7414
|
+
request2.open(config.method.toUpperCase(), buildURL$1(fullPath, config.params, config.paramsSerializer), true);
|
|
7415
|
+
request2.timeout = config.timeout;
|
|
7416
|
+
function onloadend() {
|
|
7417
|
+
if (!request2) {
|
|
7418
|
+
return;
|
|
7419
|
+
}
|
|
7420
|
+
var responseHeaders = "getAllResponseHeaders" in request2 ? parseHeaders2(request2.getAllResponseHeaders()) : null;
|
|
7421
|
+
var responseData = !responseType || responseType === "text" || responseType === "json" ? request2.responseText : request2.response;
|
|
7422
|
+
var response = {
|
|
7423
|
+
data: responseData,
|
|
7424
|
+
status: request2.status,
|
|
7425
|
+
statusText: request2.statusText,
|
|
7426
|
+
headers: responseHeaders,
|
|
7427
|
+
config,
|
|
7428
|
+
request: request2
|
|
7429
|
+
};
|
|
7430
|
+
settle2(resolve, reject, response);
|
|
7431
|
+
request2 = null;
|
|
7432
|
+
}
|
|
7433
|
+
if ("onloadend" in request2) {
|
|
7434
|
+
request2.onloadend = onloadend;
|
|
7435
|
+
} else {
|
|
7436
|
+
request2.onreadystatechange = function handleLoad() {
|
|
7437
|
+
if (!request2 || request2.readyState !== 4) {
|
|
7438
|
+
return;
|
|
7439
|
+
}
|
|
7440
|
+
if (request2.status === 0 && !(request2.responseURL && request2.responseURL.indexOf("file:") === 0)) {
|
|
7441
|
+
return;
|
|
7442
|
+
}
|
|
7443
|
+
setTimeout(onloadend);
|
|
7444
|
+
};
|
|
7445
|
+
}
|
|
7446
|
+
request2.onabort = function handleAbort() {
|
|
7447
|
+
if (!request2) {
|
|
7448
|
+
return;
|
|
7449
|
+
}
|
|
7450
|
+
reject(createError2("Request aborted", config, "ECONNABORTED", request2));
|
|
7451
|
+
request2 = null;
|
|
7452
|
+
};
|
|
7453
|
+
request2.onerror = function handleError() {
|
|
7454
|
+
reject(createError2("Network Error", config, null, request2));
|
|
7455
|
+
request2 = null;
|
|
7456
|
+
};
|
|
7457
|
+
request2.ontimeout = function handleTimeout() {
|
|
7458
|
+
var timeoutErrorMessage = "timeout of " + config.timeout + "ms exceeded";
|
|
7459
|
+
if (config.timeoutErrorMessage) {
|
|
7460
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
7461
|
+
}
|
|
7462
|
+
reject(createError2(timeoutErrorMessage, config, config.transitional && config.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED", request2));
|
|
7463
|
+
request2 = null;
|
|
7464
|
+
};
|
|
7465
|
+
if (utils$6.isStandardBrowserEnv()) {
|
|
7466
|
+
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : void 0;
|
|
7467
|
+
if (xsrfValue) {
|
|
7468
|
+
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
|
7469
|
+
}
|
|
7470
|
+
}
|
|
7471
|
+
if ("setRequestHeader" in request2) {
|
|
7472
|
+
utils$6.forEach(requestHeaders, function setRequestHeader(val, key) {
|
|
7473
|
+
if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") {
|
|
7474
|
+
delete requestHeaders[key];
|
|
7475
|
+
} else {
|
|
7476
|
+
request2.setRequestHeader(key, val);
|
|
7477
|
+
}
|
|
7478
|
+
});
|
|
7479
|
+
}
|
|
7480
|
+
if (!utils$6.isUndefined(config.withCredentials)) {
|
|
7481
|
+
request2.withCredentials = !!config.withCredentials;
|
|
7482
|
+
}
|
|
7483
|
+
if (responseType && responseType !== "json") {
|
|
7484
|
+
request2.responseType = config.responseType;
|
|
7485
|
+
}
|
|
7486
|
+
if (typeof config.onDownloadProgress === "function") {
|
|
7487
|
+
request2.addEventListener("progress", config.onDownloadProgress);
|
|
7488
|
+
}
|
|
7489
|
+
if (typeof config.onUploadProgress === "function" && request2.upload) {
|
|
7490
|
+
request2.upload.addEventListener("progress", config.onUploadProgress);
|
|
7491
|
+
}
|
|
7492
|
+
if (config.cancelToken) {
|
|
7493
|
+
config.cancelToken.promise.then(function onCanceled(cancel) {
|
|
7494
|
+
if (!request2) {
|
|
7495
|
+
return;
|
|
7496
|
+
}
|
|
7497
|
+
request2.abort();
|
|
7498
|
+
reject(cancel);
|
|
7499
|
+
request2 = null;
|
|
7500
|
+
});
|
|
7501
|
+
}
|
|
7502
|
+
if (!requestData) {
|
|
7503
|
+
requestData = null;
|
|
7504
|
+
}
|
|
7505
|
+
request2.send(requestData);
|
|
7506
|
+
});
|
|
7507
|
+
};
|
|
7508
|
+
var utils$5 = utils$d;
|
|
7509
|
+
var normalizeHeaderName2 = normalizeHeaderName$1;
|
|
7510
|
+
var enhanceError2 = enhanceError$2;
|
|
7511
|
+
var DEFAULT_CONTENT_TYPE = {
|
|
7512
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
7513
|
+
};
|
|
7514
|
+
function setContentTypeIfUnset(headers, value) {
|
|
7515
|
+
if (!utils$5.isUndefined(headers) && utils$5.isUndefined(headers["Content-Type"])) {
|
|
7516
|
+
headers["Content-Type"] = value;
|
|
7517
|
+
}
|
|
7518
|
+
}
|
|
7519
|
+
function getDefaultAdapter() {
|
|
7520
|
+
var adapter;
|
|
7521
|
+
if (typeof XMLHttpRequest !== "undefined") {
|
|
7522
|
+
adapter = xhr;
|
|
7523
|
+
} else if (typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]") {
|
|
7524
|
+
adapter = xhr;
|
|
7525
|
+
}
|
|
7526
|
+
return adapter;
|
|
7527
|
+
}
|
|
7528
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
7529
|
+
if (utils$5.isString(rawValue)) {
|
|
7530
|
+
try {
|
|
7531
|
+
(parser || JSON.parse)(rawValue);
|
|
7532
|
+
return utils$5.trim(rawValue);
|
|
7533
|
+
} catch (e) {
|
|
7534
|
+
if (e.name !== "SyntaxError") {
|
|
7535
|
+
throw e;
|
|
7536
|
+
}
|
|
7537
|
+
}
|
|
7538
|
+
}
|
|
7539
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
7540
|
+
}
|
|
7541
|
+
var defaults$3 = {
|
|
7542
|
+
transitional: {
|
|
7543
|
+
silentJSONParsing: true,
|
|
7544
|
+
forcedJSONParsing: true,
|
|
7545
|
+
clarifyTimeoutError: false
|
|
7546
|
+
},
|
|
7547
|
+
adapter: getDefaultAdapter(),
|
|
7548
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
7549
|
+
normalizeHeaderName2(headers, "Accept");
|
|
7550
|
+
normalizeHeaderName2(headers, "Content-Type");
|
|
7551
|
+
if (utils$5.isFormData(data) || utils$5.isArrayBuffer(data) || utils$5.isBuffer(data) || utils$5.isStream(data) || utils$5.isFile(data) || utils$5.isBlob(data)) {
|
|
7552
|
+
return data;
|
|
7553
|
+
}
|
|
7554
|
+
if (utils$5.isArrayBufferView(data)) {
|
|
7555
|
+
return data.buffer;
|
|
7556
|
+
}
|
|
7557
|
+
if (utils$5.isURLSearchParams(data)) {
|
|
7558
|
+
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
7559
|
+
return data.toString();
|
|
7560
|
+
}
|
|
7561
|
+
if (utils$5.isObject(data) || headers && headers["Content-Type"] === "application/json") {
|
|
7562
|
+
setContentTypeIfUnset(headers, "application/json");
|
|
7563
|
+
return stringifySafely(data);
|
|
7564
|
+
}
|
|
7565
|
+
return data;
|
|
7566
|
+
}],
|
|
7567
|
+
transformResponse: [function transformResponse(data) {
|
|
7568
|
+
var transitional2 = this.transitional;
|
|
7569
|
+
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
7570
|
+
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
7571
|
+
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
7572
|
+
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data) && data.length) {
|
|
7573
|
+
try {
|
|
7574
|
+
return JSON.parse(data);
|
|
7575
|
+
} catch (e) {
|
|
7576
|
+
if (strictJSONParsing) {
|
|
7577
|
+
if (e.name === "SyntaxError") {
|
|
7578
|
+
throw enhanceError2(e, this, "E_JSON_PARSE");
|
|
7579
|
+
}
|
|
7580
|
+
throw e;
|
|
7581
|
+
}
|
|
7582
|
+
}
|
|
7583
|
+
}
|
|
7584
|
+
return data;
|
|
7585
|
+
}],
|
|
7586
|
+
timeout: 0,
|
|
7587
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
7588
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
7589
|
+
maxContentLength: -1,
|
|
7590
|
+
maxBodyLength: -1,
|
|
7591
|
+
validateStatus: function validateStatus(status) {
|
|
7592
|
+
return status >= 200 && status < 300;
|
|
7593
|
+
}
|
|
7594
|
+
};
|
|
7595
|
+
defaults$3.headers = {
|
|
7596
|
+
common: {
|
|
7597
|
+
"Accept": "application/json, text/plain, */*"
|
|
7598
|
+
}
|
|
7599
|
+
};
|
|
7600
|
+
utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
7601
|
+
defaults$3.headers[method] = {};
|
|
7602
|
+
});
|
|
7603
|
+
utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
7604
|
+
defaults$3.headers[method] = utils$5.merge(DEFAULT_CONTENT_TYPE);
|
|
7605
|
+
});
|
|
7606
|
+
var defaults_1 = defaults$3;
|
|
7607
|
+
var utils$4 = utils$d;
|
|
7608
|
+
var defaults$2 = defaults_1;
|
|
7609
|
+
var transformData$1 = function transformData(data, headers, fns) {
|
|
7610
|
+
var context = this || defaults$2;
|
|
7611
|
+
utils$4.forEach(fns, function transform(fn) {
|
|
7612
|
+
data = fn.call(context, data, headers);
|
|
7613
|
+
});
|
|
7614
|
+
return data;
|
|
7615
|
+
};
|
|
7616
|
+
var isCancel$1 = function isCancel(value) {
|
|
7617
|
+
return !!(value && value.__CANCEL__);
|
|
7618
|
+
};
|
|
7619
|
+
var utils$3 = utils$d;
|
|
7620
|
+
var transformData2 = transformData$1;
|
|
7621
|
+
var isCancel2 = isCancel$1;
|
|
7622
|
+
var defaults$1 = defaults_1;
|
|
7623
|
+
function throwIfCancellationRequested(config) {
|
|
7624
|
+
if (config.cancelToken) {
|
|
7625
|
+
config.cancelToken.throwIfRequested();
|
|
7626
|
+
}
|
|
7627
|
+
}
|
|
7628
|
+
var dispatchRequest$1 = function dispatchRequest(config) {
|
|
7629
|
+
throwIfCancellationRequested(config);
|
|
7630
|
+
config.headers = config.headers || {};
|
|
7631
|
+
config.data = transformData2.call(config, config.data, config.headers, config.transformRequest);
|
|
7632
|
+
config.headers = utils$3.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);
|
|
7633
|
+
utils$3.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function cleanHeaderConfig(method) {
|
|
7634
|
+
delete config.headers[method];
|
|
7635
|
+
});
|
|
7636
|
+
var adapter = config.adapter || defaults$1.adapter;
|
|
7637
|
+
return adapter(config).then(function onAdapterResolution(response) {
|
|
7638
|
+
throwIfCancellationRequested(config);
|
|
7639
|
+
response.data = transformData2.call(config, response.data, response.headers, config.transformResponse);
|
|
7640
|
+
return response;
|
|
7641
|
+
}, function onAdapterRejection(reason) {
|
|
7642
|
+
if (!isCancel2(reason)) {
|
|
7643
|
+
throwIfCancellationRequested(config);
|
|
7644
|
+
if (reason && reason.response) {
|
|
7645
|
+
reason.response.data = transformData2.call(config, reason.response.data, reason.response.headers, config.transformResponse);
|
|
7646
|
+
}
|
|
7647
|
+
}
|
|
7648
|
+
return Promise.reject(reason);
|
|
7649
|
+
});
|
|
7650
|
+
};
|
|
7651
|
+
var utils$2 = utils$d;
|
|
7652
|
+
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
7653
|
+
config2 = config2 || {};
|
|
7654
|
+
var config = {};
|
|
7655
|
+
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
7656
|
+
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
7657
|
+
var defaultToConfig2Keys = [
|
|
7658
|
+
"baseURL",
|
|
7659
|
+
"transformRequest",
|
|
7660
|
+
"transformResponse",
|
|
7661
|
+
"paramsSerializer",
|
|
7662
|
+
"timeout",
|
|
7663
|
+
"timeoutMessage",
|
|
7664
|
+
"withCredentials",
|
|
7665
|
+
"adapter",
|
|
7666
|
+
"responseType",
|
|
7667
|
+
"xsrfCookieName",
|
|
7668
|
+
"xsrfHeaderName",
|
|
7669
|
+
"onUploadProgress",
|
|
7670
|
+
"onDownloadProgress",
|
|
7671
|
+
"decompress",
|
|
7672
|
+
"maxContentLength",
|
|
7673
|
+
"maxBodyLength",
|
|
7674
|
+
"maxRedirects",
|
|
7675
|
+
"transport",
|
|
7676
|
+
"httpAgent",
|
|
7677
|
+
"httpsAgent",
|
|
7678
|
+
"cancelToken",
|
|
7679
|
+
"socketPath",
|
|
7680
|
+
"responseEncoding"
|
|
7681
|
+
];
|
|
7682
|
+
var directMergeKeys = ["validateStatus"];
|
|
7683
|
+
function getMergedValue(target, source2) {
|
|
7684
|
+
if (utils$2.isPlainObject(target) && utils$2.isPlainObject(source2)) {
|
|
7685
|
+
return utils$2.merge(target, source2);
|
|
7686
|
+
} else if (utils$2.isPlainObject(source2)) {
|
|
7687
|
+
return utils$2.merge({}, source2);
|
|
7688
|
+
} else if (utils$2.isArray(source2)) {
|
|
7689
|
+
return source2.slice();
|
|
7690
|
+
}
|
|
7691
|
+
return source2;
|
|
7692
|
+
}
|
|
7693
|
+
function mergeDeepProperties(prop) {
|
|
7694
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
7695
|
+
config[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
7696
|
+
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
7697
|
+
config[prop] = getMergedValue(void 0, config1[prop]);
|
|
7698
|
+
}
|
|
7699
|
+
}
|
|
7700
|
+
utils$2.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
|
|
7701
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
7702
|
+
config[prop] = getMergedValue(void 0, config2[prop]);
|
|
7703
|
+
}
|
|
7704
|
+
});
|
|
7705
|
+
utils$2.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
7706
|
+
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
7707
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
7708
|
+
config[prop] = getMergedValue(void 0, config2[prop]);
|
|
7709
|
+
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
7710
|
+
config[prop] = getMergedValue(void 0, config1[prop]);
|
|
7711
|
+
}
|
|
7712
|
+
});
|
|
7713
|
+
utils$2.forEach(directMergeKeys, function merge2(prop) {
|
|
7714
|
+
if (prop in config2) {
|
|
7715
|
+
config[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
7716
|
+
} else if (prop in config1) {
|
|
7717
|
+
config[prop] = getMergedValue(void 0, config1[prop]);
|
|
7718
|
+
}
|
|
7719
|
+
});
|
|
7720
|
+
var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
|
|
7721
|
+
var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
|
|
7722
|
+
return axiosKeys.indexOf(key) === -1;
|
|
7723
|
+
});
|
|
7724
|
+
utils$2.forEach(otherKeys, mergeDeepProperties);
|
|
7725
|
+
return config;
|
|
7726
|
+
};
|
|
7727
|
+
const name = "axios";
|
|
7728
|
+
const version = "0.21.4";
|
|
7729
|
+
const description = "Promise based HTTP client for the browser and node.js";
|
|
7730
|
+
const main = "index.js";
|
|
7731
|
+
const scripts = {
|
|
7732
|
+
test: "grunt test",
|
|
7733
|
+
start: "node ./sandbox/server.js",
|
|
7734
|
+
build: "NODE_ENV=production grunt build",
|
|
7735
|
+
preversion: "npm test",
|
|
7736
|
+
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
|
|
7737
|
+
postversion: "git push && git push --tags",
|
|
7738
|
+
examples: "node ./examples/server.js",
|
|
7739
|
+
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
7740
|
+
fix: "eslint --fix lib/**/*.js"
|
|
7741
|
+
};
|
|
7742
|
+
const repository = {
|
|
7743
|
+
type: "git",
|
|
7744
|
+
url: "https://github.com/axios/axios.git"
|
|
7745
|
+
};
|
|
7746
|
+
const keywords = [
|
|
7747
|
+
"xhr",
|
|
7748
|
+
"http",
|
|
7749
|
+
"ajax",
|
|
7750
|
+
"promise",
|
|
7751
|
+
"node"
|
|
7752
|
+
];
|
|
7753
|
+
const author = "Matt Zabriskie";
|
|
7754
|
+
const license = "MIT";
|
|
7755
|
+
const bugs = {
|
|
7756
|
+
url: "https://github.com/axios/axios/issues"
|
|
7757
|
+
};
|
|
7758
|
+
const homepage = "https://axios-http.com";
|
|
7759
|
+
const devDependencies = {
|
|
7760
|
+
coveralls: "^3.0.0",
|
|
7761
|
+
"es6-promise": "^4.2.4",
|
|
7762
|
+
grunt: "^1.3.0",
|
|
7763
|
+
"grunt-banner": "^0.6.0",
|
|
7764
|
+
"grunt-cli": "^1.2.0",
|
|
7765
|
+
"grunt-contrib-clean": "^1.1.0",
|
|
7766
|
+
"grunt-contrib-watch": "^1.0.0",
|
|
7767
|
+
"grunt-eslint": "^23.0.0",
|
|
7768
|
+
"grunt-karma": "^4.0.0",
|
|
7769
|
+
"grunt-mocha-test": "^0.13.3",
|
|
7770
|
+
"grunt-ts": "^6.0.0-beta.19",
|
|
7771
|
+
"grunt-webpack": "^4.0.2",
|
|
7772
|
+
"istanbul-instrumenter-loader": "^1.0.0",
|
|
7773
|
+
"jasmine-core": "^2.4.1",
|
|
7774
|
+
karma: "^6.3.2",
|
|
7775
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
7776
|
+
"karma-firefox-launcher": "^2.1.0",
|
|
7777
|
+
"karma-jasmine": "^1.1.1",
|
|
7778
|
+
"karma-jasmine-ajax": "^0.1.13",
|
|
7779
|
+
"karma-safari-launcher": "^1.0.0",
|
|
7780
|
+
"karma-sauce-launcher": "^4.3.6",
|
|
7781
|
+
"karma-sinon": "^1.0.5",
|
|
7782
|
+
"karma-sourcemap-loader": "^0.3.8",
|
|
7783
|
+
"karma-webpack": "^4.0.2",
|
|
7784
|
+
"load-grunt-tasks": "^3.5.2",
|
|
7785
|
+
minimist: "^1.2.0",
|
|
7786
|
+
mocha: "^8.2.1",
|
|
7787
|
+
sinon: "^4.5.0",
|
|
7788
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
7789
|
+
typescript: "^4.0.5",
|
|
7790
|
+
"url-search-params": "^0.10.0",
|
|
7791
|
+
webpack: "^4.44.2",
|
|
7792
|
+
"webpack-dev-server": "^3.11.0"
|
|
7793
|
+
};
|
|
7794
|
+
const browser = {
|
|
7795
|
+
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
7796
|
+
};
|
|
7797
|
+
const jsdelivr = "dist/axios.min.js";
|
|
7798
|
+
const unpkg = "dist/axios.min.js";
|
|
7799
|
+
const typings = "./index.d.ts";
|
|
7800
|
+
const dependencies = {
|
|
7801
|
+
"follow-redirects": "^1.14.0"
|
|
7802
|
+
};
|
|
7803
|
+
const bundlesize = [
|
|
7804
|
+
{
|
|
7805
|
+
path: "./dist/axios.min.js",
|
|
7806
|
+
threshold: "5kB"
|
|
7807
|
+
}
|
|
7808
|
+
];
|
|
7809
|
+
var require$$0 = {
|
|
7810
|
+
name,
|
|
7811
|
+
version,
|
|
7812
|
+
description,
|
|
7813
|
+
main,
|
|
7814
|
+
scripts,
|
|
7815
|
+
repository,
|
|
7816
|
+
keywords,
|
|
7817
|
+
author,
|
|
7818
|
+
license,
|
|
7819
|
+
bugs,
|
|
7820
|
+
homepage,
|
|
7821
|
+
devDependencies,
|
|
7822
|
+
browser,
|
|
7823
|
+
jsdelivr,
|
|
7824
|
+
unpkg,
|
|
7825
|
+
typings,
|
|
7826
|
+
dependencies,
|
|
7827
|
+
bundlesize
|
|
7828
|
+
};
|
|
7829
|
+
var pkg = require$$0;
|
|
7830
|
+
var validators$1 = {};
|
|
7831
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type, i) {
|
|
7832
|
+
validators$1[type] = function validator2(thing) {
|
|
7833
|
+
return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
|
|
7834
|
+
};
|
|
7835
|
+
});
|
|
7836
|
+
var deprecatedWarnings = {};
|
|
7837
|
+
var currentVerArr = pkg.version.split(".");
|
|
7838
|
+
function isOlderVersion(version2, thanVersion) {
|
|
7839
|
+
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
7840
|
+
var destVer = version2.split(".");
|
|
7841
|
+
for (var i = 0; i < 3; i++) {
|
|
7842
|
+
if (pkgVersionArr[i] > destVer[i]) {
|
|
7843
|
+
return true;
|
|
7844
|
+
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
7845
|
+
return false;
|
|
7846
|
+
}
|
|
7847
|
+
}
|
|
7848
|
+
return false;
|
|
7849
|
+
}
|
|
7850
|
+
validators$1.transitional = function transitional(validator2, version2, message) {
|
|
7851
|
+
var isDeprecated = version2 && isOlderVersion(version2);
|
|
7852
|
+
function formatMessage(opt, desc) {
|
|
7853
|
+
return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
7854
|
+
}
|
|
7855
|
+
return function(value, opt, opts) {
|
|
7856
|
+
if (validator2 === false) {
|
|
7857
|
+
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
7858
|
+
}
|
|
7859
|
+
if (isDeprecated && !deprecatedWarnings[opt]) {
|
|
7860
|
+
deprecatedWarnings[opt] = true;
|
|
7861
|
+
console.warn(formatMessage(opt, " has been deprecated since v" + version2 + " and will be removed in the near future"));
|
|
7862
|
+
}
|
|
7863
|
+
return validator2 ? validator2(value, opt, opts) : true;
|
|
7864
|
+
};
|
|
7865
|
+
};
|
|
7866
|
+
function assertOptions(options, schema, allowUnknown) {
|
|
7867
|
+
if (typeof options !== "object") {
|
|
7868
|
+
throw new TypeError("options must be an object");
|
|
7869
|
+
}
|
|
7870
|
+
var keys2 = Object.keys(options);
|
|
7871
|
+
var i = keys2.length;
|
|
7872
|
+
while (i-- > 0) {
|
|
7873
|
+
var opt = keys2[i];
|
|
7874
|
+
var validator2 = schema[opt];
|
|
7875
|
+
if (validator2) {
|
|
7876
|
+
var value = options[opt];
|
|
7877
|
+
var result = value === void 0 || validator2(value, opt, options);
|
|
7878
|
+
if (result !== true) {
|
|
7879
|
+
throw new TypeError("option " + opt + " must be " + result);
|
|
7880
|
+
}
|
|
7881
|
+
continue;
|
|
7882
|
+
}
|
|
7883
|
+
if (allowUnknown !== true) {
|
|
7884
|
+
throw Error("Unknown option " + opt);
|
|
7885
|
+
}
|
|
7886
|
+
}
|
|
7887
|
+
}
|
|
7888
|
+
var validator$1 = {
|
|
7889
|
+
isOlderVersion,
|
|
7890
|
+
assertOptions,
|
|
7891
|
+
validators: validators$1
|
|
7892
|
+
};
|
|
7893
|
+
var utils$1 = utils$d;
|
|
7894
|
+
var buildURL2 = buildURL$2;
|
|
7895
|
+
var InterceptorManager = InterceptorManager_1;
|
|
7896
|
+
var dispatchRequest2 = dispatchRequest$1;
|
|
7897
|
+
var mergeConfig$1 = mergeConfig$2;
|
|
7898
|
+
var validator = validator$1;
|
|
7899
|
+
var validators = validator.validators;
|
|
7900
|
+
function Axios$1(instanceConfig) {
|
|
7901
|
+
this.defaults = instanceConfig;
|
|
7902
|
+
this.interceptors = {
|
|
7903
|
+
request: new InterceptorManager(),
|
|
7904
|
+
response: new InterceptorManager()
|
|
7905
|
+
};
|
|
7906
|
+
}
|
|
7907
|
+
Axios$1.prototype.request = function request(config) {
|
|
7908
|
+
if (typeof config === "string") {
|
|
7909
|
+
config = arguments[1] || {};
|
|
7910
|
+
config.url = arguments[0];
|
|
7911
|
+
} else {
|
|
7912
|
+
config = config || {};
|
|
7913
|
+
}
|
|
7914
|
+
config = mergeConfig$1(this.defaults, config);
|
|
7915
|
+
if (config.method) {
|
|
7916
|
+
config.method = config.method.toLowerCase();
|
|
7917
|
+
} else if (this.defaults.method) {
|
|
7918
|
+
config.method = this.defaults.method.toLowerCase();
|
|
7919
|
+
} else {
|
|
7920
|
+
config.method = "get";
|
|
7921
|
+
}
|
|
7922
|
+
var transitional2 = config.transitional;
|
|
7923
|
+
if (transitional2 !== void 0) {
|
|
7924
|
+
validator.assertOptions(transitional2, {
|
|
7925
|
+
silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
7926
|
+
forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
7927
|
+
clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
|
|
7928
|
+
}, false);
|
|
7929
|
+
}
|
|
7930
|
+
var requestInterceptorChain = [];
|
|
7931
|
+
var synchronousRequestInterceptors = true;
|
|
7932
|
+
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
7933
|
+
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
|
|
7934
|
+
return;
|
|
7935
|
+
}
|
|
7936
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
7937
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
7938
|
+
});
|
|
7939
|
+
var responseInterceptorChain = [];
|
|
7940
|
+
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
7941
|
+
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
7942
|
+
});
|
|
7943
|
+
var promise;
|
|
7944
|
+
if (!synchronousRequestInterceptors) {
|
|
7945
|
+
var chain = [dispatchRequest2, void 0];
|
|
7946
|
+
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
|
7947
|
+
chain = chain.concat(responseInterceptorChain);
|
|
7948
|
+
promise = Promise.resolve(config);
|
|
7949
|
+
while (chain.length) {
|
|
7950
|
+
promise = promise.then(chain.shift(), chain.shift());
|
|
7951
|
+
}
|
|
7952
|
+
return promise;
|
|
7953
|
+
}
|
|
7954
|
+
var newConfig = config;
|
|
7955
|
+
while (requestInterceptorChain.length) {
|
|
7956
|
+
var onFulfilled = requestInterceptorChain.shift();
|
|
7957
|
+
var onRejected = requestInterceptorChain.shift();
|
|
7958
|
+
try {
|
|
7959
|
+
newConfig = onFulfilled(newConfig);
|
|
7960
|
+
} catch (error) {
|
|
7961
|
+
onRejected(error);
|
|
7962
|
+
break;
|
|
7963
|
+
}
|
|
7964
|
+
}
|
|
7965
|
+
try {
|
|
7966
|
+
promise = dispatchRequest2(newConfig);
|
|
7967
|
+
} catch (error) {
|
|
7968
|
+
return Promise.reject(error);
|
|
7969
|
+
}
|
|
7970
|
+
while (responseInterceptorChain.length) {
|
|
7971
|
+
promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
|
|
7972
|
+
}
|
|
7973
|
+
return promise;
|
|
7974
|
+
};
|
|
7975
|
+
Axios$1.prototype.getUri = function getUri(config) {
|
|
7976
|
+
config = mergeConfig$1(this.defaults, config);
|
|
7977
|
+
return buildURL2(config.url, config.params, config.paramsSerializer).replace(/^\?/, "");
|
|
7978
|
+
};
|
|
7979
|
+
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData2(method) {
|
|
7980
|
+
Axios$1.prototype[method] = function(url, config) {
|
|
7981
|
+
return this.request(mergeConfig$1(config || {}, {
|
|
7982
|
+
method,
|
|
7983
|
+
url,
|
|
7984
|
+
data: (config || {}).data
|
|
7985
|
+
}));
|
|
7986
|
+
};
|
|
7987
|
+
});
|
|
7988
|
+
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
|
|
7989
|
+
Axios$1.prototype[method] = function(url, data, config) {
|
|
7990
|
+
return this.request(mergeConfig$1(config || {}, {
|
|
7991
|
+
method,
|
|
7992
|
+
url,
|
|
7993
|
+
data
|
|
7994
|
+
}));
|
|
7995
|
+
};
|
|
7996
|
+
});
|
|
7997
|
+
var Axios_1 = Axios$1;
|
|
7998
|
+
function Cancel$1(message) {
|
|
7999
|
+
this.message = message;
|
|
8000
|
+
}
|
|
8001
|
+
Cancel$1.prototype.toString = function toString2() {
|
|
8002
|
+
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
8003
|
+
};
|
|
8004
|
+
Cancel$1.prototype.__CANCEL__ = true;
|
|
8005
|
+
var Cancel_1 = Cancel$1;
|
|
8006
|
+
var Cancel = Cancel_1;
|
|
8007
|
+
function CancelToken(executor) {
|
|
8008
|
+
if (typeof executor !== "function") {
|
|
8009
|
+
throw new TypeError("executor must be a function.");
|
|
8010
|
+
}
|
|
8011
|
+
var resolvePromise;
|
|
8012
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
8013
|
+
resolvePromise = resolve;
|
|
8014
|
+
});
|
|
8015
|
+
var token = this;
|
|
8016
|
+
executor(function cancel(message) {
|
|
8017
|
+
if (token.reason) {
|
|
8018
|
+
return;
|
|
8019
|
+
}
|
|
8020
|
+
token.reason = new Cancel(message);
|
|
8021
|
+
resolvePromise(token.reason);
|
|
8022
|
+
});
|
|
8023
|
+
}
|
|
8024
|
+
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
8025
|
+
if (this.reason) {
|
|
8026
|
+
throw this.reason;
|
|
8027
|
+
}
|
|
8028
|
+
};
|
|
8029
|
+
CancelToken.source = function source() {
|
|
8030
|
+
var cancel;
|
|
8031
|
+
var token = new CancelToken(function executor(c) {
|
|
8032
|
+
cancel = c;
|
|
8033
|
+
});
|
|
8034
|
+
return {
|
|
8035
|
+
token,
|
|
8036
|
+
cancel
|
|
8037
|
+
};
|
|
8038
|
+
};
|
|
8039
|
+
var CancelToken_1 = CancelToken;
|
|
8040
|
+
var spread = function spread2(callback) {
|
|
8041
|
+
return function wrap(arr) {
|
|
8042
|
+
return callback.apply(null, arr);
|
|
8043
|
+
};
|
|
8044
|
+
};
|
|
8045
|
+
var isAxiosError = function isAxiosError2(payload) {
|
|
8046
|
+
return typeof payload === "object" && payload.isAxiosError === true;
|
|
8047
|
+
};
|
|
8048
|
+
var utils = utils$d;
|
|
8049
|
+
var bind2 = bind$2;
|
|
8050
|
+
var Axios = Axios_1;
|
|
8051
|
+
var mergeConfig2 = mergeConfig$2;
|
|
8052
|
+
var defaults = defaults_1;
|
|
8053
|
+
function createInstance(defaultConfig) {
|
|
8054
|
+
var context = new Axios(defaultConfig);
|
|
8055
|
+
var instance = bind2(Axios.prototype.request, context);
|
|
8056
|
+
utils.extend(instance, Axios.prototype, context);
|
|
8057
|
+
utils.extend(instance, context);
|
|
8058
|
+
return instance;
|
|
8059
|
+
}
|
|
8060
|
+
var axios$1 = createInstance(defaults);
|
|
8061
|
+
axios$1.Axios = Axios;
|
|
8062
|
+
axios$1.create = function create(instanceConfig) {
|
|
8063
|
+
return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
|
|
8064
|
+
};
|
|
8065
|
+
axios$1.Cancel = Cancel_1;
|
|
8066
|
+
axios$1.CancelToken = CancelToken_1;
|
|
8067
|
+
axios$1.isCancel = isCancel$1;
|
|
8068
|
+
axios$1.all = function all(promises) {
|
|
8069
|
+
return Promise.all(promises);
|
|
8070
|
+
};
|
|
8071
|
+
axios$1.spread = spread;
|
|
8072
|
+
axios$1.isAxiosError = isAxiosError;
|
|
8073
|
+
axios$2.exports = axios$1;
|
|
8074
|
+
axios$2.exports.default = axios$1;
|
|
8075
|
+
var axios = axios$2.exports;
|
|
8076
|
+
function useCms(id, intervalSeconds = 600, baseUrl, tenant) {
|
|
8077
|
+
if (!baseUrl || !tenant) {
|
|
8078
|
+
throw new Error("baseUrl or tenant was not provided");
|
|
8079
|
+
}
|
|
8080
|
+
const url = `${baseUrl.endsWith("/") ? baseUrl.slice(0, -1) : baseUrl}/cms-api/content/${tenant}/${id}`;
|
|
8081
|
+
const [state, setState] = useState(null);
|
|
8082
|
+
const [error, setError] = useState(false);
|
|
8083
|
+
function getCms() {
|
|
8084
|
+
axios.get(url).then((res) => {
|
|
8085
|
+
if (isEmpty_1(res.data)) {
|
|
8086
|
+
throw new Error("Data is an empty object");
|
|
8087
|
+
}
|
|
8088
|
+
setState(res.data);
|
|
8089
|
+
setError(false);
|
|
8090
|
+
}).catch((e) => {
|
|
8091
|
+
console.error(e);
|
|
8092
|
+
setError(true);
|
|
8093
|
+
});
|
|
8094
|
+
return;
|
|
8095
|
+
}
|
|
8096
|
+
useEffect(() => {
|
|
8097
|
+
getCms();
|
|
8098
|
+
}, []);
|
|
8099
|
+
useInterval(getCms, intervalSeconds * 1e3);
|
|
8100
|
+
return { value: state, isError: error };
|
|
8101
|
+
}
|
|
8102
|
+
function useVenueCms(id, intervalSeconds = 600, baseUrl, tenant, venue) {
|
|
8103
|
+
var _a, _b, _c, _d;
|
|
8104
|
+
if (!baseUrl || !tenant || !venue) {
|
|
8105
|
+
throw new Error("baseUrl, tenant or venue was not provided");
|
|
8106
|
+
}
|
|
8107
|
+
const arrayOfEntries = useCms(id, intervalSeconds, baseUrl, tenant);
|
|
8108
|
+
return {
|
|
8109
|
+
value: ((_b = (_a = arrayOfEntries.value) == null ? void 0 : _a.find) == null ? void 0 : _b.call(_a, (item) => item.venue === venue)) || ((_d = (_c = arrayOfEntries.value) == null ? void 0 : _c.find) == null ? void 0 : _d.call(_c, (item) => item.venue === "*")) || null,
|
|
8110
|
+
isError: arrayOfEntries.isError
|
|
8111
|
+
};
|
|
8112
|
+
}
|
|
8113
|
+
export { useAvailability, useCms, useDisplayPrice, useGroupOrderLines, useInterval, useVenueCms };
|
|
6988
8114
|
//# sourceMappingURL=index.es.js.map
|